/* Matterbird — calm navy + teal, legible, fast. */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --ink: #14213d;
  --ink-2: #4a5572;
  --ink-3: #8790a8;
  --line: #e3e6ef;
  --brand: #14213d;
  --accent: #1a9e92;
  --accent-ink: #ffffff;
  --accent-soft: #dff4f1;
  --gold: #e0b62a;
  --danger: #c8443d;
  --danger-soft: #fbe7e5;
  --warn: #b7791f;
  --warn-soft: #fdf1dc;

  --k-meeting: #3b6fd8;
  --k-court: #7a4fd0;
  --k-deadline: #d2543f;
  --k-post: #1a9e92;
  --k-task: #d39b1e;
  --k-personal: #c24f8c;
  --k-other: #6b7590;
  --k-external: #8a94ad;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.05), 0 6px 24px rgba(20, 33, 61, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d1424;
    --surface: #151e33;
    --surface-2: #1c2741;
    --ink: #e8ecf6;
    --ink-2: #b2bad0;
    --ink-3: #7f89a3;
    --line: #26314d;
    --accent: #2ec4b6;
    --accent-ink: #0d1424;
    --accent-soft: #143a3d;
    --danger-soft: #3a1e22;
    --warn-soft: #3a2e17;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 14px; background: var(--brand); color: #fff; display: flex; flex-direction: column; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; padding: 0 8px; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, 0.72); text-decoration: none; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav a.active { background: rgba(46, 196, 182, 0.18); color: #fff; }
.nav a.active .ni { color: #2ec4b6; }
.ni { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.view { padding: 32px clamp(16px, 4vw, 44px) 64px; max-width: 1280px; width: 100%; outline: none; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: auto 0 0 0; top: auto; height: auto; z-index: 20; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); flex-direction: row; }
  .brand { display: none; }
  .nav { flex-direction: row; justify-content: space-around; width: 100%; }
  .nav a { flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 11px; }
  .view { padding: 20px 16px 96px; }
}

/* ---------- page head ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); }
.eyebrow { margin: 0 0 4px; color: var(--ink-3); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.lede { color: var(--ink-2); max-width: 70ch; margin: 8px 0 0; }
.head-actions { display: flex; gap: 8px; }

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s, transform 0.05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; color: var(--ink-2); text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); text-decoration: none; }
.pill-btn:hover { color: var(--ink); background: var(--surface-2); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.field em { font-weight: 400; color: var(--ink-3); font-style: normal; }
.field input, .field select, .field textarea, .name-input, .quick-add input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 9px 12px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field input:focus, .field select:focus, .field textarea:focus, .name-input:focus, .quick-add input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 60px; }
.field.check { flex-direction: row; align-items: center; gap: 8px; align-self: flex-end; padding-bottom: 10px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1 1 180px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; border: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.k-type { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chip.k-deadline { background: var(--danger-soft); color: var(--danger); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.warn, .tag.st-failed { background: var(--danger-soft); color: var(--danger); }
.tag.hi { background: var(--warn-soft); color: var(--warn); }
.tag.ok, .tag.st-published { background: var(--accent-soft); color: var(--accent); }
.tag.st-scheduled, .tag.st-publishing { background: #e6edfb; color: var(--k-meeting); }
@media (prefers-color-scheme: dark) { .tag.st-scheduled, .tag.st-publishing { background: #1d2c50; } }
.empty { color: var(--ink-3); margin: 8px 0; }
.hint { color: var(--ink-2); font-size: 13.5px; margin: 0 0 12px; }
.count { font-size: 13px; background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: middle; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 12px; }
.w-head .seg { margin: 0; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.plat { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--brand); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; flex: none; }
@media (prefers-color-scheme: dark) { .plat { background: #2a3658; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 50; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 8px 14px; font-size: 14px; max-width: 360px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 500; animation: pop 0.2s ease-out; transition: opacity 0.3s, transform 0.3s; }
.toast.err { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 820px) { .toasts { bottom: 84px; left: 16px; right: 16px; } }

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; transition: transform 0.15s; }
.stat:hover { transform: translateY(-2px); }
.stat b { font-size: 28px; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: 13px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } .dash-grid { grid-template-columns: 1fr; } }

/* ---------- widgets (shared) ---------- */
.w-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.w-head h3 { font-size: 17px; }
.w-head .sub { margin: 2px 0 0; color: var(--ink-3); font-size: 13px; }
.w-nav { display: flex; gap: 6px; align-items: center; }
.w-sec { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 14px 0 6px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--k-other); }
.k-meeting { --k: var(--k-meeting); } .k-court { --k: var(--k-court); } .k-deadline { --k: var(--k-deadline); }
.k-post { --k: var(--k-post); } .k-task { --k: var(--k-task); } .k-personal { --k: var(--k-personal); } .k-other { --k: var(--k-other); } .k-external { --k: var(--k-external); }
.dot[class*='k-'] { background: var(--k); }

