/* Corit — visual identity. Tokens first; never hard-code colours below this block. */
:root {
  /* Corit palette */
  --jade: #536b62;     /* Signature Jade: logo accent, secondary tone */
  --graphite: #303a35; /* Graphite: hover / secondary text */
  --forest: #183d32;   /* Forest: brand wordmark, primary actions, main text */
  --mist: #e9eae2;     /* Warm Mist: page background */
  --porcelain: #f5f3ec;/* Porcelain: cards and panels */
  --stone: #b7b8aa;    /* Soft Stone: borders and dividers */
  /* semantic tokens (all built from the palette) */
  --page: var(--mist);
  --bg: #dedfd5;
  --panel: var(--porcelain);
  --panel-2: #eeede5;
  --ink: var(--forest);
  --ink-2: var(--graphite);
  --mute: var(--jade);
  --line: #d6d7cc;
  --line-2: var(--stone);
  --acc: var(--forest);
  --acc-ink: var(--porcelain);
  --acc-hover: var(--graphite);
  --accs: #dde2da;
  --ok: #1f6b4a;
  --oks: #dfeade;
  --warn: #7a5a14;
  --warns: #f0ead2;
  --bad: #a3342b;
  --bads: #f3e0dc;
  --badge: #a3342b;
  --shadow-1: 0 1px 0 rgba(24, 61, 50, .04), 0 1px 3px rgba(24, 61, 50, .07);
  --shadow-2: 0 2px 4px rgba(24, 61, 50, .05), 0 12px 32px -8px rgba(24, 61, 50, .16);
  --shadow-3: 0 24px 64px -16px rgba(24, 61, 50, .38);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "Inter", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hdr: 60px;
  color-scheme: light;
}
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-padding-top: calc(var(--hdr) + 12px); background: var(--page); -webkit-text-size-adjust: 100% }
body {
  margin: 0; min-height: 100vh; background: var(--page); color: var(--ink);
  font: 14.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3, h4, p { margin: 0 }
h1 { font: 400 44px/1.05 var(--serif); letter-spacing: -.01em }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3 }
h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.005em }
h4 { font-size: 13px; font-weight: 600; margin: 16px 0 4px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute) }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em }
a { color: var(--acc); text-underline-offset: 2px }
.mute { color: var(--mute) }
.sm { font-size: 12.5px }
img, video { max-width: 100% }
::selection { background: var(--accs) }

/* ---------- controls ---------- */
button, input, textarea, select { font: inherit; color: inherit }
button {
  cursor: pointer; border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px;
  padding: 7px 16px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
}
button:hover { background: var(--panel-2); border-color: var(--mute) }
button:active { transform: scale(.97) }
button.p { background: var(--ink); border-color: var(--ink); color: var(--acc-ink) }
button.p:hover { background: var(--acc); border-color: var(--acc); color: var(--acc-ink) }
button.o { border-color: var(--acc); color: var(--acc); background: transparent }
button.o:hover { background: var(--accs) }
button.l { border: 0; background: none; color: var(--acc); padding: 2px 0; border-radius: 4px; font-weight: 600; white-space: normal; text-align: left }
button.l:hover { background: none; text-decoration: underline; text-underline-offset: 3px }
button.l:active { transform: none }
button.ghost { border-color: transparent; background: transparent }
button.ghost:hover { background: var(--bg) }
button.danger:hover { color: var(--bad); background: var(--bads); border-color: transparent }
button:disabled { opacity: .5; cursor: not-allowed; transform: none }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px }
input, textarea, select {
  width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 9px 12px; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
input:hover, textarea:hover, select:hover { border-color: var(--mute) }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--accs) }
textarea { resize: vertical; min-height: 72px; line-height: 1.5 }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--acc); flex: none }
input[type=file] { padding: 8px }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
header.scrolled { border-bottom-color: var(--line) }
.bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 20px; height: var(--hdr) }
.logo {
  font: 400 26px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 6px 4px 0; border-radius: 8px;
}
.logo:hover { background: none; border: 0 }

.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 6px }
.icon-btn {
  position: relative; width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: var(--bg); border-color: transparent }
.icon-btn .dot { top: 4px; right: 3px }
.icon-btn .av { width: 32px; height: 32px; border-radius: 10px; font-size: 12px }

