/* ============================================================
   Mural Boa Vista — design system (minimalista)
   Uma única cor de marca: troque --brand pelas cores da Boa Vista.
   Cor só aparece com função: marca, urgência, atraso, concluído.
   ============================================================ */
:root {
  /* Identidade Boa Vista Net (tirada do @boavistanet_): azul-marinho, petróleo e verde neon */
  --navy: #0c1854;
  --petroleo: #04505c;
  --neon: #00ff30;

  --brand: var(--navy);
  --brand-ink: #ffffff;
  --brand-soft: color-mix(in srgb, var(--brand) 7%, var(--surface));
  --accent: #00c92a;          /* verde legível sobre fundo claro */
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --brand-grad: linear-gradient(135deg, var(--navy) 0%, #0b2a5e 55%, var(--petroleo) 100%);

  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #eff1f6;
  --ink: #0b1433;
  --ink-2: #4a5470;
  --ink-3: #8a93a8;
  --line: #e5e8f0;
  --line-2: #d5dae5;
  --shadow: 0 1px 2px rgba(15, 23, 41, .04);
  --shadow-hover: 0 4px 16px rgba(15, 23, 41, .08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 41, .22);

  --danger: #dc3a3f;
  --danger-soft: #fdeeee;
  --ok: #188a55;
  --ok-soft: #e8f5ee;
  --warn: #b7791f;

  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  --top-h: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

/* modo escuro: fundo azul-marinho da marca, verde neon como destaque */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060b22; --surface: #0c1433; --surface-2: #121c42; --ink: #eef1fa; --ink-2: #aab3cc; --ink-3: #6e799a;
    --line: #1b2550; --line-2: #26315f; --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-hover: 0 6px 20px rgba(0,0,0,.4);
    --brand: #e9edf8; --brand-ink: var(--navy); --accent: var(--neon);
    --danger-soft: #2c1224; --ok-soft: #0b2a2a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060b22; --surface: #0c1433; --surface-2: #121c42; --ink: #eef1fa; --ink-2: #aab3cc; --ink-3: #6e799a;
  --line: #1b2550; --line-2: #26315f; --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-hover: 0 6px 20px rgba(0,0,0,.4);
  --brand: #e9edf8; --brand-ink: var(--navy); --accent: var(--neon);
  --danger-soft: #2c1224; --ok-soft: #0b2a2a; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg);
  min-height: 100vh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.005em;
}
h1, h2, h3, h4 { font-weight: 600; margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* entrada suave das telas e itens */
.fade-in { animation: fade .35s var(--ease) both; }
.stagger > * { animation: fade .4s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .03s; } .stagger > *:nth-child(3) { animation-delay: .06s; }
.stagger > *:nth-child(4) { animation-delay: .09s; } .stagger > *:nth-child(5) { animation-delay: .12s; }
.stagger > *:nth-child(n+6) { animation-delay: .15s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- botões e formulários ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer;
  background: var(--ink); color: var(--surface); transition: transform .12s var(--ease), background .15s, box-shadow .15s;
  white-space: nowrap; text-decoration: none;
}
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn:hover { box-shadow: var(--shadow-hover); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 0; display: grid; place-items: center;
  background: transparent; cursor: pointer; color: var(--ink-2); position: relative; transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
textarea.input { min-height: 96px; resize: vertical; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .field { flex: 1 1 160px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; }

/* segmented control (filtros) */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 11px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: 13px;
  color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,41,.1); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { width: auto; padding: 7px 10px; font-size: 13px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
  padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.tag .dot, .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex: none; display: inline-block; }
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.tag.brand .dot { background: var(--brand); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.danger .dot { background: var(--danger); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.ok .dot { background: var(--ok); }
.kbd-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

/* ---------- layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 6px;
  padding: 0 10px 0 16px; background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--brand-grad);
  font-size: 13px; font-weight: 700; letter-spacing: -0.03em; position: relative; overflow: hidden;
}
.logo-mark::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 6px var(--neon); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.topbar .spacer { flex: 1; }
.badge {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--surface);
}
.demo-flag { font-size: 11px; font-weight: 600; color: var(--ink-3); border: 1px dashed var(--line-2); padding: 2px 8px; border-radius: 6px; }
.me-btn { border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; }

.layout { display: block; }
.sidenav { display: none; }
main#view { padding: 18px 16px calc(var(--nav-h) + 28px); max-width: 1160px; margin: 0 auto; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h); display: flex;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a, .sidenav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 500; transition: color .15s, background .15s;
}
.bottomnav a svg, .sidenav a svg { width: 22px; height: 22px; }
.bottomnav a.on, .sidenav a.on { color: var(--ink); }
.bottomnav a { position: relative; }
.bottomnav a.on::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 228px 1fr; }
  .bottomnav { display: none; }
  .sidenav {
    display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--line);
    position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); background: var(--surface);
  }
  .sidenav a { flex: 0; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
  .sidenav a svg { width: 18px; height: 18px; }
  .sidenav a:hover { background: var(--surface-2); color: var(--ink); }
  .sidenav a { position: relative; }
  .sidenav a.on { background: var(--surface-2); color: var(--ink); font-weight: 500; }
  .sidenav a.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
  .sidenav .foot { margin-top: auto; padding: 12px; font-size: 12px; color: var(--ink-3); }
  main#view { padding: 28px 32px 48px; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.card.hover { transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); cursor: pointer; }
.card.hover:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.stack { display: grid; gap: 10px; }
.section { margin-top: 26px; }
.section:first-child { margin-top: 0; }
.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.section-title .count { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.section-title .spacer { flex: 1; }
.side-card h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.side-card h3 .spacer { flex: 1; }

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mural-cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; } .mural-side { position: sticky; top: calc(var(--top-h) + 24px); } }
.mural-side { display: grid; gap: 12px; }
@media (max-width: 999px) { .mural-side { margin-top: 26px; } }

/* post do mural */
.post h3 { font-size: 16px; margin: 8px 0 4px; }
.post .post-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post .body { color: var(--ink-2); white-space: pre-wrap; word-wrap: break-word; font-size: 14px; }
.post .body.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-3); font-size: 12px; flex-wrap: wrap; }
.post .meta .spacer { flex: 1; }
.post .post-img { border-radius: 10px; margin-top: 12px; max-height: 320px; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.post .when { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; color: var(--ink); font-size: 13px; margin-top: 8px; }
.post .when svg { width: 15px; height: 15px; color: var(--brand); }
.pin { color: var(--brand); font-size: 12px; font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }

/* faixa de urgência */
.alert {
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
  background: var(--danger-soft); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
}
.alert.resolvido { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert .pulse { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--danger); animation: pulse 1.6s infinite; grid-row: span 3; }
.alert.resolvido .pulse { background: var(--ok); animation: none; }
.alert .alert-top { font-size: 12px; font-weight: 600; color: var(--danger); text-transform: uppercase; letter-spacing: .05em; }
.alert.resolvido .alert-top { color: var(--ok); }
.alert h3 { font-size: 16px; }
.alert p { margin: 0; color: var(--ink-2); font-size: 14px; white-space: pre-wrap; }
.alert .alert-actions { grid-column: 2; display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.alert .ciente { font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* cabeçalho de boas-vindas */
.hello { margin-bottom: 20px; }
.hello h1 { font-size: 26px; }
.hello p { margin: 4px 0 0; color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .2s var(--ease);
}
.stat:hover { border-color: var(--line-2); transform: translateY(-1px); }
.stat b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.stat span { font-size: 12px; color: var(--ink-3); }
.stat.hot b { color: var(--brand); }

/* pessoas (plantão, aniversários, tempo de casa) */
.person { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.person + .person { border-top: 1px solid var(--line); }
.person .who { flex: 1; min-width: 0; }
.person .who b { display: block; font-weight: 500; font-size: 14px; }
.person .who span { font-size: 12px; color: var(--ink-3); }
.person.today .who b::after { content: ' · hoje'; color: var(--brand); font-weight: 600; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 600; font-size: 13px; background: var(--surface-2); color: var(--ink-2); overflow: hidden; border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.date-pill { width: 40px; text-align: center; flex: none; line-height: 1.1; }
.date-pill b { display: block; font-size: 17px; font-weight: 600; }
.date-pill span { font-size: 10px; color: var(--ink-3); text-transform: uppercase; font-weight: 500; letter-spacing: .04em; }
.years { flex: none; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 3px 8px; }
.icon-link { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.icon-link:hover { background: var(--surface-2); color: var(--brand); }
.icon-link svg { width: 16px; height: 16px; }

.empty { text-align: center; padding: 28px 10px; color: var(--ink-3); font-size: 14px; }
.empty svg { width: 28px; height: 28px; margin: 0 auto 8px; display: block; opacity: .6; }

/* ---------- quadro de demandas ---------- */
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: thin;
}
@media (min-width: 900px) { .board { grid-auto-flow: initial; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding-inline: 0; } }
.col { scroll-snap-align: start; background: var(--surface-2); border-radius: var(--radius); padding: 8px; min-height: 220px; display: flex; flex-direction: column; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; font-weight: 600; font-size: 13px; }
.col-head .dot { background: var(--col, var(--ink-3)); width: 8px; height: 8px; }
.col-head .count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.col-list { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 80px; border-radius: 10px; transition: background .15s; }
.task {
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 12px; cursor: pointer;
  transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease); touch-action: manipulation;
}
.task:hover { border-color: var(--line-2); box-shadow: var(--shadow-hover); }
.task h4 { font-weight: 500; font-size: 14px; margin: 6px 0 10px; letter-spacing: -0.01em; }
.task .task-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.task .task-foot .spacer { flex: 1; }
.task.done h4 { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.prio { display: inline-flex; align-items: center; gap: 4px; }
.prio-alta { color: var(--danger); }
.late { color: var(--danger); font-weight: 500; }
.sortable-ghost { opacity: .3; }
.sortable-drag { box-shadow: var(--shadow-lg) !important; transform: rotate(1.5deg); }

/* ---------- modal ---------- */
dialog.modal {
  border: 1px solid var(--line); padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); animation: pop .22s var(--ease);
}
dialog.modal::backdrop { background: rgba(8, 12, 20, .45); backdrop-filter: blur(2px); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: 17px; flex: 1; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }
@media (max-width: 600px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; animation: sheet .28s var(--ease); }
  @keyframes sheet { from { transform: translateY(40px); opacity: .5; } }
}
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; font-size: 14px; margin-bottom: 18px; align-items: center; }
.kv dt { color: var(--ink-3); font-size: 13px; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 8px; }

/* comentários */
.comments { display: grid; gap: 12px; margin-top: 10px; }
.comment { display: flex; gap: 10px; }
.comment .bubble { flex: 1; min-width: 0; }
.comment .bubble b { font-size: 13px; font-weight: 600; }
.comment .bubble small { color: var(--ink-3); margin-left: 6px; }
.comment .bubble p { margin: 2px 0 0; white-space: pre-wrap; word-wrap: break-word; font-size: 14px; color: var(--ink-2); }
.mention { color: var(--brand); font-weight: 500; }

/* ---------- notificações ---------- */
.notif-panel {
  position: fixed; z-index: 40; top: calc(var(--top-h) + 6px); right: 8px; width: min(380px, calc(100vw - 16px));
  max-height: 72vh; overflow: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); animation: pop .2s var(--ease);
}
.notif-panel header { display: flex; align-items: center; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.notif-panel header h3 { flex: 1; font-size: 15px; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; color: inherit; transition: background .15s; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--surface-2); }
.notif .ico { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.notif.unread .ico { background: var(--brand); }
.notif p { margin: 0; font-size: 14px; }
.notif small { color: var(--ink-3); font-size: 12px; }

/* ---------- toast ---------- */
#toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { background: var(--ink); color: var(--surface); padding: 11px 14px; border-radius: 12px; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .22s var(--ease); }
.toast.err { background: var(--danger); color: #fff; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(400px, 100%); }
.login-card .logo { margin-bottom: 28px; }
.login-card h1 { font-size: 24px; margin-bottom: 4px; }
.login-card > p { color: var(--ink-3); margin: 0 0 22px; font-size: 14px; }
.persona {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; margin-bottom: 8px; transition: border-color .15s, transform .15s var(--ease);
}
.persona:hover { border-color: var(--brand); transform: translateX(2px); }
.persona b { display: block; font-weight: 500; font-size: 14px; }
.persona span { font-size: 12px; color: var(--ink-3); }
.persona .tag { margin-left: auto; }
.linkish { background: none; border: 0; color: var(--brand); font-weight: 500; cursor: pointer; padding: 0; font-size: 14px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- admin ---------- */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .grow b { display: block; font-weight: 500; }
.list-item .grow span { font-size: 13px; color: var(--ink-3); }
.list-item.off { opacity: .5; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 500; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }

.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + 18px); z-index: 25; height: 48px; padding: 0 18px; border-radius: 14px;
  border: 0; background: var(--brand-grad); color: #fff; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .15s var(--ease);
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .fab { display: none; } }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

.loading { display: grid; place-items: center; min-height: 60vh; color: var(--ink-3); font-size: 14px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
