/* NEXLUNE AI — Social Studio styles (Studio 8, v40 + YouTube module §12).
   Aurora premium (v34.1 design system): the --nx-* tokens from
   style.css:3241 are the ONLY gradient/fill source — --nx-fill for
   every text-bearing fill (active tabs/chips, CTAs, icon tiles),
   --nx-aurora for decorative 2px hairlines/glows, --nx-word for
   gradient display words. Cyan (#22D3EE) is decorative ONLY — white
   on cyan is 1.9:1, so no text ever sits on a cyan fill.
   Glass cards: surface + blur + aurora top hairline, radius 20-22px.
   .btn/.btn-lime/.btn-ghost/.btn-sm come from style.css and are
   never redeclared here. Dark is the default; the light block below
   re-pins every status colour so chips stay WCAG AA in BOTH themes
   (verified by social/social_contrast.py — 0 failures).
   NOTE: the light-theme status text colours here are deliberately
   DARKER than automation.css's (its #1d8a4e / #b97a16 / #178a7d
   fall below 4.5:1 on a white surface).
   Quality bar (§0.9, user order 23 Nov 00:48): the look must feel
   MORE advanced than Daraz's — Daraz is the POLISH benchmark only
   (smooth, rich, modern, mobile-first), never the design
   reference. So: layered glass depth (blur + aurora hairline +
   glow shadow), Sora display type on the hero and stat numbers,
   CSS-only micro-interactions everywhere (card lift + glow,
   button press, tab underline slide, calendar-card hover), and
   impeccable 390px layouts. Strictly Aurora, strictly on-topic
   for an AI tools platform — no e-commerce styling, no
   marketplace patterns (no product grids, no price tags, no
   cart/checkout idioms). The global prefers-reduced-motion rule
   in style.css already stills every transition here. */

:root{
  --sc-ok:#2fbf71; --sc-ok-bg:rgba(47,191,113,.14);
  --sc-warn:#e8a33d; --sc-warn-bg:rgba(232,163,61,.14);
  --sc-err:#ff8585; --sc-err-bg:rgba(255,90,90,.12);
  --sc-violet:#8b7cff; --sc-violet-bg:rgba(139,124,255,.14);
  --sc-blue:#5b8def; --sc-blue-bg:rgba(91,141,239,.14);
  --sc-teal:#2fbfae; --sc-teal-bg:rgba(47,191,174,.14);
  --sc-arch:#9aa3c0; --sc-arch-bg:rgba(154,163,192,.16);
  /* Brighter violet for the small guide-list check icon, whose bg
     is the violet tint over surface2 (the plain --sc-violet is
     4.34:1 there — below AA; #b7aeff clears it). */
  --sc-violet-hi:#b7aeff;
  /* Platform tiles: white glyphs, 3:1+ on every tile (decorative
     brand colours only — no text ever sits on a brand colour). */
  --sc-fb:#1877f2; --sc-ig:#c13584; --sc-yt:#cc0000;
  --sc-tt:#181818; --sc-li:#0a66c2;
}
html[data-theme="light"]{
  --sc-ok:#157347; --sc-ok-bg:rgba(21,115,71,.10);
  --sc-warn:#8a5a00; --sc-warn-bg:rgba(138,90,0,.10);
  --sc-err:#c81e1e; --sc-err-bg:rgba(200,30,30,.08);
  --sc-violet:#4a3bc2; --sc-violet-bg:rgba(74,59,194,.10);
  --sc-blue:#2f66c9; --sc-blue-bg:rgba(47,102,201,.10);
  --sc-teal:#0f766e; --sc-teal-bg:rgba(15,118,110,.10);
  --sc-arch:#565b74; --sc-arch-bg:rgba(86,91,116,.12);
  --sc-violet-hi:#4a3bc2;
  --sc-tt:#181818;
}