/* ---------- navigation ---------- */
.mnav { display: none }
nav { display: flex; gap: 2px }
nav.rail {
  flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px; margin-bottom: 12px; box-shadow: var(--shadow-1);
}
nav.rail button {
  display: flex; flex-direction: row; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; width: 100%;
  justify-content: flex-start; padding: 9px 12px; border: 0; border-radius: 10px; color: var(--ink-2); background: none; position: relative;
}
nav.rail button:hover { background: var(--bg) }
nav.rail button.on { background: var(--accs); color: var(--acc); font-weight: 600 }
nav.rail button.on::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc) }
nav.rail .dot { position: static; margin-left: auto }
nav.rail .rail-sep { height: 1px; background: var(--line); margin: 6px 4px }
nav i, .ico { font-style: normal; display: inline-grid; place-items: center; flex: none }
.ico svg { display: block }
.dot {
  position: absolute; top: 2px; right: 6px; background: var(--badge); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 5px; display: inline-grid; place-items: center;
  font-style: normal; line-height: 1; box-shadow: 0 0 0 2px var(--panel); font-variant-numeric: tabular-nums;
}
.dot[hidden] { display: none }

/* ---------- layout ---------- */
.cols {
  max-width: 1180px; margin: 0 auto; padding: 20px 20px 80px;
  display: grid; grid-template-columns: 232px minmax(0, 1fr) 300px; gap: 24px; align-items: start;
}
.cols.two { grid-template-columns: 232px minmax(0, 1fr) }
.cols > * { min-width: 0 }
.cols > aside { position: sticky; top: calc(var(--hdr) + 20px) }
main { min-width: 0 }

.box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1);
  padding: 18px 20px; margin-bottom: 14px; min-width: 0;
}
.box .box { box-shadow: none; border-radius: 10px; padding: 12px 14px }
.box.t { padding: 0; overflow: hidden }
.box .in { padding: 18px 20px }
.sep { border-top: 1px solid var(--line) }
.rowl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0 }
.rowl > * { min-width: 0 }
.sp { flex: 1; min-width: 0 }
.gap6 > * + * { margin-top: 8px }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 4px 2px 16px }
.page-head h1 { font-size: 40px }
.page-head p { color: var(--mute); margin-top: 4px }

/* ---------- avatar ---------- */
.av {
  --h: 250; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  background: color-mix(in srgb, var(--jade) 16%, var(--panel)); color: var(--forest);
}
.av.xl { width: 104px; height: 104px; font-size: 34px; border-radius: 28px; font-family: var(--serif); font-weight: 400; letter-spacing: 0 }
.av.sm { width: 32px; height: 32px; font-size: 11.5px; border-radius: 10px }
.av.lg { width: 64px; height: 64px; font-size: 20px; border-radius: 19px }
.av img { display: block }

/* ---------- cover / profile header ---------- */
.cover { height: 6px; background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 40%, var(--jade))) }
.prof-cover { height: 132px; background:
  radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--jade) 45%, var(--panel)) 0%, transparent 55%),
  radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--stone) 70%, var(--panel)) 0%, transparent 60%),
  var(--panel-2); }
.prof-head { padding: 0 24px 18px; margin-top: -52px }
.prof-head .av.xl { box-shadow: 0 0 0 5px var(--panel) }
.prof-head .who h2 { font: 400 34px/1.1 var(--serif); letter-spacing: -.01em; margin-top: 12px }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap }
.prof-top { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap }
.prof-top .who { flex: 1 1 260px; min-width: 0 }

/* ---------- side card ---------- */
.me-card .in { text-align: left }
.me-card h3 { font: 400 22px/1.15 var(--serif) }
.progress { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-top: 8px }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 55%, var(--jade))); border-radius: inherit; transition: width .6s var(--ease) }

/* ---------- chips, labels ---------- */
.chip {
  display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 500; padding: 2px 9px;
  border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; color: var(--ink-2); background: var(--panel); line-height: 1.6;
}
.chip.ok { background: var(--oks); color: var(--ok); border-color: transparent }
.chip.acc { background: var(--accs); color: var(--acc); border-color: transparent }
.chip.warn { background: var(--warns); color: var(--warn); border-color: transparent }
.chip.bad { background: var(--bads); color: var(--bad); border-color: transparent }
.tag-soon { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); border: 1px dashed var(--line-2); border-radius: 999px; padding: 1px 8px }

.item { padding: 14px 0; border-top: 1px solid var(--line) }
.item:first-child { border-top: 0 }
.box > h3 + .item, .box > h3 + p + .item { border-top: 0 }
.box > h3 { margin-bottom: 4px }

