:root {
  --bg: #0a0b0d;
  --panel: #111317;
  --panel-2: #171a20;
  --panel-3: #1d2128;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf3;
  --dim: #8a93a6;
  --muted: #a8b3c7;
  --gold: #d4af5a;
  --gold-soft: rgba(212, 175, 90, 0.12);
  --live: #3ecf6e;
  --danger: #ef6b6b;
  --warn: #e8a33d;
  --blue: #6aa5ff;
  --violet: #b18cff;
  --radius: 12px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- primitives ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--panel-2); color: var(--text); cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--panel-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #17140a; }
.btn-primary:hover { background: #e0bd6b; }
.btn-danger { color: var(--danger); border-color: rgba(239, 107, 107, .35); background: transparent; }
.btn-danger:hover { background: rgba(239, 107, 107, .08); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; padding: 0; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 12px; color: var(--muted); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--dim); }
.input, .select, .textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 9px 12px; outline: none; transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1 1 180px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-title { font-weight: 600; font-size: 15px; }

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.error-text { color: var(--danger); font-size: 13px; min-height: 18px; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,.03);
}
.pill-todo { color: var(--muted); }
.pill-in_progress { color: var(--blue); border-color: rgba(106,165,255,.35); background: rgba(106,165,255,.08); }
.pill-blocked { color: var(--danger); border-color: rgba(239,107,107,.35); background: rgba(239,107,107,.08); }
.pill-in_review { color: var(--violet); border-color: rgba(177,140,255,.35); background: rgba(177,140,255,.08); }
.pill-done { color: var(--live); border-color: rgba(62,207,110,.35); background: rgba(62,207,110,.08); }
.pill-cancelled { color: var(--dim); text-decoration: line-through; }
.pill-gold { color: var(--gold); border-color: rgba(212,175,90,.35); background: var(--gold-soft); }
.pill-danger { color: var(--danger); border-color: rgba(239,107,107,.35); background: rgba(239,107,107,.08); }
.pill-live { color: var(--live); border-color: rgba(62,207,110,.35); background: rgba(62,207,110,.08); }

.prio { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--dim); }
.prio-urgent { background: var(--danger); box-shadow: 0 0 0 3px rgba(239,107,107,.18); }
.prio-high { background: var(--warn); }
.prio-medium { background: var(--blue); }
.prio-low { background: var(--dim); }

