:root { --ink:#1b2430; --mute:#667085; --line:#d9dee5; --bg:#f5f7fa; --card:#fff; --brand:#0b5cab; --red:#c62828; --head:#eef2f6; --err-bg:#fdecea; --err:#8a1c1c; --ok-bg:#e7f5ec; --ok:#14532d; --accent:var(--brand); }
/* per-store theme: app.js sets data-store from /api/me; add a block per store */
[data-store=nbc] { --brand:#1d4ed8; --accent:#1e85d0; --bg:#e9f0fb; --head:#dbe7f9; --line:#d6e4fb; }
/* dark mode: app.js sets data-theme (saved choice, else the OS setting) */
html[data-theme=dark] { color-scheme:dark; --ink:#e6eaf0; --mute:#9aa6b8; --line:#2a3446; --bg:#0f1623; --card:#17202e; --head:#1f2a3b; --brand:#6ea1ff; --err-bg:#3b1a1a; --err:#ffb4b4; --ok-bg:#12301e; --ok:#9be3b4; }
html[data-theme=dark][data-store=nbc] { --brand:#6ea1ff; --bg:#0c1524; --head:#1c2a42; --line:#25344d; }
[data-store=cmk] { --brand:#7a5e1c; --accent:#99823d; --bg:#f3f2ef; --head:#e8e0c4; --line:#e2e0d8; }
[data-store=gmcbh] { --brand:#b91c1c; --accent:#cf2436; --bg:#fdecee; --head:#f6c9ce; --line:#f8d2d6; }
html[data-theme=dark][data-store=cmk] { --brand:#d9b95b; --bg:#131210; --head:#2a2618; --line:#3a3524; }
html[data-theme=dark][data-store=gmcbh] { --brand:#ff7b8c; --bg:#170d0f; --head:#3a1a1f; --line:#4a2a30; }
* { box-sizing: border-box; }
body { min-height:100vh; display:flex; flex-direction:column; margin:0; font:14px/1.45 "Segoe UI",system-ui,Arial,sans-serif; color:var(--ink); background:var(--bg); }
header { display:flex; justify-content:space-between; align-items:center; padding:12px 20px; background:var(--card); border-bottom:3px solid var(--accent); }
.brand { font-weight:700; font-size:18px; } .brand span { color:var(--mute); font-weight:400; }
.who { display:flex; gap:14px; align-items:center; }
.signout { background:var(--red); color:#fff; padding:6px 12px; border-radius:6px; text-decoration:none; font-weight:600; }
nav { display:flex; gap:4px; padding:0 20px; background:var(--card); border-bottom:1px solid var(--line); overflow-x:auto; }
nav button { border:0; background:none; padding:12px 14px; font:inherit; cursor:pointer; color:var(--mute); border-bottom:3px solid transparent; white-space:nowrap; }
nav button.on { color:var(--brand); border-bottom-color:var(--brand); font-weight:600; }
main { padding:16px 20px; max-width:1200px; width:100%; margin:0 auto; }
footer { margin-top:auto; display:flex; flex-direction:column; align-items:center; gap:4px; padding:20px 20px 16px; }
footer .legal { font-size:10px; letter-spacing:.05em; text-transform:uppercase; color:var(--mute); }
footer img.wag { height:28px; width:auto; background:#fff; border-radius:3px; padding:1px 4px; }
.vtag { font-size:11px; font-weight:400; color:var(--mute); line-height:1.2; }
.msg { padding:10px 14px; border-radius:6px; background:var(--err-bg); color:var(--err); }
.msg.ok { background:var(--ok-bg); color:var(--ok); }
.everyone { display:block; margin:0 0 10px; color:var(--mute); }
.bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
button.primary { background:var(--brand); color:#fff; border:0; padding:8px 14px; border-radius:6px; font:inherit; font-weight:600; cursor:pointer; }
button.ghost { background:var(--card); color:var(--ink); border:1px solid var(--line); padding:8px 14px; border-radius:6px; font:inherit; cursor:pointer; }
button.link { background:none; border:0; color:var(--brand); cursor:pointer; font:inherit; padding:0 6px; }
button.danger { color:var(--red); }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { text-align:left; padding:8px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { background:var(--head); font-size:12px; text-transform:uppercase; letter-spacing:.03em; color:var(--mute); }
td img { width:84px; height:56px; object-fit:cover; border-radius:4px; display:block; }
.mute { color:var(--mute); } h3 { margin:18px 0 8px; }
.scroll { overflow-x:auto; }
#modal-bg { position:fixed; inset:0; background:rgba(15,23,42,.45); display:flex; align-items:center; justify-content:center; padding:16px; }
#modal-bg[hidden] { display:none; }
.modal { background:var(--card); border-radius:10px; padding:20px; width:100%; max-width:480px; max-height:90vh; overflow:auto; }
.modal h2 { margin:0 0 12px; font-size:18px; }
.modal label { display:block; margin:10px 0 2px; font-weight:600; font-size:12px; }
.modal input, .modal select { width:100%; background:var(--card); color:var(--ink); padding:8px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.actions { display:flex; gap:10px; justify-content:flex-end; align-items:center; margin-top:16px; }
.actions .status { margin-right:auto; color:var(--ok); font-size:13px; } .actions .status.err { color:var(--red); }
.bad { outline:2px solid var(--red); }

.brand { display:flex; align-items:center; gap:14px; } .brand img { height:52px; width:auto; display:block; background:#fff; border-radius:4px; padding:2px 6px; }
.theme { background:none; border:1px solid var(--line); color:var(--ink); border-radius:6px; padding:5px 9px; cursor:pointer; font:inherit; }
.partner { display:block; height:56px; width:auto; max-width:100%; border-radius:6px; margin:0 0 14px; }
.brand img[hidden] { display:none; }