/* ---------- tabs & pills ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -20px; padding: 0 16px; overflow-x: auto; scrollbar-width: none }
.tabs::-webkit-scrollbar { display: none }
.tabs button { border: 0; border-radius: 0; background: none; padding: 12px 12px; color: var(--mute); font-weight: 500; position: relative; flex: none }
.tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--acc); transform: scaleX(0); transition: transform .22s var(--ease) }
.tabs button:hover { color: var(--ink); background: none }
.tabs button.on { color: var(--ink); font-weight: 600 }
.tabs button.on::after { transform: scaleX(1) }
.tabs button:active { transform: none }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 }
.pills button { padding: 5px 12px; font-size: 12.5px; font-weight: 500 }
.pills button.on { background: var(--ink); border-color: var(--ink); color: var(--panel) }
.lk { border-left: 3px solid var(--acc) }

/* ---------- timeline ---------- */
.tl { position: relative; margin: 8px 0 0 8px; padding-left: 26px; border-left: 2px solid var(--line) }
.tl .ev { position: relative; padding-bottom: 20px }
.tl .ev:last-child { padding-bottom: 4px }
.tl .ev::before { content: ""; position: absolute; left: -34px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--acc); box-shadow: 0 0 0 4px var(--panel) }
.tl .ev.gap::before { border-style: dashed; border-color: var(--mute) }
.tl .ev.dim { opacity: .35 }
.tl .ev > button.l { font-size: 15px; margin-top: 2px }

.bars { display: flex; gap: 3px; margin-top: 4px }
.bars i { flex: 1; height: 6px; background: var(--bg); border-radius: 3px }
.bars i.f { background: var(--acc) }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums }
th, td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); font-weight: 600; border-top: 0 }
.scroll { overflow-x: auto }

label.t { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer }
label.t input { width: auto }

.sw { width: 36px !important; height: 20px; appearance: none; border-radius: 10px; background: var(--line-2); position: relative; cursor: pointer; border: 0; padding: 0; flex: none }
.sw:checked { background: var(--acc) }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s var(--ease) }
.sw:checked::after { left: 18px }

.unread { background: var(--accs) }

/* ---------- forms / auth ---------- */
.auth { max-width: 440px; margin: 7vh auto 60px; padding: 0 16px }
.auth .box { padding: 32px 28px; border-radius: var(--r-lg); box-shadow: var(--shadow-2) }
.auth h1 { font-size: 40px !important }
.auth .tagline { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--mute); margin: 6px 0 10px }
.err { color: var(--bad); font-size: 12.5px; margin-top: 8px }
.err:empty { display: none }
.fld { display: block; margin-top: 12px }
.fld > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px }

.empty { text-align: center; padding: 32px 16px; color: var(--mute) }
.empty::before {
  content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, var(--accs), transparent 70%), var(--bg); border: 1px dashed var(--line-2);
}
.empty h3 { color: var(--ink); margin-bottom: 4px; font: 400 21px/1.2 var(--serif) }
.empty button { margin-top: 12px }

/* ---------- composer & posts ---------- */
.composer textarea { border: 0; padding: 10px 0 4px; min-height: 56px; box-shadow: none; resize: none; font-size: 15px; background: transparent }
.composer textarea:focus { box-shadow: none }
.composer .prompt { font-family: var(--serif); font-size: 19px; color: var(--mute) }
.composer-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px }
.composer-bar select { width: auto; max-width: 190px; padding: 6px 10px; font-size: 13px; border-radius: 999px }
.post-head { display: flex; gap: 12px; align-items: flex-start }
.post-head .meta { flex: 1; min-width: 0 }
.post-head .meta .sm { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.post-body { margin: 12px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6 }
.post-media { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; margin-top: 10px; background: var(--bg); display: block }
.post-acts { display: flex; gap: 2px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 12px; align-items: center }
.post-acts button.act {
  background: transparent; border: 0; color: var(--mute); font-size: 13px; font-weight: 500; padding: 7px 11px;
  border-radius: 999px; display: inline-flex; align-items: center;
}
.post-acts button.act:hover { background: var(--bg); color: var(--ink) }
.post-acts button.act[aria-pressed="true"] { color: var(--acc); font-weight: 600 }
.post-acts button.act[aria-pressed="true"] svg { fill: color-mix(in srgb, var(--acc) 18%, transparent) }
.act-inner { display: inline-flex; align-items: center; gap: 6px }
.act-inner svg { flex-shrink: 0 }
.attach-btn { display: inline-flex; align-items: center; gap: 7px }
.attach-btn svg { width: 16px; height: 16px }
.connect-btn { font-size: 12.5px; padding: 5px 12px }
.vis-sel { width: auto; padding: 2px 22px 2px 8px; font-size: 12px; border-radius: 999px; background-position: right 6px center; height: 24px }
.post-flash { animation: flash 1.6s var(--ease) }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--acc), var(--shadow-2) } 100% { box-shadow: var(--shadow-1) } }
.comments .item { padding: 10px 0 }

