/* ===========================================================================
   socio — Editorial Studio design system
   Warm paper canvas · deep ink rail · persimmon accent
   Fraunces (display) · Hanken Grotesk (UI) · JetBrains Mono (data)
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Hanken+Grotesk:wght@300..800&family=JetBrains+Mono:wght@400..700&display=swap');

:root {
  /* paper / ink */
  --paper:    #F1ECE0;
  --paper-2:  #E8E1D1;
  --card:     #FCFBF7;
  --ink:      #16140F;
  --ink-2:    #46413A;
  --ink-3:    #696353;
  --line:     #D9D1C0;
  --line-2:   #C6BCA6;

  /* accent */
  --accent:   #E8482A;   /* persimmon */
  --accent-d: #C3381E;
  --accent-soft: #F7D9CF;
  --accent-on: #C3381E;  /* darker fill for white text on accent — AA in both themes */

  /* status */
  --st-draft:     #8C8676;
  --st-scheduled: #1F6F6B;   /* teal */
  --st-approval:  #BE851A;   /* amber */
  --st-published: #3E7C4F;   /* green */
  --st-failed:    #C23B22;   /* red */
  --st-approval-text: #8F6510;  /* chip text — AA on card (light) */
  --st-draft-text:    #6E6859;

  /* network */
  --ig: #DD2A7B;
  --fb: #1877F2;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --rail-w: 244px;
  --radius: 4px;
  --shadow: 0 1px 1px rgba(22,20,15,.05), 0 4px 12px -4px rgba(22,20,15,.10), 0 12px 28px -12px rgba(22,20,15,.16);

  /* surfaces that must stay dark-on-light, and invert under dark mode */
  --rail: #16140F;        /* sidebar — always the darkest surface */
  --solid: #16140F;       /* solid (non-accent) buttons / segmented-on / toasts */
  --solid-ink: #F4EFE4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  /* faint paper grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

/* ---------- app frame ---------- */
.app { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }

/* ---------- sidebar rail ---------- */
.rail {
  background: var(--rail);
  color: #E9E4D7;
  position: sticky; top: 0; align-self: start;
  height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 16px;
  border-right: 1px solid #000;
}
.brand { display: flex; align-items: baseline; gap: 9px; padding: 4px 8px 22px; }
.brand .mark {
  font-family: var(--font-display);
  font-weight: 600; font-size: 27px; letter-spacing: -.02em; color: #fff;
}
.brand .mark b { color: var(--accent); font-style: italic; }
.brand .tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: #8A8472; padding-bottom: 4px;
}

.rail nav { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.rail .nav-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: #8A8472; padding: 16px 10px 6px;
}
.rail a.item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--radius);
  color: #B9B3A4; font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.rail a.item svg { width: 17px; height: 17px; stroke-width: 1.6; flex: none; }