.id-chip { font-family: var(--mono); font-size: 12px; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(212,175,90,.25); padding: 1px 6px; border-radius: 5px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #17140a; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--panel-3); border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: var(--gold); flex-shrink: 0; }
.avatar-sm { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }

.empty { padding: 36px 18px; text-align: center; color: var(--dim); }
.empty strong { display: block; color: var(--muted); margin-bottom: 4px; font-weight: 500; }

/* ---------- auth screens ---------- */
.auth-wrap { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(900px 500px at 50% -10%, rgba(212,175,90,.08), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; padding: 28px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand img { width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); padding: 4px; }
.auth-brand .name { font-weight: 700; letter-spacing: .02em; }
.auth-brand .name span { color: var(--gold); }
.auth-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.auth-sub { color: var(--muted); margin: 0 0 22px; }
.id-input { font-family: var(--mono); font-size: 20px; letter-spacing: .35em; text-align: center; }
.auth-foot { margin-top: 18px; font-size: 12px; color: var(--dim); text-align: center; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--panel); padding: 16px 12px; z-index: 40; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand img { width: 30px; height: 30px; }
.side-brand .t1 { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.side-brand .t1 span { color: var(--gold); }
.side-brand .t2 { font-size: 11px; color: var(--dim); font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.active { background: var(--gold-soft); color: var(--gold); }
.nav a .badge { margin-left: auto; }
.nav-sep { margin: 14px 10px 6px; }
.side-user { margin-top: auto; border-top: 1px solid var(--border); padding: 14px 6px 0; display: flex; align-items: center; gap: 10px; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .nm { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .meta { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(10,11,13,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar h1 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; }
.content { padding: 24px 28px 48px; max-width: 1240px; width: 100%; }
.bell { position: relative; }
.bell .badge { position: absolute; top: -4px; right: -4px; }
.scrim { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .2s ease; }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px 16px 40px; }
  .hide-mobile { display: none !important; }
}

/* ---------- dashboard ---------- */
.greet { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.greet h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.01em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; display: block; }
.stat:hover { border-color: var(--border-strong); }
.stat .num { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.stat .num.warn { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- lists ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--gold); border-bottom-color: var(--gold); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .select, .toolbar .input { width: auto; min-width: 160px; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--border); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; cursor: pointer; color: inherit; }
.list-row:hover { background: rgba(255,255,255,.02); }
.list-row .main-col { min-width: 0; flex: 1; }
.list-row .ttl { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .due { font-size: 12px; color: var(--muted); white-space: nowrap; font-family: var(--mono); }
.list-row .due.overdue { color: var(--danger); }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.nowrap { white-space: nowrap; }

/* ---------- task detail ---------- */
.task-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.task-head h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.01em; word-break: break-word; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.meta-grid .k { font-size: 11px; color: var(--dim); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.timeline li:first-child { border-top: none; }
.timeline .ev-body { min-width: 0; flex: 1; }
.timeline .ev-meta { font-size: 12px; color: var(--dim); }
.timeline .comment { margin-top: 6px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }

/* ---------- messages ---------- */
.chat { display: grid; grid-template-columns: 270px minmax(0, 1fr); height: calc(100vh - 140px); min-height: 420px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; }
.chat-list .grp { padding: 14px 14px 6px; }
.chat-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; color: var(--muted); cursor: pointer; }
.chat-item:hover { background: rgba(255,255,255,.03); color: var(--text); }
.chat-item.active { background: var(--gold-soft); color: var(--gold); }
.chat-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .hash { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-3); font-family: var(--mono); font-size: 13px; flex-shrink: 0; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-pane-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.msg { display: flex; gap: 10px; padding: 6px 0; }
.msg.cont { padding-top: 0; }
.msg.cont .avatar { visibility: hidden; height: 0; }
.msg .mb { min-width: 0; flex: 1; }
.msg .mh { font-size: 12px; color: var(--dim); }
.msg .mh strong { color: var(--text); font-weight: 600; margin-right: 6px; font-size: 13px; }
.msg .mt { white-space: pre-wrap; word-break: break-word; }
.day-sep { text-align: center; margin: 12px 0 6px; font-size: 11px; color: var(--dim); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.composer { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: flex-end; }
.composer .textarea { min-height: 42px; max-height: 160px; resize: none; }
@media (max-width: 900px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 110px); }
  .chat.has-active .chat-list { display: none; }
  .chat:not(.has-active) .chat-pane { display: none; }
  .chat-list { border-right: none; }
}

/* ---------- org ---------- */
.org-dept { margin-bottom: 14px; }
.org-dept .org-children { margin: 14px 0 0 22px; padding-left: 18px; border-left: 1px dashed var(--border-strong); }
.org-people { list-style: none; margin: 0; padding: 0; }
.org-people ul { list-style: none; margin: 0; padding-left: 26px; border-left: 1px solid var(--border); margin-left: 15px; }
.person { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.person .pn { font-weight: 500; }
.person .pt { font-size: 12px; color: var(--dim); }
.heads { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) { .org-dept .org-children { margin-left: 6px; padding-left: 10px; } }

/* ---------- announcements ---------- */
.ann { padding: 18px; }
.ann + .ann { margin-top: 12px; }
.ann h3 { margin: 8px 0 6px; font-size: 16px; }
.ann-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- overlays ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 18px 20px 6px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 18px; }

.cred { background: var(--bg); border: 1px dashed rgba(212,175,90,.45); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.cred-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.cred-row .v { font-family: var(--mono); font-size: 15px; color: var(--gold); word-break: break-all; text-align: right; }

.notif-panel { position: fixed; top: 60px; right: 16px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; z-index: 90; }
.notif { display: block; padding: 11px 16px; border-top: 1px solid var(--border); cursor: pointer; }
.notif:hover { background: rgba(255,255,255,.03); }
.notif.unread { background: rgba(212,175,90,.05); }
.notif.unread .nt { color: var(--text); font-weight: 500; }
.notif .nt { color: var(--muted); font-size: 13px; }
.notif .nd { font-size: 11px; color: var(--dim); margin-top: 2px; }

.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 440px; }
.toast { background: var(--panel-3); border: 1px solid var(--border-strong); padding: 10px 14px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 13px; }
.toast.err { border-color: rgba(239,107,107,.5); color: #ffd0d0; }
.toast.ok { border-color: rgba(62,207,110,.45); }

.loading { padding: 40px; text-align: center; color: var(--dim); }

/* ---------- small layout helpers ---------- */
.top-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.top-actions .select { width: auto; min-width: 150px; }
.task-desc { margin-top: 8px; }
.org-members-label { margin: 14px 0 4px; }
.org-owner { margin-left: 8px; }
.profile-head { align-items: center; margin-bottom: 12px; }
.heads-list { max-height: 320px; overflow-y: auto; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.head-opt { color: var(--text); }
[data-gap] { margin-top: 12px; }
.card .list-row { border-radius: 0; }
.person .main-col { flex: 1; min-width: 0; }

/* ---------- attachments ---------- */
.atts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 6px; }
.att-img-link { display: block; }
.att-img { display: block; max-width: min(260px, 100%); max-height: 200px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); object-fit: cover; }
.att-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel-2); max-width: 100%; color: var(--text); }
.att-file:hover { border-color: var(--gold); }
.att-file .nm, .chip .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.att-file .sz, .chip .sz { color: var(--dim); font-size: 12px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 0; }
.stack > .chips { padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 4px 0 10px; border-radius: 8px; background: var(--panel-3); border: 1px solid var(--border-strong); font-size: 12px; max-width: 100%; }
.chip.busy { opacity: .7; padding-right: 10px; }
.comment .pre + .atts { margin-top: 8px; }
.comment-actions { align-items: center; }

/* ---------- multi-select chips ---------- */
.check-group { display: flex; flex-wrap: wrap; gap: 6px; }
.check-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--muted); background: var(--bg); user-select: none; }
.check-chip input { accent-color: var(--gold); width: 14px; height: 14px; margin: 0; }
.check-chip:has(input:checked) { border-color: rgba(212,175,90,.6); color: var(--gold); background: var(--gold-soft); }
.filter-row { margin-top: -4px; }
.check.field { flex-direction: row; align-items: flex-start; gap: 10px; }
.check.field input { margin-top: 2px; flex-shrink: 0; }
form > .hint { margin: -6px 0 14px; }

/* ---------- ID cards ---------- */
.setup-card { max-width: 720px; }
.setup-label { margin: 22px 0 12px; }
.setup-preview { margin: 0 -8px; }
.photo-pick { align-items: center; }
.card-page-actions { margin-bottom: 20px; }
.card-page { padding: 10px 0 6px; }
.card-page-note { max-width: 640px; margin: 18px auto 0; text-align: center; }
.verify-result { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; font-size: 13px; }
.verify-result:empty { display: none; }
.verify-result.ok { background: rgba(62,207,110,.08); border: 1px solid rgba(62,207,110,.35); color: var(--live); }
.verify-result.bad { background: rgba(239,107,107,.08); border: 1px solid rgba(239,107,107,.35); color: #ffc0c0; }
.show-mobile { display: none; }
@media (max-width: 900px) { .show-mobile { display: inline; } }
@media (max-width: 680px) { .setup-preview .pmx-cards { flex-direction: column; align-items: center; } }

/* Public QR verification page */
.verify-wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.verify-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; margin-bottom: 18px; }
.verify-brand img { width: 30px; height: 30px; }
.verify-brand b { color: var(--gold); }
.verify-status { border-radius: 14px; padding: 14px 16px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.verify-status strong { font-size: 16px; }
.verify-status.ok { background: rgba(62,207,110,.08); border: 1px solid rgba(62,207,110,.35); }
.verify-status.ok strong { color: var(--live); }
.verify-status.bad { background: rgba(239,107,107,.08); border: 1px solid rgba(239,107,107,.35); }
.verify-status.bad strong { color: var(--danger); }
.verify-note { text-align: center; font-size: 12px; color: var(--dim); margin-top: 20px; }

/* ---------- photo approvals ---------- */
.pending-photo { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 16px; border-color: rgba(212,175,90,.35); }
.pending-photo img { width: 48px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.pending-photo .main-col { min-width: 0; flex: 1; }
.tab-badge { margin-left: 6px; }
.photo-reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.photo-req { padding: 16px; }
.photo-req-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.photo-compare { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0; }
.photo-compare figure { margin: 0; text-align: center; }
.photo-compare img, .photo-compare .ph { width: 104px; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--dim); background: var(--panel-2); }
.photo-compare figcaption { margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.photo-compare .arrow { color: var(--gold); font-size: 20px; }
.photo-req-actions { display: flex; justify-content: flex-end; gap: 8px; }