/* ---------- proof dashboard ---------- */
.proof { padding: 18px 20px 16px }
.proof-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap }
.proof-head h2 { font: 400 26px/1.1 var(--serif) }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px }
.tile {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel-2); text-align: left;
  display: flex; flex-direction: column; gap: 2px; white-space: normal; border-radius: 12px; color: var(--ink);
}
.tile:hover { border-color: var(--acc); background: var(--panel) }
.tile b { font: 400 32px/1 var(--serif); font-variant-numeric: tabular-nums }
.tile span { font-size: 12px; color: var(--mute); font-weight: 500 }
.tile .chip { align-self: flex-start; margin-top: 6px }
.next-step { margin-top: 12px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--accs); color: var(--acc); font-size: 13px; font-weight: 500 }
.next-step button { margin-left: auto }

/* ---------- workspace (company) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px }
.stat-grid .tile { background: var(--panel); box-shadow: var(--shadow-1); padding: 16px 18px }
.stat-grid .tile b { font-size: 40px }
.link-list button.l { display: block; font-size: 14px }
.link-list p { padding: 10px 0; border-top: 1px solid var(--line) }
.link-list p:first-child { border-top: 0 }

/* ---------- messages ---------- */
.msg-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start }
.msg-wrap.single { grid-template-columns: minmax(0, 1fr) }
.conv { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px; white-space: normal; color: var(--ink) }
.conv:hover { background: var(--bg) }
.conv[aria-current="true"] { background: var(--accs) }
.conv .pv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; color: var(--mute); font-weight: 400; font-size: 12.5px }
.msg-log { max-height: 56vh; overflow: auto; padding: 8px 2px; scroll-behavior: smooth }
.msg-bubble { font-size: 15px !important; line-height: 1.45 !important; padding: 9px 14px !important; border-radius: 18px !important; white-space: pre-wrap; overflow-wrap: anywhere; display: inline-block; max-width: 80%; text-align: left; border: 0 !important }
.msg-bubble.mine { background: var(--ink) !important; color: var(--panel) !important; border-bottom-right-radius: 6px !important }
.msg-bubble.theirs { background: var(--bg) !important; color: var(--ink) !important; border-bottom-left-radius: 6px !important }

/* ---------- notifications ---------- */
.notif { display: flex; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: 12px; white-space: normal; color: var(--ink); align-items: flex-start }
.notif:hover { background: var(--bg) }
.notif.new { background: color-mix(in srgb, var(--accs) 55%, transparent) }
.notif .ndot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-top: 7px; flex: none }
.notif .ndot.read { background: transparent }

/* ---------- toast ---------- */
#toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px) }
.toast { background: var(--ink); color: var(--panel); padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-3); pointer-events: auto; text-align: center }

/* ---------- modal & sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(24, 61, 50, .48); z-index: 40; overflow: auto; padding: 5vh 12px; backdrop-filter: blur(2px) }
.modal { width: min(540px, 100%); margin: 0 auto; border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 24px }
.modal > h2 { font: 400 28px/1.15 var(--serif); margin-bottom: 6px }
body.lock { overflow: hidden }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--panel); border-radius: 22px 22px 0 0; padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-3) }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 10px }
.sheet button { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 12px; padding: 13px 14px; font-weight: 500; font-size: 15px; background: none; color: var(--ink); position: relative }
.sheet button:hover { background: var(--bg) }
.sheet .dot { position: static; margin-left: auto }

/* ---------- skeleton ---------- */
.sk { background: linear-gradient(90deg, var(--bg) 0%, var(--panel-2) 50%, var(--bg) 100%); background-size: 200% 100%; border-radius: 8px; height: 12px; margin-top: 10px }
.sk.h { height: 20px; width: 40% }
.sk.av { width: 44px; height: 44px; border-radius: 13px; margin: 0 }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cols { grid-template-columns: 212px minmax(0, 1fr) }
  .cols > aside.r { display: none }
}
@media (max-width: 900px) {
  :root { --hdr: 56px }
  .bar { padding: 0 14px }
  .cols, .cols.two { grid-template-columns: minmax(0, 1fr); padding: 14px 12px calc(96px + env(safe-area-inset-bottom, 0px)); gap: 0 }
  .cols > aside.l { display: none }
  .box { padding: 16px; border-radius: 16px }
  .box .in { padding: 16px }
  .tabs { margin: 0 -16px; padding: 0 8px }
  .mnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; margin: 0; z-index: 30; justify-content: space-around;
    background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .mnav button {
    flex: 1 1 0; min-width: 0; border: 0; background: none; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 10.5px; font-weight: 500; padding: 6px 2px; color: var(--mute); position: relative; white-space: nowrap;
  }
  .mnav button i.ico { width: 44px; height: 28px; border-radius: 999px; transition: background .2s var(--ease) }
  .mnav button.on { color: var(--ink); font-weight: 600 }
  .mnav button.on i.ico { background: var(--accs); color: var(--acc) }
  .mnav button .dot { top: 2px; right: calc(50% - 22px) }
  h1, .page-head h1 { font-size: 34px }
  .prof-cover { height: 96px }
  .prof-head { padding: 0 16px 16px; margin-top: -44px }
  .av.xl { width: 88px; height: 88px; font-size: 28px; border-radius: 24px }
  .prof-head .who h2 { font-size: 28px }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .msg-wrap { grid-template-columns: minmax(0, 1fr) }
  .msg-wrap.has-thread > .conv-list { display: none }
  .composer-bar select { max-width: 46% }
  #toasts { bottom: calc(86px + env(safe-area-inset-bottom, 0px)) }
  .hide-m { display: none !important }
}
@media (min-width: 901px) { .only-m { display: none !important } }