.rail a.item:hover { background: #221F18; color: #EDE8DB; }
.rail a.item.active { background: var(--accent-on); color: #fff; }
.rail a.item.active svg { color: #fff; }
.rail a.item .count {
  margin-left: auto; font-family: var(--font-mono); font-size: 10.5px;
  background: #2A261D; color: #C9C3B2; padding: 1px 6px; border-radius: 20px;
}
.rail a.item.active .count { background: rgba(255,255,255,.22); color:#fff; }

.rail .spacer { flex: 1; }
.rail .me {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-top: 1px solid #2A261D; margin-top: 10px;
}
.rail .me .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#E8482A,#BE851A); flex:none; display:grid; place-items:center; color:#fff; font-weight:700; font-size:12px; }
.rail .me .who { line-height: 1.2; }
.rail .me .who b { font-size: 12.5px; color:#EDE8DB; font-weight:600; }
.rail .me .who span { font-family: var(--font-mono); font-size: 9.5px; color:#8A8472; }

/* ---------- main column ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 0 30px; height: 60px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar .crumb { font-family: var(--font-mono); font-size: 10.5px; letter-spacing:.14em; text-transform: uppercase; color: var(--ink-3); }
.topbar .crumb b { color: var(--ink); }

.profile-pill {
  display:flex; align-items:center; gap:8px; margin-left:auto;
  border:1px solid var(--line-2); border-radius: 30px; padding: 5px 6px 5px 12px;
  background: var(--card); cursor: pointer;
}
.profile-pill .dot { width:8px; height:8px; border-radius:50%; background: var(--st-published); }
.profile-pill span { font-size:12.5px; font-weight:600; }
.profile-pill .avs { display:flex; }
.profile-pill .avs i {
  width:22px;height:22px;border-radius:50%; display:grid; place-items:center;
  font-style: normal; font-size:10px; font-weight:700; color:#fff; margin-left:-6px; border:2px solid var(--card);
}

.icon-btn {
  width:34px;height:34px;border-radius:var(--radius); border:1px solid var(--line-2);
  background: var(--card); display:grid; place-items:center; cursor:pointer; color:var(--ink-2);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width:16px;height:16px; stroke-width:1.7; }

.content { padding: 30px; flex: 1; }
.content.flush { padding: 0; }

/* ---------- page header ---------- */
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom: 24px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 560; font-size: 38px;
  letter-spacing: -.02em; line-height: 1; color: var(--ink);
}
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head .btn.accent { padding: 11px 20px; font-size: 14px; }
.page-head .sub { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.page-head .sub b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display:inline-flex; align-items:center; gap:8px; cursor:pointer;
  font-family: var(--font-body); font-weight:600; font-size:13px;
  padding: 9px 15px; border-radius: var(--radius); border:1px solid var(--ink);
  background: var(--solid); color: var(--solid-ink); transition: transform .08s, background .15s;
}
.btn:hover { background: color-mix(in srgb, var(--solid) 82%, #000); }
.btn:active { transform: translateY(1px); }
.btn svg { width:15px;height:15px; stroke-width:2; }
.btn.accent { background: var(--accent-on); border-color: var(--accent-on); color:#fff; }
.btn.accent:hover { background: color-mix(in srgb, var(--accent-on) 86%, #000); border-color: color-mix(in srgb, var(--accent-on) 86%, #000); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--card); }
.btn.sm { padding: 6px 11px; font-size: 12px; }

/* ---------- chips / badges ---------- */
.chip {
  display:inline-flex; align-items:center; gap:6px;
  font-family: var(--font-mono); font-size:10px; letter-spacing:.04em;
  padding: 3px 8px; border-radius: 30px; border:1px solid var(--line-2); color: var(--ink-2);
  text-transform: uppercase; white-space: nowrap;
}
.chip .dot { width:6px;height:6px;border-radius:50%; }
.st-draft     { color:var(--st-draft-text);     border-color: color-mix(in srgb,var(--st-draft) 40%, var(--line)); }
.st-scheduled { color:var(--st-scheduled); border-color: color-mix(in srgb,var(--st-scheduled) 40%, var(--line)); }
.st-approval  { color:var(--st-approval-text);  border-color: color-mix(in srgb,var(--st-approval) 45%, var(--line)); }
.st-published { color:var(--st-published); border-color: color-mix(in srgb,var(--st-published) 40%, var(--line)); }
.st-failed    { color:var(--st-failed);    border-color: color-mix(in srgb,var(--st-failed) 45%, var(--line)); }
.st-draft .dot{background:var(--st-draft)} .st-scheduled .dot{background:var(--st-scheduled)}
.st-approval .dot{background:var(--st-approval)} .st-published .dot{background:var(--st-published)}
.st-failed .dot{background:var(--st-failed)}

.net { width:18px;height:18px;border-radius:5px; display:inline-grid; place-items:center; color:#fff; font-size:10px; font-weight:800; flex:none; }
.net.ig { background: radial-gradient(120% 120% at 30% 110%, #FEDA75, #FA7E1E 28%, #D62976 60%, #962FBF 85%, #4F5BD5); }
.net.fb { background: var(--fb); }

/* ---------- cards / panels ---------- */
.card { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { background: var(--card); border:1px solid var(--line); border-radius: var(--radius); }

.kpis { display:grid; grid-template-columns: repeat(4,1fr); gap:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--card); margin-bottom: 26px; }
.kpi { padding:18px 20px; border-right:1px solid var(--line); }
.kpi:last-child{border-right:none}
.kpi .label { font-family:var(--font-mono); font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); }
.kpi .val { font-family:var(--font-display); font-size:32px; font-weight:560; letter-spacing:-.02em; margin-top:6px; }
.kpi .delta { font-family:var(--font-mono); font-size:12px; font-weight:600; margin-top:2px; }
.kpi .delta.up { color:var(--st-published); } .kpi .delta.down{ color:var(--st-failed); }

/* ---------- calendar ---------- */
.cal-toolbar { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.seg { display:flex; border:1px solid var(--line-2); border-radius:var(--radius); overflow:hidden; }
.seg button { font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; padding:7px 13px; background:var(--card); border:none; cursor:pointer; color:var(--ink-2); border-right:1px solid var(--line); }
.seg button:last-child{border-right:none}
.seg button.on { background:var(--solid); color:var(--solid-ink); }

.cal { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--card); }
.cal-dow { display:grid; grid-template-columns: repeat(7,1fr); background:var(--paper-2); border-bottom:1px solid var(--line); }
.cal-dow div { padding:9px 12px; font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); border-right:1px solid var(--line); }
.cal-dow div:last-child{border-right:none}
.cal-grid { display:grid; grid-template-columns: repeat(7,1fr); grid-auto-rows: 132px; }
.cal-cell { border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:7px; position:relative; overflow:hidden; }
.cal-cell:nth-child(7n){border-right:none}
.cal-cell.dim { background: color-mix(in srgb, var(--paper-2) 50%, var(--card)); }
.cal-cell .dnum { font-family:var(--font-mono); font-size:11px; color:var(--ink-3); }
.cal-cell.today .dnum { background:var(--accent-on); color:#fff; padding:1px 6px; border-radius:20px; }
.cal-cell:hover .add { opacity:1; }
.cal-cell .add { position:absolute; top:6px; right:6px; opacity:0; transition:opacity .12s; width:24px;height:24px;border-radius:4px;border:1px solid var(--line-2); background:var(--card); display:grid;place-items:center; color:var(--ink-2); cursor:pointer; font-size:13px; }

.ev { display:flex; align-items:center; gap:6px; margin-top:6px; padding:5px 7px; border-radius:4px; background:var(--paper); border:1px solid var(--line); cursor:pointer; transition:transform .08s, box-shadow .12s; }
.ev:hover{ transform:translateY(-1px); box-shadow:var(--shadow); }
.ev .bar{ width:3px; align-self:stretch; border-radius:3px; }
.ev .t { font-family:var(--font-mono); font-size:9.5px; color:var(--ink-3); }
.ev .txt { font-size:11px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ev.s-scheduled .bar{background:var(--st-scheduled)} .ev.s-approval .bar{background:var(--st-approval)}
.ev.s-published .bar{background:var(--st-published)} .ev.s-draft .bar{background:var(--st-draft)}
.ev.s-failed .bar{background:var(--st-failed)}

/* ---------- composer ---------- */
.composer { display:grid; grid-template-columns: 1fr 392px; gap:0; min-height: calc(100vh - 60px); }
.compose-left { padding:30px 34px; border-right:1px solid var(--line); }
.compose-right { padding:30px; background: color-mix(in srgb,var(--paper-2) 55%, var(--card)); }

.netbar { display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.net-toggle { display:flex; align-items:center; gap:8px; border:1px solid var(--line-2); background:var(--card); border-radius:30px; padding:5px 13px 5px 7px; cursor:pointer; font-weight:600; font-size:12.5px; }
.net-toggle.on { border-color:var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.net-toggle .x { font-family:var(--font-mono); font-size:10px; color:var(--ink-3); }

.tabs { display:flex; gap:2px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.tabs button { background:none; border:none; cursor:pointer; padding:10px 14px; font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--ink-3); border-bottom:2px solid transparent; margin-bottom:-1px; display:flex; align-items:center; gap:8px; }
.tabs button.on { color:var(--ink); border-bottom-color:var(--accent); }

.editor { border:1px solid var(--line-2); border-radius:var(--radius); background:var(--card); }
.editor textarea { width:100%; border:none; background:none; resize:none; padding:16px; font-family:var(--font-body); font-size:15px; line-height:1.6; color:var(--ink); outline:none; min-height:170px; }
.editor .foot { display:flex; align-items:center; gap:14px; padding:10px 14px; border-top:1px solid var(--line); }
.editor .foot .tool { color:var(--ink-2); cursor:pointer; display:grid;place-items:center; }
.editor .foot .tool svg{width:17px;height:17px;stroke-width:1.7}
.editor .foot .tool:hover{color:var(--accent)}
.editor .foot .count { margin-left:auto; font-family:var(--font-mono); font-size:11px; color:var(--ink-3); }
.editor .foot .count b{color:var(--ink)}
.editor .foot .count.warn b{color:var(--st-failed)}

.ai-row { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.ai-pill { display:inline-flex; align-items:center; gap:7px; border:1px dashed var(--accent); color:var(--accent-d); background:var(--accent-soft); border-radius:30px; padding:6px 12px; font-size:12px; font-weight:600; cursor:pointer; }
.ai-pill svg{width:14px;height:14px}

.field { margin-top:22px; }
.field > label { font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); display:block; margin-bottom:9px; }
.radioset { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.radio { display:flex; align-items:flex-start; gap:10px; border:1px solid var(--line-2); border-radius:var(--radius); padding:11px 13px; cursor:pointer; background:var(--card); }
.radio.on { border-color:var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.radio .r { width:15px;height:15px;border-radius:50%;border:1.5px solid var(--line-2); margin-top:2px; flex:none; }
.radio.on .r { border-color:var(--accent); background: radial-gradient(circle at center, var(--accent) 0 4px, transparent 5px); }
.radio b{font-size:12.5px} .radio span{display:block; font-size:11px; color:var(--ink-3); font-family:var(--font-mono); margin-top:2px;}

/* phone preview */
.preview-head { font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.phone { width:300px; margin:0 auto; background:#fff; border:1px solid var(--line-2); border-radius:22px; box-shadow:var(--shadow); overflow:hidden; }
.phone .pf-top { display:flex; align-items:center; gap:9px; padding:11px 12px; border-bottom:1px solid #EFEFEF; }
.phone .pf-top .pav{ width:30px;height:30px;border-radius:50%; }
.phone .pf-top .pn{ font-size:12.5px; font-weight:700; color:#111; } .phone .pf-top .pn span{ display:block; font-size:10px; color:#999; font-weight:500; font-family:var(--font-mono); }
.phone .pf-img { aspect-ratio: 1/1; background: linear-gradient(135deg,#F3C9A0,#E8482A 60%,#7a2f9b); display:grid; place-items:center; color:#fff; font-family:var(--font-display); font-style:italic; font-size:22px; }
.phone .pf-actions{ display:flex; gap:14px; padding:10px 12px 4px; color:#222; }
.phone .pf-actions svg{width:21px;height:21px; stroke-width:1.7}
.phone .pf-cap { padding:2px 12px 14px; font-size:12.5px; line-height:1.5; color:#222; }
.phone .pf-cap b{ font-weight:700; }
.phone .pf-cap .tags{ color:#385898; }

/* fb variant */
.phone.fb .pf-img{ aspect-ratio: 1.91/1; }
.phone.fb .pf-cap{ order:-1; }

/* ---------- list / table rows (approvals, accounts) ---------- */
.rows { border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--card); }
.row { display:flex; align-items:center; gap:16px; padding:16px 18px; border-bottom:1px solid var(--line); }
.row:last-child{border-bottom:none}
.row:hover{ background: color-mix(in srgb,var(--paper-2) 40%, var(--card)); }
.row .thumb{ width:46px;height:46px;border-radius:6px; flex:none; background:linear-gradient(135deg,#F3C9A0,#E8482A 60%,#7a2f9b); }
.row .grow{ flex:1; min-width:0; }
.row .grow .h{ font-weight:600; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row .grow .m{ font-family:var(--font-mono); font-size:11px; color:var(--ink-3); margin-top:3px; display:flex; gap:12px; flex-wrap:wrap; }
.row .acts{ display:flex; gap:8px; flex:none; }

/* approval flow dots */
.flow{ display:flex; align-items:center; gap:0; }
.flow .step{ display:flex; align-items:center; gap:7px; }
.flow .node{ width:22px;height:22px;border-radius:50%; display:grid; place-items:center; font-size:11px; border:1.5px solid var(--line-2); color:var(--ink-3); background:var(--card); }
.flow .node.done{ background:var(--st-published); border-color:var(--st-published); color:#fff; }
.flow .node.cur{ background:var(--accent); border-color:var(--accent); color:#fff; }
.flow .link{ width:26px; height:1.5px; background:var(--line-2); }
.flow .link.done{ background:var(--st-published); }

/* health bar */
.health{ display:flex; align-items:center; gap:9px; }
.health .track{ width:120px; height:6px; border-radius:6px; background:var(--paper-2); overflow:hidden; }
.health .fill{ height:100%; border-radius:6px; }

/* ---------- right meta column on accounts ---------- */
.two-col{ display:grid; grid-template-columns: 1fr 320px; gap:24px; align-items:start; }
.side-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.side-card h3{ font-family:var(--font-display); font-weight:560; font-size:19px; margin-bottom:4px; }
.side-card p{ font-size:12.5px; color:var(--ink-2); line-height:1.55; }

/* ---------- misc ---------- */
.note{ font-family:var(--font-mono); font-size:11px; color:var(--ink-3); }
.divider{ height:1px; background:var(--line); margin:22px 0; }
hr.acc{ border:none; height:2px; width:40px; background:var(--accent); margin:14px 0; }

/* staggered entrance */
@keyframes rise { from { opacity:0; transform: translateY(10px);} to{opacity:1;transform:none;} }
.rise { opacity:0; animation: rise .5s cubic-bezier(.2,.7,.3,1) forwards; }
.d1{animation-delay:.04s}.d2{animation-delay:.09s}.d3{animation-delay:.14s}.d4{animation-delay:.19s}
.d5{animation-delay:.24s}.d6{animation-delay:.29s}.d7{animation-delay:.34s}.d8{animation-delay:.39s}

/* index / cover */
.cover{ min-height:100vh; display:flex; flex-direction:column; }
.cover-top{ display:flex; align-items:center; justify-content:space-between; padding:22px 40px; border-bottom:1px solid var(--line); }
.cover-hero{ flex:1; display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center; padding:0 40px; max-width:1240px; margin:0 auto; width:100%; }
.cover-hero h1{ font-family:var(--font-display); font-weight:540; font-size:74px; line-height:.96; letter-spacing:-.03em; }
.cover-hero h1 em{ font-style:italic; color:var(--accent); }
.cover-hero p{ font-size:16px; color:var(--ink-2); margin-top:22px; max-width:46ch; line-height:1.6; }
.screen-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; padding:30px 40px 50px; max-width:1240px; margin:0 auto; width:100%; }
.screen-card{ display:block; border:1px solid var(--line); border-radius:var(--radius); background:var(--card); overflow:hidden; transition:transform .12s, box-shadow .15s; }
.screen-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.screen-card .cap{ display:flex; align-items:baseline; justify-content:space-between; padding:16px 18px; border-top:1px solid var(--line); }
.screen-card .cap b{ font-family:var(--font-display); font-size:20px; font-weight:560; }
.screen-card .cap .n{ font-family:var(--font-mono); font-size:10px; color:var(--ink-3); letter-spacing:.1em; }
.thumb-wrap{ aspect-ratio:16/10; background:var(--paper-2); position:relative; overflow:hidden; }

@media (max-width: 1080px){ .composer{grid-template-columns:1fr} .compose-right{border-top:1px solid var(--line)} .two-col{grid-template-columns:1fr} .cover-hero{grid-template-columns:1fr} .cover-hero h1{font-size:54px} }

/* taller nav (expanded IA) — keep footer pinned, scroll nav if needed */
.rail nav { overflow-y: auto; min-height: 0; flex-shrink: 1; }
.rail nav::-webkit-scrollbar { width: 0; }

/* ===========================================================================
   Empty / first-run states
   =========================================================================== */
.empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  padding:62px 30px; border:1px dashed var(--line-2); border-radius:var(--radius); background:var(--card); }
.empty .ico { width:62px; height:62px; border-radius:50%; display:grid; place-items:center;
  background:var(--paper-2); color:var(--accent); margin-bottom:18px; }
.empty .ico svg { width:27px; height:27px; stroke-width:1.5; }
.empty h3 { font-family:var(--font-display); font-weight:560; font-size:25px; letter-spacing:-.01em; }
.empty h3 em { font-style:italic; color:var(--accent); }
.empty p { font-size:14px; color:var(--ink-2); max-width:44ch; margin-top:9px; line-height:1.6; }
.empty .actions { display:flex; gap:10px; margin-top:22px; flex-wrap:wrap; justify-content:center; }
.empty .hint { font-family:var(--font-mono); font-size:11px; color:var(--ink-3); margin-top:18px; }

/* ===========================================================================
   Responsive — tablet then phone (rail collapses to a bottom tab bar)
   =========================================================================== */
@media (max-width: 1000px) {
  /* stack every page-specific two/three-column layout */
  .two-col, .composer, .an-grid, .wiz-grid, .cd-body, .listen-grid, .settings,
  .tg-grid, .build, .post-grid, .cases, .inbox, .queue, .fields, .mini, .wf-grid, .case {
    grid-template-columns: 1fr !important;
  }
  .cases, .inbox, .cd-body, .composer { height: auto !important; min-height: 0 !important; }
  .compose-right { border-left: none; border-top: 1px solid var(--line); }
  .compose-left { border-right: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .app { grid-template-columns: 1fr; }

  /* rail -> fixed bottom tab bar (icon + tiny label, horizontal scroll) */
  .rail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: auto;
    flex-direction: row; align-items: stretch; padding: 4px 6px; gap: 0;
    border-right: none; border-top: 1px solid #000; overflow-x: auto; z-index: 60; }
  .rail .brand, .rail .nav-label, .rail .spacer, .rail .me { display: none; }
  .rail nav { flex-direction: row; gap: 2px; margin: 0; overflow-x: auto; }
  .rail nav::-webkit-scrollbar { height: 0; }
  .rail a.item { flex-direction: column; align-items: center; gap: 3px; padding: 7px 11px;
    font-size: 9px; white-space: nowrap; border-radius: 8px; }
  .rail a.item svg { width: 19px; height: 19px; }
  .rail a.item .count { display: none; }
  .main { padding-bottom: 66px; }

  .topbar { height: 54px; padding: 0 16px; gap: 10px; }
  .topbar .crumb { font-size: 9px; }
  .profile-pill span { display: none; }
  .profile-pill { padding: 5px; }

  .content { padding: 16px; }
  .content.flush { padding: 0; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-head h1 { font-size: 27px; }

  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-right: none; border-bottom: 1px solid var(--line); }

  /* calendar scrolls horizontally on phones */
  .cal { overflow-x: auto; }
  .cal-dow, .cal-grid { min-width: 680px; }

  .phone { width: 100%; max-width: 320px; }
  .empty { padding: 46px 20px; }
  .axis, .lane { grid-template-columns: 90px 1fr; }
  .stepper { overflow-x: auto; }
}

/* ===========================================================================
   Polish — focus rings, smoother interactions, scrollbars
   =========================================================================== */
.btn, .icon-btn, .net-toggle, .seg button, .radio, .view, .chip, a.item, .tabs button { transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .08s; }
:where(a, button, .btn, .icon-btn, input, textarea, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.btn.accent:focus-visible, .bulkbar :focus-visible { outline-color: var(--ink); outline-offset: 2px; }
.btn:active, .icon-btn:active { transform: translateY(1px); }
.main ::-webkit-scrollbar { width: 10px; height: 10px; }
.main ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
.main ::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: content-box; }

/* ===========================================================================
   Overlays & modals
   =========================================================================== */
.overlay { position: fixed; inset: 0; background: rgba(22,20,15,.46); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 28px; z-index: 100; animation: fade .18s ease both; }
.overlay.right { place-items: stretch; justify-content: end; padding: 0; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 24px 70px -24px rgba(22,20,15,.5); width: 100%; max-width: 460px; padding: 26px;
  animation: pop .22s cubic-bezier(.2,.7,.3,1) both; }
.modal.wide { max-width: 600px; }
.modal .m-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--accent); margin-bottom: 16px; }
.modal.danger .m-ico { background: color-mix(in srgb, var(--st-failed) 14%, var(--card)); color: var(--st-failed); }
.modal .m-ico svg { width: 23px; height: 23px; stroke-width: 1.8; }
.modal h3 { font-family: var(--font-display); font-weight: 560; font-size: 22px; letter-spacing: -.01em; }
.modal > p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin-top: 8px; }
.modal .m-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.btn.danger { background: var(--st-failed); border-color: var(--st-failed); color: #fff; }
.btn.danger:hover { background: #a8341d; border-color: #a8341d; }

/* drawer (right slide-in) */
.drawer { width: 400px; max-width: 92vw; height: 100vh; background: var(--card); border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px -30px rgba(22,20,15,.5); display: flex; flex-direction: column; animation: slidein .22s ease both; }
.drawer .d-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer .d-head h3 { font-family: var(--font-display); font-weight: 560; font-size: 19px; }
.drawer .d-body { flex: 1; overflow-y: auto; }

/* ===========================================================================
   Skeleton / loading shimmer
   =========================================================================== */
.skel { position: relative; overflow: hidden; background: var(--paper-2); border-radius: 4px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card) 70%, transparent), transparent);
  animation: shimmer 1.5s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel.line { height: 10px; } .skel.line.lg { height: 26px; } .skel.block { height: 100%; }

/* ===========================================================================
   Toast
   =========================================================================== */
.toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast { display: flex; align-items: center; gap: 12px; background: var(--solid); color: var(--solid-ink);
  border-radius: var(--radius); padding: 12px 15px; box-shadow: var(--shadow); min-width: 280px; animation: pop .22s ease both; }
.toast .t-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.toast.ok .t-ico { background: var(--st-published); } .toast.err .t-ico { background: var(--st-failed); }
.toast .t-msg { font-size: 13px; } .toast .t-msg b { font-weight: 600; }

/* ===========================================================================
   Command palette (Cmd+K)
   =========================================================================== */
.cmdk { width: 580px; max-width: 94vw; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 30px 80px -28px rgba(22,20,15,.55); overflow: hidden; animation: pop .2s ease both; align-self: start; margin-top: 12vh; }
.cmdk .cmd-in { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk .cmd-in svg { width: 18px; height: 18px; color: var(--ink-3); }
.cmdk .cmd-in input { flex: 1; border: none; background: none; outline: none; font-family: var(--font-body); font-size: 16px; color: var(--ink); }
.cmdk .cmd-in kbd { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 6px; }
.cmdk .cmd-grp { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 12px 18px 5px; }
.cmdk .cmd-row { display: flex; align-items: center; gap: 12px; padding: 9px 18px; cursor: pointer; }
.cmdk .cmd-row svg { width: 16px; height: 16px; color: var(--ink-2); flex: none; }
.cmdk .cmd-row.on, .cmdk .cmd-row:hover { background: var(--accent-on); color: #fff; }
.cmdk .cmd-row.on svg, .cmdk .cmd-row:hover svg { color: #fff; }
.cmdk .cmd-row .k { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.cmdk .cmd-row.on .k { color: rgba(255,255,255,.8); }

/* ===========================================================================
   Dark theme — warm espresso canvas, same persimmon accent
   Applied via <html data-theme="dark">; socio-theme.js auto-detects the OS
   preference and renders the floating toggle. The .phone IG/FB previews keep
   their light treatment on purpose — they mimic the real social apps.
   =========================================================================== */
html[data-theme="dark"] {
  --paper:#17130E; --paper-2:#1F1A14; --card:#241E16;
  --ink:#F2EBDD; --ink-2:#BDB4A2; --ink-3:#897F6D;
  --line:#342E25; --line-2:#483F34;
  --accent:#F2583B; --accent-d:#E8482A; --accent-soft:#3A2017;
  --st-draft:#9E978A; --st-scheduled:#41A89F; --st-approval:#D8A33D;
  --st-published:#5EAB6F; --st-failed:#E55E44; --st-approval-text:#D8A33D; --st-draft-text:#9E978A;
  --rail:#100C08; --solid:#F1EADD; --solid-ink:#1A1610;
  --shadow: 0 1px 1px rgba(0,0,0,.30), 0 4px 12px -4px rgba(0,0,0,.45), 0 12px 28px -12px rgba(0,0,0,.55);
}
html[data-theme="dark"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .phone { box-shadow: 0 14px 36px -18px rgba(0,0,0,.85); }

/* floating theme toggle (injected by socio-theme.js) */
#socio-theme-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 200;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  transition: color .15s, border-color .15s, transform .08s;
}
#socio-theme-toggle:hover { color: var(--accent); border-color: var(--ink); }
#socio-theme-toggle:active { transform: translateY(1px); }
#socio-theme-toggle svg { width: 19px; height: 19px; stroke-width: 1.7; fill: none; stroke: currentColor; }
@media (max-width: 620px) { #socio-theme-toggle { bottom: 74px; right: 12px; width: 38px; height: 38px; } }
/* topbar-anchored variant (set by socio-theme.js when a .topbar exists) — no longer a floating FAB */
#socio-theme-toggle[data-in-bar] { position: static; right: auto; bottom: auto; box-shadow: none; width: 34px; height: 34px; border-radius: var(--radius); }

/* ===========================================================================
   Accessibility — screen-reader utility + reduced-motion guard
   =========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ===========================================================================
   Shared interaction components (consistency engine — see docs/ux standards)
   Canonical switch · list bulk-select · attention row · keyboard cheat-sheet.
   Reused across all list/table/settings screens; activated by markup
   (role=switch, [data-listnav], .ck checkboxes, .bulkbar, [data-kbd-help]).
   =========================================================================== */
.switch { width: 42px; height: 24px; border-radius: 30px; background: var(--paper-2); border: 1px solid var(--line-2); position: relative; flex: none; cursor: pointer; transition: background .18s, border-color .18s; display: inline-block; vertical-align: middle; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.switch.on, .switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch.on::after, .switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch.sm { width: 34px; height: 20px; } .switch.sm::after { width: 14px; height: 14px; } .switch.sm.on::after, .switch.sm[aria-checked="true"]::after { transform: translateX(14px); }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* list bulk-select (generic) */
.ck { position: relative; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .12s; flex: none; }
.ck::before { content: ""; position: absolute; inset: -4px; }
.rows:hover .ck, [data-listnav]:hover .ck, [data-listnav].has-sel .ck, .row.checked .ck, [role="option"].checked .ck { opacity: 1; }
.ck.on { background: var(--accent); border-color: var(--accent); }
.ck svg { width: 11px; height: 11px; color: #fff; opacity: 0; stroke-width: 3; }
.ck.on svg { opacity: 1; }
.row.checked, [role="option"].checked { background: color-mix(in srgb, var(--accent-soft) 24%, var(--card)); }

.bulkbar { display: none; align-items: center; gap: 8px; padding: 9px 16px; background: var(--accent-on); color: #fff; flex: none; }
[data-listnav].has-sel ~ .bulkbar, .has-sel > .bulkbar, .bulkbar.show { display: flex; }
.bulkbar .cnt { font-weight: 700; font-size: 13px; }
.bulkbar .bb-act { border: 1px solid rgba(255,255,255,.42); color: #fff; background: transparent; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bulkbar .bb-act svg { width: 13px; height: 13px; stroke-width: 2; }
.bulkbar .bb-act:hover { background: rgba(255,255,255,.16); }
.bulkbar .bb-x { margin-left: auto; cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; }
.bulkbar .bb-x svg { width: 16px; height: 16px; }

/* selectable / attention rows + keyboard focus (generic) */
[data-listnav] [role="option"], [data-listnav] .row { cursor: pointer; }
.row.sel, [role="option"][aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); }
[data-listnav]:focus-visible, [data-listnav] [role="option"]:focus-visible, .row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.attn { box-shadow: inset 3px 0 0 var(--st-failed); }
.attn.warn { box-shadow: inset 3px 0 0 var(--st-approval); }

/* keyboard cheat-sheet (shared overlay body) */
.kbd-help { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; }
.kbd-help .kr { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.kbd-help .kr kbd { font-family: var(--font-mono); font-size: 11px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 7px; color: var(--ink); }
.kbd-hint { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 30px; padding: 3px 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.kbd-hint:hover { border-color: var(--ink); color: var(--ink); }

/* row hover quick-actions (generic) */
[data-listnav] .row, [data-listnav] [role="option"] { position: relative; }
.qa { position: absolute; right: 12px; top: 10px; display: flex; gap: 3px; opacity: 0; transition: opacity .12s; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 3px; box-shadow: var(--shadow); z-index: 2; }
@media (hover: none) { .ck, .qa, .cal-cell .add { opacity: 1; } }
.row:hover .qa, [role="option"]:hover .qa { opacity: 1; }
.qa button { width: 26px; height: 26px; border: none; background: none; border-radius: 5px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.qa button:hover { background: var(--paper-2); color: var(--ink); }
.qa svg { width: 15px; height: 15px; stroke-width: 1.8; }

/* ===========================================================================
   Enterprise hardening — UX-wave v2 (skip-link, account menu, data-table
   engine, identity/security surfaces). All built from existing tokens so dark
   theme + AA contrast carry over automatically.
   =========================================================================== */

/* --- skip link (visually hidden until focused) --- */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; transform: translateY(-160%);
  background: var(--solid); color: var(--solid-ink); font-size: 13px; font-weight: 600;
  padding: 9px 15px; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: transform .16s; }
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- account / sign-out menu on the .me rail pill --- */
.menu-host { position: relative; }
.me-menu { position: absolute; left: 12px; right: 12px; bottom: calc(100% + 8px); z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 5px; }
.me-menu[hidden] { display: none; }
.me-menu [role="menuitem"] { display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-body); font-size: 13px; color: var(--ink); padding: 8px 10px; border-radius: 5px; cursor: pointer; text-decoration: none; }
.me-menu [role="menuitem"]:hover, .me-menu [role="menuitem"]:focus-visible { background: var(--paper-2); outline: none; }
.me-menu .me-sep { height: 1px; background: var(--line); margin: 5px 2px; }
.me-menu .me-signout { color: var(--accent-d); font-weight: 600; }
.rail .me { cursor: pointer; }

/* --- generic data-table engine: sortable headers + pager + select-all --- */
[data-sort-key] { cursor: pointer; background: none; border: none; font: inherit; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px; padding: 0; }
[data-sort-key]:hover { color: var(--ink); }
[data-sort-key] .th-arr { font-size: 9px; opacity: 0; transition: opacity .12s, transform .12s; color: var(--accent-d); }
[data-sort-key]:hover .th-arr { opacity: .5; }
[data-sort-key][data-sort="asc"], [data-sort-key][data-sort="desc"] { color: var(--ink); font-weight: 600; }
[data-sort-key][data-sort="asc"] .th-arr, [data-sort-key][data-sort="desc"] .th-arr { opacity: 1; }
[data-sort-key][data-sort="desc"] .th-arr { transform: rotate(180deg); }
th[aria-sort] { white-space: nowrap; }
.ck[data-select-all] { opacity: 1; }
.dt-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 11px 2px 2px; margin-top: 10px; border-top: 1px solid var(--line); }
.dt-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.dt-count b { color: var(--ink); font-weight: 600; }
.dt-pager { display: inline-flex; align-items: center; gap: 8px; }
.dt-pageno { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.dt-pg { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 5px 11px; cursor: pointer; }
.dt-pg:hover:not(:disabled) { border-color: var(--ink); background: var(--card); }
.dt-pg:disabled { opacity: .4; cursor: default; }

/* --- identity / security surfaces (settings, 2FA setup) --- */
.mfa-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10px;
  font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 30px; border: 1px solid var(--line-2); color: var(--ink-2); }
.mfa-badge.on { color: var(--st-published); border-color: color-mix(in srgb, var(--st-published) 40%, var(--line-2)); background: color-mix(in srgb, var(--st-published) 9%, transparent); }
.mfa-badge.off { color: var(--st-failed); border-color: color-mix(in srgb, var(--st-failed) 40%, var(--line-2)); background: color-mix(in srgb, var(--st-failed) 8%, transparent); }
.mfa-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.sess-list { display: flex; flex-direction: column; gap: 0; }
.sess { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-top: 1px solid var(--line); }
.sess:first-child { border-top: none; }
.sess .s-ico { width: 34px; height: 34px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink-2); }
.sess .s-ico svg { width: 18px; height: 18px; stroke-width: 1.7; }
.sess .s-meta { flex: 1; min-width: 0; }
.sess .s-meta b { font-size: 13.5px; font-weight: 600; }
.sess .s-meta .s-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.sess .s-here { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--st-published);
  border: 1px solid color-mix(in srgb, var(--st-published) 40%, var(--line-2)); border-radius: 30px; padding: 2px 8px; }

.sso-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.sso-card .s-ico { width: 38px; height: 38px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-weight: 700; }
.sso-card .s-body { flex: 1; min-width: 0; }
.sso-card .s-body b { font-size: 14px; }
.sso-card .s-body p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.backup-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin: 14px 0;
  padding: 16px; background: var(--paper-2); border: 1px dashed var(--line-2); border-radius: 8px; }
.backup-codes code { font-family: var(--font-mono); font-size: 14px; letter-spacing: .04em; color: var(--ink); }

.danger-zone { border: 1px solid color-mix(in srgb, var(--st-failed) 45%, var(--line)); border-radius: 8px; overflow: hidden; }
.danger-zone > .dz-head { background: color-mix(in srgb, var(--st-failed) 8%, var(--card)); padding: 12px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--st-failed) 30%, var(--line)); }
.danger-zone > .dz-head b { font-family: var(--font-display); font-weight: 560; font-size: 16px; color: var(--st-failed); }
.danger-zone .dz-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.danger-zone .dz-row:first-of-type { border-top: none; }
.danger-zone .dz-row .dz-txt { flex: 1; min-width: 0; }
.danger-zone .dz-row .dz-txt b { font-size: 13.5px; }
.danger-zone .dz-row .dz-txt p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.5; }