/* ---- layout ---- */
.sc-wrap{max-width:1180px;margin:0 auto;padding:calc(var(--header) + 28px) 20px 60px;position:relative}
/* Ambient aurora wash behind the page (decorative only, very low
   alpha — it never sits behind text, only behind the glass cards). */
.sc-wrap::before{content:"";position:absolute;inset:0 0 auto 0;height:420px;background:radial-gradient(640px 300px at 12% 0%,rgba(109,93,240,.10),transparent 60%),radial-gradient(560px 260px at 92% 40px,rgba(34,211,238,.07),transparent 60%);pointer-events:none;z-index:0}
.sc-wrap>*{position:relative;z-index:1}
.sc-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.sc-back{font-weight:800;text-decoration:none;font-size:14px;color:var(--muted);white-space:nowrap;padding-top:14px}
.sc-back:hover{color:var(--text)}
.sc-lead{color:var(--muted);max-width:680px;line-height:1.6;margin:8px 0 0}

/* ---- aurora hero strip (fixed dark in BOTH themes — mirrors the
   v34.1 #page-team .page-hero: same navy gradient, same blob alphas
   (.16 cyan / .18 fuchsia, right side, away from the heading), so
   the d1_contrast.py hero pairs transfer verbatim).
   W4b: overflow:clip (NOT hidden) — the 420/360px aurora blobs
   inflate the hero's scrollable overflow to ~568px; with hidden,
   any scrollIntoView/focus inside the hero scrolls it internally
   and clips its own h1 (found by the visual harness: hero
   scrollTop jumped to 78px and the title vanished). clip keeps the
   rounded-corner clipping but the box can never scroll. ---- */
.sc-hero{position:relative;overflow:clip;background:linear-gradient(120deg,#070a1a 0%,#0b1030 42%,#1b1440 78%,#241547 100%);border:1px solid rgba(139,124,255,.28);border-radius:22px;padding:28px 28px 26px;margin:18px 0 22px;box-shadow:0 18px 44px rgba(0,0,0,.18)}
.sc-hero::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:#22d3ee;filter:blur(130px);opacity:.16;right:-80px;top:-230px;pointer-events:none;animation:nxdrift 14s ease-in-out infinite alternate}
.sc-hero::after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;background:#c026d3;filter:blur(130px);opacity:.18;right:16%;bottom:-290px;pointer-events:none;animation:nxdrift 18s ease-in-out infinite alternate-reverse}
.sc-hero-in{position:relative;z-index:1}
.sc-hero .tag-pill{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.sc-hero h1{color:#fff;margin:12px 0 8px;font-size:34px;letter-spacing:-.02em;line-height:1.1;font-family:"Sora",sans-serif;font-weight:800}
.sc-hero h1 em{background:var(--nx-word);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;font-style:normal}
.sc-hero p{color:rgba(255,255,255,.84);max-width:640px;line-height:1.6;margin:0}
.sc-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.sc-hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.08)}
.sc-hero .btn-ghost:hover{border-color:rgba(255,255,255,.6);background:rgba(255,255,255,.14)}

/* ---- sub-nav tabs (Dashboard / Calendar / Composer / Accounts /
   Analytics / YouTube) ---- */
.sc-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 20px;border-bottom:1px solid var(--line)}
.sc-tab{background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);font-weight:800;font-size:14.5px;padding:10px 14px;cursor:pointer;margin-bottom:-1px;text-decoration:none;transition:color .2s ease,border-color .2s ease}
.sc-tab:hover{color:var(--text)}
.sc-tab-active{color:var(--text);border-bottom-color:var(--nx-violet)}

/* ---- glass cards + stats (layered depth: blur + hairline + glow;
   hover lifts the card and deepens the aurora glow) ---- */