/* ---------- motion (only when the user allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .view-in { animation: rise .26s var(--ease) both }
  .view-in > * { animation: rise .32s var(--ease) both }
  .view-in > *:nth-child(2) { animation-delay: .03s }
  .view-in > *:nth-child(3) { animation-delay: .06s }
  .view-in > *:nth-child(4) { animation-delay: .09s }
  .view-in > *:nth-child(n+5) { animation-delay: .12s }
  .toast { animation: toast-in .28s var(--ease) both }
  .toast.out { animation: toast-out .2s ease-in both }
  .scrim { animation: fade .18s ease-out both }
  .modal { animation: pop .22s var(--ease) both }
  .sheet { animation: sheet-up .26s var(--ease) both }
  .sk { animation: shimmer 1.3s linear infinite }
  .pop { animation: pop-btn .32s var(--ease) }
  .expand { animation: rise .22s var(--ease) both }
  .box { transition: box-shadow .2s var(--ease), border-color .2s, transform .2s var(--ease) }
  @media (hover: hover) { article.box:hover { box-shadow: var(--shadow-2) } .tile:hover { transform: translateY(-2px) } }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes sheet-up { from { transform: translateY(100%) } to { transform: none } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) } }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@keyframes pop-btn { 0% { transform: scale(1) } 40% { transform: scale(1.18) } 100% { transform: scale(1) } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important } }

/* ---------- refinements after visual QA ---------- */
.tile .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; padding: 1px 7px }
.stat-grid:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.link-list button.l { display: inline; font-size: 14px }
@media (min-width: 901px) {
  .composer-bar { flex-wrap: nowrap }
  .composer-bar select { flex: 0 1 170px; min-width: 0 }
}
aside.r .item.rowl { flex-wrap: wrap; align-items: flex-start }
aside.r .item .sp { flex: 1 1 calc(100% - 60px) }
aside.r .item .sp + button { margin-left: 54px }
aside.r .item .sm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.post-head .rowl { gap: 6px }
@media (max-width: 900px) { .stat-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* ---------- confirm dialog ---------- */
.confirm > p { margin-bottom: 12px }
.confirm textarea { width: 100%; min-height: 80px }
.confirm-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap }
button.p.danger-solid { background: var(--bad); border-color: var(--bad); color: var(--panel) }
button.p.danger-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--panel) }

/* ---------- auth split layout ---------- */
.auth.split { max-width: 960px; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: center }
.auth-how { padding: 8px 0 }
.auth-how .eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--acc); margin-bottom: 8px }
.auth-how h2.display { font-size: 38px; line-height: 1.08; margin-bottom: 20px }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px }
.how li { display: flex; gap: 14px; align-items: flex-start }
.how-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accs); color: var(--acc); font-weight: 600; font-variant-numeric: tabular-nums }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); width: 100% }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px 14px; color: var(--mute) }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-1) }
.seg button:hover { border: 0 }
.pw-wrap { position: relative; display: block }
.pw-wrap input { width: 100%; padding-right: 64px }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 4px 10px; font-size: 12.5px }
.pw-eye:active { transform: translateY(-50%) scale(.97) }
.pw-hint { display: block; margin-top: 4px }
.pw-hint.good { color: var(--ok) }
@media (max-width: 820px) {
  .auth.split { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 480px }
  .auth-how h2.display { font-size: 30px }
}

/* ---------- network ---------- */
.tabs .count { margin-left: 6px; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--mute); font-variant-numeric: tabular-nums }
.tabs button.on .count { background: var(--accs); color: var(--acc) }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px }
.pcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); min-width: 0 }
.pcard-av { padding: 0; border: 0; background: none; border-radius: 19px; margin-bottom: 6px }
.pcard-av:hover { background: none }
.pcard-hl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; overflow-wrap: anywhere }
.pcard-act { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; justify-content: center }
@media (max-width: 520px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) } .pcard-act button { padding: 6px 12px } }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .pcard { transition: transform .18s var(--ease), box-shadow .18s var(--ease) }
  .pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2) }
}

