/* SweetPost Studio — v3 design language (Linear/Vercel-grade minimal):
   #FAFAFA canvas, white cards with hairline borders, charcoal sidebar,
   13px tight type, 11px uppercase micro labels. All colors come from
   theme tokens; the only saturated colors on screen belong to platform
   brand icons and status dots. */
:root, html[data-theme="light"] {
  --ink:#17171A; --ink2:#3F3F46; --mut:#71717A; --mut2:#A1A1AA;
  --line:#E6E6E8; --line2:#EEEFF1; --canvas:#FAFAFA; --card:#FFFFFF;
  --hover:#F5F5F6; --sel:#F4F4F5; --btn:#111113;
  --ok:#177245; --ok-bg:#E9F7EE; --warn:#8A6108; --warn-bg:#FBF3DF;
  --err:#B3261E; --err-bg:#FDECEC; --side:#0D0D10;
  --shadow:0 24px 70px rgba(0,0,0,.28),0 2px 8px rgba(0,0,0,.08);
  --shadow-sm:0 1px 2px rgba(16,16,20,.04);
}
html[data-theme="dark"] {
  --ink:#F4F4F5; --ink2:#D4D4D8; --mut:#A1A1AA; --mut2:#63636B;
  --line:#26262C; --line2:#1F1F24; --canvas:#0E0E11; --card:#17171B;
  --hover:#1F1F24; --sel:#232329; --btn:#F4F4F5;
  --ok:#4ADE80; --ok-bg:#142B1E; --warn:#E8A33D; --warn-bg:#2E2410;
  --err:#F87171; --err-bg:#331A1A; --side:#0D0D10;
  --shadow:0 24px 70px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.4);
  --shadow-sm:0 1px 2px rgba(0,0,0,.3);
}
* { box-sizing:border-box; margin:0; padding:0; }
html, body { height:100%; }
body { font-family:"Inter",-apple-system,"SF Pro Text","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:13px; color:var(--ink); background:var(--canvas);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
button { font-family:inherit; cursor:pointer; background:none; border:0; color:inherit; }
a { color:inherit; }
.num { font-variant-numeric:tabular-nums; font-feature-settings:"tnum"; }
.mut { color:var(--mut); font-size:12px; } .mut2 { color:var(--mut2); font-size:11.5px; }
.ok { color:var(--ok); } .bad { color:var(--err); } .warn { color:var(--warn); }
code { background:var(--hover); border:1px solid var(--line); border-radius:5px; padding:0 5px;
  font-size:11px; font-family:ui-monospace,"SF Mono",Menlo,monospace; color:var(--ink2); word-break:break-all; }
.app { display:flex; min-height:100vh; }
.view { display:none; } .view.on { display:block; }
.sp { flex:1; }

/* ---------- sidebar ---------- */
.side { width:216px; flex:none; background:var(--side); display:flex; flex-direction:column;
  position:sticky; top:0; height:100vh; }
.brand { display:flex; align-items:center; gap:9px; padding:16px 16px 12px; }
.brand .lg { width:26px; height:26px; border-radius:7px; background:#fff; display:flex;
  align-items:center; justify-content:center; flex:none; }
.brand .nm { font-size:14px; font-weight:650; letter-spacing:-.01em; color:#fff; line-height:1.1; }
.brand .nm small { display:block; font-size:9px; font-weight:600; color:#8E8E96; letter-spacing:.22em; margin-top:2px; }
.nav { padding:6px 10px; display:flex; flex-direction:column; gap:1px; }
.nav-a { display:flex; align-items:center; gap:9px; padding:7px 9px; border-radius:7px;
  color:#9C9CA5; font-size:13px; text-align:left; width:100%; }
.nav-a svg { flex:none; opacity:.85; }
.nav-a.on { background:rgba(255,255,255,.1); color:#fff; font-weight:550; }
.nav-a:hover:not(.on) { background:rgba(255,255,255,.05); color:#E4E4E7; }
.nav .grp { font-size:10px; font-weight:600; color:#62626B; padding:16px 9px 5px; letter-spacing:.16em; }
#accountArea { margin-top:auto; }
.acct { border-top:1px solid rgba(255,255,255,.08); padding:11px 14px; display:flex; align-items:center; gap:9px; position:relative; }
.acct.out { display:block; }
.acct-login { width:100%; background:#fff; color:#111113; border-radius:8px; padding:8px 0; font-size:13px; font-weight:600; }
.acct-login:hover { background:#E4E4E7; }
.avt { width:28px; height:28px; border-radius:50%; background:#26262C; color:#fff; display:flex;
  align-items:center; justify-content:center; font-size:11px; font-weight:650; flex:none;
  border:1px solid rgba(255,255,255,.14); }
.acct .who { line-height:1.3; min-width:0; text-align:left; flex:1; }
.acct .who b { display:block; font-size:12.5px; color:#fff; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct .who span { display:block; color:#8E8E96; font-size:10.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct .plan { font-size:10px; color:#D4D4D8; background:rgba(255,255,255,.08); border-radius:6px;
  padding:2px 5px; flex:none; display:inline-flex; align-items:center; gap:4px; }
.acct-panel { position:absolute; left:12px; right:12px; bottom:62px; background:#1C1C21;
  border:1px solid rgba(255,255,255,.12); border-radius:10px; box-shadow:var(--shadow);
  padding:12px; z-index:60; font-size:13px; color:#E4E4E7; }
.acct-panel[hidden] { display:none; }
.acct-panel .a-email { font-weight:600; word-break:break-all; }
.acct-panel .a-row { margin-top:8px; color:#9C9CA5; font-size:12px; }

/* ---------- main / topbar ---------- */
.main { flex:1; min-width:0; display:flex; flex-direction:column; }
.top { height:54px; background:var(--canvas); border-bottom:1px solid var(--line); display:flex;
  align-items:center; gap:12px; padding:0 22px; position:sticky; top:0; z-index:5; }
.top h1 { font-size:14px; font-weight:650; letter-spacing:-.01em; }
.top .sub { color:var(--mut2); font-size:12px; }
.wrap { padding:20px 22px 28px; display:flex; flex-direction:column; gap:14px;
  max-width:1180px; width:100%; margin:0 auto; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-sm); }
.ph { display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--line2); }
.eyebrow { font-size:10px; font-weight:650; letter-spacing:.16em; color:var(--mut2); text-transform:uppercase; }
.ph h3 { font-size:13px; font-weight:650; letter-spacing:-.005em; }
.ph .hint { color:var(--mut); font-size:12px; }
.more { font-size:12px; color:var(--ink2); font-weight:550; }
.more:hover { color:var(--ink); }
.foot { color:var(--mut2); font-size:11px; text-align:center; padding:2px 0 6px; }
.tokline { padding:0 16px; } .tokline:not(:empty) { padding-top:10px; }

/* ---------- buttons ---------- */
.btn { background:var(--btn); color:var(--canvas); border:1px solid var(--btn); padding:7px 14px;
  border-radius:8px; font-size:13px; font-weight:550; display:inline-flex; align-items:center; gap:6px; }
.btn:hover { opacity:.88; }
.btn.ghost { background:var(--card); color:var(--ink); border-color:#E2E2E5; font-weight:500; }
html[data-theme="dark"] .btn.ghost { border-color:var(--line); }
.btn.ghost:hover { background:var(--hover); opacity:1; }
.btn.primary { background:var(--btn); color:var(--canvas); border-color:var(--btn); }
.btn.sm, .btn.small { padding:5px 11px; font-size:12px; border-radius:7px; }
.btn.big { padding:9px 18px; font-size:13.5px; }
.btn:disabled { opacity:.45; cursor:not-allowed; }
.btn.dis { background:var(--hover); color:var(--mut2); border-color:var(--line); cursor:default; }

/* ---------- secondary picker ---------- */
.picker { position:relative; }
.picker-btn { display:flex; align-items:center; gap:6px; border:1px solid var(--line); background:var(--card);
  border-radius:8px; padding:6px 10px; font-size:12px; color:var(--ink2); box-shadow:var(--shadow-sm); white-space:nowrap; }
.picker-btn .p-label { color:var(--ink2); }
.picker-btn .p-value { font-weight:600; color:var(--ink); }
.picker-btn .p-chev { color:var(--mut2); font-size:9px; }
.picker-panel { position:absolute; right:0; top:38px; min-width:100%; background:var(--card);
  border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); padding:5px; z-index:60; }
.picker-panel[hidden] { display:none; }
.picker-opt { display:flex; align-items:center; gap:8px; width:100%; padding:7px 10px; background:transparent;
  color:var(--ink); font-size:12.5px; border-radius:7px; cursor:pointer; white-space:nowrap; text-align:left; }
.picker-opt:hover { background:var(--hover); }
.picker-opt .tick { width:14px; color:var(--ink); font-weight:700; flex:none; }

/* ---------- platform icons / chips / dots ---------- */
.picon { width:28px; height:28px; border-radius:7px; display:inline-flex; align-items:center;
  justify-content:center; color:#fff; flex:none; }
.picon svg { width:17px; height:17px; fill:#fff; }
.picon img.pglyph { height:17px; width:auto; display:block; }
.picon .pchar { font-size:13px; font-weight:700; line-height:1; }
.dot { width:6px; height:6px; border-radius:50%; flex:none; display:inline-block; }
.dot.g { background:#22A355; } .dot.gr { background:#C9C9CF; }
.dot.a { background:#E8A33D; } .dot.r { background:#E5484D; }
html[data-theme="dark"] .dot.gr { background:#52525B; }
.pstrip { display:flex; flex-wrap:wrap; gap:6px; padding:12px 16px; }
.pstrip .pchip { display:flex; align-items:center; gap:7px; border:1px solid var(--line);
  border-radius:8px; padding:4px 11px 4px 4px; background:var(--card); }
.pstrip .pchip.off { opacity:.55; }
.pstrip .picon { width:20px; height:20px; border-radius:6px; }
.pstrip .picon svg { width:12px; height:12px; } .pstrip .picon img.pglyph { height:12px; }
.pstrip .pn { font-weight:600; font-size:12.5px; }
.pstrip .ps { color:var(--mut); font-size:11.5px; }
.pmini { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--ink2); }
.pmini .picon { width:20px; height:20px; border-radius:6px; }
.pmini .picon svg { width:12px; height:12px; } .pmini .picon img.pglyph { height:12px; }
.bdg { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:550;
  padding:2px 7px; border-radius:6px; background:var(--hover); color:#52525B; white-space:nowrap; }
html[data-theme="dark"] .bdg { color:var(--ink2); }
.bdg.ok { background:var(--ok-bg); color:var(--ok); }
.bdg.warn { background:var(--warn-bg); color:var(--warn); }
.bdg.err { background:var(--err-bg); color:var(--err); }

/* ---------- tables ---------- */
.tbl { width:100%; border-collapse:collapse; }
.tbl th { font-size:10.5px; color:var(--mut2); font-weight:650; text-align:left; padding:8px 14px;
  border-bottom:1px solid var(--line); letter-spacing:.1em; text-transform:uppercase; }
.tbl td { padding:8px 14px; border-bottom:1px solid var(--line2); vertical-align:middle; }
.tbl tr:last-child td { border-bottom:0; }
.tbl tbody tr { transition:background .08s; }
.tbl tbody tr:hover { background:var(--canvas); }
.tbl tr.clickable { cursor:pointer; }
.tbl tr.ytr { opacity:.5; }
.tcell { display:flex; align-items:center; gap:11px; min-width:0; }
.thumb { width:86px; height:48px; border-radius:6px; flex:none; position:relative; overflow:hidden; background:#2A2A30; }
.thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.thumb .mk { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:22px; height:22px;
  border-radius:50%; background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:10px; font-style:normal; }
.ttl { font-weight:600; font-size:13px; letter-spacing:-.005em; white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; max-width:340px; }
.tsub { color:var(--mut); font-size:11.5px; margin-top:1px; white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; max-width:340px; }
.rowbtns { display:flex; gap:7px; justify-content:flex-end; }
.empty { color:var(--mut); font-size:13px; padding:16px; }
.kv { display:grid; grid-template-columns:86px 1fr; row-gap:8px; font-size:12.5px; }
.kv dt { color:var(--mut); } .kv dd { color:var(--ink); }

/* ---------- onboarding (install guide, slim checklist) ---------- */
.ob { display:flex; gap:18px; padding:14px 16px; align-items:flex-start; }
.obring { flex:none; display:flex; flex-direction:column; align-items:center; gap:6px; padding-top:2px; }
.obring .cap { font-size:10px; font-weight:650; letter-spacing:.14em; color:var(--mut2); }
.oblist { flex:1; min-width:0; }
.obrow { display:flex; align-items:flex-start; gap:11px; padding:8px 0; border-bottom:1px solid var(--line2); }
.obrow:last-child { border-bottom:0; }
.onum { width:20px; height:20px; border-radius:50%; background:var(--card); border:1px solid #D9D9DE;
  color:var(--mut); font-size:11px; font-weight:600; display:flex; align-items:center; justify-content:center; flex:none; margin-top:1px; }
html[data-theme="dark"] .onum { border-color:var(--line); }
.obrow.cur .onum { background:var(--btn); border-color:var(--btn); color:var(--canvas); }
.obrow.done .onum { background:var(--ok-bg); border-color:transparent; color:var(--ok); }
.obmain { flex:1; min-width:0; }
.obrow .ot { font-size:13px; font-weight:600; }
.obrow .od { color:var(--mut); font-size:12px; margin-top:2px; line-height:1.6; }
.obrow .odetail { font-size:12px; color:var(--mut); margin-top:6px; line-height:1.65; }
.obrow .odetail ol { margin:2px 0 2px 16px; padding:0; }
.obrow .oa { margin-left:auto; flex:none; display:flex; align-items:center; gap:7px; padding-top:1px; }
.connrow { display:flex; gap:7px; flex-wrap:wrap; align-items:center; margin-top:2px; }
.gconn { display:inline-flex; align-items:center; padding:5px 11px; border:1px solid var(--line);
  border-radius:7px; font-size:12px; color:var(--ok); background:var(--ok-bg); border-color:transparent; }

/* ---------- settings ---------- */
.setrows { padding:6px 16px 10px; }
.setrow { display:flex; align-items:center; gap:14px; padding:10px 0; border-bottom:1px solid var(--line2); }
.setrow:last-child { border-bottom:0; }
.setlab { width:120px; flex:none; font-size:13px; font-weight:600; }
.setval { font-size:13px; color:var(--ink2); }

/* ---------- modal & wizard ---------- */
.overlay { position:fixed; inset:0; background:rgba(12,12,14,.44); z-index:80; display:flex;
  align-items:flex-start; justify-content:center; overflow-y:auto; padding:44px 16px; }
.modal { background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:12px;
  width:560px; max-width:100%; box-shadow:var(--shadow); }
.modal.wide { width:940px; }
.modal.xwide { width:1120px; }
.modal-head { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--line2); }
.modal-head h3 { font-size:14px; font-weight:650; letter-spacing:-.01em; }
.modal-x { margin-left:auto; color:var(--mut2); font-size:15px; line-height:1; padding:4px 6px; }
.modal-x:hover { color:var(--ink); }
.modal-body { padding:16px 18px; }
.modal-foot { display:flex; gap:8px; justify-content:flex-end; padding:12px 18px;
  border-top:1px solid var(--line2); align-items:center; }
.modal-foot > span:first-child { flex:1; }
.wbody { display:grid; grid-template-columns:158px 1fr; min-height:440px; margin:-16px -18px; }
.wrail { border-right:1px solid var(--line2); padding:16px 14px; display:flex; flex-direction:column; }
.wr-step { display:flex; gap:9px; position:relative; padding-bottom:22px; }
.wr-step:last-child { padding-bottom:0; }
.wr-step::before { content:""; position:absolute; left:9.5px; top:22px; bottom:2px; width:1px; background:var(--line); }
.wr-step:last-child::before { display:none; }
.wr-step .n { width:20px; height:20px; border-radius:50%; background:var(--card); border:1px solid #D9D9DE;
  color:var(--mut); font-size:11px; font-weight:600; display:flex; align-items:center; justify-content:center; flex:none; z-index:1; }
html[data-theme="dark"] .wr-step .n { border-color:var(--line); }
.wr-step.on .n { background:var(--btn); border-color:var(--btn); color:var(--canvas); }
.wr-step.done .n { background:var(--ok-bg); border-color:transparent; color:var(--ok); }
.wr-step .wl { font-size:12.5px; color:var(--mut); padding-top:2px; }
.wr-step.on .wl { color:var(--ink); font-weight:600; }
.wr-step.done .wl { color:var(--ink2); }
.wmain { padding:16px 18px; min-width:0; }
label.f { display:block; font-size:12.5px; font-weight:600; color:var(--ink2); margin:13px 0 5px; }
label.f:first-child { margin-top:0; }
.in, .ta { width:100%; padding:8px 10px; border:1px solid var(--line); border-radius:8px; font-size:13px;
  background:var(--card); color:var(--ink); font-family:inherit; }
.in:focus, .ta:focus { outline:none; border-color:var(--mut2); }
.ta { min-height:74px; resize:vertical; }
.hint { font-size:12px; color:var(--mut); margin-top:4px; min-height:15px; line-height:1.55; }
.hint.bad { color:var(--err); }
.count { float:right; font-size:12px; color:var(--mut); font-weight:400; }
.count.over { color:var(--err); font-weight:700; }
.auth-msg { min-height:20px; font-size:13px; margin-top:10px; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

/* wizard step 1: composer - editor column + live preview column */
.wstep1 { display:grid; grid-template-columns:13fr 12fr; gap:0; min-height:440px; }
.wedge { padding:16px 18px; border-right:1px solid var(--line2); min-width:0; }
.wpv { background:var(--canvas); padding:14px 18px; min-width:0; }
.wpv .cap { font-size:10px; font-weight:650; letter-spacing:.14em; color:var(--mut2);
  text-transform:uppercase; margin:2px 0 9px; }
.pvchips { display:flex; flex-wrap:wrap; gap:6px; }
.pvchip { display:inline-flex; align-items:center; gap:6px; height:27px; padding:0 11px 0 5px;
  border:1px solid var(--line); border-radius:999px; background:var(--card);
  font-size:12px; font-weight:550; color:var(--ink2); }
.pvchip .picon { width:18px; height:18px; border-radius:50%; flex:none; }
.pvchip .picon svg { width:11px; height:11px; } .pvchip .picon img.pglyph { height:11px; }
.pvchip:hover:not(:disabled) { border-color:var(--mut2); }
/* unselected but previewable: text steps down one grey, icon stays full
   strength - the row must never look washed out */
.pvchip.dim { color:var(--mut); }
.pvchip.on { background:var(--btn); border-color:var(--btn); color:var(--canvas); }
.pvchip:disabled { opacity:.5; cursor:not-allowed; }
/* step-1 stage: fixed height for every platform, preview centered inside;
   taller content scrolls within the stage instead of growing the modal.
   The stage is a soft neutral well so the white preview card reads as an
   object resting on it, not text floating on the page. */
#pvStage { height:532px; margin-top:10px; display:flex; overflow-y:auto; overflow-x:hidden;
  background:var(--sel); border:1px solid var(--line2); border-radius:14px; padding:16px 14px; }
#pvStage .pv { margin:auto; flex:none; }

/* wizard step 2: platform list + previews */
.wstep2 { display:grid; grid-template-columns:258px 1fr; gap:0; min-height:440px; }
.wleft { border-right:1px solid var(--line2); padding:14px 12px; }
.wleft .cap { font-size:10px; font-weight:650; letter-spacing:.14em; color:var(--mut2);
  text-transform:uppercase; margin:2px 4px 9px; }
.wleft .pchip { display:flex; align-items:center; gap:9px; width:100%; border-radius:8px;
  padding:7px 9px; margin-bottom:2px; background:var(--card); text-align:left; }
.wleft .pchip:hover:not(:disabled) { background:var(--canvas); }
.wleft .pchip.sel { background:var(--sel); }
.wleft .pchip.off { opacity:.5; cursor:not-allowed; }
.wleft .pchip .picon { width:20px; height:20px; border-radius:6px; }
.wleft .pchip .picon svg { width:12px; height:12px; } .wleft .pchip .picon img.pglyph { height:12px; }
.pc-txt { display:flex; flex-direction:column; min-width:0; }
.pc-name { font-weight:600; font-size:12.5px; }
.pc-note { font-size:11px; color:var(--mut); }
.ck { margin-left:auto; width:16px; height:16px; border-radius:5px; border:1px solid #D4D4D8;
  background:var(--card); flex:none; display:flex; align-items:center; justify-content:center;
  color:var(--canvas); font-size:10px; }
html[data-theme="dark"] .ck { border-color:var(--line); }
.pchip.sel .ck { background:var(--btn); border-color:var(--btn); }
.wright { background:var(--sel); padding:16px 18px; min-width:0; }
.wright .pv { margin-left:auto; margin-right:auto; }
.wright .pv:first-child { margin-top:0; }

/* ---------- previews ---------- */
/* Every preview is one white card on the neutral stage: hairline border,
   one soft shadow, one padding rhythm (12px), one type ladder shared
   with the editor column (title 13/600, text 12.5 ink2, meta 12 mut). */
.pv { margin-top:14px; width:100%; background:var(--card); border:1px solid var(--line);
  border-radius:12px; box-shadow:var(--shadow-sm); padding:12px; }
/* one size rule for both steps: the MEDIA keeps its cap box - vertical
   video 225x400, landscape video 400 wide, xiaohongshu media 340,
   x / wechat media 400; the card grows only by its own chrome (2x12
   padding + 2x1 border) around that same media box */
.pv-douyin, .pv-channels { max-width:251px; }
.pv-bilibili, .pv-kuaishou { max-width:426px; }
.pv-xiaohongshu { max-width:366px; }
.pv-x, .pv-wechat { max-width:426px; }
.pv-head { display:flex; align-items:center; gap:7px; padding-bottom:9px; margin-bottom:11px;
  border-bottom:1px solid var(--line2); }
.pv-head .picon { width:19px; height:19px; border-radius:6px; flex:none; }
.pv-head .picon svg { width:11px; height:11px; } .pv-head .picon img.pglyph { height:11px; }
.pv-hname { font-size:12.5px; font-weight:600; color:var(--ink); }
.pv-htag { margin-left:auto; font-size:10px; font-weight:650; letter-spacing:.12em;
  text-transform:uppercase; color:var(--mut2); }
.pv-media { position:relative; background:#101014; border-radius:10px; overflow:hidden; max-width:100%; }
.pv-bilibili .pv-media, .pv-kuaishou .pv-media, .pv-wechat .pv-media, .pv-x .pv-media { width:100%; aspect-ratio:16/9; }
.pv-xiaohongshu .pv-media { width:100%; aspect-ratio:4/3; }
.pv-x .pv-media { border-radius:12px; margin-top:10px; }
.pv-fill { width:100%; height:100%; object-fit:cover; display:block; }
.pv-nomedia { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px;
  color:#A1A1AA; font-size:12px; text-align:center; background:#101014; }
.pv-nomedia .pv-ic { width:22px; height:22px; opacity:.75; }
.pv-dur { position:absolute; right:6px; bottom:6px; background:rgba(0,0,0,.72); color:#fff;
  font-size:10.5px; line-height:1; padding:3px 5px; border-radius:4px; font-variant-numeric:tabular-nums; }
.pv-dur:empty { display:none; }
.pv-body { padding:10px 1px 1px; max-width:100%; }
.pv-title { font-size:13px; font-weight:600; line-height:1.45; word-break:break-word; }
.pv-title.lg { font-size:15px; font-weight:650; line-height:1.4; }
.pv-text { font-size:12.5px; color:var(--ink2); line-height:1.55; white-space:pre-wrap; word-break:break-word; margin-top:4px; }
.pv-text.lg { font-size:13px; color:var(--ink); }
.pv-text.sum { color:var(--mut); margin-top:9px; }
.clamp2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pv-sub { color:var(--mut); font-size:12px; margin-top:6px; }
.pv-topics { color:inherit; font-weight:550; opacity:.92; }
/* avatars: initial-letter discs (the account's real name, no fake art) */
.pv-avt { border-radius:50%; background:var(--sel); color:var(--ink2); border:1px solid var(--line2);
  display:inline-flex; align-items:center; justify-content:center; font-weight:600; flex:none; }
.pv-avt.sm { width:18px; height:18px; font-size:10px; }
.pv-avt.md { width:34px; height:34px; font-size:13px; }
/* author row (bilibili / kuaishou / xiaohongshu) */
.pv-arow { display:flex; align-items:center; gap:6px; margin-top:9px; }
.pv-aname { font-size:12px; color:var(--mut); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pv-ptag { font-size:11px; color:var(--mut2); } .pv-ptag::before { content:"· "; }
.pv-like { margin-left:auto; color:var(--mut2); display:inline-flex; }
.pv-like .pv-ic { width:15px; height:15px; }
/* vertical player (douyin / channels): media fills the 225x400 frame,
   caption rides a bottom gradient, action rail rides the right edge */
.pv-player { position:relative; width:100%; aspect-ratio:9/16; border-radius:14px; overflow:hidden;
  background:#101014; box-shadow:0 10px 28px rgba(0,0,0,.25); }
.pv-player .pv-fill { position:absolute; inset:0; }
.pv-grad { position:absolute; left:0; right:0; bottom:0; height:48%; pointer-events:none;
  background:linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.62)); }
.pv-rail { position:absolute; right:8px; bottom:12px; display:flex; flex-direction:column;
  align-items:center; gap:15px; color:#fff; }
.pv-ravt { position:relative; width:34px; height:34px; border-radius:50%; background:#3F3F46;
  border:1.5px solid #fff; color:#fff; display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:600; margin-bottom:2px; }
.pv-rplus { position:absolute; left:50%; bottom:-6px; transform:translateX(-50%); width:13px; height:13px;
  border-radius:50%; background:#FE2C55; color:#fff; font-size:10px; font-style:normal; line-height:13px;
  text-align:center; }
.pv-channels .pv-rplus { background:#FA9D3B; }
.pv-ric { display:flex; filter:drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.pv-ric .pv-ic { width:27px; height:27px; }
.pv-ovl { position:absolute; left:10px; right:50px; bottom:10px; color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.4); }
.pv-ovl-acct { font-size:12.5px; font-weight:650; margin-bottom:3px; }
.pv-ovl-title { font-size:12.5px; font-weight:600; line-height:1.4; margin-bottom:2px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pv-ovl-text { font-size:12px; line-height:1.5; white-space:pre-wrap; word-break:break-word;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.pv-ovl-vis { display:flex; align-items:center; gap:4px; font-size:10.5px; opacity:.88; margin-top:6px; }
.pv-ovl-vis .pv-ic { width:11px; height:11px; }
/* x card */
.pv-xhead { display:flex; align-items:center; gap:9px; }
.pv-xwho { display:flex; align-items:baseline; gap:5px; min-width:0; }
.pv-xname { font-size:13px; font-weight:650; color:var(--ink); white-space:nowrap; }
.pv-xhandle { font-size:12px; color:var(--mut); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pv-actions { display:flex; align-items:center; justify-content:space-between; margin-top:11px;
  padding-right:2px; color:var(--mut2); }
.pv-actions .pv-ic { width:16px; height:16px; }
.pv-xcount { font-size:11px; color:var(--mut2); }
/* wechat article card */
.pv-wxmeta { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--mut); margin:6px 0 10px; }
.pv-wxacct { color:#576B95; font-weight:550; }

/* confirm / execute rows */
.crow { display:flex; gap:10px; align-items:flex-start; padding:11px 0; border-bottom:1px solid var(--line2); }
.crow:last-child { border-bottom:0; }
.crow .picon { width:28px; height:28px; }
.crow-main { flex:1; min-width:0; font-size:13px; line-height:1.55; }
.spin { display:inline-block; width:11px; height:11px; border:2px solid var(--line); border-top-color:var(--ink);
  border-radius:50%; animation:sp .8s linear infinite; vertical-align:-1px; margin-right:5px; }
@keyframes sp { to { transform:rotate(360deg); } }

/* ---------- toast ---------- */
#toast { position:fixed; left:50%; bottom:26px; transform:translateX(-50%); z-index:120; pointer-events:none; }
#toast .t { background:var(--ink); color:var(--canvas); padding:10px 16px; border-radius:9px;
  font-size:13px; box-shadow:var(--shadow); }

@media (max-width:900px) {
  .wstep1 { grid-template-columns:1fr; }
  .wedge { border-right:0; border-bottom:1px solid var(--line2); }
  .wstep2 { grid-template-columns:1fr; }
  .wleft { border-right:0; border-bottom:1px solid var(--line2); }
  .wbody { grid-template-columns:1fr; }
  .wrail { flex-direction:row; gap:14px; border-right:0; border-bottom:1px solid var(--line2); flex-wrap:wrap; }
  .wr-step { padding-bottom:0; } .wr-step::before { display:none; }
}
@media (max-width:760px) {
  .side { width:60px; }
  .brand .nm, .nav-a span, .nav .grp, .acct .who, .acct .plan { display:none; }
  .nav-a { justify-content:center; }
  .acct { justify-content:center; padding:11px 6px; }
  .top { padding:0 12px; } .top .sub { display:none; }
  .wrap { padding:14px 12px 22px; }
  .ttl, .tsub { max-width:150px; }
  .thumb { width:64px; height:36px; }
  .ob { flex-direction:column; }
}

/* wizard step 1: local upload zones (primary) + paste-link (secondary) */
.upzone { border:1.5px dashed var(--line); border-radius:10px; padding:14px 12px; text-align:center;
  background:var(--canvas); margin-bottom:8px; }
.upzone.over { border-color:var(--ink2); background:var(--sel); }
.up-drop { font-size:12px; color:var(--mut); margin-bottom:8px; }
.up-list { display:flex; flex-direction:column; gap:6px; margin-bottom:4px; }
.up-item { display:flex; align-items:center; gap:9px; border:1px solid var(--line2); border-radius:9px;
  padding:5px 8px 5px 5px; background:var(--card); min-height:46px; }
.up-thumb { position:relative; width:56px; height:36px; border-radius:6px; overflow:hidden; flex:none;
  background:#101014; display:flex; align-items:center; justify-content:center; }
.up-thumb img, .up-thumb video { width:100%; height:100%; object-fit:cover; display:block; }
.up-thumb.ph { background:var(--hover); }
.up-play { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:11px; text-shadow:0 1px 4px rgba(0,0,0,.6); }
.up-main { position:absolute; left:0; bottom:0; background:rgba(0,0,0,.72); color:#fff;
  font-size:9px; padding:1px 4px; border-radius:0 4px 0 0; }
.up-meta { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.up-name { font-size:12px; color:var(--ink2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.up-bar { height:4px; border-radius:2px; background:var(--line2); overflow:hidden; }
.up-bar i { display:block; height:100%; background:var(--ink2); transition:width .15s; }
.up-err { font-size:11.5px; color:var(--err); }
.up-ops { display:flex; gap:2px; flex:none; }
.up-ops button, .up-x { width:24px; height:24px; border-radius:6px; color:var(--mut); font-size:12px; }
.up-ops button:hover:not(:disabled), .up-x:hover { background:var(--hover); color:var(--ink); }
.up-ops button:disabled { opacity:.3; cursor:default; }
.up-link-toggle { font-size:12px; color:var(--mut); padding:2px 0 6px; }
.up-link-toggle:hover { color:var(--ink); }
.up-linkrow { display:flex; gap:6px; margin-bottom:8px; }
.up-linkrow[hidden] { display:none; }
.up-linkrow .in { flex:1; }