.sc-card{position:relative;overflow:hidden;background:linear-gradient(165deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 14px 34px rgba(0,0,0,.08),0 0 0 1px rgba(109,93,240,.04);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.sc-card:hover{transform:translateY(-2px);border-color:rgba(109,93,240,.35);box-shadow:0 22px 48px rgba(20,24,60,.14),0 0 28px rgba(109,93,240,.10)}
.sc-card::before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:var(--nx-aurora);opacity:.85}
.sc-card h2{font-size:18px;margin:0 0 4px;letter-spacing:-.01em;font-family:"Sora",sans-serif;font-weight:700}
.sc-card-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.sc-card-h h2{margin:0}
.sc-card-link{font-size:13.5px;font-weight:800;text-decoration:none;color:var(--text);white-space:nowrap}
.sc-card-link:hover{color:var(--lime)}
.sc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:0 0 20px}
.sc-stat{position:relative;overflow:hidden;background:linear-gradient(165deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:0 14px 34px rgba(0,0,0,.08),0 0 0 1px rgba(109,93,240,.04);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.sc-stat:hover{transform:translateY(-2px);border-color:rgba(109,93,240,.35);box-shadow:0 22px 48px rgba(20,24,60,.14),0 0 28px rgba(109,93,240,.10)}
.sc-stat::before{content:"";position:absolute;inset:0 0 auto 0;height:2px;background:var(--nx-aurora);opacity:.85}
.sc-stat-num{font-size:32px;font-weight:800;line-height:1.1;color:var(--text);font-family:"Sora",sans-serif;letter-spacing:-.02em}
.sc-stat-label{font-size:12.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-top:6px}
.sc-stat-sub{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.5}
.sc-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.sc-grid3{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:16px}

/* ---- buttons ---- */
.sc-btn{display:inline-flex;align-items:center;gap:8px;background:var(--nx-fill);color:#fff;border:0;border-radius:12px;padding:12px 20px;font-size:15px;font-weight:800;cursor:pointer;text-decoration:none;box-shadow:0 8px 20px rgba(109,93,240,.4);transition:transform .2s ease,box-shadow .2s ease}
.sc-btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(109,93,240,.5)}
.sc-btn:active{transform:translateY(0) scale(.98)}
.sc-btn:disabled{opacity:.6;cursor:default;transform:none}
.sc-btn-sm{padding:9px 14px;font-size:13.5px;border-radius:10px}
.sc-btn-ghost{display:inline-flex;align-items:center;gap:8px;background:var(--surface2);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px 18px;font-size:15px;font-weight:800;cursor:pointer;text-decoration:none;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.sc-btn-ghost:hover{border-color:var(--nx-violet);transform:translateY(-1px);box-shadow:0 8px 18px rgba(109,93,240,.14)}
.sc-btn-ghost:active{transform:translateY(0) scale(.98)}
.sc-btn-ghost.sc-btn-sm{padding:9px 14px;font-size:13.5px;border-radius:10px}
.sc-btn-danger{display:inline-flex;align-items:center;gap:8px;background:var(--sc-err-bg);color:var(--sc-err);border:1px solid rgba(255,90,90,.4);border-radius:12px;padding:12px 18px;font-size:15px;font-weight:800;cursor:pointer;text-decoration:none}
.sc-btn-danger.sc-btn-sm{padding:9px 14px;font-size:13.5px;border-radius:10px}

/* ---- status chips (text on a 10-16% tint of itself — every pair
   is checked in social_contrast.py in BOTH themes) ---- */
.sc-chip{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:4px 9px;border-radius:999px;white-space:nowrap}
.sc-chip-draft{background:var(--sc-arch-bg);color:var(--sc-arch)}
.sc-chip-scheduled{background:var(--sc-violet-bg);color:var(--sc-violet)}
.sc-chip-pending_approval{background:var(--sc-warn-bg);color:var(--sc-warn)}
.sc-chip-approved{background:var(--sc-blue-bg);color:var(--sc-blue)}
.sc-chip-queued{background:var(--sc-blue-bg);color:var(--sc-blue)}
.sc-chip-publishing{background:var(--sc-teal-bg);color:var(--sc-teal)}
.sc-chip-published{background:var(--sc-ok-bg);color:var(--sc-ok)}
.sc-chip-failed{background:var(--sc-err-bg);color:var(--sc-err)}
.sc-chip-cancelled{background:var(--sc-arch-bg);color:var(--sc-arch)}
.sc-chip-connected{background:var(--sc-ok-bg);color:var(--sc-ok)}
.sc-chip-expired{background:var(--sc-warn-bg);color:var(--sc-warn)}
.sc-chip-revoked{background:var(--sc-err-bg);color:var(--sc-err)}
.sc-chip-error{background:var(--sc-err-bg);color:var(--sc-err)}

/* ---- forms ---- */
.sc-label{display:block;font-weight:800;font-size:13px;margin:0 0 6px;color:var(--text)}
.sc-input,.sc-textarea,.sc-select{width:100%;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:12px 14px;font-size:15px}
.sc-input,.sc-select{min-height:50px}
.sc-textarea{min-height:130px;resize:vertical;line-height:1.55}
.sc-input:focus,.sc-textarea:focus,.sc-select:focus{outline:2px solid var(--nx-violet);outline-offset:1px;border-color:var(--nx-violet)}
.sc-hint{color:var(--muted);font-size:13.5px;line-height:1.55;margin:6px 0 0}
.sc-field{margin-bottom:14px}
.sc-field-row{display:flex;gap:12px;flex-wrap:wrap}
.sc-field-row .sc-field{flex:1 1 200px}
.sc-check{display:flex;gap:9px;align-items:flex-start;font-weight:700;font-size:14px;cursor:pointer;color:var(--text)}
.sc-check input{margin-top:3px;width:17px;height:17px;accent-color:var(--nx-violet)}
.sc-error{display:none;background:var(--sc-err-bg);border:1px solid rgba(255,90,90,.45);border-radius:12px;padding:12px 14px;font-weight:600;margin-top:12px;color:var(--text)}
.sc-error.sc-show{display:block}
.sc-okmsg{display:none;background:var(--sc-ok-bg);border:1px solid rgba(47,191,113,.45);border-radius:12px;padding:12px 14px;font-weight:600;margin-top:12px;color:var(--text)}
.sc-okmsg.sc-show{display:block}
.sc-empty{border:1px dashed rgba(139,124,255,.4);border-radius:20px;padding:28px 20px;text-align:center;color:var(--muted);font-weight:600;background:linear-gradient(180deg,rgba(139,124,255,.07),rgba(255,255,255,.02));line-height:1.6}
.sc-empty b{color:var(--text)}
.sc-nudge{background:rgba(109,93,240,.10);border:1px solid rgba(109,93,240,.4);border-radius:16px;padding:16px 18px;margin-top:20px;font-weight:600;color:var(--text)}
.sc-nudge p{margin:0 0 12px;color:var(--text)}
.sc-nudge p:last-child{margin-bottom:0}

/* ---- tables ---- */
.sc-table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.sc-table{width:100%;border-collapse:collapse;font-size:14.5px}
.sc-table th,.sc-table td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--text)}
.sc-table th{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sc-table tr:last-child td{border-bottom:0}
.sc-table .sc-num{text-align:right;font-variant-numeric:tabular-nums}

/* ---- post rows (dashboard queue / recent) ---- */
.sc-list{display:grid;gap:10px;margin-top:4px}
.sc-post-row{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;padding:13px 15px;background:var(--surface2);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.sc-post-row:hover{border-color:rgba(109,93,240,.4);box-shadow:0 10px 24px rgba(20,24,60,.10);transform:translateY(-1px)}
.sc-post-row .sc-post-main{flex:1;min-width:0}
.sc-post-row b{display:block;font-size:14.5px;overflow-wrap:anywhere;color:var(--text)}
.sc-post-row .sc-post-meta{color:var(--muted);font-size:13px;font-weight:600;margin-top:3px;line-height:1.5}
.sc-post-row .sc-post-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.sc-post-row .sc-post-links a{font-size:13px;font-weight:800;text-decoration:none;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 11px}
.sc-post-row .sc-post-links a:hover{border-color:var(--nx-violet)}

/* ---- calendar ---- */
.sc-cal-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.sc-cal-bar h2{font-size:19px;flex:1 1 auto;min-width:160px;margin:0}
.sc-cal-bar .sc-select{width:auto;min-height:42px;padding:8px 12px;font-size:14px}
.sc-cal-view{display:flex;gap:6px}
.sc-cal-view button{background:var(--surface2);border:1px solid var(--line);border-radius:999px;color:var(--muted);font-weight:800;font-size:13.5px;padding:8px 14px;cursor:pointer}
.sc-cal-view button.sc-active{background:var(--nx-fill);border-color:transparent;color:#fff;box-shadow:0 8px 20px rgba(109,93,240,.4)}
.sc-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.sc-cal-grid.sc-week{grid-template-columns:repeat(7,minmax(0,1fr))}
.sc-cal-dow{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);text-align:center;padding:6px 0}
.sc-cal-day{min-height:110px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:6px;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.sc-cal-day:hover{border-color:rgba(109,93,240,.55);box-shadow:0 8px 20px rgba(109,93,240,.12)}
.sc-cal-day-other{opacity:.55}
.sc-cal-day-today{border-color:var(--nx-violet);box-shadow:0 0 0 2px rgba(109,93,240,.25)}
.sc-cal-day.sc-drop{border-color:var(--nx-violet);background:rgba(109,93,240,.08);box-shadow:0 0 0 2px rgba(109,93,240,.35)}
.sc-cal-num{font-size:13px;font-weight:800;color:var(--text)}
.sc-cal-day-today .sc-cal-num{background:var(--nx-fill);color:#fff;border-radius:50%;width:26px;height:26px;display:grid;place-items:center}
.sc-cal-day-other .sc-cal-num{color:var(--muted)}
.sc-cal-card{border-radius:9px;padding:6px 8px;font-size:12.5px;font-weight:700;line-height:1.4;cursor:grab;overflow-wrap:anywhere;color:var(--text);border:1px solid transparent;transition:box-shadow .2s ease,transform .2s ease}
.sc-cal-card:hover{box-shadow:0 6px 14px rgba(20,24,60,.14);transform:translateY(-1px)}
.sc-cal-card:active{cursor:grabbing}
.sc-cal-card.sc-dragging{opacity:.5}
.sc-cal-card-draft{background:var(--sc-arch-bg)}
.sc-cal-card-scheduled{background:var(--sc-violet-bg)}
.sc-cal-card-pending_approval{background:var(--sc-warn-bg)}
.sc-cal-card-approved,.sc-cal-card-queued{background:var(--sc-blue-bg)}
.sc-cal-card-publishing{background:var(--sc-teal-bg)}
.sc-cal-card-published{background:var(--sc-ok-bg)}
.sc-cal-card-failed{background:var(--sc-err-bg)}
.sc-cal-card-cancelled{background:var(--sc-arch-bg)}
.sc-cal-more{font-size:12px;font-weight:800;color:var(--muted);text-align:center}

/* ---- composer ---- */
.sc-compose{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.sc-plat-row{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:14px;padding:13px 15px;background:var(--surface2);margin-bottom:10px;transition:border-color .2s ease,box-shadow .2s ease}
.sc-plat-row:hover{border-color:rgba(109,93,240,.4);box-shadow:0 8px 20px rgba(109,93,240,.10)}
.sc-plat-row input{margin-top:4px;width:18px;height:18px;accent-color:var(--nx-violet);flex:none}
.sc-plat-row .sc-plat-main{flex:1;min-width:0}
.sc-plat-row b{display:block;font-size:14.5px;color:var(--text)}
.sc-plat-row .sc-plat-sub{color:var(--muted);font-size:13px;font-weight:600;margin-top:2px;line-height:1.5}
.sc-plat-row-disabled{opacity:.75}
.sc-plat-row-disabled b{color:var(--muted)}
.sc-ai{position:sticky;top:calc(var(--header) + 14px)}
.sc-ai-status{color:var(--muted);font-size:13.5px;font-weight:600;margin-top:10px;line-height:1.55;min-height:20px}
.sc-ai-status b{color:var(--text)}
.sc-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}

/* ---- accounts ---- */
.sc-plat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;margin-top:16px}
.sc-plat-tile{width:44px;height:44px;flex:none;border-radius:13px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:19px;box-shadow:0 8px 18px rgba(20,24,60,.18)}
.sc-plat-tile-fb{background:var(--sc-fb)}
.sc-plat-tile-ig{background:var(--sc-ig)}
.sc-plat-tile-yt{background:var(--sc-yt)}
.sc-plat-tile-tt{background:var(--sc-tt)}
.sc-plat-tile-li{background:var(--sc-li)}
.sc-plat-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.sc-plat-head h3{font-size:17px;margin:0;color:var(--text)}
.sc-plat-head .sc-plat-sub{color:var(--muted);font-size:13px;font-weight:600;margin-top:2px}
.sc-plat-meta{display:grid;gap:6px;color:var(--muted);font-size:13.5px;font-weight:600;margin:0 0 14px;line-height:1.5}
.sc-plat-meta b{color:var(--text)}
.sc-plat-note{color:var(--muted);font-size:13px;line-height:1.6;margin:12px 0 0;border-top:1px solid var(--line);padding-top:12px}
.sc-plat-actions{display:flex;gap:8px;flex-wrap:wrap}

/* ---- analytics + youtube ---- */
.sc-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:0 0 20px}
.sc-note-bar{display:flex;gap:10px;align-items:flex-start;background:rgba(109,93,240,.10);border:1px solid rgba(109,93,240,.4);border-radius:14px;padding:13px 16px;font-weight:600;font-size:14px;line-height:1.55;margin:0 0 20px;color:var(--text)}
.sc-progress{margin:0 0 16px}
.sc-progress-top{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;font-weight:800;color:var(--text);margin-bottom:6px}
.sc-progress-top span:last-child{color:var(--muted);font-weight:700;font-variant-numeric:tabular-nums}
.sc-progress-track{height:12px;border-radius:999px;background:var(--surface2);border:1px solid var(--line);overflow:hidden}
.sc-progress-fill{height:100%;border-radius:999px;background:var(--nx-fill);min-width:0;transition:width .4s ease}
.sc-progress-sub{color:var(--muted);font-size:13px;font-weight:600;margin-top:6px;line-height:1.5}
.sc-guide-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.sc-guide-list li{display:flex;gap:12px;align-items:flex-start;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:13px 15px;font-size:14.5px;line-height:1.55;color:var(--text)}
.sc-guide-list li b{font-weight:800}
.sc-guide-ic{width:26px;height:26px;flex:none;border-radius:50%;background:var(--sc-violet-bg);color:var(--sc-violet-hi);display:grid;place-items:center;margin-top:1px;font-weight:900;font-size:13px}
.sc-video-thumb{width:96px;height:54px;object-fit:cover;border-radius:8px;flex:none;background:var(--surface2)}
.sc-video-row{display:flex;gap:12px;align-items:center}
.sc-video-row b{display:block;font-size:14px;color:var(--text);overflow-wrap:anywhere}
.sc-video-row .sc-post-meta{color:var(--muted);font-size:12.5px;font-weight:600;margin-top:2px}

/* ---- toast ---- */
.sc-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:999px;padding:12px 20px;font-weight:700;font-size:14px;opacity:0;pointer-events:none;transition:.25s;z-index:90;max-width:calc(100vw - 40px);text-align:center;color:var(--text)}
.sc-toast.sc-show{opacity:1;transform:translateX(-50%) translateY(0)}
.sc-toast.sc-toast-err{border-color:rgba(255,90,90,.5)}

/* ---- Studio launch screen (v40, bldsocial) ----
   Mirrors the v34 .cb-launch rules for #tool-bldauto in
   automation.css; this file is linked from pages/studio.php (see
   social/shared_edits_w3.md) so the bldsocial launch screen gets
   the same premium treatment. */
#page-team #tool-bldsocial .cb-launch{max-width:640px;margin:18px 0 8px}
#page-team #tool-bldsocial .cb-launch-lead{font-size:16.5px;line-height:1.65;color:var(--text);margin:0 0 20px}
#page-team #tool-bldsocial .cb-launch-list{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:12px}
#page-team #tool-bldsocial .cb-launch-list li{display:flex;gap:12px;align-items:flex-start;background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:13px 15px;font-size:14.5px;line-height:1.55;color:var(--text)}
#page-team #tool-bldsocial .cb-launch-list li b{font-weight:800}
#page-team #tool-bldsocial .cb-launch-ic{width:26px;height:26px;flex:none;border-radius:50%;background:var(--lime-soft);color:var(--lime);display:grid;place-items:center;margin-top:1px}
#page-team #tool-bldsocial .cb-launch-ic .ic{width:14px;height:14px}
#page-team #tool-bldsocial .cb-launch-cta{min-height:56px;padding:15px 26px;font-size:16px}
#page-team #tool-bldsocial .cb-launch-note{color:var(--muted);font-size:13px;margin:16px 0 0}

/* ---- keyboard focus: visible aurora ring on every interactive ---- */
.sc-btn:focus-visible,.sc-btn-ghost:focus-visible,.sc-btn-danger:focus-visible,.sc-tab:focus-visible,.sc-cal-day:focus-visible,.sc-cal-view button:focus-visible,.sc-post-row .sc-post-links a:focus-visible,.sc-card-link:focus-visible{outline:2px solid var(--nx-violet);outline-offset:2px}
.sc-input:focus-visible,.sc-textarea:focus-visible,.sc-select:focus-visible{outline:2px solid var(--nx-violet);outline-offset:1px;border-color:var(--nx-violet)}

/* ---- responsive ---- */
@media(max-width:1020px){
  .sc-compose{grid-template-columns:1fr}
  .sc-ai{position:static}
  .sc-grid2{grid-template-columns:1fr}
}
@media(max-width:700px){
  .sc-wrap{padding-left:14px;padding-right:14px}
  .sc-hero{padding:22px 18px}
  .sc-hero h1{font-size:28px}
  /* W4b: the Campaign label is its own flex item in .sc-cal-bar — at
     phone widths it orphaned at the end of the button row while its
     select wrapped below. Full-width row above the selects. */
  .sc-cal-bar label.sc-check{flex-basis:100%}
  .sc-cal-day{min-height:76px;padding:6px}
  .sc-cal-card{font-size:11.5px;padding:5px 6px}
  .sc-cal-grid{gap:5px}
  .sc-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
  .sc-tab{white-space:nowrap}
}
@media(max-width:560px){
  #page-team #tool-bldsocial .cb-launch-lead{font-size:15.5px}
  .sc-stats{grid-template-columns:1fr 1fr}
  .sc-stat-num{font-size:26px}
  /* 390px: hero CTAs go full-width and stack; calendar cards clamp
     to two lines so the 7-column grid stays readable. */
  .sc-hero-actions{flex-direction:column}
  .sc-hero-actions .btn{justify-content:center;text-align:center}
  .sc-cal-card{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .sc-card{padding:16px}
  .sc-actions .sc-btn,.sc-actions .sc-btn-ghost{flex:1 1 auto;justify-content:center}
}