/* ---------- notifications ---------- */
.ngroup + .ngroup { margin-top: 6px }
.ngroup > h4 { margin: 16px 12px 4px }
.notif .nico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2) }
.notif.new .nico { background: var(--panel); color: var(--acc) }
.notif .ndot { margin-top: 14px }

/* ---------- shortlist kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start }
.kcol { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 160px; display: grid; gap: 10px; align-content: start; transition: border-color .15s, background .15s }
.kcol.over { border-color: var(--acc); background: var(--accs) }
.kcol > header { display: flex; align-items: center; gap: 6px; padding: 2px 4px }
.kcol > header h3 { font-size: 13.5px }
.kcol .count { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--panel); color: var(--mute) }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; cursor: grab; min-width: 0; box-shadow: var(--shadow-1) }
.kcard.dragging { opacity: .5 }
.kcard textarea { width: 100%; min-height: 0; font-size: 13px }
.kcard-hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.kcard-bar { display: flex; align-items: center; gap: 4px }
.kcard-bar .icon-btn { width: 30px; height: 30px; padding: 0 }
.kcard-bar .icon-btn:disabled { opacity: .35; cursor: default }
.icon-btn.flip .ico { transform: scaleX(-1) }
.kempty { text-align: center; padding: 18px 4px; border: 1px dashed var(--line-2); border-radius: 10px }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .kanban { grid-template-columns: minmax(0, 1fr) } }

/* ---------- compare ---------- */
.cmp { overflow-x: auto }
.cmp-row { display: grid; grid-template-columns: 170px repeat(var(--n), minmax(170px, 1fr)); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line) }
.cmp-row.cmp-head { border-top: 0; padding-top: 0 }
.cmp-head .cmp-cell { display: grid; gap: 4px; justify-items: start }
.cmp-lbl { font-weight: 600; font-size: 13px; color: var(--ink-2) }
.cmp-cell { min-width: 0; overflow-wrap: anywhere }
.cmp-cell.num { font-size: 22px; font-variant-numeric: tabular-nums; font-family: var(--serif) }
.cmp-cell.diff { color: var(--acc) }
@media (max-width: 640px) { .cmp-row { grid-template-columns: 110px repeat(var(--n), minmax(140px, 1fr)) } }

/* ---------- message thread grouping ---------- */
.msg-row { margin: 10px 0 0 }
.msg-row.mine { text-align: right }
.msg-row.cont { margin-top: 2px }
.msg-row.mine.more .msg-bubble { border-bottom-right-radius: 18px !important }
.msg-row.mine.cont .msg-bubble { border-top-right-radius: 6px !important }
.msg-row.theirs.more .msg-bubble { border-bottom-left-radius: 18px !important }
.msg-row.theirs.cont .msg-bubble { border-top-left-radius: 6px !important }
.msg-time { margin-top: 4px; font-size: 11.5px }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; color: var(--mute); font-size: 12px; font-weight: 600 }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line) }

/* ---------- profile cover (two-stop gradient from the id hue + accent) and public preview ---------- */
.prof-cover { background:
  radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--jade) 40%, var(--panel)) 0%, transparent 60%),
  linear-gradient(120deg, color-mix(in srgb, var(--stone) 55%, var(--panel)), color-mix(in srgb, var(--acc) 28%, var(--panel-2))); }
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--r); background: var(--accs); color: var(--ink); border: 1px solid color-mix(in srgb, var(--acc) 25%, transparent); font-size: 13.5px }
.preview-bar .ico { color: var(--acc) }

/* ---------- professional theme: Inter throughout, accent (not black) for primary actions, original logo ---------- */
h1, .display, .prof-head .who h2, .modal > h2, .auth-how h2.display, .cmp-cell.num { font-family: var(--sans); font-weight: 650; letter-spacing: -.02em }
h1 { font-size: 34px; line-height: 1.15 }
.auth h1 { font-size: 30px !important }
.auth .tagline { font-family: var(--sans); font-style: normal; font-size: 15px }
.modal > h2 { font-size: 20px }
.prof-head .who h2 { font-size: 26px }
.av.xl { font-family: var(--sans); font-weight: 600 }
button { border-radius: 8px }
button.p, .pills button.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink) }
button.p:hover { background: var(--acc-hover); border-color: var(--acc-hover); color: var(--acc-ink) }
.msg-bubble.mine { background: var(--acc) !important; color: var(--acc-ink) !important }
.toast { background: var(--ink-2); border-radius: 10px }
.logo { font: 600 20px/1 var(--sans); letter-spacing: -.02em; gap: 8px }
.logo .wordmark { height: 22px; width: auto; display: block }
.me-card h3 { font: 600 17px/1.25 var(--sans) }
.empty h3 { font: 600 17px/1.3 var(--sans) }
.composer .prompt { font-size: 15px }
.proof-head h2 { font: 600 19px/1.2 var(--sans); letter-spacing: -.01em }
.tile b { font: 600 26px/1 var(--sans); letter-spacing: -.02em }