/* calendar */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding-bottom: 4px; }
.cal-day { position: relative; border: 0; background: transparent; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 6px 2px; min-height: 46px; gap: 3px; color: var(--ink); }
.cal-day:hover { background: var(--surface-2); }
.cal-day .num { font-size: 13.5px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.out { color: var(--ink-3); opacity: 0.55; }
.cal-day.today .num { background: var(--accent); color: var(--accent-ink); }
.cal-day.selected { background: var(--accent-soft); }
.cal-day .dots { display: flex; gap: 2px; height: 6px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin: 12px 0 4px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-agenda { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.cal-agenda-title { font-weight: 700; margin-bottom: 6px; }
.cal-agenda ul, .timeline, .day-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-agenda li, .timeline li, .day-items li { display: grid; grid-template-columns: 64px 3px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; border-radius: 8px; }
.cal-agenda .when, .timeline .when, .day-items .when { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.bar { align-self: stretch; border-radius: 3px; background: var(--k, var(--k-other)); min-height: 18px; }
.what { min-width: 0; overflow-wrap: anywhere; }
.what .plats { margin-right: 6px; vertical-align: -5px; }
.what .tag { margin-left: 6px; vertical-align: 1px; }
.plats { display: inline-flex; gap: 3px; }
.done .what { text-decoration: line-through; color: var(--ink-3); }
.timeline li.past { opacity: 0.55; }

/* full-size calendar */
.cal-full .cal-day { align-items: stretch; min-height: 104px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal-full .cal-day .num { align-self: flex-start; font-size: 12.5px; width: 24px; height: 24px; }
.cal-full .cal-day.selected { border-color: var(--accent); }
.cal-full .chip { font-size: 11px; padding: 1px 6px; border-radius: 5px; justify-content: flex-start; background: color-mix(in srgb, var(--k) 14%, transparent); color: var(--k); display: block; text-align: left; }
.cal-full .chip.done { text-decoration: line-through; opacity: 0.6; }
.cal-full .more { font-size: 11px; color: var(--ink-3); text-align: left; padding-left: 4px; }
@media (max-width: 700px) {
  .cal-full .cal-day { min-height: 54px; }
  .cal-full .chip { font-size: 0; height: 5px; padding: 0; }
  .cal-full .more { display: none; }
}

/* today */
.ring { position: relative; width: 52px; height: 52px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.5; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px; border-radius: 10px; }
.task:hover { background: var(--surface-2); }
.task label { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; min-width: 0; }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--ink-3); flex: none; display: grid; place-items: center; transition: all 0.15s; }
.task input:focus-visible + .check { outline: 2px solid var(--accent); outline-offset: 2px; }
.task input:checked + .check { background: var(--accent); border-color: var(--accent); }
.task input:checked + .check::after { content: ''; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.task.p-high .check { border-color: var(--k-deadline); }
.task.done .title { text-decoration: line-through; color: var(--ink-3); }
.task .title { overflow-wrap: anywhere; }
.task.overdue .title { color: var(--danger); }
.quick-add { display: flex; gap: 8px; margin-top: 12px; }
.icon-btn.add { width: 40px; height: 40px; background: var(--accent); color: var(--accent-ink); border: 0; font-size: 18px; }

/* ---------- documents ---------- */
.upload { display: flex; flex-direction: column; gap: 6px; }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center; background: var(--surface-2); transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.busy { opacity: 0.7; pointer-events: none; }
.drop-icon { font-size: 30px; color: var(--accent); }
.drop small { color: var(--ink-3); }
#doc-list { margin-top: 18px; }
.docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.doc { padding: 14px 0; border-top: 1px solid var(--line); }
.doc:first-child { border-top: 0; }
.doc.fresh { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } }
.doc-main { display: grid; grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.3fr) auto; gap: 10px; align-items: center; }
.from { display: flex; align-items: center; gap: 8px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.ext { font-size: 10px; font-weight: 800; padding: 2px 5px; border-radius: 4px; background: var(--brand); color: #fff; flex: none; }
.arrow { color: var(--ink-3); }
.name-input { font-weight: 600; }
.doc.renamed .name-input { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.doc-actions { display: flex; gap: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.deadlines { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 13px; }
.meta-form { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; margin-top: 12px; padding: 14px; background: var(--surface-2); border-radius: var(--radius-sm); align-items: end; }
.meta-form .btn { margin-bottom: 12px; }
.doc.open .meta-form { display: grid; }
@media (max-width: 900px) {
  .doc-main { grid-template-columns: 1fr auto; }
  .arrow { display: none; }
  .from { grid-column: 1 / -1; }
  .meta-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .doc-main { grid-template-columns: 1fr; }
  .meta-form { grid-template-columns: 1fr; }
}

/* ---------- social ---------- */
.social-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .social-grid { grid-template-columns: 1fr; } }
.plat-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.plat-toggle input { position: absolute; opacity: 0; }
.plat-toggle span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all 0.15s; }
.plat-toggle input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.plat-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.counters { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; }
.counter { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.counter .plat { width: 18px; height: 18px; font-size: 9px; }
.counter.near { color: var(--warn); }
.counter.over { color: var(--danger); }
.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.post { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post .plats { flex-direction: column; }
.post .body { min-width: 0; }
.post p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post small { color: var(--ink-3); }
.post-actions { display: flex; gap: 6px; align-items: center; }

/* ---------- calendar page ---------- */
.cal-page { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.cal-page .side { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1050px) { .cal-page { grid-template-columns: 1fr; } }
.day-items li { grid-template-columns: 70px 3px 1fr auto; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.tokens .chip { cursor: pointer; font-family: ui-monospace, Menlo, monospace; }
.tokens .chip:hover { background: var(--accent-soft); color: var(--accent); }
.preview { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.copy-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.copy-row span { font-weight: 600; color: var(--ink-2); }
.copy-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; padding: 6px 8px; }
@media (max-width: 520px) { .copy-row { grid-template-columns: 1fr auto; } .copy-row span { grid-column: 1 / -1; } }

/* ---------- standalone widget pages ---------- */
.widget-page { padding: 12px; min-height: 100vh; display: flex; flex-direction: column; gap: 8px; max-width: 480px; margin: 0 auto; }
.widget-open { font-size: 12px; color: var(--ink-3); text-decoration: none; align-self: center; }
.widget-open:hover { color: var(--accent); }
@media (max-width: 480px) { .widget-page { padding: 0; } .widget-page .card { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; } .widget-open { padding-bottom: 12px; } }

/* ---------- account / auth ---------- */
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #2ec4b6; color: #14213d; display: grid; place-items: center; font-weight: 800; flex: none; }
.me-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; font-size: 13px; }
.sidebar .linklike { color: rgba(255, 255, 255, 0.7); }
.sidebar .linklike:hover { color: #fff; }
@media (max-width: 820px) { .sidebar .me { display: none; } }
.auth-page { min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 16px; background: radial-gradient(1200px 600px at 20% -10%, var(--accent-soft), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 400px; padding: 32px 28px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.auth-brand img { border-radius: 12px; }
.auth-card .lede { margin: 0 0 20px; }
.btn.block { width: 100%; padding: 11px 16px; margin-top: 4px; }
.form-error { color: var(--danger); background: var(--danger-soft); padding: 8px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 12px; }
.auth-switch { text-align: center; margin: 16px 0 0; }

/* ---------- connections / team ---------- */
.span-all { grid-column: 1 / -1; }
.conn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
@media (max-width: 800px) { .conn-cols { grid-template-columns: 1fr; } }
.conns { list-style: none; margin: 0 0 8px; padding: 0; }
.conn { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.conn:first-child { border-top: 0; }
.plat.lg { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
.conn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.conn-body b { display: inline; }
.conn-body small { color: var(--ink-3); overflow-wrap: anywhere; }
.conn-body .tag { align-self: flex-start; }
.err-text { color: var(--danger) !important; }
.conn-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bsky-form { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.team { list-style: none; margin: 0 0 8px; padding: 0; }
.team li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.team li:first-child { border-top: 0; }
.team li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.team small { color: var(--ink-3); margin-left: 6px; }
.plat-toggle.unlinked span { border-style: dashed; }
.post small a { color: inherit; text-decoration: underline; }
.post-as { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.post-as select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 8px; max-width: 100%; }

.auth-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.auth-about { color: var(--ink-2); font-size: 13.5px; text-align: center; padding: 0 8px; }
.auth-about p { margin: 0 0 8px; }
.legal-page { padding: 32px 16px 64px; }
.legal { max-width: 760px; margin: 0 auto; padding: 32px clamp(20px, 5vw, 48px); line-height: 1.65; }
.legal h1 { margin: 18px 0 2px; }
.legal h2 { font-size: 18px; margin: 28px 0 6px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 12px; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.legal-brand img { border-radius: 9px; }
.settings-foot { grid-column: 1 / -1; text-align: center; }