/* ---------- profile overflow menu ---------- */
.prof-actions { align-items: center; flex-wrap: nowrap }
.kebab { position: relative }
.kebab > summary { list-style: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; background: var(--panel) }
.kebab > summary::-webkit-details-marker { display: none }
.kebab > summary .ico { transform: rotate(90deg) }
.kmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 180px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2); display: grid; gap: 2px }
.kmenu button { border: 0; background: none; text-align: left; border-radius: 6px; padding: 9px 12px; font-weight: 500 }
.kmenu button:hover { background: var(--bg) }
.kmenu button.danger { color: var(--bad) }
@media (max-width: 420px) { .prof-actions button { padding: 7px 12px } }

/* ---------- career trajectory (prototype style) ---------- */
.tl .ev { padding-bottom: 22px }
.tl .ev > .sm.mute { font-size: 12px }
.tl .ev > button.ev-title { text-align: left; color: var(--acc); font-weight: 600; font-size: 15px; padding: 0; white-space: normal; border: 0; background: none }
.tl .ev > button.ev-title:hover { text-decoration: underline; text-underline-offset: 3px }
.ms-detail { margin-top: 12px; padding: 18px 20px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px }
.ms-detail h4 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; margin: 16px 0 4px }
.ms-detail p { line-height: 1.6 }
.ms-detail .why { margin-top: 16px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 4px; color: var(--ink-2) }

/* ---------- feedback tab spacing ---------- */
.fb .fb-head { font-size: 16px }
.fb .fb-head + p { margin-top: 2px }
.fb-rows { display: grid; gap: 16px; margin-top: 20px }
.fb-lbl { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px }
.fb .bars i { height: 8px }
.fb-limits { margin-top: 20px; padding: 14px 16px; background: var(--warns); border-radius: 10px; line-height: 1.6 }

/* ---------- feed: read more + infinite scroll ---------- */
.post-body.clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden }
.read-more { padding: 0; margin-top: 4px; font-weight: 600; color: var(--acc); border: 0; background: none }
.read-more:hover { text-decoration: underline; background: none }
.feed-more { margin-bottom: 12px }

/* ---------- home: quiet proof strip ---------- */
.proof-strip { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap }
.pstats { display: flex; align-items: baseline; gap: 4px 18px; flex-wrap: wrap }
.pstrip-lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mute) }
.pstat { border: 0; background: none; padding: 0; display: inline-flex; align-items: baseline; gap: 5px; color: var(--ink-2); font-weight: 400; border-radius: 4px }
.pstat:hover { background: none; color: var(--acc) }
.pstat b { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums }
.pstat span { font-size: 13px }
.pnext { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--acc); white-space: normal; text-align: left }
.pnext:hover { background: none; text-decoration: underline }

/* ---------- composer toolbar alignment ---------- */
.composer-bar { display: grid !important; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 8px }
.composer-bar > .sp { display: none }
.composer-bar select { max-width: none !important; width: 100%; height: 36px; flex: none !important }
.composer-bar > button { height: 36px }
@media (max-width: 560px) {
  .composer-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .composer-bar .attach-btn { grid-column: 1 } .composer-bar > button.p { grid-column: 2; grid-row: 1 }
}

/* ---------- projects on Me ---------- */
.pj { padding: 18px 0 !important; display: grid; gap: 10px }
.pj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.pj-title { margin: 0 !important; font-size: 16px; font-weight: 600; text-transform: none !important; letter-spacing: 0 !important; color: var(--ink) !important }
.pj-chips { display: flex; gap: 6px; flex-wrap: wrap }
.pj-desc { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); line-height: 1.6 }
.pj-facts { margin: 0; display: grid; gap: 8px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px }
.pj-fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; font-size: 13.5px }
.pj-fact dt { color: var(--mute); font-weight: 500 } .pj-fact dd { margin: 0; overflow-wrap: anywhere }
.pj-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px }
button.ghost.danger:hover { color: var(--bad); background: var(--bads) }
@media (max-width: 520px) { .pj-fact { grid-template-columns: minmax(0, 1fr); gap: 2px } }
.av-link { padding: 0; border: 0; background: none; border-radius: 13px; flex: none }
.av-link:hover { background: none; opacity: .88 }
.av-link:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px }

/* ---------- privacy table fits on phones ---------- */
@media (max-width: 520px) {
  .priv-table th, .priv-table td, .scroll table th, .scroll table td { padding: 8px 6px; font-size: 13px }
  .scroll table th { font-size: 10.5px; letter-spacing: .04em }
}

/* ---------- phone: native-feeling, edge-to-edge sections with one consistent gutter ---------- */
@media (max-width: 600px) {
  .cols, .cols.two { padding: 8px 0 calc(92px + env(safe-area-inset-bottom, 0px)) }
  .cols > main > * > .box, .cols > main > .box, .cols > main .box:not(.box .box) {
    border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; margin-bottom: 8px; padding: 16px
  }
  .box .box { border-radius: 10px }
  .box.t { padding: 0 }
  .page-head { padding: 4px 16px 8px }
  h1, .page-head h1 { font-size: 26px }
  h2 { font-size: 18px }
  /* posts: header, body, media and actions share the same 16px gutter */
  .post-head { gap: 10px }
  .post-head .av { width: 40px; height: 40px; border-radius: 12px; font-size: 13px }
  .post-body { font-size: 15px; margin-top: 10px }
  .post-media, .box img.post-img, .box video { border-radius: 10px }
  .post-acts { justify-content: space-between; gap: 0; padding-top: 6px; margin-top: 10px }
  .post-acts button { min-height: 40px; padding: 6px 10px }
  /* tap-friendly controls; 16px inputs stop iOS from zooming in */
  input, select, textarea { font-size: 16px }
  .composer textarea { font-size: 16px }
  .tabs { margin: 0 -16px; padding: 0 4px }
  .tabs button { padding: 12px 10px }
  #toasts { left: 12px; right: 12px }
}

/* ---------- proof strip: label, four equal columns, next step ---------- */
.proof-strip { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px !important }
.pstats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch }
.pstrip-lbl { grid-column: 1 / -1; margin-bottom: 8px; font-size: 11px }
.pstat { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 10px; border-left: 1px solid var(--line); min-width: 0 }
.pstrip-lbl + .pstat { border-left: 0; padding-left: 0 }
.pstat b { font-size: 18px; line-height: 1.1 }
.pstat span { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }
.pnext { justify-self: start; padding-top: 10px; border-top: 1px solid var(--line); width: 100%; font-size: 13px }
@media (min-width: 901px) {
  .pstat b { font-size: 20px }
}
.pstat { padding: 0 8px }
@media (max-width: 400px) { .pstat span { font-size: 11.5px } }

/* ---------- toasts: centred and full-width on phones, above the bottom nav ---------- */
@media (max-width: 900px) {
  #toasts { left: 16px !important; right: 16px !important; transform: none !important; width: auto !important; max-width: none !important; bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; align-items: stretch }
  .toast { border-radius: 12px; padding: 12px 16px; text-align: center; font-size: 14px }
}
/* proof labels must fit narrow phones */
@media (max-width: 420px) { .pstat { padding: 0 6px } .pstat span { font-size: 11px } }


/* ---------- auth: loading state, Google button, resend ---------- */
.spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; box-sizing: border-box }
button.busy:disabled { opacity: 1; cursor: progress }
button.p.busy:disabled { background: var(--acc-hover); border-color: var(--acc-hover); color: var(--acc-ink) }
form.is-busy .fld { opacity: .7 }
.pw-eye:disabled { transform: translateY(-50%) }
form.is-busy input:disabled { cursor: progress }
.gbtn { width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: var(--panel); border-color: var(--line-2); color: var(--ink) }
.gbtn:hover { background: var(--panel-2); border-color: var(--mute) }
.gbtn .spin { margin-right: 0 }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0 2px; color: var(--mute); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.resend { width: 100% }
.resend .spin { margin-right: 8px }
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin .7s linear infinite }
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- desktop: each of the three columns scrolls on its own ---------- */
@media (min-width: 901px) {
  html:has(.cols), html:has(.cols) body { overflow: hidden }
  .cols { height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr)); padding-top: 16px; padding-bottom: 0; align-items: stretch; overflow: hidden }
  .cols > aside, .cols > main {
    position: static; height: 100%; overflow-y: auto; overscroll-behavior: contain;
    padding: 4px 6px 48px; margin: 0 -6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  }
  .cols > aside::-webkit-scrollbar, .cols > main::-webkit-scrollbar { width: 8px }
  .cols > aside::-webkit-scrollbar-thumb, .cols > main::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px }
  .cols > aside::-webkit-scrollbar-track, .cols > main::-webkit-scrollbar-track { background: transparent }
}
