/* Homepage stylesheet bundle. Source order matches index.html. */

/* --- wechat-plus.css --- */
#wechat-plus{--wp-ink:#203c32;--wp-muted:#657c70;--wp-line:rgba(91,139,111,.2);color:var(--wp-ink);padding:12px 28px 24px;width:100%;max-width:1800px;margin:auto;background:transparent}
#wechat-plus[hidden],#wechat-plus [hidden]{display:none!important}
#wechat-plus *{box-sizing:border-box}
#wechat-plus button,#wechat-plus select,#wechat-plus input,#wechat-plus textarea{font:inherit}
#wechat-plus button{cursor:pointer;border:1px solid var(--wp-line);color:var(--wp-ink);background:rgba(255,255,255,.75);border-radius:11px;min-height:42px;padding:9px 14px;transition:background .15s}
#wechat-plus button:hover:not(:disabled){background:#eaf6ee}
#wechat-plus button:disabled{opacity:.55;cursor:default}
#wechat-plus :is(button,select,input,textarea):focus-visible{outline:3px solid var(--g-600,#14684A);outline-offset:3px}
#wechat-plus .wp-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:5px 0 22px}
#wechat-plus .wp-eyebrow{font-size:11px;letter-spacing:.09em;margin:0 0 7px;color:var(--wp-muted)}
#wechat-plus h1{font-size:28px;font-weight:650;letter-spacing:-.03em;margin:0;line-height:1.4}
#wechat-plus h1 span{font:600 12px/1.4 sans-serif;letter-spacing:0;vertical-align:middle;background:#deeee4;border:1px solid #c6dfce;padding:4px 8px;border-radius:7px}
#wechat-plus .wp-header p:last-child{font-size:13px;color:var(--wp-muted);margin:7px 0 0}
#wechat-plus .wp-workspace{display:grid;grid-template-columns:clamp(480px,40%,720px) minmax(0,1fr);gap:18px;min-height:640px;height:calc(100dvh - 175px);max-height:1100px}
#wechat-plus .wp-conversation,#wechat-plus .wp-document{border:1px solid rgba(255,255,255,.76);box-shadow:0 16px 44px rgba(34,87,59,.09),inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(120,173,142,.12);background:linear-gradient(140deg,rgba(255,255,255,.78),rgba(239,250,242,.48));border-radius:24px;min-width:0;min-height:0;overflow:hidden;-webkit-backdrop-filter:blur(28px) saturate(145%);backdrop-filter:blur(28px) saturate(145%)}
#wechat-plus .wp-conversation{display:flex;flex-direction:column}
#wechat-plus .wp-conversation-head{display:flex;align-items:center;gap:8px;padding:19px 20px;border-bottom:1px solid var(--wp-line);font-size:14px}
#wechat-plus .wp-online{width:7px;height:7px;border-radius:50%;background:#378a60}
#wechat-plus .wp-history-label{margin-left:auto;font-size:0}
#wechat-plus select{max-width:150px;border:1px solid var(--wp-line);border-radius:8px;padding:8px 10px;background:#ffffffa6;color:var(--wp-ink);font-size:12px}
#wechat-plus .wp-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 20px;display:flex;flex-direction:column;gap:20px}
#wechat-plus .wp-message{font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
#wechat-plus .wp-message[data-role=user]{background:#e3f0e7;border:1px solid #d6e8dc;border-radius:15px 15px 4px 15px;align-self:flex-end;padding:12px 15px;max-width:94%}
#wechat-plus .wp-message[data-role=assistant]{padding:0 5px}
#wechat-plus .wp-topic{display:block;flex-shrink:0;text-align:left;width:100%;height:auto;min-height:96px;overflow:visible;white-space:normal;padding:20px 22px;border-radius:20px;margin-top:0;border:1px solid rgba(255,255,255,.95);background:linear-gradient(130deg,rgba(255,255,255,.92),rgba(229,245,236,.65));box-shadow:inset 0 1px 0 #fff,0 8px 24px #214d3d09;backdrop-filter:blur(18px);transition:background .18s,border-color .18s}
#wechat-plus .wp-topic:hover:not(:disabled){background:linear-gradient(130deg,#fff,#e4f4e9);border-color:#a8d2bc}
#wechat-plus .wp-topic strong{display:block;font-size:14px;line-height:1.6}
#wechat-plus .wp-topic small{display:block;color:var(--wp-muted);font-size:12px;line-height:1.8;margin-top:5px}
#wechat-plus .wp-options{display:flex;gap:8px;flex-wrap:wrap;padding:0 20px}
#wechat-plus .wp-options button{font-size:12px}
#wechat-plus .wp-progress{display:flex;align-items:center;gap:10px;margin:12px 20px 0;padding:10px 12px;background:#e8f3eb;border-radius:10px;font-size:12px;color:#35654b}
#wechat-plus .wp-progress span{flex:1}
#wechat-plus .wp-progress button{min-height:32px;padding:3px 9px;font-size:12px}
#wechat-plus .wp-error{margin:10px 20px 0;color:#a03f35;font-size:13px;line-height:1.7}
#wechat-plus .wp-composer{flex:0 0 auto;padding:17px 20px 18px;margin:0;border-top:0;background:rgba(255,255,255,.38)}
#wechat-plus .wp-composer label{font-size:12px;color:var(--wp-muted);display:block;margin-bottom:8px}
#wechat-plus .wp-brief>input,#wechat-plus .wp-material-fields>input,#wechat-plus .wp-material-fields>textarea{width:100%;border:1px solid #c7dfce;border-radius:10px;background:#ffffffc9;padding:11px 12px;color:var(--wp-ink);font-size:14px;line-height:1.6;display:block}
#wechat-plus .wp-brief>input{height:44px}
#wechat-plus .wp-brief>input{margin-bottom:9px}
#wechat-plus .wp-materials{border:1px solid #d9e9de;border-radius:10px;background:#f8fcf9;margin-bottom:9px;padding:0}
#wechat-plus .wp-materials-title{margin:0;padding:9px 12px;color:#537967;font-size:12px;line-height:1.4;cursor:pointer}
#wechat-plus .wp-materials-title:focus-visible{outline:3px solid var(--g-600,#14684A);outline-offset:2px}
#wechat-plus .wp-material-fields{display:grid;gap:6px;padding:0 12px 10px}
#wechat-plus .wp-material-fields label{margin-top:3px;font-size:11px}
#wechat-plus .wp-followup[hidden]{display:none!important}
#wechat-plus .wp-followup{margin-top:10px}
#wechat-plus .wp-followup label{margin-bottom:7px}
#wechat-plus .wp-composer textarea{width:100%;resize:vertical;min-height:92px;max-height:240px;border:1px solid #c7dfce;border-radius:13px;background:#ffffffc9;padding:13px 14px;color:var(--wp-ink);font-size:14px;line-height:1.7;display:block}
#wechat-plus .wp-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
#wechat-plus .wp-composer small{font-size:10px;color:var(--wp-muted)}
#wechat-plus [data-wp-send],#wechat-plus [data-wp-save]{background:#24734f;color:white;border-color:#24734f}
#wechat-plus [data-wp-send]:hover:not(:disabled),#wechat-plus [data-wp-save]:hover:not(:disabled){background:#1a5c3e}
@media(max-width:760px){
  #wechat-plus .wp-composer-actions{flex-direction:column;align-items:stretch;gap:10px}
  #wechat-plus [data-wp-send]{width:100%;min-height:48px;white-space:nowrap;writing-mode:horizontal-tb}
}
#wechat-plus .wp-document{display:flex;flex-direction:column;background:transparent}
#wechat-plus .wp-doc-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 20px;border-bottom:0}
#wechat-plus .wp-tabs{display:flex;gap:4px}
#wechat-plus .wp-tabs button{border:0;background:transparent;font-size:13px;padding:8px 12px}
#wechat-plus .wp-tabs button[aria-selected=true]{background:#e6f1e9;font-weight:600}
#wechat-plus [data-wp-save-state]{font-size:11px;color:var(--wp-muted)}
#wechat-plus :is(.wp-draft-panel,.wp-preview-panel,.wp-review-panel){flex:1;min-height:0;overflow:auto}
#wechat-plus .wp-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;padding:35px 24px;text-align:center}
#wechat-plus .wp-paper-icon{font-size:32px;color:#508868;border:1px solid #d6e8db;background:#f0f7f1;border-radius:16px;width:62px;height:62px;display:grid;place-items:center;margin-bottom:20px}
#wechat-plus .wp-empty h2{font-size:22px;letter-spacing:-.02em;font-weight:600;margin:0 0 12px}
#wechat-plus .wp-empty p{font-size:13px;color:var(--wp-muted);line-height:1.9;margin:0}
#wechat-plus .wp-starters{display:flex;flex-direction:column;gap:10px;margin-top:28px;width:min(310px,100%)}
#wechat-plus .wp-starters button{text-align:left;font-size:13px}
#wechat-plus [data-wp-editor]{width:100%;height:100%;min-height:400px;resize:none;border:0;outline-offset:-4px;background:transparent;color:#273f33;padding:35px clamp(22px,4vw,64px);font-size:16px;line-height:2;font-family:inherit}
#wechat-plus [data-wp-editor]:read-only{background:transparent}
#wechat-plus .wp-preview-panel{background:rgba(226,240,230,.28);text-align:center}
#wechat-plus .wp-preview-panel>p{padding:30px;font-size:14px;color:var(--wp-muted)}
#wechat-plus iframe{border:0;background:white;width:min(100%,520px);height:100%;min-height:500px}
#wechat-plus .wp-review-panel{padding:26px;font-size:14px;line-height:1.9;overflow-wrap:anywhere}
#wechat-plus .wp-review-panel h3{font-size:16px;margin:4px 0 12px}
#wechat-plus .wp-review-panel h4{font-size:14px;margin:20px 0 8px}
#wechat-plus .wp-review-panel a{color:#277453;text-decoration:underline}
#wechat-plus .wp-quality-hint{display:block;margin:0 0 12px;color:var(--wp-muted);font-size:11px;line-height:1.7;opacity:.88}
#wechat-plus .wp-doc-footer{border-top:0;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;background:transparent}
#wechat-plus .wp-doc-footer>div{display:flex;gap:7px;flex-wrap:wrap}
#wechat-plus .wp-doc-footer button{font-size:12px;min-height:36px;padding:6px 10px}
/* 桌面端「去排版」直达按钮：正文存在时亮起，移动端由底栏按钮接管。 */
#wechat-plus .wp-doc-footer .wp-desktop-format{margin-left:2px;border-color:rgba(34,93,69,.28);color:#1f5d3c;background:rgba(34,93,69,.06);font-weight:650;white-space:nowrap}
#wechat-plus .wp-doc-footer .wp-desktop-format:hover:not(:disabled){background:rgba(34,93,69,.13);border-color:#225d45}
#wechat-plus .wp-doc-footer .wp-desktop-format:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:1100px){#wechat-plus{padding:12px 14px}#wechat-plus .wp-workspace{grid-template-columns:minmax(410px,.95fr) minmax(0,1.25fr)}#wechat-plus .wp-doc-toolbar{padding:12px 10px}#wechat-plus .wp-doc-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){
  #wechat-plus{padding:12px 8px calc(110px + env(safe-area-inset-bottom))}
  #wechat-plus .wp-header{margin-bottom:16px}
  #wechat-plus h1{font-size:24px}
  #wechat-plus .wp-workspace{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0}
  #wechat-plus .wp-conversation{height:auto;overflow:visible;-webkit-backdrop-filter:none;backdrop-filter:none}
  #wechat-plus .wp-messages{flex:0 0 auto;min-height:108px;max-height:min(30dvh,220px);padding:14px 12px;gap:14px}
  #wechat-plus .wp-message[data-role=user]{max-height:min(24dvh,180px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
  #wechat-plus .wp-material-fields textarea{min-height:68px;max-height:128px}
  #wechat-plus .wp-document{height:680px}
  #wechat-plus .wp-doc-footer{flex-direction:row;align-items:center}
  #wechat-plus .wp-tabs button{padding:8px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){#wechat-plus *{transition:none!important;scroll-behavior:auto!important}}
#wechat-plus .wp-mobile-switch{display:none}
@media(max-width:760px){
  #wechat-plus .wp-mobile-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 12px;padding:4px;border:1px solid #d7e9dc;border-radius:12px;background:#edf6ef}
  #wechat-plus .wp-mobile-switch button{min-height:40px;border:0;border-radius:9px;background:transparent;color:#557061;font:600 13px/1.4 inherit;cursor:pointer}
  #wechat-plus .wp-mobile-switch button[aria-selected=true]{background:#fff;color:#1f5d3c;box-shadow:0 2px 7px rgba(35,91,56,.12)}
  #wechat-plus[data-mobile-pane=doc] .wp-conversation{display:none!important}
  #wechat-plus:not([data-mobile-pane=doc]) .wp-document{display:none!important}
  #wechat-plus .wp-document{height:auto;min-height:560px}
  #wechat-plus .wp-messages{max-height:none;overflow:visible}
}
#wechat-plus .wp-layout-options{margin:0 20px;padding:12px!important;border:1px solid #d4e9dc;border-radius:14px;background:linear-gradient(135deg,#f2faf4,#fff);gap:7px}
#wechat-plus .wp-layout-options-label{flex-basis:100%;font-size:12px;color:#537967;line-height:1.6}
#wechat-plus .wp-layout-options button{min-height:38px;padding:7px 11px;border-radius:999px;background:#fff;color:#286146}
#wechat-plus .wp-toolbar-meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
#wechat-plus .wp-layout-theme{font-size:11px;color:#307251;padding:5px 9px;background:#eaf5ed;border:1px solid #d4e9dc;border-radius:999px;white-space:nowrap}
@media(max-width:760px){#wechat-plus .wp-layout-options button{min-height:44px}#wechat-plus .wp-layout-options{margin:0 12px}#wechat-plus .wp-toolbar-meta{gap:4px}#wechat-plus .wp-layout-theme{font-size:10px}}
#wechat-plus .wp-legacy-images{margin:0 18px 10px;border:1px solid #dcebe1;border-radius:12px;padding:10px 12px;color:#456b58;font-size:12px}
#wechat-plus .wp-legacy-images[hidden]{display:none}
#wechat-plus .wp-legacy-images summary{cursor:pointer;font-weight:600}
#wechat-plus .wp-legacy-images div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#wechat-plus .wp-legacy-images a{color:#267857;text-decoration:underline}
#wechat-plus .wp-brief[hidden]{display:none!important}
#wechat-plus .wp-phase{font-size:11px;color:#3b7257;background:#e7f3ec;border:1px solid #d4e9dc;border-radius:999px;padding:4px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42%}
#wechat-plus .wp-composer-actions:has(> small[hidden]){justify-content:flex-end}
#wechat-plus .wp-action-chips{margin:0 20px 10px;padding:0;gap:6px}
#wechat-plus .wp-action-chips:empty{display:none}
#wechat-plus .wp-action-chips button{min-height:36px;padding:6px 12px;border-radius:999px;font-size:12px;background:#fff;color:#286146;border-color:#cfe4d6}
@media(max-width:760px){
  #wechat-plus .wp-phase{max-width:38%;font-size:10px;padding:3px 6px}
  #wechat-plus .wp-action-chips{margin:0 12px 10px}
  #wechat-plus .wp-action-chips button{min-height:44px}
}
@media(min-width:761px) and (max-height:760px){
  #wechat-plus .wp-workspace{min-height:0;height:calc(100dvh - 150px);max-height:none}
  #wechat-plus .wp-conversation-head{padding:12px 20px}
  #wechat-plus .wp-messages{padding:14px 20px;gap:12px}
  #wechat-plus .wp-composer{padding:10px 20px 12px}
  #wechat-plus .wp-composer textarea{min-height:64px;max-height:120px}
  #wechat-plus .wp-composer-actions{margin-top:8px}
  #wechat-plus .wp-action-chips{margin-bottom:6px}
}

/* 桌面排版态工具栏（审计 D2）：formatted_output 出现后，排版元数据把文档
   工具栏的三个 Tab 挤成竖排/两行（1280 高 114px、1440 高 55px）。三行 scoped
   规则已在 6250318 快照上运行时验证 PASS：Tab 恢复 42px 单行，三档视口无回退。
   只作用于 ≥761px 桌面档，手机端布局不受影响。已知残留：1280 下 meta 仍多行
   （text-overflow 对 wrap 内容不产生省略号）、文档底部四按钮在 1280 仍两行。 */
@media(min-width:761px){
  #wechat-plus .wp-tabs{flex:0 0 auto;min-width:0;flex-wrap:nowrap}
  #wechat-plus .wp-tabs button{white-space:nowrap}
  #wechat-plus .wp-toolbar-meta{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
}

/* 首轮「多少字」：只收一个数字，跟主题/要求是同一套输入家族（同边框、同底色、
   同焦点环）。留空等于不指定篇幅，行为跟加这个框之前完全一致。 */
#wechat-plus .wp-length{margin:9px 0 0}
#wechat-plus .wp-length-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
#wechat-plus .wp-length-row input{width:104px;height:44px;border:1px solid #c7dfce;border-radius:10px;background:#ffffffc9;color:var(--wp-ink);font-size:14px;line-height:1.6;padding:0 12px;text-align:center}
#wechat-plus .wp-length-row input::placeholder{color:#a9bdb1}
#wechat-plus .wp-length-row input::-webkit-outer-spin-button,#wechat-plus .wp-length-row input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
#wechat-plus .wp-length-row input[type=number]{-moz-appearance:textfield;appearance:textfield}
#wechat-plus .wp-length-unit{font-size:12px;color:var(--wp-muted);margin-left:-3px}
#wechat-plus .wp-length-hint{font-size:11px;color:#93a49a;line-height:1.6}
@media(max-width:760px){
  /* 16px 起跳，iOS 聚焦时不会把整页放大 */
  #wechat-plus .wp-length-row input{width:96px;height:46px;font-size:16px}
  #wechat-plus .wp-length-hint{flex-basis:100%;font-size:10px}
}

/* Mobile Plus is a single workspace with its own navigation and action bar. */
#wechat-plus :is(.wp-mobile-top,.wp-mobile-brief-heading,.wp-mobile-materials-title,.wp-mobile-reader,.wp-mobile-read-head,.wp-mobile-delivery){display:none}
@media(max-width:760px){
  body:has(#wechat-plus:not([hidden])) .v3-topbar{display:none!important}
  body #wechat-plus.wechat-plus-page:not([hidden]){
    --wp-frost:rgba(249,255,251,.63);
    --wp-line:rgba(39,98,69,.21);
    --wp-muted:#4e6d5e;
    --wp-dock-space:calc(80px + env(safe-area-inset-bottom));
    position:fixed;inset:var(--wp-viewport-top,0px) 0 var(--wp-keyboard-inset,0px);
    z-index:35;isolation:isolate;width:100%;max-width:none;margin:0;
    padding:max(5px,env(safe-area-inset-top)) 0 0!important;
    background:radial-gradient(ellipse at 92% 3%,#c2edda,transparent 47%),linear-gradient(153deg,#eaf8f0,#f6fbf7 62%,#dbf1e6)!important;
    display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden
  }
  #wechat-plus::before{
    content:"";pointer-events:none;position:absolute;z-index:-1;top:-175px;left:-43%;
    width:157%;height:315px;border:1px solid #ffffffa8;border-radius:48%;
    background:linear-gradient(165deg,#ffffff30 48%,#b6e4cf44 81%,#fbfff654);
    box-shadow:inset 0 -8px 18px #fff6;transform:rotate(-21deg)
  }
  #wechat-plus .wp-header{display:none}
  #wechat-plus .wp-mobile-top{
    display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;
    padding:0 16px;min-height:48px;text-align:center;color:#16382b
  }
  #wechat-plus .wp-mobile-top strong{font-size:16px}
  #wechat-plus .wp-mobile-top a,#wechat-plus .wp-mobile-top .wp-history-label{
    min-height:44px;display:grid;place-items:center;margin:0;color:inherit;text-decoration:none
  }
  #wechat-plus .wp-mobile-top a{font-size:26px;justify-self:start;min-width:44px}
  #wechat-plus .wp-mobile-top .wp-history-label{position:relative;font-size:14px;font-weight:650}
  #wechat-plus .wp-mobile-top select{position:absolute;inset:0;opacity:0;width:100%;max-width:none}
  #wechat-plus .wp-mobile-top .wp-history-label:focus-within{outline:2px solid #237653;border-radius:10px}
  #wechat-plus .wp-mobile-switch,#wechat-plus .wp-brief,#wechat-plus :is(.wp-composer-actions,.wp-mobile-delivery){
    background:var(--wp-frost);border:1px solid #ffffffed;box-shadow:inset 0 1px 2px #fff,0 6px 18px #19563c0e;
    -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)
  }
  #wechat-plus .wp-mobile-switch{margin:0 16px;padding:3px;border-radius:25px}
  #wechat-plus .wp-mobile-switch button{min-height:44px;border-radius:22px;color:var(--wp-muted);font-size:14px}
  #wechat-plus .wp-mobile-switch button[aria-selected=true]{color:#16382b;background:#fbfffbcc;box-shadow:0 2px 9px #225c441c,inset 0 1px 3px #fff}
  #wechat-plus .wp-workspace{
    min-height:0;display:block;overflow-y:auto;overscroll-behavior-y:contain;
    padding:17px 16px var(--wp-dock-space);
    scroll-padding-bottom:var(--wp-dock-space);
  }
  #wechat-plus[data-mobile-pane=chat] .wp-workspace{padding-bottom:16px;scroll-padding-bottom:16px}
  #wechat-plus :is(.wp-conversation,.wp-document){
    border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;
    min-height:0;height:auto;-webkit-backdrop-filter:none;backdrop-filter:none
  }
  #wechat-plus[data-wp-stage=brief] :is(.wp-conversation-head,.wp-messages){display:none}
  #wechat-plus .wp-conversation-head{padding:8px 0}
  #wechat-plus .wp-phase{font-size:12px;max-width:53%}
  #wechat-plus .wp-messages{padding:12px 0}
  #wechat-plus .wp-composer{padding:0;background:none}
  #wechat-plus .wp-mobile-brief-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
  #wechat-plus .wp-mobile-brief-heading h1{
    font:600 clamp(23px,6.2vw,29px)/1.24 "UW Serif SC","Songti SC",SimSun,serif;
    margin:4px 0 14px;color:#16382b
  }
  #wechat-plus[data-wp-stage=chat] .wp-mobile-brief-heading{justify-content:flex-end}
  #wechat-plus[data-wp-stage=chat] .wp-mobile-brief-heading h1{display:none}
  #wechat-plus .wp-brief{padding:15px;border-radius:22px}
  #wechat-plus .wp-composer label{font-size:14px;font-weight:650;color:#234d3a}
  #wechat-plus .wp-composer :is(input,textarea){font-size:16px}
  #wechat-plus .wp-brief>textarea{min-height:92px;max-height:180px;margin-bottom:13px}
  #wechat-plus .wp-brief>input{height:46px;margin-bottom:13px}
  #wechat-plus .wp-materials{background:none;border:0;border-top:1px solid var(--wp-line);border-radius:0;margin:0}
  #wechat-plus .wp-materials-title{min-height:44px;padding:12px 0;color:#234d3a;font-size:14px}
  #wechat-plus .wp-mobile-materials-title{display:inline}
  #wechat-plus .wp-desktop-materials-title{display:none}
  #wechat-plus .wp-material-fields{padding:0}
  #wechat-plus .wp-length{margin:0 0 8px}
  #wechat-plus .wp-length-hint{font-size:12px;color:var(--wp-muted)}
  #wechat-plus :is(.wp-composer-actions,.wp-mobile-delivery){
    position:absolute;z-index:2;inset:auto 10px max(8px,env(safe-area-inset-bottom)) 10px;
    display:flex;gap:7px;align-items:center;margin:0;padding:6px;border-radius:22px
  }
  #wechat-plus > .wp-composer-actions{
    position:static;inset:auto;margin:0 10px max(8px,env(safe-area-inset-bottom));
    padding:6px 7px;align-items:stretch;gap:5px
  }
  #wechat-plus[data-mobile-pane=doc] > .wp-composer-actions{display:none}
  #wechat-plus[data-wp-keyboard=true] > .wp-composer-actions{
    margin-bottom:4px;padding:3px;background:#f8fff9
  }
  #wechat-plus[data-wp-keyboard=true] > .wp-composer-actions small{display:none}
  #wechat-plus[data-wp-keyboard=true] > .wp-composer-actions [data-wp-send]{min-height:44px}
  #wechat-plus .wp-composer-actions small{flex:1;min-width:0;font-size:12px;line-height:1.35;color:var(--wp-muted)}
  #wechat-plus .wp-composer-actions:has(> small[hidden]) button{width:100%}
  #wechat-plus :is([data-wp-send],[data-wp-mobile-format]){
    background:#225d45;border-color:#225d45;color:white;min-height:48px;min-width:112px;
    border-radius:17px;font-size:15px;font-weight:650;white-space:nowrap
  }
  #wechat-plus .wp-mobile-delivery button{flex:1;min-height:48px;border-radius:17px}
  #wechat-plus .wp-doc-toolbar{padding:0 0 8px}
  #wechat-plus .wp-doc-footer{padding:10px 0;flex-wrap:wrap}
  #wechat-plus .wp-doc-footer button,#wechat-plus .wp-doc-toolbar button{min-height:44px}
  #wechat-plus .wp-doc-toolbar .wp-tabs{flex:1}
  #wechat-plus .wp-mobile-read-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#2a5e47}
  #wechat-plus .wp-draft-panel:has([data-wp-reader][hidden]) .wp-mobile-read-head{display:none}
  #wechat-plus .wp-mobile-reader{display:block;color:#18382b;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
  #wechat-plus .wp-mobile-reader h1{font:600 clamp(24px,6.5vw,31px)/1.35 "UW Serif SC","Songti SC",SimSun,serif;text-wrap:balance;margin:12px 0 18px}
  #wechat-plus .wp-mobile-reader h2{font-size:20px;margin:14px 0 8px}
  #wechat-plus .wp-mobile-reader p{white-space:pre-wrap;margin:0 0 15px}
  #wechat-plus:not([data-mobile-editing=true]) [data-wp-editor],
  #wechat-plus[data-mobile-editing=true] .wp-mobile-reader{display:none}
  #wechat-plus [data-wp-editor]{min-height:50dvh;font-size:16px}
  #wechat-plus .wp-doc-footer :is([data-wp-copy],[data-wp-save],[data-wp-desktop-format]){display:none}
  #wechat-plus [data-wp-mobile-copy]{min-height:44px}
  #wechat-plus [data-wp-preview]{min-height:60dvh}
  #wechat-plus :is(.wp-error,.wp-progress,.wp-options,.wp-history-warning){margin-left:0;margin-right:0}
}


/* --- plus-brief-air.css --- */
/* 公众号创作 Plus 首轮编辑台视觉层。
   只在 >=761px 桌面的首轮态生效，对话态与手机端一律不碰。
   回滚方式：删掉 static/index.html 里这行 link，无需改其他文件。 */
@media(min-width:761px){
  #wechat-plus[data-wp-stage=brief]{box-sizing:border-box;padding:24px 32px 64px}
  #wechat-plus[data-wp-stage=brief] .wp-header{max-width:880px;margin:0 auto 34px}

  /* 首轮没有正文，撤掉定高两栏，整页自然滚动 */
  #wechat-plus[data-wp-stage=brief] .wp-workspace{display:block;height:auto;min-height:0;max-height:none}
  #wechat-plus[data-wp-stage=brief] .wp-conversation{
    height:auto;min-height:0;overflow:visible;border:0;border-radius:0;box-shadow:none;background:transparent;
    -webkit-backdrop-filter:none;backdrop-filter:none
  }
  #wechat-plus[data-wp-stage=brief] .wp-conversation-head{
    width:100%;max-width:880px;margin:0 auto;padding:0 0 12px;border-bottom:0
  }
  #wechat-plus[data-wp-stage=brief] .wp-messages{
    flex:0 0 auto;min-height:0;max-height:none;overflow:visible;
    width:100%;max-width:880px;margin:0 auto;padding:14px 0 22px;gap:14px
  }
  #wechat-plus[data-wp-stage=brief] .wp-message[data-role=user]{max-height:none;overflow:visible}
  #wechat-plus[data-wp-stage=brief] :is(.wp-options,.wp-progress,.wp-error){width:100%;max-width:880px;margin-left:auto;margin-right:auto}

  /* 一张居中大卡片，靠留白分区，不靠边框和字号 */
  #wechat-plus[data-wp-stage=brief] .wp-composer{
    width:100%;max-width:880px;margin:0 auto;padding:56px;background:#fff;
    border:1px solid rgba(255,255,255,.95);border-radius:28px;
    box-shadow:0 28px 70px rgba(30,70,50,.07),inset 0 1px 0 #fff
  }
  /* 保持 .wp-brief 原有的扁平子结构，手机端 .wp-brief>input 规则才不会失效 */
  #wechat-plus[data-wp-stage=brief] .wp-brief{display:flex;flex-direction:column;gap:0}
  #wechat-plus[data-wp-stage=brief] .wp-brief>label{
    display:block;font-size:11px;letter-spacing:.16em;color:#8b9a91;margin:0 0 12px
  }
  #wechat-plus[data-wp-stage=brief] .wp-brief>:is(input[data-wp-topic-input],textarea[data-wp-requirements-input]){
    width:100%;border:1px solid transparent;border-radius:18px;background:#f7faf8;
    color:#1d3329;display:block;transition:background .18s,border-color .18s
  }
  #wechat-plus[data-wp-stage=brief] .wp-brief>input[data-wp-topic-input]{
    height:64px;padding:16px 22px;font-size:20px;line-height:1.7;margin:0 0 44px
  }
  #wechat-plus[data-wp-stage=brief] .wp-brief>textarea[data-wp-requirements-input]{
    min-height:232px;max-height:420px;padding:20px 22px;
    font-size:16px;line-height:2;resize:none;overflow-y:auto;margin:0
  }
  #wechat-plus[data-wp-stage=brief] .wp-brief>:is(input[data-wp-topic-input],textarea[data-wp-requirements-input]):focus{
    background:#fff;border-color:#d9e9de;outline:3px solid var(--g-600,#14684A);outline-offset:3px
  }
  #wechat-plus[data-wp-stage=brief] .wp-brief>:is(input[data-wp-topic-input],textarea[data-wp-requirements-input])::placeholder{color:#b6c3ba}

  /* 多少字：跟主题/要求同款软底输入，标签沿用 11px 字距的小标题 */
  #wechat-plus[data-wp-stage=brief] .wp-length{margin:26px 0 0}
  #wechat-plus[data-wp-stage=brief] .wp-length>label{
    display:block;font-size:11px;letter-spacing:.16em;color:#8b9a91;margin:0 0 12px
  }
  #wechat-plus[data-wp-stage=brief] .wp-length-row{gap:12px}
  #wechat-plus[data-wp-stage=brief] .wp-length-row input{
    width:132px;height:56px;font-size:18px;border:1px solid transparent;border-radius:16px;
    background:#f7faf8;color:#1d3329;transition:background .18s,border-color .18s
  }
  #wechat-plus[data-wp-stage=brief] .wp-length-row input:focus{
    background:#fff;border-color:#d9e9de;outline:3px solid var(--g-600,#14684A);outline-offset:3px
  }
  #wechat-plus[data-wp-stage=brief] .wp-length-row input::placeholder{color:#b6c3ba}
  #wechat-plus[data-wp-stage=brief] .wp-length-hint{font-size:12px;color:#93a49a}

  /* 素材收成一行文字链，不再叠一个带框的折叠区 */
  #wechat-plus[data-wp-stage=brief] .wp-materials{border:0;background:transparent;margin:30px 0 0;padding:0}
  #wechat-plus[data-wp-stage=brief] .wp-materials-title{display:inline-block;padding:6px 0;color:#3f7b5c;font-size:12px}
  #wechat-plus[data-wp-stage=brief] .wp-materials-title::before{content:"＋ ";font-size:14px}
  #wechat-plus[data-wp-stage=brief] .wp-materials[open] .wp-materials-title::before{content:"－ "}
  #wechat-plus[data-wp-stage=brief] .wp-material-fields{gap:14px;padding:16px 0 0}
  #wechat-plus[data-wp-stage=brief] .wp-material-fields label{font-size:11px;color:#93a49a;margin:0 0 7px}
  #wechat-plus[data-wp-stage=brief] .wp-material-fields :is(input,textarea){
    border:1px solid #e2ece5;border-radius:12px;background:#fff;padding:12px 14px;font-size:13px
  }
  #wechat-plus[data-wp-stage=brief] .wp-material-fields textarea{min-height:88px;max-height:200px}

  #wechat-plus[data-wp-stage=brief] .wp-composer-actions{margin-top:40px;align-items:flex-end}
  #wechat-plus[data-wp-stage=brief] .wp-composer small{font-size:11px;color:#93a49a;line-height:1.9}
  #wechat-plus[data-wp-stage=brief] [data-wp-send]{min-height:52px;padding:14px 32px;font-size:15px;border-radius:13px}

  /* 右栏首轮只留两个快捷入口。节点和原有事件绑定保持不变，不复制 DOM */
  #wechat-plus[data-wp-stage=brief] .wp-document{
    height:auto;min-height:0;overflow:visible;border:0;box-shadow:none;background:transparent;
    -webkit-backdrop-filter:none;backdrop-filter:none
  }
  #wechat-plus[data-wp-stage=brief] :is(.wp-doc-toolbar,.wp-doc-footer,.wp-empty h2,.wp-empty p,.wp-paper-icon,.wp-legacy-images){display:none}
  #wechat-plus[data-wp-stage=brief] :is(.wp-draft-panel,.wp-preview-panel,.wp-review-panel){flex:0 0 auto;min-height:0;overflow:visible}
  #wechat-plus[data-wp-stage=brief] .wp-empty{min-height:0;padding:0}
  #wechat-plus[data-wp-stage=brief] .wp-starters{
    flex-direction:row;flex-wrap:wrap;width:auto;max-width:880px;margin:18px auto 0;gap:20px
  }
  #wechat-plus[data-wp-stage=brief] .wp-starters button{
    background:transparent;border:0;box-shadow:none;color:#2f7f60;font-size:12px;
    min-height:32px;padding:6px 2px;text-align:left
  }
}

/* 矮视口笔记本收一点内边距，别让整张卡片吃掉首屏 */
@media(min-width:761px) and (max-height:820px){
  #wechat-plus[data-wp-stage=brief] .wp-composer{padding:36px 44px}
  #wechat-plus[data-wp-stage=brief] .wp-brief{gap:28px}
  #wechat-plus[data-wp-stage=brief] .wp-brief>textarea[data-wp-requirements-input]{min-height:180px}
  #wechat-plus[data-wp-stage=brief] .wp-composer-actions{margin-top:28px}
}

/* V2.1 P2：极短视口（如 1080x434）首轮态必须让发送按钮留在首屏。
   上面的 820px 档在 434 高下会把 composer 撑到 800px+，这里只压缩首轮态，
   不改对话态、手机端和正常高度笔记本。 */
@media(min-width:761px) and (max-height:520px){
  #wechat-plus[data-wp-stage=brief]{padding:8px 20px 24px}
  #wechat-plus[data-wp-stage=brief] .wp-header{margin-bottom:10px}
  #wechat-plus[data-wp-stage=brief] .wp-eyebrow{display:none}
  #wechat-plus[data-wp-stage=brief] h1{font-size:20px;line-height:1.25}
  #wechat-plus[data-wp-stage=brief] .wp-header p:last-child{margin-top:2px;font-size:11px}
  #wechat-plus[data-wp-stage=brief] .wp-conversation-head{padding-bottom:6px}
  #wechat-plus[data-wp-stage=brief] .wp-composer{padding:8px 0}
  #wechat-plus[data-wp-stage=brief] .wp-brief{gap:8px}
  #wechat-plus[data-wp-stage=brief] .wp-brief>textarea[data-wp-requirements-input]{min-height:56px;max-height:80px}
  #wechat-plus[data-wp-stage=brief] .wp-materials-title{min-height:32px;padding:6px 0}
  #wechat-plus[data-wp-stage=brief] .wp-composer-actions{margin-top:8px}
  /* 内容仍可能高于 434px：操作条固定视口底部，保证「开始创作」始终可点。 */
  #wechat-plus[data-wp-stage=brief] .wp-workspace{padding-bottom:88px}
  #wechat-plus[data-wp-stage=brief] .wp-composer-actions{
    position:fixed;z-index:40;left:50%;transform:translateX(-50%);bottom:8px;
    width:min(880px,calc(100% - 40px));margin:0;padding:6px 8px;
    background:rgba(249,255,251,.94);border:1px solid #ffffffed;border-radius:16px;
    box-shadow:0 8px 24px rgba(34,87,59,.12)
  }
}


/* --- mp-format.css --- */
/* 公众号排版 · UI 稿 v5.3 沉浸式阅读态（2026-11-14）
   布局：左右双栏（左 420px 编辑 / 右 1fr 预览）；左栏从上到下
         主题 → 风格描述 → 原文 → 底部动作；右栏 390px 阅读态纸。
   配色：沿用线上 2cde191 浅绿玻璃 #14684A，组件规范复用设计规范系统 v1.0。
   约束：只改视觉层，全部 data-mpf-* 钩子与云端 Skill 链路保持原样。 */
#mp-format{
  --mf-ink:#16261e;--mf-ink2:#5a6b60;--mf-ink3:#8b9a90;
  --mf-line:rgba(12,79,55,.12);--mf-line2:rgba(12,79,55,.20);
  --mf-accent:#14684A;--mf-accent2:#0c4f37;--mf-accent-ink:#14684A;
  --mf-accent-soft:rgba(31,115,80,.08);
  --mf-on:#fff;--mf-field:#fff;--mf-chip:rgba(31,115,80,.07);
  --mf-ok:#1A7F37;--mf-ok-soft:rgba(26,127,55,.12);
  --mf-warn:#B25000;--mf-warn-soft:rgba(178,80,0,.10);
  --mf-err:#a03f35;--mf-err-bg:#fdeeec;
  --mf-panel:rgba(255,255,255,.82);--mf-panel2:rgba(255,255,255,.55);
  --mf-edge:rgba(255,255,255,.82);
  --mf-blur:blur(28px) saturate(165%);
  --mf-shadow:0 8px 32px rgba(12,79,55,.06),0 1px 2px rgba(12,79,55,.04),inset 0 1px 0 rgba(255,255,255,.9);
  --mf-shadow-paper:0 24px 70px rgba(12,79,55,.10),0 2px 8px rgba(12,79,55,.04),inset 0 1px 0 rgba(255,255,255,.95);
  --mf-shadow-float:0 18px 44px rgba(12,79,55,.22),0 4px 12px rgba(12,79,55,.09),inset 0 1px 0 rgba(255,255,255,.96);
  --mf-r-lg:22px;--mf-r-md:14px;--mf-r-sm:10px;--mf-r-pill:999px;
  --mf-font:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",system-ui,sans-serif;
  --mf-ease:cubic-bezier(.22,.61,.36,1);
  position:relative;isolation:isolate;
  color:var(--mf-ink);box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0;
  min-height:100vh;font-family:var(--mf-font);
  background:radial-gradient(760px 480px at 4% -6%,#dcefe3 0%,transparent 60%),
             radial-gradient(680px 460px at 98% 96%,#e1f1e7 0%,transparent 60%),
             linear-gradient(165deg,#f7fbf8,#eaf4ed);
}
#mp-format[hidden],#mp-format [hidden]{display:none!important}
#mp-format *,#mp-format *::before,#mp-format *::after{box-sizing:border-box}
#mp-format button,#mp-format input,#mp-format select,#mp-format textarea{font:inherit;color:inherit}
#mp-format :is(button,input,textarea,select):focus-visible{outline:none;box-shadow:0 0 0 4px rgba(20,104,74,.14)}
#mp-format .mpf-glass,#mp-format .mpf-top,#mp-format .mpf-editor-panel,#mp-format .mpf-drawer,#mp-format .mpf-ruler{
  background:radial-gradient(130% 100% at 0% 0%,rgba(255,255,255,.56),transparent 62%),
             linear-gradient(140deg,rgba(255,255,255,.82),rgba(255,255,255,.60));
  backdrop-filter:var(--mf-blur);-webkit-backdrop-filter:var(--mf-blur);
  border:1px solid var(--mf-edge);box-shadow:var(--mf-shadow);
}
/* 旧版引导动线：节点与 renderSteps() 保留，主界面按稿子不显示 */
#mp-format .mpf-legacy{display:none}

/* ── 顶栏 48px ── */
#mp-format .mpf-top{position:sticky;top:0;z-index:12;min-height:48px;padding:8px 28px;
  border-radius:0;border-left:0;border-right:0;border-top:0;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#mp-format .mpf-top > *{flex:none}
#mp-format .mpf-back{font-size:12px;font-weight:500;color:var(--mf-ink2);padding:6px 8px;
  border-radius:var(--mf-r-pill);text-decoration:none}
#mp-format .mpf-back:hover{background:rgba(255,255,255,.7);color:var(--mf-accent)}
#mp-format .mpf-doc{font-size:12.5px;font-weight:600;color:var(--mf-ink);max-width:180px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mp-format .mpf-badge{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--mf-ink3);white-space:nowrap}
#mp-format .mpf-badge i{width:6px;height:6px;border-radius:50%;background:var(--mf-ok);
  box-shadow:0 0 0 4px var(--mf-ok-soft)}
#mp-format .mpf-seg{display:flex;gap:2px;padding:3px;border-radius:var(--mf-r-pill);
  background:rgba(31,115,80,.08)}
#mp-format .mpf-seg button{padding:5px 13px;border-radius:var(--mf-r-pill);font-size:11.5px;
  font-weight:500;color:var(--mf-ink2);white-space:nowrap;border:0;background:transparent;cursor:pointer;
  transition:background 180ms var(--mf-ease),color 180ms var(--mf-ease)}
#mp-format .mpf-seg button:hover{color:var(--mf-accent)}
#mp-format .mpf-seg button.on{background:#fff;color:var(--mf-accent);font-weight:700;
  box-shadow:0 2px 8px rgba(12,79,55,.09)}
#mp-format .mpf-spacer{flex:1;min-width:8px}
#mp-format .mpf-tool{border:0;background:transparent;font-size:11.5px;font-weight:500;
  color:var(--mf-ink2);padding:7px 10px;border-radius:var(--mf-r-pill);cursor:pointer;white-space:nowrap}
#mp-format .mpf-tool:hover,#mp-format .mpf-tool.on{background:rgba(255,255,255,.72);color:var(--mf-accent)}
#mp-format .mpf-primary{height:36px;padding:0 18px;border:0;border-radius:var(--mf-r-pill);
  background:var(--mf-accent);color:#fff;font-size:12.5px;font-weight:600;white-space:nowrap;
  cursor:pointer;box-shadow:0 5px 16px rgba(20,104,74,.22);
  transition:background 180ms var(--mf-ease),transform 120ms var(--mf-ease)}
#mp-format .mpf-primary:hover:not(:disabled){background:var(--mf-accent2)}
#mp-format .mpf-primary:active:not(:disabled){transform:scale(.98)}
#mp-format .mpf-primary:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}

/* ── 左右双栏 ── */
#mp-format .mpf-workspace{width:min(100%,1280px);margin:0 auto;padding:22px 28px 90px;
  display:grid;grid-template-columns:minmax(340px,420px) minmax(0,1fr);gap:28px;align-items:start}
#mp-format .mpf-editor-panel{position:sticky;top:64px;align-self:start;height:800px;min-width:0;
  display:flex;flex-direction:column;gap:11px;padding:16px;border-radius:var(--mf-r-lg)}
#mp-format .mpf-canvas{position:relative;z-index:1;min-width:0;padding:0}

/* ① 主题区：3×2 常驻版式预览卡（缩略按各套配色渲染，名字两字意象） */
#mp-format .mpf-style{flex:none;padding:12px 13px 13px;border-radius:var(--mf-r-md);
  background:transparent;border:0;border-bottom:1px dashed var(--mf-line)}
#mp-format .mpf-style-hd{display:flex;align-items:baseline;gap:9px;margin-bottom:10px}
#mp-format .mpf-style-hd b{font-size:12.5px;font-weight:600;color:var(--mf-ink);display:flex;align-items:center;gap:7px}
#mp-format .mpf-style-hd b::before{content:"01";font-size:10px;font-weight:700;letter-spacing:.05em;
  color:var(--mf-accent);font-family:ui-monospace,Menlo,Consolas,monospace;
  border:1px solid rgba(20,104,74,.30);border-radius:6px;padding:1px 4px;line-height:1.4}
#mp-format .mpf-style-hd span{font-size:10.5px;color:var(--mf-ink3)}
#mp-format .mpf-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0}
#mp-format .mpf-theme{position:relative;display:flex;flex-direction:column;align-items:stretch;
  gap:7px;height:auto;min-height:44px;padding:8px 8px 9px;border:1px solid var(--mf-line);
  border-radius:12px;background:rgba(255,255,255,.62);color:var(--mf-ink2);
  text-align:center;cursor:pointer;min-width:0;transition:background 180ms var(--mf-ease),
  border-color 180ms var(--mf-ease),box-shadow 180ms var(--mf-ease)}
#mp-format .mpf-theme:hover{background:#fff;color:var(--mf-ink);border-color:var(--mf-line2)}
#mp-format .mpf-theme.on{background:#fff;border-color:var(--mf-accent);color:var(--mf-accent);
  box-shadow:0 3px 12px rgba(20,104,74,.14),0 0 0 2px var(--mf-accent) inset}
#mp-format .mpf-theme b{display:block;font-size:12px;font-weight:600;margin:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:inherit;line-height:1.2}
#mp-format .mpf-theme small{display:block;font-size:10px;color:#6b7a70;line-height:1.2;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mp-format .mpf-theme.on small{color:var(--mf-accent);opacity:.75}
/* 迷你版式缩略：每套主题按自己的配色画一张示意小版面 */
#mp-format .mpf-mini{position:relative;display:block;height:52px;border-radius:7px;
  background:#fff;border:1px solid rgba(12,79,55,.12);overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
#mp-format .mpf-mini::before{content:"";position:absolute;left:12%;right:12%;top:7px;height:5px;
  border-radius:2px;background:var(--c,#14684A)}
#mp-format .mpf-mini::after{content:"";position:absolute;left:12%;right:34%;bottom:7px;height:3px;
  border-radius:2px;background:rgba(12,79,55,.20);
  box-shadow:0 -7px 0 -1px rgba(12,79,55,.12),0 -13px 0 -1px rgba(12,79,55,.08)}
/* 朱题：居中红题头 */
#mp-format .mpf-mini.red::before{left:26%;right:26%;top:6px;height:6px;background:#B93A2B}
/* 墨线：深灰题块+通栏细横线 */
#mp-format .mpf-mini.graphite{background:linear-gradient(#fff,#f6f7f6)}
#mp-format .mpf-mini.graphite::before{left:12%;right:44%;height:6px;background:#33302B}
#mp-format .mpf-mini.graphite::after{left:12%;right:12%;bottom:9px;
  box-shadow:0 -6px 0 -1px rgba(51,48,43,.22),0 -12px 0 -1px rgba(51,48,43,.14)}
/* 素笺：大面积留白，短居中题+稀疏行 */
#mp-format .mpf-mini.zen{background:#FCFDFC}
#mp-format .mpf-mini.zen::before{left:36%;right:36%;top:9px;height:4px;background:var(--c,#14684A);opacity:.8}
#mp-format .mpf-mini.zen::after{left:22%;right:40%;bottom:9px;box-shadow:0 -10px 0 -1px rgba(12,79,55,.08)}
/* 票根：虚线框票据 */
#mp-format .mpf-mini.ticket{border:1.5px dashed var(--c,#14684A);background:#fff}
#mp-format .mpf-mini.ticket::before{left:14%;right:14%;top:6px;height:4px}
#mp-format .mpf-mini.ticket::after{left:14%;right:30%;bottom:8px;
  box-shadow:0 -6px 0 -1px rgba(12,79,55,.14),0 -12px 0 -1px rgba(12,79,55,.10)}
/* 琥珀：左侧暖橙标注竖条 */
#mp-format .mpf-mini.olive::before{left:9%;right:auto;width:4px;top:6px;bottom:6px;height:auto;
  border-radius:2px;background:#C07A2D}
#mp-format .mpf-mini.olive::after{left:18%;right:30%;bottom:7px;
  box-shadow:0 -7px 0 -1px rgba(192,122,45,.20),0 -13px 0 -1px rgba(12,79,55,.10)}
#mp-format .mpf-theme-n{position:absolute;top:6px;left:8px;font:700 9px/1 ui-monospace,Menlo,Consolas,monospace;
  color:var(--mf-accent);opacity:.72;letter-spacing:.06em;pointer-events:none}
#mp-format .mpf-theme.on .mpf-theme-n{opacity:1}
#mp-format .mpf-theme .mpf-ck{position:absolute;top:6px;right:7px;display:none;width:14px;height:14px;
  border-radius:50%;background:var(--mf-accent);color:#fff;font-size:9px;line-height:14px;text-align:center}
#mp-format .mpf-theme.on .mpf-ck{display:block}

/* ② 风格描述：与主题区同底，分割线衔接 */
#mp-format .mpf-style-brief{flex:none;padding:12px 13px 10px;border-radius:var(--mf-r-md);
  background:transparent;border:0;border-bottom:1px dashed var(--mf-line);margin:0}
#mp-format .mpf-style-brief label{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--mf-ink);margin-bottom:9px}
#mp-format .mpf-style-brief label::before{content:"02";font-size:10px;font-weight:700;letter-spacing:.05em;
  color:var(--mf-accent);font-family:ui-monospace,Menlo,Consolas,monospace;
  border:1px solid rgba(20,104,74,.30);border-radius:6px;padding:1px 4px;line-height:1.4}
#mp-format .mpf-style-brief label::after{content:"说人话就行，整篇会跟着换";font-size:10.5px;
  font-weight:400;color:var(--mf-ink3);margin-left:0}
#mp-format .mpf-style-row{display:flex;gap:8px}
#mp-format .mpf-style-row input{flex:1;min-width:0;height:40px;padding:0 14px;
  border:1px solid var(--mf-line2);border-radius:var(--mf-r-pill);background:rgba(255,255,255,.88);
  color:var(--mf-ink);font-size:12.5px;outline:0;
  transition:border-color 180ms var(--mf-ease),box-shadow 180ms var(--mf-ease)}
#mp-format .mpf-style-row input::placeholder{color:var(--mf-ink3)}
#mp-format .mpf-style-row input:focus{border-color:rgba(20,104,74,.42);box-shadow:0 0 0 4px rgba(20,104,74,.09)}
/* 按描述排版：描边幽灵按钮，把实心绿让给唯一的「开始排版」主 CTA */
#mp-format .mpf-mini-btn{height:40px;padding:0 15px;border:1px solid rgba(20,104,74,.35);
  border-radius:var(--mf-r-pill);background:#fff;color:var(--mf-accent);font-size:12px;font-weight:600;
  white-space:nowrap;cursor:pointer;transition:background 180ms var(--mf-ease)}
#mp-format .mpf-mini-btn:hover{background:var(--mf-accent-soft)}
#mp-format .mpf-mini-btn:disabled{opacity:.5;cursor:wait}
#mp-format .mpf-style-brief small{display:block;margin-top:8px;color:var(--mf-ink3);
  font-size:10.5px;line-height:1.6}

/* 开始排版按钮 + 进度条（v5.3.1：选主题→点开始→读进度条调 Skill） */
#mp-format .mpf-start{width:100%;height:40px;margin-top:11px}
#mp-format .mpf-start:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
#mp-format .mpf-progress{margin-top:11px}
#mp-format .mpf-progress-track{position:relative;height:6px;border-radius:999px;
  background:rgba(31,115,80,.12);overflow:hidden}
#mp-format .mpf-progress-fill{position:absolute;left:0;top:0;height:100%;width:0;
  border-radius:999px;background:var(--mf-accent);
  transition:width .45s var(--mf-ease)}
#mp-format .mpf-progress.indet .mpf-progress-fill{width:42%!important;
  animation:mpf-indet 1.15s var(--mf-ease) infinite}
@keyframes mpf-indet{0%{transform:translateX(-130%)}100%{transform:translateX(330%)}}
#mp-format .mpf-progress-label{margin-top:7px;font-size:11px;color:var(--mf-ink2);
  display:flex;align-items:center;gap:6px;min-height:14px;line-height:1.4}
#mp-format .mpf-progress-label b{color:var(--mf-accent);font-variant-numeric:tabular-nums}
#mp-format .mpf-progress.err .mpf-progress-fill{background:var(--mf-err)}
#mp-format .mpf-progress.err .mpf-progress-label{color:var(--mf-err)}

/* ③ 原文 */
#mp-format .mpf-ed-head{display:flex;align-items:center;gap:9px;flex:none;padding:0 1px}
#mp-format .mpf-ed-head b{font-size:13px;font-weight:600;color:var(--mf-ink);
  display:flex;align-items:center;gap:7px}
#mp-format .mpf-ed-head b::before{content:"03";font-size:10px;font-weight:700;letter-spacing:.05em;
  color:var(--mf-accent);font-family:ui-monospace,Menlo,Consolas,monospace;
  border:1px solid rgba(20,104,74,.30);border-radius:6px;padding:1px 4px;line-height:1.4}
#mp-format .mpf-tag{font-size:10px;font-weight:600;color:var(--mf-accent);padding:3px 9px;
  border-radius:var(--mf-r-pill);background:var(--mf-accent-soft);white-space:nowrap}
#mp-format .mpf-meta{margin-left:auto;font-size:11px;color:var(--mf-ink3);
  font-variant-numeric:tabular-nums;white-space:nowrap}
#mp-format .mpf-editor{position:relative;flex:1;min-height:0;border:1px solid var(--mf-line2);
  border-radius:var(--mf-r-md);background:rgba(255,255,255,.86);
  transition:border-color 180ms var(--mf-ease),box-shadow 180ms var(--mf-ease)}
#mp-format .mpf-editor:focus-within{border-color:rgba(20,104,74,.42);box-shadow:0 0 0 4px rgba(20,104,74,.09)}
#mp-format [data-mpf-input]{display:block;width:100%;height:100%;min-height:0;resize:none;border:0;
  outline:0;background:transparent;color:var(--mf-ink);font-size:14px;line-height:1.95;
  padding:14px 15px;letter-spacing:.2px}
#mp-format [data-mpf-input]::placeholder{color:var(--mf-ink3)}
#mp-format .mpf-empty{display:none}

/* ④ 底部动作 */
#mp-format .mpf-ed-foot{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:wrap;
  font-size:10.5px;color:var(--mf-ink3)}
#mp-format .mpf-ed-foot .grow{flex:1;min-width:8px}
#mp-format .mpf-link{border:0;background:transparent;color:var(--mf-accent);font-size:11px;
  font-weight:600;padding:5px 9px;border-radius:var(--mf-r-pill);cursor:pointer;white-space:nowrap}
#mp-format .mpf-link:hover{background:rgba(31,115,80,.08)}
#mp-format .mpf-aistate{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;
  color:var(--mf-accent);white-space:nowrap}
#mp-format .mpf-aistate::before{content:"";width:5px;height:5px;border-radius:50%;
  background:var(--mf-accent);flex:none}
#mp-format .mpf-aistate.busy{color:var(--mf-ink3)}
#mp-format .mpf-aistate.busy::before{background:var(--mf-ink3);animation:mpf-pulse 1.2s ease-in-out infinite}
@keyframes mpf-pulse{0%,100%{opacity:.28}50%{opacity:1}}

/* ── 右栏：舞台控制条 ── */
#mp-format .mpf-stage-head{width:min(100%,420px);margin:0 auto 14px;display:flex;
  align-items:center;gap:8px;transition:opacity 240ms var(--mf-ease)}
#mp-format .mpf-stage-hint{font-size:10.5px;color:var(--mf-ink3);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
#mp-format .mpf-tiny-btn{margin-left:auto;border:1px solid var(--mf-line2);background:transparent;
  color:var(--mf-accent);font-size:11px;font-weight:600;padding:5px 10px;
  border-radius:var(--mf-r-pill);cursor:pointer;white-space:nowrap;flex:none}
#mp-format .mpf-tiny-btn:hover,#mp-format .mpf-tiny-btn.on{background:rgba(255,255,255,.8)}

/* ── 420px 阅读态纸：无设备壳，页面自然滚 ── */
#mp-format .mpf-reader-wrap{position:relative;width:min(100%,460px);margin:0 auto;
  display:flex;justify-content:center}
#mp-format .mpf-paper{position:relative;z-index:2;width:min(420px,100%);flex:none;background:#fff;
  border:1px solid rgba(255,255,255,.95);border-radius:var(--mf-r-lg);
  box-shadow:var(--mf-shadow-paper);padding:0 20px 20px;min-height:640px;
  transition:width 320ms var(--mf-ease),box-shadow 320ms var(--mf-ease)}
#mp-format .mpf-phone{width:100%;border-radius:0;overflow:visible;background:#fff;box-shadow:none;position:relative}
#mp-format .mpf-statusbar{display:none}
#mp-format [data-mpf-frame]{display:block;width:100%;border:0;background:#fff;margin:0;min-height:520px}
/* 右栏空态引导：没贴正文时纸面不是一整块白，给到三步动线 */
#mp-format .mpf-paper-empty{position:absolute;z-index:1;left:16px;right:16px;top:14px;bottom:14px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  text-align:center;pointer-events:none;transition:opacity 240ms var(--mf-ease)}
#mp-format .mpf-paper-empty.hide{display:none}
#mp-format .mpf-paper-empty b{font-size:13.5px;font-weight:600;color:var(--mf-ink)}
#mp-format .mpf-paper-empty ol{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;
  list-style:none;width:min(240px,100%)}
#mp-format .mpf-paper-empty ol li{display:flex;align-items:center;gap:10px;font-size:12px;
  color:var(--mf-ink2);text-align:left}
#mp-format .mpf-paper-empty ol li i{flex:none;width:20px;height:20px;border-radius:50%;
  background:var(--mf-accent-soft);color:var(--mf-accent);font-size:10.5px;font-weight:700;
  font-style:normal;display:flex;align-items:center;justify-content:center}
#mp-format .mpf-paper-empty .tip{font-size:10.5px;color:var(--mf-ink3);line-height:1.6}
/* 文末动作条：静态跟在文章后，不悬浮盖正文 */
#mp-format .mpf-endbar{display:flex;align-items:center;gap:10px;margin-top:32px;
  padding:12px 12px 12px 16px;border-radius:var(--mf-r-pill);
  background:linear-gradient(140deg,rgba(255,255,255,.94),rgba(255,255,255,.78));
  backdrop-filter:var(--mf-blur);-webkit-backdrop-filter:var(--mf-blur);
  border:1px solid rgba(255,255,255,.94);box-shadow:var(--mf-shadow-float)}
#mp-format .mpf-state{flex:1;min-width:0;font-size:11px;line-height:1.5;color:var(--mf-ink2)}
#mp-format .mpf-state span{display:block}
#mp-format [data-mpf-okline] i{display:inline-block;width:6px;height:6px;border-radius:50%;
  background:var(--mf-ok);margin-right:6px}
#mp-format [data-mpf-risk]{color:var(--mf-warn)}
#mp-format [data-mpf-hint]{font-size:10px;color:var(--mf-ink3)}
#mp-format .mpf-endbar .mpf-primary{height:40px}
#mp-format .mpf-paper-foot{width:min(100%,420px);margin:16px auto 0;text-align:center;
  font-size:11px;color:var(--mf-ink3)}
#mp-format .mpf-side-note{width:min(100%,420px);margin:10px auto 0;text-align:center;
  font-size:10.5px;line-height:1.6;color:var(--mf-ink3)}

/* 排版标尺：挂在纸右侧，不占栅格 */
#mp-format .mpf-ruler{position:absolute;left:100%;top:0;margin-left:16px;width:100px;padding:12px;
  border-radius:var(--mf-r-md);z-index:3;animation:mpf-slide-in 240ms var(--mf-ease) both}
@keyframes mpf-slide-in{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
#mp-format .mpf-rh{font-size:10px;letter-spacing:.12em;color:var(--mf-ink3);
  text-transform:uppercase;margin-bottom:10px}
#mp-format .mpf-rt{position:relative;display:flex;align-items:center;gap:6px;height:26px;
  font-variant-numeric:tabular-nums;font-size:10px;color:var(--mf-ink3);white-space:nowrap}
#mp-format .mpf-rt::before{content:"";width:10px;height:1px;flex:none;background:var(--mf-accent);opacity:.5}
#mp-format .mpf-rt b{font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:700;
  color:var(--mf-accent);min-width:30px}
#mp-format .mpf-rbox{margin-top:14px;padding:10px;border-radius:var(--mf-r-sm);
  background:rgba(255,255,255,.7);font-size:10px;line-height:1.6;color:var(--mf-ink3)}

/* 对照副纸 */
#mp-format .mpf-compare{position:absolute;left:100%;top:0;margin-left:16px;width:300px;
  z-index:3;border-radius:var(--mf-r-md);overflow:hidden;background:#fff;
  border:1px solid rgba(255,255,255,.95);box-shadow:var(--mf-shadow-paper);
  animation:mpf-slide-in 320ms var(--mf-ease) both}
#mp-format .mpf-cp-head{height:34px;display:flex;align-items:center;justify-content:space-between;
  padding:0 14px;border-bottom:1px solid var(--mf-line);font-size:10.5px;color:var(--mf-ink3)}
#mp-format .mpf-cp-head b{color:var(--mf-accent);font-weight:600}
#mp-format [data-mpf-compare-frame]{display:block;width:390px;height:620px;border:0;background:#fff;
  transform:scale(.769);transform-origin:top left}

/* 参数抽屉 */
#mp-format .mpf-drawer{position:fixed;z-index:30;right:20px;top:64px;width:280px;
  max-height:calc(100vh - 88px);overflow-y:auto;padding:16px 18px;border-radius:var(--mf-r-md);
  animation:mpf-slide-in 240ms var(--mf-ease) both}
#mp-format .mpf-drawer-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#mp-format .mpf-drawer-hd b{font-size:12px;font-weight:600;color:var(--mf-ink)}
#mp-format .mpf-drawer-hd button{font-size:10.5px;color:var(--mf-accent);font-weight:600;
  padding:4px 7px;border:0;background:transparent;border-radius:8px;cursor:pointer}
#mp-format .mpf-drawer-hd button:hover{background:var(--mf-accent-soft)}
#mp-format .mpf-drawer-extra{display:flex;flex-direction:column;gap:8px;align-items:flex-start;
  padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--mf-line)}
#mp-format .mpf-drawer-extra .mpf-tiny-btn{margin-left:0}
#mp-format .mpf-drawer .mpf-card{display:block;border:0;border-radius:0;background:transparent;
  box-shadow:none;backdrop-filter:none;overflow:visible}
#mp-format .mpf-more-hd{display:flex;align-items:center;gap:10px;width:100%;padding:0 0 8px;
  border:0;background:transparent;color:var(--mf-ink);font-size:12px;font-weight:500;
  cursor:pointer;text-align:left}
#mp-format .mpf-more-hd small{color:var(--mf-ink3);font-size:10px;font-weight:400}
#mp-format .mpf-more-hd .chev{margin-left:auto;color:var(--mf-ink3);transition:transform .2s}
#mp-format .mpf-more.open .chev{transform:rotate(180deg)}
#mp-format .mpf-more-body{display:none;padding:2px 0 0}
#mp-format .mpf-more.open .mpf-more-body{display:block}
#mp-format .mpf-grp{font-size:10px;color:var(--mf-ink3);letter-spacing:.08em;margin:12px 0 8px}
#mp-format .mpf-slider{display:grid;grid-template-columns:36px 1fr 42px;align-items:center;gap:8px;
  padding:5px 0;font-size:11px;color:var(--mf-ink2)}
#mp-format .mpf-slider output{text-align:right;color:var(--mf-ink);
  font-variant-numeric:tabular-nums;font-size:10.5px}
#mp-format input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:4px;
  border-radius:4px;background:var(--mf-line2);outline-offset:4px;margin:0}
#mp-format input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;
  border-radius:50%;background:var(--mf-accent);cursor:pointer;box-shadow:0 0 0 3px var(--mf-accent-soft)}
#mp-format input[type=range]::-moz-range-thumb{width:13px;height:13px;border-radius:50%;
  background:var(--mf-accent);border:0;cursor:pointer}
#mp-format .mpf-preset-row{display:flex;gap:7px;margin-bottom:9px}
#mp-format [data-mpf-presetName]{flex:1;min-width:0;border:1px solid var(--mf-line2);
  border-radius:var(--mf-r-sm);background:#fff;color:var(--mf-ink);padding:7px 11px;font-size:11px}
#mp-format .mpf-preset-row .mpf-mini-btn{height:auto;padding:7px 11px;font-size:11px}
#mp-format .mpf-presets{display:flex;gap:6px;flex-wrap:wrap}
#mp-format .mpf-preset{display:inline-flex;align-items:stretch;border:1px solid var(--mf-line2);
  border-radius:9px;overflow:hidden;background:var(--mf-panel2)}
#mp-format .mpf-preset button{cursor:pointer;border:0;background:transparent;color:var(--mf-accent);
  font-size:11px;padding:5px 10px}
#mp-format .mpf-preset button:hover{background:var(--mf-accent-soft)}
#mp-format .mpf-preset .x{border-left:1px solid var(--mf-line2);color:var(--mf-ink3);padding:5px 7px}
#mp-format .mpf-preset-empty{font-size:11px;color:var(--mf-ink3)}
#mp-format .mpf-checks{display:flex;flex-direction:column;gap:5px}
#mp-format .mpf-check{margin:0;font-size:10.5px;line-height:1.7;border-radius:9px;padding:7px 10px;
  border-left:3px solid transparent}
#mp-format .mpf-check.ok{background:var(--mf-ok-soft);border-left-color:rgba(26,127,55,.5);color:var(--mf-ok)}
#mp-format .mpf-check.warn{background:var(--mf-warn-soft);border-left-color:rgba(178,80,0,.5);color:var(--mf-warn)}
#mp-format .mpf-check.high{background:var(--mf-err-bg);border-left-color:rgba(160,63,53,.55);color:var(--mf-err)}
#mp-format .mpf-gate-head{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;
  margin-bottom:9px;font-size:11px;flex-wrap:wrap}
#mp-format .mpf-gate-head .dot{width:9px;height:9px;border-radius:50%;flex:none}
#mp-format .mpf-gate-head b{font-weight:600}
#mp-format .mpf-gate-head small{margin-left:auto;color:var(--mf-ink3);font-size:10px}
#mp-format .mpf-gate-head.ok{background:var(--mf-ok-soft)}
#mp-format .mpf-gate-head.ok .dot{background:#3aa76d}
#mp-format .mpf-gate-head.ok b{color:var(--mf-ok)}
#mp-format .mpf-gate-head.warn{background:var(--mf-warn-soft)}
#mp-format .mpf-gate-head.warn .dot{background:#d9a96c}
#mp-format .mpf-gate-head.warn b{color:var(--mf-warn)}
#mp-format .mpf-gate-head.high{background:var(--mf-err-bg)}
#mp-format .mpf-gate-head.high .dot{background:#d97a6c}
#mp-format .mpf-gate-head.high b{color:var(--mf-err)}
/* AI 结果面板 / 主题推荐 chips（收进抽屉，不删功能） */
#mp-format .mpf-ai-result{margin:0;border:1px solid var(--mf-line2);border-radius:var(--mf-r-md);
  padding:12px 13px;background:var(--mf-accent-soft);display:flex;flex-direction:column;gap:10px}
#mp-format .mpf-ai-head{font-size:11.5px;color:var(--mf-ink2);line-height:1.7}
#mp-format .mpf-ai-head b{color:var(--mf-accent);font-weight:600}
#mp-format .mpf-ai-note{padding:8px 10px;border-radius:10px;font-size:10.5px;line-height:1.6;
  color:#8A6412;background:rgba(224,162,60,.10);border:1px solid rgba(224,162,60,.28)}
#mp-format .mpf-ai-chips{display:flex;flex-wrap:wrap;gap:8px}
#mp-format .mpf-ai-chip{cursor:pointer;display:flex;flex-direction:column;gap:3px;align-items:flex-start;
  border:1px solid var(--mf-line2);background:#fff;border-radius:11px;padding:8px 11px;min-width:0}
#mp-format .mpf-ai-chip i{width:16px;height:16px;border-radius:5px;background:var(--c,#21744C);display:block}
#mp-format .mpf-ai-chip span{font-size:12px;font-weight:600;color:var(--mf-ink)}
#mp-format .mpf-ai-chip small{font-size:9.5px;color:var(--mf-ink3)}
#mp-format .mpf-ai-chip.on{border-color:var(--mf-accent);background:var(--mf-accent-soft);
  box-shadow:0 0 0 1px var(--mf-accent)}

/* ── 沉浸态 ── */
#mp-format[data-mpf-focus="1"]{background:#FDFEFC}
#mp-format[data-mpf-focus="1"] .mpf-top,
#mp-format[data-mpf-focus="1"] .mpf-editor-panel,
#mp-format[data-mpf-focus="1"] .mpf-stage-head,
#mp-format[data-mpf-focus="1"] .mpf-drawer,
#mp-format[data-mpf-focus="1"] .mpf-ruler,
#mp-format[data-mpf-focus="1"] .mpf-compare,
#mp-format[data-mpf-focus="1"] .mpf-endbar,
#mp-format[data-mpf-focus="1"] .mpf-paper-foot,
#mp-format[data-mpf-focus="1"] .mpf-side-note{display:none!important}
#mp-format[data-mpf-focus="1"] .mpf-workspace{grid-template-columns:minmax(0,1fr);
  max-width:880px;padding-top:56px}
#mp-format[data-mpf-focus="1"] .mpf-paper{width:min(460px,100%);padding:0 26px 40px;
  box-shadow:0 12px 40px rgba(12,79,55,.06);border-color:rgba(12,79,55,.06)}
#mp-format .mpf-focus-exit{position:fixed;z-index:40;right:24px;bottom:24px;display:flex;
  align-items:center;gap:8px;padding:9px 14px;border-radius:var(--mf-r-pill);
  background:rgba(255,255,255,.9);backdrop-filter:var(--mf-blur);border:1px solid var(--mf-edge);
  box-shadow:var(--mf-shadow-float);font-size:11.5px;font-weight:600;color:var(--mf-accent);cursor:pointer}
#mp-format .mpf-focus-exit kbd{font-family:ui-monospace,Menlo,monospace;font-size:9.5px;
  color:var(--mf-ink3);border:1px solid var(--mf-line2);border-radius:5px;padding:1px 5px}

/* toast */
#mp-format [data-mpf-toast]{position:fixed;left:50%;bottom:30px;transform:translateX(-50%) translateY(14px);
  background:#1d1d1f;color:#fff;border:0;padding:10px 20px;border-radius:var(--mf-r-md);
  font-size:12px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;
  z-index:99;max-width:min(460px,86vw);box-shadow:0 12px 30px rgba(0,0,0,.18)}
#mp-format [data-mpf-toast].on{opacity:1;transform:translateX(-50%) translateY(0)}
#mp-format [data-mpf-toast].err{background:#7d2f26}

/* ── 响应式 ── */
@media(max-width:1080px){
  #mp-format .mpf-top{padding:8px 16px}
  #mp-format .mpf-doc{display:none}
  #mp-format .mpf-workspace{grid-template-columns:1fr;gap:16px;padding:16px 18px 80px}
  #mp-format .mpf-editor-panel{position:static;height:auto;min-height:300px}
  #mp-format .mpf-editor{flex:none;height:180px}
  #mp-format .mpf-reader-wrap{display:block;width:100%}
  #mp-format .mpf-paper{margin:0 auto}
  #mp-format .mpf-ruler{position:static;left:auto;margin:14px auto 0;width:min(390px,100%);
    display:flex;flex-wrap:wrap;gap:0 12px;justify-content:center}
  #mp-format .mpf-rh,#mp-format .mpf-rbox{display:none}
  #mp-format .mpf-compare{position:static;left:auto;margin:14px auto 0;width:min(390px,100%)}
  #mp-format .mpf-drawer{right:12px;top:58px;width:min(280px,calc(100% - 24px))}
  #mp-format .mpf-stage-hint{display:none}
}
@media(max-width:640px){
  #mp-format{background:#fff}
  #mp-format .mpf-top{padding:6px 10px;min-height:44px}
  #mp-format .mpf-badge{display:none}
  #mp-format .mpf-seg{margin-left:auto}
  #mp-format .mpf-seg button{padding:5px 10px;font-size:11px}
  #mp-format .mpf-spacer{display:none}
  #mp-format .mpf-tool{padding:5px 7px;font-size:11px}
  #mp-format .mpf-top > .mpf-primary{display:none}
  #mp-format .mpf-workspace{padding:10px 0 40px;gap:12px}
  #mp-format .mpf-editor-panel{height:auto;margin:0 12px;padding:12px;border-radius:16px;gap:9px}
  #mp-format .mpf-style{padding:9px 10px 10px;border-radius:12px}
  #mp-format .mpf-themes{gap:5px}
  #mp-format .mpf-theme{padding:7px 5px 8px;border-radius:10px;min-height:44px}
  #mp-format .mpf-mini{height:40px}
  #mp-format .mpf-theme b{font-size:11px}
  #mp-format .mpf-tag{display:none}
  #mp-format .mpf-editor{flex:none;height:130px}
  #mp-format [data-mpf-input]{font-size:13px;padding:11px 12px}
  #mp-format .mpf-style-brief{padding:10px 11px 9px;border-radius:12px}
  #mp-format .mpf-style-row input{height:44px;font-size:12.5px;padding:0 12px}
  #mp-format .mpf-mini-btn{height:44px;padding:0 14px;font-size:12px}
  #mp-format .mpf-stage-head{width:100%;padding:0 12px;margin-bottom:10px}
  #mp-format .mpf-paper{width:100%;border-radius:0;border:0;box-shadow:none;
    padding:0 20px 20px;min-height:auto}
  #mp-format .mpf-endbar{position:static;margin-top:24px}
  #mp-format .mpf-endbar .mpf-primary{height:46px;font-size:13px}
  #mp-format .mpf-ruler,#mp-format .mpf-compare{display:none!important}
  #mp-format .mpf-paper-foot,#mp-format .mpf-side-note{display:none}
  #mp-format .mpf-drawer{position:fixed;left:12px;right:12px;bottom:12px;top:auto;
    width:auto;max-height:70vh}
  #mp-format[data-mpf-focus="1"] .mpf-paper{width:100%;padding:0 20px 40px;
    box-shadow:none;border:0}
}
/* v6.6：修正固定胶片遮挡预览。桌面端不锁死页面高度，内容与胶片各自占位。 */
body.atelier #mp-format{height:auto!important;min-height:100dvh!important;overflow:visible!important;padding-bottom:150px!important}
body.atelier #mp-format .mpf-workspace{height:auto!important;min-height:calc(100dvh - 58px - 126px)!important;overflow:visible!important;align-items:start}
body.atelier #mp-format .mpf-editor-panel{height:calc(100dvh - 58px - 126px - 44px)!important;max-height:none!important}
body.atelier #mp-format .mpf-canvas{height:auto!important;min-height:0!important;overflow:visible!important}
body.atelier #mp-format .mpf-phone{max-height:none!important;overflow:visible!important}
body.atelier #mp-format .mpf-paper{margin-bottom:24px!important}
/* 胶片参与文档流：sticky 保持贴底感，但不覆盖预览内容。 */
body.atelier #mp-format .mpf-strip{position:sticky!important;left:auto!important;right:auto!important;bottom:0!important;width:100%!important}
@media(max-width:640px){body.atelier #mp-format{height:auto!important;min-height:100dvh!important;overflow:visible!important;padding-bottom:126px!important}body.atelier #mp-format .mpf-workspace{min-height:0!important;height:auto!important}body.atelier #mp-format .mpf-editor-panel{height:auto!important}body.atelier #mp-format .mpf-phone{max-height:none!important;overflow:visible!important}}

/* v7.0：公众号排版 A 方向落地——输入→选版式→预览→复制 */
body.atelier #mp-format{background:radial-gradient(760px 500px at 0 -10%,#bfe2cb 0,transparent 62%),radial-gradient(650px 520px at 100% 100%,#efe7d2 0,transparent 65%),linear-gradient(145deg,#f7fbf8,#e3f0e6)!important}
body.atelier #mp-format .mpf-top{height:58px;min-height:58px;margin:16px 18px 0;border:1px solid rgba(255,255,255,.88);border-radius:16px;padding:0 24px;background:rgba(255,255,255,.62);box-shadow:inset 0 1px 0 #fff,0 12px 30px -24px rgba(19,68,44,.45)}
body.atelier #mp-format .mpf-workspace{width:min(100%,1260px);grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:18px;padding:18px 14px 150px}
body.atelier #mp-format .mpf-editor-panel{position:sticky;top:86px;height:calc(100dvh - 122px);max-height:none;padding:20px;border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(232,247,236,.56));box-shadow:inset 0 1px 0 #fff,0 18px 42px -28px rgba(19,68,44,.45)}
body.atelier #mp-format .mpf-canvas{padding:0 12px;overflow:visible}
body.atelier #mp-format .mpf-stage-head{height:44px;margin:0 0 8px;padding:0 8px}
body.atelier #mp-format .mf-plate > b{font-size:16px;font-family:Georgia,"Songti SC",serif}
body.atelier #mp-format .mpf-reader-wrap{display:flex;justify-content:center}
body.atelier #mp-format .mpf-paper{width:min(100%,570px);padding:16px 16px 0;border-radius:20px;background:rgba(250,252,248,.82);box-shadow:0 18px 48px -26px rgba(12,79,55,.38),inset 0 1px 0 #fff}
body.atelier #mp-format .mpf-phone{min-height:650px;border-radius:10px;background:#fff;overflow:visible}
body.atelier #mp-format .mpf-endbar{margin-top:18px;border-radius:999px}
body.atelier #mp-format .mpf-strip{position:fixed!important;left:264px!important;right:16px!important;bottom:12px!important;height:112px!important;padding:12px 16px!important;border-radius:18px!important;background:rgba(255,255,255,.78)!important;box-shadow:0 14px 35px -26px rgba(19,68,44,.55)!important}
body.atelier #mp-format .mf-strip-lab{width:118px}
body.atelier #mp-format .mpf-strip .mpf-theme{height:82px;border-radius:11px;background:rgba(255,255,255,.58);padding:6px}
body.atelier #mp-format .mpf-strip .mpf-theme.on{background:rgba(255,255,255,.92);border-color:#3e8d6b;box-shadow:0 8px 18px -14px #2f7256}
body.atelier #mp-format .mpf-strip .mpf-start{height:38px;width:112px;border-radius:10px;background:linear-gradient(145deg,#63bd91,#2f7256)}
body.atelier #mp-format .mpf-strip .mpf-style{padding-right:124px}
@media(max-width:1080px){body.atelier #mp-format .mpf-strip{left:206px!important;right:10px!important}body.atelier #mp-format .mpf-workspace{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:640px){body.atelier #mp-format .mpf-top{margin:0;border-radius:0}body.atelier #mp-format .mpf-workspace{grid-template-columns:1fr;padding-bottom:128px}body.atelier #mp-format .mpf-editor-panel{position:static;height:auto;margin:0 12px}body.atelier #mp-format .mpf-strip{left:8px!important;right:8px!important;bottom:8px!important;height:106px!important;border-radius:14px!important}.mf-strip-lab{display:none!important}}

@media(prefers-reduced-motion:reduce){#mp-format *{transition:none!important;animation:none!important}}


/* ─────────── v6.4 设计稿落地：浅绿玻璃壳 · 单焦点纸 · 底部六套固定排版胶片 ───────────
   只覆盖布局与新增装饰，原有组件细节、data-mpf-* 钩子、Skill/复制链路全部保留。
   源文件与 home-bundle.css 必须同步（bundle 是线上唯一被加载的样式表）。 */
#mp-format{padding-bottom:176px;z-index:60}
/* atelier 皮肤把 .skill-page 底 padding 钉在 26px!important，会把正文压进固定胶片底下；
   这里用更高优先级抢回胶片高度的预留（138px 胶片 + 38px 呼吸位）。 */
body.atelier #mp-format{padding-bottom:176px!important}
#mp-format .mpf-top{min-height:54px;padding:8px 24px;gap:10px}
#mp-format .mf-steps{display:flex;align-items:center;gap:6px;margin-left:12px;flex:none}
#mp-format .mf-step{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;
  font-size:11px;color:var(--mf-ink3);white-space:nowrap}
#mp-format .mf-step b{font:700 10px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.04em}
#mp-format .mf-step.on{background:var(--mf-accent-soft);color:var(--mf-accent);
  box-shadow:inset 0 0 0 1px rgba(20,104,74,.22)}
#mp-format .mf-step.on b{color:var(--mf-accent)}
#mp-format .mf-join{width:12px;height:1px;background:var(--mf-line2);flex:none}

/* 380px 源稿栏 + 单焦点纸舞台：栏与纸按比例放大，消除宽屏死空间 */
#mp-format .mpf-workspace{width:min(100%,1200px);margin:0 auto;padding:24px 28px 60px;
  grid-template-columns:minmax(330px,380px) minmax(0,1fr);gap:32px}
#mp-format .mpf-editor-panel{position:sticky;top:64px;align-self:start;height:auto;
  max-height:calc(100vh - 84px);overflow-y:auto;scrollbar-width:none;
  display:flex;flex-direction:column;gap:0;padding:20px 18px;border-radius:var(--mf-r-lg)}
#mp-format .mpf-editor-panel::-webkit-scrollbar{width:0}
#mp-format .mf-src-hd{display:flex;align-items:baseline;gap:10px;margin-bottom:2px}
#mp-format .mf-src-hd .no{font-family:var(--mf-serif,Georgia,"Songti SC",serif);font-size:26px;line-height:1;color:var(--mf-accent)}
#mp-format .mf-src-hd b{font-size:13px;font-weight:600;color:var(--mf-ink)}
#mp-format .mf-src-hd .mf-cnt{margin-left:auto;font:10.5px ui-monospace,Menlo,Consolas,monospace;color:var(--mf-ink3)}
#mp-format .mpf-ed-head{margin-top:14px}
#mp-format .mpf-editor{flex:none;height:200px;min-height:200px}
#mp-format .mpf-style-brief{margin-top:16px;padding:12px 0 0;border-bottom:0}
#mp-format .mpf-style-brief label{font-size:12px}

/* 交付门禁清单 */
#mp-format .mf-gates{margin-top:18px;padding-top:16px;border-top:1px solid var(--mf-line)}
#mp-format .mf-gates-hd{display:flex;align-items:baseline;gap:9px;margin-bottom:10px}
#mp-format .mf-gates-hd .no{font-family:var(--mf-serif,Georgia,"Songti SC",serif);font-size:21px;line-height:1;color:var(--mf-accent)}
#mp-format .mf-gates-hd b{font-size:11.5px;font-weight:600;color:var(--mf-ink)}
#mp-format .mf-gates-hd > span:last-child{margin-left:auto;font:10px ui-monospace,Menlo,monospace;color:var(--mf-ink3)}
#mp-format .mf-gate{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:11px;color:var(--mf-ink2)}
#mp-format .mf-gate i{width:5px;height:5px;border-radius:50%;flex:none;background:var(--mf-ok);
  box-shadow:0 0 0 3px var(--mf-ok-soft)}
#mp-format .mf-gates-note{margin-top:8px;font-size:10px;line-height:1.6;color:var(--mf-ink3)}

/* 版式铭牌 + 四角裁切标记 */
#mp-format .mf-plate{width:min(100%,560px);margin:0 auto 18px;gap:10px}
#mp-format .mf-plate-no{font:700 10px ui-monospace,Menlo,Consolas,monospace;color:var(--mf-accent);white-space:nowrap}
#mp-format .mf-plate > b{font-family:var(--mf-serif,Georgia,"Songti SC",serif);font-size:16px;font-weight:600;
  color:var(--mf-ink);white-space:nowrap}
#mp-format .mf-crop{position:absolute;width:13px;height:13px;pointer-events:none;z-index:4;opacity:.9}
#mp-format .mf-crop::before,#mp-format .mf-crop::after{content:"";position:absolute;
  background:var(--mf-accent);opacity:.45}
#mp-format .mf-crop::before{width:13px;height:1px;top:0;left:0}
#mp-format .mf-crop::after{width:1px;height:13px;top:0;left:0}
#mp-format .mf-crop.tl{left:-24px;top:-6px}
#mp-format .mf-crop.tr{right:-24px;top:-6px;transform:scaleX(-1)}
#mp-format .mf-crop.bl{left:-24px;bottom:-6px;transform:scaleY(-1)}
#mp-format .mf-crop.br{right:-24px;bottom:-6px;transform:scale(-1,-1)}
#mp-format .mpf-paper{background:#FBF9F4}
#mp-format .mpf-endbar .mpf-primary{background:rgba(255,255,255,.9);color:var(--mf-accent);
  border:1px solid var(--mf-line2);box-shadow:none}

/* 底部六套固定排版胶片：常驻、不盖正文、六张一眼看全 */
#mp-format .mpf-strip{position:fixed;left:0;right:0;bottom:0;z-index:30;height:138px;
  display:flex;align-items:center;gap:18px;padding:0 28px;
  background:rgba(255,255,255,.86);backdrop-filter:var(--mf-blur);-webkit-backdrop-filter:var(--mf-blur);
  border-top:1px solid var(--mf-edge);box-shadow:0 -8px 30px rgba(12,79,55,.07)}
#mp-format .mf-strip-lab{flex:none;width:120px}
#mp-format .mf-strip-lab .no{display:block;font-family:var(--mf-serif,Georgia,"Songti SC",serif);
  font-size:22px;line-height:1;color:var(--mf-accent)}
#mp-format .mf-strip-lab b{display:block;font-size:11.5px;font-weight:600;color:var(--mf-ink);margin-top:5px}
#mp-format .mf-strip-lab > span:not(.no){display:block;font-size:10px;line-height:1.5;color:var(--mf-ink3);margin-top:3px}
#mp-format .mpf-strip .mpf-style{position:relative;flex:1 1 0%;min-width:0;padding:0 118px 0 0;
  background:transparent;border:0;border-radius:0;display:block}
#mp-format .mpf-strip .mpf-style-hd{display:none}
#mp-format .mpf-strip .mpf-themes{width:100%;display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
#mp-format .mpf-strip .mpf-theme{height:100px;justify-content:center;gap:5px;padding:7px}
#mp-format .mpf-strip .mpf-mini{height:46px}
#mp-format .mpf-strip .mpf-start{position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:110px;height:34px;padding:0 8px;font-size:11px;
  background:rgba(255,255,255,.92);color:var(--mf-accent);border:1px solid var(--mf-line2);
  box-shadow:none;white-space:nowrap}
#mp-format .mpf-strip .mpf-start:disabled{opacity:.42}
/* 计价小签：吸附在开始按钮正下方，避免在胶片底部露出一行散排文字 */
#mp-format .mpf-strip .mpf-cost-note{position:absolute;right:0;top:calc(50% + 30px);
  width:110px;margin:0;text-align:center;font-size:10px;opacity:.75}
#mp-format .mpf-strip .mpf-progress{position:absolute;left:0;right:0;bottom:100%;margin-bottom:8px}
#mp-format .mf-strip-end{flex:none;width:150px;text-align:right;font-size:10px;line-height:1.6;color:var(--mf-ink3)}
#mp-format .mf-strip-end b{display:block;color:var(--mf-ink2);font-size:11px;margin-bottom:2px}
#mp-format[data-mpf-focus="1"] .mpf-strip{display:none}

/* 对照面板：≤1560px 时不再绝对定位到纸右侧（纸加宽后会裁切），改为纸下方平铺 */
@media(max-width:1560px){
  #mp-format .mpf-compare{position:static;left:auto;margin:14px auto 0;width:min(390px,100%)}
  #mp-format [data-mpf-compare-frame]{width:100%;max-width:390px}
}
@media(max-width:1080px){
  #mp-format .mpf-workspace{grid-template-columns:258px minmax(0,1fr);gap:18px;padding:18px}
  #mp-format .mpf-strip{padding:0 16px;gap:12px}
  #mp-format .mf-strip-lab{width:96px}
  #mp-format .mf-strip-end{display:none}
  #mp-format .mf-steps{display:none}
}
@media(max-width:640px){
  #mp-format{padding:0 0 126px!important}
  body.atelier #mp-format{padding:0 0 126px!important}
  #mp-format .mpf-top{padding:6px 10px;min-height:48px;gap:6px}
  #mp-format .mpf-doc,#mp-format .mpf-badge{display:none}
  #mp-format .mpf-seg button{padding:4px 8px;font-size:10px}
  #mp-format .mpf-workspace{grid-template-columns:1fr;padding:10px 0 40px;gap:12px}
  #mp-format .mpf-editor-panel{position:static;max-height:none;margin:0 12px;padding:14px;border-radius:16px}
  #mp-format .mpf-editor{flex:none;height:130px;min-height:130px}
  #mp-format .mf-plate{width:100%;padding:0 12px;margin-bottom:12px}
  #mp-format .mf-plate > b{font-size:14px}
  #mp-format .mpf-paper{width:100%;border-radius:0;border:0;box-shadow:none;
    padding:0 20px 20px;min-height:auto}
  #mp-format .mf-crop{display:none}
  #mp-format .mpf-strip{height:110px;padding:0 10px;gap:6px}
  #mp-format .mf-strip-lab,#mp-format .mf-strip-end{display:none}
  #mp-format .mpf-strip .mpf-style{display:flex;flex-direction:column;gap:6px;height:100%;
    justify-content:center;padding-right:0}
  #mp-format .mpf-strip .mpf-themes{width:100%;gap:5px}
  #mp-format .mpf-strip .mpf-theme{height:auto;min-height:44px;padding:5px 3px;gap:3px}
  #mp-format .mpf-strip .mpf-mini{height:34px}
  #mp-format .mpf-strip .mpf-theme small{display:none}
  #mp-format .mpf-strip .mpf-theme b{font-size:10px}
  #mp-format .mpf-strip .mpf-theme-n{font-size:8px;top:3px;left:4px}
  #mp-format .mpf-strip .mpf-start{position:static;transform:none;width:auto;
    height:30px;align-self:flex-end;font-size:10.5px}
  #mp-format .mpf-style-row input,#mp-format .mpf-mini-btn{height:44px}
}
/* ─────────── v6.4 end ─────────── */

/* --- style.css --- */
:root { color-scheme: light; --paper: #fbfaf7; --ink: #17212b; --sub: #68717a; --line: #e1e3e4; --blue: #113e69; --blue-soft: #e9f0f6; --sage: #667e63; --sage-soft: #e6eee4; --orange: #b36a28; --orange-soft: #f7ecdf; --red: #bd514d; --red-soft: #f8e8e7; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #f5f4f1; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
:where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button, a { touch-action: manipulation; }
.api-settings-modal, .auth-modal, .wallet-modal, .admin-users-modal { overscroll-behavior: contain; }
.app-shell { width: min(1440px, 100%); margin: 0 auto; min-height: 100vh; background: var(--paper); }
.report-nav { min-height: 72px; padding: 0 38px; display: flex; align-items: center; gap: 38px; border-bottom: 1px solid var(--line); background: rgba(251,250,247,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.account-brand { display: flex; align-items: center; gap: 12px; min-width: 235px; color: var(--ink); text-decoration: none; }
.fixed-avatar { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #c9d5df; border-radius: 50%; color: var(--blue); background: #edf3f6; font-family: Georgia, "Songti SC", serif; font-size: 17px; }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-size: 14px; letter-spacing: .01em; }
.brand-copy small { color: var(--sub); font-size: 11px; }
.nav-links { display: flex; align-self: stretch; align-items: center; gap: 32px; flex: 1; }
.nav-links a { display: flex; align-items: center; height: 100%; color: var(--sub); text-decoration: none; font-size: 14px; position: relative; }
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; height: 2px; width: 34px; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.settings-wrap { position: relative; }
.settings-button { min-width: 64px; }
.settings-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 45; width: 168px; padding: 6px; border: 1px solid #dfe5eb; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 18px 45px rgba(23,33,43,.16); backdrop-filter: blur(16px); }
.settings-menu button { display: block; width: 100%; height: 38px; border: 0; border-radius: 8px; color: #26384d; background: transparent; cursor: pointer; text-align: left; padding: 0 12px; font-size: 13px; }
.settings-menu button:hover { background: #f0f4f8; color: var(--blue); }
.landing .account-brand { min-width: 0; }
.landing .nav-links, .landing .nav-actions { display: none; }
.report-meta { color: var(--sub); font-size: 11px; }
.report-meta b { color: var(--ink); font-weight: 650; margin-left: 5px; }
.download-button { padding: 10px 14px; border: 1px solid #aeb8c1; border-radius: 6px; color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; }
.download-button:hover { color: white; background: var(--blue); border-color: var(--blue); }
.api-settings-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; padding: 96px 20px 20px; background: rgba(17, 24, 39, .18); backdrop-filter: blur(12px); }
.api-settings-card { width: min(430px, 100%); max-height: calc(100vh - 132px); overflow: auto; padding: 22px; border: 1px solid rgba(255,255,255,.86); border-radius: 18px; background: rgba(251,250,247,.96); box-shadow: 0 24px 70px rgba(23,33,43,.22); }
.api-settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.api-settings-head h2 { margin: 6px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
#api-settings-close { width: 34px; height: 34px; border: 1px solid #d7dde3; border-radius: 50%; color: #657181; background: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.api-config-stack { display: grid; gap: 22px; }
.api-config-group { display: grid; gap: 10px; }
.api-config-group h3 { margin: 0 0 4px; color: #143e68; font-size: 14px; font-weight: 700; }
.api-config-group input[type="password"], .api-config-group input[type="url"], .api-config-group input[type="text"] { display: block; width: 100%; height: 46px; padding: 0 12px; border: 1px solid #e2d7c8; border-radius: 10px; color: var(--ink); background: #fff; outline: 0; font-size: 17px; }
.api-config-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,62,105,.11); }
.api-check { display: flex; align-items: center; gap: 10px; color: #426485; font-size: 13px; line-height: 1.5; }
.api-check input { width: 15px; height: 15px; accent-color: #0b79e4; }
.api-settings-note { margin: 13px 0 0; color: var(--sub); font-size: 12px; line-height: 1.7; }
.api-settings-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.entry-panel { min-height: calc(100vh - 72px); display: grid; place-content: center; gap: 36px; padding: 80px 24px 120px; border-bottom: 0; background: var(--paper); text-align: center; }
.entry-copy { max-width: 760px; margin: 0 auto; }
.entry-panel h1 { max-width: 760px; margin: 18px 0 18px; font-family: Georgia, "Songti SC", serif; font-size: clamp(42px, 6.3vw, 78px); line-height: 1.08; font-weight: 500; letter-spacing: -.075em; }
.entry-panel h1 em { color: var(--blue); font-style: normal; }
.entry-copy p { max-width: 520px; margin: 0 auto; color: var(--sub); font-size: 15px; line-height: 1.8; }
.entry-form { width: min(560px, 100%); margin: 0 auto; text-align: left; }
.entry-form label { display: block; margin-bottom: 7px; color: var(--sub); font-size: 11px; }
.entry-form > div { display: flex; gap: 8px; }
.entry-form input { min-width: 0; flex: 1; height: 52px; padding: 0 16px; border: 1px solid #bdc7cf; border-radius: 7px; outline: none; color: var(--ink); background: white; font-size: 15px; box-shadow: 0 5px 18px rgba(23,33,43,.04); }
.entry-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,62,105,.1); }
.entry-form button { height: 52px; padding: 0 22px; border: 0; border-radius: 7px; color: white; background: var(--blue); cursor: pointer; font-size: 13px; white-space: nowrap; box-shadow: 0 7px 18px rgba(17,62,105,.16); transition: transform .18s ease, background .18s ease; }
.entry-form button:hover { background: #0a3156; transform: translateY(-1px); }
.entry-form button:disabled { opacity: .6; cursor: wait; }
.report-page { padding: 54px 44px 26px; }
.report-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr) 150px; gap: 46px; min-height: 355px; padding: 5px 10px 46px; border-bottom: 1px solid var(--line); }
.micro-label { display: block; color: var(--sub); font-size: 12px; letter-spacing: .04em; }
.score-rail { position: relative; padding-top: 4px; }
.score-rail > strong { display: inline-block; margin-top: 14px; color: var(--ink); font-size: 86px; line-height: .86; letter-spacing: -.08em; font-weight: 650; }
.out-of { margin-left: 7px; color: var(--sub); font-size: 18px; }
.score-line { height: 8px; max-width: 255px; margin-top: 22px; overflow: hidden; border-radius: 99px; background: #e7e8e7; }
.score-line i { display: block; width: var(--score); height: 100%; border-radius: inherit; background: var(--blue); }
.score-rail > p { margin: 13px 0 0; color: var(--sub); font-size: 12px; }
blockquote { margin: 50px 0 0; padding: 19px 21px 21px; max-width: 275px; background: #f3eee6; color: #39434a; }
.quote-mark { display: block; height: 22px; color: #a38c6e; font-family: Georgia, serif; font-size: 42px; line-height: 1; }
blockquote p { margin: 4px 0 16px; font-family: Georgia, "Songti SC", serif; font-size: 16px; line-height: 1.75; }
blockquote cite { color: #917e66; font-size: 11px; font-style: normal; }
.diagnosis-hero { position: relative; padding-top: 2px; }
.vertical-marker { display: flex; align-items: center; gap: 14px; height: 30px; color: var(--sub); font-size: 12px; }
.vertical-marker i { display: block; width: 2px; height: 124px; margin-top: 142px; background: var(--blue); position: absolute; left: 1px; top: 0; }
.vertical-marker i::before { content: ""; display: block; width: 8px; height: 8px; margin-left: -3px; border-radius: 50%; background: var(--blue); }
.vertical-marker span { padding-left: 31px; }
.diagnosis-hero h1 { max-width: 700px; margin: 24px 0 20px 31px; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(31px, 3.35vw, 48px); line-height: 1.18; letter-spacing: -.045em; font-weight: 500; }
.diagnosis-hero > p { max-width: 680px; margin: 0 0 0 31px; color: var(--sub); font-size: 14px; line-height: 1.9; }
.positioning { max-width: 570px; margin: 42px 0 0 31px; padding: 15px 18px; background: #f2f5f1; border: 1px solid #d9e5db; border-radius: 8px; }
.positioning strong { display: block; margin-top: 7px; color: var(--sage); font-size: 15px; line-height: 1.5; }
.positioning p { margin: 7px 0 0; color: var(--sub); font-size: 12px; line-height: 1.7; }
.sprig-wrap { display: flex; align-items: center; justify-content: center; }
.sprig-wrap img { width: 132px; height: 230px; object-fit: contain; mix-blend-mode: multiply; opacity: .82; }
.lenses-section { padding: 39px 10px 33px; border-bottom: 1px solid var(--line); }
.signal-section { padding: 32px 10px 34px; border-bottom: 1px solid var(--line); background: #f7f8fa; }
.signal-grid { display: grid; grid-template-columns: minmax(300px, 1.8fr) repeat(3, minmax(130px, .72fr)); gap: 12px; }
.judgment-card, .metric-card { min-height: 132px; padding: 20px; border: 1px solid #e4e8e8; border-radius: 10px; background: rgba(255,255,255,.72); box-shadow: 0 8px 25px rgba(23,33,43,.035); }
.judgment-card { border-color: #cfdbea; }
.card-label { display: block; color: var(--sub); font-size: 11px; letter-spacing: .04em; }
.judgment-card p { max-width: 610px; margin: 17px 0 0; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 17px; line-height: 1.65; }
.metric-card { display: flex; flex-direction: column; justify-content: space-between; }
.metric-card strong { margin-top: 12px; font-size: 30px; letter-spacing: -.05em; }
.metric-card small { color: var(--sub); font-size: 11px; }
.profile-strip { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; margin-top: 12px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.5); }
.profile-strip div { min-width: 0; }
.profile-strip span, .profile-strip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-strip span { color: var(--sub); font-size: 10px; }
.profile-strip strong { margin-top: 7px; font-size: 12px; font-weight: 550; }
.section-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.section-title h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 21px; font-weight: 500; letter-spacing: -.03em; }
.section-title span { color: var(--sub); font-size: 11px; }
.lens-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.lens { min-height: 174px; padding: 4px 30px 0; border-right: 1px solid var(--line); }
.lens:first-child { padding-left: 0; }
.lens:last-child { border-right: 0; }
.lens-index { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 700; }
.lens.sage .lens-index { color: var(--sage); background: var(--sage-soft); }
.lens.orange .lens-index { color: var(--orange); background: var(--orange-soft); }
.lens.red .lens-index { color: var(--red); background: var(--red-soft); }
.lens h3 { margin: 17px 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 17px; font-weight: 500; }
.lens-score { font-family: Georgia, serif; font-size: 27px; }
.lens-score small { color: var(--sub); font-family: inherit; font-size: 12px; }
.lens-status { margin-left: 8px; font-size: 12px; }
.lens-status.low { color: var(--red); }
.lens-status.mid { color: var(--orange); }
.lens-status.good { color: var(--sage); }
.lens p { max-width: 210px; margin: 14px 0 0; color: var(--sub); font-size: 12px; line-height: 1.65; }
.evidence-route { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 54px; padding: 38px 10px 30px; border-bottom: 1px solid var(--line); }
.content-evidence, .route-panel { min-width: 0; }
.works-table { overflow-x: auto; }
table { width: 100%; min-width: 630px; border-collapse: collapse; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; white-space: nowrap; }
th { color: var(--sub); font-weight: 500; }
td { color: #3c454b; }
td:first-child { max-width: 245px; overflow: hidden; text-overflow: ellipsis; }
td a { color: var(--blue); text-decoration: none; }
.evidence-footnote { margin: 15px 0 0; color: var(--sub); font-size: 11px; line-height: 1.6; }
.route-list { display: grid; gap: 0; }
.route-item { display: grid; grid-template-columns: 46px 1fr 190px; gap: 12px; align-items: start; min-height: 132px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.route-item:last-child { border-bottom: 0; }
.route-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: white; background: var(--blue); font-size: 12px; font-weight: 700; }
.route-item:nth-child(2) .route-number { background: var(--sage); }
.route-item:nth-child(3) .route-number { background: #23313b; }
.route-copy h3 { margin: 0; font-size: 14px; font-weight: 650; }
.route-kicker { margin-bottom: 7px; color: var(--sage); font-size: 10px; letter-spacing: .03em; }
.route-copy p { margin: 7px 0 0; color: var(--sub); font-size: 11px; line-height: 1.6; }
.route-copy p b { color: var(--ink); font-weight: 600; }
.route-target { padding: 12px 13px; border: 1px solid #ece8df; border-radius: 6px; color: #88795f; background: #faf7f1; font-size: 11px; line-height: 1.5; }
.route-target strong { display: block; color: #a28a67; font-weight: 500; }
.benchmark-section { padding: 38px 10px 30px; border-bottom: 1px solid var(--line); }
.benchmark-intro { max-width: 760px; margin: -5px 0 22px; color: var(--sub); font-size: 12px; line-height: 1.7; }
.benchmark-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.benchmark-item { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 13px 12px; border: 1px solid #e7e6e1; border-radius: 7px; color: var(--ink); background: #fdfcf9; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.benchmark-item:hover { border-color: #aab9c5; transform: translateY(-2px); }
.benchmark-index { color: var(--blue); font-family: Georgia, serif; font-size: 16px; }
.benchmark-item strong, .benchmark-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.benchmark-item strong { font-size: 12px; }
.benchmark-item small { max-width: 110px; margin-top: 4px; color: var(--sub); font-size: 10px; }
.benchmark-arrow { margin-left: auto; color: var(--sub); font-size: 15px; }
.takeaways-section { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding: 38px 10px 30px; border-bottom: 1px solid var(--line); }
.takeaway-column ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.takeaway-column li { position: relative; padding: 14px 16px 14px 34px; border: 1px solid #e6e9e8; border-radius: 8px; color: #4a555c; background: #f7faf8; font-size: 12px; line-height: 1.65; }
.takeaway-column li::before { content: "✓"; position: absolute; left: 14px; top: 14px; color: var(--sage); font-weight: 700; }
.takeaway-column.weakness li { background: #fbf8f4; }
.takeaway-column.weakness li::before { content: "!"; color: var(--orange); }
.bottom-note { display: flex; gap: 8px; padding: 20px 10px 0; color: var(--sub); font-size: 11px; }
.bottom-note p { margin: 0; }
footer { padding: 20px 44px 28px; color: #9aa0a5; font-size: 11px; }
@media (max-width: 980px) { .report-nav { gap: 20px; padding: 0 22px; } .nav-links { gap: 15px; } .entry-panel { padding: 70px 25px 100px; } .report-page { padding: 38px 25px 25px; } .report-hero { grid-template-columns: 235px minmax(0, 1fr); gap: 28px; } .sprig-wrap { display: none; } .signal-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } .profile-strip { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 12px; } .evidence-route { grid-template-columns: 1fr; gap: 35px; } .benchmark-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .report-nav { flex-wrap: wrap; padding: 12px 16px; } .account-brand { min-width: 0; } .nav-links { order: 3; width: 100%; height: 37px; gap: 21px; overflow-x: auto; } .nav-actions { margin-left: auto; } .report-meta { display: none; } .api-settings-modal { padding-top: 82px; } .api-settings-actions { flex-direction: column-reverse; } .api-settings-actions button { width: 100%; } .entry-panel { min-height: calc(100vh - 62px); padding: 50px 16px 80px; gap: 30px; } .entry-panel h1 { font-size: clamp(40px, 12vw, 58px); } .entry-copy p { font-size: 14px; } .entry-form > div { flex-direction: column; } .entry-form button { width: 100%; } .report-hero { display: block; padding-bottom: 32px; } .diagnosis-hero { margin-top: 45px; } .score-rail > strong { font-size: 72px; } blockquote { margin-top: 34px; max-width: none; } .signal-grid { grid-template-columns: repeat(3, 1fr); } .judgment-card { grid-column: 1 / -1; } .profile-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; } .lenses-section, .evidence-route, .benchmark-section, .signal-section, .takeaways-section { padding-left: 0; padding-right: 0; } .lens-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 0; } .lens { min-height: 150px; padding: 4px 17px; } .lens:nth-child(2) { border-right: 0; } .lens:nth-child(3) { padding-left: 0; } .route-item { grid-template-columns: 40px 1fr; padding: 16px 0; } .route-target { grid-column: 2; } .benchmark-list { grid-template-columns: 1fr; } .takeaways-section { grid-template-columns: 1fr; gap: 26px; } footer { padding-left: 20px; padding-right: 20px; } }
@media print { .report-nav { position: static; } .download-button { display: none; } body, .app-shell { background: white; } .report-page { padding-top: 20px; } }

/* Mobile reading layout: preserve hierarchy and let dense evidence scroll safely. */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; }
  .app-shell { width: 100%; }
  .report-nav { min-height: 64px; padding: 11px 16px; gap: 0; }
  .account-brand { gap: 9px; max-width: calc(100vw - 32px); }
  .fixed-avatar { width: 34px; height: 34px; flex: 0 0 34px; font-size: 16px; }
  .brand-copy { min-width: 0; gap: 2px; }
  .brand-copy strong, .brand-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 10px; }
  .has-report .nav-actions { display: flex; margin-left: auto; }
  .has-report .nav-links { order: 3; flex: 0 0 100%; width: 100%; height: 34px; gap: 25px; overflow-x: auto; border-top: 1px solid var(--line); }
  .has-report .nav-links a { flex: 0 0 auto; height: 34px; font-size: 12px; white-space: nowrap; }
  .download-button { padding: 8px 10px; font-size: 11px; }
  .entry-panel { min-height: calc(100svh - 64px); padding: 45px 16px 70px; gap: 30px; }
  .entry-panel h1 { margin-top: 15px; font-size: clamp(39px, 12vw, 56px); line-height: 1.1; }
  .entry-copy p { max-width: 340px; font-size: 14px; line-height: 1.75; }
  .entry-form { width: 100%; }
  .entry-form > div { flex-direction: column; gap: 10px; }
  .entry-form input, .entry-form button { width: 100%; height: 50px; }
  .report-page { padding: 30px 16px 22px; }
  .report-hero { min-height: auto; padding: 0 0 32px; }
  .score-rail > strong { margin-top: 12px; font-size: 72px; }
  .score-line { width: 100%; max-width: none; }
  blockquote { max-width: none; margin: 30px 0 0; }
  .diagnosis-hero { margin-top: 37px; padding: 0; }
  .vertical-marker span, .diagnosis-hero h1, .diagnosis-hero > p, .positioning { margin-left: 23px; }
  .vertical-marker i { height: 150px; margin-top: 138px; }
  .diagnosis-hero h1 { max-width: none; margin-top: 22px; margin-bottom: 16px; font-size: clamp(32px, 10vw, 48px); line-height: 1.17; }
  .diagnosis-hero > p { font-size: 13px; line-height: 1.8; }
  .positioning { margin-top: 30px; margin-right: 0; padding: 14px 15px; }
  .sprig-wrap { display: none; }
  .lenses-section, .evidence-route, .benchmark-section { padding-left: 0; padding-right: 0; }
  .lenses-section { padding-top: 30px; padding-bottom: 27px; }
  .section-title { align-items: baseline; gap: 9px; margin-bottom: 18px; }
  .section-title h2 { font-size: 20px; }
  .section-title span { font-size: 10px; }
  .lens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .lens { min-height: 150px; padding: 0 14px; }
  .lens:first-child, .lens:nth-child(3) { padding-left: 0; }
  .lens:nth-child(2) { border-right: 0; }
  .lens h3 { margin-top: 13px; font-size: 16px; }
  .lens-score { font-size: 25px; }
  .lens p { margin-top: 11px; font-size: 11px; line-height: 1.55; }
  .evidence-route { display: block; padding-top: 30px; padding-bottom: 26px; }
  .route-panel { margin-top: 39px; }
  .works-table { width: 100%; padding-bottom: 3px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 630px; }
  th, td { padding: 10px 7px; font-size: 10px; }
  .route-item { grid-template-columns: 36px minmax(0, 1fr); min-height: 0; gap: 9px; padding: 16px 0; }
  .route-number { width: 30px; height: 30px; }
  .route-copy h3 { font-size: 14px; line-height: 1.4; }
  .route-kicker { line-height: 1.4; }
  .route-copy p { font-size: 11px; line-height: 1.65; }
  .route-target { grid-column: 2; margin-top: 4px; padding: 10px 12px; font-size: 11px; }
  .benchmark-section { padding-top: 30px; padding-bottom: 25px; }
  .benchmark-intro { margin-top: -3px; font-size: 11px; line-height: 1.7; }
  .benchmark-list { grid-template-columns: 1fr; gap: 8px; }
  .benchmark-item { min-height: 58px; padding: 10px 12px; }
  .bottom-note { padding: 17px 0 0; font-size: 10px; line-height: 1.6; }
  footer { padding: 18px 16px 24px; font-size: 10px; }
}

@media (max-width: 380px) {
  .has-report .nav-actions { gap: 0; }
  .download-button { padding: 7px 8px; }
  .entry-panel h1 { font-size: 38px; }
  .diagnosis-hero h1 { font-size: 32px; }
  .lens { padding-right: 10px; }
  .lens-status { display: block; margin: 4px 0 0; }
}
.workbench-page { max-width: 1180px; margin: 0 auto; padding: 78px 34px 96px; }
.morning-generator-page { max-width: 1380px; margin: 0 auto; padding: 42px 24px 70px; }
.generator-frame { display: block; width: 100%; min-height: calc(100vh - 190px); border: 1px solid #e2e8ee; border-radius: 22px; background: #f7f9fb; box-shadow: 0 18px 55px rgba(31, 52, 73, .055); }
.workbench-intro { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.workbench-intro h1 { margin: 18px 0 14px; color: #172033; font-size: clamp(38px, 5vw, 64px); font-weight: 650; letter-spacing: -.055em; line-height: 1.08; }
.workbench-intro p { margin: 0; color: #718096; font-size: 17px; line-height: 1.8; }
.app-tabs { gap: 10px; }
.app-tabs a { text-decoration: none; }
.app-tabs a.active { color: #14589a; }
.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 730px; margin: 0 auto 28px; padding: 5px; border: 1px solid #e3e8ef; border-radius: 16px; background: #f7f9fb; }
.mode-option { border: 0; border-radius: 12px; padding: 13px 14px; background: transparent; color: #738096; cursor: pointer; text-align: left; transition: .2s ease; }
.mode-option.active { background: #fff; color: #143e68; box-shadow: 0 3px 14px rgba(28, 54, 82, .08); }
.mode-option strong, .mode-option small { display: block; }
.mode-option strong { font-size: 14px; margin-bottom: 4px; }
.mode-option small { font-size: 12px; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 20px; }
.creator-card, .workflow-card, .workbench-result { border: 1px solid #e4e9ef; border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: 0 18px 55px rgba(31, 52, 73, .055); }
.creator-card { padding: 34px; }
.workflow-card { padding: 28px; }
.card-topline, .result-head, .editor-head, .result-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.card-topline { margin-bottom: 28px; color: #8a96a6; font-size: 13px; }
.card-label { color: #162338; font-size: 14px; font-weight: 650; }
.status-pill { padding: 6px 10px; border-radius: 999px; color: #5b7690; background: #edf5fb; font-size: 12px; }
.creator-card > label { display: block; margin-bottom: 10px; color: #243348; font-size: 14px; font-weight: 600; }
#workbench-topic { display: block; width: 100%; min-height: 150px; box-sizing: border-box; resize: vertical; border: 1px solid #cbd5e1; border-radius: 14px; padding: 18px; color: #1f2937; background: #fff; font: inherit; outline: 0; transition: .2s; }
#workbench-topic:focus, #article-editor:focus { border-color: #2475b8; box-shadow: 0 0 0 4px rgba(36,117,184,.1); }
.creator-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 22px; }
.creator-options label { color: #7c8795; font-size: 12px; }
.creator-options select { display: block; width: 100%; margin-top: 7px; border: 1px solid #d9e0e8; border-radius: 9px; padding: 10px; color: #26384d; background: #fff; }
.primary-action, .secondary-action { border: 0; border-radius: 11px; padding: 14px 20px; cursor: pointer; font: inherit; font-weight: 650; }
.primary-action { color: white; background: #14588f; box-shadow: 0 8px 20px rgba(20,88,143,.18); }
.primary-action:hover { background: #0e4674; }
.primary-action.compact { padding: 11px 15px; font-size: 13px; }
.secondary-action { border: 1px solid #d8e0e8; color: #315370; background: #fff; font-size: 13px; }
.helper-copy { margin: 13px 0 0; color: #94a0ad; font-size: 12px; }
.workflow-steps { display: grid; gap: 6px; }
.workflow-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 11px; color: #8a96a4; }
.workflow-step > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #dfe5eb; border-radius: 50%; color: #83909e; font-size: 11px; }
.workflow-step strong, .workflow-step small { display: block; }
.workflow-step strong { color: #526174; font-size: 13px; }
.workflow-step small { margin-top: 3px; font-size: 11px; }
.workflow-step.active { background: #f1f7fc; }
.workflow-step.active > span, .workflow-step.done > span { border-color: #2d78b4; color: #fff; background: #2d78b4; }
.workflow-step.active strong { color: #15598e; }
.workflow-step.done strong { color: #637589; }
.workflow-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid #edf0f3; color: #8a96a4; font-size: 12px; line-height: 1.7; }
.workflow-note strong, .workflow-note span { display: block; }
.workflow-note strong { margin-bottom: 5px; color: #37475b; }
.workbench-result { margin-top: 20px; padding: 30px; }
.result-head { align-items: flex-end; padding-bottom: 22px; border-bottom: 1px solid #edf0f3; }
.result-head h2 { margin: 8px 0 0; color: #18263a; font-size: 26px; letter-spacing: -.03em; }
.result-actions { display: flex; gap: 9px; }
.topic-list { padding: 18px 0; }
.topic-head { display: flex; justify-content: space-between; margin-bottom: 10px; color: #566579; font-size: 13px; }
.topic-head span { color: #9aa5b2; }
.topic-item { display: grid; grid-template-columns: 34px 1fr 20px; gap: 12px; width: 100%; margin: 7px 0; padding: 13px 12px; border: 1px solid #e7ebef; border-radius: 12px; color: #1f3550; background: #fff; text-align: left; cursor: pointer; }
.topic-item:hover { border-color: #93b8d5; background: #f7fbfe; }
.topic-number { color: #6c94b4; font-size: 12px; }
.topic-item strong, .topic-item small { display: block; }
.topic-item small { margin-top: 5px; color: #8996a4; font-size: 12px; }
.framework-summary { padding: 17px; border-radius: 13px; background: #f6f9fb; color: #647387; }
.framework-summary strong { display: block; margin: 5px 0; color: #1d4f78; font-size: 18px; }
.framework-summary p { margin: 0 0 13px; font-size: 13px; }
.framework-summary > div { display: flex; flex-wrap: wrap; gap: 8px; }
.framework-summary > div span { padding: 6px 9px; border-radius: 7px; background: #fff; font-size: 12px; }
.editor-wrap { border: 1px solid #e2e8ee; border-radius: 14px; overflow: hidden; }
.editor-head { padding: 12px 15px; color: #657488; background: #f8fafb; font-size: 12px; }
#article-editor { display: block; width: 100%; min-height: 390px; box-sizing: border-box; resize: vertical; border: 0; padding: 20px; color: #27364a; background: #fff; font: 15px/1.9 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; outline: 0; }
.result-foot { margin-top: 15px; color: #8c98a6; font-size: 12px; }
.text-action { border: 0; color: #1769a4; background: transparent; cursor: pointer; font: inherit; }
.generated-images { margin: 4px 0 22px; padding: 20px; border: 1px solid #e2e8ee; border-radius: 15px; background: #f8fafb; }
.image-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: #8491a0; font-size: 12px; }
.image-section-head h3 { margin: 6px 0 0; color: #203248; font-size: 18px; }
.image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.image-grid a { overflow: hidden; border: 1px solid #dfe6ed; border-radius: 12px; color: #203248; background: #fff; text-decoration: none; }
.image-grid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #edf1f4; }
.image-grid a > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
.image-grid strong, .image-grid small { font-size: 12px; }
.image-grid small { color: #8b97a5; }
@media (max-width: 780px) { .workbench-page, .morning-generator-page { padding: 48px 16px 70px; } .generator-frame { min-height: 760px; border-radius: 16px; } .workbench-grid { grid-template-columns: 1fr; } .mode-switch { grid-template-columns: 1fr; } .mode-option { text-align: center; } .creator-card, .workflow-card, .workbench-result { padding: 22px; } .result-head { align-items: flex-start; flex-direction: column; } .result-actions { width: 100%; } .result-actions button { flex: 1; } .creator-options { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .image-grid { grid-template-columns: 1fr; } .image-section-head { align-items: flex-start; flex-direction: column; } }

/* 2026-08-30 creator studio: App Store-inspired desktop workspace. */
:root {
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f7f7f9;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgba(60, 60, 67, .16);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --xhs: #ff3158;
  --tie: #19a974;
  --hit: #e76f00;
}
body * { letter-spacing: 0 !important; }
body { color: var(--text); background: var(--canvas); }
.app-shell { width: 100%; max-width: none; min-height: 100vh; background: var(--canvas); }
.app-shell > section, .app-shell > main, .app-shell > footer { width: calc(100% - 252px); margin-left: 252px; }
.report-nav.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 252px;
  height: 100vh;
  min-height: 0;
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  border: 0;
  border-right: 1px solid var(--hairline);
  background: rgba(248, 248, 250, .92);
  backdrop-filter: blur(24px) saturate(140%);
}
.account-brand { min-width: 0; padding: 0 8px; gap: 11px; }
.fixed-avatar { width: 40px; height: 40px; border: 0; border-radius: 10px; color: #fff; background: #1d1d1f; font-family: inherit; font-size: 16px; font-weight: 700; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { color: #8e8e93; font-size: 10px; }
.nav-links { width: 100%; flex: 0 0 auto; display: grid; align-self: auto; align-items: stretch; gap: 4px; }
.nav-links a { min-width: 0; height: 52px; padding: 0 11px; gap: 11px; border-radius: 8px; color: #515154; font-size: 13px; }
.nav-links a::after { display: none !important; }
.nav-links a > svg { width: 19px; height: 19px; flex: 0 0 auto; color: #77777c; }
.nav-links a > span { min-width: 0; display: grid; gap: 2px; }
.nav-links a strong, .nav-links a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links a strong { font-size: 13px; font-weight: 600; }
.nav-links a small { color: #929298; font-size: 10px; }
.nav-links a:hover { background: rgba(118, 118, 128, .08); }
.nav-links a.active { color: #fff; background: #1d1d1f; }
.nav-links a.active svg, .nav-links a.active small { color: rgba(255,255,255,.7); }
.nav-actions { margin-top: auto; width: 100%; display: grid; gap: 8px; }
.settings-wrap { width: 100%; }
.download-button { width: 100%; min-width: 0; height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; border: 1px solid var(--hairline); border-radius: 8px; color: #424245; background: rgba(255,255,255,.72); font-size: 12px; }
.download-button svg { width: 16px; height: 16px; }
.download-button:hover { color: var(--text); border-color: rgba(60,60,67,.24); background: #fff; }
.config-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #c7c7cc; }
.config-dot.partial { background: #ff9f0a; }
.config-dot.ready { background: #30d158; }
.settings-menu { inset: auto auto 50px 0; width: 100%; border-radius: 8px; }
.settings-menu button { display: flex; align-items: center; gap: 9px; }
.settings-menu svg { width: 15px; height: 15px; }

.entry-panel { min-height: 100vh; padding: 72px 56px; place-content: center; background: var(--canvas); }
.entry-panel h1 { margin: 16px 0; font-family: inherit; font-size: 44px; line-height: 1.12; font-weight: 720; }
.entry-copy p { font-size: 16px; line-height: 1.7; }
.entry-form { width: min(620px, 100%); padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(0,0,0,.06); }
.entry-form label { padding: 0 4px; }
.entry-form input { height: 54px; border-radius: 8px; box-shadow: none; }
.entry-form button { height: 54px; border-radius: 8px; background: var(--accent); box-shadow: none; }

.workbench-page, .morning-generator-page, .skill-page { min-height: 100vh; padding: 52px 46px 80px; background: var(--canvas); }
.workbench-intro, .skill-page-head { width: min(1160px, 100%); margin: 0 auto 30px; }
.workbench-intro h1, .skill-page-head h1 { margin: 8px 0 10px; font-family: inherit; font-size: 34px; line-height: 1.16; font-weight: 720; }
.workbench-intro p, .skill-page-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.skill-page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.skill-kicker { color: var(--accent); font-size: 12px; font-weight: 650; }
.skill-badge { width: 60px; height: 60px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #fff; background: var(--accent); }
.skill-badge.xhs { background: var(--xhs); }
.skill-badge.tie { background: var(--tie); }
.skill-badge.hit { background: var(--hit); }
.skill-badge svg { width: 29px; height: 29px; }

.skill-workspace { width: min(1160px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.skill-form, .skill-output { min-width: 0; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); }
.skill-form { padding: 24px; position: sticky; top: 22px; }
.skill-output { min-height: 650px; padding: 24px; }
.form-section-title { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.form-section-title > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #1d1d1f; font-size: 11px; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { font-size: 15px; }
.form-section-title small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.skill-form > label, .skill-form .field-grid label { display: grid; gap: 7px; color: #5d5d62; font-size: 11px; font-weight: 600; }
.skill-form textarea, .skill-form input, .skill-form select { width: 100%; border: 1px solid var(--hairline); border-radius: 8px; color: var(--text); background: #fff; outline: 0; }
.skill-form input, .skill-form select { height: 44px; padding: 0 12px; }
.skill-form textarea { min-height: 110px; padding: 12px; resize: vertical; line-height: 1.6; }
.skill-form textarea.compact-area { min-height: 82px; }
.skill-form textarea.article-area { min-height: 300px; }
.skill-form input:focus, .skill-form select:focus, .skill-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.1); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.field-wide { margin-top: 14px; }
.skill-primary { width: 100%; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: var(--accent); box-shadow: none; }
.skill-primary svg { width: 17px; height: 17px; }
/* 等待态转圈。曾经只给了宽高没给 display，而 span 默认是行内元素 —— 行内元素的
   width/height 会被忽略，只剩 4px 的边框，于是「圆」被压成一个小扁圈。
   在 .skill-primary（display:flex）里它是 flex item，会被阻断化，所以那些按钮
   一直正常；登录按钮是普通的 inline-block button，才把这个问题露出来。
   display:inline-block + box-sizing 让它不依赖父元素的布局模式。 */
.button-spinner { display: inline-block; box-sizing: border-box; width: 14px; height: 14px; vertical-align: -2px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.output-empty { min-height: 590px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.output-empty > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; color: #737379; background: var(--surface-soft); }
.output-empty svg { width: 27px; height: 27px; }
.output-empty h2 { margin: 16px 0 7px; color: var(--text); font-size: 18px; }
.output-empty p { max-width: 360px; margin: 0; font-size: 12px; line-height: 1.7; }
.output-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.output-head h2 { margin: 10px 0 5px; font-size: 23px; line-height: 1.3; }
.output-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.output-head button { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.output-head button svg { width: 16px; height: 16px; }
.result-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; color: #9a6200; background: #fff4ce; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.result-status.ready { color: #137333; background: #e6f4ea; }
.result-status.blocked { color: #b3261e; background: #fce8e6; }
.result-status.revise { color: #9a6200; background: #fff4ce; }
.result-section { padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.result-section:last-child { border-bottom: 0; }
.result-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.result-section-title strong { font-size: 14px; }
.result-section-title span { color: var(--muted); font-size: 11px; }
.title-options { display: grid; gap: 8px; }
.title-option { min-height: 66px; padding: 12px; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; align-items: center; border: 1px solid var(--hairline); border-radius: 8px; }
.title-option.selected { border-color: rgba(0,113,227,.42); background: #f2f8ff; }
.title-option > span { color: var(--accent); font-size: 11px; }
.title-option strong, .title-option small { display: block; }
.title-option strong { font-size: 13px; }
.title-option small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.creator-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.creator-output-card { overflow: hidden; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; }
.card-image-slot { position: relative; aspect-ratio: 3 / 4; display: grid; place-content: center; justify-items: center; gap: 6px; color: #94949a; background: #f4f4f6; }
.card-image-slot > span { font-size: 28px; font-weight: 700; }
.card-image-slot > small { font-size: 10px; }
.card-image-slot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-image-slot a { position: absolute; right: 8px; bottom: 8px; padding: 6px 9px; border-radius: 6px; color: #fff; background: rgba(0,0,0,.65); text-decoration: none; font-size: 10px; }
.creator-card-copy { padding: 12px; }
.creator-card-copy > span { color: var(--accent); font-size: 10px; }
.creator-card-copy strong { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; }
.creator-card-copy p { margin: 7px 0; color: #5d5d62; font-size: 11px; line-height: 1.55; }
.creator-card-copy small { color: #919197; font-size: 10px; line-height: 1.45; }
.result-editor { width: 100%; min-height: 260px; padding: 14px; resize: vertical; border: 1px solid var(--hairline); border-radius: 8px; color: var(--text); background: #fbfbfc; line-height: 1.8; outline: 0; }
.result-editor.compact { min-height: 120px; }
.copy-result { display: flex; align-items: center; gap: 6px; border: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 11px; }
.copy-result svg { width: 14px; height: 14px; }
.result-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.result-meta-grid > div { padding: 12px; border-radius: 8px; background: var(--surface-soft); }
.result-meta-grid span { color: var(--muted); font-size: 10px; }
.result-meta-grid p { margin: 6px 0 0; font-size: 11px; line-height: 1.6; }
.issue-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.issue-list li { padding: 10px 12px; border: 1px solid #f0d9ad; border-radius: 7px; background: #fff8e8; font-size: 11px; line-height: 1.55; }
.issue-list li.ok { border-color: #bce3c7; background: #ecf9ef; }
.plan-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 16px; }
.plan-summary > div { padding: 12px; border-radius: 8px; background: var(--surface-soft); }
.plan-summary span, .plan-summary strong { display: block; }
.plan-summary span { color: var(--muted); font-size: 10px; }
.plan-summary strong { margin-top: 6px; font-size: 13px; }
.cta-line { margin: 10px 0 0; color: var(--muted); font-size: 11px; }

.generation-progress { margin: 18px 0; padding: 14px; border: 1px solid rgba(0,113,227,.22); border-radius: 8px; background: #f2f8ff; }
.generation-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.progress-track { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: #dbe9f8; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.cancel-generation { margin-top: 10px; padding: 0; border: 0; color: #c93400; background: transparent; cursor: pointer; font-size: 11px; }
.generation-progress.done { border-color: rgba(48,209,88,.26); background: #ecf9ef; }

.detector-hero { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 22px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.detector-hero h2 { margin: 12px 0 0; font-size: 58px; line-height: 1; }
.detector-hero > div > p, .detector-verdict p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.detector-verdict strong { display: block; font-size: 16px; line-height: 1.6; }
.detector-verdict button { margin-top: 14px; display: flex; align-items: center; gap: 7px; }
.detector-verdict button svg { width: 15px; height: 15px; }
.detector-score { display: grid; grid-template-columns: 64px minmax(0,1fr) 52px; gap: 12px; align-items: center; margin: 11px 0; font-size: 11px; }
.detector-score > div { height: 7px; overflow: hidden; border-radius: 5px; background: #e8e8ed; }
.detector-score i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.detector-score strong { text-align: right; }
.detector-score small { color: var(--muted); font-weight: 400; }
.suggestion-list { display: grid; gap: 8px; }
.suggestion-list article { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid var(--hairline); border-radius: 8px; }
.suggestion-list article > span { color: #c93400; font-size: 10px; font-weight: 700; }
.suggestion-list strong { font-size: 12px; }
.suggestion-list p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ledger-list { display: grid; gap: 7px; }
.ledger-list > div { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 10px; align-items: start; padding: 10px; border-radius: 8px; background: var(--surface-soft); }
.ledger-list span { color: var(--hit); font-size: 10px; }
.ledger-list p, .muted-copy { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.api-settings-modal { place-items: center; padding: 28px; background: rgba(0,0,0,.28); backdrop-filter: blur(18px) saturate(120%); }
.api-settings-card { width: min(760px, 100%); max-height: calc(100vh - 56px); padding: 28px; border: 1px solid var(--hairline); border-radius: 14px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.api-settings-head { margin-bottom: 20px; }
.api-settings-head h2 { margin: 6px 0 5px; font-family: inherit; font-size: 28px; font-weight: 720; }
.api-settings-head p { margin: 0; color: var(--muted); font-size: 11px; }
#api-settings-close { display: grid; place-items: center; border-radius: 50%; }
#api-settings-close svg { width: 17px; height: 17px; }
.api-config-stack { grid-template-columns: 1fr 1fr; gap: 12px; }
.api-config-group { padding: 18px; border: 1px solid var(--hairline); border-radius: 8px; align-content: start; }
.api-config-group > label:not(.api-check) { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.api-config-group input[type="password"], .api-config-group input[type="url"], .api-config-group input[type="text"] { height: 42px; border-color: var(--hairline); border-radius: 8px; font-size: 13px; }
.config-group-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.config-group-head > div { display: flex; gap: 9px; }
.config-group-head h3 { margin: 2px 0 0; color: var(--text); font-size: 13px; }
.config-group-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.config-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--accent); }
.config-icon.image { background: var(--tie); }
.config-icon svg { width: 17px; height: 17px; }
.connection-status { height: fit-content; padding: 4px 7px; border-radius: 5px; color: #8e8e93; background: #f0f0f2; font-size: 9px; }
.connection-status.ready { color: #137333; background: #e6f4ea; }
.api-field-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8px; }
.test-provider { height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--hairline); border-radius: 8px; color: #3a3a3c; background: #f7f7f9; cursor: pointer; font-size: 11px; }
.test-provider svg { width: 14px; height: 14px; }
.api-settings-note { display: flex; gap: 8px; align-items: flex-start; }
.api-settings-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }

.app-toast { position: fixed; left: calc(50% + 126px); bottom: 28px; z-index: 80; max-width: min(460px, calc(100vw - 40px)); min-height: 44px; padding: 10px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; color: #fff; background: rgba(29,29,31,.94); box-shadow: 0 14px 40px rgba(0,0,0,.22); opacity: 0; transform: translate(-50%, 12px); transition: .22s; font-size: 12px; }
.app-toast.visible { opacity: 1; transform: translate(-50%, 0); }
.app-toast.error { background: rgba(156,24,24,.96); }
.app-toast svg { width: 17px; height: 17px; flex: 0 0 auto; }
.signal-section { background: #f7f8f8; }

@media (max-width: 1040px) {
  .skill-workspace { grid-template-columns: 1fr; }
  .skill-form { position: static; }
  .skill-output { min-height: 480px; }
  .output-empty { min-height: 420px; }
}

@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .app-shell > section, .app-shell > main, .app-shell > footer { width: 100%; margin-left: 0; }
  .report-nav.app-sidebar { position: sticky; top: 0; width: 100%; height: auto; padding: 10px 12px; flex-direction: row; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--hairline); background: #fafafc; backdrop-filter: none; }
  .account-brand { padding: 0; }
  .fixed-avatar { width: 34px; height: 34px; }
  .brand-copy small { display: none; }
  .brand-copy strong { max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-links { order: 3; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; height: 66px; padding: 5px 6px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(6, minmax(54px,1fr)); gap: 2px; border-top: 1px solid var(--hairline); background: rgba(250,250,252,.96); backdrop-filter: blur(20px); overflow-x: auto; }
  .nav-links a { height: 54px; min-width: 54px; padding: 5px 2px; display: grid; place-items: center; gap: 2px; text-align: center; }
  .nav-links a > span { display: block; }
  .nav-links a strong { display: block; font-size: 9px; }
  .nav-links a small { display: none; }
  .nav-links a.active { color: var(--accent); background: transparent; }
  .nav-links a.active svg { color: var(--accent); }
  .nav-actions { margin: 0 0 0 auto; width: auto; display: flex; }
  .download-button { width: 40px; padding: 0; justify-content: center; }
  .download-button span { display: none; }
  .settings-menu { left: auto; right: 0; top: 48px; bottom: auto; width: 170px; }
  .entry-panel { min-height: calc(100vh - 58px); padding: 50px 18px 110px; }
  .entry-panel h1 { font-size: 38px; }
  .entry-form { padding: 9px; }
  .entry-form > div { flex-direction: column; }
  .workbench-page, .morning-generator-page, .skill-page { padding: 34px 14px 100px; }
  .workbench-intro h1, .skill-page-head h1 { font-size: 27px; }
  .skill-badge { width: 48px; height: 48px; border-radius: 11px; }
  .skill-badge svg { width: 23px; height: 23px; }
  .skill-form, .skill-output { padding: 18px; }
  .field-grid, .result-meta-grid, .api-config-stack { grid-template-columns: 1fr; }
  .creator-card-grid { grid-template-columns: 1fr; }
  .output-head { flex-direction: column; }
  .output-head button { width: 100%; justify-content: center; }
  .detector-hero { grid-template-columns: 1fr; }
  .api-settings-modal { padding: 12px; }
  .api-settings-card { max-height: calc(100vh - 24px); padding: 20px; }
  .api-field-row { grid-template-columns: 1fr; }
  .app-toast { left: 50%; bottom: 82px; }
  footer { padding-bottom: 90px; }
}

/* RC accessibility and interaction guardrails. */
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

:where(.account-modal, .api-settings-modal) {
  overscroll-behavior: contain;
}

button, a {
  touch-action: manipulation;
}

@media print {
  .report-nav.app-sidebar { display: none; }
  .app-shell > main { width: 100%; margin-left: 0; }
}

/* Premium crystal workspace */
:root {
  --glass-bg: #070c11;
  --glass-panel: rgba(22, 29, 35, .72);
  --glass-panel-strong: rgba(25, 33, 40, .91);
  --glass-soft: rgba(255, 255, 255, .035);
  --glass-line: rgba(214, 226, 235, .13);
  --glass-line-bright: rgba(255, 255, 255, .22);
  --glass-text: #f1f3f5;
  --glass-muted: #929aa3;
  --glass-gold: #e7bf7a;
  --glass-green: #56d49c;
  --accent: #e2bd7c;
  --xhs: #e2bd7c;
  --tie: #e2bd7c;
  --hit: #e2bd7c;
}

html { background: var(--glass-bg); }
body {
  color: var(--glass-text);
  background: #0b1218;
  background-image: url('/static/assets/crystal-workspace-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.app-shell { padding-top: 0; background: transparent; }
.app-shell > section, .app-shell > main, .app-shell > footer { width: calc(100% - 180px); margin-left: 180px; }

.report-nav.app-sidebar {
  width: 180px;
  padding: 18px 13px 20px;
  gap: 18px;
  border-right: 1px solid var(--glass-line);
  background: rgba(13, 20, 26, .9);
  box-shadow: inset -1px 0 rgba(255,255,255,.025), 18px 0 60px rgba(0,0,0,.18);
  backdrop-filter: blur(28px) saturate(135%);
}
.account-brand { padding: 0 7px 14px; gap: 9px; border-bottom: 1px solid var(--glass-line); }
.fixed-avatar {
  width: 29px; height: 29px; border-radius: 7px;
  color: #15120d; background: #e2c083;
  box-shadow: inset 0 1px rgba(255,255,255,.65), 0 6px 18px rgba(199,155,87,.16);
}
.fixed-avatar svg { width: 17px; height: 17px; }
.brand-copy strong { color: #f8f9fa; font-size: 14px; font-weight: 650; }
.brand-copy small { color: #69727b; font-size: 8px; text-transform: uppercase; }
.nav-links { gap: 5px; }
.nav-links a {
  height: 48px; padding: 0 10px; gap: 10px; border: 1px solid transparent;
  color: #adb4bb; background: transparent;
}
.nav-links a > svg { width: 18px; height: 18px; color: #78828c; }
.nav-links a strong { font-size: 12px; font-weight: 520; }
.nav-links a small { color: #626b74; font-size: 8px; }
.nav-links a:hover { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.035); }
.nav-links a.active {
  color: #f4d79f; border-color: rgba(231,191,122,.24);
  background: rgba(231,191,122,.09);
  box-shadow: inset 2px 0 #e7bf7a, inset 0 1px rgba(255,255,255,.04), 0 8px 28px rgba(0,0,0,.16);
}
.nav-links a.active svg { color: var(--glass-gold); }
.nav-links a.active small { color: #9e8a67; }
.nav-actions { gap: 7px; }
.download-button {
  height: 40px; color: #9ca4ac; border-color: var(--glass-line);
  background: rgba(255,255,255,.025); box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.download-button:hover { color: #f4f5f6; border-color: var(--glass-line-bright); background: rgba(255,255,255,.06); }

.command-bar {
  position: fixed; top: 0; left: 180px; right: 0; z-index: 29; height: 66px;
  display: grid; grid-template-columns: minmax(190px,1fr) minmax(280px,420px) minmax(190px,1fr) 40px;
  align-items: center; gap: 14px; padding: 0 20px;
  border-bottom: 1px solid var(--glass-line); background: rgba(13, 20, 26, .9);
  box-shadow: 0 12px 40px rgba(0,0,0,.15); backdrop-filter: blur(28px) saturate(135%);
}
.command-context { display: grid; gap: 2px; }
.command-context span { color: #626d77; font-size: 8px; }
.command-context strong { color: #e8ebed; font-size: 12px; font-weight: 600; }
.command-search {
  height: 38px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px;
  padding: 0 10px; border: 1px solid var(--glass-line); border-radius: 8px;
  background: rgba(255,255,255,.035); box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.command-search svg { width: 15px; color: #69737d; }
.command-search input { min-width: 0; border: 0; outline: 0; color: #dce0e3; background: transparent; font: inherit; font-size: 11px; }
.command-search input::placeholder { color: #59636d; }
.command-search kbd { padding: 3px 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; color: #636d77; font-size: 9px; }
.command-status { justify-self: end; display: flex; align-items: center; gap: 7px; color: #abb2b9; font-size: 10px; }
.api-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--glass-green); box-shadow: 0 0 12px rgba(86,212,156,.75); }
.api-live-dot { background: var(--glass-gold); box-shadow: 0 0 12px rgba(231,191,122,.55); }
.api-live-dot.offline { background: #747e87; box-shadow: none; }
.icon-command { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--glass-line); border-radius: 8px; color: #aab2ba; background: rgba(255,255,255,.03); cursor: pointer; }
.icon-command:hover { color: #fff; border-color: var(--glass-line-bright); background: rgba(255,255,255,.07); }
.icon-command svg { width: 16px; }

.entry-panel, .workbench-page, .morning-generator-page, .skill-page, .report-page {
  color: var(--glass-text); background: rgba(7, 12, 17, .5);
}
.entry-panel { min-height: 100vh; padding: 136px 7vw 100px; }
.entry-panel h1 { color: #f3f5f6; }
.entry-panel h1 em, .micro-label, .skill-kicker { color: var(--glass-gold); }
.entry-copy p, .workbench-intro p, .skill-page-head p, .helper-copy { color: var(--glass-muted); }
.entry-form, .skill-form, .skill-output, .creator-card, .workflow-card, .workbench-result, .mode-switch, .generator-frame {
  border: 1px solid var(--glass-line);
  background: var(--glass-panel);
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 24px 70px rgba(0,0,0,.24);
  backdrop-filter: blur(26px) saturate(125%);
}
.entry-form input, .skill-form textarea, .skill-form input, .skill-form select,
.creator-card textarea, .creator-card select, .result-editor, #article-editor {
  color: #edf0f2; border-color: var(--glass-line); background: rgba(5,10,14,.42);
  box-shadow: inset 0 1px 8px rgba(0,0,0,.16);
}
input::placeholder, textarea::placeholder { color: #59636c !important; }
.entry-form input:focus, .skill-form input:focus, .skill-form select:focus, .skill-form textarea:focus {
  border-color: rgba(231,191,122,.55); box-shadow: 0 0 0 3px rgba(231,191,122,.09);
}
.entry-form button, .primary-action, .skill-primary {
  color: #17130d; border-color: #f0cc8a;
  background: #e4bd79;
  box-shadow: inset 0 1px rgba(255,255,255,.48), 0 10px 30px rgba(211,165,94,.15);
}
.entry-form button:hover, .primary-action:hover, .skill-primary:hover { background: #efca88; }
.workbench-page, .morning-generator-page, .skill-page { padding: 100px 28px 70px; }
.workbench-intro, .skill-page-head { width: min(1380px,100%); margin-bottom: 20px; }
.workbench-intro h1, .skill-page-head h1 { color: #f2f4f5; font-size: 28px; }
.skill-workspace { width: min(1380px,100%); grid-template-columns: minmax(300px, 360px) minmax(0,1fr); gap: 10px; }
.skill-form, .skill-output { border-radius: 9px; }
.skill-form { top: 82px; padding: 18px; }
.skill-output { min-height: 680px; padding: 18px; }
.skill-form > label, .skill-form .field-grid label, .creator-card > label { color: #adb4ba; }
.form-section-title strong, .output-empty h2, .output-head h2, .result-section-title strong { color: #eef0f2; }
.form-section-title small, .output-empty, .output-head p, .result-section-title span { color: var(--glass-muted); }
.form-section-title > span { color: var(--glass-gold); background: rgba(231,191,122,.09); }
.skill-badge { color: #17130d; background: #dfb875 !important; }
.field-grid { gap: 9px; margin-top: 11px; }
.field-wide { margin-top: 11px; }
.output-empty > span { color: #9ca5ad; background: var(--glass-soft); }
.output-head, .result-section { border-color: var(--glass-line); }
.title-option, .creator-output-card, .suggestion-list article { color: #dce0e3; border-color: var(--glass-line); background: rgba(255,255,255,.025); }
.title-option.selected { border-color: rgba(231,191,122,.4); background: rgba(231,191,122,.07); }
.creator-card-copy p, .creator-card-copy small, .muted-copy { color: var(--glass-muted); }
.result-meta-grid > div, .plan-summary > div, .ledger-list > div { background: var(--glass-soft); }
.card-image-slot { color: #78828b; background: rgba(255,255,255,.035); }

.workbench-page { max-width: none; }
.workbench-grid { grid-template-columns: minmax(0,1fr) 320px; gap: 10px; }
.creator-card, .workflow-card, .workbench-result { border-radius: 9px; }
.mode-option { color: #8e979f; }
.mode-option.active { color: #f0d09a; background: rgba(231,191,122,.09); box-shadow: inset 0 0 0 1px rgba(231,191,122,.2); }
.creator-options label, .card-topline, .workflow-note, .editor-head, .result-foot { color: var(--glass-muted); }
.status-pill, .result-status { color: #ddbd83; background: rgba(231,191,122,.1); }
.secondary-action, .text-action, .copy-result { color: #d3b57e; border-color: var(--glass-line); background: rgba(255,255,255,.03); }
.workflow-step, .topic-item, .editor-wrap { border-color: var(--glass-line); }
.workflow-step.active { border-color: rgba(231,191,122,.3); background: rgba(231,191,122,.07); }

.morning-generator-page { padding: 76px 10px 10px; }
.morning-generator-page .workbench-intro { display: none; }
.generator-frame { width: 100%; min-height: calc(100vh - 86px); border-radius: 9px; filter: none; }
.api-settings-modal { background: rgba(0,4,7,.7); }
.api-settings-card { color: var(--glass-text); border-color: var(--glass-line-bright); background: rgba(18,25,31,.96); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 38px 110px rgba(0,0,0,.62); }
.api-config-group { border-color: var(--glass-line); background: rgba(255,255,255,.025); }
.api-settings-head h2, .config-group-head h3 { color: #f1f3f4; }
.api-settings-head p, .config-group-head p, .api-config-group > label:not(.api-check), .api-settings-note { color: var(--glass-muted); }
.api-config-group input[type="password"], .api-config-group input[type="url"], .api-config-group input[type="text"] { color: #eef0f2; border-color: var(--glass-line); background: rgba(4,8,12,.55); }
.test-provider { color: #c3c9ce; border-color: var(--glass-line); background: var(--glass-soft); }
.settings-menu { color: #e9ecee; border-color: var(--glass-line); background: rgba(20,27,33,.98); box-shadow: 0 20px 50px rgba(0,0,0,.42); }
.settings-menu button { color: #e9ecee; }

.report-page, .report-hero, .signal-section, .lenses-section, .evidence-route, .benchmark-section, .takeaways-section { background: transparent; }
.report-hero, .signal-grid > article, .profile-strip, .lens-card, .content-evidence, .route-panel, .benchmark-list, .takeaway-column {
  color: var(--glass-text); border-color: var(--glass-line); background: var(--glass-panel); box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.section-title span, .profile-strip span, .evidence-footnote { color: var(--glass-muted); }
footer { color: #59636d; border-color: var(--glass-line); background: transparent; }

@media (prefers-reduced-transparency: reduce) {
  .report-nav.app-sidebar, .command-bar, .entry-form, .skill-form, .skill-output,
  .creator-card, .workflow-card, .workbench-result, .mode-switch, .generator-frame,
  .api-settings-card { background: #141c23; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 1040px) {
  .command-bar { grid-template-columns: 1fr minmax(220px,360px) auto 40px; }
  .command-context span { display: none; }
}
@media (max-width: 760px) {
  .app-shell { padding-top: 0; }
  .app-shell > section, .app-shell > main, .app-shell > footer { width: 100%; margin-left: 0; }
  .report-nav.app-sidebar { height: 58px; background: #090f14; border-color: var(--glass-line); backdrop-filter: none; }
  .command-bar { top: 58px; left: 0; height: 52px; padding: 0 12px; grid-template-columns: 1fr auto 38px; }
  .command-search { display: none; }
  .command-status span:last-child { display: none; }
  .nav-links { border-color: var(--glass-line); background: rgba(8,14,19,.96); }
  .nav-links a.active { color: var(--glass-gold); background: rgba(231,191,122,.08); }
  .entry-panel { padding-top: 82px; }
  .workbench-page, .morning-generator-page, .skill-page { padding-top: 70px; }
  .brand-copy strong { max-width: 128px; font-size: 12px; }
  .skill-page-head { display: block; width: 100%; }
  .skill-page-head > div, .workbench-intro { min-width: 0; width: 100%; }
  .skill-page-head .skill-badge { display: none; }
  .workbench-intro h1, .skill-page-head h1 { width: 100%; max-width: 100%; font-size: 25px; white-space: normal !important; overflow-wrap: anywhere; word-break: break-all; }
  .workbench-intro p, .skill-page-head p { width: 100%; max-width: 100%; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
}

/* Final cascade guard: this file contains legacy theme layers above. */
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #e7bf7a !important;
  outline-offset: 3px;
}

:where(.account-modal, .api-settings-modal) {
  overscroll-behavior: contain;
}

button, a {
  touch-action: manipulation;
}


/* --- taste-chatgpt.css --- */
/* ChatGPT-inspired product surface: quiet neutrals, one workspace, one clear action. */
:root {
  --taste-bg: #f5f6f8;
  --taste-sidebar: #fbfbfc;
  --taste-surface: #ffffff;
  --taste-soft: #f1f3f6;
  --taste-line: #dfe3e8;
  --taste-text: #17181a;
  --taste-muted: #707782;
  --taste-accent: #0b8f73;
  --taste-blue: #1677ff;
  --taste-radius: 8px;
  --taste-sidebar-width: 210px;
  --taste-header-height: 72px;
}

html, body { background: var(--taste-bg) !important; color: var(--taste-text) !important; }
body { background-image: none !important; }
.app-shell { min-height: 100dvh; padding-top: 0 !important; background: var(--taste-bg) !important; }
.app-shell > section, .app-shell > main, .app-shell > footer { width: calc(100% - var(--taste-sidebar-width)) !important; margin-left: var(--taste-sidebar-width) !important; }

.report-nav.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--taste-sidebar-width); height: 100dvh; padding: 18px 10px 14px;
  gap: 22px; border-right: 1px solid var(--taste-line); background: var(--taste-sidebar) !important;
  box-shadow: 8px 0 28px rgba(25,32,45,.035); backdrop-filter: blur(18px); color: var(--taste-text);
}
.account-brand { padding: 3px 12px 22px; border-bottom: 1px solid var(--taste-line); }
.fixed-avatar { width: 28px; height: 28px; border-radius: 7px; color: #fff; background: #202123; box-shadow: none; }
.fixed-avatar svg { width: 16px; height: 16px; }
.brand-copy strong { color: var(--taste-text); font-size: 15px; font-weight: 650; }
.brand-copy small { color: #8e8ea0; font-size: 9px; }
.nav-links { gap: 2px; }
.nav-links a { height: 46px; padding: 0 12px; gap: 11px; border: 0; border-radius: 10px; color: #555d68; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-links a > svg { width: 18px; height: 18px; color: #747487; }
.nav-links a strong { font-size: 13px; font-weight: 500; }
.nav-links a small { color: #9898a7; font-size: 9px; }
.nav-links a:hover { background: #eef1f5; color: var(--taste-text); transform: translateX(1px); }
.nav-links a.active { color: var(--taste-text); background: #e9eef6; box-shadow: inset 3px 0 var(--taste-blue); }
.nav-links a.active svg { color: var(--taste-blue); }
.nav-links a.active small { color: #777787; }
.nav-actions { gap: 6px; }
.download-button { height: 40px; color: #555568; border-color: var(--taste-line); background: transparent; box-shadow: none; }
.download-button:hover { color: var(--taste-text); background: #ececef; }

.command-bar {
  position: sticky; top: 0; left: auto; z-index: 20; height: var(--taste-header-height); margin-left: var(--taste-sidebar-width); padding: 0 30px;
  display: grid; grid-template-columns: 1fr minmax(300px, 500px) 1fr 40px; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--taste-line); background: rgba(245,246,248,.9); box-shadow: 0 1px 0 rgba(255,255,255,.8); backdrop-filter: blur(18px);
}
.command-context { display: flex; align-items: center; gap: 14px; }
.command-context span { display: none; }
.command-context strong { color: var(--taste-text); font-size: 14px; font-weight: 600; }
.command-search { height: 40px; border: 1px solid #d7dce3; border-radius: 11px; background: rgba(255,255,255,.82); box-shadow: 0 2px 8px rgba(26,35,48,.035); }
.command-search input { color: var(--taste-text); }
.command-search input::placeholder { color: #9696a1; }
.command-status { justify-self: end; color: #6e6e80; font-size: 11px; }
.api-live-dot, .api-live-dot.offline { background: var(--taste-accent); box-shadow: none; }
.api-live-dot.offline { background: #b7b7c0; }
.icon-command { border-color: transparent; color: #555568; background: transparent; }
.icon-command:hover { color: var(--taste-text); border-color: var(--taste-line); background: var(--taste-soft); }

.entry-panel, .workbench-page, .morning-generator-page, .skill-page, .report-page { color: var(--taste-text) !important; background: var(--taste-bg) !important; }
.entry-panel { min-height: calc(100dvh - var(--taste-header-height)); padding: 88px 9vw 120px; place-content: start center; text-align: left; }
.entry-copy { width: min(760px,100%); }
.entry-panel h1 { color: var(--taste-text); font-size: 48px; line-height: 1.12; font-weight: 650; letter-spacing: -.035em; }
.entry-panel h1 em { color: var(--taste-text); }
.entry-copy p, .workbench-intro p, .skill-page-head p { color: var(--taste-muted); }
.entry-form { width: min(760px,100%); padding: 0; border: 1px solid var(--taste-line); border-radius: 12px; background: var(--taste-surface); box-shadow: 0 12px 32px rgba(34,43,56,.07); }
.entry-form input { height: 52px; border-color: transparent; background: transparent; }
.entry-form button, .primary-action, .skill-primary { color: #fff; background: #202123; border-color: #202123; border-radius: var(--taste-radius); box-shadow: none; }
.entry-form button:hover, .primary-action:hover, .skill-primary:hover { color: #fff; background: #000; }

.workbench-page, .morning-generator-page, .skill-page { min-height: calc(100dvh - var(--taste-header-height)); padding: 28px 24px 72px; }
.workbench-intro, .skill-page-head { width: min(1225px,100%); margin: 0 auto 18px; }
.workbench-intro h1, .skill-page-head h1 { color: var(--taste-text); font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.skill-kicker, .micro-label { color: var(--taste-muted); font-size: 11px; }
.skill-badge { color: var(--taste-blue) !important; background: #eff4ff !important; box-shadow: none; }
.skill-workspace { width: min(1225px,100%); grid-template-columns: minmax(360px, 1fr) minmax(0, 1.35fr); gap: 18px; }
.skill-form, .skill-output, .creator-card, .workflow-card, .workbench-result, .mode-switch, .generator-frame {
  border: 1px solid var(--taste-line); border-radius: 12px; background: rgba(255,255,255,.88); box-shadow: 0 10px 32px rgba(34,43,56,.055); backdrop-filter: blur(12px);
}
.skill-form { padding: 22px; position: sticky; top: 86px; }
.skill-output { min-height: 650px; padding: 24px; }
.form-section-title { border-bottom: 1px solid var(--taste-line); padding-bottom: 14px; }
.form-section-title > span { color: var(--taste-blue); background: #eff4ff; }
.form-section-title strong, .output-empty h2, .output-head h2, .result-section-title strong { color: var(--taste-text); }
.form-section-title small, .output-empty p, .output-head p, .result-section-title span { color: var(--taste-muted); }
.skill-form > label, .skill-form .field-grid label, .creator-card > label { color: #6e6e80; }
.skill-form textarea, .skill-form input, .skill-form select, .creator-card textarea, .creator-card select, .result-editor, #article-editor {
  color: var(--taste-text); border-color: #d9d9df; background: #fff; box-shadow: none;
}
.skill-form input:focus, .skill-form select:focus, .skill-form textarea:focus { border-color: var(--taste-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.output-empty > span { color: #777787; background: var(--taste-soft); }
.output-head, .result-section, .workflow-step, .topic-item, .editor-wrap { border-color: var(--taste-line); }
.title-option, .creator-output-card, .suggestion-list article { color: var(--taste-text); border-color: var(--taste-line); background: #fff; box-shadow: 0 3px 12px rgba(34,43,56,.035); }
.title-option.selected, .workflow-step.active { border-color: rgba(37,99,235,.35); background: #f5f8ff; }
.creator-card-copy p, .creator-card-copy small, .muted-copy { color: var(--taste-muted); }
.result-meta-grid > div, .plan-summary > div, .ledger-list > div { background: var(--taste-soft); }
.card-image-slot { color: #9999a5; background: #f7f7f8; }
.mode-option { color: var(--taste-muted); }
.mode-option.active { color: var(--taste-text); background: #e9eef6; box-shadow: inset 0 0 0 1px #cbd9ee; }
.status-pill, .result-status { color: #267a62; background: #eaf7f2; }
.secondary-action, .text-action, .copy-result { color: #555568; border-color: var(--taste-line); background: #fff; }
.secondary-action:hover, .text-action:hover { color: var(--taste-text); background: var(--taste-soft); }
.generation-progress { border-color: #d8e7ff; background: #f5f8ff; }
.progress-track { background: #e5e7eb; }
.progress-track i { background: var(--taste-blue); }

.morning-generator-page { padding: 18px 12px 18px; }
.morning-generator-page .workbench-intro { display: none; }
.generator-frame { min-height: calc(100dvh - 88px); }
.api-settings-modal { background: rgba(32,33,35,.28); backdrop-filter: blur(12px); }
.api-settings-card { color: var(--taste-text); border-color: var(--taste-line); border-radius: 10px; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.api-config-group { border-color: var(--taste-line); background: #fff; }
.api-settings-head h2, .config-group-head h3 { color: var(--taste-text); }
.api-settings-head p, .config-group-head p, .api-config-group > label:not(.api-check), .api-settings-note { color: var(--taste-muted); }
.api-config-group input[type="password"], .api-config-group input[type="url"], .api-config-group input[type="text"] { color: var(--taste-text); border-color: #d9d9df; background: #fff; }
.config-icon { color: #fff; background: var(--taste-blue); }
.config-icon.image { background: var(--taste-accent); }
.connection-status.ready { color: #267a62; background: #eaf7f2; }
.test-provider { color: #555568; border-color: var(--taste-line); background: var(--taste-soft); }
.settings-menu { color: var(--taste-text); border-color: var(--taste-line); background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.settings-menu button { color: var(--taste-text); }
.app-toast { color: #fff; background: rgba(32,33,35,.96); }

.report-hero, .signal-grid > article, .profile-strip, .lens-card, .content-evidence, .route-panel, .benchmark-list, .takeaway-column {
  color: var(--taste-text); border-color: var(--taste-line); background: #fff; box-shadow: none;
}
.report-hero { border-bottom: 1px solid var(--taste-line); }
.signal-section { background: var(--taste-soft); }
.section-title span, .profile-strip span, .evidence-footnote { color: var(--taste-muted); }
footer { color: #9999a5; border-color: var(--taste-line); background: #fff; }

@media (max-width: 760px) {
  .app-shell > section, .app-shell > main, .app-shell > footer { width: 100% !important; margin-left: 0 !important; }
  .report-nav.app-sidebar { width: 100%; height: 58px; padding: 10px 12px; flex-direction: row; gap: 10px; border-right: 0; border-bottom: 1px solid var(--taste-line); }
  .account-brand { padding: 0; border-bottom: 0; }
  .brand-copy strong { max-width: 128px; color: var(--taste-text); }
  .nav-links { position: fixed; left: 0; right: 0; bottom: 0; height: 66px; padding: 5px 6px env(safe-area-inset-bottom); grid-template-columns: repeat(6,minmax(54px,1fr)); border-top: 1px solid var(--taste-line); background: rgba(247,247,248,.97); backdrop-filter: blur(18px); }
  .nav-links a { color: #555568; }
  .nav-links a.active { color: var(--taste-blue); background: transparent; box-shadow: none; }
  .nav-links a.active svg { color: var(--taste-blue); }
  .command-bar { position: sticky; left: 0; margin-left: 0; height: 52px; padding: 0 14px; grid-template-columns: 1fr auto 38px; }
  .command-search { display: none; }
  .command-context strong { font-size: 13px; }
  .command-status span:last-child { display: none; }
  .entry-panel { min-height: calc(100dvh - 58px); padding: 64px 18px 110px; }
  .entry-panel h1 { font-size: 38px; }
  .workbench-page, .skill-page { padding: 32px 14px 100px; }
  .morning-generator-page { padding: 52px 8px 78px; }
  .skill-workspace { grid-template-columns: 1fr; gap: 14px; }
  .skill-form { position: static; }
  .skill-output { min-height: 480px; }
  .api-settings-card { max-height: calc(100dvh - 24px); }
}

/* Workbench interaction-mode decision surface */
.workbench-decision {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 20px 0 4px;
  padding: 16px 18px;
  border: 1px solid #d9e4f4;
  border-radius: 14px;
  background: linear-gradient(112deg, #f8fbff 0%, #ffffff 55%, #f5f9ff 100%);
}
.decision-step { display: grid; gap: 4px; min-width: 78px; }
.decision-step span, .decision-impact > span { color: #728096; font-size: 11px; }
.decision-step strong { color: #1d5fa9; font-size: 13px; }
.decision-copy h3 { margin: 0 0 5px; color: #202b3a; font-size: 15px; line-height: 1.4; }
.decision-copy p { margin: 0; color: #69778b; font-size: 12px; line-height: 1.65; }
.decision-impact { display: grid; gap: 4px; min-width: 112px; padding-left: 16px; border-left: 1px solid #dce6f2; }
.decision-impact strong { color: #334860; font-size: 12px; line-height: 1.45; }
.result-actions .primary-action[hidden], .result-actions .secondary-action[hidden], .workbench-result .text-action[hidden] { display: none !important; }
.workbench-result .topic-item span:last-child { color: #286fc1; font-size: 12px; font-weight: 650; white-space: nowrap; }

@media (max-width: 760px) {
  .workbench-decision { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .decision-step { grid-template-columns: auto 1fr; align-items: center; }
  .decision-step span { grid-row: 1 / span 2; }
  .decision-impact { padding: 10px 0 0; border-top: 1px solid #dce6f2; border-left: 0; grid-template-columns: auto 1fr; align-items: center; }
  .result-actions { gap: 8px; }
  .result-actions .primary-action, .result-actions .secondary-action { flex: 1 1 auto; }
}

/* Final responsive authority for account surfaces. Keep the modal usable before auth. */
.account-modal { box-sizing: border-box; width: 100%; max-width: 100vw; }
.auth-card, .wallet-card { box-sizing: border-box; max-width: calc(100vw - 40px); }
.auth-copy p, .wallet-head p, .wallet-total small { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .account-modal { padding: 10px !important; place-items: end center; grid-template-columns: minmax(0, 1fr); }
  .auth-card, .wallet-card { width: calc(100vw - 20px) !important; max-width: calc(100vw - 20px) !important; min-width: 0 !important; overflow-x: hidden; }
  .auth-card { padding: 22px 18px !important; }
  .auth-copy h1 { font-size: 27px !important; line-height: 1.18; overflow-wrap: anywhere; }
  .auth-copy p { max-width: 100%; white-space: normal; }
}

/* Product redesign pass: Swiss utility with Apple-like restraint. */
:root {
  --ux-bg: #f7f8fa;
  --ux-sidebar: #fbfbfc;
  --ux-surface: #ffffff;
  --ux-surface-subtle: #f1f3f6;
  --ux-ink: #16181d;
  --ux-muted: #69717d;
  --ux-faint: #9aa1ab;
  --ux-rule: #e1e5ea;
  --ux-blue: #1677ff;
  --ux-blue-soft: #edf4ff;
  --ux-green: #198754;
  --ux-radius: 10px;
  --ux-shadow: 0 14px 35px rgba(28, 36, 48, .055);
}

html, body { background: var(--ux-bg) !important; color: var(--ux-ink) !important; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif !important; }
button, input, select, textarea { font-family: inherit !important; }
::selection { color: #fff; background: var(--ux-blue); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: #cbd1d9; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.app-shell { background: var(--ux-bg) !important; }
.report-nav.app-sidebar { width: 216px; padding: 22px 12px 16px; background: rgba(251,251,252,.94) !important; border-right: 1px solid var(--ux-rule); box-shadow: 5px 0 20px rgba(28,36,48,.025); }
.app-shell > section, .app-shell > main, .app-shell > footer { width: calc(100% - 216px) !important; margin-left: 216px !important; }
.account-brand { min-height: 42px; padding: 0 10px 24px; border-bottom: 1px solid var(--ux-rule); }
.fixed-avatar { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--ux-ink); }
.brand-copy strong { color: var(--ux-ink); font-size: 15px; letter-spacing: -.015em; }
.brand-copy small { color: var(--ux-faint); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.nav-links { gap: 3px; padding-top: 18px; }
.nav-links a { height: 44px; border-radius: 8px; color: #626a76; }
.nav-links a strong { font-size: 13px; font-weight: 520; }
.nav-links a small { color: #a0a6af; font-size: 9px; }
.nav-links a:hover { color: var(--ux-ink); background: #f0f2f5; transform: none; }
.nav-links a.active { color: var(--ux-ink); background: #eaf1fb; box-shadow: inset 2px 0 var(--ux-blue); }
.nav-links a.active svg { color: var(--ux-blue); }
.nav-links a.active small { color: #7d8793; }
.nav-actions { margin-top: auto; padding: 12px 4px 0; border-top: 1px solid var(--ux-rule); }
.download-button { height: 38px; border: 0; border-radius: 8px; color: #626a76; background: transparent; }
.download-button:hover { color: var(--ux-ink); background: #f0f2f5; }

.command-bar { height: 72px; margin-left: 216px; padding: 0 34px; grid-template-columns: 1fr minmax(360px, 520px) 1fr 38px; background: rgba(247,248,250,.88); border-bottom: 1px solid var(--ux-rule); box-shadow: none; }
.command-context strong { color: var(--ux-ink); font-size: 14px; font-weight: 600; }
.command-search { height: 40px; border: 1px solid #d8dde4; border-radius: 9px; background: rgba(255,255,255,.9); box-shadow: 0 2px 7px rgba(28,36,48,.025); }
.command-search:focus-within { border-color: #a9c9fa; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.command-status { color: var(--ux-muted); }
.api-live-dot, .api-live-dot.offline { width: 6px; height: 6px; background: var(--ux-green); }
.api-live-dot.offline { background: #b6bdc7; }
.icon-command { width: 34px; height: 34px; border: 0; color: var(--ux-muted); background: transparent; }
.icon-command:hover { color: var(--ux-ink); background: var(--ux-surface-subtle); }

.entry-panel, .workbench-page, .skill-page, .morning-generator-page, .report-page { background: var(--ux-bg) !important; }
.entry-panel { min-height: calc(100dvh - 72px); padding: 90px 9vw 120px; }
.entry-panel h1 { max-width: 720px; color: var(--ux-ink); font-size: clamp(42px, 5vw, 64px); letter-spacing: -.04em; line-height: 1.08; }
.entry-copy p, .workbench-intro p, .skill-page-head p { color: var(--ux-muted); }
.entry-form { border: 1px solid var(--ux-rule); border-radius: 10px; background: var(--ux-surface); box-shadow: var(--ux-shadow); }
.entry-form input { border: 0; box-shadow: none; }
.entry-form button, .primary-action, .skill-primary { border: 0; border-radius: 8px; color: #fff; background: var(--ux-ink); box-shadow: none; transition: transform .18s ease, background .18s ease; }
.entry-form button:hover, .primary-action:hover, .skill-primary:hover { color: #fff; background: #000; transform: translateY(-1px); }

.workbench-page, .skill-page { min-height: calc(100dvh - 72px); padding: 34px 28px 76px; }
.workbench-intro, .skill-page-head { width: min(1240px, 100%); margin: 0 auto 22px; }
.workbench-intro h1, .skill-page-head h1 { color: var(--ux-ink); font-size: 30px; line-height: 1.16; letter-spacing: -.03em; }
.skill-workspace { width: min(1240px,100%); grid-template-columns: minmax(360px, 1fr) minmax(0, 1.42fr); gap: 18px; }
.skill-form, .skill-output, .creator-card, .workflow-card, .workbench-result, .mode-switch, .generator-frame { border: 1px solid var(--ux-rule); border-radius: var(--ux-radius); background: var(--ux-surface); box-shadow: var(--ux-shadow); backdrop-filter: none; }
.skill-form { padding: 24px; }
.skill-output { min-height: 660px; padding: 24px; }
.form-section-title { padding-bottom: 16px; border-bottom: 1px solid var(--ux-rule); }
.form-section-title > span { color: var(--ux-blue); background: var(--ux-blue-soft); }
.skill-form textarea, .skill-form input, .skill-form select, .creator-card textarea, .creator-card select, .result-editor, #article-editor { border-color: #d8dde4; border-radius: 8px; color: var(--ux-ink); background: #fff; }
.skill-form textarea:focus, .skill-form input:focus, .skill-form select:focus, .creator-card textarea:focus, .creator-card select:focus { border-color: #8db9f7; box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.title-option, .creator-output-card, .suggestion-list article { border-color: var(--ux-rule); background: #fff; box-shadow: none; }
.title-option.selected, .workflow-step.active { border-color: #9fc4f7; background: var(--ux-blue-soft); }
.mode-option { color: var(--ux-muted); }
.mode-option.active { color: var(--ux-ink); background: #eef2f7; box-shadow: inset 0 0 0 1px #d5deea; }
.secondary-action, .text-action, .copy-result { border-color: var(--ux-rule); color: var(--ux-ink); background: #fff; }
.secondary-action:hover, .text-action:hover { background: var(--ux-surface-subtle); }
.status-pill, .result-status { color: var(--ux-green); background: #e9f7f0; }
.generation-progress { border-color: #cfe0f8; background: var(--ux-blue-soft); }
.progress-track { background: #dfe5ed; }
.progress-track i { background: var(--ux-blue); }
.morning-generator-page { padding: 20px 14px 20px; }
.generator-frame { min-height: calc(100dvh - 104px); }

.api-settings-modal { background: rgba(22,24,29,.24); }
.api-settings-card { border: 1px solid var(--ux-rule); border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(22,24,29,.18); }
.api-config-group { border-color: var(--ux-rule); background: #fff; }
.api-config-group input[type="password"], .api-config-group input[type="url"], .api-config-group input[type="text"] { border-color: #d8dde4; border-radius: 8px; background: #fff; }
.config-icon { background: var(--ux-blue); }
.config-icon.image { background: var(--ux-green); }
.settings-menu { border-color: var(--ux-rule); border-radius: 9px; background: #fff; box-shadow: 0 14px 32px rgba(22,24,29,.14); }
.account-modal { width: 100%; max-width: 100vw; overflow: auto; }
.auth-card, .wallet-card { box-sizing: border-box; max-width: min(680px, calc(100vw - 24px)); }
.auth-copy p, .wallet-head p, .wallet-total small { overflow-wrap: anywhere; }
.auth-form input, .admin-recharge input, .admin-recharge select { min-width: 0; }

@media (max-width: 760px) {
  .app-shell > section, .app-shell > main, .app-shell > footer { width: 100% !important; margin-left: 0 !important; }
  .report-nav.app-sidebar { width: 100%; padding: 10px 12px; box-shadow: none; }
  .command-bar { margin-left: 0; height: 54px; }
  .entry-panel { min-height: calc(100dvh - 58px); padding: 64px 18px 110px; }
  .workbench-page, .skill-page { padding: 26px 14px 100px; }
  .skill-workspace { grid-template-columns: 1fr; }
  .skill-form { position: static; }
  .skill-output { min-height: 480px; }
  .auth-card, .wallet-card { width: 100%; max-width: calc(100vw - 20px); }
  .auth-card { padding: 22px 18px; }
  .auth-copy h1 { font-size: 27px; line-height: 1.18; overflow-wrap: anywhere; }
}

/* Account, wallet, and admin recharge */
.wallet-chip { border: 0; cursor: pointer; font: inherit; }
.wallet-chip strong { color: var(--taste-text); font-weight: 650; }
.account-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(24,25,28,.34); backdrop-filter: blur(14px); }
.account-modal[hidden] { display: none; }
.auth-card, .wallet-card { width: min(440px,100%); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid rgba(255,255,255,.72); border-radius: 16px; color: var(--taste-text); background: rgba(255,255,255,.97); box-shadow: 0 26px 90px rgba(18,24,34,.22); }
.auth-card { padding: 30px; }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--taste-text); }
.auth-brand svg { width: 19px; height: 19px; }
.auth-brand div { display: grid; gap: 1px; }
.auth-brand strong { font-size: 13px; }
.auth-brand small { color: var(--taste-muted); font-size: 10px; letter-spacing: .12em; }
.auth-copy { padding: 34px 0 22px; }
.auth-copy h1 { margin: 8px 0 9px; font-size: 27px; letter-spacing: -.035em; }
.auth-copy p { margin: 0; color: var(--taste-muted); font-size: 13px; line-height: 1.75; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 9px; background: var(--taste-soft); }
.auth-tabs button { height: 36px; border: 0; border-radius: 7px; color: var(--taste-muted); background: transparent; cursor: pointer; }
.auth-tabs button.active { color: var(--taste-text); background: #fff; box-shadow: 0 1px 4px rgba(20,30,45,.1); }
.auth-form { padding-top: 18px; display: grid; gap: 13px; }
.auth-form label, .admin-recharge label { display: grid; gap: 7px; color: #666675; font-size: 12px; }
.auth-form input, .admin-recharge input, .admin-recharge select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d9d9df; border-radius: 8px; color: var(--taste-text); background: #fff; outline: 0; }
.auth-form input:focus, .admin-recharge input:focus, .admin-recharge select:focus { border-color: var(--taste-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.auth-form .primary-action { width: 100%; height: 44px; margin-top: 5px; }
.auth-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; color: #a32929; background: #fff1f1; font-size: 12px; }
.wallet-card { width: min(680px,100%); padding: 26px; }
.wallet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.wallet-head h2 { margin: 6px 0 3px; font-size: 24px; }
.wallet-head p { margin: 0; color: var(--taste-muted); font-size: 12px; }
.wallet-total { margin-top: 22px; padding: 22px; display: grid; gap: 5px; border-radius: 12px; color: #fff; background: #202123; }
.wallet-total span, .wallet-total small { color: rgba(255,255,255,.64); font-size: 11px; }
.wallet-total strong { font-size: 18px; }
.wallet-total b { font-size: 36px; letter-spacing: -.05em; }
.wallet-buckets { margin-top: 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.wallet-buckets > div { padding: 14px; display: grid; gap: 5px; border: 1px solid var(--taste-line); border-radius: 9px; background: var(--taste-soft); }
.wallet-buckets span { color: var(--taste-muted); font-size: 11px; }
.wallet-buckets strong { font-size: 17px; }
.wallet-history, .admin-recharge { margin-top: 24px; }
.wallet-section-title { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-section-title strong { font-size: 13px; }
.wallet-section-title span { color: var(--taste-muted); font-size: 10px; }
.wallet-section-title button { border: 0; color: var(--taste-blue); background: transparent; cursor: pointer; font-size: 11px; }
.wallet-transactions { max-height: 250px; overflow: auto; border-top: 1px solid var(--taste-line); }
.wallet-transactions > p, .admin-user-results > p { color: var(--taste-muted); font-size: 12px; }
.wallet-transactions article { min-height: 58px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--taste-line); }
.transaction-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; }
.transaction-icon svg { width: 14px; height: 14px; }
.transaction-icon.in { color: #267a62; background: #eaf7f2; }
.transaction-icon.out { color: #765a24; background: #faf1df; }
.wallet-transactions article div { min-width: 0; display: grid; gap: 3px; }
.wallet-transactions article strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.wallet-transactions article small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--taste-muted); font-size: 10px; }
.wallet-transactions article > b { font-size: 12px; }
.wallet-transactions b.in { color: #267a62; }
.wallet-transactions b.out { color: #765a24; }
.admin-recharge { padding-top: 22px; border-top: 1px solid var(--taste-line); }
.admin-user-results { margin-top: 8px; max-height: 145px; overflow: auto; display: grid; gap: 5px; }
.admin-user-results button { min-height: 46px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--taste-line); border-radius: 8px; color: var(--taste-text); background: #fff; cursor: pointer; text-align: left; }
.admin-user-results button:hover { border-color: var(--taste-blue); background: #f7f9ff; }
.admin-user-results span { display: grid; gap: 2px; }
.admin-user-results strong, .admin-user-results b { font-size: 11px; }
.admin-user-results small { color: var(--taste-muted); font-size: 10px; }
#admin-recharge-form { margin-top: 12px; padding: 14px; display: grid; gap: 10px; border-radius: 9px; background: var(--taste-soft); }
#admin-recharge-form[hidden] { display: none; }
#admin-recharge-form > p { margin: 0; font-size: 11px; }
#admin-recharge-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
#admin-recharge-form button { justify-self: start; }

@media (max-width: 760px) {
  .account-modal { padding: 10px; place-items: end center; }
  .auth-card, .wallet-card { max-height: calc(100dvh - 20px); border-radius: 16px 16px 12px 12px; }
  .auth-card { padding: 24px 20px; }
  .wallet-card { padding: 20px 16px; }
  .wallet-chip { padding: 0 8px; }
  .wallet-buckets { gap: 5px; }
  .wallet-buckets > div { padding: 10px; }
}

/* Final authority for account surfaces on narrow screens. */
.account-modal { box-sizing: border-box; width: 100%; max-width: 100vw; }
.auth-card, .wallet-card { box-sizing: border-box; max-width: calc(100vw - 40px); }
.auth-copy p, .wallet-head p, .wallet-total small { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 760px) {
  .account-modal { padding: 10px !important; place-items: end center; }
  .auth-card, .wallet-card { width: 100% !important; max-width: calc(100vw - 20px) !important; overflow-x: hidden; }
  .auth-card { padding: 22px 18px !important; }
  .auth-copy h1 { font-size: 27px !important; line-height: 1.18; overflow-wrap: anywhere; }
}

/* Conversational creator studio: the current article is always the center of gravity. */
.article-workspace.workbench-page {
  min-height: calc(100dvh - 72px);
  padding: 24px 28px 34px;
  overflow: visible;
  background: #f7f5f1 !important;
}
.conversation-workbench-head { width: min(1440px, 100%); margin: 0 auto 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.conversation-workbench-head h1 { margin: 5px 0 3px; color: #202124; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.conversation-workbench-head p { margin: 0; color: #7b746e; font-size: 13px; }
.new-chat-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid #e6dfd7; border-radius: 9px; color: #49433d; background: #fffdfa; cursor: pointer; font: 600 12px inherit; }
.new-chat-button:hover { background: #fff7f0; border-color: #d9b99d; }
.new-chat-button svg { width: 15px; }
.article-workspace .workflow-rail { display: none; }
.conversation-workbench-layout { width: min(1440px, 100%); min-height: calc(100dvh - 168px); margin: 0 auto; display: grid; grid-template-columns: minmax(300px, .68fr) minmax(520px, 1.35fr) minmax(245px, .48fr); border: 1px solid #e5dfd7; border-radius: 14px; overflow: hidden; background: #fffdfa; box-shadow: 0 16px 36px rgba(87, 70, 52, .06); }
.conversation-panel { min-width: 0; display: flex; flex-direction: column; background: #fffdfa; border-right: 1px solid #ece6df; }
.conversation-panel-head { min-height: 68px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee8e1; }
.conversation-panel-head strong { color: #312c28; font-size: 14px; }
.work-status { color: #8b705d; font-size: 11px; }
.chat-thread { min-height: 200px; flex: 1 1 auto; padding: 18px 18px 8px; overflow: auto; }
.chat-message { margin: 0 0 18px; }
.chat-message > span { display: block; margin-bottom: 6px; color: #8b837b; font-size: 11px; font-weight: 650; }
.chat-message p { margin: 0; padding: 12px 13px; color: #443e38; background: #f5f1eb; border-radius: 4px 12px 12px 12px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.chat-message.from-user { display: grid; justify-items: end; }
.chat-message.from-user p { color: #fff; background: #c65a2d; border-radius: 12px 4px 12px 12px; }
.chat-message.from-user > span { display: none; }
.chat-choice-list { padding: 0 18px 12px; }
.chat-choice-head { margin: 0 0 9px; display: grid; gap: 3px; }
.chat-choice-head strong { color: #362e27; font-size: 13px; }.chat-choice-head span { color: #948981; font-size: 11px; }
.chat-choice { margin-bottom: 9px; padding: 11px; display: grid; grid-template-columns: 24px 1fr; gap: 8px; border: 1px solid #eee6de; border-radius: 10px; background: #fff; }
.chat-choice > span { color: #c65a2d; font-size: 11px; font-weight: 700; }
.chat-choice strong { display: block; color: #38312b; font-size: 12px; line-height: 1.45; }.chat-choice p { margin: 4px 0; color: #837972; font-size: 11px; line-height: 1.5; }.chat-choice small { color: #a18a78; font-size: 10px; }
.chat-choice footer { grid-column: 2; display: flex; gap: 8px; }.chat-choice button { padding: 5px 8px; border: 1px solid #ead6c8; border-radius: 7px; color: #a44722; background: #fff8f3; cursor: pointer; font: 600 10px inherit; }.chat-choice .regenerate-topic { color: #756a61; border-color: #e7e1da; background: #fff; }
.composer-shell { margin: auto 15px 15px; padding: 11px; border: 1px solid #ded6ce; border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(70, 54, 38, .05); }
.composer-shell textarea { width: 100%; min-height: 61px; box-sizing: border-box; resize: vertical; border: 0; outline: 0; color: #37312d; background: transparent; font: 13px/1.55 inherit; }.composer-shell textarea::placeholder { color: #aaa097; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }.composer-text-action { border: 0; color: #8b7c70; background: transparent; cursor: pointer; font: 11px inherit; }.composer-send { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #fff; background: #c65a2d; cursor: pointer; }.composer-send:hover { background: #ae481e; }.composer-send svg { width: 15px; }
.article-canvas { min-width: 0; display: flex; flex-direction: column; background: #fff; }
.article-canvas-head { min-height: 93px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #f0ebe5; }.article-canvas-head h2 { max-width: 680px; margin: 0; color: #22211f; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }.article-canvas-head p { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; color: #89817a; font-size: 11px; }.article-canvas-head p i { width: 6px; height: 6px; border-radius: 50%; background: #42a779; }.canvas-actions { display: flex; gap: 7px; }.icon-action { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #ece7e2; border-radius: 9px; color: #6b625b; background: #fff; cursor: pointer; }.icon-action:hover { color: #9c3f1d; border-color: #dfbda9; }.icon-action svg { width: 15px; }
.version-strip { min-height: 42px; padding: 0 28px; display: flex; align-items: center; gap: 8px; color: #958a80; border-bottom: 1px solid #f0ebe5; background: #fdfcfa; font-size: 11px; }.version-strip span:first-child { color: #5c5148; font-weight: 650; }
.current-work-card { margin: 18px 28px 0; padding: 12px 14px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; border: 1px solid #efe4d8; border-radius: 10px; color: #7d6755; background: #fff9f3; }.current-work-card span { color: #b5572e; font-size: 10px; font-weight: 700; }.current-work-card strong { color: #382f28; font-size: 12px; }.current-work-card p { margin: 0; color: #81756a; font-size: 11px; }
.article-canvas .editor-wrap { margin: 16px 28px 0; flex: 1 1 auto; display: flex; flex-direction: column; border: 0; border-radius: 0; overflow: visible; }.article-canvas .editor-head { padding: 0 0 10px; color: #8f877f; background: transparent; border-bottom: 1px solid #eee8e2; }.article-canvas .editor-head span:first-child { color: #5b514a; font-weight: 650; }.article-canvas #article-editor { min-height: 480px; padding: 23px 2px 8px; color: #302c29; background: transparent; font: 16px/2.02 Georgia, "Songti SC", "Noto Serif SC", serif; }.selection-actions { padding: 10px 0 18px; display: flex; gap: 8px; border-bottom: 1px solid #eee8e2; }.selection-actions button { border: 1px solid #e8ded4; border-radius: 8px; padding: 7px 9px; color: #725d4d; background: #fffaf6; cursor: pointer; font: 11px inherit; }.selection-actions button:hover { color: #a24420; border-color: #e1baa2; }
.article-canvas-foot { padding: 13px 28px 18px; display: flex; justify-content: space-between; color: #9b938c; font-size: 11px; }.article-canvas-foot span:last-child { color: #48a078; }
.outcome-panel { min-width: 0; padding: 21px 18px; border-left: 1px solid #ece6df; background: #fffdfa; }.outcome-panel > header { display: flex; align-items: center; justify-content: space-between; color: #352f2a; }.outcome-panel > header strong { font-size: 14px; }.outcome-panel > header svg { width: 15px; color: #998e85; }.outcome-panel section { padding: 23px 0; border-bottom: 1px solid #eee8e2; }.outcome-panel h3 { margin: 0 0 13px; color: #766c64; font-size: 11px; font-weight: 650; }.outline-list { margin: 0; padding: 0; list-style: none; }.outline-list li { display: grid; grid-template-columns: 26px 1fr; gap: 7px; margin: 0 0 10px; }.outline-list span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #eaded3; border-radius: 6px; color: #8a6c57; font-size: 10px; }.outline-list p { margin: 2px 0 0; color: #4e463f; font-size: 12px; line-height: 1.45; }.version-history { min-height: 195px; }.version-item { width: 100%; margin: 0 0 8px; padding: 9px; display: grid; grid-template-columns: 34px 1fr; gap: 7px; border: 1px solid transparent; border-radius: 9px; color: #665d56; background: transparent; text-align: left; cursor: pointer; }.version-item:hover, .version-item.current { border-color: #f0ddd0; background: #fff6ef; }.version-item strong { color: #a54b24; font-size: 11px; }.version-item span { overflow: hidden; color: #80766d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.outcome-actions { padding-top: 19px; display: grid; gap: 10px; }.generate-next, .outline-action { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; cursor: pointer; font: 600 12px inherit; text-decoration: none; }.generate-next { border: 0; color: #fff; background: #25282d; }.generate-next:hover { background: #15171a; }.outline-action { border: 1px solid #e9e2dc; color: #5c534c; background: #fff; }.outline-action:hover { background: #fff8f3; }.generate-next svg, .outline-action svg { width: 15px; }
.article-workspace .generated-images { margin: 16px 28px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 1100px) { .conversation-workbench-layout { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); }.outcome-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; border-top: 1px solid #ece6df; border-left: 0; }.outcome-panel section { padding: 0; border: 0; }.outcome-actions { padding: 0; align-content: start; min-width: 190px; }.version-history { min-height: 0; } }
@media (max-width: 760px) { .article-workspace.workbench-page { padding: 14px; }.conversation-workbench-head { align-items: flex-start; }.conversation-workbench-head h1 { font-size: 20px; }.conversation-workbench-head p { display: none; }.conversation-workbench-layout { min-height: auto; grid-template-columns: 1fr; }.conversation-panel { min-height: 470px; border-right: 0; border-bottom: 1px solid #ece6df; }.article-canvas-head { padding: 16px; align-items: flex-start; }.article-canvas-head h2 { font-size: 19px; }.version-strip, .article-canvas-foot { padding-left: 16px; padding-right: 16px; }.current-work-card, .article-canvas .editor-wrap, .article-workspace .generated-images { margin-left: 16px; margin-right: 16px; }.current-work-card { grid-template-columns: auto 1fr; }.current-work-card p { grid-column: 1 / -1; }.article-canvas #article-editor { min-height: 390px; font-size: 15px; }.outcome-panel { display: block; }.outcome-panel section { padding: 18px 0; border-bottom: 1px solid #eee8e2; }.outcome-actions { padding-top: 18px; }.new-chat-button { padding: 0 9px; }.new-chat-button svg { margin: 0; }.new-chat-button { font-size: 0; }.new-chat-button svg { width: 17px; } }

/* Workbench direction: light liquid glass, quiet hierarchy, high signal. */
.workbench-page {
  position: relative;
  min-height: calc(100dvh - 72px);
  padding: 28px clamp(16px, 3vw, 42px) 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 6%, rgba(255,255,255,.94), transparent 26%),
    linear-gradient(135deg, #f5f7fa 0%, #eef2f6 48%, #f8f9fb 100%) !important;
}
.workbench-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.42), transparent 38%, rgba(255,255,255,.3));
}
.workbench-intro,
.workbench-grid,
.workbench-result { position: relative; z-index: 1; }
.workbench-intro {
  width: min(1240px, 100%);
  margin: 0 auto 16px;
}
.workbench-intro .micro-label { color: #707987; }
.workbench-intro h1 {
  margin: 6px 0 8px;
  color: #161a21;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.workbench-intro p { max-width: 720px; margin: 0; color: #737d8b; font-size: 13px; line-height: 1.7; }
.mode-switch {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto 12px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid rgba(200,208,219,.9);
  border-radius: 12px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 8px 20px rgba(74,87,104,.05), inset 0 1px rgba(255,255,255,.85);
  backdrop-filter: blur(18px) saturate(135%);
}
.mode-option {
  min-height: 44px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  color: #76808d;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.mode-option strong { color: inherit; font-size: 12px; font-weight: 650; }
.mode-option small { color: inherit; font-size: 11px; }
.mode-option.active { color: #20252d; background: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(56,68,84,.1); }
.workbench-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, .86fr) minmax(0, 1.14fr);
  gap: 14px;
  align-items: stretch;
}
.creator-card,
.preview-card {
  min-width: 0;
  border: 1px solid rgba(196,205,216,.95);
  border-radius: 15px;
  background: rgba(255,255,255,.6);
  box-shadow: 0 20px 45px rgba(74,87,104,.08), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(125%);
}
.creator-card {
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
}
.card-topline,
.preview-card-head,
.workflow-divider { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-label { color: #303844; font-size: 13px; font-weight: 700; }
.creator-card > label { margin: 25px 0 8px; color: #252b34; font-size: 14px; font-weight: 650; }
.creator-card textarea {
  min-height: 140px;
  resize: vertical;
  padding: 15px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  color: #1d232c;
  background: rgba(255,255,255,.72);
  line-height: 1.65;
}
.creator-card textarea::placeholder { color: #9aa3ae; }
.creator-options { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creator-options label { display: grid; gap: 7px; color: #737d8b; font-size: 11px; }
.creator-card select { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid #d7dde5; border-radius: 9px; color: #252b34; background: rgba(255,255,255,.78); }
.creator-card .primary-action { width: 100%; min-height: 46px; margin-top: auto; border-radius: 9px; color: #fff; background: #20242a; box-shadow: 0 8px 16px rgba(32,36,42,.15); }
.creator-card .primary-action:hover { background: #0f1114; }
.helper-copy { margin: 10px 0 0; color: #8a939f; font-size: 11px; line-height: 1.5; text-align: center; }
.preview-card { padding: 20px; display: flex; flex-direction: column; }
.preview-card-head { padding-bottom: 16px; border-bottom: 1px solid rgba(214,220,228,.8); }
.preview-card-head > div { display: flex; align-items: baseline; gap: 10px; }
.preview-subtitle { color: #8a939f; font-size: 11px; }
.status-pill { white-space: nowrap; }
.status-pill svg { width: 13px; height: 13px; vertical-align: -2px; }
.workbench-preview {
  margin-top: 14px;
  padding: clamp(20px, 3vw, 34px);
  min-height: 390px;
  border: 1px solid #e0e4e9;
  border-radius: 11px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 24px rgba(60,71,85,.05);
}
.workbench-preview h2 { margin: 0; color: #20242a; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; letter-spacing: -.025em; }
.preview-rule { height: 1px; margin: 17px 0 18px; background: #d8dde3; }
.workbench-preview > p:not(.preview-rule) { margin: 0 0 22px; color: #4f5864; font-size: 13px; line-height: 1.8; }
.preview-images { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 24px 0 20px; }
.preview-images img { width: 100%; aspect-ratio: 1 / 1.16; display: block; object-fit: cover; border-radius: 5px; background: #edf0f3; }
.workflow-divider { margin-top: 18px; padding: 14px 0 10px; border-top: 1px solid rgba(214,220,228,.8); color: #697381; font-size: 11px; }
.workflow-divider span:first-child { color: #303844; font-size: 12px; font-weight: 650; }
.preview-card .workflow-steps { max-height: 148px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.preview-card .workflow-note { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(214,220,228,.7); }
.workbench-result { width: min(1240px, 100%); margin: 14px auto 0; }

@media (max-width: 900px) {
  .workbench-grid { grid-template-columns: 1fr; }
  .creator-card { min-height: 0; }
  .creator-card .primary-action { margin-top: 22px; }
  .preview-card { order: 2; }
}
@media (max-width: 600px) {
  .workbench-page { padding: 22px 12px 54px; }
  .workbench-intro h1 { font-size: 25px; }
  .workbench-intro p { font-size: 12px; }
  .mode-switch { grid-template-columns: 1fr; }
  .mode-option { min-height: 38px; }
  .mode-option small { display: none; }
  .creator-card, .preview-card { padding: 17px; border-radius: 12px; }
  .creator-options { grid-template-columns: 1fr; }
  .workbench-preview { padding: 18px; min-height: 0; }
  .preview-images { gap: 5px; }
  .preview-card .workflow-steps { grid-template-columns: 1fr; }
}

/* Final reference alignment for the creator landing surface. */
.workbench-page > .workbench-intro {
  width: min(1240px, 100%);
  padding: 4px 4px 10px;
  text-align: left;
}
.workbench-page > .workbench-intro h1 { font-size: 23px; letter-spacing: -.025em; }
.workbench-page > .workbench-intro p { color: #89929e; font-size: 12px; }
.workbench-page > .mode-switch { margin-bottom: 12px; }
.workbench-page .creator-card,
.workbench-page .preview-card { min-height: 650px; }
.workbench-page .preview-card { padding: 18px 20px 16px; }
.workbench-page .workbench-preview { min-height: 330px; }
.workbench-page .workflow-divider { margin-top: auto; }
@media (max-width: 900px) {
  .workbench-page .creator-card,
  .workbench-page .preview-card { min-height: 0; }
  .workbench-page .workflow-divider { margin-top: 18px; }
}

/* Site-wide refinement pass: one quiet material system across every route. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --surface-glass: rgba(255,255,255,.64);
  --surface-glass-strong: rgba(255,255,255,.82);
  --border-glass: rgba(190,201,214,.82);
  --shadow-glass: 0 18px 48px rgba(72,84,101,.075), inset 0 1px rgba(255,255,255,.92);
}
.app-sidebar,
.command-bar,
.settings-menu,
.api-settings-card,
.account-modal .auth-card,
.account-modal .wallet-card {
  backdrop-filter: blur(18px) saturate(125%);
}
.report-nav.app-sidebar { background: rgba(251,252,253,.78) !important; }
.command-bar { background: rgba(247,248,250,.72); }
.skill-page,
.entry-panel,
.report-page,
.morning-generator-page { position: relative; }
.skill-page::before,
.entry-panel::before,
.report-page::before,
.morning-generator-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 88% 4%, rgba(255,255,255,.78), transparent 28%);
}
.skill-page > *,
.entry-panel > *,
.report-page > *,
.morning-generator-page > * { position: relative; z-index: 1; }
.skill-form,
.skill-output,
.entry-form,
.report-hero,
.report-section,
.generator-frame,
.workbench-result {
  border-color: var(--border-glass) !important;
  background: var(--surface-glass) !important;
  box-shadow: var(--shadow-glass) !important;
  backdrop-filter: blur(16px) saturate(120%);
}
.skill-form,
.skill-output { border-radius: 14px; }
.skill-output { background: rgba(255,255,255,.52) !important; }
.skill-page-head { margin-bottom: 24px; }
.skill-page-head h1 { letter-spacing: -.04em; }
.skill-page-head p { max-width: 760px; }
.skill-badge { border: 1px solid rgba(190,201,214,.68); box-shadow: 0 8px 20px rgba(67,80,98,.08); }
.form-section-title { border-color: #e0e5eb; }
.skill-form label,
.creator-card > label,
.api-config-group label,
.auth-form label { letter-spacing: .005em; }
.skill-form input,
.skill-form select,
.skill-form textarea,
.entry-form input,
.creator-card input,
.creator-card select,
.creator-card textarea,
.api-config-group input,
.auth-form input,
.admin-recharge input,
.admin-recharge select {
  border-color: #d3dbe4 !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: inset 0 1px 2px rgba(39,51,66,.025);
}
.skill-form input:focus,
.skill-form select:focus,
.skill-form textarea:focus,
.entry-form input:focus,
.creator-card input:focus,
.creator-card select:focus,
.creator-card textarea:focus,
.api-config-group input:focus,
.auth-form input:focus {
  border-color: #8ab7f5 !important;
  box-shadow: 0 0 0 3px rgba(22,119,255,.1), inset 0 1px 2px rgba(39,51,66,.025) !important;
}
.primary-action,
.entry-form button,
.skill-primary { min-height: 44px; font-weight: 650; letter-spacing: .005em; }
.secondary-action,
.text-action,
.test-provider,
.download-button { transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.secondary-action:hover,
.text-action:hover,
.test-provider:hover { transform: translateY(-1px); }
.output-empty { min-height: 420px; }
.output-empty h2 { color: #202630; letter-spacing: -.02em; }
.output-empty p { max-width: 360px; margin-right: auto; margin-left: auto; line-height: 1.7; }
.report-hero { border-radius: 15px; }
.metric-card,
.judgment-card,
.positioning,
.signal-section,
.benchmark-section,
.route-panel,
.takeaways-section {
  border-color: rgba(205,213,222,.82) !important;
  background: rgba(255,255,255,.58) !important;
  box-shadow: none !important;
}
.metric-card:hover,
.judgment-card:hover { box-shadow: 0 10px 24px rgba(72,84,101,.06) !important; }
.settings-menu { background: rgba(255,255,255,.88); }
.api-settings-modal,
.account-modal { background: rgba(31,39,50,.18); }
.api-settings-card { background: rgba(255,255,255,.9); box-shadow: var(--shadow-glass); }
.api-config-group { background: rgba(248,250,252,.72); border-color: rgba(205,213,222,.86); }
.generator-frame { background: rgba(255,255,255,.58) !important; }

@media (max-width: 760px) {
  .skill-page-head { margin-bottom: 18px; }
  .skill-page-head h1 { font-size: 26px; }
  .skill-form, .skill-output { border-radius: 12px; }
  .output-empty { min-height: 320px; }
}


/* --- admin.css --- */
.admin-users-modal { z-index: 70; padding: 30px; background: rgba(20, 24, 28, .34); backdrop-filter: blur(16px); }
.admin-users-card { width: min(1180px, 100%); max-height: calc(100vh - 60px); overflow: auto; padding: 28px; border: 1px solid #e2e4e8; border-radius: 16px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.2); }
.admin-users-head { display: flex; justify-content: space-between; gap: 20px; }
.admin-users-head h2 { margin: 6px 0; font-size: 28px; }
.admin-users-head p { margin: 0; color: #777; font-size: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 24px 0; }
.admin-stats article { padding: 18px; border: 1px solid #e8e9ec; border-radius: 12px; background: #f8f8fa; }
.admin-stats span,.admin-stats strong { display: block; }.admin-stats span { color: #777; font-size: 11px; }.admin-stats strong { margin-top: 8px; font-size: 28px; }
.admin-users-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-users-toolbar label { min-width: 280px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #dddfe3; border-radius: 9px; }
.admin-users-toolbar input { width: 100%; height: 40px; border: 0; outline: 0; }.admin-users-toolbar svg { width: 15px; }
.admin-users-toolbar button,.admin-users-table button { border: 1px solid #dddfe3; border-radius: 8px; background: #fff; cursor: pointer; }
.admin-users-toolbar button { padding: 0 14px; display: flex; align-items: center; gap: 6px; }
.admin-users-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); gap: 16px; }
.admin-users-table-wrap { overflow: auto; border: 1px solid #e5e6e9; border-radius: 12px; }
.admin-users-table { width: 100%; border-collapse: collapse; font-size: 11px; }.admin-users-table th { color: #777; text-align: left; font-weight: 500; background: #f7f7f9; }
.admin-users-table th,.admin-users-table td { padding: 12px; border-bottom: 1px solid #ececef; white-space: nowrap; }.admin-users-table tr:last-child td { border-bottom: 0; }.admin-users-table tr.selected { background: #f0f7ff; }
.admin-users-table td:first-child strong,.admin-users-table td:first-child small { display: block; }.admin-users-table td:first-child small { margin-top: 3px; color: #888; }.admin-users-table button { padding: 6px 9px; color: #0066cc; }
.admin-user-detail { min-height: 420px; padding: 20px; border: 1px solid #e5e6e9; border-radius: 12px; background: #fafafa; }
.admin-detail-empty { min-height: 360px; display: grid; place-content: center; justify-items: center; gap: 8px; color: #888; }.admin-detail-empty svg { width: 32px; }.admin-detail-empty span { font-size: 11px; }
.admin-detail-user { display: flex; align-items: center; gap: 12px; }.admin-detail-user > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #111; }.admin-detail-user h3,.admin-detail-user p { margin: 0; }.admin-detail-user p { margin-top: 4px; color: #777; font-size: 11px; }
.admin-user-detail dl { margin: 20px 0; }.admin-user-detail dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e5e5e8; font-size: 11px; }.admin-user-detail dt { color: #777; }.admin-user-detail dd { margin: 0; font-weight: 600; }
.admin-balance-detail { display: flex; gap: 6px; flex-wrap: wrap; }.admin-balance-detail span { padding: 5px 8px; border-radius: 6px; background: #eceef1; font-size: 10px; }
.admin-switch-user { width: 100%; height: 42px; margin-top: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; border: 0; border-radius: 9px; color: #fff; background: #111; cursor: pointer; }.admin-switch-user svg { width: 15px; }
.admin-owner-note { padding: 10px; color: #777; background: #eee; font-size: 11px; }
.admin-recent { margin-top: 20px; }.admin-recent h4 { margin: 0 0 10px; font-size: 12px; }.admin-recent ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.admin-recent li { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 9px; border-radius: 8px; background: #fff; font-size: 10px; }.admin-recent li span { color: #888; }.admin-recent li small { grid-column: 1/-1; color: #777; }
.impersonation-banner { position: fixed; z-index: 100; top: 12px; left: 50%; transform: translateX(-50%); min-width: min(620px,calc(100vw - 24px)); padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #f2c46d; border-radius: 10px; color: #5e3b00; background: #fff4d6; box-shadow: 0 10px 35px rgba(0,0,0,.14); font-size: 12px; }.impersonation-banner span { display: flex; align-items: center; gap: 7px; }.impersonation-banner svg { width: 16px; }.impersonation-banner button { padding: 7px 10px; border: 0; border-radius: 7px; color: #fff; background: #6c4300; cursor: pointer; }
@media(max-width:800px){.admin-users-modal{padding:10px}.admin-users-card{max-height:calc(100vh - 20px);padding:18px}.admin-stats{grid-template-columns:repeat(2,1fr)}.admin-users-layout{grid-template-columns:1fr}.admin-users-table{min-width:720px}.admin-users-toolbar label{min-width:0;flex:1}.impersonation-banner{top:6px;align-items:flex-start;flex-direction:column}.impersonation-banner button{width:100%}}


/* --- glass-theme.css --- */
/* =========================================================
   宇宙第一工作台 — V3 极致克制暗色（Stripe/Linear/Apple 复合气质）
   加载顺序：style.css → taste-chatgpt.css → admin.css → glass-theme.css
   覆盖视觉层：纯黑底 + IKB 克莱因蓝唯一强调 + Inter Display + 衬线 italic 点缀
   保留所有原 markup 与 JS 钩子，仅重写视觉。
   ========================================================= */

:root {
  /* === 暗色 token === */
  --bg: #000000;
  --bg-2: #0A0A0B;
  --bg-3: #131316;
  --bg-4: #1C1C20;

  /* === 文本 === */
  --text: #FFFFFF;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --text-4: #52525B;
  --text-5: #3F3F46;

  /* === 分隔线 === */
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .10);
  --line-3: rgba(255, 255, 255, .16);
  --line-4: rgba(255, 255, 255, .24);

  /* === IKB 克莱因蓝 === */
  --ikb: #002FA7;
  --ikb-bright: #3D5BFF;
  --ikb-glow: rgba(61, 91, 255, .32);
  --ikb-soft: rgba(61, 91, 255, .08);

  /* === 语义 === */
  --good: #3FB950;
  --bad: #FF5C5C;
  --warn: #FFB020;

  /* === 字体栈 === */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

  /* === 圆角 === */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

/* === Base 重置 === */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "tnum";
  letter-spacing: -.005em;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
::selection { color: var(--bg); background: var(--ikb-bright); }

/* === 滚动条暗化 === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-4); }

/* === App shell 全宽暗底 === */
body { overflow-x: hidden; }
.app-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100vh !important;
}

/* === 隐藏暗藏的旧 sidebar/command-bar 命令栏（V3 顶 nav 取代） === */
.report-nav.app-sidebar,
.command-bar {
  display: none !important;
}

/* =========================================================
   V3 顶 nav — 64px 高，1px 下划线，brand 左 / tabs 中 / meta 右
   ========================================================= */
.v3-topbar {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}
.v3-topbar .brand {
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -.01em;
}
.v3-topbar .brand .mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--ikb-bright);
  position: relative; overflow: hidden;
}
.v3-topbar .brand .mark::after {
  content: ""; position: absolute; inset: 4px;
  border: 1.5px solid #fff; border-radius: 50%;
  border-top-color: transparent; border-right-color: transparent;
  transform: rotate(-45deg);
}
.v3-topbar .brand .name {
  font-size: 14px; font-weight: 600; color: var(--text);
  letter-spacing: -.005em;
}
.v3-topbar .brand .ver {
  margin-left: 4px; font-family: var(--mono);
  font-size: 10.5px; color: var(--text-4); letter-spacing: .04em;
}
.v3-topbar .tabs {
  display: flex; align-items: center; gap: 0;
  height: 100%;
}
.v3-topbar .tabs a {
  height: calc(100% + 1px);
  display: flex; align-items: center; gap: 6px;
  padding: 0 13px;
  font-size: 12.5px; color: var(--text-3); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  letter-spacing: -.003em;
  position: relative;
  transition: color .2s cubic-bezier(.22,.61,.36,1), background .2s ease, border-color .2s ease;
}
.v3-topbar .tabs a .tab-icon {
  width: 14px; height: 14px;
  flex-shrink: 0;
  opacity: .75;
  transition: opacity .2s ease, stroke-width .2s ease;
}
.v3-topbar .tabs a:hover { color: var(--text); background: rgba(255,255,255,.02); }
.v3-topbar .tabs a:hover .tab-icon { opacity: 1; }
.v3-topbar .tabs a.active {
  color: var(--text); font-weight: 600;
  border-bottom-color: var(--ikb-bright);
  background: linear-gradient(180deg, transparent 0%, rgba(61,91,255,.07) 100%);
}
.v3-topbar .tabs a.active .tab-icon { opacity: 1; }
.v3-topbar .right {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-3); font-weight: 500;
}
.v3-topbar .right .stat { display: inline-flex; align-items: center; gap: 6px; }
.v3-topbar .right .dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good); display: inline-block;
}
.v3-topbar .right .ver { font-family: var(--mono); font-size: 11px; color: var(--text-4); letter-spacing: .04em; }
.v3-topbar .right .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-4); border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--text-2); font-weight: 600;
  cursor: pointer; transition: border-color .15s ease;
}
.v3-topbar .right .avatar:hover { border-color: var(--line-4); }
.v3-topbar .right .menu-wrap { position: relative; }
.v3-topbar .right .settings-popover {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  display: none;
  font-size: 13px;
}
.v3-topbar .right .menu-wrap.open .settings-popover { display: block; }
.v3-topbar .right .settings-popover button {
  width: 100%; padding: 8px 12px;
  background: transparent; color: var(--text-2); border: 0; border-radius: 6px;
  text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: background .12s ease, color .12s ease;
}
.v3-topbar .right .settings-popover button:hover { background: var(--bg-3); color: var(--text); }
.v3-topbar .right .settings-popover button svg { width: 14px; height: 14px; color: var(--text-3); }
.v3-topbar .right .settings-popover button i.config-on {
  width: 6px; height: 6px; border-radius: 50%; background: var(--good);
  margin-left: auto; box-shadow: 0 0 6px rgba(63, 185, 80, .5);
}

/* =========================================================
   V3 全局 layout — view 是顶级 section 占满视口
   ========================================================= */
.app-shell > section,
.app-shell > main {
  width: 100% !important;
  margin: 0 !important;
  background: var(--bg) !important;
  color: var(--text) !important;
}
.app-shell > footer {
  width: 100% !important; margin: 0 !important;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-3); font-weight: 500; letter-spacing: .04em;
  background: var(--bg) !important;
}
.app-shell > footer .l, .app-shell > footer .r { display: flex; gap: 24px; align-items: center; font-family: var(--mono); }
.app-shell > footer .r { gap: 16px; }
.app-shell > footer .r .dot-sep { color: var(--text-5); }

/* Page meta — 顶部页面级 meta 行 */
.v3-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 40px 0;
  font-size: 11px; color: var(--text-3); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  font-family: var(--sans);
}
.v3-meta .l { display: flex; align-items: center; gap: 10px; }
.v3-meta .l .line { width: 18px; height: 1px; background: var(--text-3); }
.v3-meta .r { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.v3-meta .r i {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--good); margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 6px rgba(63, 185, 80, .4);
}

/* =========================================================
   view 路由正确性 — 隐藏非激活 section（V3 顶 nav 用 app.js setActiveView 切）
   ========================================================= */
#entry:not([hidden]), #workbench:not([hidden]), #xiaohongshu:not([hidden]),
#tie-tu:not([hidden]), #hit-detector:not([hidden]), #morning-generator:not([hidden]),
#report:not([hidden]) {
  display: block !important;
}
.app-shell > .v3-topbar { display: flex !important; }
.app-shell > .v3-foot { display: flex !important; }

/* =========================================================
   #entry — 首页 / 公众号诊断
   ========================================================= */

/* Hero */
.v3-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 80px; align-items: start;
  padding: 64px 40px 0; min-height: 540px;
}
.v3-hero-l .kicker {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ikb-bright); font-weight: 600;
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.v3-hero-l .kicker .line { width: 24px; height: 1px; background: var(--ikb-bright); }
.v3-hero-l h1 {
  font-size: 72px; line-height: 1.02;
  letter-spacing: -.04em; font-weight: 600; color: var(--text);
  margin: 0;
}
.v3-hero-l h1 .serif {
  font-family: var(--serif); font-weight: 500;
  font-style: italic; color: var(--text-2);
}
.v3-hero-l h1 .blue { color: var(--ikb-bright); }
.v3-hero-l .lede {
  font-size: 17px; line-height: 1.55; color: var(--text-2);
  max-width: 46ch; margin: 24px 0 0; font-weight: 400;
}
.v3-hero-l .cta-row {
  display: flex; gap: 8px; margin-top: 32px; align-items: center;
}
.v3-hero-l .cta-row .primary {
  height: 48px; padding: 0 22px;
  background: var(--text); color: #0A0A0B;
  border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: -.01em;
  transition: background .15s ease;
}
.v3-hero-l .cta-row .primary:hover { background: #E5E5E7; }
.v3-hero-l .cta-row .primary .arr { font-family: var(--mono); font-size: 12px; }
.v3-hero-l .cta-row .secondary {
  height: 48px; padding: 0 18px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-3); border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.v3-hero-l .cta-row .secondary:hover { border-color: var(--line-4); color: var(--text); }
.v3-hero-l .proof {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--text-3);
}
.v3-hero-l .proof b { color: var(--text); font-weight: 600; }
.v3-hero-l .proof .sep { width: 1px; height: 12px; background: var(--line-2); }

.v3-hero-r {
  position: relative; align-self: start; padding-top: 8px;
}
.v3-hero-r .frame {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.v3-hero-r .frame .head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-3); font-weight: 500; letter-spacing: .04em;
}
.v3-hero-r .frame .head .lbl { font-family: var(--mono); }
.v3-hero-r .frame .head .live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2);
}
.v3-hero-r .frame .head .live i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ikb-bright);
  box-shadow: 0 0 8px var(--ikb-glow);
}
.v3-hero-r .frame .account {
  font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text);
}
.v3-hero-r .frame .account small {
  color: var(--text-3); font-size: 13px; font-weight: 400; margin-left: 6px;
}
.v3-hero-r .frame .score-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.v3-hero-r .frame .score-row .v {
  font-size: 64px; line-height: .9; font-weight: 500;
  letter-spacing: -.04em; color: var(--text);
}
.v3-hero-r .frame .score-row .v .den {
  font-size: 18px; color: var(--text-3); font-weight: 300; margin-left: 2px;
}
.v3-hero-r .frame .score-row .meta {
  text-align: right; font-size: 11px; color: var(--text-3);
  line-height: 1.6; letter-spacing: .04em;
}
.v3-hero-r .frame .score-row .meta .big {
  color: var(--text); font-size: 13px; font-weight: 500;
  display: block; margin-bottom: 2px;
}
.v3-hero-r .frame .dimlist { display: flex; flex-direction: column; gap: 8px; }
.v3-hero-r .frame .dim {
  display: grid; grid-template-columns: 50px 1fr 30px 28px;
  align-items: center; gap: 10px; font-size: 12px;
}
.v3-hero-r .frame .dim .k { color: var(--text-3); font-family: var(--mono); font-size: 10px; font-weight: 500; }
.v3-hero-r .frame .dim .n { color: var(--text); font-weight: 500; }
.v3-hero-r .frame .dim .v { color: var(--text); text-align: right; font-family: var(--mono); font-weight: 500; }
.v3-hero-r .frame .dim .bar {
  height: 1px; background: var(--line-2); position: relative;
}
.v3-hero-r .frame .dim .bar i {
  position: absolute; left: 0; top: -1px; height: 3px;
  background: var(--ikb-bright); box-shadow: 0 0 6px var(--ikb-glow);
  border-radius: 2px;
}

/* Modules 行式 list */
.v3-modules {
  padding: 64px 40px 60px; border-top: 1px solid var(--line); margin-top: 64px;
}
.v3-modules .head {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px;
}
.v3-modules .head .l { display: flex; flex-direction: column; gap: 6px; }
.v3-modules .head .l .lbl {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.v3-modules .head .l h2 {
  font-size: 28px; font-weight: 600; letter-spacing: -.025em;
  color: var(--text); margin: 0;
}
.v3-modules .head .l h2 .serif {
  font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--text-2);
}
.v3-modules .head .r {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  letter-spacing: .04em;
}
.modlist { border-top: 1px solid var(--line); }
.mod {
  display: grid; grid-template-columns: 48px 1.4fr 1.6fr 110px 24px;
  align-items: center; gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease, padding .15s ease;
}
.mod:hover {
  background: var(--bg-2);
  padding-left: 16px; padding-right: 16px;
}
.mod:hover .name { color: var(--text); }
.mod .num {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  font-weight: 500; letter-spacing: .04em;
}
.mod .name {
  font-size: 18px; font-weight: 500; color: var(--text-2);
  letter-spacing: -.01em; transition: color .15s ease;
}
.mod .name .serif {
  font-family: var(--serif); font-weight: 500;
}
.mod .name .em {
  color: var(--text);
}
.mod .desc {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}
.mod .stat {
  font-family: var(--mono); font-size: 10px;
  color: var(--text-3); text-align: right; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600;
}
.mod .stat .dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--good); margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 6px rgba(63, 185, 80, .4);
}
.mod .arrow {
  color: var(--text-3); font-size: 16px; text-align: right;
  font-family: var(--mono);
  transition: transform .15s ease, color .15s ease;
}
.mod:hover .arrow { color: var(--ikb-bright); transform: translateX(3px); }

/* Embedded entry form (用于触发诊断) */
.v3-hero-l .entry-form {
  display: flex; gap: 8px; margin-top: 28px; max-width: 540px;
}
.v3-hero-l .entry-form label {
  display: none;
}
.v3-hero-l .entry-form > div { display: contents; }
.v3-hero-l .entry-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.v3-hero-l .entry-form input:focus { border-color: var(--ikb-bright); background: var(--bg-3); }
.v3-hero-l .entry-form input::placeholder { color: var(--text-4); }
.v3-hero-l .entry-form button#submit-button {
  height: 52px; padding: 0 22px;
  background: var(--ikb-bright); color: #fff; border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 20px var(--ikb-glow);
  transition: background .15s ease, transform .12s ease;
}
.v3-hero-l .entry-form button#submit-button:hover { background: var(--ikb); transform: translateY(-1px); }
.v3-hero-l .entry-form button#submit-button:disabled { opacity: .5; cursor: progress; }

.v3-hero-l .sample-row {
  display: flex; gap: 8px; align-items: center; margin-top: 16px;
  font-size: 12px; color: var(--text-3);
}
.v3-hero-l .sample-row .lbl { margin-right: 4px; }
.v3-hero-l .sample-row .chip {
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text-2); font-size: 12px; cursor: pointer;
  transition: .15s;
}
.v3-hero-l .sample-row .chip:hover {
  background: var(--bg-3); border-color: var(--line-3); color: var(--text);
}

/* 第二屏：模块墙下方最近记录 */
.v3-modules .recent-line {
  display: flex; align-items: center; gap: 24px;
  margin-top: 28px; padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-3);
  flex-wrap: wrap;
}
.v3-modules .recent-line .l {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--text-3); text-transform: uppercase;
}
.v3-modules .recent-line .recent-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px;
  cursor: pointer; transition: .15s;
}
.v3-modules .recent-line .recent-item:hover { background: var(--bg-3); color: var(--text); border-color: var(--line-3); }
.v3-modules .recent-line .recent-item .recent-meta { font-family: var(--mono); font-size: 10px; color: var(--text-4); letter-spacing: .04em; }

/* =========================================================
   #report — 诊断报告（renderReport JS 控制 innerHTML）
   ========================================================= */
.v3-diag {
  padding: 40px 40px 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  column-gap: 64px;
  align-items: start;
}
.v3-diag-l .kicker {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ikb-bright); font-weight: 600;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.v3-diag-l .kicker .line { width: 20px; height: 1px; background: var(--ikb-bright); }
.v3-diag-l h1 {
  font-size: 56px; line-height: 1.05;
  letter-spacing: -.035em; font-weight: 600;
  margin: 0; color: var(--text);
}
.v3-diag-l h1 .serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--text-2); }
.v3-diag-l h1 .blue { color: var(--ikb-bright); }
.v3-diag-l .meta {
  margin-top: 16px; font-family: var(--mono); font-size: 12px;
  color: var(--text-3); letter-spacing: .04em;
}
.v3-diag-l .meta b { color: var(--text); font-weight: 500; }

.v3-diag-list { margin-top: 40px; border-top: 1px solid var(--line); }
.ditem {
  display: grid; grid-template-columns: 60px 1fr 60px 20px;
  align-items: center; gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .15s ease, background .15s ease;
}
.ditem:hover { background: var(--bg-2); padding-left: 16px; padding-right: 16px; }
.ditem .k {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); font-weight: 500; letter-spacing: .04em;
}
.ditem .n {
  font-size: 15px; color: var(--text); font-weight: 500;
  letter-spacing: -.01em;
}
.ditem .v {
  font-family: var(--mono); font-size: 15px;
  color: var(--text); text-align: right; font-weight: 500;
  letter-spacing: -.01em;
}
.ditem .arrow { color: var(--text-3); font-size: 14px; text-align: right; font-family: var(--mono); }
.ditem .sub {
  margin-top: 6px; grid-column: 2;
  font-size: 12px; color: var(--text-3); line-height: 1.5;
}
.ditem .bar {
  height: 1px; background: var(--line-2);
  position: relative; margin-top: 8px;
}
.ditem .bar i {
  position: absolute; left: 0; top: -1px; height: 3px;
  background: var(--ikb-bright); box-shadow: 0 0 8px var(--ikb-glow);
  border-radius: 2px;
}

.v3-diag-r {
  border-left: 1px solid var(--line); padding-left: 48px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 88px;
}
.v3-diag-r .label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.v3-diag-r .label .line { width: 16px; height: 1px; background: var(--text-3); }
.v3-diag-r .score {
  font-size: 144px; line-height: .92; font-weight: 500;
  letter-spacing: -.05em; color: var(--text); margin: 0;
}
.v3-diag-r .score .den {
  font-size: 28px; color: var(--text-3); font-weight: 300;
  margin-left: 6px; letter-spacing: -.02em;
}
.v3-diag-r .verdict {
  font-size: 14px; color: var(--text); font-weight: 500;
  letter-spacing: -.01em;
}
.v3-diag-r .verdict .serif {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--text-2);
}
.v3-diag-r .breakdown { display: flex; flex-direction: column; gap: 14px; }
.brow {
  display: grid; grid-template-columns: 36px 1fr 36px;
  align-items: center; gap: 14px; font-size: 13px;
}
.brow .v { font-family: var(--mono); font-weight: 500; color: var(--text); text-align: right; }
.brow .n { color: var(--text-2); font-size: 12px; }
.brow .bar { height: 1px; background: var(--line-2); position: relative; }
.brow .bar i {
  position: absolute; left: 0; top: -1px; height: 3px;
  background: var(--ikb-bright); box-shadow: 0 0 6px var(--ikb-glow);
  border-radius: 2px;
}
.v3-diag-r .actions { display: flex; gap: 8px; }
.v3-diag-r .actions button {
  flex: 1; height: 40px; padding: 0 12px;
  border-radius: 8px; font-size: 12px; font-weight: 500; cursor: pointer;
  transition: .15s;
}
.v3-diag-r .actions .ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-3);
}
.v3-diag-r .actions .ghost:hover { border-color: var(--line-4); }
.v3-diag-r .actions .solid {
  background: var(--text); color: #0A0A0B; border: 0;
}
.v3-diag-r .actions .solid:hover { background: #E5E5E7; }
.v3-diag-r .proof {
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--text-3); line-height: 1.7; letter-spacing: .02em;
}
.v3-diag-r .proof b { color: var(--text-2); font-weight: 500; }

/* 老 #report 内层的 6 个 section（signals/lenses/evidence/benchmark/takeaways）保持 V3 极简行式 */
.v3-section {
  padding: 40px 40px 32px;
  border-top: 1px solid var(--line);
}
.v3-section .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.v3-section .head h2 {
  font-size: 32px; font-weight: 600; letter-spacing: -.03em;
  color: var(--text); margin: 0;
}
.v3-section .head h2 .serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--text-2); }
.v3-section .head .sub {
  font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em;
}
.v3-section .head .sub i {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--good); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 4px rgba(63, 185, 80, .4);
}

/* 信号网格 → 行式 list */
.signal-list { border-top: 1px solid var(--line); }
.signal-list .sitem {
  display: grid; grid-template-columns: 200px 1fr 1fr 1fr 1fr;
  align-items: center; gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.signal-list .sitem .k { font-size: 12px; color: var(--text-3); font-family: var(--mono); letter-spacing: .04em; }
.signal-list .sitem .v { font-size: 22px; color: var(--text); font-weight: 500; letter-spacing: -.02em; font-family: var(--sans); }
.signal-list .sitem .v small { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }

/* 4 lens 行 */
.lens-list { border-top: 1px solid var(--line); }
.lens-list .lens {
  display: grid; grid-template-columns: 60px 1.2fr 100px 1fr 16px;
  align-items: center; gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.lens-list .lens .i { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.lens-list .lens .n { font-size: 16px; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.lens-list .lens .s { font-family: var(--mono); font-size: 18px; color: var(--text); font-weight: 500; text-align: right; letter-spacing: -.02em; }
.lens-list .lens .s small { font-size: 11px; color: var(--text-3); }
.lens-list .lens .bar {
  height: 1px; background: var(--line-2); position: relative;
}
.lens-list .lens .bar i {
  position: absolute; left: 0; top: -1px; height: 3px;
  background: var(--ikb-bright); box-shadow: 0 0 6px var(--ikb-glow);
  border-radius: 2px;
}
.lens-list .lens .badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); font-weight: 600;
}
.lens-list .lens .desc { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-top: 6px; grid-column: 2; }

/* evidence table 暗化 */
.v3-table {
  width: 100%; border-collapse: collapse;
  background: transparent;
  margin-top: 8px;
}
.v3-table th, .v3-table td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text);
  font-family: var(--sans);
}
.v3-table th {
  color: var(--text-3); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  border-bottom: 1px solid var(--line-2);
}
.v3-table td a { color: var(--ikb-bright); }
.v3-table td a:hover { text-decoration: underline; }
.v3-table td.muted { color: var(--text-3); }

/* route list 行式 */
.route-list { border-top: 1px solid var(--line); }
.route-list .ritem {
  display: grid; grid-template-columns: 80px 1fr 200px;
  align-items: start; gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.route-list .ritem .i {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: .04em;
}
.route-list .ritem .c .kicker {
  font-size: 11px; color: var(--text-3); letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 4px;
}
.route-list .ritem .c h3 {
  margin: 4px 0 8px; font-size: 17px; font-weight: 500; color: var(--text);
  letter-spacing: -.01em;
}
.route-list .ritem .c p { margin: 4px 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.route-list .ritem .c p b { color: var(--text); font-weight: 500; }
.route-list .ritem .t {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  text-align: right; line-height: 1.5;
}
.route-list .ritem .t strong { display: block; color: var(--text); font-weight: 500; font-size: 11px; letter-spacing: .04em; margin-bottom: 4px; }

/* benchmark list */
.bm-list { border-top: 1px solid var(--line); }
.bm-list .bitem {
  display: grid; grid-template-columns: 60px 1fr 100px 16px;
  align-items: center; gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .15s ease, background .15s ease;
}
.bm-list .bitem:hover { background: var(--bg-2); padding-left: 16px; padding-right: 16px; }
.bm-list .bitem .i { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.bm-list .bitem .n strong { display: block; font-size: 15px; color: var(--text); font-weight: 500; }
.bm-list .bitem .n small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.bm-list .bitem .t { font-family: var(--mono); font-size: 11px; color: var(--text-3); text-align: right; }
.bm-list .bitem .arrow { font-family: var(--mono); color: var(--text-3); text-align: right; }
.bm-list .bitem:hover .arrow { color: var(--ikb-bright); }

/* takeaway 双列 */
.tk-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  border-top: 1px solid var(--line);
}
.tk-grid .col { padding: 24px 0; }
.tk-grid .col h4 {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .18em;
  font-weight: 600; margin: 0 0 16px;
}
.tk-grid .col ul { list-style: none; margin: 0; padding: 0; }
.tk-grid .col li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-2); line-height: 1.55;
}
.tk-grid .col li:last-child { border-bottom: 0; }

/* 报告底部 Note */
.bottom-note {
  padding: 24px 40px;
  font-size: 12px; color: var(--text-3); line-height: 1.6;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
}
.bottom-note i { color: var(--text-4); }

/* =========================================================
   #workbench — 公众号创作（8 步流程 + 三栏）
   ========================================================= */
.wb-shell { padding: 0; }
.wb-intro {
  padding: 32px 40px 24px;
}
.wb-intro .kicker {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ikb-bright); font-weight: 600;
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.wb-intro .kicker .line { width: 18px; height: 1px; background: var(--ikb-bright); }
.wb-intro h1 {
  font-size: 48px; line-height: 1.1; letter-spacing: -.035em;
  font-weight: 600; margin: 0; color: var(--text);
}
.wb-intro h1 .serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--text-2); }
.wb-intro h1 .blue { color: var(--ikb-bright); }
.wb-intro p {
  font-size: 15px; line-height: 1.5; color: var(--text-2);
  max-width: 60ch; margin: 14px 0 0;
}

/* 顶部 8 步流程条（V3 r6：4 列 × 2 行精致化） */
.wb-rail {
  padding: 24px 40px 0;
}
.wb-rail-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
}
.wb-rail-list .step {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-2);
  position: relative;
  transition: background .2s ease;
}
.wb-rail-list .step:nth-child(4n) { border-right: 0; }
.wb-rail-list .step:nth-child(n+5) { border-bottom: 0; }
.wb-rail-list .step:hover { background: var(--bg-3); }
.wb-rail-list .step .i {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-4);
  letter-spacing: .06em; font-weight: 500;
  flex-shrink: 0; min-width: 20px;
}
.wb-rail-list .step .n {
  font-size: 13.5px; color: var(--text); font-weight: 500;
  letter-spacing: -.005em;
}
.wb-rail-list .step.done .n { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-5); }
.wb-rail-list .step.done .i { color: var(--good); }
.wb-rail-list .step.active {
  background: linear-gradient(90deg, rgba(61,91,255,.12) 0%, transparent 90%);
}
.wb-rail-list .step.active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--ikb-bright);
}
.wb-rail-list .step.active .n { color: var(--text); font-weight: 600; }
.wb-rail-list .step.active .i { color: var(--ikb-bright); }

/* 三栏工作区 */
.wb-grid {
  display: grid; grid-template-columns: 360px minmax(0, 1fr) 280px;
  gap: 0;
  border-top: 1px solid var(--line);
  min-height: calc(100vh - 64px - 88px - 64px - 1px);
}
.wb-col {
  padding: 24px 24px 40px;
  border-right: 1px solid var(--line);
}
.wb-col:last-child { border-right: 0; }

.wb-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.wb-card + .wb-card { margin-top: 14px; }

/* 模式切换 */
.wb-card .mode-switch {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin: 10px 0 14px;
  padding: 4px; background: var(--bg-2); border-radius: 10px;
}
.wb-card .mode-option {
  padding: 7px 8px;
  background: transparent; border: 0; border-radius: 7px;
  color: var(--text-3); font-size: 11.5px; font-weight: 500; cursor: pointer;
  text-align: center;
  transition: .12s;
}
.wb-card .mode-option strong { display: block; font-size: 12px; font-weight: 500; }
.wb-card .mode-option small { display: block; font-size: 10px; color: var(--text-4); margin-top: 1px; }
.wb-card .mode-option.active { background: var(--bg-4); color: var(--text); box-shadow: 0 0 0 1px var(--line-3); }

/* 表单 */
.wb-card label {
  display: block; margin: 12px 0 6px; font-size: 11px;
  color: var(--text-3); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
}
.wb-card textarea, .wb-card input, .wb-card select {
  width: 100%; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease;
}
.wb-card textarea { min-height: 70px; resize: none; line-height: 1.5; }
.wb-card textarea:focus, .wb-card input:focus, .wb-card select:focus { border-color: var(--ikb-bright); }
.wb-card textarea::placeholder, .wb-card input::placeholder { color: var(--text-4); }

.wb-card .creator-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.wb-card .creator-options label { margin: 6px 0 4px; }
.wb-card .creator-options select { height: 36px; padding: 0 10px; }

.wb-card .primary-action {
  width: 100%; height: 44px; padding: 0 16px;
  background: var(--ikb-bright); color: #fff; border: 0; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 0 16px var(--ikb-glow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s ease;
}
.wb-card .primary-action:hover { background: var(--ikb); }
.wb-card .primary-action:disabled { opacity: .5; cursor: progress; }

.wb-card .helper-copy {
  margin: 8px 0 0; font-size: 11px; color: var(--text-4); line-height: 1.5;
}
.wb-card .topic-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.wb-card .topic-chips > span {
  font-size: 11px; color: var(--text-3); margin-right: 2px;
  width: 100%; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .08em;
}
.wb-card .topic-chip {
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-2); font-size: 11.5px; cursor: pointer;
  transition: .12s;
}
.wb-card .topic-chip:hover {
  background: var(--bg-3); border-color: var(--line-3); color: var(--text);
}

/* 中央结果区 */
.wb-result {
  display: flex; flex-direction: column; gap: 16px;
  min-height: 100%;
}
.wb-result .head-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.wb-result .head-row .title-block .micro-label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.wb-result .head-row h2 {
  font-size: 24px; color: var(--text); font-weight: 500;
  letter-spacing: -.02em; margin: 4px 0 0;
}
.wb-result .head-row .actions { display: flex; gap: 8px; }
.wb-result .head-row .actions button, .wb-result .head-row .actions a {
  height: 36px; padding: 0 14px; border-radius: 8px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-3); font-size: 12.5px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: .15s;
}
.wb-result .head-row .actions button:hover, .wb-result .head-row .actions a:hover { border-color: var(--line-4); }
.wb-result .head-row .actions .solid {
  background: var(--ikb-bright); color: #fff; border-color: transparent;
  box-shadow: 0 0 16px var(--ikb-glow);
}
.wb-result .head-row .actions .solid:hover { background: var(--ikb); }

/* 决策面板 - 醒目行 */
.decision-panel {
  display: grid; grid-template-columns: 100px 1fr auto;
  align-items: center; gap: 24px;
  padding: 18px 20px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 3px solid var(--ikb-bright);
}
.decision-panel .step-tag .t {
  font-family: var(--mono); font-size: 10px; color: var(--ikb-bright);
  letter-spacing: .04em;
}
.decision-panel .step-tag .l {
  font-size: 16px; color: var(--text); font-weight: 500;
  letter-spacing: -.01em; margin-top: 4px;
}
.decision-panel .copy h3 {
  margin: 0; font-size: 15px; color: var(--text); font-weight: 500;
  letter-spacing: -.005em;
}
.decision-panel .copy p {
  margin: 4px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.5;
}
.decision-panel .impact {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: .04em; text-align: right;
}
.decision-panel .impact strong {
  display: block; color: var(--text); font-size: 13px; margin-top: 4px; font-weight: 500;
}

.wb-result .topic-list { display: flex; flex-direction: column; gap: 0; }
.wb-result .topic-list .topic-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.wb-result .topic-list .topic-head strong { font-size: 14px; color: var(--text); font-weight: 500; }
.wb-result .topic-list .topic-head span { font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.wb-result .topic-item {
  display: grid; grid-template-columns: 48px 1fr auto;
  align-items: center; gap: 20px;
  padding: 16px 16px; margin-bottom: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left; cursor: pointer;
  transition: .15s;
}
.wb-result .topic-item:hover { border-color: var(--ikb-bright); background: var(--bg-3); }
.wb-result .topic-item .num {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.wb-result .topic-item .body strong {
  display: block; font-size: 14px; color: var(--text); font-weight: 500; letter-spacing: -.005em;
}
.wb-result .topic-item .body small {
  display: block; font-size: 11.5px; color: var(--text-3); margin-top: 4px; letter-spacing: .01em;
}
.wb-result .topic-item .arrow {
  font-family: var(--mono); font-size: 13px; color: var(--text-3);
  transition: .15s;
}
.wb-result .topic-item:hover .arrow { color: var(--ikb-bright); }

.framework-summary {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px;
}
.framework-summary .micro-label {
  font-size: 10px; color: var(--text-3); letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.framework-summary strong {
  display: block; font-size: 16px; color: var(--text); font-weight: 500; margin: 6px 0 4px;
}
.framework-summary p {
  margin: 0 0 12px; font-size: 13px; color: var(--text-2); line-height: 1.55;
}
.framework-summary div {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); line-height: 1.55;
}
.framework-summary div span::before { content: "· "; color: var(--text-4); margin-right: 4px; }

/* 编辑器 */
.editor-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px;
}
.editor-card .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--text-3); letter-spacing: .04em;
  text-transform: uppercase; font-weight: 600;
}
.editor-card .head .label { font-family: var(--sans); font-size: 11px; }
.editor-card textarea {
  width: 100%; min-height: 220px;
  padding: 18px;
  background: transparent; border: 0;
  color: var(--text); font-size: 14px; line-height: 1.75;
  resize: vertical; outline: none;
  font-family: var(--sans);
}
.editor-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.editor-card .foot button {
  background: transparent; border: 1px solid var(--line-3);
  color: var(--text); padding: 6px 14px;
  border-radius: 6px; font-size: 12px; cursor: pointer;
}
.editor-card .foot button:hover { border-color: var(--ikb-bright); color: var(--ikb-bright); }

/* 已生成图片 grid */
.generated-images { display: flex; flex-direction: column; gap: 12px; }
.generated-images .head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px;
}
.generated-images .head .micro-label {
  font-size: 10px; color: var(--text-3); letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.generated-images .head h3 {
  margin: 4px 0 0; font-size: 16px; color: var(--text); font-weight: 500;
}
.generated-images .head span {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.image-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.image-grid a {
  display: block; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  text-decoration: none;
  transition: .15s;
}
.image-grid a:hover { border-color: var(--line-3); }
.image-grid a img { display: block; width: 100%; aspect-ratio: 2/1.05; object-fit: cover; }
.image-grid a span { display: block; padding: 10px 14px; border-top: 1px solid var(--line); }
.image-grid a strong { display: block; font-size: 13px; color: var(--text); font-weight: 500; }
.image-grid a small { display: block; font-size: 11px; color: var(--text-3); margin-top: 2px; font-family: var(--mono); }

/* 生成进度条 */
.generation-progress {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; margin-bottom: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  font-size: 12px; color: var(--text-2);
}
.generation-progress strong { font-size: 13px; color: var(--text); }
.generation-progress .progress-track {
  width: 200px; height: 1px; background: var(--line-2);
  position: relative; margin: 0 16px; flex: 1;
}
.generation-progress .progress-track i {
  position: absolute; left: 0; top: -1px; height: 3px;
  background: var(--ikb-bright); box-shadow: 0 0 6px var(--ikb-glow);
  border-radius: 2px; transition: width .3s ease;
}
.generation-progress .cancel-generation {
  padding: 6px 12px; font-size: 11px;
  background: transparent; color: var(--text-3); border: 1px solid var(--line-3);
  border-radius: 6px; cursor: pointer;
}
.generation-progress.done .cancel-generation { display: none; }

/* 右侧灵感速达侧栏 */
.wb-side { display: flex; flex-direction: column; gap: 0; }
.wb-side .wb-card { padding: 18px 18px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.wb-side .wb-card:last-child { border-bottom: 0; }
.wb-side .micro-label {
  font-size: 10px; color: var(--text-3); letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600;
  display: block; margin-bottom: 10px;
}
.wb-side .inspiration ul {
  list-style: none; margin: 0; padding: 0;
}
.wb-side .inspiration li {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 6px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
  transition: .15s;
}
.wb-side .inspiration li::before {
  content: "↗"; color: var(--text-4); font-size: 12px;
  justify-self: end;
}
.wb-side .inspiration li:hover { background: var(--bg-3); border-color: var(--line-3); color: var(--text); }
.wb-side .workflow-note { font-size: 12px; color: var(--text-2); line-height: 1.6; margin: 0; }
.wb-side .workflow-note strong {
  display: block; color: var(--text); font-size: 13px; margin-bottom: 6px; font-weight: 500;
}

/* =========================================================
   #xiaohongshu / #tie-tu / #hit-detector 通用 skill layout
   ========================================================= */
.skill-shell {
  display: grid; grid-template-columns: 380px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}
.skill-form-col {
  padding: 32px 32px 40px;
  border-right: 1px solid var(--line);
}
.skill-output-col {
  padding: 32px 40px 40px;
}

.skill-form-col .micro-label,
.skill-output-col .micro-label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ikb-bright); font-weight: 600;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.skill-form-col .micro-label .line,
.skill-output-col .micro-label .line { width: 18px; height: 1px; background: var(--ikb-bright); }
.skill-form-col h1, .skill-output-col h1 {
  font-size: 42px; line-height: 1.1; letter-spacing: -.035em;
  font-weight: 600; margin: 0 0 14px; color: var(--text);
}
.skill-form-col h1 .serif, .skill-output-col h1 .serif {
  font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--text-2);
}
.skill-form-col h1 .blue, .skill-output-col h1 .blue { color: var(--ikb-bright); }
.skill-form-col p, .skill-output-col p {
  font-size: 14px; line-height: 1.5; color: var(--text-2); margin: 0 0 24px;
  max-width: 60ch;
}

.skill-form { display: flex; flex-direction: column; gap: 14px; }

/* V3 暗色：taste-chatgpt.css 用 !important 给 .skill-form / 输入框铺了
   rgba(255,255,255,.64-.78) 的玻璃白底，必须再用 !important 强压。 */
#hit-detector .skill-form,
#workbench .skill-form,
#xiaohongshu .skill-form,
#tie-tu .skill-form,
#morning-generator .skill-form {
  background: var(--bg) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 爆款贴图复刻：参考图只用于分析，不进入最终成图。 */
.viral-upload { display:flex; min-height:164px; flex-direction:column; align-items:center; justify-content:center; gap:7px; border:1px dashed rgba(107,125,255,.52); border-radius:14px; background:rgba(84,103,255,.055); cursor:pointer; text-align:center; transition:border-color .2s ease, background .2s ease; }
.viral-upload:hover { border-color:var(--ikb-bright); background:rgba(84,103,255,.1); }
.viral-upload:focus-within { outline:2px solid var(--ikb-bright); outline-offset:3px; }
.viral-upload input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.viral-upload-icon { display:grid; width:32px; height:32px; place-items:center; border:1px solid currentColor; border-radius:50%; color:var(--ikb-bright); font-size:22px; font-weight:300; }
.viral-upload strong { font-size:15px; }.viral-upload small,.viral-notice { color:var(--muted); font-size:12px; }
.viral-preview { display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:12px; align-items:center; margin-top:12px; padding:10px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.04); }
.viral-preview img { width:72px; height:72px; object-fit:cover; border-radius:7px; }.viral-preview span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }.viral-preview .secondary-action { min-height:36px; padding:0 10px; }
.viral-notice { margin:11px 0 0; line-height:1.55; }.viral-empty { display:flex; min-height:430px; flex-direction:column; justify-content:center; gap:18px; }.viral-empty h2 { margin:0; font-size:clamp(25px,3vw,40px); line-height:1.18; }.viral-empty p { max-width:520px; margin:0; color:var(--muted); line-height:1.7; }.viral-result-card { padding:clamp(24px,4vw,48px); border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.035); }.viral-result-card h2 { margin:18px 0 10px; font-size:clamp(24px,3vw,38px); }.viral-result-card p { max-width:620px; color:var(--muted); line-height:1.7; }.viral-next { display:flex; gap:14px; margin-top:28px; padding-top:18px; border-top:1px solid var(--line); }.viral-next b { color:var(--ikb-bright); white-space:nowrap; }.viral-next span { color:var(--muted); }
.viral-analysis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:24px 0; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--line); }.viral-analysis div { display:grid; gap:5px; padding:14px; background:var(--bg); }.viral-analysis b,.viral-idea dt { font-size:11px; color:var(--ikb-bright); letter-spacing:.06em; }.viral-analysis span,.viral-idea dd { font-size:13px; line-height:1.55; color:var(--muted); }.viral-ideas { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:18px; }.viral-ideas .result-section-title { grid-column:1/-1; }.viral-idea { padding:20px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.035); }.viral-idea h3 { margin:12px 0 8px; }.viral-idea p { min-height:64px; color:var(--muted); font-size:13px; line-height:1.6; }.idea-id { display:grid; width:26px; height:26px; place-items:center; border-radius:50%; background:var(--ikb-bright); color:#fff; font-size:12px; }.viral-idea dl { display:grid; gap:12px; margin:18px 0; }.viral-idea dl div { display:grid; gap:3px; }.viral-idea dd { margin:0; }.viral-idea .primary-action { width:100%; }.viral-generated { margin-bottom:18px; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--bg); }.viral-generated > .tag { display:block; padding:14px 16px; }.viral-generated img { display:block; width:100%; max-height:680px; object-fit:contain; background:#f5f5f5; }.viral-generated > div { display:flex; justify-content:space-between; gap:12px; padding:14px 16px; }.viral-generated a { color:var(--ikb-bright); font-size:13px; }
@media (max-width:760px) { .viral-ideas { grid-template-columns:1fr; }.viral-analysis { grid-template-columns:1fr; } }
@media (max-width:560px) { .viral-preview { grid-template-columns:56px minmax(0,1fr); }.viral-preview img { width:56px; height:56px; }.viral-preview .secondary-action { grid-column:2; justify-self:start; }.viral-next { flex-direction:column; gap:5px; } }
.skill-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; color: var(--text-3); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.skill-form input, .skill-form select, .skill-form textarea {
  width: 100%; padding: 11px 12px;
  background: var(--bg-2) !important;
  border: 1px solid var(--line-2);
  border-radius: 8px; color: var(--text);
  font-size: 13px; line-height: 1.5;
  outline: none;
  text-transform: none; font-weight: 400; letter-spacing: 0;
  transition: border-color .15s ease;
}
.skill-form input:focus, .skill-form select:focus, .skill-form textarea:focus { border-color: var(--ikb-bright); }
.skill-form textarea { min-height: 84px; resize: vertical; }
.skill-form textarea::placeholder, .skill-form input::placeholder { color: var(--text-4); }

/* V3 暗色 r4：诊断/工作台等剩余白板 + <footer> 通用白底 + 浏览器默认 input 白
   1) taste-chatgpt.css:62 用 !important 把 .entry-panel/.skill-page 等面板铺成 --taste-bg（浅色），
      但 #diagnose-page 在 V3 r2 已重写为 hero 形态，#diagnose-form 仍继承 .entry-form 的玻璃白
   2) taste-chatgpt.css:132 通用 footer { background: #fff }，无 !important，但 .start-templates>footer /
      .article-canvas-foot / footer.empty-foot 在 glass-theme.css 里没设 background，被白色吞掉
   3) #workbench-topic / #workbench-persona / #workbench-theme 在 .composer-shell / .creator-options 内，
      不在 .skill-form 容器里，浏览器默认 input/select/textarea 白底漏出
   全部用 !important 在最后加载层强压回 V3 暗色。 */
#diagnose .entry-form,
#diagnose .entry-form input,
#diagnose .entry-form select,
#diagnose .entry-form textarea {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--line-2);
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#diagnose .entry-form input:focus,
#diagnose .entry-form select:focus,
#diagnose .entry-form textarea:focus { border-color: var(--ikb-bright) !important; }
#diagnose .entry-form input::placeholder,
#diagnose .entry-form textarea::placeholder { color: var(--text-4) !important; }
#diagnose .entry-form button { color: #fff; }
#diagnose .entry-form button[type="submit"],
#diagnose .entry-form .skill-primary { background: var(--ikb) !important; color: #fff !important; border: 0 !important; }

#workbench .composer-shell textarea,
#workbench #workbench-topic,
#workbench #workbench-persona,
#workbench #workbench-theme,
#workbench .creator-options select,
#workbench .creator-options input,
#workbench .article-canvas textarea,
#workbench .article-canvas input,
#workbench .article-canvas select {
  background: var(--bg-2) !important;
  background-color: var(--bg-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line-2);
  color-scheme: dark;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
#workbench .composer-shell textarea:focus,
#workbench .article-canvas textarea:focus { border-color: var(--ikb-bright) !important; outline: none; }

#workbench .start-templates > footer,
#workbench .article-canvas-foot,
#workbench .outcome-panel footer,
#workbench .current-work-card > footer,
#workbench .chat-choice footer {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  color: var(--text-4) !important;
  border-color: var(--line) !important;
}
#workbench .start-templates > footer a { color: var(--ikb-bright) !important; }

#xiaohongshu footer.empty-foot,
#tie-tu footer.empty-foot,
#hit-detector footer.empty-foot,
#diagnose .empty-foot {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  color: var(--text-4) !important;
  border-top: 1px solid var(--line) !important;
  border-bottom: 0 !important; border-left: 0 !important; border-right: 0 !important;
  padding: 12px 16px !important;
  font-size: 11px !important;
}

iframe.generator-frame {
  background: var(--bg) !important;
  background-color: var(--bg) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  box-shadow: none !important;
}

.form-section {
  margin: 8px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.form-section .head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.form-section .head .num {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; color: #fff;
  background: var(--ikb-bright); border-radius: 8px;
  letter-spacing: .04em;
}
.form-section .head .copy strong {
  display: block; font-size: 13px; color: var(--text); font-weight: 500; letter-spacing: -.005em;
}
.form-section .head .copy small {
  display: block; font-size: 11px; color: var(--text-3); margin-top: 2px;
}

.skill-form .field-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.skill-form .field-grid label { gap: 6px; }

.skill-primary {
  height: 44px; padding: 0 18px;
  background: var(--ikb-bright); color: #fff; border: 0; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 0 16px var(--ikb-glow);
  transition: background .15s ease;
}
.skill-primary:hover { background: var(--ikb); }
.skill-primary:disabled { opacity: .5; cursor: progress; }
.skill-primary svg { width: 15px; height: 15px; }

.skill-empty {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.skill-empty .tag {
  font-size: 10px; color: var(--text-3); letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.skill-empty h2 {
  margin: 8px 0 0; font-size: 24px; color: var(--text); font-weight: 500; letter-spacing: -.02em;
}
.skill-empty h2 .serif { font-family: var(--serif); font-style: italic; color: var(--text-2); }
.skill-empty p {
  margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.6; max-width: 52ch;
}

/* 小红书：标题方案 + 卡片 */
.xhs-titles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.xhs-titles .title-option {
  display: block;
  padding: 16px 16px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left; cursor: pointer;
  transition: .15s;
}
.xhs-titles .title-option:hover { border-color: var(--line-3); background: var(--bg-3); }
.xhs-titles .title-option.selected {
  border-color: var(--ikb-bright);
  background: var(--ikb-soft);
  box-shadow: 0 0 0 1px var(--ikb-bright) inset;
}
.xhs-titles .title-option .num {
  font-family: var(--mono); font-size: 11px; color: var(--ikb-bright); letter-spacing: .04em;
}
.xhs-titles .title-option strong {
  display: block; margin: 10px 0 6px;
  font-size: 14px; color: var(--text); font-weight: 500; letter-spacing: -.005em; line-height: 1.4;
}
.xhs-titles .title-option small {
  display: block; font-size: 11px; color: var(--text-3); line-height: 1.5;
}

.xhs-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.xhs-cards .creator-output-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.xhs-cards .card-image-slot {
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  color: var(--text-4);
}
.xhs-cards .card-image-slot span { font-family: var(--mono); font-size: 14px; color: var(--text-3); }
.xhs-cards .card-image-slot small {
  display: block; font-size: 10px; color: var(--text-4); margin-top: 4px; letter-spacing: .04em;
}
.xhs-cards .card-image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xhs-cards .card-image-slot a {
  display: block; position: absolute; bottom: 8px; right: 8px;
  font-size: 10px; color: var(--text-2); padding: 4px 8px;
  background: rgba(0, 0, 0, .7); border-radius: 4px;
}
.xhs-cards .creator-card-copy {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.xhs-cards .creator-card-copy span {
  font-family: var(--mono); font-size: 10px; color: var(--ikb-bright);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.xhs-cards .creator-card-copy strong {
  display: block; margin: 6px 0 4px; font-size: 13.5px; color: var(--text); font-weight: 500; letter-spacing: -.005em; line-height: 1.4;
}
.xhs-cards .creator-card-copy p { margin: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.xhs-cards .creator-card-copy small {
  display: block; margin-top: 6px; font-size: 10.5px; color: var(--text-4); font-family: var(--mono); letter-spacing: .04em;
}
.xhs-cards .creator-output-card.generated .card-image-slot { position: relative; }

/* 小红书：发布文案 */
.xhs-output-section {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.xhs-output-section .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.xhs-output-section .head strong { font-size: 13px; color: var(--text); font-weight: 500; }
.xhs-output-section .head span { font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.xhs-output-section .head .copy-result {
  background: transparent; border: 1px solid var(--line-3);
  color: var(--text); padding: 5px 12px; border-radius: 6px; font-size: 12px; cursor: pointer;
}
.xhs-output-section .head .copy-result:hover { border-color: var(--ikb-bright); color: var(--ikb-bright); }
.xhs-output-section textarea#xhs-body,
.xhs-output-section textarea#tie-copy {
  width: 100%; min-height: 160px; padding: 16px 18px;
  background: transparent; border: 0; border-radius: 0;
  color: var(--text); font-size: 13.5px; line-height: 1.7;
  resize: vertical; outline: none;
}
.xhs-output-section .result-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.xhs-output-section .result-meta-grid > div {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}
.xhs-output-section .result-meta-grid > div:last-child { border-right: 0; }
.xhs-output-section .result-meta-grid span {
  font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.xhs-output-section .result-meta-grid p {
  margin: 6px 0 0; font-size: 13px; color: var(--text); line-height: 1.5;
}

/* 发布前检查 */
.xhs-precheck { padding: 18px 20px; }
.xhs-precheck .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
}
.xhs-precheck .head strong { font-size: 13px; color: var(--text); font-weight: 500; }
.xhs-precheck .head .result-status {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3); color: var(--text-2);
  letter-spacing: .04em;
}
.xhs-precheck ul { list-style: none; margin: 0; padding: 0; }
.xhs-precheck ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); line-height: 1.55;
}
.xhs-precheck ul li:last-child { border-bottom: 0; }
.xhs-precheck ul li.ok {
  color: var(--good);
}

/* 贴图号：plan-summary 与分镜 */
.tie-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tie-summary > div {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.tie-summary > div:last-child { border-right: 0; }
.tie-summary span {
  font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.tie-summary strong {
  display: block; margin-top: 6px; font-size: 20px; color: var(--text); font-weight: 500; letter-spacing: -.02em;
}

.tie-storyboard {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tie-storyboard .creator-output-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.tie-storyboard .card-image-slot {
  aspect-ratio: 3/4;
  display: grid; place-items: center;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
  color: var(--text-4);
}
.tie-storyboard .card-image-slot span { font-family: var(--mono); font-size: 16px; color: var(--text-3); }
.tie-storyboard .card-image-slot small {
  display: block; font-size: 10px; color: var(--text-4); margin-top: 4px; letter-spacing: .04em;
}
.tie-storyboard .card-image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tie-storyboard .creator-card-copy {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.tie-storyboard .creator-card-copy span {
  font-family: var(--mono); font-size: 10px; color: var(--ikb-bright);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.tie-storyboard .creator-card-copy strong {
  display: block; margin: 6px 0 6px; font-size: 14px; color: var(--text); font-weight: 500; letter-spacing: -.005em; line-height: 1.4;
}
.tie-storyboard .creator-card-copy p { margin: 0 0 6px; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.tie-storyboard .creator-card-copy small {
  display: block; font-size: 10.5px; color: var(--text-4); font-family: var(--mono); letter-spacing: .04em;
}

/* 爆文检测：8 维数据 + 优先级 */
.hit-hero {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px; align-items: end;
  padding: 32px 36px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 16px;
  border-left: 3px solid var(--ikb-bright);
}
.hit-hero .score-block {
  font-size: 96px; font-weight: 500; line-height: .92;
  letter-spacing: -.05em; color: var(--text); margin: 0;
}
.hit-hero .score-block small {
  display: block; font-size: 11px; color: var(--text-3);
  font-family: var(--mono); letter-spacing: .04em; margin-top: 6px;
  text-transform: uppercase; font-weight: 600;
}
.hit-hero .verdict-block {
  display: flex; flex-direction: column; gap: 8px;
}
.hit-hero .verdict-block .status {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3); color: var(--text-2);
  align-self: flex-start;
  font-weight: 600;
}
.hit-hero .verdict-block .status.ready { color: var(--good); background: rgba(63, 185, 80, .12); }
.hit-hero .verdict-block .status.revise { color: var(--warn); background: rgba(255, 176, 32, .12); }
.hit-hero .verdict-block .status.blocked { color: var(--bad); background: rgba(255, 92, 92, .12); }
.hit-hero .verdict-block strong {
  font-size: 16px; color: var(--text); font-weight: 500; letter-spacing: -.005em; line-height: 1.5;
}
.hit-hero .verdict-block p {
  margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.5;
}
.hit-hero .verdict-block .secondary-action {
  align-self: flex-start; height: 38px; padding: 0 16px;
  background: transparent; color: var(--text); border: 1px solid var(--line-3);
  border-radius: 8px; font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.hit-hero .verdict-block .secondary-action:hover { border-color: var(--line-4); }

.hit-scores {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.hit-scores .detector-score {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) 56px;
  align-items: center; gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.hit-scores .detector-score:nth-child(2n) { border-right: 0; }
.hit-scores .detector-score span {
  font-size: 13px; color: var(--text); font-weight: 500;
}
.hit-scores .detector-score > div {
  height: 1px; background: var(--line-2); position: relative;
}
.hit-scores .detector-score > div i {
  position: absolute; left: 0; top: -1px; height: 3px;
  background: var(--ikb-bright); box-shadow: 0 0 6px var(--ikb-glow);
  border-radius: 2px;
}
.hit-scores .detector-score strong {
  font-family: var(--mono); font-size: 14px; color: var(--text);
  text-align: right; font-weight: 500;
}
.hit-scores .detector-score strong small { font-size: 10px; color: var(--text-3); margin-left: 2px; }

.hit-suggestions {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.hit-suggestions .s-item {
  display: grid; grid-template-columns: 64px 1fr;
  align-items: start; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.hit-suggestions .s-item .priority {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 6px;
  background: var(--bg-2); color: var(--text-3); border: 1px solid var(--line-2);
  width: max-content; text-align: center;
}
.hit-suggestions .s-item .priority.P0 { color: var(--bad); border-color: rgba(255, 92, 92, .32); background: rgba(255, 92, 92, .08); }
.hit-suggestions .s-item .priority.P1 { color: var(--warn); border-color: rgba(255, 176, 32, .32); background: rgba(255, 176, 32, .08); }
.hit-suggestions .s-item strong {
  display: block; font-size: 14px; color: var(--text); font-weight: 500; letter-spacing: -.005em;
}
.hit-suggestions .s-item p {
  margin: 6px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.55;
}

.hit-ledger {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.hit-ledger .l-item {
  display: grid; grid-template-columns: 100px 1fr;
  align-items: start; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.hit-ledger .l-item .status {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .04em; padding: 4px 8px; border-radius: 4px;
  background: var(--bg-2); color: var(--text-3); border: 1px solid var(--line-2);
  width: max-content;
}
.hit-ledger .l-item .status.ok { color: var(--good); }
.hit-ledger .l-item .status.warn { color: var(--warn); }
.hit-ledger .l-item .status.bad { color: var(--bad); }
.hit-ledger .l-item p {
  margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55;
}

/* result-section 标题 */
.result-section {
  margin-top: 20px;
}
.result-section .result-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.result-section .result-section-title strong { font-size: 14px; color: var(--text); font-weight: 500; letter-spacing: -.005em; }
.result-section .result-section-title span { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.result-section .secondary-action, .result-section .copy-result {
  padding: 5px 12px; border-radius: 6px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-3); font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.result-section .secondary-action:hover, .result-section .copy-result:hover { border-color: var(--ikb-bright); color: var(--ikb-bright); }

/* output-head (包结果头部) */
.output-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.output-head .result-status {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--text-2);
  letter-spacing: .04em;
}
.output-head .result-status.ready { color: var(--good); background: rgba(63, 185, 80, .12); }
.output-head .result-status.revise { color: var(--warn); background: rgba(255, 176, 32, .12); }
.output-head .result-status.blocked { color: var(--bad); background: rgba(255, 92, 92, .12); }
.output-head h2 {
  margin: 8px 0 4px; font-size: 32px; color: var(--text); font-weight: 500; letter-spacing: -.025em;
}
.output-head p { margin: 0; font-size: 13px; color: var(--text-3); }

/* =========================================================
   #morning-generator — 早安祝福
   ========================================================= */
.morning-shell { padding: 0; }
.morning-intro {
  padding: 32px 40px 24px;
}
.morning-intro .kicker {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ikb-bright); font-weight: 600;
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.morning-intro .kicker .line { width: 18px; height: 1px; background: var(--ikb-bright); }
.morning-intro h1 {
  font-size: 48px; line-height: 1.1; letter-spacing: -.035em;
  font-weight: 600; margin: 0; color: var(--text);
}
.morning-intro h1 .serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--text-2); }
.morning-intro p {
  font-size: 15px; color: var(--text-2); margin: 14px 0 0; max-width: 60ch;
}
.morning-frame-wrap {
  border-top: 1px solid var(--line);
  height: calc(100vh - 64px - 144px);
  min-height: 600px;
}
.morning-frame-wrap iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0; background: var(--bg);
}

/* =========================================================
   Modal — V3 暗化
   ========================================================= */
.account-modal, .api-settings-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
  padding: 20px;
}
.account-modal[hidden], .api-settings-modal[hidden] { display: none !important; }

.auth-card, .wallet-card, .admin-users-card, .api-settings-card {
  width: min(560px, 100%);
  max-height: 90vh; overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  color: var(--text);
}
.wallet-card, .api-settings-card, .admin-users-card { width: min(720px, 100%); }

.auth-card .auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth-card .auth-brand span:first-child {
  width: 38px; height: 38px; border-radius: 11px; background: var(--ikb-bright);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 0 16px var(--ikb-glow);
}
.auth-card .auth-brand strong { display: block; font-size: 15px; color: var(--text); font-weight: 600; }
.auth-card .auth-brand small { display: block; font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.auth-card .auth-copy .micro-label {
  font-size: 10px; color: var(--ikb-bright);
  letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.auth-card .auth-copy h1 {
  margin: 8px 0 8px; font-size: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--text);
}
.auth-card .auth-copy p { font-size: 13.5px; color: var(--text-3); line-height: 1.55; margin: 0 0 24px; }
.auth-card .auth-tabs {
  display: inline-flex; gap: 0; padding: 4px;
  background: var(--bg-3); border-radius: 8px; margin-bottom: 24px;
}
.auth-card .auth-tabs button {
  padding: 7px 16px; border: 0; background: transparent;
  color: var(--text-3); font-size: 12.5px; font-weight: 500;
  border-radius: 6px; cursor: pointer;
}
.auth-card .auth-tabs button.active {
  background: var(--bg-4); color: var(--text);
}
.auth-card .auth-form label {
  display: block; margin-bottom: 14px;
}
.auth-card .auth-form label span {
  display: block; font-size: 11px; color: var(--text-3);
  margin-bottom: 6px; letter-spacing: .04em; font-weight: 600;
  text-transform: uppercase;
}
.auth-card .auth-form label input {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-size: 14px; outline: none;
}
.auth-card .auth-form label input:focus { border-color: var(--ikb-bright); }
.auth-card .auth-form button.primary-action {
  width: 100%; height: 44px;
  background: var(--ikb-bright); color: #fff; border: 0; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 16px var(--ikb-glow);
  margin-top: 6px;
}
.auth-card .auth-form button.primary-action:hover { background: var(--ikb); }
.auth-card .auth-error {
  margin-top: 12px; padding: 10px 12px;
  background: rgba(255, 92, 92, .1); color: var(--bad);
  border: 1px solid rgba(255, 92, 92, .3); border-radius: 8px;
  font-size: 12.5px;
}

/* wallet */
.wallet-card .wallet-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.wallet-card .wallet-head .micro-label {
  font-size: 10px; color: var(--ikb-bright); letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.wallet-card .wallet-head h2 {
  margin: 6px 0 8px; font-size: 28px; color: var(--text); font-weight: 500; letter-spacing: -.02em;
}
.wallet-card .wallet-head p { margin: 0; font-size: 13px; color: var(--text-3); }
.wallet-card .wallet-total {
  padding: 18px 24px;
  background: var(--ikb-soft); border: 1px solid rgba(61, 91, 255, .24); border-radius: 12px;
  margin-bottom: 16px;
}
.wallet-card .wallet-total span { font-size: 11px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.wallet-card .wallet-total strong {
  display: block; margin: 6px 0 4px; font-size: 32px; font-weight: 500; color: var(--text); letter-spacing: -.02em;
}
.wallet-card .wallet-total strong b { color: var(--ikb-bright); }
.wallet-card .wallet-total small { font-size: 11px; color: var(--text-3); }

.wallet-buckets {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 20px;
}
.wallet-buckets > div {
  padding: 14px 18px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px;
}
.wallet-buckets span {
  font-size: 11px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.wallet-buckets strong {
  display: block; margin-top: 4px; font-size: 20px; color: var(--text); font-weight: 500;
  font-family: var(--mono);
}

.wallet-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.wallet-section-title strong { font-size: 13px; color: var(--text); font-weight: 500; }
.wallet-section-title span { font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.wallet-section-title button {
  padding: 5px 12px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-3); border-radius: 6px;
  font-size: 12px; cursor: pointer;
}
.wallet-section-title button:hover { border-color: var(--line-4); }

.wallet-transactions article {
  display: grid; grid-template-columns: 32px 1fr auto;
  align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.wallet-transactions article:last-child { border-bottom: 0; }
.transaction-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-3); color: var(--text-3);
  display: grid; place-items: center;
}
.transaction-icon.in { color: var(--good); background: rgba(63, 185, 80, .12); }
.transaction-icon.out { color: var(--warn); background: rgba(255, 176, 32, .12); }
.wallet-transactions article strong { font-size: 13px; color: var(--text); font-weight: 500; }
.wallet-transactions article small { font-size: 11.5px; color: var(--text-3); }
.wallet-transactions article b {
  font-family: var(--mono); font-size: 13px; color: var(--text); font-weight: 500;
}
.wallet-transactions article b.in { color: var(--good); }
.wallet-transactions article b.out { color: var(--warn); }
.wallet-transactions .tx-order {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  word-break: break-all;
}
.wallet-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 0 4px;
}
.wallet-filters button {
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 12px; color: var(--text-3); cursor: pointer;
}
.wallet-filters button:hover { border-color: var(--line-4); color: var(--text); }
.wallet-filters button.active {
  border-color: var(--good); color: var(--good);
  background: rgba(63, 185, 80, .1);
}

/* admin */
.admin-users-card .admin-users-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 24px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.admin-users-card .admin-users-head .micro-label {
  font-size: 10px; color: var(--ikb-bright); letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
}
.admin-users-card .admin-users-head h2 {
  margin: 6px 0 8px; font-size: 28px; color: var(--text); font-weight: 500; letter-spacing: -.02em;
}
.admin-users-card .admin-users-head p { margin: 0; font-size: 13px; color: var(--text-3); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.admin-stats article {
  padding: 14px 18px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px;
}
.admin-stats article span { font-size: 11px; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.admin-stats article strong {
  display: block; margin-top: 4px; font-size: 22px; color: var(--text); font-weight: 500;
  font-family: var(--mono); letter-spacing: -.02em;
}

.admin-users-toolbar {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.admin-users-toolbar label {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 12px; height: 36px;
}
.admin-users-toolbar label i { color: var(--text-3); }
.admin-users-toolbar input {
  flex: 1; background: transparent; border: 0; color: var(--text); font-size: 13px; outline: none;
}
.admin-users-toolbar button {
  height: 36px; padding: 0 14px; border-radius: 8px;
  background: transparent; color: var(--text); border: 1px solid var(--line-3); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
}
.admin-users-toolbar button:hover { border-color: var(--line-4); }

/* 通用：modal 中按钮 */
.icon-command, .admin-users-close, .wallet-close, #api-settings-close, #admin-users-close {
  width: 32px; height: 32px;
  background: transparent; color: var(--text-3); border: 1px solid var(--line-2);
  border-radius: 8px; display: grid; place-items: center; cursor: pointer;
}
.icon-command:hover, .admin-users-close:hover, .wallet-close:hover { color: var(--text); border-color: var(--line-4); }

/* app-toast */
.app-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--bg-3); border: 1px solid var(--line-3);
  border-radius: 10px;
  font-size: 13px; color: var(--text);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  opacity: 0; z-index: 200;
  transition: opacity .2s ease, transform .2s ease;
}
.app-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.app-toast i { color: var(--ikb-bright); }
.app-toast.error i { color: var(--bad); }

/* 模拟隐藏 lingyi-iframe 中违反 V3 的样式：morning-blessing 跟随 morning-shell 主题 */
.morning-iframe, .morning-iframe body,
.morning-iframe .morning-topbar, .morning-iframe .morning-workbench {
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .v3-hero { grid-template-columns: 1fr; gap: 40px; }
  .v3-hero-r { justify-self: start; max-width: 480px; width: 100%; }
  .wb-grid { grid-template-columns: 320px minmax(0, 1fr) 240px; }
}
@media (max-width: 980px) {
  .v3-hero, .v3-diag {
    grid-template-columns: 1fr;
    padding: 32px 24px 0;
  }
  .v3-hero-r { max-width: none; }
  .v3-modules { padding: 48px 24px 40px; margin-top: 48px; }
  .v3-modules .head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .v3-modules .mod .desc { display: none; }
  .mod { grid-template-columns: 40px 1fr 80px 20px; gap: 16px; padding: 18px 0; }
  .mod .name { font-size: 15px; }
  .v3-diag-r { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .v3-section { padding: 32px 24px; }
  .signal-list .sitem { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lens-list .lens { grid-template-columns: 50px 1fr 70px 16px; gap: 16px; padding: 16px 0; }
  .lens-list .lens .bar { display: none; }
  .tk-grid { grid-template-columns: 1fr; gap: 24px; }
  .wb-intro, .wb-rail, .wb-grid { padding: 0; }
  .wb-intro { padding: 24px 24px 16px; }
  .wb-intro h1 { font-size: 36px; }
  .wb-rail-list { grid-template-columns: repeat(4, 1fr); }
  .wb-rail-list .step:nth-child(4n) { border-right: 0; }
  .wb-grid { grid-template-columns: 1fr; }
  .wb-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .skill-shell { grid-template-columns: 1fr; }
  .skill-form-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .skill-form-col, .skill-output-col { padding: 24px 24px 32px; }
  .skill-form-col h1, .skill-output-col h1 { font-size: 32px; }
  .xhs-titles, .xhs-cards { grid-template-columns: 1fr 1fr; }
  .hit-hero { grid-template-columns: 1fr; gap: 16px; }
  .hit-scores { grid-template-columns: 1fr; }
  .hit-scores .detector-score { border-right: 0; }
  .morning-intro { padding: 24px 24px 16px; }
  .morning-intro h1 { font-size: 36px; }
  .morning-frame-wrap { height: auto; min-height: 600px; }
  .v3-topbar { padding: 0 16px; }
  .v3-topbar .tabs { display: none; }
  .app-shell > footer { padding: 18px 24px; }
}
@media (max-width: 640px) {
  .v3-hero-l h1 { font-size: 48px; }
  .v3-diag-l h1 { font-size: 36px; }
  .v3-diag-r .score { font-size: 96px; }
  .mod { grid-template-columns: 36px 1fr 16px; gap: 12px; }
  .mod .stat, .mod .num { font-size: 10px; }
  .mod .name { font-size: 14px; }
}

/* =========================================================
   Morning Blessing iframe page — V3 暗色
   ========================================================= */
.morning-iframe {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-feature-settings: "ss01", "cv11", "tnum";
  letter-spacing: -.005em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.morning-iframe * { box-sizing: border-box; }

.morning-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.morning-topbar h1 {
  margin: 0; font-size: 17px; font-weight: 500;
  color: var(--text); letter-spacing: -.005em;
}
.morning-topbar .sub {
  margin-top: 3px; font-size: 11px; color: var(--text-3);
}
.morning-topbar .badge {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); letter-spacing: .04em;
  padding: 5px 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
}
.morning-topbar .badge i {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--good); margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 6px rgba(63, 185, 80, .5);
}

.morning-workbench {
  max-width: 1400px; margin: 0 auto;
  padding: 16px 24px 24px;
  min-height: calc(100vh - 50px);
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.morning-panel {
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.morning-controls { padding: 18px 20px; overflow-y: auto; }
.morning-preview {
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}

.morning-section-title {
  font-size: 10px; font-weight: 600; color: var(--text-3);
  margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .18em;
}
.morning-section-title:first-child { margin-top: 0; }

.morning-field-row { display: grid; gap: 10px; }
.morning-field-row.cols-2 { grid-template-columns: 1fr 1fr; }
.morning-field-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.morning-field-row label {
  display: block; margin: 0 0 4px;
  font-size: 11px; color: var(--text-3); font-weight: 500;
  letter-spacing: .04em;
}
.morning-field-row input,
.morning-field-row select,
.morning-field-row textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-3); color: var(--text);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s ease;
}
.morning-field-row textarea { height: auto; min-height: 64px; resize: vertical; padding: 10px 12px; line-height: 1.55; }
.morning-field-row input:focus,
.morning-field-row select:focus,
.morning-field-row textarea:focus {
  border-color: var(--ikb-bright);
  box-shadow: 0 0 0 3px var(--ikb-soft);
}
.morning-field-row input::placeholder,
.morning-field-row textarea::placeholder { color: var(--text-4); }

.morning-seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--bg-3); border-radius: 8px; padding: 4px;
}
.morning-seg input { display: none; }
.morning-seg label {
  margin: 0; text-align: center; padding: 8px 10px; border-radius: 6px;
  color: var(--text-3); cursor: pointer; font-weight: 600; font-size: 12px;
  transition: .12s;
}
.morning-seg input:checked + label {
  color: var(--text); background: var(--bg-4);
  box-shadow: 0 0 0 1px var(--line-2);
}

.morning-checks { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.morning-check {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-2); font-size: 12px; cursor: pointer;
}
.morning-check input {
  width: 15px; height: 15px; accent-color: var(--ikb-bright);
}

.morning-hint {
  font-size: 11px; line-height: 1.55; color: var(--text-3);
  margin: 0 0 8px;
}

.morning-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 18px;
}
.morning-actions button {
  height: 40px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: transparent;
  color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: .12s;
}
.morning-actions button:hover { background: var(--bg-3); border-color: var(--line-3); }
.morning-actions button.primary {
  background: var(--ikb-bright); border-color: transparent;
  color: #fff; box-shadow: 0 0 16px var(--ikb-glow);
}
.morning-actions button.primary:hover { background: var(--ikb); }
.morning-actions button.danger {
  color: var(--bad); border-color: rgba(255, 92, 92, .32);
}
.morning-actions button:disabled { opacity: .5; cursor: not-allowed; }

#copyWarn {
  font-size: 11px; color: var(--warn);
  background: rgba(255, 176, 32, .08);
  border: 1px solid rgba(255, 176, 32, .32);
  border-radius: 8px; padding: 10px; margin-top: 12px;
  line-height: 1.55;
}

.morning-status {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px 14px;
  color: var(--text-3); font-family: var(--mono);
  font-size: 11px; padding: 14px 18px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
  align-items: center;
}
.morning-status #status { color: var(--text); font-weight: 500; }
.morning-status #summary { text-align: right; letter-spacing: .04em; }
.morning-progress-wrap {
  grid-column: 1 / -1; height: 1px; background: var(--line-2);
  position: relative; margin-top: 4px;
}
.morning-progress-bar {
  position: absolute; left: 0; top: -1px; height: 3px;
  background: var(--ikb-bright); box-shadow: 0 0 6px var(--ikb-glow);
  border-radius: 2px; width: 0;
  transition: width .24s ease;
}

.morning-prompt {
  white-space: pre-wrap; max-height: 220px; overflow: auto;
  font-size: 11.5px; line-height: 1.65; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px;
  font-family: var(--mono);
}

.morning-article {
  flex: 1 1 auto; overflow: auto; min-height: 0;
  padding: 28px; background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.morning-article h2 {
  margin: 0 0 20px; color: var(--text);
  font-size: 22px; line-height: 1.35;
  font-weight: 500; letter-spacing: -.02em;
}
.morning-article p {
  color: var(--text-2); font-size: 15px; line-height: 1.85;
  margin: 0 0 16px;
}
.morning-article .image-grid {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 10px; margin: 18px 0;
}
.morning-article .image-grid img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border: 1px solid var(--line); border-radius: 8px;
}
.morning-article .image-grid.placeholder {
  border: 1px dashed var(--line); border-radius: 8px; min-height: 120px;
  display: grid; place-items: center;
  color: var(--text-4); font-size: 12px;
  background: var(--bg-3);
}
.morning-article .ending {
  color: var(--ikb-bright); font-weight: 600;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  margin: 24px 0 12px;
}

.modal-mask {
  position: fixed; inset: 0; z-index: 30; padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
  display: grid; place-items: center;
}
.modal-mask[hidden] { display: none !important; }
.modal {
  width: min(440px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  padding: 24px;
}
.modal h3 { margin: 0 0 8px; font-size: 18px; color: var(--text); font-weight: 500; letter-spacing: -.005em; }
.modal p { margin: 0 0 18px; color: var(--text-3); line-height: 1.6; font-size: 13px; }
.modal button { width: 100%; }

@media (max-width: 980px) {
  .morning-workbench { grid-template-columns: 1fr; padding: 12px; }
  .morning-field-row.cols-3 { grid-template-columns: 1fr 1fr; }
  .morning-preview { min-height: 420px; }
}
@media (max-width: 640px) {
  .morning-topbar { padding: 10px 14px; }
  .morning-field-row.cols-2, .morning-field-row.cols-3 { grid-template-columns: 1fr; }
  .morning-actions { grid-template-columns: 1fr; }
  .morning-article .image-grid {
    grid-template-columns: repeat(min(var(--cols, 2), 2), minmax(0, 1fr));
  }
}


/* ============================================================
   V3 动态渲染适配层 —— 对齐 app.js 运行时生成的结构
   （策略：不动远端合入的 app.js，纯 CSS 兜底 V3 视觉）
   ============================================================ */

/* 1) 顶栏设置菜单：显隐统一由 [hidden] 属性控制 */
.v3-topbar .right .menu-wrap.open .settings-popover { display: none; }
.v3-topbar .right .settings-popover[hidden] { display: none !important; }
.v3-topbar .right #settings-menu:not([hidden]) { display: block !important; }

/* 2) 首页综合分进度线（renderReport 写入 --score） */
.v3-diag-r .score-line {
  height: 1px; background: var(--line-2); margin-top: 20px; position: relative;
}
.v3-diag-r .score-line::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 3px;
  width: var(--score, 0%);
  background: var(--ikb-bright);
  box-shadow: 0 0 8px var(--ikb-glow);
  border-radius: 2px;
  transition: width .6s cubic-bezier(.22, .61, .36, 1);
}

/* 3) renderLenses → .lens-list .lens（JS 结构：.lens-index + h3 + .lens-score + .lens-status + p） */
.lens-list .lens .lens-index {
  font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em;
}
.lens-list .lens.sage .lens-index { color: var(--good); }
.lens-list .lens.orange .lens-index { color: var(--warn); }
.lens-list .lens.red .lens-index { color: var(--bad); }
.lens-list .lens h3 {
  margin: 0; font-size: 16px; color: var(--text); font-weight: 500; letter-spacing: -.01em;
}
.lens-list .lens .lens-score {
  font-family: var(--mono); font-size: 18px; color: var(--text); font-weight: 500;
  text-align: right; letter-spacing: -.02em;
}
.lens-list .lens .lens-score small { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.lens-list .lens .lens-status {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); text-align: right;
}
.lens-list .lens .lens-status.good { color: var(--good); }
.lens-list .lens .lens-status.mid { color: var(--warn); }
.lens-list .lens .lens-status.low { color: var(--bad); }
.lens-list .lens p {
  grid-column: 2; margin: 6px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.5;
}

/* 4) renderRoute → .route-list .route-item */
.route-list .route-item {
  display: grid; grid-template-columns: 80px 1fr 200px;
  align-items: start; gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.route-list .route-item .route-number {
  font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .04em;
}
.route-list .route-item .route-copy .route-kicker {
  font-size: 11px; color: var(--text-3); letter-spacing: .12em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 4px;
}
.route-list .route-item .route-copy h3 {
  margin: 4px 0 8px; font-size: 17px; font-weight: 500; color: var(--text); letter-spacing: -.01em;
}
.route-list .route-item .route-copy p { margin: 4px 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.route-list .route-item .route-copy p b { color: var(--text); font-weight: 500; }
.route-list .route-item .route-target {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  text-align: right; line-height: 1.5;
}
.route-list .route-item .route-target strong {
  display: block; color: var(--text); font-weight: 500; font-size: 11px;
  letter-spacing: .04em; margin-bottom: 4px;
}

/* 5) renderBenchmarks → .bm-list .benchmark-item */
.bm-list .benchmark-item {
  display: grid; grid-template-columns: 60px 1fr 16px;
  align-items: center; gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer; text-decoration: none;
  transition: padding .15s ease, background .15s ease;
}
.bm-list .benchmark-item:hover { background: var(--bg-2); padding-left: 16px; padding-right: 16px; }
.bm-list .benchmark-item .benchmark-index { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.bm-list .benchmark-item strong { display: block; font-size: 15px; color: var(--text); font-weight: 500; }
.bm-list .benchmark-item small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.bm-list .benchmark-item .benchmark-arrow { font-family: var(--mono); color: var(--text-3); text-align: right; }
.bm-list .benchmark-item:hover .benchmark-arrow { color: var(--ikb-bright); }

/* 6) renderWorks → #works-table 原生 table */
#works-table table {
  width: 100%; border-collapse: collapse; background: transparent; margin-top: 8px;
}
#works-table th, #works-table td {
  text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text); font-family: var(--sans);
}
#works-table th {
  color: var(--text-3); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  border-bottom: 1px solid var(--line-2);
}
#works-table td a { color: var(--ikb-bright); }
#works-table td a:hover { text-decoration: underline; }
.evidence-footnote { margin: 0; padding: 24px 0; font-size: 13px; color: var(--text-3); }

/* 7) paintWorkflow → .wb-rail-list .workflow-step（rail 8 步横排） */
.wb-rail-list .workflow-step {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 14px;
  border-right: 1px solid var(--line);
  font-size: 12px; color: var(--text-2);
  position: relative;
}
.wb-rail-list .workflow-step:last-child { border-right: 0; }
.wb-rail-list .workflow-step > span {
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
  letter-spacing: .04em; font-weight: 500;
}
.wb-rail-list .workflow-step strong {
  font-size: 13px; color: var(--text); font-weight: 500; letter-spacing: -.005em;
}
.wb-rail-list .workflow-step small { display: none; }
.wb-rail-list .workflow-step.done > span { color: var(--good); }
.wb-rail-list .workflow-step.done strong {
  color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-5);
}
.wb-rail-list .workflow-step.active > span { color: var(--ikb-bright); }
.wb-rail-list .workflow-step.active strong { color: var(--ikb-bright); }

/* 8) renderDecisionPanel → 决策面板三卡片 */
.decision-panel {
  padding: 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg-2);
  margin-bottom: 14px;
}
.decision-step {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.decision-step span {
  font-family: var(--mono); font-size: 10px; color: var(--ikb-bright);
  letter-spacing: .12em; font-weight: 600;
}
.decision-step strong { font-size: 15px; color: var(--text); font-weight: 500; }
.decision-copy h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--text); }
.decision-copy p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.decision-impact {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
}
.decision-impact strong { display: block; color: var(--ikb-bright); font-weight: 500; margin-top: 2px; }

/* 9) renderHitReport → 爆文检测结果 */
.detector-hero {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 40px; align-items: start;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--line);
}
.detector-hero h2 { margin: 8px 0 0; font-size: 44px; font-weight: 500; letter-spacing: -.03em; color: var(--text); }
.detector-hero p { margin: 6px 0 0; font-size: 12px; color: var(--text-3); }
.detector-verdict strong { display: block; font-size: 16px; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.detector-verdict p { margin: 0 0 12px; font-size: 12px; color: var(--text-3); }
.suggestion-list { display: flex; flex-direction: column; }
.suggestion-list article {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.suggestion-list article > span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--warn); font-weight: 600; padding-top: 2px;
}
.suggestion-list article strong { display: block; font-size: 14px; color: var(--text); font-weight: 500; }
.suggestion-list article p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.ledger-list { display: flex; flex-direction: column; }
.ledger-list > div {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.ledger-list > div span {
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
  letter-spacing: .1em; text-transform: uppercase; padding-top: 2px;
}
.ledger-list > div p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.muted-copy { margin: 0; padding: 16px 0; font-size: 13px; color: var(--text-3); }

/* 10) renderXhsPackage / renderTiePlan → 标题方案 + 卡片网格 + 文案 */
.title-options {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.title-options .title-option {
  display: block; padding: 16px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; text-align: left; cursor: pointer;
  transition: .15s;
}
.title-options .title-option:hover { border-color: var(--line-3); background: var(--bg-3); }
.title-options .title-option.selected {
  border-color: var(--ikb-bright);
  background: var(--ikb-soft);
  box-shadow: 0 0 0 1px var(--ikb-bright) inset;
}
.title-options .title-option > span {
  font-family: var(--mono); font-size: 11px; color: var(--ikb-bright); letter-spacing: .04em;
}
.title-options .title-option strong {
  display: block; margin: 10px 0 6px;
  font-size: 14px; color: var(--text); font-weight: 500; letter-spacing: -.005em; line-height: 1.4;
}
.title-options .title-option small {
  display: block; font-size: 11px; color: var(--text-3); line-height: 1.5;
}
.creator-card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.creator-card-grid .creator-output-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.creator-card-grid .card-image-slot {
  aspect-ratio: 1; display: grid; place-items: center;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
  color: var(--text-4); position: relative;
}
.creator-card-grid .card-image-slot span { font-family: var(--mono); font-size: 14px; color: var(--text-3); }
.creator-card-grid .card-image-slot small {
  display: block; font-size: 10px; color: var(--text-4); margin-top: 4px; letter-spacing: .04em;
}
.creator-card-grid .card-image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator-card-grid .card-image-slot a {
  display: block; position: absolute; bottom: 8px; right: 8px;
  font-size: 10px; color: var(--text-2); padding: 4px 8px;
  background: rgba(0, 0, 0, .7); border-radius: 4px;
}
.creator-card-grid .creator-card-copy {
  padding: 14px 16px; border-top: 1px solid var(--line);
}
.creator-card-grid .creator-card-copy span {
  font-family: var(--mono); font-size: 10px; color: var(--ikb-bright);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.creator-card-grid .creator-card-copy strong {
  display: block; margin: 6px 0 4px; font-size: 13.5px; color: var(--text);
  font-weight: 500; letter-spacing: -.005em; line-height: 1.4;
}
.creator-card-grid .creator-card-copy p { margin: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.creator-card-grid .creator-card-copy small {
  display: block; margin-top: 6px; font-size: 10.5px; color: var(--text-4);
  font-family: var(--mono); letter-spacing: .04em;
}
.result-editor {
  width: 100%; min-height: 160px; padding: 16px 18px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-size: 13.5px; line-height: 1.7;
  resize: vertical; outline: none;
}
.result-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 12px;
}
.result-meta-grid > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.result-meta-grid > div:last-child { border-right: 0; }
.result-meta-grid span {
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.result-meta-grid p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.issue-list {
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.issue-list li {
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-2); line-height: 1.55;
}
.issue-list li::before { content: "—  "; color: var(--text-4); font-family: var(--mono); }
.issue-list li.ok { color: var(--good); }
.issue-list li.ok::before { content: "✓  "; color: var(--good); }

/* 11) 工作台微件补全 */
.topic-number { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.image-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin: 18px 0 10px;
}
.image-section-head h3 { margin: 4px 0 0; font-size: 16px; font-weight: 500; color: var(--text); }
.image-section-head > span:last-child { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* ============================================================
   12) V3 暗色适配 · 对话式共创工作台（merge ad5501e7 · 覆盖 taste 暖纸）
   ============================================================ */
#workbench.workbench-page {
  min-height: calc(100dvh - 72px);
  padding: 18px 24px 30px;
  background: var(--bg) !important;
  overflow: visible;
}

/* 8 步流程条：可见化（V3 r6：4 列 × 2 行精致化） */
.article-workspace .workflow-rail { display: grid; grid-template-columns: repeat(4, 1fr); }
.workflow-rail {
  width: min(1440px, 100%);
  margin: 0 auto 14px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg-2);
}
.workflow-rail .workflow-step {
  padding: 18px 18px;
  display: flex; align-items: center; gap: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .2s ease;
}
.workflow-rail .workflow-step:nth-child(4n) { border-right: 0; }
.workflow-rail .workflow-step:nth-child(n+5) { border-bottom: 0; }
.workflow-rail .workflow-step:hover { background: var(--bg-3); }
.workflow-rail .workflow-step > span {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-4);
  letter-spacing: .06em; font-weight: 500;
  flex-shrink: 0; min-width: 20px;
}
.workflow-rail .workflow-step strong {
  display: block; font-size: 13.5px; font-weight: 500; color: var(--text);
  white-space: nowrap; letter-spacing: -.005em;
}
.workflow-rail .workflow-step small {
  display: block; margin-top: 2px; font-size: 10.5px; color: var(--text-4);
  white-space: nowrap; letter-spacing: -.003em;
}
.workflow-rail .workflow-step.active {
  background: linear-gradient(90deg, rgba(61,91,255,.12) 0%, transparent 90%);
}
.workflow-rail .workflow-step.active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--ikb-bright);
}
.workflow-rail .workflow-step.active > span { color: var(--ikb-bright); }
.workflow-rail .workflow-step.active strong { color: var(--text); font-weight: 600; }
.workflow-rail .workflow-step.done > span { color: var(--good); }
.workflow-rail .workflow-step.done strong {
  color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--text-5);
}

/* 三栏容器 */
.conversation-workbench-layout {
  border-color: var(--line);
  background: var(--bg);
  box-shadow: none;
}
.conversation-panel { background: var(--bg); border-right-color: var(--line); }
.conversation-panel-head { border-bottom-color: var(--line); }
.conversation-panel-head strong { color: var(--text); font-weight: 600; letter-spacing: -.01em; }
.work-status { color: var(--text-3); font-family: var(--mono); }
.workbench-progress { margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--panel) 86%, transparent); }
.workbench-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.workbench-progress strong { color: var(--text); font-size: 13px; font-weight: 600; }
.workbench-progress-detail { color: var(--text-3); font-size: 11px; text-align: right; }
.workbench-progress-track { height: 4px; margin: 12px 0; overflow: hidden; border-radius: 99px; background: var(--line); }
.workbench-progress-track i { display: block; height: 100%; width: 8%; border-radius: inherit; background: var(--ikb-bright); transition: width .25s ease; }
.workbench-progress .outline-action { width: 100%; }
.new-chat-button {
  border-color: rgba(255,255,255,.12); color: var(--text-2);
  background: transparent;
}
.new-chat-button:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); }

/* 聊天流 */
.chat-thread { background: var(--bg); }
.chat-message > span { color: var(--text-3); font-weight: 600; }
.chat-message p {
  color: var(--text-2);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 4px 12px 12px 12px;
  font-size: 13px; line-height: 1.65;
}
.chat-message.from-user p {
  color: #fff;
  background: linear-gradient(135deg, #002FA7 0%, #3D5BFF 100%);
  border-color: transparent;
  border-radius: 12px 4px 12px 12px;
}

/* 选题方向卡片 */
.chat-choice-head strong { color: var(--text); font-weight: 600; }
.chat-choice-head span { color: var(--text-3); }
.chat-choice {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.chat-choice > span { color: var(--ikb-bright); font-weight: 700; }
.chat-choice strong { color: var(--text-2); }
.chat-choice p { color: var(--text-3); }
.chat-choice small { color: var(--text-4); }
.chat-choice footer { gap: 8px; }
.chat-choice button {
  border-color: rgba(61,91,255,.45); color: var(--ikb-bright);
  background: rgba(61,91,255,.08);
  font-weight: 600;
}
.chat-choice button:hover { background: rgba(61,91,255,.16); }
.chat-choice .regenerate-topic { border-color: rgba(255,255,255,.1); color: var(--text-3); background: transparent; }

/* 输入框 */
.composer-shell {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  box-shadow: none;
}
.composer-shell textarea { color: var(--text); }
.composer-shell textarea::placeholder { color: var(--text-4); }
.composer-text-action { color: var(--text-3); }
.composer-text-action:hover { color: var(--ikb-bright); }
.composer-send { background: var(--ikb); color: #fff; border-radius: 9px; }
.composer-send:hover { background: var(--ikb-bright); }

/* 正文画布 */
.article-canvas { background: var(--bg); }
.article-canvas-head { border-bottom-color: var(--line); }
.article-canvas-head h2 { color: var(--text); font-weight: 600; }
.article-canvas-head p { color: var(--text-3); }
.article-canvas-head p i { background: var(--good); }
.canvas-actions { gap: 6px; }
.icon-action {
  border-color: rgba(255,255,255,.1); color: var(--text-3);
  background: transparent;
}
.icon-action:hover { color: var(--ikb-bright); border-color: rgba(61,91,255,.5); }
.version-strip {
  border-bottom-color: var(--line);
  background: var(--bg);
  color: var(--text-3);
}
.version-strip span:first-child { color: var(--text-2); }

/* 当前进度卡 */
.current-work-card {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text-3);
}
.current-work-card span { color: var(--ikb-bright); font-weight: 700; letter-spacing: .06em; }
.current-work-card strong { color: var(--text); }
.current-work-card p { color: var(--text-3); }

/* 编辑器 */
.article-canvas .editor-head { color: var(--text-3); border-bottom-color: var(--line); background: transparent; }
.article-canvas .editor-head span:first-child { color: var(--text-2); }
.article-canvas #article-editor { color: var(--text-2); background: transparent; }
.selection-actions { border-bottom-color: var(--line); }
.selection-actions button {
  border-color: rgba(255,255,255,.1); color: var(--text-3);
  background: transparent;
}
.selection-actions button:hover { color: var(--ikb-bright); border-color: rgba(61,91,255,.45); }
.article-canvas-foot { color: var(--text-4); }
.article-canvas-foot span:last-child { color: var(--good); }

/* 成果侧栏 */
.outcome-panel { background: var(--bg); border-left-color: var(--line); }
.outcome-panel > header strong { color: var(--text-2); }
.outcome-panel > header svg { color: var(--text-4); }
.outcome-panel section { border-bottom-color: var(--line); }
.outcome-panel h3 { color: var(--text-3); font-weight: 600; }
.outline-list span {
  border-color: rgba(61,91,255,.35); color: var(--ikb-bright);
  background: rgba(61,91,255,.08);
}
.outline-list p { color: var(--text-2); }
.version-item { color: var(--text-3); }
.version-item:hover, .version-item.current { border-color: rgba(61,91,255,.4); background: rgba(61,91,255,.07); }
.version-item strong { color: var(--text-2); }
.version-item.current strong { color: var(--ikb-bright); }
.version-item span { color: var(--text-4); }
.generate-next { background: var(--ikb); color: #fff; }
.generate-next:hover { background: var(--ikb-bright); }
.outline-action { border-color: rgba(255,255,255,.12); color: var(--text-2); background: transparent; }
.outline-action:hover { background: rgba(255,255,255,.04); }

/* 响应式断点下的暗色修正 */
@media (max-width: 1100px) {
  .outcome-panel { border-top-color: var(--line); border-left-color: var(--line); }
}
@media (max-width: 760px) {
  #workbench.workbench-page { padding: 12px; }
  .conversation-panel { border-bottom-color: var(--line); }
  .outcome-panel { border-top-color: var(--line); border-bottom-color: var(--line); }
  .workflow-rail { grid-template-columns: repeat(4, 1fr); }
  .workflow-rail .workflow-step:nth-child(4n) { border-right: 0; }
  .workflow-rail .workflow-step:nth-child(n + 5) { border-top: 1px solid var(--line); }
}
/* ============================================================
   13) V3 暗色 · 首页 hero-collage + skill-output-preview 网格骨架
   ============================================================ */

/* 13.1 首页 hero 右侧：六个模块缩略卡堆叠 */
.home-page { padding: 18px 24px 32px; min-height: calc(100dvh - 72px); }
.home-page .v3-hero { gap: 36px; }
.v3-hero-r .hero-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 460px;
}
.hc-card {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: var(--text-2);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  overflow: hidden;
  isolation: isolate;
}
.hc-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,47,167,.18), transparent 60%);
  opacity: 0; transition: opacity 220ms ease; z-index: -1;
}
.hc-card:hover { transform: translateY(-2px); border-color: rgba(61,91,255,.45); background: rgba(255,255,255,.05); }
.hc-card:hover::before { opacity: 1; }
.hc-card .n { font-family: var(--mono); font-size: 10px; color: var(--text-4); letter-spacing: .06em; }
.hc-card .t { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.hc-card .d { font-size: 11px; color: var(--text-3); line-height: 1.45; }
.hc-card.hc-1 { grid-column: span 2; }
.hc-card.hc-3 { grid-row: span 2; padding-top: 22px; }
.hc-card.hc-6 { grid-column: span 2; }

@media (max-width: 1100px) {
  .v3-hero-r .hero-collage { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
  .hc-card.hc-1, .hc-card.hc-3, .hc-card.hc-6 { grid-column: auto; grid-row: auto; }
}
@media (max-width: 720px) {
  .v3-hero-r .hero-collage { grid-template-columns: 1fr; max-width: 100%; }
}

/* 13.2 CTA 行：主按钮 + 次按钮 */
.v3-hero-l .cta-row { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.v3-hero-l .cta-row .primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--ikb-bright);
  color: #fff;
  border-radius: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: -.01em;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.v3-hero-l .cta-row .primary:hover { background: var(--ikb); transform: translateY(-1px); }
.v3-hero-l .cta-row .primary .arr { font-family: var(--mono); font-size: 12px; }
.v3-hero-l .cta-row .secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-weight: 500; font-size: 14px; letter-spacing: -.01em;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}
.v3-hero-l .cta-row .secondary:hover { border-color: var(--line-4); color: var(--ikb-bright); }
.v3-hero-l .cta-row .secondary .arr { font-family: var(--mono); font-size: 12px; }

/* 13.3 diagnose-page：诊断表单页独立容器 */
.diagnose-page { padding: 18px 24px 32px; min-height: calc(100dvh - 72px); }
.diagnose-page .diagnose-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 8px;
}
@media (max-width: 960px) {
  .diagnose-page .diagnose-shell { grid-template-columns: 1fr; gap: 32px; }
}

/* 13.4 skill-empty-grid：技能页右侧骨架容器 */
.skill-empty-grid {
  background: transparent;
  border: none;
  padding: 0;
}
.skill-empty-grid .empty-head {
  margin-bottom: 18px;
}
.skill-empty-grid .empty-head .tag {
  font-family: var(--mono); font-size: 11px; color: var(--text-4);
  letter-spacing: .06em;
}
.skill-empty-grid .empty-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
  line-height: 1.32;
}
.skill-empty-grid .empty-head h2 .serif { font-family: var(--serif); font-style: italic; color: var(--text-2); }
.skill-empty-grid .empty-head p {
  margin: 0;
  font-size: 13px; color: var(--text-3); line-height: 1.6;
}
.empty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.empty-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 18px;
  background: rgba(255,255,255,.025);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.empty-preview > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.empty-preview .ep-tag {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .06em;
  color: var(--text-3);
}
.empty-preview .ep-meta {
  font-family: var(--mono); font-size: 10px;
  color: var(--text-4); letter-spacing: .04em;
}
.empty-foot {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-4); letter-spacing: .04em;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.empty-foot small { color: var(--text-4); }

/* 13.5 标题预览骨架（小红书专用） */
.empty-preview-titles ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.empty-preview-titles li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
}
.empty-preview-titles .ep-num { font-family: var(--mono); font-size: 10px; color: var(--text-4); margin-top: 2px; letter-spacing: .06em; }
.empty-preview-titles strong { display: block; font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 2px; letter-spacing: -.01em; }
.empty-preview-titles p { margin: 0; font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* 13.6 封面预览骨架 */
.empty-preview-cover .ep-cover-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1f3a, #2d3a8a 60%, #0a0f25);
  border: 1px solid rgba(61,91,255,.2);
}
.empty-preview-cover .ep-cover-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.12), transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(61,91,255,.4), transparent 55%);
}
.empty-preview-cover .ep-cover-title {
  position: absolute; left: 14px; top: 22px;
  font-size: 13px; font-weight: 700; color: #fff;
  letter-spacing: -.01em; line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.empty-preview-cover .ep-cover-sub {
  position: absolute; left: 14px; bottom: 16px;
  font-size: 10px; color: rgba(255,255,255,.7);
  font-family: var(--mono);
}

/* 13.7 正文骨架条 */
.empty-preview-body .ep-body-lines { display: flex; flex-direction: column; gap: 6px; }
.empty-preview-body .ep-body-lines i {
  display: block; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(61,91,255,.12));
}

/* 13.8 置顶评论 */
.empty-preview-pin .ep-pin {
  padding: 12px;
  background: rgba(61,91,255,.08);
  border: 1px solid rgba(61,91,255,.2);
  border-radius: 10px;
}
.empty-preview-pin .ep-pin strong { display: block; color: var(--ikb-bright); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.empty-preview-pin .ep-pin p { margin: 0; font-size: 11px; color: var(--text-2); line-height: 1.5; }

/* 13.9 贴图号分镜网格 */
.empty-preview-tietu .tietu-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.empty-preview-tietu .tietu-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(61,91,255,.08)),
    rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 8px;
  transition: transform 180ms ease, border-color 180ms ease;
  cursor: pointer;
}
.empty-preview-tietu .tietu-card:hover { transform: translateY(-2px); border-color: rgba(61,91,255,.4); }
.empty-preview-tietu .tietu-card .tc-n {
  position: absolute; top: 6px; left: 8px;
  font-family: var(--mono); font-size: 9px; color: var(--text-4); letter-spacing: .06em;
}
.empty-preview-tietu .tietu-card .tc-t {
  font-size: 11px; font-weight: 600; color: var(--text-2); letter-spacing: -.01em;
}
.tc-1 { background: linear-gradient(135deg, rgba(61,91,255,.12), rgba(255,255,255,.02)); }
.tc-3 { background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(61,91,255,.05)); }
.tc-5 { background: linear-gradient(135deg, rgba(0,47,167,.18), rgba(255,255,255,.02)); }

/* 13.10 风格 chip 行 */
.empty-preview-style .style-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.empty-preview-style .style-chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px;
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms ease;
  font-family: inherit;
}
.empty-preview-style .style-chip:hover {
  background: rgba(61,91,255,.12);
  border-color: rgba(61,91,255,.4);
  color: var(--ikb-bright);
  transform: translateY(-1px);
}

/* 13.11 人物模式 */
.empty-preview-portrait .portrait-row {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start;
}
.empty-preview-portrait .portrait-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--ikb-bright), #002FA7);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 4px rgba(61,91,255,.12);
}
.empty-preview-portrait .portrait-dot.portrait-off { background: rgba(255,255,255,.06); box-shadow: none; }
.empty-preview-portrait .portrait-row strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.empty-preview-portrait .portrait-row p { margin: 0; font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* 13.12 tip-list 通用 */
.empty-preview .tip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.empty-preview .tip-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  padding: 8px 0; border-top: 1px solid rgba(255,255,255,.04);
}
.empty-preview .tip-list li:first-child { border-top: 0; padding-top: 0; }
.empty-preview .tip-list .tip-n { font-family: var(--mono); font-size: 10px; color: var(--ikb-bright); letter-spacing: .06em; margin-top: 2px; }
.empty-preview .tip-list strong { display: block; font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 2px; letter-spacing: -.01em; }
.empty-preview .tip-list small { display: block; font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* 13.13 爆文检测 · 分数环 */
.empty-preview-score .score-ring-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.empty-preview-score .score-ring {
  position: relative; width: 80px; height: 80px;
}
.empty-preview-score .score-ring svg { width: 100%; height: 100%; }
.empty-preview-score .score-ring .score-arc { animation: ringPulse 2s ease-out infinite; }
@keyframes ringPulse {
  0%, 100% { stroke-dashoffset: 213.6; }
  50% { stroke-dashoffset: 150; }
}
.empty-preview-score .score-ring strong {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 600; color: var(--text);
  letter-spacing: -.02em;
}
.empty-preview-score .score-ring span {
  position: absolute; bottom: -2px; left: 0; right: 0;
  text-align: center; font-family: var(--mono); font-size: 9px; color: var(--text-4);
  letter-spacing: .06em;
}
.empty-preview-score .score-summary .status-chip {
  display: inline-block;
  padding: 3px 10px; font-size: 10px;
  font-family: var(--mono); letter-spacing: .06em;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  color: var(--text-3); border-radius: 999px;
}
.empty-preview-score .score-summary p { margin: 8px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.55; }

/* 13.14 维度评分条 */
.empty-preview-dims .dim-skeleton { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.empty-preview-dims .dim-skeleton li {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center;
}
.empty-preview-dims .dk { font-size: 11px; color: var(--text-3); }
.empty-preview-dims .db {
  display: block; height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.empty-preview-dims .db i {
  display: block; height: 100%;
  background: linear-gradient(90deg, rgba(61,91,255,.35), rgba(61,91,255,.1));
  transition: width 600ms ease;
}

/* 13.15 修改建议 */
.empty-preview-suggestions .suggestion-skeleton { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.empty-preview-suggestions .suggestion-skeleton li {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
}
.empty-preview-suggestions .ss-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--ikb-bright);
  letter-spacing: .06em;
  background: rgba(61,91,255,.12);
  border-radius: 4px;
  text-align: center;
  padding: 2px 0;
  margin-top: 1px;
}
.empty-preview-suggestions strong { display: block; font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.empty-preview-suggestions p { margin: 0; font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* 13.16 start-templates（公众号创作初始 3 方向） */
.start-templates {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  border-radius: 12px;
  padding: 16px;
}
.start-templates > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.start-templates > header span {
  font-family: var(--mono); font-size: 10px; color: var(--ikb-bright); letter-spacing: .06em;
}
.start-templates > header em {
  font-style: normal; font-size: 11px; color: var(--text-4);
}
.start-template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.start-template {
  display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start;
  text-align: left;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  color: var(--text-2);
  font-family: inherit;
  cursor: pointer;
  transition: all 200ms ease;
}
.start-template:hover {
  background: rgba(61,91,255,.08);
  border-color: rgba(61,91,255,.4);
  transform: translateY(-1px);
}
.start-template .n {
  font-family: var(--mono); font-size: 10px; color: var(--text-4); letter-spacing: .06em; margin-top: 2px;
}
.start-template strong { display: block; font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: -.01em; margin-bottom: 4px; }
.start-template p { grid-column: 2; margin: 0; font-size: 11px; color: var(--text-3); line-height: 1.5; }
.start-template em {
  grid-column: 2;
  display: inline-block; margin-top: 6px;
  font-style: normal; font-size: 10px;
  color: var(--text-4);
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
}
.start-templates > footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-family: var(--mono); font-size: 10px; color: var(--text-4); letter-spacing: .04em;
}
.start-templates > footer a {
  font-family: var(--mono); font-size: 10px; color: var(--ikb-bright);
  text-decoration: none;
}
.start-templates > footer a:hover { text-decoration: underline; }

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

/* 13.17 brand 区域可点击 */
.v3-topbar .brand a {
  display: flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
}
.v3-topbar .brand a:hover .name { color: var(--ikb-bright); }

/* 13.18 移动端 empty-grid 折叠 */
@media (max-width: 720px) {
  .empty-grid { grid-template-columns: 1fr; }
  .home-page, .diagnose-page { padding: 12px; }
}

/* ================================================================
   14. r5 (2026-09-02): 结果渲染子卡压回 V3 暗色 + hover 微动效
   ----------------------------------------------------------------
   根因：app.js 运行时渲染走 style.css / taste-chatgpt.css 的浅色默认
   （.suggestion-list article → #fff、.ledger-list > div → #f1f3f6、
    .issue-list li → #fff8e8、.detector-score 轨道 → #e8e8ed 土金条）。
   glass-theme 遗留的 .hit-scores/.hit-suggestions/.hit-ledger 结构
   从未被 app.js 采用（渲染用的是裸 .detector-score / .suggestion-list
   article / .ledger-list > div），故按真实 DOM 强压。
   ================================================================ */

/* 14.1 hit 八维评分行（轨道 #e8e8ed 亮灰 + 土金 #e2bd7c 条 → V3 暗轨 + IKB 蓝条） */
#hit-result .detector-score {
  border-radius: 8px;
  transition: background 180ms cubic-bezier(.22, .61, .36, 1), border-color 180ms cubic-bezier(.22, .61, .36, 1);
}
#hit-result .detector-score > div { background: var(--bg-3) !important; }
#hit-result .detector-score i {
  background: linear-gradient(90deg, var(--ikb), var(--ikb-bright)) !important;
  box-shadow: 0 0 8px var(--ikb-glow);
}
#hit-result .detector-score small { color: var(--text-3) !important; }
/* hover 高亮反馈：整行蓝晕底 + 名称提亮 + 进度条辉光 */
#hit-result .detector-score:hover {
  background: linear-gradient(90deg, rgba(61, 91, 255, .07), transparent 72%);
}
#hit-result .detector-score:hover span { color: var(--ikb-bright); }
#hit-result .detector-score:hover i { box-shadow: 0 0 12px var(--ikb-glow); }

/* 14.2 hit 优先修改建议卡（taste-chatgpt.css .suggestion-list article → #fff） */
#hit-result .suggestion-list article {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  border-radius: 8px;
  transition: background 180ms cubic-bezier(.22, .61, .36, 1), border-color 180ms cubic-bezier(.22, .61, .36, 1);
}
#hit-result .suggestion-list article:hover {
  background: var(--bg-3) !important;
  border-color: rgba(61, 91, 255, .35) !important;
}
/* P0/P1/P2 渲染时无 class 无法按级配色：统一红系表达“优先修改”语义 */
#hit-result .suggestion-list article > span { color: var(--bad) !important; }
#hit-result .suggestion-list article strong { color: var(--text) !important; }
#hit-result .suggestion-list article p { color: var(--text-3) !important; }

/* 14.3 hit 事实声明账本（style.css .ledger-list > div → var(--surface-soft) 浅灰） */
#hit-result .ledger-list > div {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  transition: background 180ms cubic-bezier(.22, .61, .36, 1), border-color 180ms cubic-bezier(.22, .61, .36, 1);
}
#hit-result .ledger-list > div:hover {
  background: var(--bg-3) !important;
  border-color: rgba(61, 91, 255, .35) !important;
}
#hit-result .ledger-list > div > span {
  background: var(--bg-3) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--text-3) !important;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .04em; padding: 3px 8px; border-radius: 4px;
  width: max-content;
}
#hit-result .ledger-list > div p { color: var(--text-2) !important; }

/* 14.4 xhs 发布前检查（style.css .issue-list li → #fff8e8 米黄 / .ok → #ecf9ef 绿） */
#xhs-result .issue-list li {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 7px;
  color: var(--text-2) !important;
  transition: background 180ms cubic-bezier(.22, .61, .36, 1), border-color 180ms cubic-bezier(.22, .61, .36, 1);
}
#xhs-result .issue-list li:hover {
  background: var(--bg-3) !important;
  border-color: rgba(255, 176, 32, .35) !important;
}
#xhs-result .issue-list li.ok {
  background: rgba(63, 185, 80, .08) !important;
  border-color: rgba(63, 185, 80, .3) !important;
  color: var(--good) !important;
}
#xhs-result .issue-list li.ok:hover {
  background: rgba(63, 185, 80, .12) !important;
  border-color: rgba(63, 185, 80, .45) !important;
}

/* 14.5 xhs 标题方案卡统一 V3 暗卡 + hover（防非 selected 卡回落 taste #fff） */
#xhs-result .title-option {
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  border-radius: 8px;
  transition: background 180ms cubic-bezier(.22, .61, .36, 1),
              border-color 180ms cubic-bezier(.22, .61, .36, 1),
              transform 160ms cubic-bezier(.22, .61, .36, 1);
}
#xhs-result .title-option:hover {
  background: var(--bg-3) !important;
  border-color: rgba(61, 91, 255, .5) !important;
  transform: translateY(-1px);
}
#xhs-result .title-option.selected {
  background: var(--ikb-soft) !important;
  border-color: var(--ikb-bright) !important;
}
#xhs-result .title-option > span { color: var(--text-3) !important; }
#xhs-result .title-option strong { color: var(--text) !important; }
#xhs-result .title-option small { color: var(--text-3) !important; }

@media (prefers-reduced-motion: reduce) {
  #xhs-result .title-option,
  #hit-result .detector-score,
  #hit-result .suggestion-list article,
  #hit-result .ledger-list > div,
  #xhs-result .issue-list li { transition: none !important; }
  #xhs-result .title-option:hover { transform: none; }
}

/* 14 页面级白色光晕强压（V3 r6） —— 干掉 taste-chatgpt 的 radial 白雾 */
.workbench-page {
  background: var(--bg) !important;
  background-image: none !important;
}
.workbench-page::before { content: none !important; }
.skill-page::before,
.entry-panel::before,
.report-page::before,
.morning-generator-page::before {
  content: none !important;
  background: none !important;
}

/* 15 workflow-rail 可点导航（V3 r7）—— button reset + done 回看反馈 */
#workbench .workflow-rail .workflow-step {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: default;
}
#workbench .workflow-rail .workflow-step:focus-visible {
  outline: 1.5px solid var(--ikb-bright);
  outline-offset: -2px;
}
#workbench .workflow-rail .workflow-step.clickable { cursor: pointer; }
#workbench .workflow-rail .workflow-step.clickable:hover {
  background: rgba(61, 91, 255, .08);
}
#workbench .workflow-rail .workflow-step.clickable:hover > span { color: var(--ikb-bright); }
#workbench .workflow-rail .workflow-step.clickable:hover strong { color: var(--text); }
#workbench .workflow-rail .workflow-step[tabindex="-1"] { opacity: .42; }
#workbench .workflow-rail .workflow-step.done { opacity: .78; }

/* 16 底部行动条 flow-actionbar（V3 r7）—— 主推进常驻 */
.conversation-workbench-layout .flow-actionbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.flow-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
.flow-dot {
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ikb-bright);
  box-shadow: 0 0 0 3px rgba(61, 91, 255, .16);
}
.flow-status > div { min-width: 0; }
.flow-status strong {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: -.01em;
}
.flow-status > div > span {
  display: block; margin-top: 2px;
  font-size: 12px; color: var(--text-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: min(560px, 52vw);
}
.flow-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.flow-actions button, .flow-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background .18s cubic-bezier(.22,.61,.36,1), color .18s cubic-bezier(.22,.61,.36,1), border-color .18s cubic-bezier(.22,.61,.36,1);
}
.flow-actions svg { width: 15px; height: 15px; }
.flow-primary {
  border: 0;
  color: #fff;
  background: var(--ikb-bright);
  font-weight: 600;
}
.flow-primary:hover:not(:disabled) { background: var(--ikb-bright-2, #3D5BFF); }
.flow-primary:disabled { opacity: .4; cursor: not-allowed; }
.flow-secondary {
  border: 1px solid var(--line);
  color: var(--text-2);
  background: transparent;
}
.flow-secondary:hover { border-color: rgba(255, 255, 255, .18); color: var(--text); background: var(--bg-3); }
.flow-secondary.publish {
  border-color: rgba(61, 91, 255, .55);
  color: var(--ikb-bright);
  background: rgba(61, 91, 255, .08);
}
.flow-secondary.publish:hover { background: rgba(61, 91, 255, .16); color: #7D93FF; }
.flow-secondary[hidden] { display: none; }
.flow-primary[hidden] { display: none; }

/* 17 审校报告卡 score-report（V3 r7）—— 复用爆文检测视觉语言 */
.score-report { margin: 18px 28px 0; }
.score-report[hidden] { display: none; }
.score-report-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}
.score-ring {
  --p: 0;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: conic-gradient(var(--ikb-bright) calc(var(--p) * 1%), var(--bg-3) 0);
  display: grid; place-items: center;
  position: relative;
}
.score-ring::before {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 50%;
  background: var(--bg-2);
}
.score-ring > div { position: relative; text-align: center; }
.score-ring strong {
  display: block;
  font-family: var(--mono);
  font-size: 34px; font-weight: 600; color: var(--text);
  line-height: 1.1; letter-spacing: -.02em;
}
.score-ring span {
  display: block; margin-top: 4px;
  font-size: 11px; color: var(--text-4); letter-spacing: .08em;
}
.score-body { min-width: 0; }
.score-body header { margin-bottom: 14px; }
.score-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.score-badge.ok { color: var(--good); background: rgba(63, 185, 80, .12); }
.score-badge.revise { color: #E8A13A; background: rgba(232, 161, 58, .12); }
.score-body h3 {
  margin: 9px 0 6px;
  font-size: 16px; font-weight: 600; color: var(--text);
  letter-spacing: -.01em;
}
.score-body header p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-3); }
.score-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.srow { display: grid; grid-template-columns: 54px 1fr 26px; align-items: center; gap: 10px; }
.srow span { font-size: 12px; color: var(--text-3); }
.srow em { font-family: var(--mono); font-size: 11px; font-style: normal; color: var(--text-4); text-align: right; }
.sbar { height: 4px; border-radius: 2px; background: var(--bg-3); overflow: hidden; }
.sbar i {
  display: block; height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ikb-bright), #3D5BFF);
}
.score-fixes { margin: 14px 0 0; padding: 0; list-style: none; }
.score-fixes-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.score-fixes-head h4 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.score-fixes li {
  position: relative;
  margin: 0 0 8px; padding: 10px 12px 10px 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-3);
  font-size: 12.5px; line-height: 1.55; color: var(--text-2);
}
.score-fixes li::before {
  content: "";
  position: absolute; left: 12px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #E8A13A;
}

/* 18 flash-ring 回看定位反馈 */
.flash-ring { animation: flashRing 1.4s ease-out; }
@keyframes flashRing {
  0% { box-shadow: 0 0 0 0 rgba(61, 91, 255, .5); }
  100% { box-shadow: 0 0 0 14px rgba(61, 91, 255, 0); }
}

/* 19 响应式收敛 */
@media (max-width: 1100px) {
  .score-report { margin-left: 16px; margin-right: 16px; }
}
@media (max-width: 760px) {
  .conversation-workbench-layout .flow-actionbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .flow-status > div > span { max-width: none; }
  .flow-actions { justify-content: flex-end; flex-wrap: wrap; }
  .score-report-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }
  .score-ring { margin: 0 auto; }
  .score-dims { grid-template-columns: 1fr; }
  .workflow-rail { grid-template-columns: repeat(2, 1fr); }
}

/* 20 V3 r7 工作台配图块压暗（V3 暗色 · 强压 style.css 浅色 wrap + 卡片） */
#workbench .article-canvas .generated-images {
  background: var(--bg-2) !important;
  border-color: var(--line) !important;
}
#workbench .article-canvas .image-section-head h3 { color: var(--text) !important; }
#workbench .article-canvas .image-section-head { color: var(--text-3) !important; }

/* Skill execution evidence: quiet, scannable, and consistent with the workbench. */
#workbench-execution-evidence { margin: 14px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text-2); }
#workbench-execution-evidence summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); }
#workbench-execution-evidence .skill-gate-note { margin: 10px 0; color: var(--text-3); font-size: 12px; }
#workbench-execution-evidence .skill-evidence-list { display: grid; gap: 6px; margin: 10px 0 14px; padding: 0; list-style: none; }
#workbench-execution-evidence .skill-evidence-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 7px 9px; border-radius: 7px; background: var(--surface-2); font-size: 12px; }
#workbench-execution-evidence .skill-evidence-list li span { color: var(--good); }
#workbench-execution-evidence .skill-evidence-list li.skill-evidence-blocked span { color: var(--danger); }
#workbench-execution-evidence .skill-evidence-list li small { grid-column: 1 / -1; color: var(--text-4); font-size: 11px; }
#workbench .article-canvas .image-grid a {
  background: var(--bg-3) !important;
  border-color: var(--line) !important;
  color: var(--text-2) !important;
}
#workbench .article-canvas .image-grid a > span {
  display: block !important;
  padding: 10px 14px !important;
  border-top: 1px solid var(--line) !important;
}
#workbench .article-canvas .image-grid strong { color: var(--text) !important; }
#workbench .article-canvas .image-grid small { color: var(--text-3) !important; }
#workbench .article-canvas .image-grid img { background: var(--bg-2) !important; }

/* =========================================================
   21 V3 r8 全站统一收敛（白底清剿 · 数据态防御性强压）
   —— 目标：taste-chatgpt.css 遗留浅色（--taste-soft #f1f3f6 /
   rgba(255,255,255,.52-.94)）在「渲染结果态 / 弹层内部」的漏网点，
   一律压回 V3 暗色 token。按真实渲染 DOM 圈定：
   #xhs-result（置顶评论/低压 CTA 两格）、#tie-result（画幅/图片/
   一致性摘要条）、.api-settings-card（API 配置白面板+白输入+蓝绿
   icon+状态 chip）、.wallet-card .admin-recharge（管理员充值控件）。
   新增任何浅色 DOM 都必须在此追加同款 !important 强压。
   ========================================================= */

/* 21.1 小红书结果：.result-meta-grid > div 两格（taste 锁 --taste-soft 亮灰） */
#xhs-result .result-meta-grid > div {
  background: var(--bg-3) !important;
  background-color: var(--bg-3) !important;
  border-right: 1px solid var(--line) !important;
}

/* 21.2 贴图号结果：.plan-summary 三格摘要条（画幅/图片/人物一致性） */
#tie-result .plan-summary {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  background: var(--bg-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
#tie-result .plan-summary > div {
  padding: 12px 16px !important;
  background: transparent !important;
  background-color: transparent !important;
  border-right: 1px solid var(--line) !important;
}
#tie-result .plan-summary > div:last-child { border-right: 0 !important; }
#tie-result .plan-summary span {
  display: block !important;
  font-family: var(--mono);
  font-size: 10px !important;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3) !important;
}
#tie-result .plan-summary strong {
  display: block !important;
  margin-top: 4px !important;
  font-size: 13px !important;
  font-weight: 500;
  color: var(--text) !important;
}

/* 21.3 API 配置弹层内部：.api-config-group 白面板 → 暗卡 + 白输入 → 暗输入 */
.api-settings-card .api-config-group {
  background: var(--bg-3) !important;
  background-color: var(--bg-3) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.api-settings-card .config-group-head h3 { color: var(--text) !important; }
.api-settings-card .config-group-head p { color: var(--text-3) !important; }
.api-settings-card .api-config-group label { color: var(--text-3) !important; }
.api-settings-card .api-config-group input {
  background: var(--bg-2) !important;
  background-color: var(--bg-2) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  color-scheme: dark;
  box-shadow: none !important;
}
.api-settings-card .api-config-group input:focus { border-color: var(--ikb-bright) !important; outline: none; }
.api-settings-card .api-config-group input::placeholder { color: var(--text-4) !important; }
/* config-icon 蓝绿方块 → 统一 IKB 克莱因蓝（V3 唯一强调色） */
.api-settings-card .config-icon { background: var(--ikb) !important; color: #fff !important; }
/* connection-status 状态 chip */
.api-settings-card .connection-status {
  color: var(--text-3) !important;
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 2px 10px !important;
  font-size: 11px !important;
  font-weight: 500;
}
/* test-provider 测试按钮 → V3 次要按钮 */
.api-settings-card .test-provider {
  background: var(--bg-4) !important;
  color: var(--text-2) !important;
  border: 1px solid var(--line-3) !important;
  border-radius: 8px !important;
}
.api-settings-card .test-provider:hover { border-color: var(--ikb-bright) !important; color: var(--text) !important; }

/* 21.4 管理员充值区控件（taste 玻璃锁白 → 暗） */
.wallet-card .admin-recharge input,
.wallet-card .admin-recharge select {
  background: var(--bg-2) !important;
  background-color: var(--bg-2) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  color-scheme: dark;
  box-shadow: none !important;
}
.wallet-card .admin-recharge label { color: var(--text-3) !important; }

/* 21.5 报告/结果遗留类防御组（taste 玻璃白卡兜底——即便旧渲染结构回归也不会变白） */
.report-hero, .report-section, .workbench-result,
.metric-card, .judgment-card, .signal-section,
.benchmark-section, .route-panel, .takeaways-section,
.output-empty {
  background: var(--bg-2) !important;
  background-color: var(--bg-2) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
.report-hero h1, .report-hero h2, .metric-card h3, .judgment-card h3,
.signal-section h3, .benchmark-section h3, .route-panel h3,
.takeaways-section h3 { color: var(--text) !important; }
.report-hero p, .metric-card p, .judgment-card p, .signal-section p,
.benchmark-section p, .route-panel p, .takeaways-section p { color: var(--text-2) !important; }
.output-empty h2 { color: var(--text) !important; }
.output-empty p { color: var(--text-3) !important; }


/* --- tokens.css --- */
/*
 * tokens.css — 宇宙创作者工作台 · 苹果浅色设计令牌层
 * 作用：覆盖 glass-theme.css 的暗色 :root 变量，把整套深空驾驶舱翻成苹果浅色。
 * 加载顺序：必须位于 style.css / taste-chatgpt.css / admin.css / glass-theme.css 之后。
 * 长期约定：新增功能只引用本文件的 token，不要硬编码颜色，防止 CSS 再次腐烂。
 * 暗色模式：给 <html data-theme="dark"> 即可整站切回深空（见文末 [data-theme="dark"] 块）。
 */

:root {
  /* 画布与表面 */
  --bg: #fbfbfd;
  --bg-2: #ffffff;
  --bg-3: #f5f5f7;
  --bg-4: #ececf0;

  /* 文本（苹果近黑 / 灰阶层级） */
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #6e6e73;
  --text-4: #86868b;
  --text-5: #aeaeb2;

  /* 分隔线：浅色用黑色透明，替代暗色的白色透明 */
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .12);
  --line-3: rgba(0, 0, 0, .16);
  --line-4: rgba(0, 0, 0, .24);

  /* IKB 克莱因蓝：唯一品牌色 */
  --ikb: #002FA7;
  --ikb-bright: #002FA7;             /* 关闭霓虹亮蓝，统一为实心 IKB */
  --ikb-bright-2: #002FA7;           /* 关闭 .flow-primary:hover 的霓虹回退 */
  --ikb-glow: rgba(0, 47, 167, .14); /* 去掉发光，改为极淡蓝晕 */
  --ikb-soft: rgba(0, 47, 167, .08);

  /* 语义色（贴近苹果系统色，国内习惯：支出红/收入绿） */
  --good: #248a3d;
  --bad: #d70015;
  --warn: #b25000;

  /* 字体栈：自托管字体（见 fonts.css），不依赖境外 CDN，也不依赖用户机器装没装
     --sans  → 拉丁 Inter / 中文 Noto Sans SC
     --serif → 标题用真宋体（思源宋体），这是「宋黑对照」的骨架
     --mono  → 界面标签、编号、数字走 Inter + tabular，不再用 Consolas（等宽是最重的机器味来源）
     --code  → 只有真正的代码块才用等宽 */
  --sans: "UW Inter", "UW Sans SC", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "UW Serif SC", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --mono: "UW Inter", "UW Sans SC", "SF Mono", Menlo, Consolas, monospace;
  --code: "SF Mono", "JetBrains Mono", Menlo, Consolas, "UW Sans SC", monospace;

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  /* 柔和分层阴影，替代发光 */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .07);

  /* 对齐 style.css 浅色骨架的变量，保证报告/认证页配色一致 */
  --paper: #fbfbfd;
  --ink: #1d1d1f;
  --sub: #6e6e73;
  --blue: #002FA7;
  --blue-soft: rgba(0, 47, 167, .08);
  --sage: #2f7d4f;
  --sage-soft: rgba(47, 125, 79, .10);
  --orange: #b25000;
  --orange-soft: rgba(178, 80, 0, .10);
  --red: #d70015;
  --red-soft: rgba(215, 0, 21, .10);
}

/* 暗色模式（未来钩子，默认不启用；切回深空驾驶舱原貌） */
[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0A0A0B;
  --bg-3: #131316;
  --bg-4: #1C1C20;
  --text: #FFFFFF;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --text-4: #52525B;
  --text-5: #3F3F46;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .10);
  --line-3: rgba(255, 255, 255, .16);
  --line-4: rgba(255, 255, 255, .24);
  --ikb: #002FA7;
  --ikb-bright: #3D5BFF;
  --ikb-glow: rgba(61, 91, 255, .32);
  --ikb-soft: rgba(61, 91, 255, .08);
  --good: #3FB950;
  --bad: #FF5C5C;
  --warn: #FFB020;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}


/* --- theme-apple.css --- */
/*
 * theme-apple.css — 苹果浅色润色层
 * 在 tokens.css 之上做细部打磨：去衬线斜体标题、去深蓝 hero 渐变、统一选中色等。
 * 仅做"锦上添花"的定向覆盖，不重写任何布局，不触碰 app.js 依赖的 class / id。
 */

/* 1. 标题去衬线斜体，改无衬线 + 600 字重 + 负字距（苹果风） */
.serif {
  font-style: normal !important;
  font-weight: 600 !important;
  font-family: var(--sans) !important;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1, h2, h3 { letter-spacing: -0.02em; }
.v3-diag-l h1,
.v3-section .head h2,
.wb-intro h1,
.skill-empty h2,
.morning-intro h1 {
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

/* 2. 空封面深蓝渐变 → 浅色 IKB 渐变（原 .empty-preview-cover 在暗色下是深蓝块） */
.empty-preview-cover {
  background: linear-gradient(135deg, rgba(0, 47, 167, .10), rgba(0, 47, 167, .02) 60%, #f5f5f7) !important;
  border: 1px solid rgba(0, 47, 167, .14) !important;
}
.empty-preview-cover .ep-cover-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 47, 167, .10), transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(0, 47, 167, .06), transparent 55%) !important;
}
.empty-preview-cover .ep-cover-title { color: var(--ikb) !important; }

/* 3. 用户聊天气泡：实心 IKB（去掉霓虹渐变） */
.chat-message.from-user p {
  background: var(--ikb) !important;
  color: #fff !important;
}

/* 4. 文本选中色（苹果蓝） */
::selection { background: rgba(0, 47, 167, .18); color: var(--text); }

/* 5. 滚动条浅色化 */
* { scrollbar-color: rgba(0, 0, 0, .18) transparent; }

/* 6. 修掉翻色后"深底深字"看不见的实心按钮（原背景走 var(--text)，文字走 #0A0A0B） */
.v3-hero-l .cta-row .primary,
.v3-diag-r .actions .solid {
  background: var(--ikb) !important;
  color: #fff !important;
}

/* 7. 进度条去掉霓虹蓝渐变，改为实心 IKB */
.sbar i { background: var(--ikb) !important; }


/* --- components.css --- */
/*
 * components.css — 可复用组件层（给"以后加功能"用）
 * 命名前缀 .uw- 避免与现有 class 冲突。全部只引用 tokens.css 变量，零硬编码颜色。
 * 用法：新增模块时写 <div class="uw-card">…</div> 即可，不要新硬编码颜色。
 * 现有页面（v3- / skill- / admin- / wallet- 等）仍由旧表 + tokens 覆盖驱动，不依赖本文件。
 */

.uw-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 18px;
}
.uw-card--inset { background: var(--bg-3); box-shadow: none; }

.uw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 980px;
  font-size: 15px; font-weight: 500; font-family: var(--sans);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.uw-btn:hover { background: var(--bg-3); }
.uw-btn:active { transform: translateY(1px); }
.uw-btn--primary { background: var(--ikb); color: #fff; border-color: transparent; }
.uw-btn--primary:hover { background: #00248f; }
.uw-btn--ghost { background: transparent; }

.uw-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--bg-2); color: var(--text); font-size: 16px; font-family: var(--sans);
  outline: none;
}
.uw-input:focus { border-color: var(--ikb); box-shadow: 0 0 0 3px var(--ikb-soft); }

.uw-tag {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 980px; font-size: 12px; background: var(--bg-3); color: var(--text-2);
}
.uw-tag--accent { background: var(--ikb-soft); color: var(--ikb); }

.uw-badge {
  display: inline-flex; align-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 980px; font-size: 12px; font-weight: 600; background: var(--ikb); color: #fff;
}

.uw-stat { display: flex; flex-direction: column; gap: 4px; }
.uw-stat__num { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.uw-stat__label { font-size: 13px; color: var(--text-3); }

.uw-progress { height: 8px; border-radius: 980px; background: var(--bg-3); overflow: hidden; }
.uw-progress > i { display: block; height: 100%; background: var(--ikb); border-radius: inherit; }

.uw-modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .18); backdrop-filter: blur(8px); z-index: 60; }
.uw-modal {
  width: min(460px, 100%); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 20px; box-shadow: var(--shadow-2); padding: 22px;
}

.uw-row { display: flex; gap: 12px; align-items: center; }
.uw-stack { display: flex; flex-direction: column; gap: 12px; }
.uw-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.uw-muted { color: var(--text-3); }
.uw-dim { color: var(--text-4); }


/* --- layout.css --- */
/* ============================================================
   layout.css — 统一布局层 / Unified Layout Layer
   ------------------------------------------------------------
   解决的核心问题：7 个页面各自造留白尺度（实测 18px ~ 96px、左右 24 ~ 40px），
   同一层级内容差 3 倍，看起来像几个产品硬拼。

   本层只做三件事：
   1. 定义布局 token（--shell-max / --shell-pad / --stack / --measure）
   2. 所有页面套统一容器，杜绝留白失控
   3. 首页 / 诊断 / 报告 三页的结构性优化

   铁律：不写硬编码颜色，全部引用 tokens.css 变量。
   加载顺序：必须在 glass-theme.css 之后。
   ============================================================ */

:root {
  /* ── 布局尺度 ───────────────────────────── */
  --shell-max: 1280px;                    /* 页面最大宽度 */
  --shell-pad: clamp(20px, 3.2vw, 40px);  /* 页面左右安全边距 */
  --shell-top: clamp(24px, 3vw, 40px);    /* 页面顶部留白 */
  --stack: 24px;                          /* 区块垂直节奏 */
  --stack-lg: 40px;                       /* 大区块节奏 */
  --measure: 72ch;                        /* 正文最佳阅读宽度 */
  --nav-h: 56px;                          /* 顶栏高度 */

  /* ── 圆角（苹果大圆角梯度）───────────────── */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* ── 柔和分层阴影（取代发光）─────────────── */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-3: 0 4px 12px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .08);

  /* ── 动效曲线（指数缓动，不用回弹）────────── */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .28s;
}

/* ============================================================
   1. 统一容器 — 所有页面套同一把尺
   ============================================================ */

.home-page,
.diagnose-page,
.skill-page,
.workbench-page,
.report-page {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  padding-top: var(--shell-top);
  /* 解锁暗色主题遗留的固定高度锁 */
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* 页面顶部那行 Workspace 编号 meta 统一节奏 */
.v3-meta {
  margin-bottom: var(--stack);
  padding-inline: 0;
}

/* 所有页面主标题统一：去掉衬线斜体，改用系统字体负字距 */
.home-page h1,
.diagnose-page h1,
.skill-page h1,
.v3-hero-l h1,
.diagnose-shell h1 {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", Roboto, sans-serif) !important;
  font-style: normal !important;
  letter-spacing: -.022em;
  line-height: 1.12;
}

.home-page .serif,
.diagnose-page .serif,
.skill-page .serif,
.v3-modules .serif,
.v3-hero-l .serif {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit;
}

/* 统一主 CTA：四个页面的主按钮长得一样 */
.v3-hero-l .cta-row .primary,
.v3-diag-r .actions .solid,
.skill-primary,
.flow-primary,
.composer-send {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -.01em;
  background: var(--ikb) !important;
  color: #fff !important;
  border: none;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.v3-hero-l .cta-row .primary:hover,
.v3-diag-r .actions .solid:hover,
.skill-primary:hover,
.flow-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  filter: brightness(1.06);
}
.v3-hero-l .cta-row .primary:active,
.skill-primary:active { transform: translateY(0); }

/* ============================================================
   2. 首页 — 解锁高度 + 节奏重排
   ============================================================ */

.home-page .v3-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(8px, 2vw, 24px) var(--stack-lg);
}

.home-page .v3-hero-l .lede {
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.6;
}

/* 首页 hero 右栏：6 张小卡网格重排为 3×2，去掉悬浮动效噪音 */
.home-page .hero-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-page .hc-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, .07));
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.home-page .hc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.home-page .hc-card .n {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-3, #86868b);
  letter-spacing: .04em;
}
.home-page .hc-card .t { font-size: 14px; font-weight: 590; }
.home-page .hc-card .d { font-size: 12px; color: var(--text-3, #86868b); line-height: 1.4; }

/* 压掉 glass-theme 的错落 span（hc-1/hc-6 横跨2列、hc-3 纵跨2行）——统一 3×2 等分 */
.home-page .hc-card.hc-1,
.home-page .hc-card.hc-3,
.home-page .hc-card.hc-6 {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* 首页去重：hero 六卡与 v3-modules 内容完全重复，只保留「最近记录」条 */
.home-page .v3-modules .head,
.home-page .v3-modules .modlist { display: none !important; }
.home-page .v3-modules {
  border-top: 1px solid var(--line, rgba(0, 0, 0, .07));
  margin-top: var(--stack-lg);
}
.home-page .v3-modules .recent-line { margin-top: 0; border-top: none; padding-block: 18px; }

/* 首页「六个工具」列表：统一卡片网格 */
.home-page .v3-modules { padding-block: var(--stack-lg); }
.home-page .v3-modules .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--stack);
}
.home-page .modlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.home-page .mod {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num name arrow" "desc desc desc" "stat stat stat";
  gap: 6px 12px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, .07));
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.home-page .mod:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.home-page .mod .num { grid-area: num; font-size: 11px; color: var(--text-3, #86868b); font-variant-numeric: tabular-nums; }
.home-page .mod .name { grid-area: name; font-size: 15px; font-weight: 590; }
.home-page .mod .desc { grid-area: desc; font-size: 13px; line-height: 1.5; color: var(--text-2, #515154); }
.home-page .mod .stat { grid-area: stat; font-size: 11px; color: var(--text-3, #86868b); }
.home-page .mod .arrow { grid-area: arrow; color: var(--text-3, #86868b); transition: transform var(--dur) var(--ease); }
.home-page .mod:hover .arrow { transform: translateX(3px); color: var(--ikb); }

/* ── 首页「快速开始」注入区（DOM 由 flow.js 注入）── */
.uw-quickstart { margin-block: var(--stack) var(--stack-lg); }
.uw-quickstart__title {
  font-size: 13px;
  font-weight: 590;
  color: var(--text-3, #86868b);
  letter-spacing: .01em;
  margin-bottom: 12px;
}
.uw-quickstart__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.uw-quickstart__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, .07));
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.uw-quickstart__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--ikb) 30%, transparent);
}
.uw-quickstart__icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ikb) 9%, transparent);
  color: var(--ikb);
}
.uw-quickstart__icon svg { width: 17px; height: 17px; }
.uw-quickstart__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.uw-quickstart__body strong { font-size: 14px; font-weight: 590; }
.uw-quickstart__body span { font-size: 12px; color: var(--text-3, #86868b); }

/* ============================================================
   3. 诊断页 — 工作台双栏：左输入（主操作），右完整报告预览
      （替代旧「单列居中落地页」——那是营销页思维，不是工具页）
   ============================================================ */

.diagnose-page .diagnose-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(36px, 4.5vw, 72px);
  align-items: center; /* 两栏垂直重心对齐：输入行与报告卡互相呼应 */
  padding-block: clamp(16px, 3vw, 40px);
}

/* 桌面端整页重心垂直居中：meta 贴顶，主体居中，底部不再留大片空白
   （第 1 节解锁规则带 !important，这里必须同级才能覆盖） */
.diagnose-page {
  min-height: calc(100vh - 170px) !important;
  display: grid;
  grid-template-rows: auto 1fr;
}
.diagnose-page .diagnose-shell { align-self: center; }
@media (max-width: 1080px) {
  .diagnose-page { min-height: 0 !important; display: block; }
}

/* —— 左栏：紧凑左对齐，把「开始诊断」做成视觉锚点 —— */
.diagnose-page .v3-hero-l > .kicker {
  justify-content: flex-start;
  margin-bottom: 14px;
}
.diagnose-page .v3-hero-l h1 {
  font-size: clamp(34px, 3.4vw, 46px) !important;
  line-height: 1.08;
  letter-spacing: -.024em;
  text-align: left;
}
.diagnose-page .v3-hero-l .lede {
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
  margin: 14px 0 0;
  text-align: left;
  color: var(--text-2, #515154);
}

/* 输入框 + 按钮：去掉旧表（style.css）给 form 套的卡片壳——
   border+padding 会让 flex 子项收缩后右侧留出一截空盒。
   这是全页唯一的主操作，做到最大最醒目 */
.diagnose-page .entry-form {
  display: flex;
  gap: 10px;
  max-width: 540px;
  margin: 32px 0 0; /* 左对齐，不再居中 */
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.diagnose-page .entry-form label { display: none; }
.diagnose-page .entry-form > div {
  display: contents !important; /* input+button 直接成为 form 的 flex 子项，行宽贴满 */
}
.diagnose-page .entry-form input {
  flex: 1;
  min-width: 0;
  height: 54px;
  font-size: 17px; /* 主输入框放大一号，iOS 防放大同时更醒目 */
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line, rgba(0, 0, 0, .12));
  background: var(--surface, #fff);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.diagnose-page .entry-form input::placeholder { color: var(--text-3, #a1a1a6); }
.diagnose-page .entry-form input:focus {
  outline: none;
  border-color: var(--ikb);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ikb) 12%, transparent);
}
.diagnose-page .entry-form button[type="submit"] {
  flex: none;
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  background: var(--ikb);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 590;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), border-radius var(--dur) var(--ease);
}
.diagnose-page .entry-form button[type="submit"]:hover { filter: brightness(1.06); transform: translateY(-1px); }
.diagnose-page .entry-form button[type="submit"] .arr {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.diagnose-page .entry-form button[type="submit"]:hover .arr { transform: translateX(3px); }

.diagnose-page .sample-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
}
.diagnose-page .proof {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 32px !important;
  padding-top: 18px !important;
}

/* —— 右栏：示例报告完整可见，输入前就知道「会拿到什么」 —— */
.diagnose-page .v3-hero-r {
  max-width: none !important;
}
.diagnose-page .v3-hero-r .frame-cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3, #86868b);
  margin-bottom: 12px;
}
.diagnose-page .v3-hero-r .frame-cap i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--ikb);
}
.diagnose-page .v3-hero-r .frame {
  max-width: none;
  margin-inline: 0;
  opacity: 1;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 16px 40px -16px rgba(0, 47, 167, .14);
  border-color: var(--line, rgba(0, 0, 0, .08));
}
.diagnose-page .v3-hero-r .frame .head { margin-bottom: 4px; }
.diagnose-page .v3-hero-r .frame .score-row .v { font-size: 56px; }
.diagnose-page .v3-hero-r .frame .dim .bar i { box-shadow: none; }

/* ============================================================
   4. 报告页 — 左证据 + 右 sticky 评分栏
      （重设计：修 5 列死网格/巨标题/分数溢出三大病灶）
   ============================================================ */

.report-page .v3-diag {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: start;
  padding-block: clamp(8px, 2vw, 20px) var(--stack-lg);
}

/* —— 标题：装的是「一句话结论」，不是展示字 —— */
.report-page .v3-diag-l h1 {
  font-size: clamp(25px, 2.4vw, 33px) !important;
  line-height: 1.3;
  letter-spacing: -.018em;
  max-width: 26ch;
  margin: 0;
}
.report-page .v3-diag-l .meta {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  max-width: 60ch;
}

/* —— 账号资料表：标签 + 值两列，值列吃满宽度 ——
   旧表是 200px+4×1fr 五列死网格，但每行只有 4 个子元素，
   值被挤成火柴盒；后两个空 span 直接隐藏 */
.report-page .sitem {
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 24px;
  padding-block: 13px;
}
.report-page .sitem > span:nth-child(n+3) { display: none; }
.report-page .sitem .k {
  font-size: 12px;
  color: var(--text-3, #86868b);
  padding-top: 3px; /* 与值行基线对齐 */
}
.report-page .sitem .v {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -.015em;
}
/* 长文本行（简介/核心判断）降级为正文尺度，不跟数字抢视觉 */
.report-page #profile-description,
.report-page #overview-judgment {
  font-size: 15px !important;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0;
}

/* —— 右侧评分栏：加宽 + 分数 clamp，根治横向溢出 ——
   旧 144px 巨号分数在 340px 窄栏里放不下，就是截图里那条横向滚动条 */
.report-page .v3-diag-r {
  min-width: 0;
  overflow-x: hidden;
  gap: 16px;
}
.report-page .v3-diag-r .score {
  font-size: clamp(68px, 6vw, 100px) !important;
  line-height: .95;
}
.report-page .v3-diag-r .score .den { font-size: 20px; }
.report-page .v3-diag-r .verdict { font-size: 15px; line-height: 1.5; }
.report-page .v3-diag-r .score-line { margin-top: 12px; }
.report-page .v3-diag-r .actions button {
  height: 44px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 590;
}
.report-page .v3-diag-r .proof { font-size: 12px; line-height: 1.65; }

/* 关键：评分侧栏跟随滚动，滚动看证据时分数始终可见 */
.report-page .v3-diag-r {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
}

/* 左侧证据列表节奏统一 */
.report-page .signal-list { margin-block: var(--stack); }
.report-page .sitem { padding-block: 13px; }

/* ── 报告页「下一步」CTA（DOM 由 flow.js 注入）── */
.uw-nextcard {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--stack-lg);
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--ikb) 5%, var(--surface, #fff));
  border: 1px solid color-mix(in srgb, var(--ikb) 14%, transparent);
}
.uw-nextcard__body { flex: 1; min-width: 0; }
.uw-nextcard__body strong { display: block; font-size: 15px; font-weight: 590; margin-bottom: 2px; }
.uw-nextcard__body span { font-size: 13px; color: var(--text-2, #515154); line-height: 1.5; }
.uw-nextcard__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border-radius: 980px;
  background: var(--ikb);
  color: #fff;
  font-size: 14px;
  font-weight: 590;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.uw-nextcard__btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }

/* ============================================================
   5. 公众号创作页 — 统一容器 + 画布为主角
   ============================================================ */

.workbench-page .conversation-workbench-layout {
  gap: 16px;
  padding-block: 0 var(--stack-lg);
  height: auto;
  min-height: calc(100vh - var(--nav-h) - 120px);
}
/* 画布给最大空间：对话 300 / 画布 1fr / 成果 260 */
.workbench-page .conversation-workbench-layout {
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(240px, 272px);
}
.workbench-page .article-canvas {
  max-width: none;
  border-radius: var(--r-lg);
}
/* 成果侧栏也可 sticky，滚动看正文时结构始终可见 */
.workbench-page .outcome-panel {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
}

/* ============================================================
   6. 响应式 — 窄屏全部单列
   ============================================================ */

@media (max-width: 1080px) {
  .report-page .v3-diag { grid-template-columns: minmax(0, 1fr); }
  .report-page .v3-diag-r {
    position: static;
    max-height: none;
    order: -1; /* 手机上先看到分数 */
  }
  .workbench-page .conversation-workbench-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .workbench-page .outcome-panel { position: static; max-height: none; }
  .home-page .v3-hero { grid-template-columns: minmax(0, 1fr); }
  .diagnose-page .diagnose-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .diagnose-page .v3-hero-r { max-width: 560px; }
}

@media (max-width: 768px) {
  :root { --stack-lg: 28px; }
  .home-page .hero-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .modlist { grid-template-columns: minmax(0, 1fr); }
  .diagnose-page .entry-form > div { flex-direction: column; }
  .diagnose-page .entry-form button[type="submit"] { width: 100%; }
  /* display:contents 后 input+button 是 form 的直接子项，窄屏改为纵向 */
  .diagnose-page .entry-form { flex-direction: column; }
  .diagnose-page .v3-hero-l h1 { font-size: clamp(30px, 8vw, 38px) !important; }
  .diagnose-page .v3-hero-r .frame { padding: 18px; }
  .diagnose-page .v3-hero-r .frame .score-row .v { font-size: 44px; }
  .report-page .sitem {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding-block: 14px;
  }
  .report-page .sitem .k { padding-top: 0; }
  .uw-nextcard { flex-direction: column; align-items: stretch; }
  .uw-nextcard__btn { justify-content: center; }
}

@media (max-width: 480px) {
  .home-page .hero-collage { grid-template-columns: minmax(0, 1fr); }
  .uw-quickstart__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   7. 减少动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* --- conversation.css --- */
/* ============================================================
   conversation.css — 对话式创作组件层
   ------------------------------------------------------------
   范式：对话（过程）在左 44%，产物（结果）在右 56%。
   为什么必须双区：纯对话会把产物埋进长长的消息流里，生成 3 个标题
   一张封面一篇正文，滚几屏就找不到了。

   全部走 tokens.css 变量，禁止硬编码颜色。
   DOM 由 flow.js 生成，加载顺序在 layout.css 之后。
   ============================================================ */

/* ── 双区外壳 ───────────────────────────────── */
.uw-flow {
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: 16px;
  align-items: stretch;
  height: calc(100vh - var(--nav-h) - var(--shell-top) - 48px);
  min-height: 520px;
  padding-bottom: var(--stack);
}

/* 开关：只有 JS 成功挂载后才隐藏原表单，保证渐进增强 */
.skill-page.uw-flow-on > .v3-meta,
.skill-page.uw-flow-on > .skill-shell { display: none; }

/* ============================================================
   左：对话区
   ============================================================ */
.uw-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-lg);
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, .07));
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.uw-chat__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, .07));
  background: color-mix(in srgb, var(--surface, #fff) 80%, transparent);
}
.uw-chat__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 590;
  letter-spacing: -.01em;
}
.uw-chat__badge i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--good, #16a34a);
  flex: none;
}
.uw-chat__spacer { flex: 1; }
.uw-chat__reset {
  flex: none;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 980px;
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
  background: transparent;
  color: var(--text-2, #515154);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.uw-chat__reset:hover { background: var(--surface-2, #f5f5f7); color: var(--text, #1d1d1f); }

/* ── 消息流 ─────────────────────────────────── */
.uw-chat__thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.uw-msg {
  max-width: 86%;
  animation: uw-msg-in .34s var(--ease) both;
}
@keyframes uw-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.uw-msg__who {
  display: block;
  font-size: 11px;
  font-weight: 590;
  letter-spacing: .04em;
  color: var(--text-3, #86868b);
  margin-bottom: 5px;
}

.uw-msg__bubble {
  padding: 12px 15px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  line-height: 1.62;
  border: 1px solid var(--line, rgba(0, 0, 0, .07));
}

/* AI 消息：浅灰底，左对齐 */
.uw-msg--ai { align-self: flex-start; }
.uw-msg--ai .uw-msg__bubble {
  background: var(--surface-2, #f5f5f7);
  border-bottom-left-radius: 6px;
  color: var(--text, #1d1d1f);
}
/* AI 首条开场白突出一点 */
.uw-msg--ai.is-first .uw-msg__bubble {
  background: color-mix(in srgb, var(--ikb) 6%, var(--surface, #fff));
  border-color: color-mix(in srgb, var(--ikb) 16%, transparent);
  font-size: 15px;
}

/* 用户消息：IKB 蓝底，右对齐 */
.uw-msg--me { align-self: flex-end; text-align: right; }
.uw-msg--me .uw-msg__bubble {
  background: var(--ikb);
  color: #fff;
  border-color: transparent;
  border-bottom-right-radius: 6px;
}
.uw-msg--me .uw-msg__who { color: var(--text-3, #86868b); }

/* ── 「已记住」卡片：消除「AI 记住了没」的焦虑 ── */
.uw-remembered {
  align-self: flex-start;
  max-width: 86%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 980px;
  background: color-mix(in srgb, var(--good, #16a34a) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--good, #16a34a) 20%, transparent);
  font-size: 12.5px;
  color: var(--text-2, #515154);
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.uw-remembered:hover { background: color-mix(in srgb, var(--good, #16a34a) 13%, transparent); }
.uw-remembered:active { transform: scale(.98); }
.uw-remembered svg { width: 13px; height: 13px; flex: none; color: var(--good, #16a34a); }
.uw-remembered b { font-weight: 590; color: var(--text, #1d1d1f); }
.uw-remembered em { font-style: normal; color: var(--text-3, #86868b); }

/* ── 选项 chips：80% 用户点一下就行 ───────────── */
.uw-chat__chips {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 10px;
}
.uw-chat__chips:empty { display: none; }

.uw-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 980px;
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
  background: var(--surface, #fff);
  color: var(--text, #1d1d1f);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.uw-chip:hover {
  border-color: var(--ikb);
  background: color-mix(in srgb, var(--ikb) 6%, var(--surface, #fff));
  transform: translateY(-1px);
}
.uw-chip:active { transform: translateY(0); }
.uw-chip--skip {
  border-style: dashed;
  color: var(--text-3, #86868b);
}
.uw-chip--skip:hover { border-color: var(--text-3, #86868b); background: var(--surface-2, #f5f5f7); }

/* ── 输入区 ─────────────────────────────────── */
.uw-chat__composer {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line, rgba(0, 0, 0, .07));
  background: var(--surface, #fff);
}
.uw-chat__input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 132px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line, rgba(0, 0, 0, .1));
  background: var(--surface-2, #f5f5f7);
  font: inherit;
  font-size: 16px; /* iOS 防自动放大 */
  line-height: 1.5;
  resize: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.uw-chat__input:focus {
  outline: none;
  background: var(--surface, #fff);
  border-color: var(--ikb);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ikb) 12%, transparent);
}
.uw-chat__input::placeholder { color: var(--text-3, #86868b); }

.uw-chat__send {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--ikb);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.uw-chat__send svg { width: 17px; height: 17px; }
.uw-chat__send:hover:not(:disabled) { transform: scale(1.05); }
.uw-chat__send:disabled { opacity: .32; cursor: not-allowed; }

/* 生成中：输入框禁用态 */
.uw-chat.is-busy .uw-chat__input { opacity: .55; }
.uw-chat__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 15px;
  border-radius: var(--r-md);
  border-bottom-left-radius: 6px;
  background: var(--surface-2, #f5f5f7);
  border: 1px solid var(--line, rgba(0, 0, 0, .07));
}
.uw-chat__typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3, #86868b);
  animation: uw-dot 1.25s var(--ease) infinite;
}
.uw-chat__typing i:nth-child(2) { animation-delay: .16s; }
.uw-chat__typing i:nth-child(3) { animation-delay: .32s; }
@keyframes uw-dot {
  0%, 60%, 100% { opacity: .28; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* ============================================================
   右：产物面板
   ============================================================ */
.uw-out {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--r-lg);
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, .07));
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.uw-out__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, .07));
}
.uw-out__title {
  font-size: 13px;
  font-weight: 590;
  letter-spacing: -.01em;
}
.uw-out__spacer { flex: 1; }
.uw-out__state {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 980px;
  background: var(--surface-2, #f5f5f7);
  color: var(--text-3, #86868b);
  white-space: nowrap;
}
.uw-out__state.is-running {
  background: color-mix(in srgb, var(--ikb) 10%, transparent);
  color: var(--ikb);
}
.uw-out__state.is-done {
  background: color-mix(in srgb, var(--good, #16a34a) 12%, transparent);
  color: color-mix(in srgb, var(--good, #16a34a) 82%, #000);
}

.uw-out__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
}

/* ── 产物骨架区块：让用户先看懂「会长出什么」── */
.uw-blocks { display: flex; flex-direction: column; gap: 12px; }

.uw-block {
  border-radius: var(--r-md);
  border: 1px solid var(--line, rgba(0, 0, 0, .07));
  background: var(--surface, #fff);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.uw-block.is-running { border-color: color-mix(in srgb, var(--ikb) 34%, transparent); }
/* 被对话里点名修改时高亮一下 */
.uw-block.is-flash { animation: uw-flash 1.1s var(--ease); }
@keyframes uw-flash {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ikb) 42%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

.uw-block__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, .06));
  background: color-mix(in srgb, var(--surface-2, #f5f5f7) 55%, transparent);
}
.uw-block__n {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--text-3, #86868b);
}
.uw-block__t { font-size: 13px; font-weight: 590; }
.uw-block__spacer { flex: 1; }
.uw-block__tag {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 980px;
  background: var(--surface-2, #f5f5f7);
  color: var(--text-3, #86868b);
  white-space: nowrap;
}
.uw-block.is-running .uw-block__tag {
  background: color-mix(in srgb, var(--ikb) 12%, transparent);
  color: var(--ikb);
}
.uw-block.is-done .uw-block__tag {
  background: color-mix(in srgb, var(--good, #16a34a) 13%, transparent);
  color: color-mix(in srgb, var(--good, #16a34a) 80%, #000);
}

.uw-block__body { padding: 12px 14px; }

/* 骨架占位：进来就看到形状，才知道「我为啥要填」 */
.uw-skel { display: flex; flex-direction: column; gap: 7px; }
.uw-skel i {
  display: block;
  height: 9px;
  border-radius: 980px;
  background: linear-gradient(
    90deg,
    var(--surface-2, #f5f5f7) 0%,
    color-mix(in srgb, var(--surface-2, #f5f5f7) 55%, #fff) 50%,
    var(--surface-2, #f5f5f7) 100%
  );
  background-size: 220% 100%;
  animation: uw-shimmer 1.5s linear infinite;
}
@keyframes uw-shimmer {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}
.uw-skel-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3, #86868b);
}

/* 卡片网格骨架（贴图号用） */
.uw-skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.uw-skel-card {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-sm);
  background: linear-gradient(
    90deg,
    var(--surface-2, #f5f5f7) 0%,
    color-mix(in srgb, var(--surface-2, #f5f5f7) 55%, #fff) 50%,
    var(--surface-2, #f5f5f7) 100%
  );
  background-size: 220% 100%;
  animation: uw-shimmer 1.5s linear infinite;
}

/* 阻断项（爆文检测专用）：红色置顶，用户第一眼看「能不能发」 */
.uw-block--blocker.is-done { border-color: color-mix(in srgb, var(--bad, #dc2626) 34%, transparent); }
.uw-block--blocker.is-done .uw-block__head {
  background: color-mix(in srgb, var(--bad, #dc2626) 7%, transparent);
  border-bottom-color: color-mix(in srgb, var(--bad, #dc2626) 18%, transparent);
}
.uw-block--blocker.is-done .uw-block__tag {
  background: color-mix(in srgb, var(--bad, #dc2626) 13%, transparent);
  color: var(--bad, #dc2626);
}

/* 原始结果容器被搬进来后，取消它自己的多余外框 */
.uw-out__body > #xhs-result,
.uw-out__body > #tie-result,
.uw-out__body > #hit-result {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* 结果容器接管后的排版收敛 */
.uw-out__body .xhs-output,
.uw-out__body .tie-result,
.uw-out__body .hit-result {
  max-width: var(--measure);
  font-size: 14.5px;
  line-height: 1.7;
}
.uw-out__body .xhs-output h2,
.uw-out__body .xhs-output h3,
.uw-out__body .hit-result h2,
.uw-out__body .hit-result h3 {
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -.01em;
  margin: 18px 0 8px;
}
.uw-out__body .xhs-output h2:first-child,
.uw-out__body .hit-result h2:first-child { margin-top: 0; }

/* ============================================================
   窄屏：单列 + Tab 切换（双区在手机上放不下）
   ============================================================ */
.uw-flow__tabs { display: none; }

@media (max-width: 900px) {
  .uw-flow {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 12px;
  }
  .uw-flow__tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 980px;
    background: var(--surface-2, #f5f5f7);
    margin-bottom: 4px;
  }
  .uw-flow__tab {
    flex: 1;
    min-height: 36px;
    border: none;
    border-radius: 980px;
    background: transparent;
    color: var(--text-2, #515154);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .uw-flow__tab.is-active {
    background: var(--surface, #fff);
    color: var(--text, #1d1d1f);
    font-weight: 590;
    box-shadow: var(--shadow-1);
  }
  /* 默认展示产物（用户更关心结果），对话折叠 */
  .uw-flow[data-tab="chat"] .uw-out { display: none; }
  .uw-flow[data-tab="out"]  .uw-chat { display: none; }
  .uw-flow[data-tab="out"]  .uw-chat { display: none; }
  .uw-chat { height: 62vh; }
  .uw-out  { height: auto; }
}


/* --- workbench-studio.css --- */
/* awesome-design / Linear: restrained light surfaces, clear hierarchy, 8px rhythm.
   Scoped to the article workspace; legacy themes must not size its working panes. */
#workbench.workbench-page {
  --studio-line: #e3e6ec;
  --studio-muted: #646c7b;
  width: 100%; max-width: 1600px; margin: 0 auto;
  padding: 20px 24px 16px;
  color: #20232b; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  box-sizing: border-box;
}
#workbench [hidden] { display: none !important; }
#workbench :is(h1,h2,h3,p,span,strong,em,button,textarea,label,a) { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei','PingFang SC',sans-serif !important; }
#workbench .studio-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
#workbench .studio-heading h1 { margin:0; font:600 23px/1.3 inherit; font-size:23px; letter-spacing:-.5px; }
#workbench .studio-heading p { margin:5px 0 0; color:var(--studio-muted); font-size:13px; }
#workbench #studio-details-toggle { padding:9px 14px; border:1px solid var(--studio-line); border-radius:8px; background:#fff; color:#414957; cursor:pointer; }
#workbench #studio-details-toggle[aria-expanded=true] { background:#eef1ff; color:var(--ikb); border-color:#b8c4ef; }
#workbench .workflow-rail { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); margin:0 0 16px; padding:6px; border:1px solid var(--studio-line); border-radius:10px; background:#fff; gap:4px; }
#workbench .workflow-rail .workflow-step { min-height:40px; padding:8px 12px; border:0; border-radius:6px; display:flex; align-items:center; gap:8px; background:transparent; opacity:1; }
#workbench .workflow-step small { display:none; }
#workbench .workflow-step strong { font-size:13px; font-weight:500; color:var(--studio-muted); }
#workbench .workflow-step > span { width:22px; height:22px; padding:0; font:11px/22px inherit; font-size:11px; border:0; background:#f2f3f6; color:#737d8b; }
#workbench .workflow-step.active { background:#eef2ff; }
#workbench .workflow-step.active::before { display:none; }
#workbench .workflow-step.active strong { color:var(--ikb); }
#workbench .workflow-step.active > span { background:var(--ikb); color:#fff; }
#workbench .conversation-workbench-layout { position:relative; display:grid; grid-template-columns:340px minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; gap:0; height:calc(100dvh - 242px); min-height:400px; overflow:hidden; border:1px solid var(--studio-line); border-radius:12px; background:#fff; padding:0; }
#workbench .conversation-panel { grid-column:1; grid-row:1; display:flex; flex-direction:column; min-height:0; height:100%; padding:0; border:0; border-right:1px solid var(--studio-line); background:#f8f9fb; overflow:hidden; }
#workbench .conversation-panel-head { flex:none; padding:16px; display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--studio-line); background:transparent; }
#workbench .conversation-panel-head strong { font-size:14px; }
#workbench .conversation-panel-tools { display:flex; align-items:center; gap:8px; }
#workbench .work-status { font:11px/1.5 inherit; color:var(--studio-muted); }
#workbench .new-chat-button { padding:6px 8px; font-size:12px; border-radius:6px; color:#455064; background:#fff; border:1px solid var(--studio-line); }
#workbench .chat-thread { flex:1 1 auto; min-height:60px; padding:16px; overflow:auto; background:transparent; }
#workbench .chat-message { max-width:100%; margin-bottom:16px; }
#workbench .chat-message > span { font-size:11px; color:var(--studio-muted); }
#workbench .chat-message p { margin-top:6px; padding:12px; font:14px/1.75 inherit; font-size:14px; line-height:1.75; background:#fff; color:#3e4654; border:1px solid var(--studio-line); }
#workbench .chat-message.from-user p { background:var(--ikb); color:#fff; }
#workbench .chat-choice-list { flex:0 1 auto; max-height:45%; overflow:auto; padding:0 16px; }
#workbench .chat-choice { padding:12px; margin:8px 0; background:#fff; border:1px solid var(--studio-line); }
#workbench .chat-choice strong { color:#20232b; font-size:14px; }
#workbench .chat-choice p { font-size:13px; color:var(--studio-muted); }
#workbench .composer-shell { flex:none; margin:12px; padding:12px; border:1px solid #cfd5df; border-radius:10px; background:#fff; box-shadow:0 2px 6px #17274405; }
#workbench .composer-shell:focus-within { border-color:var(--ikb); box-shadow:0 0 0 3px #002fa710; }
#workbench .composer-shell label { display:block; font-size:12px; font-weight:600; color:#404859; margin-bottom:8px; }
#workbench #workbench-topic { display:block; width:100%; height:80px; min-height:80px; max-height:140px; resize:vertical; border:0; border-radius:0; padding:0; box-shadow:none; background:transparent; color:#20232b; font:14px/1.7 inherit; font-size:14px; line-height:1.7; }
#workbench #workbench-topic:focus { outline:0; }
#workbench .composer-actions { display:flex; justify-content:space-between; align-items:center; padding:8px 0 0; }
#workbench .composer-send { width:36px; min-width:36px; height:36px; min-height:36px; padding:0; border-radius:8px; }
#workbench .creator-options { display:none; }
#workbench .article-canvas { grid-column:2; grid-row:1; min-width:0; min-height:0; height:100%; padding:0 28px; overflow:auto; background:#fff; border:0; }
#workbench .article-canvas-head { padding:20px 0 16px; display:flex; align-items:flex-start; gap:16px; border-bottom:1px solid var(--studio-line); }
#workbench .article-canvas-head h2 { font-size:22px; line-height:1.45; margin:0; overflow-wrap:anywhere; color:#20232b; }
#workbench .article-canvas-head p { font-size:12px; line-height:1.6; color:var(--studio-muted); }
#workbench .canvas-actions { flex:none; gap:4px; }
#workbench .icon-action { width:32px; height:32px; border:1px solid var(--studio-line); border-radius:6px; color:#626c7c; background:#fff; }
#workbench .version-strip { padding:12px 0; margin:0; color:var(--studio-muted); font-size:12px; flex-wrap:wrap; }
#workbench .current-work-card { padding:18px 0; margin:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
#workbench .current-work-card > header { display:flex; justify-content:space-between; gap:8px; padding:0; margin:0 0 14px; text-align:left; }
#workbench #workbench-decision > header { justify-content:space-between; text-align:left; min-height:0; }
#workbench #workbench-decision > footer { justify-content:space-between; text-align:left; }
#workbench .current-work-card > header span { color:#20232b; font-size:14px; font-weight:600; }
#workbench .current-work-card em { font-style:normal; color:var(--studio-muted); font-size:12px; }
#workbench .start-template-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
#workbench .start-template { display:flex; flex-direction:column; align-items:flex-start; text-align:left; padding:16px; border:1px solid var(--studio-line); border-radius:8px; background:#fafbfc; min-width:0; gap:8px; }
#workbench .start-template:hover { border-color:#a6b5e6; background:#f1f4ff; }
#workbench .start-template .n { position:static; color:var(--ikb); font-size:11px; }
#workbench .start-template strong { font-size:14px; color:#20232b; }
#workbench .start-template p { margin:0; color:#646c7b; font-size:13px; line-height:1.7; }
#workbench .start-template em { margin-top:auto; padding-top:8px; }
#workbench .start-templates > footer { display:flex; justify-content:space-between; gap:12px; padding:12px 0 0; margin:0; border:0; font-size:11px; color:var(--studio-muted); }
#workbench .editor-wrap { padding:0; margin:8px 0 0; }
#workbench .editor-head { padding:12px 0; font-size:12px; display:flex; flex-wrap:wrap; gap:8px; color:var(--studio-muted); }
#workbench #article-editor { width:100%; min-height:300px; padding:20px 0; border:0; border-radius:0; background:#fff; color:#252b35; font-family:inherit; font-size:16px; line-height:1.9; resize:vertical; box-shadow:none; }
#workbench .selection-actions { padding:8px 0; display:flex; flex-wrap:wrap; gap:8px; }
#workbench .selection-actions button { border:1px solid var(--studio-line); padding:7px 10px; border-radius:6px; font-size:12px; color:#505b6d; }
#workbench .article-canvas-foot { padding:16px 0; margin:0; color:var(--studio-muted); font-size:11px; }
#workbench .outcome-panel { position:absolute; z-index:4; top:0; right:0; bottom:76px; width:300px; max-width:90%; overflow:auto; padding:20px; background:#fff; border:0; border-left:1px solid var(--studio-line); box-shadow:-12px 0 30px #202b4010; }
#workbench .outcome-panel > header { padding:0 0 16px; }
#workbench .outcome-panel section { padding:16px 0; margin:0; }
#workbench .flow-actionbar { position:relative; grid-column:1 / -1; grid-row:2; inset:auto; width:auto; margin:0; padding:12px 20px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:0; border-top:1px solid var(--studio-line); border-radius:0; box-shadow:none; backdrop-filter:none; }
#workbench .flow-status { min-width:0; }
#workbench .flow-status strong { font-size:13px; }
#workbench .flow-status span { font-size:12px; color:var(--studio-muted); }
#workbench .flow-actions { display:flex; flex-wrap:wrap; gap:8px; }
#workbench .flow-primary, #workbench .flow-secondary { border-radius:8px; min-height:40px; padding:0 16px; font-size:13px; }
#workbench .workbench-progress { position:absolute; z-index:5; bottom:76px; left:12px; right:12px; margin:0; background:#fff; box-shadow:0 8px 30px #202b4020; }
#workbench .studio-switch { display:none; }
#workbench .skill-review-result { margin:20px 0; padding:24px; border:1px solid var(--studio-line); border-radius:10px; background:#fafbfc; }
#workbench .skill-review-result header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
#workbench .skill-review-result h3 { font-size:18px; margin:0; }
#workbench .skill-review-result :is(p,li,summary) { font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
#workbench .skill-review-result dl { display:flex; flex-wrap:wrap; gap:24px; padding:16px 0; margin:16px 0; border-block:1px solid var(--studio-line); }
#workbench .skill-review-result dt, #workbench .review-source { color:var(--studio-muted); font-size:12px; }
#workbench .skill-review-result dd { font-size:20px; margin:8px 0 0; }
#workbench .skill-review-result pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:none; overflow:visible; font-size:12px; }
#workbench .skill-review-result summary { cursor:pointer; }
#workbench #start-workbench { width:auto; min-width:80px; max-width:100%; height:auto; min-height:40px; padding:9px 14px; white-space:normal; overflow-wrap:anywhere; font-size:13px; line-height:1.5; display:inline-flex; align-items:center; justify-content:center; }
#workbench #start-workbench:disabled { min-width:116px; cursor:wait; }
#workbench .composer-actions { gap:12px; }
#workbench .composer-text-action { flex-shrink:0; }
#workbench #studio-stage-output .chat-choice-list { max-height:none; overflow:visible; padding:0; }
#workbench #studio-stage-output .chat-choice { display:block; padding:20px; margin:12px 0; }
#workbench #studio-stage-output .chat-choice footer { display:flex; justify-content:flex-end; gap:10px; margin-top:12px; }
#workbench #studio-stage-output button { min-height:40px; padding:8px 16px; white-space:normal; height:auto; }
#workbench #workbench-decision { display:block; padding:24px 0; }
#workbench #start-workbench { margin-left:auto; }
#workbench #workbench-decision > strong { display:block; font-size:19px; line-height:1.5; color:#20232b; margin:8px 0; }
#workbench #workbench-decision > p { font-size:14px; line-height:1.8; color:var(--studio-muted); max-width:65ch; }
#workbench .studio-framework { padding:24px; margin-bottom:24px; background:#f8f9fb; border:1px solid var(--studio-line); border-radius:10px; }
#workbench .studio-framework li { padding:12px 0; font-size:15px; line-height:1.7; }
#workbench .flow-actions > button { white-space:normal; height:auto; line-height:1.5; padding-block:10px; }
#workbench button:focus-visible { outline:2px solid var(--ikb); outline-offset:3px; }
@media(max-width:1100px) {
  #workbench .conversation-workbench-layout { grid-template-columns:310px minmax(0,1fr); }
  #workbench .article-canvas { padding:0 20px; }
  #workbench .start-template-grid { grid-template-columns:1fr; }
  #workbench .start-template { gap:5px; padding:12px; }
  #workbench .start-template em, #workbench .start-template .n { display:none; }
  #workbench .current-work-card > header { flex-direction:column; }
}
@media(max-width:760px) {
  #workbench.workbench-page { padding:14px 12px; }
  #workbench .studio-heading h1 { font-size:20px; }
  #workbench .workflow-rail { display:flex; overflow-x:auto; margin-bottom:10px; }
  #workbench .workflow-rail .workflow-step { flex:0 0 auto; padding:6px 10px; }
  #workbench .studio-switch { display:flex; gap:4px; padding:4px; margin-bottom:10px; background:#e9ecf2; border-radius:8px; }
  #workbench .studio-switch button { flex:1; padding:9px; border:0; border-radius:6px; background:transparent; color:#5e6877; }
  #workbench .studio-switch button[aria-pressed=true] { background:#fff; color:var(--ikb); box-shadow:0 1px 3px #202b4010; }
  #workbench .conversation-workbench-layout { grid-template-columns:minmax(0,1fr); height:calc(100dvh - 270px); min-height:410px; }
  #workbench .conversation-panel, #workbench .article-canvas { grid-column:1; }
  #workbench:not([data-studio-view=article]) .article-canvas { display:none; }
  #workbench[data-studio-view=article] .conversation-panel { display:none; }
  #workbench .conversation-panel { border:0; }
  #workbench .article-canvas { padding:0 16px; }
  #workbench .flow-actionbar { padding:10px 12px; gap:8px; }
  #workbench .flow-status { display:none; }
  #workbench .flow-actions { width:100%; }
  #workbench .flow-actions > * { flex:1; justify-content:center; }
  #workbench #workbench-topic { font-size:16px; }
  #workbench .article-canvas-head h2 { font-size:19px; }
}
.topic-metrics { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.topic-metrics span { padding:4px 8px; border:1px solid var(--line, #e4e7ec); border-radius:999px; color:var(--text-3, #667085); font-size:12px; }
.topic-metrics b { color:var(--text, #1d2939); font-weight:600; }


/* --- studio-tools.css --- */
/* Shared tool surfaces. Preserve article workspace rules in workbench-studio.css. */
:root { --tool-line:#e1e5ed; --tool-muted:#626d7d; }
.studio-tool [hidden], #morning-generator [hidden] { display:none !important; }
body :is(button,input,textarea,select,h1,h2,h3,p,label) { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif; }
.studio-tool.skill-page { max-width:1440px; width:100%; padding:24px; box-sizing:border-box; }
.studio-tool > .v3-meta { display:none; }
.studio-tool .tool-heading { margin-bottom:20px; }
.studio-tool .tool-heading h1 { font-size:24px !important; line-height:1.35; margin:0 0 8px; font-weight:600; }
.studio-tool .tool-heading p { font-size:13px; color:var(--tool-muted); line-height:1.7; margin:0; }
.studio-tool .skill-shell { display:grid; grid-template-columns:minmax(340px,.85fr) minmax(0,1.15fr); gap:24px; align-items:start; margin:0; padding:0; min-height:0; height:auto; background:transparent; border:0; }
.studio-tool .skill-form-col, .studio-tool .skill-output-col { min-width:0; width:auto; height:auto; min-height:0; padding:24px; border:1px solid var(--tool-line); border-radius:12px; background:#fff; overflow:visible; box-shadow:none; }
.studio-tool .skill-form-col > :is(.micro-label,h1,p) { display:none; }
.studio-tool .skill-form { margin:0; padding:0; display:block; }
.studio-tool .skill-form { background:transparent; border:0; border-radius:0; }
.studio-tool .form-section { padding:0 0 20px; margin:0 0 20px; border:0; border-bottom:1px solid var(--tool-line); }
.studio-tool .form-section > .head { display:flex; gap:10px; align-items:start; margin-bottom:16px; }
.studio-tool .head .num { color:var(--ikb); background:#eef2ff; padding:4px 6px; border-radius:5px; }
.studio-tool .head strong { font-size:15px; font-weight:600; color:#252b35; }
.studio-tool .head small { display:block; margin-top:4px; color:var(--tool-muted); font-size:12px; line-height:1.6; }
.studio-tool .field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.studio-tool .skill-form label { display:block; margin:0 0 14px; font-size:13px; font-weight:500; line-height:1.6; color:#394353; }
.studio-tool .skill-form :is(input,select,textarea) { display:block; box-sizing:border-box; width:100%; max-width:100%; min-width:0; margin-top:7px; padding:10px 12px; border:1px solid #cdd4df; border-radius:7px; background:#fff; color:#252b35; font-size:14px; min-height:42px; box-shadow:none; }
.studio-tool .skill-form textarea { height:96px; min-height:96px; resize:vertical; line-height:1.7; }
.studio-tool #hit-body { height:260px; }
.studio-tool .skill-form :is(input,textarea,select):focus { outline:2px solid #002fa730; outline-offset:1px; border-color:var(--ikb); }
.studio-tool .skill-primary { display:flex; align-items:center; justify-content:center; width:100%; height:auto; min-height:44px; padding:12px 18px; border-radius:8px; font-size:14px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.studio-tool .tool-status { font-size:12px; line-height:1.6; margin:10px 0 0; color:var(--tool-muted); }
.studio-tool .tool-status:empty { display:none; }
.studio-tool .skill-empty { display:block; min-height:240px; height:auto; padding:24px 8px; border:0; background:transparent; }
.studio-tool .skill-empty h2 { font-size:20px; margin:0 0 12px; line-height:1.5; color:#252b35; }
.studio-tool .skill-empty p { font-size:14px; line-height:1.9; max-width:50ch; color:var(--tool-muted); }
.studio-tool .skill-output-col { position:sticky; top:80px; max-height:calc(100dvh - 104px); overflow:auto; }
.studio-tool .skill-output-col button { height:auto; min-height:40px; white-space:normal; padding:9px 12px; border-radius:7px; }
.studio-tool .skill-output-col :is(textarea,pre,img) { max-width:100%; box-sizing:border-box; }
.studio-tool .skill-output-col pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.studio-tool .skill-output-col[aria-busy=true] { border-color:#93a8ed; }
#home .v3-meta, #diagnose .v3-meta, #morning-generator .v3-meta { display:none; }
#home .v3-modules { display:none; }
#home .v3-hero { grid-template-columns:1fr; gap:24px; padding:16px 0 24px; }
#home .v3-hero h1 { font-size:32px; line-height:1.3; }
#home .v3-hero .kicker, #home .cta-row { display:none; }
#home .hero-collage { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
#home .hc-card { min-height:128px; padding:24px; }
#home .hc-card .t { font-size:18px; margin:10px 0 4px; }
#home .hc-card .d { font-size:13px; line-height:1.6; }
#diagnose .diagnose-shell { min-height:0; height:auto; padding:24px 0; gap:32px; align-items:start; }
#diagnose h1 { font-size:30px; }
#diagnose .entry-form label { display:block; font-size:13px; margin-bottom:8px; }
#diagnose .entry-form > div { display:flex; gap:10px; }
#diagnose .entry-form input { min-width:0; flex:1; width:100%; }
#diagnose #submit-button { flex:none; height:auto; white-space:normal; min-height:44px; padding:10px 20px; border-radius:8px; }
#diagnose .lede { max-width:48ch; }
#morning-generator .morning-shell { padding:0; margin:0; display:block; }
#morning-generator .morning-intro { padding:0 0 20px; }
#morning-generator .morning-intro .micro-label { display:none; }
#morning-generator .morning-intro > span { display:none; }
#morning-generator h1 { font-size:24px; line-height:1.4; margin:0 0 8px; }
#morning-generator .morning-frame-wrap { height:auto; min-height:0; overflow:visible; border:0; }
#morning-generator .generator-frame { display:block; width:100%; min-height:600px; max-height:none; border:0; }
@media(max-width:900px) {
  .studio-tool .skill-shell { grid-template-columns:1fr; }
  .studio-tool .skill-output-col { position:static; max-height:none; overflow:visible; }
  #home .hero-collage { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #diagnose .diagnose-shell { grid-template-columns:1fr; }
}
@media(max-width:760px) {
  .v3-topbar { display:flex !important; flex-wrap:wrap; height:auto !important; position:relative; padding:12px !important; gap:12px; }
  .v3-topbar .app-tabs { display:flex !important; position:static !important; order:3; width:100%; overflow-x:auto; justify-content:flex-start; height:auto; gap:4px; }
  .v3-topbar .app-tabs a { display:flex; flex:none; padding:10px 12px; white-space:nowrap; font-size:13px; }
  .studio-tool.skill-page { padding:20px 12px; }
  .studio-tool .skill-form-col, .studio-tool .skill-output-col { padding:18px; }
  .studio-tool .field-grid { grid-template-columns:1fr; gap:0; }
  .studio-tool .skill-form :is(input,select,textarea) { font-size:16px; }
  #home .hc-card { padding:18px; }
  #home .hc-card .t { font-size:16px; }
  #diagnose .entry-form > div { flex-direction:column; }
  #workbench .conversation-workbench-layout { height:calc(100dvh - 320px); }
}
@media(prefers-reduced-motion:reduce) { .studio-tool * { animation:none !important; scroll-behavior:auto !important; } }


/* --- notion-workspace.css --- */
/* Canonical application theme. Based on awesome-design/design-md/notion.
   Adapted for a Chinese editing app, not the source marketing homepage. */
:root {
  --sans: 'Segoe UI','Microsoft YaHei','PingFang SC',system-ui,sans-serif;
  --font-sans: var(--sans); --serif: var(--sans);
  --ikb:#0075de; --accent:#0075de; --text:#31302e; --text-1:#31302e;
  --text-2:#615d59; --text-3:#78736e; --text-4:#89837c;
  --bg:#fff; --surface:#fff; --border:#e9e7e4;
  --tool-line:#e9e7e4; --tool-muted:#615d59;
  --r-sm:6px; --r-md:8px; --r-lg:12px; --r-xl:16px;
}
html body { background:#fff !important; color:#31302e !important; font-family:var(--sans) !important; }
body :is(button,input,textarea,select,h1,h2,h3,h4,p,label,span,strong,em,a,li,dt,dd,summary) { font-family:var(--sans) !important; }
body button { cursor:pointer; }
body button:disabled { cursor:not-allowed; }
body :is(button,a,input,textarea,select):focus-visible { outline:2px solid #097fe8; outline-offset:3px; }
body :is(button,a):hover { transform:none; }
body .app-shell { display:block; width:auto !important; max-width:none; margin:0 0 0 224px !important; padding:0; min-height:100dvh; background:#fff; }
body .app-shell > .v3-topbar {
  position:fixed; inset:0 auto 0 0; width:224px; height:100dvh !important;
  box-sizing:border-box; padding:24px 12px !important; flex-direction:column;
  align-items:stretch; justify-content:flex-start; gap:28px; background:#f6f5f4 !important;
  border:0; border-right:1px solid #e9e7e4; box-shadow:none; backdrop-filter:none; z-index:30;
}
body .v3-topbar .brand a { display:flex; align-items:center; gap:9px; padding:0 8px; }
body .v3-topbar .brand .name { font-size:14px; color:#31302e; font-weight:600; }
body .v3-topbar .brand .mark { background:#31302e; border-radius:5px; flex:none; }
body .v3-topbar .brand .ver { display:none; }
body .v3-topbar .app-tabs { position:static !important; display:flex !important; flex-direction:column; align-items:stretch; width:100%; height:auto; gap:4px; padding:0; margin:0; transform:none; overflow:visible; }
.nav-group-label { padding:12px 12px 4px; font-size:11px; color:#78736e; font-weight:500; letter-spacing:.04em; }
body .v3-topbar .app-tabs a { display:flex; align-items:center; gap:10px; min-height:40px; padding:9px 12px; border:0 !important; border-radius:6px; font-size:14px; color:#615d59; background:transparent; }
body .v3-topbar .app-tabs a::after, body .v3-topbar .app-tabs a::before { display:none !important; }
body .v3-topbar .app-tabs a:hover { color:#31302e; background:#eeece9; }
body .v3-topbar .app-tabs a.active { background:#eae8e5; color:#262522; font-weight:600; box-shadow:none; }
body .v3-topbar .tab-icon { width:18px; height:18px; color:inherit; opacity:.8; }
body .v3-topbar .right { margin-top:auto; padding:16px 8px 0; border-top:1px solid #e4e1dd; justify-content:space-between; width:100%; gap:8px; }
body .v3-topbar .settings-popover {
  position:absolute;
  top:auto !important;
  bottom:38px !important;
  left:0 !important;
  right:auto !important;
  width:190px;
  height:auto;
  z-index:50;
}
body .app-shell > .v3-foot { display:none !important; }
body .app-shell > :is(.home-page,.diagnose-page,.skill-page,.report-page) { width:100%; max-width:1280px; padding:40px 40px 32px; box-sizing:border-box; }
body :is(.tool-heading,.studio-heading) h1, body #morning-generator h1 { font-size:26px !important; font-weight:650; line-height:1.35; letter-spacing:0; color:#31302e; }
body :is(.tool-heading,.studio-heading) p { color:#78736e; font-size:13px; margin-top:8px; }
body .studio-tool .skill-shell { gap:32px; grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr); }
body .studio-tool .skill-form-col { border:0; border-radius:0; padding:8px 0 24px; background:transparent; }
body .studio-tool .skill-output-col { border:1px solid #e9e7e4; background:#fbfaf9; border-radius:8px; padding:28px; top:24px; max-height:calc(100dvh - 48px); }
body .studio-tool .form-section { border-color:#e9e7e4; }
body .studio-tool .head .num { background:#f1efec; color:#78736e; font-size:11px; }
body .studio-tool .skill-form :is(input,select,textarea) { border-color:#dedbd7; border-radius:6px; color:#31302e; }
body .studio-tool .skill-primary { background:#0075de; color:white; border:0; border-radius:6px; box-shadow:none; }
body .studio-tool .skill-empty h2 { font-size:19px; font-weight:600; }
body .studio-tool .skill-empty p { color:#78736e; }
body #home .v3-hero { display:block; padding:12px 0; }
body #home .v3-hero-r, body #home .hero-collage { width:100%; max-width:none; }
body #home .v3-hero h1 { font-size:32px; font-weight:650; color:#31302e; letter-spacing:0; }
body #home .lede { color:#78736e; font-size:15px; max-width:650px; margin:14px 0 40px; }
body #home .hero-collage { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
body #home .hc-card { position:relative; display:flex; flex-direction:column; justify-content:center; min-height:150px; padding:24px; background:#fff !important; color:#31302e; border:1px solid #e9e7e4; border-radius:8px; box-shadow:none; transform:none; }
body #home .hc-card:hover { background:#faf9f7 !important; border-color:#c9c4bc; }
body #home .hc-card .n { position:static; width:28px; height:28px; display:grid; place-items:center; background:#f1efec; color:#615d59; border-radius:6px; font-size:12px; }
body #home .hc-card .t { font-size:17px; font-weight:600; color:#31302e; }
body #home .hc-card .d { color:#78736e; }
body #diagnose .diagnose-shell { gap:40px; }
body #diagnose h1 { font-size:28px !important; line-height:1.4 !important; }
body #diagnose .kicker { display:none; }
body #diagnose .entry-form { display:block; }
body #diagnose .entry-form label { margin-bottom:10px; color:#615d59; }
body #diagnose #submit-button { box-shadow:none; background:#0075de; }
body #diagnose .frame { box-shadow:none; border-radius:8px; border-color:#e9e7e4; }
body .studio-tool .skill-form { border:0 !important; }
body #diagnose .lede { font-size:15px; line-height:1.8; color:#615d59; }
body #diagnose :is(input,button) { border-radius:6px; }
body #morning-generator .morning-intro { margin-bottom:12px; }
#workbench.workbench-page { --studio-line:#e9e7e4; --studio-muted:#78736e; padding:28px 28px 0; max-width:none; color:#31302e; }
#workbench .studio-heading { margin:0 0 24px; }
.studio-heading-actions { display:flex; align-items:center; gap:8px; }
#workbench .studio-heading-actions button { padding:8px 12px; min-height:36px; border:1px solid #e4e1dd; border-radius:6px; background:white; color:#615d59; font-size:12px; }
#workbench .studio-heading-actions button:hover { background:#f6f5f4; }
#workbench .workflow-rail { display:flex; gap:8px; overflow-x:auto; padding:0 0 14px; margin:0; border:0; border-radius:0; background:transparent; }
#workbench .workflow-rail .workflow-step { flex:1 0 auto; padding:6px 8px; min-height:34px; gap:6px; }
#workbench .workflow-step.active { background:#f2f9ff; }
#workbench .workflow-step > span { background:#f6f5f4; color:#78736e; }
#workbench .workflow-step.active > span { background:#0075de; color:#fff; }
#workbench .workflow-step.done > span { background:#edf4ee; color:#41804d; }
#workbench .workflow-step.done strong { color:#615d59; }
#workbench .conversation-workbench-layout { grid-template-columns:minmax(0,1fr) 320px; height:calc(100dvh - 166px); min-height:430px; border:0; border-top:1px solid #e9e7e4; border-radius:0; }
#workbench .article-canvas { grid-column:1; padding:0 clamp(20px,3vw,48px); }
#workbench .article-canvas > * { width:100%; box-sizing:border-box; max-width:760px; margin-left:auto; margin-right:auto; flex-shrink:0; }
#workbench .article-canvas { display:block; }
#workbench .article-canvas-head { height:auto; min-height:0; }
#workbench .article-canvas-head > div:first-child { min-width:0; flex:1; }
#workbench .article-canvas-head h2 { white-space:normal; }
#workbench .version-strip { height:auto; min-height:0; justify-content:flex-start; }
#workbench .conversation-panel { grid-column:2; background:#faf9f7; border:0; border-left:1px solid #e9e7e4; }
#workbench .conversation-panel-head { padding:18px 16px; }
#workbench .conversation-panel-head strong { color:#31302e; }
#workbench .conversation-panel-tools { flex-wrap:wrap; }
#workbench .chat-message p { border:0; padding:0; background:transparent; color:#615d59; line-height:1.85; }
#workbench .chat-message.from-user p { padding:12px; background:#eeece8; color:#31302e; border-radius:8px; }
#workbench .composer-shell { border-color:#dedbd7; border-radius:8px; box-shadow:0 2px 6px #00000005; }
#workbench .article-canvas-head { padding:32px 0 16px; }
#workbench .article-canvas-head h2 { color:#31302e; font-size:25px; line-height:1.5; font-weight:650; }
#workbench .article-canvas-head p i { display:none; }
#workbench .version-strip { background:transparent; border-bottom:1px solid #efedea; }
#workbench #workbench-decision { padding:20px 0; }
#workbench #workbench-decision > strong { color:#31302e; font-size:17px; }
#workbench:not([data-stage="0"]):not([data-stage="1"]):not([data-stage="2"]) #workbench-decision { padding:14px 0; }
#workbench:not([data-stage="0"]):not([data-stage="1"]):not([data-stage="2"]) #workbench-decision > span { font-size:12px; color:#78736e; margin-right:10px; }
#workbench:not([data-stage="0"]):not([data-stage="1"]):not([data-stage="2"]) #workbench-decision > strong { display:inline; font-size:14px; }
#workbench:not([data-stage="0"]):not([data-stage="1"]):not([data-stage="2"]) #workbench-decision > p { margin:6px 0 0; font-size:12px; }
#workbench #article-editor { color:#31302e; font-size:17px; line-height:1.95; min-height:340px; }
#workbench .flow-actionbar { padding:12px 4px; }
#workbench .flow-primary, #workbench #start-workbench { background:#0075de; box-shadow:none; border-radius:6px; }
#workbench .flow-secondary { border-radius:6px; }
#workbench .skill-review-result, #workbench .studio-framework { background:#faf9f7; border-radius:8px; }
#workbench[data-stage="0"] .article-canvas-head, #workbench[data-stage="0"] .version-strip { display:none; }
#workbench[data-stage="0"] #workbench-decision { padding-top:100px; max-width:480px; }
#workbench[data-stage="0"] #workbench-decision::before { content:'✎'; display:grid; place-items:center; width:48px; height:48px; border-radius:10px; background:#f6f5f4; color:#78736e; font-size:26px; margin-bottom:24px; }
#workbench[data-stage="0"] #workbench-decision > strong { font-size:25px; }
.begin-writing { margin-top:16px; padding:9px 14px; min-height:38px; background:#fff; border:1px solid #dedbd7; border-radius:6px; color:#31302e; }
#workbench.assistant-collapsed .conversation-workbench-layout { grid-template-columns:minmax(0,1fr); }
#workbench.assistant-collapsed .conversation-panel { display:none; }
.workspace-menu-toggle { display:none; }
@media(max-width:1150px) and (min-width:761px) {
  body .app-shell { margin-left:190px !important; }
  body .app-shell > .v3-topbar { width:190px; }
  #workbench.workbench-page { padding-inline:20px; }
  #workbench .conversation-workbench-layout { grid-template-columns:minmax(0,1fr) 290px; }
  #workbench .article-canvas { padding-inline:20px; }
  body .app-shell > :is(.home-page,.diagnose-page,.skill-page,.report-page) { padding:28px 24px; }
  body .studio-tool .skill-shell { grid-template-columns:1fr; }
  body .studio-tool .skill-output-col { position:static; max-height:none; }
}
@media(max-width:760px) {
  body .app-shell { margin-left:0 !important; padding-top:58px !important; }
  body .app-shell > .v3-topbar { width:100%; height:58px !important; inset:0 0 auto; padding:10px 14px !important; flex-direction:row; align-items:center; gap:8px; border:0; border-bottom:1px solid #e9e7e4; }
  body .v3-topbar .brand a { padding:0; }
  .workspace-menu-toggle { display:block; border:1px solid #dedbd7; border-radius:6px; min-height:36px; padding:6px 10px; color:#615d59; background:transparent; }
  body .v3-topbar .right { width:auto; margin:0 0 0 auto; padding:0; border:0; }
  body .v3-topbar .right .stat { font-size:11px; }
  body .v3-topbar .app-tabs { display:none !important; position:absolute !important; top:58px; left:0; width:100%; max-height:calc(100dvh - 58px); overflow:auto; background:#f6f5f4; padding:12px; box-shadow:0 8px 16px #0000000a; }
  body .v3-topbar.nav-open .app-tabs { display:flex !important; }
  body .v3-topbar .settings-popover {
    top:36px !important;
    bottom:auto !important;
    right:0 !important;
    left:auto !important;
  }
  body .app-shell > :is(.home-page,.diagnose-page,.skill-page,.report-page) { padding:24px 16px; }
  body #home .hero-collage { grid-template-columns:1fr; }
  body .studio-tool .skill-shell { grid-template-columns:1fr; gap:20px; }
  body .studio-tool .skill-output-col { position:static; max-height:none; padding:20px; }
  #workbench.workbench-page { padding:20px 12px 0; }
  #workbench .studio-heading { flex-wrap:wrap; gap:12px; margin-bottom:16px; }
  #workbench .studio-heading h1 { font-size:22px !important; }
  #workbench #assistant-toggle { display:none; }
  #workbench .studio-switch { background:#f1efec; }
  #workbench .conversation-workbench-layout, #workbench.assistant-collapsed .conversation-workbench-layout { grid-template-columns:minmax(0,1fr); height:calc(100dvh - 292px); min-height:380px; }
  #workbench .conversation-panel, #workbench .article-canvas { grid-column:1; border:0; }
  #workbench:not([data-studio-view=article]) .conversation-panel { display:flex; }
  #workbench[data-studio-view=article] .conversation-panel { display:none; }
  #workbench .article-canvas { padding-inline:12px; }
  #workbench .article-canvas-head { flex-wrap:wrap; }
  #workbench .article-canvas-head > div:first-child { flex-basis:100%; }
  #workbench .canvas-actions { margin-left:auto; }
  #workbench[data-stage="0"] #workbench-decision { padding-top:32px; }
  #workbench .flow-actionbar { padding:10px 0; }
  #workbench #article-editor { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { html body * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }


/* --- workbench-chat.css --- */
/* Single-conversation entry for the WeChat article Skill. */
#workbench.workbench-page {
  max-width: none;
  padding: 20px 24px;
}

#workbench .studio-heading {
  display: none;
}

#workbench .studio-heading h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0;
}

#workbench .studio-heading p {
  margin-top: 7px;
  font-size: 14px;
  color: #6e6e73;
}

#workbench .workflow-rail,
#workbench .studio-switch,
#workbench .studio-heading-actions,
#workbench .outcome-panel {
  display: none !important;
}

#workbench .conversation-workbench-layout {
  display: block;
  width: min(920px, 100%);
  height: calc(100dvh - 40px);
  min-height: 640px;
  max-height: 960px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(20, 24, 32, .07);
}

#workbench .conversation-panel {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border: 0;
  background: #fff;
  scrollbar-gutter: stable;
}

#workbench .conversation-panel-head {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 16px;
  border-bottom: 1px solid #ececf0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px) saturate(130%);
}

#workbench .conversation-identity,
#workbench .conversation-identity > div,
#workbench .conversation-panel-tools {
  display: flex;
  align-items: center;
  min-width: 0;
}

#workbench .conversation-identity { gap: 11px; }
#workbench .conversation-identity > div { align-items: flex-start; flex-direction: column; gap: 2px; }
#workbench .conversation-identity strong { font-size: 14px; font-weight: 620; color: #1d1d1f; }
#workbench .conversation-identity small { font-size: 11px; color: #8a8a90; }

#workbench .assistant-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #1d1d1f;
}

#workbench .assistant-mark svg,
#workbench .chat-welcome-mark svg { width: 17px; height: 17px; }
#workbench .conversation-panel-tools { gap: 10px; }
#workbench .work-status { color: #6e6e73; }

#workbench .new-chat-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #dedee3;
  border-radius: 8px;
  background: #fff;
  color: #35353a;
}

#workbench .chat-mode-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: none;
  gap: 4px;
  margin: 16px 42px 0;
  padding: 4px;
  border-radius: 10px;
  background: #f3f3f5;
}

#workbench .chat-mode-picker .mode-option {
  display: block;
  min-height: 48px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6e6e73;
  text-align: center;
  box-shadow: none;
}

#workbench .chat-mode-picker .mode-option strong,
#workbench .chat-mode-picker .mode-option small {
  display: block;
  margin: 0;
  letter-spacing: 0;
}

#workbench .chat-mode-picker .mode-option strong { font-size: 13px; font-weight: 620; }
#workbench .chat-mode-picker .mode-option small { margin-top: 2px; font-size: 10px; color: #8a8a90; }
#workbench .chat-mode-picker .mode-option.active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 4px rgba(20, 24, 32, .09);
}
#workbench .chat-mode-picker .mode-option:focus-visible { outline: 2px solid #007aff; outline-offset: 1px; }
#workbench[data-session-active="true"] .chat-mode-picker { display: none; }

#workbench .chat-thread {
  flex: none;
  min-height: auto;
  padding: 28px 48px 0;
  overflow: visible;
}

#workbench .chat-message {
  max-width: 78%;
  margin: 0 0 22px;
}

#workbench .chat-message > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #8a8a90;
}

#workbench .chat-message p {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #303034;
  font-size: 15px;
  line-height: 1.75;
}

#workbench .chat-message.from-user { margin-left: auto; }
#workbench .chat-message.from-user > span { text-align: right; }
#workbench .chat-message.from-user p {
  padding: 11px 15px;
  border-radius: 14px 14px 4px 14px;
  background: #f1f1f3;
  color: #1d1d1f;
}

#workbench .chat-message.is-pending p {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6e6e73;
}

#workbench .chat-message.is-pending p i {
  width: 14px;
  height: 14px;
  border: 2px solid #d2d2d7;
  border-top-color: #1d1d1f;
  border-radius: 50%;
  animation: workbench-chat-spin .8s linear infinite;
}

@keyframes workbench-chat-spin { to { transform: rotate(360deg); } }

#workbench .article-canvas {
  flex: none;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0 48px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

#workbench .article-canvas-head,
#workbench .version-strip { display: none; }

#workbench #workbench-decision {
  padding: 0;
  margin: 0 0 22px;
  scroll-margin-top: 80px;
}

#workbench #workbench-decision > span {
  display: inline-block;
  margin-bottom: 8px;
  color: #0878d1;
  font-size: 11px;
  font-weight: 620;
}

#workbench #workbench-decision > strong {
  margin: 0 0 6px;
  font-size: 17px;
}

#workbench #workbench-decision > p {
  margin: 0;
  font-size: 14px;
  color: #6e6e73;
}

#workbench .chat-welcome {
  padding: 28px 0 8px;
  text-align: center;
}

#workbench .chat-welcome-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid #dfdfe4;
  border-radius: 12px;
  color: #1d1d1f;
  background: #fafafa;
}

#workbench .chat-welcome h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: 0;
}

#workbench .chat-welcome p {
  max-width: 560px;
  margin: 10px auto 22px;
  color: #6e6e73;
  font-size: 14px;
  line-height: 1.7;
}

#workbench .starter-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

#workbench .starter-prompts button {
  min-height: 66px;
  padding: 12px;
  border: 1px solid #e2e2e7;
  border-radius: 10px;
  background: #fff;
  color: #3a3a3f;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

#workbench .starter-prompts button:hover {
  border-color: #bdbdc4;
  background: #f8f8fa;
}

#workbench #studio-stage-output .chat-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
}

#workbench #studio-stage-output .chat-choice {
  margin: 0;
  padding: 16px;
  border-color: #e3e3e8;
  border-radius: 10px;
  background: #fafafa;
}

#workbench .studio-framework,
#workbench .skill-review-result {
  padding: 20px;
  border-radius: 10px;
  background: #fafafa;
}

#workbench .editor-wrap {
  margin: 18px 0 0;
  padding: 20px;
  border: 1px solid #e3e3e8;
  border-radius: 10px;
  background: #fff;
}

#workbench #article-editor {
  min-height: 420px;
  padding: 8px 0;
  font-size: 16px;
}

#workbench .flow-actionbar {
  position: static;
  flex: none;
  width: auto;
  margin: 10px 48px 0;
  padding: 12px 0 0;
  border-top: 0;
  background: transparent;
}

#workbench .flow-actionbar .flow-status { display: none; }
#workbench .flow-actionbar .flow-actions { width: 100%; justify-content: flex-end; }
#workbench.is-running .flow-actionbar { display: none; }

#workbench .flow-primary {
  border-radius: 8px;
  background: #1d1d1f;
}

#workbench .workbench-progress {
  position: static;
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  margin: auto 22px 18px;
  padding: 14px 16px;
  border: 1px solid #e2e2e7;
  border-radius: 12px;
  background: #f7f7f8;
  box-shadow: none;
}

#workbench .workbench-progress > div:first-child {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: flex-start;
  gap: 9px;
}
#workbench .workbench-progress strong { color: #1d1d1f; font-size: 13px; }
#workbench .workbench-progress span { overflow: hidden; color: #6e6e73; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#workbench .workbench-progress-track { grid-column: 1 / -1; grid-row: 2; height: 3px; margin: 0; background: #dedee3; }
#workbench .workbench-progress-track i { background: #1d1d1f; }
#workbench .workbench-progress .outline-action {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #6e6e73;
  font-size: 11px;
}

#workbench .composer-shell {
  position: sticky;
  z-index: 5;
  bottom: 0;
  flex: none;
  margin: auto 22px 18px;
  padding: 13px 14px;
  border: 1px solid #d7d7dc;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 34px rgba(20, 24, 32, .11);
  backdrop-filter: blur(18px) saturate(130%);
}

#workbench.is-running .composer-shell { display: none; }

#workbench .composer-shell label {
  margin-bottom: 5px;
  color: #6e6e73;
  font-size: 11px;
}

#workbench #workbench-topic {
  height: 52px;
  min-height: 52px;
  max-height: 150px;
  font-size: 15px;
}

#workbench .composer-hint {
  margin-left: auto;
  color: #a1a1a6;
  font-size: 11px;
}

#workbench #start-workbench {
  min-width: 38px;
  width: 38px;
  min-height: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: #1d1d1f;
}

#workbench #start-workbench:disabled {
  min-width: 86px;
  width: auto;
  padding: 0 11px;
}

#workbench #workbench-execution-evidence {
  margin: 16px 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6e6e73;
}

#workbench #workbench-execution-evidence summary {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: #6e6e73;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

#workbench #workbench-execution-evidence summary small { color: #a1a1a6; font-size: 10px; }
#workbench #workbench-execution-evidence[open] {
  padding: 14px;
  border: 1px solid #e5e5e9;
  border-radius: 9px;
  background: #fafafa;
}
#workbench #workbench-execution-evidence[open] summary { color: #1d1d1f; }

@media (max-width: 760px) {
  #workbench.workbench-page { padding: 8px; }
  #workbench .studio-heading { padding: 0 6px; margin-bottom: 14px; }
  #workbench .studio-heading h1 { font-size: 23px; }
  #workbench .studio-heading p { font-size: 13px; }
  #workbench .conversation-workbench-layout { height: calc(100dvh - 16px); min-height: 500px; border-radius: 12px; }
  #workbench .conversation-panel { display: flex !important; }
  #workbench .conversation-panel-head { min-height: 62px; padding: 10px 12px; }
  #workbench .conversation-identity small,
  #workbench .work-status { display: none; }
  #workbench .chat-mode-picker { margin: 10px 12px 0; }
  #workbench .chat-mode-picker .mode-option { min-height: 42px; }
  #workbench .chat-mode-picker .mode-option small { display: none; }
  #workbench .chat-thread { padding: 22px 16px 0; }
  #workbench .chat-message { max-width: 90%; }
  #workbench .article-canvas { display: block !important; margin: 0 16px; padding: 0; }
  #workbench .chat-welcome { padding-top: 24px; }
  #workbench .chat-welcome h2 { font-size: 22px; }
  #workbench .starter-prompts { grid-template-columns: 1fr; }
  #workbench .starter-prompts button { min-height: 48px; text-align: center; }
  #workbench .flow-actionbar { margin-inline: 16px; }
  #workbench .workbench-progress { margin: auto 10px 10px; }
  #workbench .flow-actions { width: 100%; }
  #workbench .composer-shell { margin: auto 10px 10px; }
  #workbench .composer-hint { display: none; }
}

/* Release QA corrections: keep the workbench dense, readable, and tool-like. */
#workbench .conversation-workbench-layout {
  height: min(calc(100dvh - 40px), 820px);
  min-height: 520px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 24, 32, .06);
}

#workbench .conversation-panel-head,
#workbench .composer-shell {
  background: #fff;
  backdrop-filter: none;
}

#workbench .composer-shell {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(20, 24, 32, .08);
}

#workbench .conversation-identity small,
#workbench .chat-mode-picker .mode-option small,
#workbench .work-status,
#workbench .composer-shell label,
#workbench .composer-hint,
#workbench .chat-message > span,
#workbench #workbench-execution-evidence summary {
  font-size: 12px;
}

#workbench .conversation-identity small,
#workbench .chat-mode-picker .mode-option small,
#workbench .work-status,
#workbench .composer-hint,
#workbench .chat-message > span,
#workbench #workbench-execution-evidence summary,
#workbench #workbench-execution-evidence summary small {
  color: #5f6368;
}

#workbench .chat-mode-picker,
#workbench .chat-mode-picker .mode-option,
#workbench .starter-prompts button,
#workbench #studio-stage-output .chat-choice,
#workbench .studio-framework,
#workbench .skill-review-result,
#workbench .editor-wrap,
#workbench #workbench-execution-evidence[open] {
  border-radius: 8px;
}

#workbench[data-stage="0"] #workbench-decision {
  max-width: none;
  padding-top: 24px;
}

#workbench[data-stage="0"] #workbench-decision::before {
  display: none;
  content: none;
}

#workbench .chat-welcome {
  padding-top: 16px;
}

#workbench #start-workbench {
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  height: 44px;
}

@media (max-width: 760px) {
  #workbench .conversation-workbench-layout {
    min-height: 480px;
    border-radius: 8px;
  }

  #workbench[data-stage="0"] #workbench-decision {
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #workbench .chat-message.is-pending p i {
    animation: none;
  }
}


/* --- atelier.css --- */
/* ============================================================
   ATELIER · 纸墨工作台
   A paper-and-ink skin for the content studio.
   Loaded last; all rules are scoped to body.atelier.
   ============================================================ */

:root {
  --a-stone: #e3e1db;
  --a-stone-deep: #d8d4cb;
  --a-stone-soft: #ece9e2;
  --a-paper: #f6f7f7;
  --a-paper-warm: #f0f1f0;
  --a-paper-bright: #fbfcfc;
  --a-ink: #1a1c19;
  --a-ink-soft: #4f534c;
  --a-muted: #5f625b;
  --a-faint: #62655d;
  --a-line: #e4ded3;
  --a-line-soft: #ece7dd;
  --a-control: #cfc7b7;
  --a-celadon: #2f6b5a;
  --a-celadon-deep: #1f4c40;
  --a-celadon-soft: #dce8e1;
  --a-danger: #a33a2f;
  --a-sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --a-serif: "UW Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --a-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

body.atelier {
  --sans: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: var(--sans);
  --serif: var(--a-serif);
  --ikb: var(--a-celadon);
  --ikb-bright: var(--a-celadon);
  --accent: var(--a-celadon);
  background: var(--a-stone);
  color: var(--a-ink);
  font-family: var(--a-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.atelier ::selection {
  background: var(--a-celadon-soft);
  color: var(--a-ink);
}

body.atelier h1,
body.atelier h2,
body.atelier h3,
body.atelier h4 {
  font-family: var(--a-serif);
  letter-spacing: -0.02em;
  color: var(--a-ink);
}

body.atelier p,
body.atelier li,
body.atelier label,
body.atelier span {
  font-family: var(--a-sans);
}

body.atelier .app-shell {
  background: var(--a-stone);
}

body.atelier .v3-meta {
  display: none !important;
}

/* ---------- shell ---------- */
@media (min-width: 761px) {
  body.atelier .app-shell > .v3-topbar {
    width: 232px !important;
    background: var(--a-stone) !important;
    padding: 26px 14px 18px !important;
    gap: 26px;
    border: 0 !important;
  }

  body.atelier .v3-topbar .brand a {
    padding: 0 8px;
    gap: 10px;
  }

  body.atelier .v3-topbar .brand .mark {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: var(--a-celadon) !important;
    border-radius: 4px;
    color: var(--a-paper-bright);
    font-family: var(--a-serif);
    font-size: 14px;
    font-weight: 600;
  }

  body.atelier .v3-topbar .brand .mark::after {
    content: "宇";
  }

  body.atelier .v3-topbar .brand .name {
    margin: 0;
    color: var(--a-ink);
    font-family: var(--a-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
  }

  body.atelier .v3-topbar .brand .ver {
    display: none;
  }

  body.atelier .v3-topbar .app-tabs {
    gap: 2px;
  }

  body.atelier .nav-group-label {
    padding: 20px 10px 6px;
    color: var(--a-faint);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }

  body.atelier .v3-topbar .app-tabs a {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 4px;
    color: var(--a-ink-soft);
    font-size: 13px;
    font-weight: 400;
  }

  body.atelier .v3-topbar .app-tabs a:hover {
    background: var(--a-stone-soft);
    color: var(--a-ink);
  }

  body.atelier .v3-topbar .app-tabs a.active {
    background: var(--a-stone-deep);
    color: var(--a-ink);
    font-weight: 500;
    box-shadow: none;
  }

  body.atelier .v3-topbar .tab-icon {
    width: 16px;
    height: 16px;
    opacity: 0.72;
  }

  body.atelier .v3-topbar .right {
    border-top: 1px solid var(--a-line);
    padding: 16px 8px 0;
  }

  body.atelier .v3-topbar .right .stat {
    color: var(--a-muted);
    font-size: 10.5px;
  }
}

body.atelier .workspace-menu-toggle {
  border: 1px solid var(--a-control);
  border-radius: 4px;
  background: transparent;
  color: var(--a-ink);
}

/* ---------- home ---------- */
body.atelier .home-page {
  min-height: 100dvh;
  padding: 56px clamp(28px, 5vw, 76px) 24px;
  background: var(--a-stone);
  display: flex;
  flex-direction: column;
}

body.atelier .atelier-home {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

body.atelier .atelier-home-head {
  max-width: 720px;
}

body.atelier .atelier-home-date {
  margin: 0 0 18px;
  color: var(--a-muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

body.atelier .atelier-home h1 {
  margin: 0;
  font-family: var(--a-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.035em;
  color: var(--a-ink);
}
body.atelier .atelier-home .lede {
  max-width: 32em;
  margin: 18px 0 0;
  color: var(--a-ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

body.atelier .atelier-home-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
  margin-top: clamp(36px, 5vw, 64px);
}

body.atelier .atelier-home-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(30px, 3.5vw, 44px);
}

body.atelier .atelier-home-left {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 4vw, 52px);
}

body.atelier .atelier-flow,
body.atelier .atelier-recent {
  border-top: 1px solid var(--a-line);
  padding-top: 15px;
}

body.atelier .atelier-flow h2,
body.atelier .atelier-recent h2 {
  margin: 0;
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.atelier .atelier-flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--a-ink-soft);
  font-size: 12px;
}

body.atelier .atelier-flow-row i {
  color: var(--a-line);
  font-style: normal;
}

body.atelier .atelier-flow p {
  margin: 8px 0 0;
  color: var(--a-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

body.atelier .atelier-recent-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  margin-top: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--a-line-soft);
  text-decoration: none;
}

body.atelier .atelier-recent-empty span {
  color: var(--a-ink-soft);
  font-family: var(--a-serif);
  font-size: 14px;
  font-weight: 600;
}

body.atelier .atelier-recent-empty small {
  grid-column: 1;
  margin-top: 2px;
  color: var(--a-muted);
  font-size: 10.5px;
}

body.atelier .atelier-recent-empty b {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--a-line);
  font-weight: 400;
}


body.atelier .atelier-start {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 26px 28px 22px;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-paper);
  color: var(--a-ink);
  cursor: text;
  transition: border-color 0.16s ease, background 0.16s ease;
}

body.atelier .atelier-start:hover {
  border-color: var(--a-celadon);
  background: var(--a-paper-bright);
}

body.atelier .atelier-start-label {
  color: var(--a-muted);
  font-size: 11px;
}

body.atelier .atelier-start-input {
  flex: 1;
  width: 100%;
  min-height: 120px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.55;
  resize: none;
  outline: none;
}

body.atelier .atelier-start-input::placeholder {
  color: var(--a-faint);
  opacity: 1;
}

body.atelier .atelier-start:focus-within {
  border-color: var(--a-celadon);
  background: var(--a-paper-bright);
}

body.atelier .atelier-start-note {
  margin-top: 12px;
  color: var(--a-muted);
  font-size: 11px;
  line-height: 1.7;
}

body.atelier .atelier-start-go {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
  color: var(--a-celadon);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

body.atelier .atelier-start-go:hover {
  color: var(--a-celadon-deep);
}

body.atelier .atelier-start-go b {
  font-weight: 400;
  margin-left: 6px;
}

body.atelier .atelier-index {
  border-top: 1px solid var(--a-line);
}

body.atelier .atelier-index h2 {
  margin: 0;
  padding: 14px 0 10px;
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

body.atelier .atelier-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 3px;
  padding: 15px 0;
  border-bottom: 1px solid var(--a-line-soft);
  text-decoration: none;
  color: var(--a-ink);
  transition: color 0.14s ease;
}

body.atelier .atelier-index a:hover {
  color: var(--a-celadon-deep);
}

body.atelier .atelier-index-name {
  font-family: var(--a-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

body.atelier .atelier-index-desc {
  grid-column: 1;
  color: var(--a-muted);
  font-size: 11px;
  line-height: 1.6;
}

body.atelier .atelier-index-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--a-line);
  font-size: 13px;
  transition: color 0.14s ease, transform 0.14s ease;
}

body.atelier .atelier-index a:hover .atelier-index-arrow {
  color: var(--a-celadon);
  transform: translateX(3px);
}

body.atelier .atelier-home-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 16px;
  border-top: 1px solid var(--a-line);
  color: var(--a-muted);
  font-size: 11px;
}

body.atelier .atelier-home-foot a {
  color: var(--a-celadon);
  text-decoration: none;
}

/* ---------- workbench shell ---------- */
body.atelier #workbench.workbench-page {
  max-width: none;
  padding: 18px 24px 0;
  background: var(--a-stone);
  color: var(--a-ink);
}

body.atelier #workbench .studio-heading {
  margin: 0 0 14px;
  align-items: flex-end;
}

body.atelier #workbench .studio-heading h1 {
  margin: 0;
  font-family: var(--a-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

body.atelier #workbench .studio-heading p {
  margin: 4px 0 0;
  color: var(--a-muted);
  font-size: 11.5px;
}

body.atelier #workbench .workbench-stage-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--a-line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

body.atelier #workbench .workbench-stage-nav button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  min-height: 52px;
  padding: 10px 12px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--a-muted);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
}

body.atelier #workbench .workbench-stage-nav button:hover {
  color: var(--a-ink);
  background: var(--a-stone-soft);
}

body.atelier #workbench .workbench-stage-nav button[aria-current="step"] {
  color: var(--a-ink);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--a-celadon);
}

body.atelier #workbench .workbench-stage-nav button span {
  font-family: var(--a-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

body.atelier #workbench .workbench-stage-nav button small {
  color: var(--a-faint);
  font-family: var(--a-sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0;
}

body.atelier #workbench .workbench-stage-nav button[aria-current="step"] small {
  color: var(--a-celadon);
}

body.atelier #workbench .conversation-output-actions {
  display: none;
}

@media (min-width: 981px) {
  body.atelier #workbench .conversation-workbench-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 382px;
    width: calc(100% - 8px);
    max-width: none;
    height: clamp(560px, calc(100dvh - 182px), 860px);
    min-height: 560px;
    margin: 0 8px 8px 0;
    border: 1px solid var(--a-line);
    border-radius: 16px;
    background: var(--a-paper);
    overflow: hidden;
    box-shadow: none;
  }

  body.atelier #workbench .article-canvas {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    flex-direction: column;
    width: auto;
    height: 100%;
    min-height: 0;
    padding: 26px 36px 40px;
    border: 0;
    background: var(--a-paper);
    overflow-y: auto;
  }

  body.atelier #workbench .conversation-panel {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    width: auto;
    height: 100%;
    min-height: 0;
    border: 0;
    border-left: 1px solid var(--a-line);
    background: var(--a-paper-warm);
  }
}

body.atelier #workbench .article-canvas > * {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}

body.atelier #workbench .workbench-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding: 0 0 10px;
  border: 0;
}

body.atelier #workbench .workbench-stage-head > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

body.atelier #workbench #workbench-stage-kicker {
  color: var(--a-faint);
  font-family: var(--a-sans);
  font-size: 10px;
  line-height: 1.5;
}

body.atelier #workbench #workbench-stage-title {
  margin: 0;
  color: var(--a-ink);
  font-family: var(--a-sans) !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

body.atelier #workbench #workbench-stage-hint {
  display: none;
}

body.atelier #workbench .workbench-stage-actions {
  display: flex;
  gap: 6px;
}

body.atelier #workbench .workbench-stage-actions button {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--a-line);
  border-radius: 4px;
  background: transparent;
  color: var(--a-ink-soft);
  font-family: var(--a-sans);
  font-size: 10.5px;
  cursor: pointer;
}

body.atelier #workbench .workbench-stage-actions #workbench-stage-next {
  border-color: var(--a-ink);
  background: var(--a-ink);
  color: var(--a-paper);
}

body.atelier #workbench .workbench-stage-actions button:disabled {
  opacity: 0.35;
}

body.atelier #workbench .article-canvas-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 4px 0 10px;
  border: 0;
}

body.atelier #workbench .article-canvas-head h2 {
  margin: 0;
  font-family: var(--a-serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.035em;
  color: var(--a-ink);
}

body.atelier #workbench .article-canvas-head p {
  margin: 7px 0 0;
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10.5px;
}

body.atelier #workbench .canvas-actions {
  display: flex;
  gap: 2px;
  padding-top: 4px;
}

body.atelier #workbench .canvas-actions .icon-action {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--a-muted);
}

body.atelier #workbench .canvas-actions .icon-action:hover {
  background: var(--a-paper-warm);
  color: var(--a-ink);
}

body.atelier #workbench .version-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 8px 0 11px;
  border: 0;
  border-bottom: 1px solid var(--a-line);
  background: transparent;
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10px;
}

body.atelier #workbench #workbench-stage-choices {
  margin-top: 14px;
}

body.atelier #workbench .topic-board {
  margin-top: 0;
}

body.atelier #workbench .topic-board-head {
  padding: 0 0 10px;
}

body.atelier #workbench .topic-board-head strong {
  font-family: var(--a-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--a-ink);
}

body.atelier #workbench .topic-board-head p {
  margin: 3px 0 0;
  color: var(--a-muted);
  font-size: 10px;
}

body.atelier #workbench .topic-row-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--a-line);
}

body.atelier #workbench .workbench-stage-choices .topic-row,
body.atelier #workbench button.topic-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 12px;
  align-items: start;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 13px 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--a-line-soft);
  border-radius: 0;
  background: transparent;
  color: var(--a-ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

body.atelier #workbench .workbench-stage-choices .topic-row:hover,
body.atelier #workbench button.topic-row:hover {
  background: var(--a-paper-warm);
}

body.atelier #workbench .workbench-stage-choices .topic-row:focus-visible,
body.atelier #workbench button.topic-row:focus-visible {
  outline: 2px solid var(--a-celadon);
  outline-offset: 2px;
}

body.atelier #workbench .workbench-stage-choices .topic-row.is-selected,
body.atelier #workbench button.topic-row.is-selected {
  background: var(--a-celadon-soft);
  box-shadow: inset 2px 0 0 var(--a-celadon);
}

body.atelier #workbench .topic-row-index {
  padding-top: 2px;
  color: var(--a-faint);
  font-family: var(--a-mono);
  font-size: 10px;
  font-weight: 500;
}

body.atelier #workbench .topic-row-main {
  gap: 2px;
}

body.atelier #workbench .workbench-stage-choices .topic-row .topic-row-title {
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

body.atelier #workbench .workbench-stage-choices .topic-row.is-selected .topic-row-title {
  color: var(--a-celadon-deep);
}

body.atelier #workbench .workbench-stage-choices .topic-row .topic-row-type,
body.atelier #workbench .workbench-stage-choices .topic-row .topic-row-pick {
  padding: 0 5px;
  border-radius: 2px;
  background: var(--a-stone-soft);
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 9.5px;
  line-height: 1.75;
}

body.atelier #workbench .workbench-stage-choices .topic-row .topic-row-pick {
  background: var(--a-celadon-soft);
  color: var(--a-celadon-deep);
}

body.atelier #workbench .workbench-stage-choices .topic-row .topic-row-reason {
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10.5px;
}

body.atelier #workbench .workbench-stage-choices .topic-signal {
  color: var(--a-muted);
  font-size: 9.5px;
}

body.atelier #workbench .workbench-stage-choices .topic-signal b {
  color: var(--a-ink-soft);
  font-size: 10px;
}

body.atelier #workbench .topic-meter {
  width: 24px;
  height: 2px;
  background: var(--a-line);
}

body.atelier #workbench .topic-meter i {
  background: var(--a-celadon);
}

body.atelier #workbench .workbench-stage-choices .topic-row-competition {
  color: var(--a-muted);
  font-size: 9.5px;
}

body.atelier #workbench .workbench-stage-choices .topic-row-state {
  color: var(--a-line);
  font-size: 13px;
}

body.atelier #workbench .workbench-stage-choices .topic-row.is-selected .topic-row-state {
  color: var(--a-celadon);
}

body.atelier #workbench .topic-evidence {
  margin-top: 10px;
  border-top: 0;
  padding-top: 8px;
}

body.atelier #workbench .topic-evidence > summary {
  color: var(--a-muted);
  font-size: 10px;
}

body.atelier #workbench .topic-evidence > summary span {
  color: var(--a-faint);
  font-size: 9.5px;
}

body.atelier #workbench .topic-evidence-body {
  border-radius: 4px;
  background: var(--a-paper-warm);
}

body.atelier #workbench .topic-evidence-body h4 {
  color: var(--a-ink-soft);
  font-size: 9.5px;
}

body.atelier #workbench .topic-evidence-body li {
  color: var(--a-ink-soft);
  font-size: 10.5px;
}

body.atelier #workbench .topic-evidence-body li a {
  color: var(--a-celadon);
}

/* editor & article body */
body.atelier #workbench .editor-wrap {
  margin-top: 18px;
  border: 0;
  background: transparent;
}

body.atelier #workbench .editor-head {
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 9.5px;
}

body.atelier #workbench #article-editor {
  min-height: 340px;
  padding: 18px 0 40px;
  border: 0;
  background: transparent;
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 16px;
  line-height: 1.95;
  resize: none;
}

body.atelier #workbench .article-canvas-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid var(--a-line);
  color: var(--a-muted);
  font-size: 9.5px;
}

/* ---------- conversation margin ---------- */
body.atelier #workbench .conversation-panel-head {
  min-height: 64px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--a-line);
  background: transparent;
}

body.atelier #workbench .conversation-identity {
  gap: 10px;
}

body.atelier #workbench .assistant-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--a-celadon);
  border-radius: 50%;
  background: transparent;
  color: var(--a-celadon);
}

body.atelier #workbench .assistant-mark svg {
  display: none;
}

body.atelier #workbench .assistant-mark::after {
  content: "编";
  font-family: var(--a-serif);
  font-size: 11px;
  line-height: 1;
}

body.atelier #workbench .conversation-identity strong {
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 14px;
  font-weight: 600;
}

body.atelier #workbench .conversation-identity small {
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10px;
}

body.atelier #workbench .work-status {
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10px;
}

body.atelier #workbench .new-chat-button {
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid var(--a-line);
  border-radius: 4px;
  background: transparent;
  color: var(--a-ink-soft);
  font-family: var(--a-sans);
  font-size: 10px;
}

body.atelier #workbench .new-chat-button:hover {
  border-color: var(--a-control);
  background: var(--a-paper);
}

body.atelier #workbench .chat-thread {
  padding: 20px 20px 8px;
  background: transparent;
}

body.atelier #workbench .chat-message {
  margin: 0 0 22px;
  max-width: none;
}

body.atelier #workbench .chat-message > span {
  display: block;
  margin-bottom: 5px;
  color: var(--a-faint);
  font-family: var(--a-sans);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

body.atelier #workbench .chat-message p {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--a-ink-soft);
  font-family: var(--a-sans);
  font-size: 12.5px;
  line-height: 1.8;
}

body.atelier #workbench .chat-message.from-user p {
  padding-left: 10px;
  border-left: 2px solid var(--a-celadon);
  color: var(--a-ink);
}

body.atelier #workbench .chat-message.from-ai p {
  color: var(--a-ink-soft);
}

body.atelier #workbench .chat-action-card {
  margin: 8px 0 4px;
  padding: 14px;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: var(--a-paper);
  box-shadow: none;
}

body.atelier #workbench .chat-action-card > strong {
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 14px;
  font-weight: 600;
}

body.atelier #workbench .chat-action-card > p {
  margin: 5px 0 0;
  color: var(--a-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

body.atelier #workbench .chat-action-row {
  gap: 6px;
  margin-top: 10px;
}

body.atelier #workbench .chat-action-primary,
body.atelier #workbench .chat-action-ghost {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--a-sans);
  font-size: 10.5px;
}

body.atelier #workbench .chat-action-primary {
  border: 1px solid var(--a-ink);
  background: var(--a-ink);
  color: var(--a-paper);
}

body.atelier #workbench .chat-action-primary:hover {
  background: #000;
}

body.atelier #workbench .chat-action-ghost {
  border: 1px solid var(--a-line);
  background: transparent;
  color: var(--a-ink-soft);
}

body.atelier #workbench .chat-choice-row {
  display: none;
}

body.atelier #workbench .chat-steps li,
body.atelier #workbench .chat-steps-hint {
  color: var(--a-muted);
  font-size: 10.5px;
}

body.atelier #workbench .chat-steps li[data-state="active"] {
  color: var(--a-celadon);
}

body.atelier #workbench .chat-steps li[data-state="done"] {
  color: var(--a-celadon-deep);
}

body.atelier #workbench .composer-shell {
  margin: 12px;
  padding: 10px 11px 8px;
  border: 1px solid var(--a-control);
  border-radius: 8px;
  background: var(--a-paper-bright);
  box-shadow: none;
}

body.atelier #workbench .composer-shell label {
  display: block;
  margin-bottom: 4px;
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 9.5px;
}

body.atelier #workbench #workbench-topic {
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--a-ink);
  font-family: var(--a-sans);
  font-size: 12.5px;
  line-height: 1.7;
  resize: none;
  outline: none;
}

body.atelier #workbench #workbench-topic::placeholder {
  color: var(--a-faint);
}

body.atelier #workbench .composer-actions {
  gap: 8px;
  margin-top: 5px;
}

body.atelier #workbench .composer-text-action {
  color: var(--a-celadon);
  font-size: 10px;
}

body.atelier #workbench .composer-hint {
  color: var(--a-faint);
  font-size: 9px;
}

body.atelier #workbench .composer-send {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--a-ink);
  color: var(--a-paper);
}

body.atelier #workbench .composer-send svg {
  width: 15px;
  height: 15px;
}

body.atelier #workbench .composer-send:hover {
  background: #000;
}

/* ---------- shared components on other screens ---------- */
body.atelier input,
body.atelier textarea,
body.atelier select {
  border: 1px solid var(--a-control);
  border-radius: 6px;
  background: var(--a-paper-bright);
  color: var(--a-ink);
  font-family: var(--a-sans);
}

body.atelier input:focus,
body.atelier textarea:focus,
body.atelier select:focus {
  outline: 2px solid var(--a-celadon);
  outline-offset: 1px;
  border-color: var(--a-celadon);
}

body.atelier .primary,
body.atelier #submit-button,
body.atelier .flow-primary,
body.atelier .begin-writing {
  border: 1px solid var(--a-ink);
  border-radius: 4px;
  background: var(--a-ink);
  color: var(--a-paper);
  box-shadow: none;
}

body.atelier .primary:hover,
body.atelier #submit-button:hover,
body.atelier .flow-primary:hover {
  background: #000;
}

body.atelier .secondary,
body.atelier .flow-secondary,
body.atelier .chip {
  border: 1px solid var(--a-line);
  border-radius: 4px;
  background: transparent;
  color: var(--a-ink-soft);
  box-shadow: none;
}

body.atelier .chip:hover {
  border-color: var(--a-celadon);
  color: var(--a-celadon-deep);
}

body.atelier .diagnose-page,
body.atelier .skill-page,
body.atelier .report-page {
  background: var(--a-stone);
  color: var(--a-ink);
}

body.atelier .skill-page {
  padding: 34px clamp(24px, 4vw, 48px) 24px;
}

body.atelier .skill-page .tool-heading h1 {
  font-family: var(--a-serif);
  font-size: 30px !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em;
}

body.atelier .skill-page .tool-heading p {
  color: var(--a-muted);
  font-size: 11px;
}

body.atelier .studio-tool .skill-shell {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  height: clamp(520px, calc(100dvh - 208px), 760px);
  min-height: 520px;
  align-items: stretch;
}

body.atelier .studio-tool .skill-form-col,
body.atelier .studio-tool .skill-output-col {
  height: 100%;
  max-height: none;
  padding: 24px;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-paper);
  overflow: auto;
}

body.atelier .studio-tool .skill-form-col {
  display: flex;
  flex-direction: column;
}

body.atelier .studio-tool .skill-form-col::before {
  content: "写作简报";
  display: block;
  margin-bottom: 18px;
  color: var(--a-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

body.atelier .studio-tool .skill-form-col::after {
  content: "填写后，右侧会按顺序生成可编辑的产出。";
  display: block;
  margin-top: auto;
  padding-top: 24px;
  color: var(--a-muted);
  font-size: 11px;
  line-height: 1.7;
}

body.atelier .studio-tool .skill-form {
  margin: 0 !important;
}

body.atelier .studio-tool .skill-output-col {
  position: static;
  display: flex;
  flex-direction: column;
}

body.atelier .studio-tool .skill-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 24px;
}

body.atelier .studio-tool .skill-empty h2 {
  max-width: 18em;
  margin: 0 0 12px;
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

body.atelier .studio-tool .skill-empty p {
  max-width: 36em;
  color: var(--a-muted);
  font-size: 12px;
  line-height: 1.9;
}

body.atelier .studio-tool .skill-form :is(input, select, textarea) {
  width: 100%;
  border: 1px solid var(--a-control);
  border-radius: 6px;
  background: var(--a-paper-bright);
  color: var(--a-ink);
  font-size: 13px;
}

body.atelier .studio-tool .skill-form textarea {
  min-height: 148px;
  padding: 12px;
  line-height: 1.8;
}

body.atelier .studio-tool .skill-primary,
body.atelier #diagnose #submit-button {
  border: 1px solid var(--a-ink) !important;
  border-radius: 4px !important;
  background: var(--a-ink) !important;
  color: var(--a-paper) !important;
  box-shadow: none !important;
}

body.atelier .studio-tool .form-section {
  border-bottom-color: var(--a-line);
}

body.atelier .studio-tool .skill-output-col[aria-busy="true"] {
  border-color: var(--a-celadon);
}

/* diagnose keeps its sample report; bring its accents into the same palette */
body.atelier .diagnose-page {
  padding: 34px clamp(24px, 4vw, 48px) 24px;
}

body.atelier .diagnose-page .diagnose-shell {
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

body.atelier .diagnose-page .v3-hero-l h1 {
  font-family: var(--a-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

body.atelier .diagnose-page .v3-hero-r .frame {
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-paper);
  box-shadow: none;
}

body.atelier .diagnose-page .frame .score-row .v {
  font-family: var(--a-serif);
  color: var(--a-ink);
}

body.atelier .diagnose-page .frame .dim .bar i {
  background: var(--a-celadon);
}

body.atelier .diagnose-page .frame .head .live i,
body.atelier .diagnose-page .frame-cap i {
  background: var(--a-celadon);
}

body.atelier .diagnose-page .sample-row .chip {
  border: 1px solid var(--a-line);
  border-radius: 4px;
  background: transparent;
  color: var(--a-ink-soft);
}

body.atelier .diagnose-page .sample-row .chip:hover {
  border-color: var(--a-celadon);
  color: var(--a-celadon-deep);
}

body.atelier :is(.diagnose-page, .skill-page, .report-page) h1,
body.atelier :is(.diagnose-page, .skill-page, .report-page) h2 {
  font-family: var(--a-serif);
  letter-spacing: -0.03em;
}

body.atelier .skill-shell,
body.atelier .skill-form,
body.atelier .skill-output-col,
body.atelier .diagnose-shell .frame,
body.atelier .current-work-card,
body.atelier .outcome-panel,
body.atelier .score-report {
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: var(--a-paper);
  box-shadow: none;
}

body.atelier .kicker {
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

body.atelier .lede {
  color: var(--a-ink-soft);
}

body.atelier .recent-item,
body.atelier .recent-line {
  border-color: var(--a-line);
  background: transparent;
}

@media (max-width: 1150px) and (min-width: 981px) {
  body.atelier #workbench .conversation-workbench-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}

@media (max-width: 980px) {
  body.atelier .atelier-home-body,
  body.atelier .atelier-home-notes {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body.atelier #workbench .conversation-output-actions {
    display: flex !important;
    justify-content: flex-end;
    padding: 6px 0;
  }

  body.atelier #workbench .conversation-output-actions button {
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid var(--a-line);
    border-radius: 4px;
    background: var(--a-paper);
    color: var(--a-ink-soft);
    font-family: var(--a-sans);
    font-size: 11px;
  }

  body.atelier .home-page {
    padding: 40px 24px 24px;
  }

  body.atelier #workbench.workbench-page {
    padding: 16px 16px 0;
  }

  body.atelier #workbench .conversation-workbench-layout {
    height: auto;
    min-height: 0;
    margin: 0;
    border-radius: 12px;
  }

  body.atelier #workbench .workbench-stage-nav {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(108px, 1fr));
    padding-right: 16px;
    scroll-padding-right: 16px;
  }

  body.atelier #workbench .workbench-stage-nav button small {
    display: none;
  }
}

@media (max-width: 760px) {
  body.atelier .atelier-home h1 {
    font-size: 30px;
  }

  body.atelier .atelier-start {
    min-height: 156px;
    padding: 22px 20px 18px;
  }

  body.atelier .atelier-home-foot {
    flex-direction: column;
    gap: 8px;
  }

  body.atelier #workbench .studio-heading h1 {
    font-size: 22px;
  }

  body.atelier #workbench .article-canvas-head h2 {
    font-size: 26px;
  }

  body.atelier #workbench .article-canvas {
    padding: 20px 18px 32px;
  }

  body.atelier #workbench .chat-thread {
    padding: 16px 16px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.atelier *,
  body.atelier *::before,
  body.atelier *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Later layers in the old stack force a sans face with !important; the
   editorial face is the one thing this skin must win back. */
body.atelier #workbench :is(button, input, textarea, label, small, span, p, a, li),
body.atelier #workbench .chat-message,
body.atelier #workbench .composer-shell,
body.atelier #workbench .workbench-stage-nav {
  font-family: var(--a-sans) !important;
}

body.atelier #workbench .conversation-workbench-layout,
body.atelier #workbench .article-canvas,
body.atelier #workbench .conversation-panel,
body.atelier #workbench .chat-action-card,
body.atelier #workbench .composer-shell,
body.atelier #workbench .topic-row,
body.atelier #workbench .topic-evidence-body {
  box-shadow: none !important;
}

body.atelier #workbench .topic-evidence-body li small,
body.atelier #workbench .topic-evidence-body p,
body.atelier #workbench .topic-evidence-body h4 {
  color: var(--a-muted) !important;
}

body.atelier #workbench .version-strip,
body.atelier #workbench .article-canvas-foot,
body.atelier #workbench .article-canvas-foot span,
body.atelier #workbench .editor-head {
  color: var(--a-muted) !important;
}

body.atelier .atelier-home h1,
body.atelier .atelier-index-name,
body.atelier .v3-topbar .brand .name,
body.atelier #workbench .studio-heading h1,
body.atelier #workbench .article-canvas-head h2,
body.atelier #workbench .topic-board-head strong,
body.atelier #workbench .workbench-stage-choices .topic-row .topic-row-title,
body.atelier #workbench .chat-action-card > strong,
body.atelier #workbench .conversation-identity strong,
body.atelier #workbench .assistant-mark::after,
body.atelier :is(.diagnose-page, .skill-page, .report-page) h1,
body.atelier :is(.diagnose-page, .skill-page, .report-page) h2 {
  font-family: var(--a-serif) !important;
}

body.atelier #workbench .studio-heading {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 10px;
}

body.atelier #workbench .studio-heading h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

body.atelier #workbench .studio-heading p {
  margin: 3px 0 0;
  color: var(--a-muted);
  font-size: 11px;
}

body.atelier #workbench .chat-message p {
  background: transparent !important;
  border: 0 !important;
  color: var(--a-ink-soft);
}

body.atelier #workbench .chat-message.from-user {
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  text-align: left;
}

body.atelier #workbench .chat-message.from-user > span {
  display: none !important;
}

body.atelier #workbench .chat-message.from-user p {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--a-celadon) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--a-ink) !important;
  text-align: left;
}

body.atelier #workbench #start-workbench {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid var(--a-ink) !important;
  border-radius: 4px !important;
  background: var(--a-ink) !important;
  color: var(--a-paper) !important;
  margin-left: 0 !important;
}

body.atelier #workbench #start-workbench svg {
  width: 15px;
  height: 15px;
}


body.atelier #workbench .chat-message.from-ai p {
  color: var(--a-ink-soft) !important;
}


/* --- market.css --- */
/* AI 超市 · 沿用站内 token（IKB / 近黑 / 发丝线 / SF 字体栈） */
.market-page{overflow-x:clip;
  --m-bg:var(--bg,#fbfbfd);
  --m-surface:var(--bg-2,#fff);
  --m-surface-2:var(--bg-3,#f5f5f7);
  --m-text:var(--text,#1d1d1f);
  --m-text-2:var(--text-2,#515154);
  --m-text-3:var(--text-3,#6e6e73);
  --m-text-4:var(--text-4,#86868b);
  --m-line:var(--line,rgba(0,0,0,.08));
  --m-line-2:var(--line-2,rgba(0,0,0,.14));
  --m-ikb:var(--ikb,#002FA7);
  --m-ikb-soft:var(--ikb-soft,rgba(0,47,167,.07));
  --m-sans:var(--sans,-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Segoe UI","Microsoft YaHei",sans-serif);
  --m-mono:var(--mono,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace);
  background:var(--m-bg);
  color:var(--m-text);
  font-family:var(--m-sans);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
.market-page *{box-sizing:border-box}
.market-page a{color:inherit;text-decoration:none}
.market-page button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.market-wrap{max-width:1120px;margin:0 auto;padding:0 28px}

/* 页头 */
.market-hero{padding:54px 0 30px;border-bottom:1px solid var(--m-line)}
.market-kicker{font-family:var(--m-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--m-text-4);display:flex;align-items:center;gap:10px}
.market-kicker i{display:inline-block;width:18px;height:1px;background:var(--m-line-2)}
.market-hero h1{margin:14px 0 0;font-size:46px;line-height:1.06;letter-spacing:-.028em;font-weight:680}
.market-hero p{margin:12px 0 0;max-width:52ch;color:var(--m-text-3);font-size:15px}
.market-meta{margin-top:18px;display:flex;flex-wrap:wrap;gap:18px;
  font-family:var(--m-mono);font-size:11.5px;color:var(--m-text-4);font-variant-numeric:tabular-nums}
.market-meta b{color:var(--m-text-2);font-weight:600}

/* 搜索 */
.market-searchwrap{padding:22px 0 0}
.market-search{display:flex;align-items:center;gap:11px;height:50px;padding:0 16px;
  background:var(--m-surface);border:1px solid var(--m-line-2);border-radius:12px;
  transition:border-color .18s ease,box-shadow .18s ease}
.market-search:focus-within{border-color:rgba(0,47,167,.42);box-shadow:0 0 0 4px var(--m-ikb-soft)}
.market-search svg{flex:none;color:var(--m-text-4)}
.market-search input{flex:1;border:0;outline:0;background:transparent;font-size:15px;color:var(--m-text)}
.market-search input::placeholder{color:var(--m-text-4)}
.market-search kbd{font-family:var(--m-mono);font-size:10.5px;color:var(--m-text-4);
  border:1px solid var(--m-line-2);border-radius:5px;padding:2px 6px;background:var(--m-surface-2)}

/* 布局 */
.market-layout{display:grid;grid-template-columns:184px minmax(0,1fr);gap:56px;padding:38px 0 72px}
.market-layout>*{min-width:0}
.market-row>*{min-width:0}
.market-rail{position:sticky;top:86px;align-self:start}
.market-rail h2{font-family:var(--m-mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--m-text-4);font-weight:500;margin:0 0 12px}
.market-rail ul{list-style:none;margin:0;padding:0;min-width:0}
.market-rail a{display:flex;align-items:baseline;gap:8px;padding:6px 0;font-size:13.5px;color:var(--m-text-3)}
.market-rail a:hover{color:var(--m-text)}
.market-rail a .n{margin-left:auto;font-family:var(--m-mono);font-size:11px;color:var(--m-text-4);
  font-variant-numeric:tabular-nums}
.market-rail a.on{color:var(--m-ikb);font-weight:600}
.market-rail a.on .n{color:rgba(0,47,167,.6)}

/* 精选 */
.market-section-head{display:flex;align-items:baseline;gap:12px;margin-bottom:14px}
.market-section-head h2{font-size:16px;letter-spacing:-.012em;margin:0;font-weight:640}
.market-section-head span{font-family:var(--m-mono);font-size:11px;color:var(--m-text-4);letter-spacing:.06em}
.market-featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:38px}
.market-fcard{display:flex;flex-direction:column;gap:8px;padding:16px 16px 14px;background:var(--m-surface);
  border:1px solid var(--m-line);border-radius:14px;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.market-fcard:hover{border-color:var(--m-line-2);transform:translateY(-1px);box-shadow:0 6px 22px rgba(0,0,0,.05)}
.market-fcard .tag{display:inline-flex;align-items:center;gap:6px;font-family:var(--m-mono);
  font-size:10px;letter-spacing:.1em;color:var(--m-ikb);text-transform:uppercase}
.market-fcard .tag::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--m-ikb)}
.market-fcard strong{font-size:14.5px;font-weight:640;letter-spacing:-.01em;line-height:1.35}
.market-fcard p{margin:0;font-size:12.5px;color:var(--m-text-3);line-height:1.55;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.market-fcard .src{font-family:var(--m-mono);font-size:10.5px;color:var(--m-text-4);margin-top:auto}

/* 工具栏 */
.market-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:6px}
.market-count{font-family:var(--m-mono);font-size:11.5px;color:var(--m-text-4);font-variant-numeric:tabular-nums}
.market-count b{color:var(--m-text-2);font-weight:600}
.market-seg{margin-left:auto;display:flex;gap:2px;padding:3px;border-radius:9px;background:var(--m-surface-2)}
.market-seg button{padding:5px 11px;border-radius:7px;font-size:12.5px;color:var(--m-text-3);
  transition:background .16s ease,color .16s ease,box-shadow .16s ease}
.market-seg button:hover{color:var(--m-text)}
.market-seg button[aria-pressed="true"]{background:var(--m-surface);color:var(--m-text);font-weight:600;
  box-shadow:0 1px 3px rgba(0,0,0,.09)}

/* 列表 */
.market-list{border-top:1px solid var(--m-line)}
.market-row{display:grid;grid-template-columns:minmax(0,1fr) 132px 24px;gap:22px;align-items:center;
  padding:17px 10px 17px 4px;border-bottom:1px solid var(--m-line);transition:background .16s ease}
.market-row:hover{background:rgba(0,0,0,.022)}
.market-row:hover .go{transform:translateX(3px);color:var(--m-text-2)}
.market-row .titleline{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.market-row .name{font-size:15.5px;font-weight:620;letter-spacing:-.012em}
.market-badge{font-size:10px;font-family:var(--m-mono);letter-spacing:.06em;color:var(--m-text-3);
  border:1px solid var(--m-line-2);border-radius:5px;padding:1px 5px}
.market-badge.official{color:var(--m-ikb);border-color:rgba(0,47,167,.28);background:var(--m-ikb-soft)}
.market-badge.manual{color:var(--warn,#b25000);border-color:rgba(178,80,0,.25)}
.market-row .desc{margin:5px 0 0;font-size:13px;color:var(--m-text-3);line-height:1.62;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.market-row .meta{display:flex;gap:14px;margin-top:7px;font-family:var(--m-mono);font-size:10.5px;
  color:var(--m-text-4);font-variant-numeric:tabular-nums;flex-wrap:wrap}
.market-row .side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.market-row .stars{display:flex;align-items:center;gap:5px;font-family:var(--m-mono);font-size:12.5px;
  color:var(--m-text-2);font-variant-numeric:tabular-nums}
.market-row .stars svg{color:var(--m-text-4)}
.market-row .cat{font-size:11px;color:var(--m-text-4);font-family:var(--m-mono);letter-spacing:.04em}
.market-row .go{color:var(--m-text-4);transition:transform .18s ease,color .18s ease}
.market-row .admin-actions{display:flex;gap:6px;margin-top:6px}
.market-row .admin-actions button{font-size:11px;color:var(--m-text-3);border:1px solid var(--m-line-2);
  border-radius:6px;padding:2px 7px}
.market-row .admin-actions button:hover{color:var(--m-text);border-color:var(--m-line-3,rgba(0,0,0,.2))}
.market-row .admin-actions button.on{color:var(--m-ikb);border-color:rgba(0,47,167,.35);background:var(--m-ikb-soft)}

/* 底部与状态 */
.market-more{display:flex;justify-content:center;padding:22px 0 0}
.market-more button{padding:9px 18px;border:1px solid var(--m-line-2);border-radius:9px;font-size:13px;
  color:var(--m-text-2);background:var(--m-surface)}
.market-more button:hover{border-color:var(--m-line-3,rgba(0,0,0,.2))}
.market-empty{padding:56px 0;text-align:center;color:var(--m-text-4)}
.market-empty strong{display:block;color:var(--m-text-2);font-size:14px;margin-bottom:4px}
.market-loading{padding:40px 0;text-align:center;color:var(--m-text-4);font-size:13px}
.market-foot{border-top:1px solid var(--m-line);padding:22px 0 40px}
.market-foot .market-wrap{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:baseline}
.market-foot p{margin:0;font-size:11.5px;color:var(--m-text-4);line-height:1.7}
.market-foot a{color:var(--m-text-3);border-bottom:1px solid var(--m-line-2)}

/* 管理抽屉 */
.market-admin-toggle{position:fixed;right:22px;bottom:22px;z-index:40;height:38px;padding:0 16px;
  border-radius:19px;background:var(--m-text);color:#fff;font-size:12.5px;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.market-admin{position:fixed;top:0;right:0;bottom:0;width:min(380px,92vw);z-index:50;background:var(--m-surface);visibility:hidden;
  border-left:1px solid var(--m-line-2);box-shadow:-18px 0 48px rgba(0,0,0,.12);padding:20px 20px 28px;
  overflow-y:auto;transform:translateX(100%);transition:transform .24s ease,visibility .24s ease}
.market-admin.open{transform:none;visibility:visible}
.market-admin h3{margin:0 0 4px;font-size:15px}
.market-admin p.hint{margin:0 0 16px;font-size:12px;color:var(--m-text-4);line-height:1.6}
.market-admin form{display:grid;gap:8px;margin-bottom:18px}
.market-admin label{display:grid;gap:4px;font-size:11.5px;color:var(--m-text-3)}
.market-admin input,.market-admin select,.market-admin textarea{
  width:100%;padding:8px 10px;border:1px solid var(--m-line-2);border-radius:8px;
  background:var(--m-surface);font:inherit;font-size:13px;color:var(--m-text)}
.market-admin textarea{min-height:62px;resize:vertical}
.market-admin .row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.market-admin button.primary{margin-top:4px;padding:9px 12px;border-radius:8px;background:var(--m-text);color:#fff;font-size:13px}
.market-admin .close{position:absolute;top:12px;right:14px;font-size:18px;color:var(--m-text-4)}

@media (max-width:900px){
  .market-wrap{padding:0 18px}
  .market-hero{padding:34px 0 22px}
  .market-hero h1{font-size:34px}
  .market-layout{grid-template-columns:1fr;gap:0;padding:20px 0 56px}
  .market-rail{position:static;margin-bottom:20px}
  .market-rail h2{display:none}
  .market-rail ul{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none;
    mask-image:linear-gradient(90deg,#000 94%,transparent)}
  .market-rail ul::-webkit-scrollbar{display:none}
  .market-rail a{white-space:nowrap;padding:7px 12px;border:1px solid var(--m-line-2);border-radius:999px;
    font-size:13px;background:var(--m-surface)}
  .market-rail a .n{margin-left:6px}
  .market-rail a.on{border-color:rgba(0,47,167,.35);background:var(--m-ikb-soft)}
  .market-featured{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
    margin-bottom:26px;padding-bottom:4px;mask-image:linear-gradient(90deg,#000 94%,transparent)}
  .market-fcard{min-width:78%;padding:14px;scroll-snap-align:start}
  .market-search input{font-size:16px}
  .market-toolbar{flex-wrap:wrap;gap:10px}
  .market-seg{margin-left:0;width:100%;justify-content:space-between}
  .market-row{grid-template-columns:minmax(0,1fr) 22px;gap:12px;padding:15px 2px}
  .market-row .side{display:none}
  .market-admin-toggle{bottom:16px;right:16px}
}
@media (prefers-reduced-motion:reduce){
  .market-page *{transition:none !important;animation:none !important}
}

/* 顶部导航：与工作台同构（品牌 + 模块 + 发丝线），不依赖首页那套重 CSS */
.market-topbar{position:sticky;top:0;z-index:30;background:rgba(251,251,253,.86);
  backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--line,rgba(0,0,0,.08))}
.market-topbar .market-wrap{display:flex;align-items:center;gap:26px;height:58px}
.market-brand{display:flex;align-items:center;gap:9px;font-weight:650;letter-spacing:-.01em;color:var(--text,#1d1d1f)}
.market-mark{width:22px;height:22px;border-radius:6px;background:var(--ikb,#002FA7);position:relative;flex:none}
.market-mark::after{content:"";position:absolute;inset:6px;border:1.6px solid #fff;border-radius:2px;
  border-right-color:transparent;transform:rotate(-45deg)}
.market-tabs{display:flex;gap:4px}
.market-tabs a{padding:7px 11px;border-radius:8px;font-size:13.5px;color:var(--text-3,#6e6e73);
  transition:color .18s ease,background .18s ease}
.market-tabs a:hover{color:var(--text,#1d1d1f);background:rgba(0,0,0,.035)}
.market-tabs a.active{color:var(--text,#1d1d1f);font-weight:600;background:rgba(0,0,0,.045)}

@media (max-width:900px){
  .market-topbar .market-wrap{gap:12px;height:52px;overflow-x:auto;scrollbar-width:none;
    mask-image:linear-gradient(90deg,#000 92%,transparent)}
  .market-topbar .market-wrap::-webkit-scrollbar{display:none}
  .market-brand{flex:none}
  .market-brand-name{display:none}
  .market-tabs{flex:none}
  .market-tabs a{white-space:nowrap;padding:6px 9px;font-size:13px}
}

/* --- atelier-market.css --- */
/* Atelier skin for the public AI 超市 index. */

body.atelier.market-body {
  background: var(--a-stone);
  color: var(--a-ink);
  font-family: var(--a-sans);
}

body.atelier.market-body .market-page {
  --m-bg: transparent;
  --m-surface: var(--a-paper);
  --m-surface-2: var(--a-stone-soft);
  --m-text: var(--a-ink);
  --m-text-2: var(--a-ink-soft);
  --m-text-3: var(--a-muted);
  --m-text-4: var(--a-muted);
  --m-line: var(--a-line);
  --m-line-2: var(--a-control);
  --m-ikb: var(--a-celadon);
  --m-ikb-soft: var(--a-celadon-soft);
  --m-sans: var(--a-sans);
  --m-mono: var(--a-sans);
  color: var(--a-ink);
  font-size: 14px;
}

body.atelier.market-body .market-topbar {
  position: sticky;
  top: 0;
  background: var(--a-stone);
  border-bottom: 1px solid var(--a-line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.market-body.embedded .market-topbar {
  display: none !important;
}

body.market-body.embedded .market-hero {
  padding-top: 30px;
}

body.atelier.market-body .market-topbar .market-wrap {
  height: 64px;
  max-width: 1440px;
  gap: 28px;
}

body.atelier.market-body .market-brand {
  gap: 10px;
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

body.atelier.market-body .market-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--a-celadon);
}

body.atelier.market-body .market-mark::after {
  content: "宇";
  position: static;
  inset: auto;
  border: 0;
  transform: none;
  color: var(--a-paper);
  font-family: var(--a-serif);
  font-size: 14px;
  line-height: 1;
}

body.atelier.market-body .market-tabs {
  gap: 2px;
}

body.atelier.market-body .market-tabs a {
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--a-muted);
  font-size: 12.5px;
}

body.atelier.market-body .market-tabs a:hover {
  background: var(--a-stone-soft);
  color: var(--a-ink);
}

body.atelier.market-body .market-tabs a.active {
  background: var(--a-stone-deep);
  color: var(--a-ink);
  font-weight: 500;
}

body.atelier.market-body .market-hero {
  padding: 58px 0 30px;
  border-bottom: 1px solid var(--a-line);
}

body.atelier.market-body .market-kicker {
  display: none;
}

body.atelier.market-body .market-hero h1 {
  margin: 0;
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

body.atelier.market-body .market-hero p {
  margin: 16px 0 0;
  max-width: 56ch;
  color: var(--a-muted);
  font-size: 13px;
  line-height: 1.9;
}

body.atelier.market-body .market-meta {
  margin-top: 18px;
  gap: 20px;
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 11px;
}

body.atelier.market-body .market-meta b {
  color: var(--a-ink);
  font-weight: 600;
}

body.atelier.market-body .market-searchwrap {
  padding: 24px 0 0;
}

body.atelier.market-body .market-search {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--a-control);
  border-radius: 6px;
  background: var(--a-paper);
  box-shadow: none;
}

body.atelier.market-body .market-search:focus-within {
  border-color: var(--a-celadon);
  box-shadow: 0 0 0 3px var(--a-celadon-soft);
}

body.atelier.market-body .market-search input {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--a-ink);
  font-family: var(--a-sans);
  font-size: 14px;
}

body.atelier.market-body .market-search input:focus {
  outline: none;
}

body.atelier.market-body .market-search kbd {
  border-color: var(--a-line);
  border-radius: 3px;
  background: var(--a-stone-soft);
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10.5px;
}

body.atelier.market-body .market-layout {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 48px;
  padding: 38px 0 72px;
}

body.atelier.market-body .market-rail h2,
body.atelier.market-body .market-section-head span,
body.atelier.market-body .market-count,
body.atelier.market-body .market-fcard .tag,
body.atelier.market-body .market-fcard .src,
body.atelier.market-body .market-row .meta,
body.atelier.market-body .market-row .cat {
  font-family: var(--a-sans);
  letter-spacing: 0;
  text-transform: none;
}

body.atelier.market-body .market-rail h2 {
  margin-bottom: 10px;
  color: var(--a-muted);
  font-size: 11px;
}

body.atelier.market-body .market-rail a {
  padding: 7px 0;
  color: var(--a-muted);
  font-size: 13px;
}

body.atelier.market-body .market-rail a:hover,
body.atelier.market-body .market-rail a.on {
  color: var(--a-celadon-deep);
}

body.atelier.market-body .market-rail a.on .n {
  color: var(--a-celadon);
}

body.atelier.market-body .market-section-head h2 {
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.atelier.market-body .market-section-head span {
  color: var(--a-muted);
  font-size: 10.5px;
}

body.atelier.market-body .market-featured {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

body.atelier.market-body .market-fcard {
  padding: 16px;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: var(--a-paper);
  box-shadow: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

body.atelier.market-body .market-fcard:hover {
  border-color: var(--a-control);
  background: var(--a-paper-bright);
  box-shadow: none;
  transform: none;
}

body.atelier.market-body .market-fcard .tag {
  color: var(--a-celadon-deep);
  font-size: 10.5px;
}

body.atelier.market-body .market-fcard .tag::before {
  background: var(--a-celadon);
}

body.atelier.market-body .market-fcard strong {
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

body.atelier.market-body .market-fcard p {
  color: var(--a-muted);
  font-size: 12px;
}

body.atelier.market-body .market-fcard .src {
  color: var(--a-muted);
  font-size: 10.5px;
}

body.atelier.market-body .market-toolbar {
  margin-top: 32px;
  margin-bottom: 8px;
}

body.atelier.market-body .market-count {
  color: var(--a-muted);
  font-size: 11px;
}

body.atelier.market-body .market-seg {
  gap: 2px;
  padding: 2px;
  border-radius: 4px;
  background: var(--a-stone-soft);
}

body.atelier.market-body .market-seg button {
  padding: 5px 10px;
  border-radius: 3px;
  color: var(--a-muted);
  font-size: 11.5px;
}

body.atelier.market-body .market-seg button[aria-pressed="true"] {
  background: var(--a-paper);
  color: var(--a-ink);
  box-shadow: none;
}

body.atelier.market-body .market-list {
  border-top: 1px solid var(--a-line);
}

body.atelier.market-body .market-row {
  grid-template-columns: minmax(0, 1fr) 120px 20px;
  gap: 20px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--a-line-soft);
}

body.atelier.market-body .market-row:hover {
  background: var(--a-paper-warm);
}

body.atelier.market-body .market-row .name {
  color: var(--a-ink);
  font-family: var(--a-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.atelier.market-body .market-badge {
  padding: 1px 5px;
  border: 1px solid var(--a-line);
  border-radius: 2px;
  color: var(--a-muted);
  font-family: var(--a-sans);
  font-size: 10.5px;
  letter-spacing: 0;
}

body.atelier.market-body .market-badge.official {
  border-color: var(--a-celadon);
  background: var(--a-celadon-soft);
  color: var(--a-celadon-deep);
}

body.atelier.market-body .market-row .desc {
  margin-top: 5px;
  color: var(--a-muted);
  font-size: 12px;
  line-height: 1.7;
}

body.atelier.market-body .market-row .meta {
  margin-top: 6px;
  color: var(--a-muted);
  font-size: 10.5px;
}

body.atelier.market-body .market-row .stars {
  color: var(--a-ink-soft);
  font-family: var(--a-sans);
  font-size: 12px;
}

body.atelier.market-body .market-row .cat {
  color: var(--a-muted);
  font-size: 10.5px;
}

body.atelier.market-body .market-row .go {
  color: var(--a-line);
}

body.atelier.market-body .market-row:hover .go {
  color: var(--a-celadon);
}

body.atelier.market-body .market-more button {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--a-line);
  border-radius: 4px;
  color: var(--a-ink-soft);
  font-size: 11px;
}

body.atelier.market-body .market-foot {
  border-top: 1px solid var(--a-line);
  padding: 22px 0 40px;
}

body.atelier.market-body .market-foot p {
  color: var(--a-muted);
  font-size: 10.5px;
}

body.atelier.market-body .market-foot a {
  color: var(--a-celadon-deep);
  border-bottom-color: var(--a-line);
}

body.atelier.market-body .market-admin-toggle {
  height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--a-ink);
  color: var(--a-paper);
  font-size: 11px;
  box-shadow: none;
}

body.atelier.market-body .market-admin {
  border-left: 1px solid var(--a-line);
  background: var(--a-paper);
  box-shadow: -18px 0 48px rgba(20, 22, 18, 0.12);
}

body.atelier.market-body .market-admin h3 {
  font-family: var(--a-serif);
  font-size: 18px;
}

body.atelier.market-body .market-admin p.hint,
body.atelier.market-body .market-admin label {
  color: var(--a-muted);
  font-size: 11px;
}

body.atelier.market-body .market-admin input,
body.atelier.market-body .market-admin select,
body.atelier.market-body .market-admin textarea {
  border-color: var(--a-control);
  border-radius: 4px;
  background: var(--a-paper-bright);
  color: var(--a-ink);
  font-family: var(--a-sans);
  font-size: 12px;
}

body.atelier.market-body .market-admin button.primary {
  border-radius: 4px;
  background: var(--a-ink);
  color: var(--a-paper);
  font-size: 12px;
}

@media (max-width: 900px) {
  body.atelier.market-body .market-topbar .market-wrap {
    height: 58px;
    gap: 10px;
  }

  body.atelier.market-body .market-brand-name {
    display: none;
  }

  body.atelier.market-body .market-tabs a {
    padding: 6px 8px;
    font-size: 12px;
  }

  body.atelier.market-body .market-hero {
    padding: 36px 0 24px;
  }

  body.atelier.market-body .market-hero h1 {
    font-size: 32px;
  }

  body.atelier.market-body .market-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0 56px;
  }

  body.atelier.market-body .market-featured {
    grid-template-columns: 1fr;
  }

  body.atelier.market-body .market-row {
    grid-template-columns: minmax(0, 1fr) 20px;
  }

  body.atelier.market-body .market-row .side {
    display: none;
  }
}


/* --- market-v2.css --- */
/* ==========================================================================
   market-v2.css — AI 超市接进统一外壳
   依赖 theme-glass.css（侧栏、玻璃、绿阶 token）。
   只改布局与外观，market.js 依赖的 id 一个不动。
   ========================================================================== */

body.atelier.market-body {
  background:
    radial-gradient(700px 580px at 0% -16%, #A9DCC0 0%, rgba(169, 220, 192, 0) 58%),
    radial-gradient(720px 620px at 100% 0%, #F6E9DA 0%, rgba(246, 233, 218, 0) 56%),
    radial-gradient(900px 700px at 78% 112%, #DDE9D6 0%, rgba(221, 233, 214, 0) 62%),
    linear-gradient(178deg, #FBFAF6 0%, #F1F2EA 54%, #EAEEE6 100%) !important;
  min-height: 100vh;
}

/* 让内容避开固定侧栏 */
body.atelier.market-body .market-page {
  margin-left: 252px;
  padding: 10px 0 40px;
  overflow-x: clip;
}

body.atelier.market-body .market-wrap {
  max-width: none;
  padding: 0 26px;
  margin: 0;
}

/* ---------- 页头 ---------- */
body.atelier.market-body .market-hero {
  padding: 26px 0 22px;
  border-bottom: 0;
}

body.atelier.market-body .market-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--ink-3);
}

body.atelier.market-body .market-kicker i {
  background: var(--g-300);
}

body.atelier.market-body .market-hero h1 {
  margin: 10px 0 0;
  font-family: inherit;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-1);
}

body.atelier.market-body .market-hero p {
  margin: 8px 0 0;
  max-width: 56ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

body.atelier.market-body .market-meta {
  margin-top: 14px;
  gap: 16px;
  font-size: 10.5px;
  color: var(--ink-3);
}

body.atelier.market-body .market-meta b {
  color: var(--ink-1);
  font-weight: 600;
}

/* ---------- 搜索 ---------- */
body.atelier.market-body .market-searchwrap {
  padding: 4px 0 0;
}

body.atelier.market-body .market-search {
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(20, 44, 32, .05), 0 1px 0 rgba(255, 255, 255, .95) inset;
}

body.atelier.market-body .market-search:focus-within {
  border-color: rgba(62, 141, 107, .45);
  box-shadow: 0 0 0 3px rgba(62, 141, 107, .12) !important;
}

body.atelier.market-body .market-search input {
  font-size: 13px;
  color: var(--ink-1);
}

body.atelier.market-body .market-search input::placeholder {
  color: #9FAAA2;
}

body.atelier.market-body .market-search kbd {
  font-size: 10px;
  color: var(--ink-3);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, .7);
}

/* ---------- 布局 ---------- */
body.atelier.market-body .market-layout {
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 32px;
  padding: 22px 0 40px;
}

body.atelier.market-body .market-rail {
  position: sticky;
  top: 20px;
}

body.atelier.market-body .market-rail h2 {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: 10px;
}

body.atelier.market-body .market-rail a {
  display: block;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--ink-2);
}

body.atelier.market-body .market-rail a:hover {
  background: rgba(255, 255, 255, .6);
  color: var(--ink-1);
}

body.atelier.market-body .market-rail a.on {
  background: rgba(255, 255, 255, .85);
  color: var(--g-700);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(20, 44, 32, .08);
}

/* ---------- 精选与列表 ---------- */
body.atelier.market-body .market-section-head h2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
}

body.atelier.market-body .market-section-head span {
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
}

body.atelier.market-body .market-featured .market-card,
body.atelier.market-body .market-list .market-row {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 24px 48px -40px rgba(18, 44, 30, .5);
}

body.atelier.market-body .market-count {
  font-size: 10.5px;
  color: var(--ink-3);
}

body.atelier.market-body .market-seg {
  border-radius: 10px;
  background: rgba(30, 45, 36, .06);
  padding: 2px;
}

body.atelier.market-body .market-seg button {
  border-radius: 8px;
  font-size: 11px;
  color: var(--ink-2);
  padding: 4px 10px;
}

body.atelier.market-body .market-seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink-1);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(20, 44, 32, .12);
}

/* 页脚 */
body.atelier.market-body .market-foot {
  margin-left: 0;
  border-top: 1px solid var(--hairline);
  padding: 18px 0 26px;
}

body.atelier.market-body .market-foot p {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.8;
}


/* ==========================================================================
   提权层：atelier-market.css 用 body.atelier.market-body 前缀写死了纸感样式，
   这里再挂一层 .market-v2 提高特异度，避免靠 !important 打架。
   ========================================================================== */

body.atelier.market-body .market-v2 .market-hero {
  padding: 22px 0 20px !important;
  border-bottom: 0 !important;
}

body.atelier.market-body .market-v2 .market-kicker {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-size: 10px !important;
  letter-spacing: .16em !important;
  color: var(--ink-3) !important;
}

body.atelier.market-body .market-v2 .market-hero h1 {
  margin: 8px 0 0 !important;
  font-family: inherit !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  letter-spacing: -.03em !important;
  color: var(--ink-1) !important;
}

body.atelier.market-body .market-v2 .market-hero p {
  margin: 8px 0 0 !important;
  font-size: 12.5px !important;
  line-height: 1.75 !important;
  color: var(--ink-2) !important;
}

body.atelier.market-body .market-v2 .market-meta {
  margin-top: 12px !important;
  font-size: 10.5px !important;
  color: var(--ink-3) !important;
}

body.atelier.market-body .market-v2 .market-hero,
body.atelier.market-body .market-v2 .market-hero + .market-wrap {
  background: transparent !important;
}

body.atelier.market-body .market-v2 .market-wrap {
  padding: 0 26px !important;
  max-width: none !important;
}


/* ==========================================================================
   手机：AI 超市 / AI 书架
   ========================================================================== */
@media (max-width: 760px) {
  /* 超市：分类栏独立成横向 chip 条，主列表单列 */
  body.atelier.market-body .market-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 16px 0 30px !important;
  }

  body.atelier.market-body .market-rail {
    position: static !important;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  body.atelier.market-body .market-rail h2 { display: none !important; }

  body.atelier.market-body .market-rail ul {
    display: flex !important;
    gap: 6px;
    margin: 0;
    padding: 0;
  }

  body.atelier.market-body .market-rail li { flex: none; }

  body.atelier.market-body .market-rail a {
    white-space: nowrap;
    border: 1px solid var(--hairline);
    background: rgba(255, 255, 255, .72);
    border-radius: 999px;
    padding: 6px 12px !important;
  }

  body.atelier.market-body .market-rail a.on {
    background: var(--g-100) !important;
    border-color: rgba(62, 141, 107, .3) !important;
    color: var(--g-700) !important;
  }

  /* 工具条与排序不挤 */
  body.atelier.market-body .market-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  body.atelier.market-body .market-seg {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
  }

  body.atelier.market-body .market-seg button { white-space: nowrap; }

  body.atelier.market-body .market-card,
  body.atelier.market-body .market-row,
  body.atelier.market-body .market-featured { max-width: 100%; }
}

/* 书架：筛选条可横滑，去掉浮动圆点 */
@media (max-width: 760px) {
  body.atelier.library-body .library-main {
    max-width: 100% !important;
    padding: 18px 16px 96px !important;
  }

  body.atelier.library-body [class*="filter"],
  body.atelier.library-body [class*="tabs"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  body.atelier.library-body [class*="filter"] > *,
  body.atelier.library-body [class*="tabs"] > * { flex: none; }

  body.atelier.library-body [class*="float"],
  body.atelier.library-body [class*="fab"] { display: none !important; }
}


/* 手机：书架筛选条加右侧渐隐，提示可横滑；隐藏右下浮动圆点 */
@media (max-width: 760px) {
  body.atelier.library-body [class*="filter"] {
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, #000 82%, transparent 100%);
    padding-right: 18px;
  }

  body.atelier.library-body .fixed-avatar,
  body.atelier.library-body .library-float,
  body.atelier.library-body .floating-avatar,
  body.atelier.library-body a.avatar,
  body.atelier.library-body .avatar[class*="float"],
  body.atelier.library-body .app-shell > .avatar {
    display: none !important;
  }
}


/* --- theme-glass.css --- */
/* ==========================================================================
   theme-glass.css — 薄荷玻璃外壳层
   --------------------------------------------------------------------------
   只覆盖外壳（背景、侧栏、顶栏、导航、品牌）与通用原子，不改任何业务模块。
   加载顺序必须位于 atelier.css 之后。删除本文件的一行 <link> 即可全站回滚。
   ========================================================================== */

body.atelier {
  --shell-content-offset: 276px;
  /* 绿阶 */
  --g-50: #EFF8F2;
  --g-100: #DFF1E6;
  --g-200: #B9E3C9;
  --g-300: #A9DEBF;
  --g-500: #5FB98E;
  --g-600: #3E8D6B;
  --g-700: #2F7256;
  --g-900: #14392B;

  /* 中性 */
  --ink-1: #1A1E1B;
  --ink-2: #4F5751;
  --ink-3: #828B84;
  --hairline: rgba(30, 45, 36, .10);
  --hairline-soft: rgba(30, 45, 36, .07);

  /* 玻璃 */
  --glass-hi: rgba(255, 255, 255, .54);
  --glass-lo: rgba(255, 255, 255, .32);
  --glass-edge: rgba(255, 255, 255, .82);

  /* 圆角 */
  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
}

/* ---------- 环境光（玻璃需要有东西可折射） ---------- */
body.atelier {
  background:
    radial-gradient(700px 580px at 0% -16%, #A9DCC0 0%, rgba(169, 220, 192, 0) 58%),
    radial-gradient(720px 620px at 100% 0%, #F6E9DA 0%, rgba(246, 233, 218, 0) 56%),
    radial-gradient(900px 700px at 78% 112%, #DDE9D6 0%, rgba(221, 233, 214, 0) 62%),
    linear-gradient(178deg, #FBFAF6 0%, #F1F2EA 54%, #EAEEE6 100%) !important;
  background-attachment: fixed !important;
}

body.atelier .app-shell {
  background: transparent !important;
}

/* ---------- 侧栏：玻璃 ---------- */
body.atelier .app-shell > .v3-topbar,
body.atelier .v3-topbar.shell-nav {
  width: 248px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, .26)) !important;
  -webkit-backdrop-filter: blur(64px) saturate(210%);
  backdrop-filter: blur(56px) saturate(200%);
  border: 1px solid var(--glass-edge) !important;
  border-radius: var(--r-xl) !important;
  margin: 14px 0 14px 14px !important;
  padding: 16px 12px 14px !important;
  box-shadow:
    0 1.5px 0 rgba(255, 255, 255, .95) inset,
    0 -1px 0 rgba(255, 255, 255, .5) inset,
    0 40px 80px -48px rgba(18, 44, 30, .45) !important;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  overflow: hidden;
}

/* 侧栏顶部的镜面高光 */
body.atelier .app-shell > .v3-topbar::before,
body.atelier .v3-topbar.shell-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  z-index: 0;
}

body.atelier .app-shell > .v3-topbar > *,
body.atelier .v3-topbar.shell-nav > * {
  position: relative;
  z-index: 1;
}

/* ---------- 品牌 ---------- */
body.atelier .v3-topbar .brand a {
  gap: 9px !important;
  padding: 2px 8px 14px !important;
  align-items: center;
}

body.atelier .v3-topbar .brand .mark {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: linear-gradient(160deg, #4E9B77, #2C6750) !important;
  box-shadow: 0 6px 12px -6px rgba(46, 110, 84, .85), 0 1px 0 rgba(255, 255, 255, .5) inset !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden;
}

/* 关掉旧的「宇」字伪元素 */
body.atelier .v3-topbar .brand .mark::after {
  content: none !important;
  display: none !important;
}

body.atelier .v3-topbar .brand .mark svg {
  width: 19px;
  height: 19px;
  display: block;
}

body.atelier .v3-topbar .brand .name {
  font-family: var(--sans, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  color: var(--ink-1) !important;
  line-height: 1.25 !important;
}

body.atelier .v3-topbar .brand .name::after {
  content: "Creator OS";
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink-3);
  margin-top: 2px;
}

body.atelier .v3-topbar .brand .ver {
  display: none !important;
}

/* ---------- 分组标签 ---------- */
body.atelier .nav-group-label {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: var(--ink-3) !important;
  letter-spacing: 0 !important;
  padding: 12px 12px 5px !important;
}

/* ---------- 导航行 ---------- */
body.atelier .v3-topbar .app-tabs {
  display: flex !important;
  flex-direction: column;
  gap: 1px !important;
  margin-top: 2px;
}

body.atelier .v3-topbar .app-tabs a {
  height: 40px !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
  gap: 11px !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: var(--ink-2) !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  transition: background .18s, color .18s;
}

body.atelier .v3-topbar .app-tabs a:hover {
  background: rgba(255, 255, 255, .5) !important;
  color: var(--ink-1) !important;
}

body.atelier .v3-topbar .app-tabs a.active {
  background: rgba(255, 255, 255, .84) !important;
  color: var(--ink-1) !important;
  font-weight: 500 !important;
  box-shadow:
    0 1px 2px rgba(20, 44, 32, .10),
    0 8px 20px -14px rgba(20, 44, 32, .45),
    0 1px 0 rgba(255, 255, 255, .9) inset !important;
}

body.atelier .v3-topbar .app-tabs a .tab-icon {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 1.6 !important;
  opacity: .82;
}

body.atelier .v3-topbar .app-tabs a.active .tab-icon {
  stroke: var(--g-600) !important;
  opacity: 1;
}

body.atelier .v3-topbar .app-tabs a span {
  font-size: 13.5px !important;
}

/* 顶栏右侧（积分 / 头像） */
body.atelier .v3-topbar > .right {
  margin-top: auto;
  padding: 12px 8px 2px !important;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 10px;
}

body.atelier .v3-topbar > .right .stat {
  font-size: 10.5px !important;
  color: var(--ink-3) !important;
}

body.atelier .v3-topbar > .right .avatar {
  width: 28px;
  height: 28px;
  font-size: 11.5px;
}

/* ==========================================================================
   焦点环
   --------------------------------------------------------------------------
   旧深色主题在 style.css:814 用 :where(...):focus-visible 挂了 #e7bf7a 的金色
   描边（同文件 722 行还把边框染成金色）。文本输入框在鼠标点击时也会命中
   :focus-visible，所以点一下就出现金色线圈。这里用更高特异度覆盖回品牌绿。
   ========================================================================== */

body.atelier :where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--g-600) !important;
  outline-offset: 2px !important;
}

body.atelier :where(input, textarea):focus-visible {
  outline-offset: 1px !important;
}

/* 金色描边一并收回 */
body.atelier .entry-form input:focus,
body.atelier .entry-form select:focus,
body.atelier .skill-form input:focus,
body.atelier .skill-form select:focus,
body.atelier .skill-form textarea:focus {
  border-color: rgba(62, 141, 107, .55) !important;
  box-shadow: 0 0 0 3px rgba(62, 141, 107, .10) !important;
}

/* 鼠标点击不显示焦点环，只有键盘操作显示（可访问性保留） */
body.atelier :where(button, a, summary, [tabindex]):focus:not(:focus-visible) {
  outline: none !important;
}

/* ==========================================================================
   旧金色残留清理
   --------------------------------------------------------------------------
   style.css 里 --glass-gold (#e7bf7a) 用于导航高亮、eyebrow 小标题、
   表单分组序号等。进入浅绿体系后统一换成品牌绿。
   ========================================================================== */

body.atelier {
  --glass-gold: #3E8D6B;
}

body.atelier .micro-label,
body.atelier .skill-kicker,
body.atelier .entry-panel h1 em {
  color: var(--g-700) !important;
}

body.atelier .form-section-title > span {
  color: var(--g-700) !important;
  background: var(--g-50) !important;
}

body.atelier .nav-links a.active {
  color: var(--g-700) !important;
  background: var(--g-50) !important;
  border-color: rgba(62, 141, 107, .24) !important;
  box-shadow: inset 2px 0 var(--g-500) !important;
}

body.atelier .nav-links a.active svg {
  color: var(--g-600) !important;
}

body.atelier .nav-links a.active small {
  color: var(--ink-3) !important;
}

body.atelier .api-live-dot {
  background: var(--g-500) !important;
  box-shadow: 0 0 12px rgba(95, 185, 142, .55) !important;
}


/* ==========================================================================
   独立页（/market、/bookshelf）用的固定侧栏
   ========================================================================== */

body.atelier .v3-topbar.shell-nav {
  position: fixed !important;
  top: 14px;
  left: 14px;
  bottom: 14px;
  height: auto !important;
  margin: 0 !important;
  padding: 16px 12px 14px !important;
  z-index: 40;
}


/* ==========================================================================
   独立页侧栏内部（atelier 的导航样式都挂在 .app-shell 下，这里补一套）
   ========================================================================== */

body.atelier .v3-topbar.shell-nav .brand a,
body.atelier .v3-topbar.shell-nav .app-tabs a {
  display: flex !important;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  color: var(--ink-2) !important;
}

body.atelier .v3-topbar.shell-nav .brand a {
  height: auto !important;
  padding: 2px 8px 14px !important;
  color: var(--ink-1) !important;
}

body.atelier .v3-topbar.shell-nav .app-tabs a {
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.atelier .v3-topbar.shell-nav .app-tabs a:hover {
  background: rgba(255, 255, 255, .5) !important;
  color: var(--ink-1) !important;
}

body.atelier .v3-topbar.shell-nav .app-tabs a.active {
  background: rgba(255, 255, 255, .84) !important;
  color: var(--ink-1) !important;
  font-weight: 500 !important;
  box-shadow:
    0 1px 2px rgba(20, 44, 32, .10),
    0 8px 20px -14px rgba(20, 44, 32, .45),
    0 1px 0 rgba(255, 255, 255, .9) inset !important;
}

body.atelier .v3-topbar.shell-nav .app-tabs a.active .tab-icon {
  stroke: var(--g-600) !important;
}

body.atelier .v3-topbar.shell-nav .app-tabs .tab-icon {
  width: 17px !important;
  height: 17px !important;
  flex: none;
  opacity: .82;
}

body.atelier .v3-topbar.shell-nav .brand .name::after {
  content: "Creator OS";
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--ink-3);
  margin-top: 2px;
}

body.atelier .v3-topbar.shell-nav .brand .ver {
  display: none !important;
}

body.atelier .v3-topbar.shell-nav > .right {
  margin-top: auto !important;
  padding: 12px 8px 2px !important;
  border-top: 1px solid var(--hairline);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.atelier .v3-topbar.shell-nav > .right .stat {
  font-size: 10.5px !important;
  color: var(--ink-3) !important;
}

body.atelier .v3-topbar.shell-nav > .right .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--g-900);
  background: var(--g-300);
}


/* ---------- AI 书架：字号对齐工作台 ---------- */
body.atelier.library-body .library-heading h1 {
  font-size: 30px !important;
  font-weight: 600 !important;
  letter-spacing: -.03em !important;
}

body.atelier.library-body .library-eyebrow {
  font-size: 10px !important;
  letter-spacing: .16em !important;
  color: var(--ink-3) !important;
}

body.atelier.library-body .library-heading {
  margin-bottom: 24px !important;
}


/* AI 书架：旧侧栏底部的引导块已被统一账户区取代 */
body.atelier.library-body .library-nav-footer {
  display: none !important;
}

/* ==========================================================================
   响应式：1100 / 1024 / 760 三档
   纯 CSS，不依赖 JS，不改变 DOM 结构。
   ========================================================================== */

/* ---------- ≤1100：侧栏收成图标栏 ---------- */
@media (max-width: 1100px) {
  body.atelier { --shell-content-offset: 106px; }
  body.atelier .app-shell > .v3-topbar,
  body.atelier .v3-topbar.shell-nav {
    width: 78px !important;
    padding: 14px 8px !important;
  }

  body.atelier .v3-topbar .brand a {
    justify-content: center;
    padding: 2px 0 12px !important;
  }

  body.atelier .v3-topbar .brand .name,
  body.atelier .v3-topbar .brand .name::after,
  body.atelier .v3-topbar .nav-group-label,
  body.atelier .v3-topbar .app-tabs a span,
  body.atelier .v3-topbar > .right .stat {
    display: none !important;
  }

  body.atelier .v3-topbar .app-tabs a {
    justify-content: center;
    padding: 0 !important;
    height: 40px !important;
  }

  body.atelier .v3-topbar > .right {
    justify-content: center;
  }

}

/* One content offset shared by the main app and standalone pages. */
body.atelier .app-shell { margin-left: var(--shell-content-offset) !important; padding-top: 0 !important; }
body.atelier .app-shell > :is(section,main) { margin-left: 0 !important; width: 100% !important; box-sizing: border-box; }
body.atelier.market-body > .market-page { margin-left: var(--shell-content-offset) !important; width: calc(100% - var(--shell-content-offset)) !important; box-sizing: border-box; }

/* Shared navigation: labels remain available to assistive technology. */
body.atelier .v3-topbar .nav-short,
body.atelier .shell-mobile-more { display: none !important; }
/* 站长专属入口兜底：这些容器自身带 display（flex / block），会把 hidden 的
   默认 display:none 压掉。没有这条，未登录用户仍能在侧栏和「更多工具」里
   看到未完工功能的入口。 */
[data-owner-only][hidden],
.shell-menu-group[hidden],
.app-tabs .nav-group-label[hidden] { display: none !important; }
.shell-menu:not([open]) { display: none; }
.shell-menu[hidden],
.account-modal[hidden],
#auth-modal[hidden] { display: none !important; pointer-events: none !important; }
#auth-modal:not([hidden]) { pointer-events: auto !important; z-index: 200 !important; }
.shell-menu {
  position: fixed; inset: auto 12px calc(84px + env(safe-area-inset-bottom)) auto;
  margin: 0; width: min(420px, calc(100vw - 24px)); max-height: min(600px, 75dvh);
  overflow: auto; overscroll-behavior: contain; padding: 20px; box-sizing: border-box;
  border: 1px solid var(--hairline); border-radius: 20px; background: #fbfcf9; color: var(--ink-1);
  box-shadow: 0 18px 60px #14392b26;
}
.shell-menu::backdrop { background: #14392b50; }
.shell-menu h2 { margin: 0 0 18px; font-size: 18px; }
.shell-menu > button { position: absolute; top: 10px; right: 12px; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--g-700); cursor: pointer; }
.shell-menu > button.shell-menu-close { appearance: none; -webkit-appearance: none; border: 0; box-shadow: none; background: transparent; outline: none; }
/* The programmatically focused heading is not an interactive control. */
body.atelier .shell-menu #shell-more-title:focus { outline: none !important; }
.shell-menu nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.shell-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink-1); text-decoration: none; box-sizing: border-box; }
.shell-menu nav a:hover, .shell-menu nav a[aria-current] { background: var(--g-100); color: var(--g-900); }
.shell-menu .shell-mobile-account[hidden],
.shell-menu .shell-menu-mobile-nav[hidden],
.shell-menu nav[hidden] { display: none !important; }
.shell-menu .shell-mobile-account { display: none; }
.shell-menu-mobile-nav { display: none; }
.shell-menu :is(a,button):focus-visible { outline: 2px solid var(--g-700); outline-offset: 2px; }
.shell-menu > button.shell-menu-close:focus-visible { outline: 2px solid var(--g-700); outline-offset: 2px; }
.one-click-writing-frame { display: block; width: 100%; height: calc(100dvh - 32px); min-height: 400px; border: 0; border-radius: 12px; }

@media (max-width: 760px) {
  body.atelier { --shell-content-offset: 0px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.atelier .app-shell { margin-left: 0 !important; padding-top: 0 !important; }
  body.atelier .app-shell > .v3-topbar,
  body.atelier .v3-topbar.shell-nav {
    position: fixed !important; inset: auto 0 0 !important; width: 100% !important;
    height: calc(68px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    border-radius: 18px 18px 0 0 !important; box-sizing: border-box; z-index: 60 !important;
  }
  body.atelier .v3-topbar :is(.brand,.right,.workspace-menu-toggle,.nav-group-label),
  body.atelier .library-nav-footer { display: none !important; }
  body.atelier .app-shell > .v3-topbar .app-tabs,
  body.atelier .v3-topbar.shell-nav .app-tabs {
    position: static !important; display: flex !important; flex-direction: row !important;
    align-items: stretch !important; gap: 2px !important; width: 100% !important; height: 100% !important;
    margin: 0 !important; padding: 0 !important; transform: none !important; max-height: none !important;
    opacity: 1 !important; visibility: visible !important; overflow: visible !important;
  }
  body.atelier .v3-topbar .app-tabs a:not([data-shell-primary]) { display: none !important; }
  /* 公众号 Plus 带着 data-shell-primary（桌面侧栏要用），手机端底栏必须
     拿到比上面 display:flex !important 更高的特异性，否则它会变成第 6 个 tab。 */
  body.atelier .v3-topbar .app-tabs a.shell-mobile-hidden,
  body.atelier .v3-topbar.shell-nav .app-tabs a[data-shell-primary].shell-mobile-hidden,
  body.atelier .app-shell > .v3-topbar .app-tabs a[data-shell-primary].shell-mobile-hidden { display: none !important; }
  body.atelier .v3-topbar .app-tabs a[data-view="home"] { order: 0; }
  body.atelier .v3-topbar .app-tabs a[data-view="hotspots"] { order: 1; }
  body.atelier .v3-topbar .app-tabs .shell-mobile-more { order: 2; }
  body.atelier .v3-topbar .app-tabs a[data-view="viral-remix"] { order: 3; }
  body.atelier .app-shell > .v3-topbar .app-tabs a[data-shell-primary],
  body.atelier .v3-topbar.shell-nav .app-tabs a[data-shell-primary],
  body.atelier .v3-topbar .app-tabs .shell-mobile-more {
    display: flex !important; flex: 1 1 0; flex-direction: column !important;
    align-items: center !important; justify-content: center !important; gap: 3px !important;
    min-width: 44px !important; min-height: 52px !important; height: auto !important;
    padding: 4px 2px !important; border: 0 !important; border-radius: 10px;
    background: transparent; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 12px !important;
  }
  body.atelier .v3-topbar .app-tabs .shell-mobile-more {
    position: static !important; top: auto !important; flex: 1 1 0 !important;
    width: auto !important; min-width: 44px !important; height: auto !important; min-height: 52px !important;
    margin: 0 3px !important; padding: 4px 2px !important; gap: 3px !important;
    border: 1px solid #b7dcc1 !important; border-radius: 14px !important;
    color: #1f5137 !important; background: #ddf2e0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  body.atelier .v3-topbar .app-tabs .shell-mobile-more .tab-icon { width: 20px !important; height: 20px !important; }
  body.atelier .v3-topbar .app-tabs .shell-mobile-more span { font-size: 11px !important; line-height: 1.2; white-space: nowrap; font-weight: 500; }
  body.atelier .v3-topbar .app-tabs .shell-mobile-more.active { background: #1f5137 !important; border-color: #1f5137 !important; color: #fff !important; }
  body.atelier .v3-topbar .app-tabs .shell-mobile-my {
    display: flex !important; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-width: 44px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 10px;
    background: transparent; color: var(--ink-2); cursor: pointer; font: inherit; font-size: 12px;
  }
  body.atelier .v3-topbar .app-tabs .shell-mobile-my { order: 4; }
  body.atelier .v3-topbar .app-tabs .shell-mobile-my .tab-icon { display: block; width: 20px; height: 20px; }
  body.atelier .v3-topbar .app-tabs .shell-mobile-my.active { background: transparent; color: var(--g-900); }
  body.atelier .v3-topbar .app-tabs a .tab-icon { display: block !important; width: 20px !important; height: 20px !important; }
  body.atelier .v3-topbar .app-tabs .shell-mobile-more .tab-icon { display: block !important; width: 20px !important; height: 20px !important; }
  body.atelier .v3-topbar .app-tabs a .nav-short { display: block !important; font-size: 11px !important; line-height: 1.3; }
  body.atelier .v3-topbar .app-tabs .shell-mobile-more.active { background: #1f5137 !important; border-color: #1f5137 !important; color: #fff !important; }
  /* 浅绿块只属于「创作」入口：其余 tab 的当前页态只变文字色，不再铺底色，
     否则两者会变成同一个视觉符号，用户分不清当前页和创作入口。 */
  body.atelier .v3-topbar .app-tabs a[data-shell-primary].active { background: transparent !important; color: var(--g-900) !important; }
  body.atelier .v3-topbar .app-tabs a[data-shell-primary].active .nav-short { color: var(--g-900) !important; }
  body.atelier .shell-menu { max-height: min(680px, calc(100dvh - 96px - env(safe-area-inset-bottom))); overflow-y: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  body.atelier .shell-menu #shell-more-title { font-size: 22px; }
  body.atelier .shell-menu .shell-mobile-account:not([hidden]) { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin: 12px 0 16px; padding: 13px; border: 1px solid #d3e8d7; border-radius: 16px; background: #eff9f0; }
  body.atelier .shell-menu .shell-menu-mobile-nav:not([hidden]) { display: block; max-height: none; overflow: visible; }
  body.atelier .shell-mobile-account > div { min-width: 0; }
  body.atelier .shell-mobile-account > div span { display: block; color: #66806d; font-size: 11px; }
  body.atelier .shell-mobile-account > div strong { display: block; margin-top: 3px; color: #1f5137; font-size: 19px; }
  body.atelier .shell-mobile-account a, body.atelier .shell-mobile-account button { min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: #d7eddb; color: #2c6845; font-size: 12px; text-decoration: none; white-space: nowrap; }
  body.atelier .shell-mobile-account button { background: #fff; border: 1px solid #d3e8d7; }
  body.atelier .shell-menu .shell-menu-mobile-nav .shell-menu-group { display: block; margin: 0 0 4px; }
  body.atelier .shell-menu .shell-menu-group > summary { position: relative; display: flex; align-items: center; min-height: 42px; margin-top: 6px; padding: 0 28px 0 10px; border-radius: 11px; background: #ffffff91; color: #365e43; font-size: 14px; font-weight: 600; cursor: pointer; }
  body.atelier .shell-menu .shell-menu-group > summary::-webkit-details-marker { display: none; }
  body.atelier .shell-menu .shell-menu-group > summary { list-style: none; }
  body.atelier .shell-menu .shell-menu-group > summary::after { content: '+'; position: absolute; right: 11px; color: #7aa287; font-size: 18px; font-weight: 400; }
  body.atelier .shell-menu .shell-menu-group[open] > summary::after { content: '−'; }
  body.atelier .shell-menu .shell-menu-group-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px 2px 8px; }
  body.atelier .shell-menu .shell-menu-group:not([open]) > .shell-menu-group-links { display: none; }
  body.atelier .shell-menu .shell-menu-mobile-nav > a { display: flex; align-items: center; min-height: 43px; padding: 8px 10px; border-radius: 11px; color: #294f38; font-size: 14px; }
  body.atelier .shell-menu .shell-menu-mobile-nav > a:hover, body.atelier .shell-menu .shell-menu-mobile-nav > a[aria-current="page"] { background: #edf8ee; color: #1d5b3b; }
  body.atelier .shell-menu #shell-mobile-balance { min-width: 0; }
  body.atelier .app-shell > section,
  body.atelier .app-shell > main,
  body.atelier #home.home-v2,
  body.atelier.market-body .market-page,
  body.atelier.qihaoshou .studio-header,
  body.atelier.qihaoshou #q-login,
  body.atelier.qihaoshou .studio {
    margin-left: 0 !important; width: 100% !important; box-sizing: border-box;
  }
  body.atelier #home.home-v2,
  body.atelier section.skill-page,
  body.atelier section.diagnose-page { padding: 12px 12px 24px !important; }
  .one-click-writing-frame { height: calc(100dvh - 96px); }
}


/* --- home-v2.css --- */
/* ==========================================================================
   home-v2.css — 首页（薄荷玻璃）
   依赖 theme-glass.css 的 token。只作用于 #home.home-v2，旧 atelier 首页样式
   因 class 不再匹配而自动失效。
   ========================================================================== */

body.atelier #home.home-v2 {
  padding: 18px 22px 26px !important;
  background: transparent !important;
  /* layout.css 给 .home-page 设了 max-width + 居中，这里放开，宽度交给父容器 */
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.hv-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 14px;
  align-items: start;
}

.hv-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* ---------- 卡片基底 ---------- */
.hv-hero,
.hv-tool,
.hv-recent,
.hv-card {
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 30px 60px -46px rgba(18, 44, 30, .55);
}

/* 只有最大的那块用模糊，其余半透明白即可（性能） */
.hv-hero {
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  padding: 26px 30px 24px;
  background: rgba(255, 255, 255, .68);
  border-color: rgba(255, 255, 255, .95);
  box-shadow:
    0 1.5px 0 rgba(255, 255, 255, 1) inset,
    0 34px 66px -48px rgba(18, 44, 30, .6);
}

/* ---------- hero ---------- */
.hv-date {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-3);
}

.hv-hero h1 {
  margin: 0;
  font-family: inherit;
  font-size: 33px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ink-1);
}

.hv-lede {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.hv-compose {
  margin-top: 20px;
  padding: 13px 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 1px 2px rgba(20, 44, 32, .05), 0 1px 0 rgba(255, 255, 255, .95) inset;
}

.hv-compose textarea {
  width: 100%;
  height: 46px;
  border: 0 !important;
  outline: none;
  resize: none;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-1);
}

.hv-compose textarea::placeholder {
  color: #9FAAA2;
}

.hv-compose-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.hv-chips {
  display: flex;
  gap: 6px;
}

.hv-chip {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(30, 45, 36, .12);
  background: rgba(255, 255, 255, .7);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.hv-chip:hover {
  background: #fff;
  color: var(--ink-1);
}

.hv-chip.is-on {
  background: var(--g-100);
  border-color: rgba(62, 141, 107, .3);
  color: var(--g-700);
  font-weight: 500;
}

.hv-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #6FC49A, #3E8D6B);
  box-shadow: 0 8px 18px -10px rgba(46, 110, 84, .95), 0 1px 0 rgba(255, 255, 255, .4) inset;
}

.hv-go svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 工具卡 ---------- */
.hv-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hv-tool {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  padding: 15px 16px;
  text-decoration: none;
  color: inherit;
  transition: background .18s, box-shadow .18s;
}

.hv-tool:hover {
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 1px 0 #fff inset, 0 20px 40px -32px rgba(18, 44, 30, .55);
}

.hv-tool .ic {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .78);
}

.hv-tool .ic svg {
  width: 15px;
  height: 15px;
  stroke: var(--g-600);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hv-tool b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-1);
}

.hv-tool p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.hv-tool .meta {
  margin-top: auto;
  font-size: 10px;
  color: var(--ink-3);
}

/* ---------- 继续 ---------- */
.hv-recent {
  padding: 16px 18px 10px;
}

.hv-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hv-sec-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
}

.hv-sec-head a {
  font-size: 10.5px;
  color: var(--ink-3);
  text-decoration: none;
}

.hv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.hv-row:hover {
  background: rgba(255, 255, 255, .6);
}

.hv-row .thumb {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(160deg, #EAF3EC, #CFE6D8);
  border: 1px solid rgba(255, 255, 255, .8);
}

.hv-row .txt {
  min-width: 0;
  flex: 1;
}

.hv-row .txt b {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-row .txt span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.hv-row .st {
  flex: none;
  font-size: 10px;
  color: var(--g-700);
  background: var(--g-100);
  border-radius: 6px;
  padding: 3px 7px;
}

.hv-row .arw {
  flex: none;
  color: #A8B2AA;
  font-size: 14px;
}

.hv-row.is-new .thumb {
  background: transparent;
  border: 1px dashed rgba(62, 141, 107, .45);
  display: grid;
  place-items: center;
  color: var(--g-600);
  font-size: 15px;
  line-height: 1;
}

.hv-row.is-new .txt b {
  color: var(--g-700);
}

/* ---------- 右栏 ---------- */
.hv-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hv-card {
  padding: 15px 16px;
}

.hv-card h4 {
  margin: 0 0 11px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.hv-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hv-stats .k {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hv-stats b {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}

.hv-stats span {
  font-size: 10.5px;
  color: var(--ink-3);
}

.hv-stats i {
  font-style: normal;
  font-size: 9.5px;
  color: var(--g-700);
  font-variant-numeric: tabular-nums;
}

.hv-skill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  text-decoration: none;
  color: inherit;
}

.hv-skill:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.hv-skill .dot {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .8);
  font-size: 11px;
  font-weight: 600;
  color: var(--g-700);
}

.hv-skill .n {
  min-width: 0;
  flex: 1;
}

.hv-skill .n b {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-skill .n span {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--ink-3);
}

.hv-skill .p {
  flex: none;
  font-size: 10px;
  color: #B6A26A;
  font-variant-numeric: tabular-nums;
}

.hv-book {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.hv-book .cover {
  width: 38px;
  height: 50px;
  flex: none;
  border-radius: 5px;
  background: linear-gradient(150deg, #5FB98E, #2F7256);
  box-shadow: 0 6px 14px -8px rgba(46, 110, 84, .9), 0 0 0 1px rgba(255, 255, 255, .35) inset;
}

.hv-book b {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-1);
}

.hv-book span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--ink-3);
}


/* ==========================================================================
   v3：桌面布局收窄 + 玻璃加透 + 模块紧凑
   ========================================================================== */

/* 内容不要拉满 1440，读者视线跑不动 */
body.atelier #home.home-v2 {
  padding: 20px 28px 30px !important;
}

body.atelier #home.home-v2 .hv-body {
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

/* 玻璃：真正透出背景光，而不是一块白 */
body.atelier .hv-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, .46), rgba(255, 255, 255, .26)) !important;
  border-color: rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: blur(64px) saturate(200%) !important;
  backdrop-filter: blur(64px) saturate(200%) !important;
  box-shadow:
    0 1.5px 0 rgba(255, 255, 255, .95) inset,
    0 0 0 1px rgba(255, 255, 255, .32),
    0 40px 80px -52px rgba(18, 44, 30, .55) !important;
}

body.atelier .hv-tool,
body.atelier .hv-recent,
body.atelier .hv-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(255, 255, 255, .34)) !important;
  border-color: rgba(255, 255, 255, .78) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
}

/* hero 文案不要横跨整卡 */
body.atelier .hv-hero h1 {
  max-width: 15em;
}

body.atelier .hv-lede {
  max-width: 40ch;
}

/* 工具卡压扁：图标与标题同排 */
body.atelier .hv-tools {
  gap: 12px;
}

body.atelier .hv-tool {
  min-height: 96px !important;
  padding: 14px 16px !important;
  gap: 4px;
}

body.atelier .hv-tool .ic {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

body.atelier .hv-tool p {
  font-size: 10.5px;
  line-height: 1.5;
}

/* 继续：行更紧，卡片更矮 */
body.atelier .hv-row {
  padding: 9px 10px !important;
}

body.atelier .hv-recent {
  padding: 14px 16px 8px !important;
}

/* 右栏数字收紧 */
.hv-empty { color: var(--ink-2); font-size: 14px; line-height: 1.8; margin: 12px 0; }
#home-recent-list .hv-row { overflow-wrap: anywhere; }

/* Homepage glass and display type refinement. */
body.atelier #home.home-v2 .hv-hero,
body.atelier #home.home-v2 .hv-tool,
body.atelier #home.home-v2 .hv-recent,
body.atelier #home.home-v2 .hv-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(138deg, rgba(255,255,255,.74) 0%, rgba(255,255,255,.36) 42%, rgba(231,246,237,.3) 100%) !important;
  border: 1px solid rgba(255,255,255,.86) !important;
  -webkit-backdrop-filter: blur(48px) saturate(190%) !important;
  backdrop-filter: blur(48px) saturate(190%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 1px 0 0 rgba(255,255,255,.45),
    0 0 0 1px rgba(137,190,157,.09),
    0 18px 42px -32px rgba(32,76,53,.48) !important;
}

body.atelier #home.home-v2 .hv-hero::before,
body.atelier #home.home-v2 .hv-tool::before,
body.atelier #home.home-v2 .hv-recent::before,
body.atelier #home.home-v2 .hv-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.4), transparent 38%, rgba(207,237,218,.12));
}

body.atelier #home.home-v2 .hv-hero {
  background:
    linear-gradient(125deg, rgba(255,255,255,.78), rgba(255,255,255,.36) 58%, rgba(222,244,230,.34)) !important;
  box-shadow:
    inset 0 1.5px 0 #fff,
    inset 1px 0 0 rgba(255,255,255,.54),
    0 0 0 1px rgba(137,190,157,.1),
    0 24px 54px -38px rgba(32,76,53,.52) !important;
}

body.atelier #home.home-v2 .hv-hero h1 {
  font-family: "UW Serif SC", "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 500;
  color: #19251e;
  letter-spacing: 0;
}

body.atelier #home.home-v2 .hv-sec-head h3,
body.atelier #home.home-v2 .hv-card h4 {
  font-family: "UW Serif SC", "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 500;
}

body.atelier #home.home-v2 .hv-compose {
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(245,251,247,.48));
  border-color: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 8px 22px -18px rgba(32,76,53,.36);
}

body.atelier .hv-stats b {
  font-size: 17px;
}

/* 平板档删掉：只保留手机与桌面两档 */


/* 手机：首页必须单列（1024 档删掉后这条补回来） */
@media (max-width: 760px) {
  body.atelier #home.home-v2 .hv-body {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }
  body.atelier #home.home-v2 .hv-rail {
    flex-direction: column;
  }
  body.atelier #home.home-v2 .hv-hero h1 {
    max-width: none;
    font-size: 26px;
  }
  body.atelier #home.home-v2 .hv-lede {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body.atelier .home-v2 .hv-tools { grid-template-columns: minmax(0, 1fr); }
  body.atelier .home-v2 .hv-compose-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  body.atelier .home-v2 .hv-chips { flex-wrap: wrap; gap: 8px; }
  body.atelier .home-v2 .hv-chip { min-height: 36px; min-width: 64px; white-space: nowrap; }
  body.atelier .home-v2 .hv-go { justify-content: center; min-height: 44px; }
}


/* --- skill-v2.css --- */
/* ==========================================================================
   skill-v2.css — 小红书 / 贴图号 / 早安祝福（三页同一骨架）
   依赖 theme-glass.css。只覆盖外观，不动任何表单 id 与提交逻辑。
   ========================================================================== */

/* 撑满内容列（layout.css 给这些页设了 max-width + 居中） */
body.atelier section.skill-page {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 22px 26px !important;
  background: transparent !important;
}

body.atelier .skill-page .v3-meta {
  display: none !important;
}

/* ---------- 两栏 ---------- */
body.atelier .skill-page .skill-shell {
  display: grid;
  grid-template-columns: 384px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body.atelier .skill-page .skill-shell > * { min-width: 0; }
@media (max-width: 900px) {
  body.atelier .skill-page .skill-shell { grid-template-columns: minmax(0, 1fr); }
  body.atelier .skill-page :is(.skill-form-col, .skill-output-col) { max-width: 100%; box-sizing: border-box; }
}

/* ---------- 左：表单卡 ---------- */
body.atelier .skill-page .skill-form-col {
  padding: 22px 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 30px 60px -48px rgba(18, 44, 30, .55);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
}

body.atelier .skill-page .micro-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-3) !important;
}

body.atelier .skill-page .micro-label .line {
  width: 18px;
  height: 1px;
  background: var(--g-300);
}

body.atelier .skill-page .skill-form-col h1 {
  margin: 12px 0 0;
  font-family: inherit;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.03em;
  color: var(--ink-1);
}

body.atelier .skill-page .skill-form-col h1 .serif {
  font-family: inherit;
  font-style: normal;
}

body.atelier .skill-page .skill-form-col h1 .blue {
  color: var(--g-600) !important;
}

body.atelier .skill-page .skill-form-col > p {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---------- 表单块 ---------- */
body.atelier .skill-page .skill-form {
  margin-top: 18px;
}

body.atelier .skill-page .form-section + .form-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

body.atelier .skill-page .form-section .head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 10px;
}

body.atelier .skill-page .form-section .head .num {
  font-size: 9.5px;
  color: var(--g-600);
  font-variant-numeric: tabular-nums;
}

body.atelier .skill-page .form-section .head strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-1);
}

body.atelier .skill-page .form-section .head small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--ink-3);
}

body.atelier .skill-page .skill-form label {
  display: block;
  margin-top: 11px;
  font-size: 11px;
  color: var(--ink-2);
}

body.atelier .skill-page .skill-form input,
body.atelier .skill-page .skill-form select,
body.atelier .skill-page .skill-form textarea {
  width: 100%;
  margin-top: 5px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(30, 45, 36, .12);
  background: rgba(255, 255, 255, .84);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-1);
  outline: none;
  resize: vertical;
}

body.atelier .skill-page .skill-form input:focus,
body.atelier .skill-page .skill-form select:focus,
body.atelier .skill-page .skill-form textarea:focus {
  border-color: var(--g-600) !important;
  box-shadow: 0 0 0 3px rgba(62, 141, 107, .12) !important;
}

body.atelier .skill-page .skill-form input::placeholder,
body.atelier .skill-page .skill-form textarea::placeholder {
  color: #9FAAA2;
}

body.atelier .skill-page .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.atelier .skill-page .skill-form .compact-area {
  min-height: 74px;
}

body.atelier .skill-page .skill-primary {
  width: 100%;
  height: 40px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #6FC49A, #3E8D6B);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow:
    0 12px 24px -16px rgba(46, 110, 84, .95),
    0 1px 0 rgba(255, 255, 255, .4) inset;
}

body.atelier .skill-page .skill-primary:disabled {
  opacity: .55;
  cursor: default;
}

/* ---------- 右：输出卡 ---------- */
body.atelier .skill-page .skill-output-col {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 30px 60px -48px rgba(18, 44, 30, .55);
  min-height: calc(100vh - 120px);
}

body.atelier .skill-page .skill-empty .empty-head h2 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink-1);
}

body.atelier .skill-page .skill-empty .empty-head .tag {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-3);
}

body.atelier .skill-page .skill-empty .empty-head p {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

body.atelier .skill-page .empty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

body.atelier .skill-page .empty-preview {
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset;
}

body.atelier .skill-page .empty-preview header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

body.atelier .skill-page .ep-tag {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--g-700);
}

body.atelier .skill-page .ep-meta {
  font-style: normal;
  font-size: 9.5px;
  color: var(--ink-3);
}

body.atelier .skill-page .empty-preview ol,
body.atelier .skill-page .empty-preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.atelier .skill-page .empty-preview li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}

body.atelier .skill-page .empty-preview li:first-child {
  border-top: 0;
}

body.atelier .skill-page .ep-num {
  font-size: 9px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex: none;
}

body.atelier .skill-page .empty-preview strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-1);
}

body.atelier .skill-page .empty-preview p {
  margin: 3px 0 0;
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* 输出结果区（生成后由 JS 插入的卡片） */
body.atelier .skill-page .skill-output-col > section,
body.atelier .skill-page .skill-output-col .result-block {
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid rgba(255, 255, 255, .95);
  margin-top: 12px;
}


/* ---------- 输出区占位卡：把旧配色收进绿阶 ---------- */
body.atelier .skill-page .ep-cover-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
}

body.atelier .skill-page .ep-cover-bg {
  background: linear-gradient(160deg, #5FB98E, #2F7256) !important;
}

body.atelier .skill-page .ep-cover-title {
  color: #F2F9F5 !important;
  font-weight: 600 !important;
}

body.atelier .skill-page .ep-cover-sub {
  color: rgba(255, 255, 255, .78) !important;
}

body.atelier .skill-page .empty-preview .ph,
body.atelier .skill-page .empty-preview .line,
body.atelier .skill-page .empty-preview .bar {
  background: rgba(62, 141, 107, .18) !important;
  border-radius: 4px;
}

body.atelier .skill-page .empty-preview p,
body.atelier .skill-page .empty-preview li {
  color: var(--ink-2) !important;
}

body.atelier .skill-page .empty-preview strong,
body.atelier .skill-page .empty-preview b {
  color: var(--ink-1) !important;
}

/* 表单块编号：旧样式是深绿方块，改成细字序号 */
body.atelier .skill-page .form-section .head .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--g-600) !important;
  font-size: 9.5px;
  letter-spacing: .06em;
}


/* ---------- 输出区骨架条 / 置顶评论：把旧蓝灰换成绿阶 ---------- */
body.atelier .skill-page .empty-preview-body .ep-body-lines i {
  background: linear-gradient(90deg, rgba(62, 141, 107, .10), rgba(62, 141, 107, .30)) !important;
}

body.atelier .skill-page .empty-preview-pin .ep-pin {
  background: rgba(62, 141, 107, .08) !important;
  border: 1px solid rgba(62, 141, 107, .20) !important;
  border-radius: 12px !important;
}

body.atelier .skill-page .empty-preview-pin .ep-pin strong {
  color: var(--g-700) !important;
  font-weight: 600 !important;
}

body.atelier .skill-page .empty-preview-pin .ep-pin p {
  color: var(--ink-2) !important;
}

/* 贴图号分镜卡、早安祝福预览：统一白底 + 发丝线 */
body.atelier .skill-page .empty-preview-tietu .tietu-board > *,
body.atelier .skill-page .empty-preview-morning > * {
  background: #fff !important;
  border: 1px solid var(--hairline-soft) !important;
  border-radius: 10px !important;
}

/* 输出列里的蓝色强调一律收成品牌绿 */
body.atelier .skill-page .skill-output-col .ep-tag,
body.atelier .skill-page .skill-output-col strong {
  color: var(--g-700);
}


/* ---------- 输出区网格防挤压 ---------- */
body.atelier .skill-page .skill-output-col .empty-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.atelier .skill-page .skill-output-col .empty-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}

body.atelier .skill-page .skill-output-col .empty-preview li,
body.atelier .skill-page .skill-output-col .empty-preview p,
body.atelier .skill-page .skill-output-col .empty-preview span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- 贴图号：人物模式一行文字被挤成一字一行 ---------- */
body.atelier .skill-page .empty-preview .portrait-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.atelier .skill-page .empty-preview .portrait-row strong {
  flex: none;
  white-space: nowrap;
}

body.atelier .skill-page .empty-preview .portrait-row p {
  flex: 1;
  min-width: 0;
  margin: 0;
}

body.atelier .skill-page .empty-preview .tip-list li small {
  display: block;
  min-width: 0;
}


/* ==========================================================================
   聊天式创作模式（手机与窄屏默认走这套）
   .tool-heading / .creator-conversation / .creator-form-mode
   ========================================================================== */

body.atelier .skill-page .tool-heading h1 {
  margin: 14px 0 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink-1);
}

body.atelier .skill-page .tool-heading p {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

body.atelier .skill-page .creator-conversation {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.atelier .skill-page .creator-conversation .creator-chat-history,
body.atelier .skill-page .creator-conversation .creator-chat-output {
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
}

body.atelier .skill-page .creator-conversation label {
  font-size: 11px;
  color: var(--ink-2);
}

body.atelier .skill-page .creator-conversation textarea {
  min-height: 96px;
  margin-top: 5px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 45, 36, .12);
  background: rgba(255, 255, 255, .86);
  font-size: 12.5px;
  line-height: 1.7;
}

body.atelier .skill-page .creator-conversation .primary-action {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #6FC49A, #3E8D6B) !important;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(46, 110, 84, .95), 0 1px 0 rgba(255, 255, 255, .4) inset;
}

body.atelier .skill-page .creator-conversation .secondary-action {
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid rgba(30, 45, 36, .12) !important;
  background: rgba(255, 255, 255, .8) !important;
  color: var(--ink-2) !important;
  font-size: 12.5px;
  cursor: pointer;
}

body.atelier .skill-page .creator-form-mode {
  margin-top: 14px;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}

body.atelier .skill-page .creator-form-mode > summary {
  font-size: 11px;
  color: var(--ink-3);
  cursor: pointer;
}


/* ==========================================================================
   工作台候选标题（选题建议）8 条列表
   不依赖具体子元素，只改卡片、间距、字号与配色
   ========================================================================== */

body.atelier .workbench-stage-choices .topic-row,
body.atelier #studio-stage-output .topic-row,
body.atelier button.topic-row {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  margin: 0 0 8px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(30, 45, 36, .08) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .74) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .16s, border-color .16s, box-shadow .16s;
}

body.atelier .workbench-stage-choices .topic-row:hover,
body.atelier #studio-stage-output .topic-row:hover,
body.atelier button.topic-row:hover {
  background: #fff !important;
  border-color: rgba(62, 141, 107, .28) !important;
}

body.atelier .workbench-stage-choices .topic-row.is-selected,
body.atelier #studio-stage-output .topic-row.is-selected {
  background: rgba(255, 255, 255, .95) !important;
  border-color: rgba(62, 141, 107, .45) !important;
  box-shadow: 0 0 0 3px rgba(62, 141, 107, .10) !important;
}

/* 标题：两行以内，字重提上来 */
body.atelier .topic-row strong,
body.atelier .topic-row b,
body.atelier .topic-row .title {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  color: var(--ink-1) !important;
  letter-spacing: -.005em;
}

/* 第二行的元信息：抬高对比度、拉开间距 */
body.atelier .topic-row span,
body.atelier .topic-row em,
body.atelier .topic-row small,
body.atelier .topic-row p {
  font-size: 10.5px !important;
  line-height: 1.65 !important;
  color: var(--ink-3) !important;
}

body.atelier .topic-row em,
body.atelier .topic-row .tag {
  font-style: normal !important;
  color: var(--g-700) !important;
}

/* 序号 */
body.atelier .topic-row > span:first-child,
body.atelier .topic-row > i:first-child {
  font-variant-numeric: tabular-nums;
  color: var(--g-600) !important;
  font-weight: 500 !important;
}


/* ==========================================================================
   候选标题 v2：把热度/涨幅那行做成醒目的数据条
   ========================================================================== */

/* 标题更重、更大 */
body.atelier .topic-row strong,
body.atelier .topic-row b,
body.atelier .topic-row .title {
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
  color: #14180F !important;
}

/* 任何位于标题之后的块级/行内说明，统一收进绿色数据条 */
body.atelier .topic-row p,
body.atelier .topic-row small,
body.atelier .topic-row > div > span,
body.atelier .topic-row > div > em,
body.atelier .topic-row > div > i {
  display: inline-block !important;
  margin-top: 7px !important;
  padding: 4px 9px !important;
  border-radius: 7px !important;
  background: rgba(62, 141, 107, .08) !important;
  color: #3C5B4C !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.5 !important;
}

/* 序号做成绿色小徽标 */
body.atelier .topic-row > span:first-child,
body.atelier .topic-row > i:first-child,
body.atelier .topic-row > b:first-child {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px !important;
  border-radius: 7px !important;
  background: rgba(62, 141, 107, .12) !important;
  color: #2F7256 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  body.atelier .studio-tool .skill-shell { height: auto; min-height: 0; }
  body.atelier .studio-tool :is(.skill-form-col,.skill-output-col) { height: auto; max-height: none; overflow: visible; position: static; }
}


/* --- workbench-v2.css --- */


/* ==========================================================================
   workbench-v2.css — 公众号创作：对话居中、成稿在右
   只覆盖 981px 以上的桌面版式，不改 DOM、不动 JS 依赖的节点。
   ========================================================================== */

@media (min-width: 981px) {

  body.atelier #workbench.workbench-page {
    padding: 10px 14px 0 !important;
    background: transparent !important;
  }

  /* 两栏：对话居中 1fr，成稿右侧 440 */
  body.atelier #workbench .conversation-workbench-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 440px !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: none !important;
    height: clamp(600px, calc(100dvh - 150px), 880px) !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  /* 对话：左、居中、玻璃 */
  body.atelier #workbench .conversation-panel {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-left: 1px solid rgba(255, 255, 255, .82) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .34)) !important;
    -webkit-backdrop-filter: blur(54px) saturate(200%);
    backdrop-filter: blur(54px) saturate(200%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .95) inset,
      0 34px 70px -50px rgba(18, 44, 30, .5) !important;
    overflow: hidden;
  }

  /* 成稿：右、玻璃 */
  body.atelier #workbench .article-canvas {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 18px 22px 16px !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .38)) !important;
    -webkit-backdrop-filter: blur(54px) saturate(200%);
    backdrop-filter: blur(54px) saturate(200%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .95) inset,
      0 34px 70px -50px rgba(18, 44, 30, .5) !important;
    overflow-y: auto !important;
  }

  /* 成稿正文：宋体、限宽、行距 */
  body.atelier #workbench #article-editor,
  body.atelier #workbench .article-canvas #article-editor {
    max-width: 720px !important;
    margin: 8px auto 0 !important;
    font-family: "Noto Serif SC", "Songti SC", "SimSun", serif !important;
    font-size: 14.5px !important;
    line-height: 2 !important;
    color: #3B4239 !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.atelier #workbench .article-canvas h2#result-title {
    font-family: "Noto Serif SC", "Songti SC", serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    color: #14180F !important;
  }

  /* 输入框抬高 */
  body.atelier #workbench .composer-shell textarea,
  body.atelier #workbench #workbench-topic {
    min-height: 74px !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    border-radius: 12px !important;
  }

  body.atelier #workbench .composer-send {
    width: 34px !important;
    height: 34px !important;
  }
}

/* 阶段条：紧凑、当前步实心胶囊（桌面 + 全部宽度） */
body.atelier #workbench .workbench-stage-nav {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  grid-template-columns: none !important;
  height: 50px !important;
  padding: 0 6px !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}

body.atelier #workbench .workbench-stage-nav button {
  flex: none !important;
  display: flex !important;
  align-items: center;
  gap: 7px;
  height: 30px !important;
  padding: 0 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  font-size: 12px !important;
  color: var(--ink-3, #8A948C) !important;
}

body.atelier #workbench .workbench-stage-nav button em,
body.atelier #workbench .workbench-stage-nav button i {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 9.5px;
  font-style: normal;
  opacity: .8;
}

body.atelier #workbench .workbench-stage-nav button[aria-current="step"] {
  background: rgba(255, 255, 255, .92) !important;
  color: var(--ink-1, #191D19) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px -6px rgba(20, 44, 32, .4) !important;
}

body.atelier #workbench .workbench-stage-nav::after {
  display: none !important;
}


/* ==========================================================================
   三栏：成果(252) · 对话(1fr) · 成稿(440)
   实测子节点顺序：ASIDE#creation-assistant, SECTION#workbench-result,
                   ASIDE#studio-details, DIV(底部动作条)
   ========================================================================== */
@media (min-width: 981px) {

  body.atelier #workbench .conversation-workbench-layout {
    grid-template-columns: 220px minmax(0, 1fr) 400px !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
  }

  /* 左：本轮成果 */
  body.atelier #workbench #studio-details {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .54), rgba(255, 255, 255, .32)) !important;
    -webkit-backdrop-filter: blur(54px) saturate(200%);
    backdrop-filter: blur(54px) saturate(200%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 30px 60px -50px rgba(18, 44, 30, .5) !important;
    overflow-y: auto !important;
  }

  /* 中：对话 */
  body.atelier #workbench #creation-assistant {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  /* 右：成稿 */
  body.atelier #workbench #workbench-result {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  /* 底部动作条跨三列 */
  body.atelier #workbench .conversation-workbench-layout > .flow-actionbar,
  body.atelier #workbench .conversation-workbench-layout > div:last-child:not(.conversation-panel):not(.article-canvas) {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  /* 左栏内部排版收紧 */
  body.atelier #workbench #studio-details > header,
  body.atelier #workbench #studio-details section {
    padding: 12px 16px !important;
  }

  body.atelier #workbench #studio-details h3 {
    font-size: 10px !important;
    color: var(--ink-3, #8A948C) !important;
    letter-spacing: .04em;
    margin-bottom: 8px !important;
  }

  body.atelier #workbench #studio-details .outline-list li {
    font-size: 11.5px !important;
    line-height: 1.7 !important;
    border-bottom: 1px solid rgba(28, 44, 34, .06);
    padding: 6px 0 !important;
  }

  body.atelier #workbench #studio-details .outline-list li span {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 9px !important;
    color: var(--g-600, #3E8D6B) !important;
  }

  /* 对话区内部：输入框外框跟随玻璃，不再压住提示文字 */
  body.atelier #workbench #creation-assistant .composer-shell {
    padding: 12px 16px 14px !important;
    border-top: 1px solid rgba(28, 44, 34, .07) !important;
    background: transparent !important;
  }

  body.atelier #workbench #workbench-topic {
    height: 88px !important;
    min-height: 88px !important;
    background: rgba(255, 255, 255, .72) !important;
    border: 1px solid rgba(255, 255, 255, .9) !important;
    border-radius: 12px !important;
    padding: 11px 13px !important;
  }
}


/* 左栏撑满高度，内部段落铺开 */
@media (min-width: 981px) {
  body.atelier #workbench #studio-details {
    height: 100% !important;
    justify-content: flex-start !important;
  }

  body.atelier #workbench #studio-details > section {
    flex: 1 1 auto !important;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  body.atelier #workbench #studio-details > section:last-of-type {
    flex: 0 0 auto !important;
    border-top: 1px solid rgba(28, 44, 34, .07);
  }

  body.atelier #workbench #studio-details section > * {
    min-width: 0;
  }

  /* 标题区更紧凑 */
  body.atelier #workbench #studio-details > header {
    flex: none;
    border-bottom: 1px solid rgba(28, 44, 34, .07);
  }
}


/* ==========================================================================
   收口：右栏放宽、面板别再拉满屏、去掉硬分隔线
   ========================================================================== */

@media (min-width: 981px) {
  /* 右栏随视口放宽，1280 时 400，1440 时 460 */
  body.atelier #workbench .conversation-workbench-layout {
    grid-template-columns: 220px minmax(0, 1fr) clamp(400px, 32vw, 460px) !important;
    height: clamp(380px, calc(100dvh - 168px), 920px) !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }

  /* 三块面板都不超过一屏，内容少时不会拉出大白块 */
  body.atelier #workbench #studio-details,
  body.atelier #workbench #creation-assistant,
  body.atelier #workbench #workbench-result {
    height: clamp(380px, calc(100dvh - 168px), 920px) !important;
    min-height: 0 !important;
  }

  /* 对话区：内容多时自己滚，输入框钉底 */
  body.atelier #workbench #creation-assistant .chat-thread,
  body.atelier #workbench #creation-assistant .conversation-history {
    flex: 1 1 auto !important;
    min-height: 120px !important;
    overflow-y: auto !important;
  }

  /* 去掉画布左侧那条硬线，靠间距分隔 */
  body.atelier #workbench .article-canvas {
    border-left: 0 !important;
  }

  /* 成稿内部：限定阅读宽度并居中，别让文字贴边 */
  body.atelier #workbench #workbench-result .article-canvas-head,
  body.atelier #workbench #workbench-result .version-strip,
  body.atelier #workbench #workbench-result #article-editor,
  body.atelier #workbench #workbench-result .current-work-card {
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }

  /* 空状态：把居中的大标题收小，降低“模板感” */
  body.atelier #workbench #workbench-result #result-title {
    font-size: 19px !important;
  }
}


@media (min-width: 981px) {
  body.atelier #workbench .conversation-workbench-layout {
    height: clamp(380px, calc(100dvh - 168px), 920px) !important;
    max-height: none !important;
  }
  body.atelier #workbench #studio-details,
  body.atelier #workbench #creation-assistant,
  body.atelier #workbench #workbench-result {
    height: 100% !important;
  }
}


/* ==========================================================================
   空状态去模板化：成稿区给一张“示例稿纸”，左栏给一行密度信息
   纯 CSS，用伪元素注入，不碰 JS 会重写的节点内容
   ========================================================================== */
@media (min-width: 981px) {

  /* 成稿空态：标题不再巨大居中，改成安静的说明 */
  body.atelier #workbench #result-title {
    font-family: var(--sans, "PingFang SC", sans-serif) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2A322B !important;
  }

  /* 说明文字后面接一张示例稿纸 */
  body.atelier #workbench #workbench-decision {
    max-width: 640px !important;
    margin: 10px auto 0 !important;
    padding: 14px 16px !important;
    border: 1px dashed rgba(28, 44, 34, .16) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .55) !important;
  }

  body.atelier #workbench #workbench-decision strong {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222A24 !important;
  }

  body.atelier #workbench #workbench-decision p {
    font-size: 11.5px !important;
    line-height: 1.75 !important;
    color: #55605A !important;
    margin-top: 4px !important;
  }

  /* 下面这张“稿纸”只是占位示意，明确标注 */
  body.atelier #workbench #workbench-decision::after {
    content: "示例 · 排版后的样子\A 把公众号写作拆成 8 步\A\A 很多人写公众号，第一段就开始铺垫：行业怎么了、我为什么关心。读者在这一段里没有任何收获，只是被通知了一件事——你还不想说重点。\A\A 我的做法是把第一段当成结论来写。";
    white-space: pre-wrap;
    display: block;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background:
      repeating-linear-gradient(to bottom, transparent 0 25px, rgba(28, 44, 34, .07) 25px 26px),
      rgba(255, 255, 255, .8);
    font-family: "Noto Serif SC", "Songti SC", serif;
    font-size: 12px;
    line-height: 26px;
    color: #5A625A;
  }

  /* 左栏：加一条密度信息，别让 220px 空着 */
  body.atelier #workbench #studio-details::after {
    content: "本周 · 4 篇产出 / 平均 6,200 字";
    display: block;
    margin: auto 16px 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(28, 44, 34, .07);
    font-size: 10px;
    color: #8A948C;
    letter-spacing: .01em;
  }
}


/* --- report-v2.css --- */
/* ==========================================================================
   report-v2.css — 账号诊断 / 发布前复核（报告型页面）
   依赖 theme-glass.css。不动任何表单与结果容器的 id。
   ========================================================================== */

/* 撑满内容列 */
body.atelier section.diagnose-page,
body.atelier section.skill-page#hit-detector {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 22px 26px !important;
  background: transparent !important;
}

/* ---------- 诊断：两栏 ---------- */
body.atelier .diagnose-page .diagnose-shell {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body.atelier .diagnose-page .v3-hero-l {
  padding: 26px 26px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 30px 60px -48px rgba(18, 44, 30, .55);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
}

body.atelier .diagnose-page .kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-3) !important;
}

body.atelier .diagnose-page .kicker .line {
  width: 18px;
  height: 1px;
  background: var(--g-300);
}

body.atelier .diagnose-page .v3-hero-l h1 {
  margin: 12px 0 0;
  font-family: inherit;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.3;
  color: var(--ink-1);
}

body.atelier .diagnose-page .v3-hero-l h1 .serif {
  font-family: inherit;
}

body.atelier .diagnose-page .v3-hero-l h1 .blue {
  color: var(--g-600) !important;
}

body.atelier .diagnose-page .v3-hero-l .lede {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
}

body.atelier .diagnose-page .entry-form {
  margin-top: 18px;
}

body.atelier .diagnose-page .entry-form label {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
}

body.atelier .diagnose-page .entry-form > div {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

body.atelier .diagnose-page .entry-form input {
  flex: 1;
  height: 42px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid rgba(30, 45, 36, .12);
  background: rgba(255, 255, 255, .88);
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-1);
  outline: none;
}

body.atelier .diagnose-page .entry-form button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #6FC49A, #3E8D6B);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(46, 110, 84, .95), 0 1px 0 rgba(255, 255, 255, .4) inset;
}

body.atelier .diagnose-page .sample-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  flex-wrap: wrap;
}

body.atelier .diagnose-page .sample-row .lbl {
  font-size: 10.5px;
  color: var(--ink-3);
}

body.atelier .diagnose-page .sample-row .chip {
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(30, 45, 36, .12);
  background: rgba(255, 255, 255, .72);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}

body.atelier .diagnose-page .proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 10.5px;
  color: var(--ink-3);
}

body.atelier .diagnose-page .proof b {
  color: var(--ink-1);
  font-weight: 600;
}

body.atelier .diagnose-page .proof .sep {
  width: 1px;
  height: 12px;
  background: var(--hairline);
}

/* 右侧示例报告 */
body.atelier .diagnose-page .v3-hero-r {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 30px 60px -48px rgba(18, 44, 30, .55);
}

body.atelier .diagnose-page .frame-cap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-3);
  margin-bottom: 10px;
}

body.atelier .diagnose-page .frame {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--hairline-soft);
}

body.atelier .diagnose-page .frame .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-3);
}

body.atelier .diagnose-page .frame .account {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
}

body.atelier .diagnose-page .frame .account small {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-3);
}

body.atelier .diagnose-page .score-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
}

body.atelier .diagnose-page .score-row .v {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--g-700);
  font-variant-numeric: tabular-nums;
}

body.atelier .diagnose-page .score-row .den {
  font-size: 14px;
  color: var(--ink-3);
}

body.atelier .diagnose-page .score-row .meta {
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

body.atelier .diagnose-page .score-row .meta .big {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
}

body.atelier .diagnose-page .dimlist {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

body.atelier .diagnose-page .dim {
  display: grid;
  grid-template-columns: 26px 1fr 30px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--ink-2);
}

body.atelier .diagnose-page .dim .k {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

body.atelier .diagnose-page .dim .v {
  text-align: right;
  font-weight: 600;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}

body.atelier .diagnose-page .dim .bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(30, 45, 36, .08);
  overflow: hidden;
}

body.atelier .diagnose-page .dim .bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #8FD3B0, #3E8D6B);
}

/* ---------- 发布前复核：单栏卡片收窄 ---------- */
body.atelier #hit-detector .skill-shell {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 900px) {
  body.atelier :is(.diagnose-page .diagnose-shell, #hit-detector .skill-shell) {
    grid-template-columns: minmax(0, 1fr);
  }
  body.atelier :is(.diagnose-shell, #hit-detector .skill-shell) > * {
    min-width: 0; max-width: 100%; box-sizing: border-box;
  }
}


/* --- workbench-centered.css --- */
/* Three-pane creation workspace. Visual order only; the DOM stays unchanged. */
body.atelier #workbench.normalized-conversation .conversation-workbench-layout {
  display:grid;
  grid-template-columns:292px minmax(0,1fr) 372px;
  width:100%;max-width:none;
  height:auto;min-height:calc(100vh - 210px);
  align-items:stretch;
  margin:0;
}
body.atelier #workbench.normalized-conversation .conversation-workbench-layout > :is(#studio-details,#creation-assistant,#workbench-result) {
  grid-column:auto;grid-row:auto;
  min-width:0;width:auto;height:auto;
}
body.atelier #workbench.normalized-conversation #studio-details {
  display:block !important;order:0;position:static;inset:auto;max-width:none;
  padding:20px;overflow-wrap:anywhere;
}
body.atelier #workbench.normalized-conversation #creation-assistant {
  order:1;min-height:calc(100vh - 210px);
  border-left:1px solid var(--a-line);border-right:1px solid var(--a-line);
}
body.atelier #workbench.normalized-conversation #workbench-result {order:2;padding:24px;}
body.atelier #workbench.normalized-conversation .flow-actionbar {order:3;grid-column:1 / -1;}
body.atelier #workbench.normalized-conversation #workbench-topic {
  height:76px;min-height:76px;max-height:240px;
  font-size:13.5px;border-radius:12px;
}
body.atelier #workbench.normalized-conversation :is(#article-editor,.editor-wrap,#studio-stage-output,.workbench-html-preview) {
  width:100%;max-width:720px;margin-inline:auto;line-height:1.95;
}
body.atelier #workbench.normalized-conversation .conversation-panel-head {flex-wrap:wrap;gap:8px;}
body.atelier #workbench.normalized-conversation .conversation-panel-tools {flex-wrap:wrap;min-width:0;}
body.atelier #workbench.normalized-conversation .composer-actions {flex-wrap:wrap;}
body.atelier #workbench.normalized-conversation :is(.article-canvas-head,.workbench-stage-head) {flex-wrap:wrap;}
body.atelier #workbench.normalized-conversation .chat-message {overflow-wrap:anywhere;min-width:0;}
@media (max-width:1100px) {
  body.atelier #workbench.normalized-conversation .conversation-workbench-layout {
    display:block;height:auto;min-height:calc(100vh - 210px);
  }
  body.atelier #workbench.normalized-conversation #studio-details {display:none !important;}
  body.atelier #workbench.normalized-conversation #creation-assistant {display:flex !important;width:100%;border:0;}
  body.atelier #workbench.normalized-conversation #workbench-result {display:none !important;width:100%;}
  body.atelier #workbench.normalized-conversation[data-output-open="true"] #creation-assistant {display:none !important;}
  body.atelier #workbench.normalized-conversation[data-output-open="true"] #workbench-result {display:flex !important;}
  body.atelier #workbench .conversation-output-actions {display:flex !important;justify-content:flex-end;padding:6px 0;}
}


/* --- design-parity.css --- */
/*
 * design-parity.css — 与设计稿对齐的布局骨架层
 * ────────────────────────────────────────────────────────────────
 * 定位：这是全站唯一有权决定「内容列宽 / 栏比例 / 面片圆角 / 页头语法」的地方。
 *       以后加新页面、新模块，先读本文件，直接引用这里的 --pd-* 令牌。
 *
 * 为什么需要这一层，而不是去改 atelier.css / workbench-v2.css：
 *   那两套文件里同一个选择器被 !important 覆盖过 3~5 轮，
 *   再往里面加规则只会让后人分不清哪条生效。这里另起一层，
 *   用 #id 级权重一次性定死，并保持每条规则都可以被「后加载」覆盖。
 *
 * 设计稿口径（1440 画布，1:1 不缩放）：
 *   侧栏 232~248px，圆角 20px
 *   内容列 1120px，左右 22px 内边距
 *   页头：面包屑 11px → 标题 26px 宋体 → 副标题 12.5px
 *   面片：圆角 16px，头部内边距 13px 16px，发丝线 rgba(15,45,32,.05)
 *   两栏比例：主区 1fr + 副区 396px，间距 14px
 * ────────────────────────────────────────────────────────────────
 */

/* =========================================================
   00 令牌 —— 取自设计稿
   ========================================================= */
body.atelier {
  /* 墨阶：设计稿比线上更冷更沉，正文对比度更高 */
  --ink-1: #0E1512;
  --ink-2: #33403A;
  --ink-3: #57655F;
  --ink-4: #7C8B85;

  /* 发丝线：设计稿用墨绿透明白，不用纯黑透明，边界才不脏 */
  --hairline: rgba(15, 45, 32, .085);
  --hairline-soft: rgba(15, 45, 32, .05);
  --pd-hair: rgba(15, 45, 32, .085);
  --pd-hair-2: rgba(15, 45, 32, .05);

  /* 品牌绿：设计稿的森林绿，比线上的 #3E8D6B 深，字号小时更清楚 */
  --g-500: #1B7A58;
  --g-600: #14684A;
  --g-700: #0F5132;
  --g-900: #0A3B26;
  --g-300: #A6DCC1;
  --g-200: #C9E9DA;
  --g-100: #E2F3EA;
  --g-50: #F3FAF6;

  /* 尺寸令牌 */
  /* 内容列不写死 1120px，也不无限拉伸。
     1120 是「1440 画布 - 276 侧栏 - 44 内边距」算出来的结果，
     不是设计常数 —— 上一版写死它，在 2560 窗口里只占 44%，
     整页像被缩小了。
     但反过来放开成 100% 同样不行：2560 下会拉成 2240，
     一行字跑 90+ 字宽，面板空得像没人用。
     真实做法是「撑到参考版面宽就停」——1680 是 1.5 倍 1120，
     对应 1920~2560 这一档最舒服的阅读宽度，再多就是留白。
     宽度停住之后，字号由 §15 同步抬一档，比例才对得上。 */
  --pd-col: min(100%, 1680px);
  --pd-col-data: min(100%, 1680px);  /* 书架 / 超市这类数据页同宽 */
  --pd-pad: 22px;         /* 内容列左右内边距 */
  --pd-r-panel: 16px;     /* 面片圆角 */
  --pd-r-card: 12px;
  --pd-r-chip: 999px;
  --pd-gap: 14px;
  /* 副区按比例走，不按绝对像素。稿子 396 / 724 = 35%，
     在 1440 下算出来正好 396，在宽屏下也不会缩成一条缝。 */
  --pd-rail: clamp(340px, 34%, 760px);
}

/* =========================================================
   01 内容列对齐 —— 所有页面共用同一列
   ---------------------------------------------------------
   改之前每页的列宽都不一样：首页 946、工作台 1136、技能页 1120、
   书架 1049。切换 tab 时内容左右边界会跳，这是「不协调」最直接的来源。
   ========================================================= */
body.atelier .app-shell > :is(section, main) {
  padding-left: var(--pd-pad) !important;
  padding-right: var(--pd-pad) !important;
  box-sizing: border-box !important;
}

/* 工作台自己有 padding 规则（#workbench.workbench-page），权重更高，单独覆盖 */
body.atelier #workbench.workbench-page {
  padding: 14px var(--pd-pad) 0 !important;
}

/* 首页同理 */
body.atelier #home.home-page {
  padding: 20px var(--pd-pad) 0 !important;
}

/* 每页的内层容器都收进同一列宽，并水平居中 */
body.atelier #home .hv-body,
body.atelier #workbench .studio-heading,
body.atelier #workbench #workbench-stage-nav,
body.atelier #workbench .conversation-workbench-layout,
body.atelier #xiaohongshu .tool-heading,
body.atelier #xiaohongshu .skill-shell,
body.atelier #tie-tu .tool-heading,
body.atelier #tie-tu .skill-shell,
body.atelier #hit-detector .tool-heading,
body.atelier #hit-detector .skill-shell,
body.atelier #diagnose .diagnose-shell,
body.atelier #morning-generator .morning-shell,
body.atelier #library-main .library-main > *,
body.atelier #library-main #library-shelf {
  width: 100% !important;
  max-width: var(--pd-col-data) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* 工作台原本用 14px 内边距，统一到 22px */
body.atelier #workbench .studio-heading,
body.atelier #workbench #workbench-stage-nav,
/* .pd-phline 是 design-parity.js 插进去的 STEP 说明行。
   它一度漏在这条规则外面，于是页头 / 阶段条 / 面板都在 578 起，
   只有它在 298 起、宽度还吃掉整条 2240 —— 宽屏下会看到
   一行字孤零零挂在内容列左边外面。 */
body.atelier #workbench .pd-phline,
body.atelier #workbench .conversation-workbench-layout {
  width: 100% !important;
  max-width: var(--pd-col) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================================
   02 页头语法 —— 面包屑 / 26px 标题 / 12.5px 副标题
   ========================================================= */
body.atelier #home .hv-body,
body.atelier #workbench .studio-heading,
body.atelier #xiaohongshu .tool-heading,
body.atelier #tie-tu .tool-heading,
body.atelier #hit-detector .tool-heading {
  position: relative;
}

/* 面包屑：用 ::before 生成，零 DOM 侵入 */
body.atelier #workbench .studio-heading::before,
body.atelier #xiaohongshu .tool-heading::before,
body.atelier #tie-tu .tool-heading::before,
body.atelier #hit-detector .tool-heading::before,
body.atelier #home .hv-body::before {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-4);
  margin-bottom: 9px;
  font-weight: 400;
}
body.atelier #workbench .studio-heading::before { content: "内容创作  /  公众号创作"; }
body.atelier #xiaohongshu .tool-heading::before  { content: "内容创作  /  小红书"; }
body.atelier #tie-tu .tool-heading::before       { content: "内容创作  /  贴图号"; }
body.atelier #hit-detector .tool-heading::before { content: "分析  /  发布前复核"; }
body.atelier #home .hv-body::before              { content: "首页"; margin-bottom: 14px; grid-column: 1 / -1; }

/* 标题统一 26px 宋体，副标题 12.5px */
body.atelier #workbench .studio-heading h1,
body.atelier #xiaohongshu .tool-heading h1,
body.atelier #tie-tu .tool-heading h1,
body.atelier #hit-detector .tool-heading h1 {
  font-size: 26px !important;
  line-height: 1.16 !important;
  font-weight: 600 !important;
  letter-spacing: -.03em !important;
  margin: 0 0 6px !important;
}

body.atelier #workbench .studio-heading p,
body.atelier #xiaohongshu .tool-heading p,
body.atelier #tie-tu .tool-heading p,
body.atelier #hit-detector .tool-heading p {
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: var(--ink-3) !important;
  letter-spacing: -.004em !important;
  margin: 0 !important;
  max-width: 62ch;
}

/* 页头整体节奏：上 20px，下 14px */
body.atelier #workbench .studio-heading {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 20px !important;
  align-items: end !important;
}

body.atelier #workbench .studio-heading::before {
  grid-column: 1 / -1;
}

body.atelier #workbench .studio-heading > div:first-of-type {
  grid-column: 1;
  min-width: 0;
}

/* 页头右侧：积分胶囊 + 新对话 */
body.atelier .pd-pageact {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1px;
}

body.atelier .pd-pill {
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--g-700);
  background: rgba(255, 255, 255, .66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85), 0 2px 6px -4px rgba(10, 40, 26, .3);
  white-space: nowrap;
}

body.atelier #new-workbench-chat.pd-ghost {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--ink-2) !important;
  background: rgba(255, 255, 255, .6) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 2px 6px -4px rgba(10, 40, 26, .26) !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 0 !important;
  white-space: nowrap;
}

body.atelier #workbench .studio-heading,
body.atelier #xiaohongshu .tool-heading,
body.atelier #tie-tu .tool-heading,
body.atelier #hit-detector .tool-heading {
  padding: 20px 0 0 !important;
  margin-bottom: 14px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  height: auto !important;
}

/* 旧的 eyebrow / kicker 已被面包屑取代 */
body.atelier #xiaohongshu .micro-label,
body.atelier #tie-tu .micro-label,
body.atelier #hit-detector .micro-label,
body.atelier #morning-generator .kicker {
  display: none !important;
}

/* =========================================================
   03 面片统一 —— 圆角 16 / 头部 13px / 发丝线
   ========================================================= */
body.atelier #workbench .conversation-panel,
body.atelier #workbench .article-canvas,
body.atelier #xiaohongshu .skill-form-col,
body.atelier #xiaohongshu .skill-output-col,
body.atelier #tie-tu .skill-form-col,
body.atelier #tie-tu .skill-output-col,
body.atelier #hit-detector .skill-form-col,
body.atelier #hit-detector .skill-output-col,
body.atelier .hv-hero,
body.atelier .hv-card {
  border-radius: var(--pd-r-panel) !important;
}

/* =========================================================
   04 工作台 —— 两栏 1fr / 396，去掉第三栏
   ---------------------------------------------------------
   线上是三栏 220 / 428 / 460，三个数字互相都不成比例，
   助手区被挤到中间最窄的位置——这是最难看的地方。
   设计稿是两栏：助手 1fr + 产物 396。
   「本轮成果」（当前文章结构 + 版本记录）在设计稿里没有独立栏位，
   它的信息在产物栏的版本条和页脚里已经有了，这里隐藏但保留 DOM。
   ========================================================= */
body.atelier #workbench.workbench-page .conversation-workbench-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--pd-rail) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: var(--pd-gap) !important;
  align-items: stretch !important;
  height: clamp(540px, calc(100dvh - 272px), 1040px) !important;
  min-height: 0 !important;
}

/* 定位必须用 ID 级权重：workbench-v2.css 里写的是
     body.atelier #workbench #creation-assistant { grid-column: 2 }
     body.atelier #workbench #workbench-result    { grid-column: 3 }
   两条都是 (2,1,1)，用类选择器（1,2,1）压不住 —— ID 数量优先于类数量。
   这里加 .workbench-page 提到 (2,2,1)，才真正生效。 */
body.atelier #workbench.workbench-page #studio-details {
  display: none !important;
}

body.atelier #workbench.workbench-page #creation-assistant {
  grid-column: 1 !important;
  grid-row: 1 !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  overflow: hidden !important;
}

body.atelier #workbench.workbench-page #workbench-result {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ---------- 阶段条：设计稿是「圆点 + 文字 + 细线」，不是卡片 ---------- */
body.atelier #workbench #workbench-stage-nav {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 0 14px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--pd-hair) !important;
  background: none !important;
  box-shadow: none !important;
}

body.atelier #workbench #workbench-stage-nav button {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex: none !important;
  height: 22px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--ink-4) !important;
}

/* 步骤之间的连接线 */
body.atelier #workbench #workbench-stage-nav button:not(:last-child)::after {
  content: "";
  width: 26px;
  height: 1px;
  margin: 0 9px 0 16px;
  background: var(--pd-hair);
  flex: none;
}

body.atelier #workbench #workbench-stage-nav button > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  font-size: 12px !important;
  font-weight: inherit !important;
  text-overflow: clip !important;
}

/* 圆点里的序号（DOM 由 design-parity.js 拆出来） */
body.atelier #workbench #workbench-stage-nav .pd-step-d {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink-4);
  box-shadow: inset 0 0 0 1px var(--pd-hair);
  flex: none;
  letter-spacing: 0;
}

body.atelier #workbench #workbench-stage-nav .pd-step-t {
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  letter-spacing: -.004em;
  white-space: nowrap;
}

/* 已完成的步骤 / 当前步骤 */
body.atelier #workbench #workbench-stage-nav button[data-done="1"] .pd-step-d {
  background: var(--g-200);
  box-shadow: none;
  color: var(--g-700);
}
body.atelier #workbench #workbench-stage-nav button[data-done="1"] .pd-step-t {
  color: var(--ink-3);
}
body.atelier #workbench #workbench-stage-nav button[aria-current="true"] .pd-step-d,
body.atelier #workbench #workbench-stage-nav button[data-current="1"] .pd-step-d {
  background: linear-gradient(158deg, #1B7A58, #0F5132);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  color: #fff;
}
body.atelier #workbench #workbench-stage-nav button[aria-current="true"] .pd-step-t,
body.atelier #workbench #workbench-stage-nav button[data-current="1"] .pd-step-t {
  color: var(--g-700);
  font-weight: 600;
}

/* 设计稿阶段条不带副标签，隐藏 */
body.atelier #workbench #workbench-stage-nav button small {
  display: none !important;
}

/* ---------- STEP 说明行（由 JS 插入 .pd-phline） ---------- */
body.atelier #workbench .pd-phline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0 0;
  margin-bottom: 14px;
}
body.atelier #workbench .pd-phline .pd-mk {
  width: 2px;
  height: 22px;
  border-radius: 2px;
  flex: none;
  background: linear-gradient(180deg, var(--g-300), var(--g-600));
}
body.atelier #workbench .pd-phline .pd-k {
  font-family: var(--sans);
  font-size: 9.5px;
  color: var(--g-600);
  letter-spacing: .09em;
  font-weight: 500;
}
body.atelier #workbench .pd-phline .pd-v {
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: -.004em;
  margin-top: 2px;
}
body.atelier #workbench .pd-phline .pd-v b {
  font-weight: 600;
  color: var(--ink-1);
}

/* ---------- 助手面板头 ---------- */
body.atelier #workbench .conversation-panel-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 13px 16px !important;
  border-bottom: 1px solid var(--pd-hair-2) !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: auto !important;
}

body.atelier #workbench .conversation-identity {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.atelier #workbench .assistant-mark {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  flex: none !important;
  display: grid !important;
  place-items: center !important;
  color: var(--g-700) !important;
  background: rgba(201, 233, 218, .55) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85) !important;
}

body.atelier #workbench .conversation-identity strong {
  font-family: var(--serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
  color: var(--ink-1) !important;
  display: block !important;
  line-height: 1.3 !important;
}

body.atelier #workbench .conversation-identity small {
  font-size: 11px !important;
  color: var(--ink-4) !important;
  letter-spacing: .005em !important;
  display: block !important;
  margin-top: 2px !important;
  line-height: 1.3 !important;
}

body.atelier #workbench .conversation-panel-tools {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.atelier #workbench .work-status {
  font-size: 10.5px !important;
  color: var(--ink-4) !important;
  letter-spacing: .01em !important;
}

body.atelier #workbench .new-chat-button {
  height: 26px !important;
  min-height: 0 !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  color: var(--ink-3) !important;
  background: rgba(255, 255, 255, .45) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85) !important;
  border: 0 !important;
}

/* ---------- 对话区 ---------- */
body.atelier #workbench .chat-thread {
  padding: 22px 20px 8px !important;
  gap: 18px !important;
  border: 0 !important;
  background: none !important;
}

body.atelier #workbench .chat-thread {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
body.atelier #workbench .chat-thread:has(article:nth-of-type(3)) {
  justify-content: flex-start !important;
}

body.atelier #workbench .chat-thread .chat-message.from-ai p {
  font-size: 13px !important;
  line-height: 1.75 !important;
  color: var(--ink-2) !important;
  letter-spacing: -.003em !important;
  max-width: 52ch;
}

body.atelier #workbench .chat-message.from-ai > span {
  font-size: 10.5px !important;
  color: var(--ink-4) !important;
  letter-spacing: .02em !important;
  margin-bottom: 6px !important;
  display: block;
}

/* 「先告诉我你想写什么」卡片 → 设计稿是一段话 + 一排 chip，不是卡片 */
body.atelier #workbench .chat-action-card {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.atelier #workbench .chat-action-card strong {
  font-family: var(--serif) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
  color: var(--ink-1) !important;
  display: block;
  margin-bottom: 4px;
}
body.atelier #workbench .chat-action-card p {
  font-size: 13px !important;
  line-height: 1.75 !important;
  color: var(--ink-2) !important;
  max-width: 52ch;
}

/* 方向 chip */
body.atelier #workbench .chat-choice-list,
body.atelier #workbench .workbench-stage-choices {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 13px !important;
  height: auto !important;
}
body.atelier #workbench .chat-choice-list button,
body.atelier #workbench .chat-choice-list .chip,
body.atelier #workbench .workbench-stage-choices button {
  height: 27px !important;
  min-height: 0 !important;
  padding: 0 11px !important;
  border-radius: var(--pd-r-chip) !important;
  font-size: 11.5px !important;
  color: var(--ink-2) !important;
  background: rgba(255, 255, 255, .5) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9) !important;
  border: 0 !important;
}

/* ---------- 输入区 ---------- */
body.atelier #workbench .composer-shell {
  margin: 0 14px 14px !important;
  padding: 11px 12px 9px !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 6px 20px -14px rgba(10, 40, 26, .4) !important;
  border: 0 !important;
  backdrop-filter: none !important;
}
body.atelier #workbench .composer-shell:focus-within {
  box-shadow: inset 0 0 0 1px rgba(166, 220, 193, .95), 0 0 0 3px rgba(20, 104, 74, .08) !important;
}

body.atelier #workbench .composer-shell > label {
  font-size: 10px !important;
  color: var(--ink-4) !important;
  letter-spacing: .02em !important;
  margin-bottom: 4px !important;
  display: block !important;
}

body.atelier #workbench #workbench-topic {
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: var(--ink-1) !important;
  min-height: 34px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.atelier #workbench .composer-actions {
  margin-top: 5px !important;
  gap: 7px !important;
  align-items: center !important;
}

body.atelier #workbench .composer-text-action {
  height: 26px !important;
  min-height: 0 !important;
  padding: 0 9px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  color: var(--g-700) !important;
  background: rgba(201, 233, 218, .5) !important;
  box-shadow: inset 0 0 0 1px rgba(201, 233, 218, .9) !important;
  border: 0 !important;
}

body.atelier #workbench .composer-hint {
  font-size: 10px !important;
  color: var(--ink-4) !important;
  letter-spacing: .02em !important;
}

body.atelier #workbench .composer-send {
  width: 28px !important;
  height: 28px !important;
  min-height: 0 !important;
  border-radius: 8px !important;
  display: grid !important;
  place-items: center !important;
  color: #fff !important;
  background: linear-gradient(158deg, #1F8560, #0D4A2E) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 3px 8px -3px rgba(15, 81, 50, .6) !important;
  border: 0 !important;
}

/* ---------- 产物栏头 ---------- */
body.atelier #workbench .workbench-stage-head {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 13px 15px !important;
  border-bottom: 1px solid var(--pd-hair-2) !important;
  background: none !important;
  height: auto !important;
  margin: 0 !important;
}

body.atelier #workbench #workbench-stage-kicker {
  font-family: var(--sans) !important;
  font-size: 9.5px !important;
  color: var(--ink-4) !important;
  letter-spacing: .09em !important;
  display: block !important;
  line-height: 1.2 !important;
}

body.atelier #workbench #workbench-stage-title {
  font-family: var(--serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
  margin: 3px 0 0 !important;
  line-height: 1.2 !important;
  color: var(--ink-1) !important;
}

body.atelier #workbench #workbench-stage-next {
  height: 28px !important;
  min-height: 0 !important;
  padding: 0 11px !important;
  border-radius: 7px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: linear-gradient(158deg, #1F8560, #0D4A2E) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 10px -5px rgba(15, 81, 50, .6) !important;
  border: 0 !important;
  margin-left: auto !important;
}

/* 产物栏内部各块的内边距（因为面板本身 padding:0） */
body.atelier #workbench .article-canvas-head {
  padding: 15px 15px 12px !important;
  border-bottom: 1px solid var(--pd-hair-2) !important;
  margin: 0 !important;
  gap: 10px !important;
}
body.atelier #workbench #result-title {
  font-family: var(--serif) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
body.atelier #workbench #article-save-state,
body.atelier #workbench .article-canvas-head p {
  font-size: 11.5px !important;
  color: var(--ink-4) !important;
  line-height: 1.7 !important;
  margin: 4px 0 0 !important;
}
body.atelier #workbench .canvas-actions .icon-action {
  width: 26px !important;
  height: 26px !important;
  min-height: 0 !important;
  border-radius: 7px !important;
}
body.atelier #workbench .version-strip {
  padding: 8px 15px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--pd-hair-2) !important;
  background: none !important;
  font-size: 10.5px !important;
  color: var(--ink-4) !important;
  letter-spacing: .01em !important;
}
body.atelier #workbench #studio-stage-output {
  flex: 1 !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding: 0 !important;
}
body.atelier #workbench .workbench-stage-choices {
  padding: 0 15px 12px !important;
}
body.atelier #workbench .article-canvas-foot {
  padding: 10px 15px !important;
  margin: 0 !important;
  border-top: 1px solid var(--pd-hair-2) !important;
  background: none !important;
  font-size: 10.5px !important;
  color: var(--ink-4) !important;
  letter-spacing: .01em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* ---------- 空态：设计稿是「图标 + 标题 + 说明 + 三条骨架」居中 ---------- */
body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) #studio-stage-output {
  display: none !important;
}
body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) .article-canvas-head {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 26px 30px !important;
  border-bottom: 0 !important;
  /* workbench-v2.css 把 head 锁在 640，空态要让它铺满整栏，
     否则图标会偏在内侧不在栏心 */
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) .article-canvas-head > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  /* notion-workspace.css:98 给了 flex:1，在 column 方向就是「吃掉整个高度」，
     结果内容全贴在 head 顶部，justify-content:center 形同失效。
     这里必须把它压回 content 高度，居中才有空间可用。 */
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* 图标 */
body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) #result-title::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, .6);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%2314684A' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h10M4 18h7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
}

body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) #result-title {
  font-size: 13.5px !important;
  letter-spacing: -.014em !important;
  text-align: center !important;
}
body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) #article-save-state,
body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) .article-canvas-head > div:first-child > p {
  max-width: 216px;
  margin: 6px auto 0 !important;
  font-size: 11.5px !important;
  line-height: 1.75 !important;
  text-align: center !important;
}

/* 三条骨架 */
body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) .article-canvas-head > div:first-child::after {
  content: "";
  display: block;
  width: 170px;
  height: 30px;
  margin: 16px auto 0;
  background-image:
    linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000);
  background-size: 100% 6px, 82% 6px, 58% 6px;
  background-position: center 0, center 12px, center 24px;
  background-repeat: no-repeat;
  border-radius: 3px;
  opacity: .055;
  background-color: transparent;
  /* 用 --ink-1 的实色做遮罩效果 */
  -webkit-mask-image: none;
}

body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) .version-strip,
body.atelier #workbench #workbench-result:not(:has(#studio-stage-output > *)) .canvas-actions {
  display: none !important;
}

/* =========================================================
   05 技能页（小红书 / 贴图号 / 发布前复核）
   ---------------------------------------------------------
   线上是 384 / 720，中间 34px 空隙，左边表单被压得只剩 336 可用。
   收到 16px 间距，左栏 360，右栏吃满剩余。
   ========================================================= */
body.atelier #xiaohongshu .skill-shell,
body.atelier #tie-tu .skill-shell,
body.atelier #hit-detector .skill-shell {
  display: grid !important;
  grid-template-columns: clamp(340px, 27%, 460px) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  padding: 0 !important;
  margin-top: 6px !important;
}

body.atelier #xiaohongshu .skill-form-col,
body.atelier #tie-tu .skill-form-col,
body.atelier #hit-detector .skill-form-col {
  padding: 18px 16px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  min-height: 0 !important;
}

body.atelier #xiaohongshu .skill-output-col,
body.atelier #tie-tu .skill-output-col,
body.atelier #hit-detector .skill-output-col {
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  min-height: 520px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 技能页空态：图标 + 标题 + 说明，居中 */
body.atelier .skill-empty {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 40px 32px !important;
  gap: 8px !important;
  border: 0 !important;
  background: none !important;
}
body.atelier .skill-empty h2 {
  font-size: 14px !important;
  letter-spacing: -.014em !important;
  margin: 0 !important;
}
body.atelier .skill-empty p {
  font-size: 11.5px !important;
  line-height: 1.75 !important;
  color: var(--ink-4) !important;
  max-width: 320px !important;
  margin: 0 !important;
}

/* 左栏表单控件统一 */
body.atelier .skill-form label {
  font-size: 10.5px !important;
  color: var(--ink-3) !important;
  letter-spacing: .01em !important;
  margin-bottom: 5px !important;
  display: block !important;
}
body.atelier .skill-form textarea,
body.atelier .skill-form input,
body.atelier .entry-form input {
  font-size: 12.5px !important;
  line-height: 1.65 !important;
  border-radius: 9px !important;
  border: 1px solid rgba(15, 45, 32, .1) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: none !important;
}
body.atelier .skill-form textarea:focus,
body.atelier .skill-form input:focus {
  border-color: rgba(20, 104, 74, .45) !important;
  box-shadow: 0 0 0 3px rgba(20, 104, 74, .09) !important;
}
body.atelier .skill-form .primary-action,
body.atelier .skill-form .skill-primary,
body.atelier .entry-form .primary-action {
  height: 38px !important;
  min-height: 0 !important;
  border-radius: 9px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: linear-gradient(158deg, #1F8560, #0D4A2E) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 10px -5px rgba(15, 81, 50, .55) !important;
  border: 0 !important;
}
body.atelier .skill-form .secondary-action {
  height: 34px !important;
  min-height: 0 !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  color: var(--g-700) !important;
  background: rgba(201, 233, 218, .55) !important;
  box-shadow: inset 0 0 0 1px rgba(166, 220, 193, .7) !important;
  border: 0 !important;
}

/* 「表单模式」折叠条 */
body.atelier .creator-form-mode summary {
  font-size: 11px !important;
  color: var(--ink-3) !important;
  padding: 8px 0 !important;
  letter-spacing: .01em !important;
}

/* =========================================================
   06 诊断页
   ========================================================= */
body.atelier #diagnose .diagnose-shell {
  display: grid !important;
  grid-template-columns: clamp(380px, 28%, 500px) minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  padding: 20px 0 0 !important;
}

body.atelier #diagnose .v3-hero-l {
  padding: 22px 20px !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
}
body.atelier #diagnose .v3-hero-l h1 {
  font-size: 26px !important;
  line-height: 1.2 !important;
  letter-spacing: -.03em !important;
  margin: 0 0 8px !important;
}
body.atelier #diagnose .v3-hero-l .lede {
  font-size: 12.5px !important;
  line-height: 1.7 !important;
  color: var(--ink-3) !important;
  margin: 0 0 16px !important;
}
body.atelier #diagnose .v3-hero-r {
  padding: 0 !important;
}
body.atelier #diagnose .v3-hero-r .frame {
  border-radius: var(--pd-r-panel) !important;
}

/* =========================================================
   07 早安祝福
   ========================================================= */
body.atelier #morning-generator .morning-intro {
  padding: 20px 0 0 !important;
}
body.atelier #morning-generator .morning-intro h1 {
  font-size: 26px !important;
  letter-spacing: -.03em !important;
  line-height: 1.16 !important;
  margin: 0 0 6px !important;
}
body.atelier #morning-generator .morning-intro > p {
  font-size: 12.5px !important;
  color: var(--ink-3) !important;
  margin: 0 0 16px !important;
}
body.atelier #morning-generator .morning-intro .skill-form {
  max-width: 720px !important;
}

/* =========================================================
   08 首页 —— 木块比例
   ---------------------------------------------------------
   线上内容列只有 946px（左右各空 109px），主区 630 : 侧栏 300 = 2.1 : 1，
   而在 1120 的列宽下，主区应该吃到 780 左右。
   扩大之后 hero 宽 740，33px 的标题一行放得下（原来 630 宽只能折两行）。
   ========================================================= */
body.atelier #home.home-v2 {
  padding-top: 20px !important;
}

body.atelier #home .hv-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 26%, 440px) !important;
  gap: 16px !important;
  align-items: start !important;
  padding: 0 !important;
}

body.atelier #home .hv-main {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

body.atelier #home .hv-hero {
  padding: 24px 26px 22px !important;
}

body.atelier #home .hv-hero h1 {
  font-size: 32px !important;
  line-height: 1.24 !important;
  letter-spacing: -.03em !important;
  margin: 8px 0 10px !important;
}

body.atelier #home .hv-date {
  font-size: 10.5px !important;
  color: var(--ink-4) !important;
  letter-spacing: .04em !important;
  margin: 0 0 10px !important;
}

body.atelier #home .hv-lede {
  font-size: 12.5px !important;
  color: var(--ink-3) !important;
  margin: 0 0 18px !important;
}

body.atelier #home .hv-compose {
  padding: 12px 13px 10px !important;
  border-radius: 13px !important;
}
body.atelier #home .hv-compose textarea {
  font-size: 13px !important;
}
body.atelier #home .hv-go {
  height: 32px !important;
  min-height: 0 !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

body.atelier #home .hv-tools {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
body.atelier #home .hv-tool {
  padding: 15px 15px 14px !important;
  min-height: 0 !important;
}
body.atelier #home .hv-tool b {
  font-family: var(--serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
}
body.atelier #home .hv-tool p {
  font-size: 11.5px !important;
  line-height: 1.6 !important;
  color: var(--ink-3) !important;
  margin: 4px 0 0 !important;
}
body.atelier #home .hv-tool .meta {
  font-size: 10px !important;
  color: var(--ink-4) !important;
  margin-top: 8px !important;
}

body.atelier #home .hv-recent {
  padding: 16px 18px !important;
}
body.atelier #home .hv-sec-head h3 {
  font-family: var(--serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
}

body.atelier #home .hv-rail {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
body.atelier #home .hv-card {
  padding: 15px 16px !important;
}
body.atelier #home .hv-card h4 {
  font-family: var(--serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  margin: 0 0 8px !important;
}

/* =========================================================
   09 侧栏 —— 积分卡 + 用户行（设计稿底部那一块）
   ========================================================= */
body.atelier .app-shell > .v3-topbar,
body.atelier .v3-topbar.shell-nav {
  border-radius: 20px !important;
}

body.atelier .v3-topbar > .right,
body.atelier .v3-topbar.shell-nav > .right {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 12px 4px 2px !important;
}

body.atelier .v3-topbar > .right .stat,
body.atelier .v3-topbar.shell-nav > .right .stat {
  display: block !important;
  padding: 11px 12px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .55) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75) !important;
  font-size: 10.5px !important;
  color: var(--ink-3) !important;
}

body.atelier .v3-topbar > .right .stat b,
body.atelier .v3-topbar.shell-nav > .right .stat b {
  display: block !important;
  font-family: var(--sans) !important;
  font-size: 16.5px !important;
  font-weight: 600 !important;
  letter-spacing: -.022em !important;
  color: var(--ink-1) !important;
  margin-top: 4px !important;
  font-variant-numeric: tabular-nums;
}

body.atelier .v3-topbar > .right .avatar,
body.atelier .v3-topbar.shell-nav > .right .avatar {
  width: 28px !important;
  height: 28px !important;
  flex: none !important;
}

/* =========================================================
   10 小屏降级
   ========================================================= */
@media (max-width: 1180px) {
  body.atelier #workbench.workbench-page .conversation-workbench-layout {
    grid-template-columns: minmax(0, 1fr) 340px !important;
  }
  body.atelier #home .hv-body {
    grid-template-columns: minmax(0, 1fr) 280px !important;
  }
}

@media (max-width: 1020px) {
  body.atelier #home .hv-body,
  body.atelier #diagnose .diagnose-shell,
  body.atelier #xiaohongshu .skill-shell,
  body.atelier #tie-tu .skill-shell,
  body.atelier #hit-detector .skill-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.atelier #workbench.workbench-page .conversation-workbench-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(320px, 1fr) minmax(320px, 1fr) !important;
    height: auto !important;
  }
  body.atelier #workbench.workbench-page #workbench-result {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  body.atelier #home .hv-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 侧栏积分卡：小标签用黑体，数字用 16.5px 半粗，对齐设计稿 */
body.atelier .v3-topbar > .right .stat .pd-pl,
body.atelier .v3-topbar.shell-nav > .right .stat .pd-pl {
  display: block;
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: .02em;
  font-weight: 400;
  margin-bottom: 2px;
}

/* ---------- 诊断页 / 早安祝福 也补上面包屑 ---------- */
body.atelier #diagnose .v3-hero-l::before,
body.atelier #morning-generator .morning-intro::before {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-4);
  margin-bottom: 9px;
  font-weight: 400;
}
body.atelier #diagnose .v3-hero-l::before { content: "分析  /  账号诊断"; }
body.atelier #morning-generator .morning-intro::before { content: "内容创作  /  早安祝福"; }

/* ---------- 技能页空态：补图标，和产物栏空态同构 ---------- */
body.atelier .skill-empty::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, .6);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%2314684A' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 9h10M7 13h7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
}

/* 技能页空态标题用宋体，和全站标题一致 */
body.atelier .skill-empty h2 {
  font-family: var(--serif) !important;
}

/* =========================================================
   11 技能页两栏的边界
   ---------------------------------------------------------
   白色描边（rgba(255,255,255,.72)）在浅色背景上等于隐形，
   两栏会读成一整块白。这里换成墨绿发丝边，边界才立得住。
   ========================================================= */
body.atelier #xiaohongshu .skill-form-col,
body.atelier #xiaohongshu .skill-output-col,
body.atelier #tie-tu .skill-form-col,
body.atelier #tie-tu .skill-output-col,
body.atelier #hit-detector .skill-form-col,
body.atelier #hit-detector .skill-output-col {
  border-color: rgba(15, 45, 32, .075) !important;
  border-left-width: 1px !important;
  border-top-width: 1px !important;
}

/* 诊断页左卡同理 */
body.atelier #diagnose .v3-hero-l {
  border-color: rgba(15, 45, 32, .075) !important;
}

/* =========================================================
   11b 技能页左栏：不再拉满到和右栏等高
   ---------------------------------------------------------
   原本左栏被拉到 683 高，而内容只有 400，
   底部那句「填写后，右侧会按顺序生成可编辑的产出」被 margin-top:auto
   顶到最下面，中间空出两百多像素 —— 这是「模块比例不对」的直接来源。
   现在左栏只占内容高度，提示行紧跟按钮，右栏保持满高。
   ========================================================= */
body.atelier #xiaohongshu .skill-form-col,
body.atelier #tie-tu .skill-form-col,
body.atelier #hit-detector .skill-form-col {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: start !important;
  display: flex !important;
  flex-direction: column !important;
  /* 关键：原来这套卡片是 justify-content:space-between，
     高度一收成内容高，剩余空间就被摊成 120px 的大缝，
     「写作简报」和输入框之间凭空多出一块空白 */
  justify-content: flex-start !important;
  gap: 0 !important;
}
body.atelier #xiaohongshu .skill-form-col::after,
body.atelier #tie-tu .skill-form-col::after,
body.atelier #hit-detector .skill-form-col::after {
  margin-top: 16px !important;
  padding-top: 0 !important;
}
body.atelier #xiaohongshu .skill-form-col::before,
body.atelier #tie-tu .skill-form-col::before,
body.atelier #hit-detector .skill-form-col::before {
  margin-bottom: 12px !important;
}

/* =========================================================
   12 技能页：左表单「平」、右产物「透」
   ---------------------------------------------------------
   两栏都上玻璃，结果两栏一样白，中间那条缝读不出来。
   设计稿的层级逻辑是：容器可以透，操作区必须实。
   所以左表单压成磨砂平片，右产物保留玻璃。
   ========================================================= */
body.atelier #xiaohongshu .skill-form-col,
body.atelier #tie-tu .skill-form-col,
body.atelier #hit-detector .skill-form-col {
  background-color: rgba(255, 255, 255, .58) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  border-color: rgba(15, 45, 32, .085) !important;
}

body.atelier #xiaohongshu .skill-output-col,
body.atelier #tie-tu .skill-output-col,
body.atelier #hit-detector .skill-output-col {
  border-color: rgba(15, 45, 32, .07) !important;
}

/* 主按钮：设计稿是 34px 一个薄片，不是大绿块 */
body.atelier .skill-form .primary-action,
body.atelier .entry-form .primary-action,
body.atelier #xiaohongshu .skill-form .primary-action,
body.atelier #tie-tu .skill-form .primary-action,
body.atelier #hit-detector .skill-form .primary-action {
  height: 34px !important;
  max-height: 34px !important;
  min-height: 0 !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}
body.atelier .skill-form .secondary-action {
  height: 32px !important;
  max-height: 32px !important;
}

/* =========================================================
   13 首页微调：hero 与工具卡的体量关系
   ========================================================= */
body.atelier #home .hv-hero {
  padding: 26px 28px 24px !important;
}
body.atelier #home .hv-tool {
  min-height: 132px !important;
}
body.atelier #home .hv-recent {
  padding: 18px 20px !important;
}

/* =========================================================
   14 AI 书架（独立页）
   ========================================================= */
body.atelier #library-main.library-main {
  padding: 22px var(--pd-pad) 0 !important;
}
body.atelier #library-main #library-shelf,
body.atelier #library-main .library-heading {
  width: 100% !important;
  max-width: var(--pd-col) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.atelier #library-main .library-heading h1 {
  font-size: 26px !important;
  letter-spacing: -.03em !important;
  line-height: 1.16 !important;
}
body.atelier #library-main .library-heading p {
  font-size: 12.5px !important;
  color: var(--ink-3) !important;
}

/* 两栏之间必须有可读的缝：靠「白度差 + 一条投影」，不靠描边 */
body.atelier #xiaohongshu .skill-form-col,
body.atelier #tie-tu .skill-form-col,
body.atelier #hit-detector .skill-form-col {
  background-color: rgba(255, 255, 255, .62) !important;
  border-color: rgba(15, 45, 32, .11) !important;
}

body.atelier #xiaohongshu .skill-output-col,
body.atelier #tie-tu .skill-output-col,
body.atelier #hit-detector .skill-output-col {
  background-color: rgba(255, 255, 255, .86) !important;
  border-color: rgba(15, 45, 32, .11) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 2px 4px rgba(12, 45, 30, .035),
    0 20px 44px -30px rgba(12, 45, 30, .3) !important;
}

body.atelier #diagnose .v3-hero-l {
  border-color: rgba(15, 45, 32, .11) !important;
}

/* =========================================================
   15 宽屏字号抬一档
   ---------------------------------------------------------
   设计稿是 1440 口径（26px 标题 / 13px 正文）。
   在 1920 以上的窗口里，如果字号原样不动，视觉上会显得「缩了」。
   这里不整体 zoom（会打乱 100dvh 和固定侧栏），
   只把人真正在读的那十几处抬一档，其余保持不变。
   ========================================================= */
@media (min-width: 1700px) {
  body.atelier { --pd-rail: clamp(420px, 32%, 820px); }

  body.atelier #workbench .studio-heading h1,
  body.atelier #xiaohongshu .tool-heading h1,
  body.atelier #tie-tu .tool-heading h1,
  body.atelier #hit-detector .tool-heading h1,
  body.atelier #diagnose .v3-hero-l h1,
  body.atelier #morning-generator .morning-intro h1,
  body.atelier #library-main .library-heading h1 {
    font-size: 32px !important;
  }

  body.atelier #workbench .studio-heading p,
  body.atelier #xiaohongshu .tool-heading p,
  body.atelier #tie-tu .tool-heading p,
  body.atelier #hit-detector .tool-heading p {
    font-size: 14px !important;
  }

  body.atelier #workbench .studio-heading::before,
  body.atelier #xiaohongshu .tool-heading::before,
  body.atelier #tie-tu .tool-heading::before,
  body.atelier #hit-detector .tool-heading::before,
  body.atelier #diagnose .v3-hero-l::before,
  body.atelier #morning-generator .morning-intro::before,
  body.atelier #home .hv-body::before {
    font-size: 12px !important;
  }

  body.atelier #workbench #workbench-stage-nav .pd-step-t { font-size: 13px !important; }
  body.atelier #workbench #workbench-stage-nav .pd-step-d { width: 20px; height: 20px; font-size: 10.5px; }
  body.atelier #workbench .pd-phline .pd-k { font-size: 10.5px !important; }
  body.atelier #workbench .pd-phline .pd-v { font-size: 13px !important; }

  body.atelier #workbench .conversation-identity strong { font-size: 14.5px !important; }
  body.atelier #workbench .conversation-identity small { font-size: 12px !important; }
  body.atelier #workbench #workbench-stage-title { font-size: 14.5px !important; }
  body.atelier #workbench #workbench-stage-kicker { font-size: 10.5px !important; }
  body.atelier #workbench .chat-thread .chat-message.from-ai p { font-size: 14.5px !important; }
  body.atelier #workbench .chat-action-card strong { font-size: 15px !important; }
  body.atelier #workbench .chat-action-card p { font-size: 14.5px !important; }
  body.atelier #workbench .chat-choice-list button { font-size: 12.5px !important; }
  body.atelier #workbench #workbench-topic { font-size: 13.5px !important; }
  body.atelier #workbench .composer-shell > label { font-size: 11px !important; }
  body.atelier #workbench #result-title { font-size: 16px !important; }
  body.atelier #workbench #article-save-state,
  body.atelier #workbench .article-canvas-head p { font-size: 12.5px !important; }
  body.atelier #workbench .workbench-stage-head { padding: 15px 18px !important; }
  body.atelier #workbench .article-canvas-head { padding: 17px 18px 13px !important; }

  body.atelier .v3-topbar .app-tabs a,
  body.atelier .v3-topbar .app-tabs a span { font-size: 14.5px !important; }
  body.atelier .v3-topbar .brand .name { font-size: 14.5px !important; }
  body.atelier .nav-group-label { font-size: 11px !important; }
  body.atelier .v3-topbar .app-tabs a { height: 42px !important; }

  body.atelier #home .hv-hero h1 { font-size: 38px !important; }
  body.atelier #home .hv-lede { font-size: 13.5px !important; }
  body.atelier #home .hv-tool b { font-size: 14.5px !important; }
  body.atelier #home .hv-tool p { font-size: 12.5px !important; }
  body.atelier #home .hv-tool .meta { font-size: 11px !important; }
  body.atelier #home .hv-sec-head h3 { font-size: 14.5px !important; }
  body.atelier #home .hv-card h4 { font-size: 14px !important; }
  body.atelier #home .hv-compose textarea { font-size: 14px !important; }

  body.atelier .skill-empty h2 { font-size: 15.5px !important; }
  body.atelier .skill-empty p { font-size: 12.5px !important; }
  body.atelier .skill-form label { font-size: 11.5px !important; }
  body.atelier .skill-form textarea,
  body.atelier .skill-form input { font-size: 13.5px !important; }
}

/* =========================================================
   16 对话式表单：按钮不再占满整行
   ---------------------------------------------------------
   小红书 / 贴图号 / 发布前复核 / 账号诊断 / 早安祝福 这五个页面
   共用同一个 creator-conversation 表单。线上把「发送」和「新对话」
   各拉成一条 100% 宽的大色块，两块叠起来比整个表单还重，
   设计稿里它们是并排的两个薄片。
   这里把表单改成两列 auto 网格：文字区横跨两列，
   两个按钮落在同一行、宽度只跟文字走。
   ========================================================= */
body.atelier :is(#xiaohongshu, #tie-tu, #hit-detector, #diagnose, #morning-generator)
  :is(.skill-form, .entry-form).creator-conversation {
  display: grid !important;
  /* 第一列跟着「发送」的宽度，第二列吃掉剩余 —— 两列都用 max-content
     时，横跨两行的 label 会把自己的 max-content 压成 0，整张表单只剩 260 宽 */
  grid-template-columns: max-content minmax(0, 1fr) !important;
  justify-content: start !important;
  align-content: start !important;
  align-items: center !important;
  gap: 9px 8px !important;
}

/* 文字区 / 历史 / 产出 / 状态行一律横跨两列 */
body.atelier :is(#xiaohongshu, #tie-tu, #hit-detector, #diagnose, #morning-generator)
  .creator-conversation > :is(label, textarea, input, select,
    .creator-chat-history, .creator-chat-output, progress, p[role="status"]) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 空的历史 / 产出占位不占位 —— 否则标题和输入框之间会空出五六十像素 */
body.atelier :is(#xiaohongshu, #tie-tu, #hit-detector, #diagnose, #morning-generator)
  .creator-conversation > :is(.creator-chat-history, .creator-chat-output):empty {
  display: none !important;
}

/* 表单自己不再画一层卡片 —— 它已经在 .skill-form-col 这张卡里了，
   两层白框套在一起是「廉价感」的主要来源之一 */
body.atelier :is(#xiaohongshu, #tie-tu, #hit-detector) .skill-form-col .skill-form.creator-conversation,
body.atelier #diagnose .skill-form.creator-conversation {
  /* style.css:402 与 taste-chatgpt.css:82 给了 position:sticky; top:22/86px，
     在网格里会把整个表单往下推 50 多像素，变成「标题和输入框之间一条大缝」 */
  position: static !important;
  top: auto !important;
  inset: auto !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 输入控件一律吃满所在网格列 —— 早安页的 textarea 原本只有 200px 宽 */
body.atelier :is(#xiaohongshu, #tie-tu, #hit-detector, #diagnose, #morning-generator)
  .creator-conversation :is(textarea, input, select) {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 按钮只吃自己的文字宽度 */
body.atelier :is(#xiaohongshu, #tie-tu, #hit-detector, #diagnose, #morning-generator)
  .creator-conversation > :is(.primary-action, .secondary-action) {
  width: auto !important;
  min-width: 0 !important;
  justify-self: start !important;
  padding: 0 18px !important;
}

/* 隐藏态必须真的隐藏：上面给了 display 级覆盖，hidden 属性会失效 */
body.atelier :is(.creator-conversation, .skill-form, .entry-form) > [hidden] {
  display: none !important;
}

/* =========================================================
   17 早安祝福：给对话栏配一块产物位
   ---------------------------------------------------------
   这一页只有一个对话卡，右半栏整块是空的 —— 七个 tab 里最不成立的一页。
   改成「左对话 / 右产物」两栏，和其它工具页同一套语法，
   右栏在有产出前是一张带图标和说明的空态卡，不是白板。
   ========================================================= */
body.atelier #morning-generator .morning-intro {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 30%, 520px) !important;
  padding: 0 !important;
  column-gap: 16px !important;
  row-gap: 0 !important;
  align-items: start !important;
}
body.atelier #morning-generator .morning-intro > .kicker,
body.atelier #morning-generator .morning-intro > h1,
body.atelier #morning-generator .morning-intro > p {
  grid-column: 1 / -1 !important;
}

body.atelier #morning-generator .morning-intro > .skill-form {
  grid-column: 1 !important;
  align-self: stretch !important;
  margin: 12px 0 0 !important;
  /* style.css 给 .skill-form 压了 max-width:720，
     于是列宽 764 而卡片只画到 720，右边多出一条 60px 的空气缝 */
  width: 100% !important;
  max-width: none !important;
  padding: 18px 18px 16px !important;
  border: 1px solid rgba(15, 45, 32, .09) !important;
  border-radius: var(--pd-r-panel) !important;
  background-color: rgba(255, 255, 255, .62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

body.atelier #morning-generator .pd-mrail {
  grid-column: 2 !important;
  align-self: stretch !important;
  margin: 12px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  min-height: 232px !important;
  padding: 26px 24px !important;
  border: 1px solid rgba(15, 45, 32, .11) !important;
  border-radius: var(--pd-r-panel) !important;
  background-color: rgba(255, 255, 255, .86) !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 2px 4px rgba(12, 45, 30, .03),
    0 20px 44px -32px rgba(12, 45, 30, .28) !important;
  text-align: center !important;
}

/* 有真实产出时撤卡：hidden 要真的隐藏，否则会被上面的 display:flex 盖掉 */
body.atelier #morning-generator .pd-mrail[hidden] {
  display: none !important;
}

body.atelier #morning-generator .pd-mrail-ico {
  display: block !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 0 14px !important;
  border-radius: 12px !important;
  background-color: rgba(255, 255, 255, .7) !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='%2314684A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M18.4 5.6L17 7M7 17l-1.4 1.4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9) !important;
}

body.atelier #morning-generator .pd-mrail strong {
  font-family: var(--serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -.012em !important;
  color: var(--ink-1) !important;
}
body.atelier #morning-generator .pd-mrail p {
  max-width: 230px !important;
  margin: 7px auto 0 !important;
  font-size: 11.5px !important;
  line-height: 1.75 !important;
  color: var(--ink-4) !important;
}
body.atelier #morning-generator .pd-mrail-skel {
  width: 170px !important;
  height: 30px !important;
  margin: 16px auto 0 !important;
  background-image:
    linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000) !important;
  background-size: 100% 6px, 82% 6px, 58% 6px !important;
  background-position: center 0, center 12px, center 24px !important;
  background-repeat: no-repeat !important;
  border-radius: 3px !important;
  opacity: .055 !important;
}


/* --- liquid-glass.css --- */
/*
 * liquid-glass.css — 液态玻璃材质层
 * ────────────────────────────────────────────────────────────────
 * 定位：只换「材质」，不动布局、不动字号、不动业务模块结构。
 * 加载顺序：theme-glass.css 之后、type-system.css 之前（字体层永远最后）。
 * 回滚：删掉 HTML 里那一行 <link href="/static/liquid-glass.css"> 即可。
 *
 * 为什么需要这一层：
 *   原 theme-glass.css 的玻璃是「半透明白 + 大模糊 + 亮白描边」，
 *   但没有斜向高光，边框又太白（.82），结果读起来像塑料卡片——
 *   这就是「太 AI」的第二层原因：材质廉价，而不是配色问题。
 *
 * 配方三件套（缺一不可）：
 *   ① background-image 里的斜向高光
 *      —— 高光必须走 background-image，绝不能挂 ::after。
 *         绝对定位的伪元素画在文字之上，会把正文洗灰（第一版就栽在这）。
 *   ② background-color 打底
 *      —— 白度不够，模糊再重也是毛玻璃糊；
 *         白度太高，又变成不透明卡片。.73 是实测最像真玻璃的值。
 *   ③ backdrop-filter: blur(24px) saturate(165%)
 *      —— 24px 而不是 34/54/64px。过重的模糊会吃掉背景色场，
 *         玻璃就变成灰色块。saturate 165% 才是「玻璃透色」的关键。
 *
 * 分级用材（重要）：
 *   不是所有卡片都该是玻璃。全站玻璃 = 全站没有重点 = 回到「太 AI」。
 *   A 级 真玻璃：侧栏、页面主面片、弹窗 —— 有厚度、有折射
 *   B 级 磨砂片：小卡片、输入框、列表 —— 无模糊，只有白度和发丝边
 *   背景必须有色差，玻璃才有东西可折射，所以 00 节先加强环境光。
 * ────────────────────────────────────────────────────────────────
 */

/* =========================================================
   00 环境光 —— 玻璃需要有东西可折射
   ---------------------------------------------------------
   原来的色场太淡（alpha .26 级别），玻璃后面几乎是纯白，
   模糊出来还是纯白，看起来就是「没效果」。
   这里把色团浓度提上去，并且把色团挪到面板实际压住的位置。
   ========================================================= */
body.atelier {
  background:
    radial-gradient(760px 600px at 4% -14%, rgba(150, 214, 182, .52) 0%, rgba(150, 214, 182, 0) 62%),
    radial-gradient(720px 600px at 103% 0%, rgba(246, 226, 202, .56) 0%, rgba(246, 226, 202, 0) 60%),
    radial-gradient(880px 660px at 72% 110%, rgba(178, 219, 190, .46) 0%, rgba(178, 219, 190, 0) 64%),
    radial-gradient(640px 460px at 36% 42%, rgba(203, 232, 216, .22) 0%, rgba(203, 232, 216, 0) 72%),
    linear-gradient(178deg, #FAFBF7 0%, #F0F3EC 52%, #E8EEE6 100%) !important;
  background-attachment: fixed !important;
}

/* =========================================================
   01 材质令牌
   ========================================================= */
body.atelier {
  /* A 级：真玻璃 */
  --lg-fill: rgba(255, 255, 255, .73);
  /* 两层高光：
     ① 左上角光晕 —— 「液态」的关键特征。真玻璃被环境光打到时，
        靠近光源的那只角会整片提亮，而不是均匀泛白。
     ② 148° 斜向带 —— 从左上白到中段透明、右下再回一点白，
        模拟玻璃板的厚度折射。必须走 background-image。 */
  --lg-hi:
    radial-gradient(128% 92% at 6% -14%,
      rgba(255, 255, 255, .58) 0%,
      rgba(255, 255, 255, .18) 32%,
      rgba(255, 255, 255, 0) 52%),
    linear-gradient(148deg,
      rgba(255, 255, 255, .55) 0%,
      rgba(255, 255, 255, .08) 26%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0) 68%,
      rgba(255, 255, 255, .22) 100%);
  --lg-edge: rgba(255, 255, 255, .72);
  --lg-blur: blur(24px) saturate(165%);
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 1px rgba(255, 255, 255, .5),
    0 1px 1.5px rgba(12, 45, 30, .028),
    0 18px 40px -26px rgba(12, 45, 30, .26);

  /* B 级：磨砂片（不模糊，靠白度与发丝边） */
  --frost-fill: rgba(255, 255, 255, .78);
  --frost-edge: rgba(15, 45, 32, .06);
  --frost-shadow:
    0 1px 2px rgba(12, 45, 30, .032),
    0 8px 20px -18px rgba(12, 45, 30, .2);

  /* 发丝线比 theme-glass 的 .10 更轻，去掉「画框感」 */
  --hairline: rgba(15, 45, 32, .085);
  --hairline-soft: rgba(15, 45, 32, .05);
}

/* =========================================================
   02 A 级 · 真玻璃
   ---------------------------------------------------------
   每一组都写成和原文件同等特异度 + !important，
   靠「后加载」取胜，不改任何一条原有选择器的形状。
   ========================================================= */
body.atelier .app-shell > .v3-topbar,
body.atelier .v3-topbar.shell-nav,
body.atelier.market-body .market-topbar,
body.atelier .hv-hero,
body.atelier #workbench .conversation-panel,
body.atelier #workbench .article-canvas,
body.atelier #workbench #studio-details,
body.atelier .skill-page .skill-form-col,
body.atelier .skill-page .skill-output-col,
body.atelier .diagnose-page .v3-hero-l,
body.atelier .diagnose-page .v3-diag-l,
body.atelier.qihaoshou .studio-header,
body.atelier.qihaoshou .login-panel,
body.atelier .account-modal,
body.atelier .api-settings-modal {
  background-color: var(--lg-fill) !important;
  background-image: var(--lg-hi) !important;
  -webkit-backdrop-filter: var(--lg-blur) !important;
  backdrop-filter: var(--lg-blur) !important;
  border: 1px solid var(--lg-edge) !important;
  box-shadow: var(--lg-shadow) !important;
}

/* 侧栏原有的「上半截白色镜面」伪元素要撤掉，
   否则和 background-image 的斜向高光叠成两道光，反而脏 */
body.atelier .app-shell > .v3-topbar::before,
body.atelier .v3-topbar.shell-nav::before {
  content: none !important;
  display: none !important;
}

/* 导航选中态：白度降一档、靠内阴影立起来，不再用发光 */
body.atelier .v3-topbar .app-tabs a.active,
body.atelier .v3-topbar.shell-nav .app-tabs a.active {
  background: rgba(255, 255, 255, .62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 1px 2px rgba(20, 44, 32, .07) !important;
}

body.atelier .v3-topbar .app-tabs a:hover,
body.atelier .v3-topbar.shell-nav .app-tabs a:hover {
  background: rgba(255, 255, 255, .42) !important;
}

/* =========================================================
   03 B 级 · 磨砂片
   ---------------------------------------------------------
   小卡片一律不模糊。全部玻璃会让页面失去主次，
   这一层的作用只是「比背景白一点」，建立 Z 轴但不抢戏。
   ========================================================= */
body.atelier .hv-tool,
body.atelier .hv-card,
body.atelier .hv-recent,
body.atelier .hv-compose,
body.atelier .hv-chip,
body.atelier .hv-tool .ic,
body.atelier .hv-row .txt,
body.atelier #workbench .conversation-panel-head,
body.atelier #workbench .composer-shell,
body.atelier .wallet-card,
body.atelier .preview-card {
  background-color: var(--frost-fill) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid var(--frost-edge) !important;
  box-shadow: var(--frost-shadow) !important;
}

/* hover 只提白度，不加位移、不加发光 */
body.atelier .hv-tool:hover,
body.atelier .hv-card:hover,
body.atelier .hv-row:hover {
  background-color: rgba(255, 255, 255, .92) !important;
  box-shadow:
    0 1px 2px rgba(12, 45, 30, .04),
    0 12px 26px -20px rgba(12, 45, 30, .26) !important;
}

/* 输入区：内陷而不是凸起，用极淡的内阴影做出「凹槽」 */
body.atelier .hv-compose:focus-within,
body.atelier #workbench .composer-shell:focus-within {
  background-color: rgba(255, 255, 255, .96) !important;
  border-color: rgba(47, 125, 79, .34) !important;
  box-shadow:
    inset 0 1px 2px rgba(12, 45, 30, .05),
    0 0 0 3px rgba(47, 125, 79, .09) !important;
}

/* =========================================================
   04 回退：不支持 backdrop-filter 时退回实色
   ========================================================= */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.atelier .app-shell > .v3-topbar,
  body.atelier .v3-topbar.shell-nav,
  body.atelier.market-body .market-topbar,
  body.atelier .hv-hero,
  body.atelier #workbench .conversation-panel,
  body.atelier #workbench .article-canvas,
  body.atelier #workbench #studio-details,
  body.atelier .skill-page .skill-form-col,
  body.atelier .skill-page .skill-output-col,
  body.atelier .diagnose-page .v3-hero-l,
  body.atelier.qihaoshou .studio-header,
  body.atelier.qihaoshou .login-panel,
  body.atelier .account-modal,
  body.atelier .api-settings-modal {
    background-color: #FCFDFB !important;
    background-image: none !important;
  }
}

/* 系统级「降低透明度」偏好：整站回实色，可访问性兜底 */
@media (prefers-reduced-transparency: reduce) {
  body.atelier .app-shell > .v3-topbar,
  body.atelier .v3-topbar.shell-nav,
  body.atelier.market-body .market-topbar,
  body.atelier .hv-hero,
  body.atelier #workbench .conversation-panel,
  body.atelier #workbench .article-canvas,
  body.atelier #workbench #studio-details,
  body.atelier .skill-page .skill-form-col,
  body.atelier .skill-page .skill-output-col,
  body.atelier .diagnose-page .v3-hero-l,
  body.atelier.qihaoshou .studio-header,
  body.atelier.qihaoshou .login-panel,
  body.atelier .account-modal,
  body.atelier .api-settings-modal {
    background-color: #FCFDFB !important;
    background-image: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}


/* --- type-system.css --- */
/*
 * type-system.css — 字体系统 A ·「宋黑对照」
 * ────────────────────────────────────────────────────────────────
 * 分工：
 *   标题（h1 / h2 / 卡片名）  → 思源宋体，有笔锋，负责气质
 *   正文                     → 思源黑体，干净，负责可读
 *   数字与标签               → Inter + tabular-nums，负责精度
 *   代码                     → 真等宽（SF Mono / Consolas）
 *
 * 加载顺序：必须最后加载（tokens.css 定族，本文件定用法）。
 * 三个字体族在 tokens.css 里定义：--sans / --serif / --mono / --code。
 * 字体文件由 fonts.css 以 unicode-range 切片自托管，浏览器只取用到的分片。
 *
 * 注意：宋体只在 18px 以上出现。低于这个字号，宋体的笔锋会糊成一团，
 *      反而不如黑体清楚——这是本文件把 .morning-topbar h1(17px)、
 *      .shell-menu h2(18px) 排除在外的原因。
 * ────────────────────────────────────────────────────────────────
 */

/* =========================================================
   00 字体族 —— 必须在这里再声明一次
   ---------------------------------------------------------
   为什么不在 tokens.css 里定义就够了：
     · notion-workspace.css  :root{ --sans:'Segoe UI','Microsoft YaHei'; --serif: var(--sans) }
       它把「衬线」直接等于「无衬线」，这正是标题永远没笔锋的原因
     · atelier.css           :root{ --sans:"IBM Plex Sans" } + body.atelier{ --sans:... }
       元素+类选择器 (0,1,1) 的权重高于 :root (0,1,0)，order 再靠后也压不住
   本文件最后加载，且用同样高权重的选择器写一遍，才能稳定生效。
   ========================================================= */
:root,
body,
body.atelier,
body.notion-workspace,
html body {
  --sans: "UW Inter", "UW Sans SC", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "UW Serif SC", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --mono: "UW Inter", "UW Sans SC", "SF Mono", Menlo, Consolas, monospace;
  --code: "SF Mono", "JetBrains Mono", Menlo, Consolas, "UW Sans SC", monospace;
  /* 下游主题的别名变量，一并对齐，否则 atelier / market 页面还是旧字体 */
  --a-sans: var(--sans);
  --a-serif: var(--serif);
  --a-mono: var(--mono);
  --m-sans: var(--sans);
  --m-mono: var(--mono);
  --font-sans: var(--sans);
}

/* =========================================================
   01 显示级标题 → 宋体
   ---------------------------------------------------------
   选择器必须写成 html body :is(h1,h2)，权重 (0,0,3)，
   刚好压过 notion-workspace.css:13 的
     body :is(…,h1,h2,h3,h4,p,…){ font-family:var(--sans) !important }  权重 (0,0,2)
   只写 h1,h2 (0,0,1) 是压不住的，这也是弹窗里的 h2 一直是黑体的原因。
   ========================================================= */
html body :is(h1, h2),
.mod .name,
.v3-hero-l h1,
.v3-diag-l h1,
.v3-section .head h2,
.wb-intro h1,
.skill-form-col h1,
.skill-output-col h1,
.skill-empty h2,
.skill-page-head h1,
.output-head h2,
.output-empty h2,
.morning-intro h1,
.detector-hero h2,
.diagnosis-hero h1,
.hv-hero h1,
.diagnose-shell h1,
.entry-panel h1,
.conversation-workbench-head h1,
.report-hero h1,
.report-hero h2,
.auth-card .auth-copy h1 {
  font-family: var(--serif) !important;
  font-style: normal !important;
  /* 默认零字距。真正的松紧由下面 01b 按字号分档决定——
     一行 .012em 管全站是不对的，56px 的标题和 20px 的卡片名
     需要的字距根本不是同一个量级。 */
  letter-spacing: 0 !important;
}

/* =========================================================
   01b 字距按字号分档
   ---------------------------------------------------------
   实测数据（改之前的原始值）：
     .entry-panel h1        clamp(42–78px)  letter-spacing -.075em
     .v3-diag-l h1          56px            -.035em
     .wb-intro h1           48px            -.035em
     .morning-intro h1      48px            -.035em
     .detector-hero h2      44px            -.03em
     .hv-hero h1            33px            -.035em
     .v3-hero-l h1          30–32px         -.035em
   也就是说，这套设计里凡是 30px 以上的标题，原本都是负字距。
   上一版把它们统一改成 +.012em，等于把 display 级标题全部撑松，
   看起来「散」就是这个原因 —— 不是字体的问题。

   宋体在大字号下的行为和无衬线不同：笔画本身有粗细对比，
   字面又比无衬线窄，适当收紧反而更贵气；但收到 -.075em
   这种拉丁文数值就会把 CJK 的字间距压到贴死。
   所以分三档，越小的字越松，越大的字越紧。
   ========================================================= */

/* T2 · 中大标题（30–47px）：轻微收紧 */
html body :is(
  .hv-hero h1,
  .v3-hero-l h1,
  .report-hero h1,
  .report-hero h2,
  .skill-page-head h1,
  .library-heading h1,
  .detector-hero h2,
  .conversation-workbench-head h1,
  .v3-section .head h2,
  .auth-card .auth-copy h1
) {
  letter-spacing: -.018em !important;
}

/* 市场页大标题：market-v2.css 用
     body.atelier.market-body .market-v2 .market-hero h1 { font-family: inherit !important }
   权重 (0,3,2)，把标题继承回了 body 的黑体。
   必须写出同等权重才压得住，光靠 html body :is(h1,h2) 的 (0,0,3) 是不够的。 */
body.atelier.market-body .market-hero h1,
body.atelier.market-body .market-v2 .market-hero h1 {
  font-family: var(--serif) !important;
  font-style: normal !important;
  letter-spacing: -.022em !important;
}

/* T1 · 巨型 display（≥48px）：收紧到能看出「排过版」 */
html body :is(
  .v3-diag-l h1,
  .wb-intro h1,
  .morning-intro h1,
  .entry-panel h1
) {
  letter-spacing: -.032em !important;
}

/* 标题里的强调块：原本是「衬线 italic」，中文没有真 italic，斜体是浏览器合成的歪，
   放在宋体上会显得脏，这里一律拉正 */
html body :is(h1, h2) :is(em, i, span, strong, b, a) {
  font-family: inherit !important;
  font-style: normal !important;
}

/* =========================================================
   02 例外：小于 18px 的标题回到黑体
   ---------------------------------------------------------
   在线实测查出来的「小字号 h1/h2」，它们本来就不是标题级元素，
   是品牌名、栏目标签、面板小标题一类的东西，被写成了 h1/h2。
   宋体在 10–17px 会糊成一片灰，必须退回黑体。
   ========================================================= */
html body :is(
  .morning-topbar h1,
  .shell-menu h2,
  .v3-topbar h1,
  .brand h1,
  .market-rail h2,
  .studio-header h1,
  #q-studio .panel-title h2,
  #studio-details > section > h3
) {
  font-family: var(--sans) !important;
  letter-spacing: -.01em !important;
}

/* =========================================================
   03 数字：等宽数字，保证纵向对齐
   ========================================================= */
body {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   04 代码：只有这里用真等宽
   ========================================================= */
pre,
code,
kbd,
samp {
  font-family: var(--code) !important;
  font-variant-ligatures: none;
}

/* =========================================================
   05 小字标签：去掉等宽后补一点字距，避免字母粘在一起
   ========================================================= */
.v3-meta .r,
.v3-topbar .brand .ver,
.v3-topbar .right .ver,
.mod .num,
.mod .stat,
.ditem .k,
.brow .v,
.signal-list .sitem .k,
.lens-list .lens .i,
.route-list .ritem .i,
.bm-list .bitem .i {
  font-family: var(--mono) !important;
  letter-spacing: .06em;
}

/* =========================================================
   06 打穿作用域内的硬编码字体
   ---------------------------------------------------------
   workbench-studio.css / morning-studio.css 里各有一条：
     #workbench :is(h1,h2,h3,p,span,…){ font-family:…'Microsoft YaHei'… !important }
     body.morning-iframe :is(…){ font-family:'Segoe UI','Microsoft YaHei'… !important }
   一条 :is() 把整块区域的文字全部钉死成微软雅黑，
   权重 (1,1,0) + !important，比任何 token 都硬。
   这里用同样权重的选择器重写一遍，才能让自托管字体真正显示出来。
   ========================================================= */
#workbench :is(h1, h2, h3, p, span, strong, em, b, button, textarea, label, a) {
  font-family: var(--sans) !important;
}

#workbench :is(h1, h2) {
  font-family: var(--serif) !important;
}

/* 标题内部的强调节点跟随标题，不要退回黑体 */
#workbench :is(h1, h2) :is(span, strong, em, b, a, i) {
  font-family: inherit !important;
}

body.morning-iframe,
body.morning-iframe :is(h1, h2, h3, p, span, strong, em, b, button, textarea, label, select, input) {
  font-family: var(--sans) !important;
}

body.morning-iframe :is(h1, h2) {
  font-family: var(--serif) !important;
}

/* 成稿标题：workbench-v2.css 里写死了 "Noto Serif SC"，换成自托管族，
   否则访客机器上没装 Noto Serif SC 会掉到宋体/SimSun */
body.atelier #workbench .article-canvas h2#result-title {
  font-family: var(--serif) !important;
  letter-spacing: -.012em !important;
}



/* --- sidebar.css --- */
/* Shared desktop navigation only. Page interiors retain their existing themes. */
.shell-menu .shell-account-actions { margin-top:20px; padding-top:16px; border-top:1px solid #dce7df; }
.shell-menu .shell-account-actions h3 { margin:0 0 10px; font-size:14px; color:#526b5c; }
.shell-menu .shell-account-actions > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.shell-menu .shell-account-actions button { display:flex; align-items:center; min-height:44px; padding:10px 12px; border:0; border-radius:10px; background:#edf5ef; color:#254d36; font:inherit; text-align:left; cursor:pointer; }
.shell-menu .shell-account-actions button[hidden] { display:none !important; }
.shell-menu .shell-account-actions button:hover { background:#dfeee3; }
@media (min-width:1101px) {
 body.atelier:not(.embedded) { --shell-content-offset:310px; }
 body.atelier:not(.embedded) .app-shell { margin-left:310px !important; }
 body.atelier:not(.embedded) .v3-topbar {
  --m-font:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --m-muted:#526b5c; --m-text:#4e6859; --m-ink:#19382a; --m-line:rgba(72,128,99,.14);
  --m-panel:#f3fbf5; --m-edge:0 0 0 1px rgba(255,255,255,.28); --m-shadow:0 8px 24px -18px rgba(46,108,77,.15);
  box-sizing:border-box !important; font-family:var(--m-font) !important;
 }
body.atelier:not(.embedded) .v3-topbar {
    position:fixed !important; inset:22px auto 22px 22px !important;
    width:252px !important; height:calc(100dvh - 44px) !important; min-height:0 !important; margin:0 !important;
    display:flex !important; flex-direction:column !important; gap:20px !important;
    align-items:stretch !important; padding:28px 15px 18px !important;
    border:1px solid rgba(255,255,255,.73) !important; border-radius:32px !important;
    background:var(--m-panel) !important; box-shadow:var(--m-edge),var(--m-shadow) !important;
    backdrop-filter:none !important; overflow:visible !important;
  }
body.atelier:not(.embedded) .v3-topbar .brand { min-height:62px; flex-shrink:0; }
body.atelier:not(.embedded) .v3-topbar .brand a {
    position:relative; display:grid !important; grid-template-columns:46px minmax(0,1fr) !important;
    grid-template-rows:26px 23px !important; gap:0 12px !important; align-items:center !important;
    padding:0 8px !important; border:0 !important;
  }
body.atelier:not(.embedded) .v3-topbar .brand .mark {
    display:grid !important; grid-row:1 / 3; width:46px !important; height:46px !important;
    border-radius:15px !important; border:1px solid #ffffff6b !important;
    background:linear-gradient(150deg,#7cc39c,#3a956e 70%,#368765) !important;
    box-shadow:inset 0 1px 3px #ffffff70,0 7px 13px #3a795b36 !important;
  }
body.atelier:not(.embedded) .v3-topbar .brand .mark svg { width:32px !important; height:32px !important; }
body.atelier:not(.embedded) .v3-topbar .brand .mark svg text { font-family:var(--m-font) !important; }
body.atelier:not(.embedded) .v3-topbar .brand .name { grid-column:2; margin:0 !important; color:#12281c !important; font-size:16px !important; font-weight:750 !important; letter-spacing:-.03em !important; white-space:nowrap; }
body.atelier:not(.embedded) .v3-topbar .brand a::after { content:"Creator OS" !important; display:block !important; grid-column:2; grid-row:2; color:var(--m-muted); font-size:13px; line-height:1.5; }
body.atelier:not(.embedded) .v3-topbar .brand .ver { display:none !important; }
body.atelier:not(.embedded) .v3-topbar .brand .name::after { content:none !important; display:none !important; }
body.atelier:not(.embedded) .v3-topbar .app-tabs { flex:1; min-height:0; overflow-y:auto !important; scrollbar-width:thin; gap:5px !important; padding:0 2px !important; }
body.atelier:not(.embedded) .v3-topbar .nav-group-label { padding:16px 16px 5px !important; color:var(--m-muted) !important; font-size:12px !important; letter-spacing:0 !important; }
body.atelier:not(.embedded) .v3-topbar .app-tabs a {
    min-height:46px !important; gap:13px !important; padding:11px 16px !important;
    font-size:16px !important; font-weight:450 !important; color:#456a55 !important;
    border-radius:16px !important; background:transparent !important; box-shadow:none !important;
    border:1px solid transparent !important; transition:background 180ms ease,box-shadow 180ms ease !important;
  }
body.atelier:not(.embedded) .v3-topbar .app-tabs a.active {
    color:#183729 !important; font-weight:700 !important;
    background:linear-gradient(135deg,#f7fffa,#effdf5) !important; border:1px solid #ffffffa6 !important;
    box-shadow:inset 0 1px 2px white,0 8px 14px -8px #41745b55 !important;
  }
body.atelier:not(.embedded) .v3-topbar .app-tabs a:hover { background:#f0fff485 !important; }
body.atelier:not(.embedded) .v3-topbar .app-tabs a > span:not(.nav-short) { font-size:16px !important; font-weight:inherit !important; color:inherit !important; }
body.atelier:not(.embedded) .v3-topbar .tab-icon { width:21px !important; height:21px !important; color:currentColor !important; opacity:1 !important; }
body.atelier:not(.embedded) .v3-topbar .right { display:grid !important; grid-template-columns:minmax(0,1fr) 44px !important; flex-direction:row !important; align-items:center !important; gap:10px !important; flex-shrink:0; margin:0 !important; padding:14px 6px 0 !important; border-top:0 !important; }
body.atelier:not(.embedded) .v3-topbar .right .stat { min-width:0 !important; width:auto !important; padding:9px 12px !important; background:#f6fff487 !important; color:var(--m-text) !important; box-shadow:none !important; border-radius:14px !important; }
body.atelier:not(.embedded) #nav-menu-wrap { position:relative !important; display:block !important; width:44px !important; height:44px !important; padding:0 !important; margin:0 !important; }
body.atelier:not(.embedded) #nav-avatar { display:none !important; }
body.atelier:not(.embedded) #mint-settings-toggle { display:grid !important; place-items:center !important; width:44px !important; height:44px !important; min-height:44px !important; padding:11px !important; border:1px solid #c0ddc8 !important; border-radius:14px !important; color:#406e50 !important; background:linear-gradient(140deg,#f7fff9,#e0f3e5) !important; box-shadow:inset 0 1px 2px white,0 3px 8px #52765b12 !important; }
body.atelier:not(.embedded) #mint-settings-toggle svg { width:21px; height:21px; }
body.atelier:not(.embedded) #mint-settings-toggle:hover,
  body.atelier:not(.embedded) #mint-settings-toggle[aria-expanded=true] { background:#d4ebdc !important; border-color:#8cb59b !important; }
body.atelier:not(.embedded) .v3-topbar #settings-menu { position:absolute !important; z-index:1000 !important; box-sizing:border-box !important; padding:8px !important; left:auto !important; right:0 !important; bottom:54px !important; top:auto !important; width:205px !important; border-radius:16px !important; border:1px solid #c4dfce !important; background:#f5fff8 !important; box-shadow:0 12px 30px #3d705536 !important; }
body.atelier:not(.embedded) .v3-topbar .right .stat b { font-variant-numeric:tabular-nums; }
body.atelier:not(.embedded) .v3-topbar .right .stat .pd-pl { font-size:12px !important; color:var(--m-muted) !important; }
body.atelier:not(.embedded) .v3-topbar .right .stat b { font-size:18px !important; font-weight:650 !important; color:var(--m-ink) !important; }
 body.atelier:not(.embedded) .v3-topbar :is(button,a,span,strong,b) { font-family:var(--m-font) !important; }
 body.atelier:not(.embedded) .v3-topbar .app-tabs { display:flex !important; flex-direction:column !important; width:100% !important; }
 body.atelier:not(.embedded) .v3-topbar .app-tabs a { display:flex !important; align-items:center !important; justify-content:flex-start !important; height:auto !important; box-sizing:border-box !important; }
 body.atelier:not(.embedded) .v3-topbar .app-tabs :is(.nav-short,.shell-mobile-more) { display:none !important; }
 body.atelier:not(.embedded) .v3-topbar :is(.library-nav-footer,.workspace-menu-toggle) { display:none !important; }
 body.atelier:not(.embedded) .v3-topbar > .right { margin-top:auto !important; }
 body.atelier:not(.embedded) .v3-topbar .right .stat { display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:4px !important; }
 body.atelier:not(.embedded) .v3-topbar #settings-menu[hidden] { display:none !important; }
 body.atelier:not(.embedded) .v3-topbar :is(a,button):focus-visible { outline:3px solid var(--g-600,#14684A) !important; outline-offset:3px !important; }
 body.atelier:not(.embedded) .v3-topbar #settings-menu a { display:block; padding:12px 14px; color:#365c46; font-size:14px; text-decoration:none; border-radius:8px; }
 body.atelier:not(.embedded) .v3-topbar #settings-menu a:hover { background:#e4f1e8; }
}
@media (min-width:1101px) and (max-width:1279px) {
 body.atelier:not(.embedded) { --shell-content-offset:280px; }
 body.atelier:not(.embedded) .app-shell { margin-left:280px !important; }
 body.atelier:not(.embedded) .v3-topbar { width:230px !important; left:18px !important; padding-inline:10px !important; }
 body.atelier:not(.embedded) .v3-topbar .brand .name { font-size:14px !important; }
}

body.atelier.embedded .v3-topbar { display:none !important; }

/* 手风琴分组（桌面侧栏）。nav-group-label 现在是 button，先做按钮重置，
   再用 ::after 画一个随收起状态旋转的 chevron —— 不引图标依赖。 */
.app-tabs .nav-group[hidden] { display:none !important; }
@media (min-width:1101px) {
  body.atelier:not(.embedded) .v3-topbar .nav-group-label {
    display:flex !important; align-items:center !important; justify-content:space-between !important;
    width:100% !important; box-sizing:border-box !important; margin:0 !important;
    border:0 !important; background:none !important; font:inherit !important;
    text-align:left !important; cursor:pointer !important; border-radius:10px !important;
    transition:color 160ms ease !important;
  }
  body.atelier:not(.embedded) .v3-topbar .nav-group-label:hover { color:#2e5c44 !important; }
  body.atelier:not(.embedded) .v3-topbar .nav-group-label::after {
    content:''; flex:none; width:7px; height:7px; margin-left:8px;
    border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
    transform:rotate(45deg); opacity:.65; transition:transform 160ms ease;
  }
  body.atelier:not(.embedded) .v3-topbar .nav-group.nav-collapsed .nav-group-label::after { transform:rotate(-45deg); }
  body.atelier:not(.embedded) .v3-topbar .nav-group.nav-collapsed > a { display:none !important; }
}


/* --- resources-editorial.css --- */
/* Resource pages: quiet typography and content-led layouts. Sidebar is separate. */
body.atelier.library-body { --lib-paper:#faf9f6; --lib-ink:#292f2b; --lib-muted:#626c63; background:#faf9f6 !important; }
body.atelier.library-body #library-main {
  width:100% !important; max-width:1440px !important; margin:0 auto !important;
  padding:56px clamp(24px,3.5vw,56px) 48px !important; container-type:inline-size;
  font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif !important;
}
body.atelier.library-body #library-main :is(h1,h2,h3,p,span,strong,button,input,a,dt,dd,small) { font-family:inherit !important; }
body.atelier.library-body #library-main #library-shelf { max-width:none !important; }
body.atelier.library-body #library-main .library-heading { max-width:none !important; margin:0 0 36px !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; }
body.atelier.library-body #library-main .library-eyebrow { display:none !important; }
body.atelier.library-body #library-main .library-heading h1 { font-size:38px !important; line-height:1.3 !important; font-weight:650 !important; letter-spacing:-.04em !important; }
body.atelier.library-body #library-main .library-heading .library-subtitle { font-size:16px !important; line-height:1.8 !important; color:#626c63 !important; margin:14px 0 0 !important; }
body.atelier.library-body #library-main .library-search-toggle { border:1px solid #e1e5de !important; background:#fff !important; box-shadow:none !important; border-radius:12px !important; min-height:46px !important; font-size:14px !important; }
body.atelier.library-body #library-main .library-search input { font-size:16px !important; min-height:48px !important; }
body.atelier.library-body #library-main .library-categories { border:0 !important; padding:0 0 10px !important; gap:8px !important; }
body.atelier.library-body #library-main .library-categories button { min-height:44px !important; padding:10px 16px !important; font-size:14px !important; border-radius:10px !important; color:#58655b !important; }
body.atelier.library-body #library-main .library-categories button[aria-pressed=true] { color:#305d40 !important; background:#e6eee5 !important; }
body.atelier.library-body #library-main .library-collection-heading { margin:28px 0 30px !important; }
body.atelier.library-body #library-main .library-collection-heading h2 { font-size:20px !important; font-weight:600 !important; color:#293c2e !important; }
body.atelier.library-body #library-main #book-count { font-size:13px !important; color:#647066 !important; }
body.atelier.library-body #library-main .book-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:46px 28px !important; }
body.atelier.library-body #library-main .book-item { padding:0 !important; background:none !important; border:0 !important; box-shadow:none !important; }
body.atelier.library-body #library-main .book-cover { container-type:inline-size; border-radius:2px 5px 5px 2px !important; box-shadow:2px 3px 4px #29272112,6px 12px 18px -6px #29272127 !important; }
body.atelier.library-body #library-main .cover-name { font-size:clamp(21px,20cqi,34px) !important; line-height:1.16 !important; letter-spacing:-.035em !important; overflow-wrap:anywhere !important; }
body.atelier.library-body #library-main .cover-subtitle { font-size:11px !important; line-height:1.6 !important; }
body.atelier.library-body #library-main :is(.cover-series,.cover-author) { font-size:10px !important; line-height:1.6 !important; }
body.atelier.library-body #library-main .cover-art::before { display:none !important; }
body.atelier.library-body #library-main .book-meta { margin-top:20px !important; }
body.atelier.library-body #library-main .book-meta h3 { font-size:16px !important; line-height:1.65 !important; font-weight:600 !important; margin:0 0 6px !important; }
body.atelier.library-body #library-main .book-meta p { font-size:13px !important; line-height:1.7 !important; margin:0 0 6px !important; }
body.atelier.library-body #library-main .book-stars { font-size:12px !important; }
body.atelier.library-body #library-main .library-footer { border:0 !important; margin-top:60px !important; padding-top:20px !important; font-size:12px !important; line-height:1.9 !important; }
body.atelier.library-body #library-main .library-footer small { font-size:12px !important; }
body.atelier.library-body #library-main .detail-layout { gap:56px !important; }
body.atelier.library-body #library-main .detail-copy h1 { font-size:34px !important; line-height:1.5 !important; letter-spacing:-.03em !important; }
body.atelier.library-body #library-main .detail-about { border:0 !important; padding-top:24px !important; }
body.atelier.library-body #library-main .detail-about p { font-size:16px !important; line-height:1.95 !important; }
body.atelier.library-body #library-main :is(.detail-source dl,.detail-read-note,.detail-license) { font-size:13px !important; line-height:1.9 !important; }
body.atelier.library-body #library-main .detail-read { border-radius:12px !important; font-size:15px !important; min-height:48px !important; }
@container (min-width:540px) { body.atelier.library-body #library-main .book-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:48px 32px !important; } }
@container (min-width:850px) { body.atelier.library-body #library-main .book-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:48px 36px !important; } }
@container (min-width:1180px) { body.atelier.library-body #library-main .book-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:52px 40px !important; } }
@media (hover:hover) { body.atelier.library-body #library-main .book-link:hover .book-cover { transform:translateY(-4px) !important; box-shadow:3px 5px 6px #29272112,8px 17px 22px -8px #29272130 !important; } }
@media (max-width:760px) {
 body.atelier.library-body #library-main { padding:32px 22px !important; }
 body.atelier.library-body #library-main .library-heading h1 { font-size:30px !important; }
 body.atelier.library-body #library-main .library-heading .library-subtitle { font-size:14px !important; }
 body.atelier.library-body #library-main .book-grid { gap:36px 24px !important; }
 body.atelier.library-body #library-main .book-meta h3 { font-size:14px !important; }
 body.atelier.library-body #library-main .detail-copy h1 { font-size:28px !important; }
}

/* Marketplace: task-based discovery, with source links rather than launch claims. */
body.atelier.market-body { background:#f8f9f6 !important; }
body.atelier.market-body :is(#market-main,#market) {
  background:#f8f9f6 !important; color:#29352d !important; box-shadow:none !important; padding:0 !important; border:0 !important; border-radius:0 !important;
  font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif !important;
}
body.atelier.market-body :is(#market-main,#market) :is(h1,h2,h3,p,a,span,strong,b,button,input,kbd) { font-family:inherit !important; }
body.atelier.market-body :is(#market-main,#market) .market-wrap { width:100% !important; max-width:1440px !important; margin:0 auto !important; padding:0 clamp(24px,3.5vw,56px) !important; box-sizing:border-box !important; container-type:inline-size; }
body.atelier.market-body :is(#market-main,#market) .market-hero { padding:56px 0 28px !important; background:none !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-hero::before,
body.atelier.market-body :is(#market-main,#market) .market-hero::after { content:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-kicker { display:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-hero h1 { margin:0 !important; font-size:38px !important; font-weight:650 !important; line-height:1.3 !important; letter-spacing:-.04em !important; color:#29352d !important; }
body.atelier.market-body :is(#market-main,#market) .market-hero p { margin:14px 0 0 !important; max-width:65ch !important; font-size:16px !important; line-height:1.8 !important; color:#5f6c63 !important; }
body.atelier.market-body :is(#market-main,#market) .market-meta { margin-top:12px !important; font-size:12px !important; color:#68756b !important; }
body.atelier.market-body :is(#market-main,#market) .market-meta > span:not(#meta-updated) { display:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-searchwrap { padding:0 !important; margin:0 0 24px !important; }
body.atelier.market-body :is(#market-main,#market) .market-search { width:100% !important; max-width:none !important; min-height:54px !important; height:auto !important; padding:0 18px !important; background:#fff !important; border:1px solid #dce3dc !important; border-radius:12px !important; box-shadow:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-search input { width:100% !important; min-width:0 !important; font-size:16px !important; padding:14px 0 !important; color:#29352d !important; }
body.atelier.market-body :is(#market-main,#market) .market-search kbd { display:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-layout { display:block !important; padding:0 0 36px !important; }
body.atelier.market-body :is(#market-main,#market) .market-rail { position:static !important; width:100% !important; padding:0 !important; margin:0 0 32px !important; background:none !important; box-shadow:none !important; border:0 !important; }
body.atelier.market-body :is(#market-main,#market) .market-rail h2 { display:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-rail ul { display:flex !important; flex-wrap:wrap !important; gap:8px !important; padding:0 !important; margin:0 !important; list-style:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-rail a { display:flex !important; align-items:center !important; gap:10px !important; min-height:42px !important; padding:8px 13px !important; border:0 !important; border-radius:9px !important; font-size:14px !important; background:transparent !important; color:#59695e !important; box-shadow:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-rail a.on { background:#e5eee5 !important; color:#2f6041 !important; font-weight:600 !important; }
body.atelier.market-body :is(#market-main,#market) .market-rail .n { font-size:12px !important; color:#6d7b70 !important; }
body.atelier.market-body :is(#market-main,#market) .market-section-head { margin:0 0 18px !important; border:0 !important; }
body.atelier.market-body :is(#market-main,#market) .market-section-head h2 { font-size:20px !important; font-weight:600 !important; color:#2f4235 !important; }
body.atelier.market-body :is(#market-main,#market) .market-section-head > span { display:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-featured { display:grid !important; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)) !important; gap:18px !important; margin:0 0 34px !important; }
body.atelier.market-body :is(#market-main,#market) .market-fcard { padding:22px !important; gap:12px !important; border:0 !important; border-radius:14px !important; background:#eaf1e9 !important; box-shadow:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-fcard .tag { font-size:12px !important; color:#526b58 !important; letter-spacing:0 !important; }
body.atelier.market-body :is(#market-main,#market) .market-fcard .tag::before { content:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-fcard strong { font-size:18px !important; line-height:1.6 !important; color:#294432 !important; }
body.atelier.market-body :is(#market-main,#market) .market-fcard p { font-size:14px !important; line-height:1.8 !important; color:#53675a !important; }
body.atelier.market-body :is(#market-main,#market) .market-fcard .src { font-size:12px !important; color:#607466 !important; overflow-wrap:anywhere !important; }
body.atelier.market-body :is(#market-main,#market) .market-toolbar { display:flex !important; flex-wrap:wrap !important; gap:16px !important; justify-content:space-between !important; align-items:center !important; margin:0 0 20px !important; padding:0 !important; border:0 !important; }
body.atelier.market-body :is(#market-main,#market) .market-count { font-size:14px !important; color:#5e6c62 !important; }
body.atelier.market-body :is(#market-main,#market) .market-seg { padding:3px !important; border:0 !important; border-radius:10px !important; background:#edf0eb !important; }
body.atelier.market-body :is(#market-main,#market) .market-seg button { padding:8px 12px !important; min-height:40px !important; font-size:13px !important; border-radius:8px !important; color:#58675d !important; box-shadow:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-seg button[aria-pressed=true] { background:#fff !important; color:#315d41 !important; }
body.atelier.market-body :is(#market-main,#market) .market-list { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:20px !important; border:0 !important; }
body.atelier.market-body :is(#market-main,#market) .market-row { display:flex !important; flex-direction:column !important; align-items:stretch !important; gap:14px !important; min-width:0 !important; min-height:238px !important; padding:24px !important; border:1px solid #e4e8e1 !important; border-radius:14px !important; background:#fff !important; box-shadow:none !important; transition:border-color 180ms ease,background 180ms ease !important; }
body.atelier.market-body :is(#market-main,#market) .market-row > div:first-child { flex:1 !important; }
body.atelier.market-body :is(#market-main,#market) .market-row .name { font-size:17px !important; font-weight:600 !important; line-height:1.6 !important; color:#293b2e !important; overflow-wrap:anywhere !important; white-space:normal !important; }
body.atelier.market-body :is(#market-main,#market) .market-row .desc { font-size:14px !important; line-height:1.85 !important; color:#59675e !important; margin:12px 0 !important; -webkit-line-clamp:3 !important; }
body.atelier.market-body :is(#market-main,#market) .market-row .meta { font-size:12px !important; line-height:1.7 !important; color:#6b786f !important; overflow-wrap:anywhere !important; }
body.atelier.market-body :is(#market-main,#market) .market-row .meta > span:nth-child(2) { display:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-row .side { display:flex !important; flex-direction:row !important; justify-content:space-between !important; gap:12px !important; align-items:center !important; }
body.atelier.market-body :is(#market-main,#market) .market-row :is(.stars,.cat) { font-size:12px !important; color:#627166 !important; }
body.atelier.market-body :is(#market-main,#market) .market-row .go { display:inline-flex !important; align-items:center !important; gap:6px !important; align-self:flex-start !important; color:#3a694a !important; font-size:13px !important; transform:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-badge { font-size:11px !important; letter-spacing:0 !important; padding:2px 6px !important; border:0 !important; border-radius:5px !important; background:#edf2ec !important; color:#55705b !important; }
body.atelier.market-body :is(#market-main,#market) .market-loading,
body.atelier.market-body :is(#market-main,#market) .market-empty { grid-column:1/-1 !important; padding:48px 20px !important; font-size:15px !important; line-height:1.9 !important; color:#5c6d60 !important; background:none !important; border:0 !important; }
body.atelier.market-body :is(#market-main,#market) .market-more button { min-height:44px !important; padding:10px 22px !important; border-radius:10px !important; font-size:14px !important; background:#e8efe6 !important; color:#365f43 !important; box-shadow:none !important; }
body.atelier.market-body :is(#market-main,#market) .market-foot { border:0 !important; padding:12px 0 36px !important; margin:0 !important; }
body.atelier.market-body :is(#market-main,#market) .market-foot p { font-size:12px !important; line-height:1.9 !important; color:#6b776e !important; }
body.atelier.market-body :is(#market-main,#market) :is(a,button,input):focus-visible { outline:3px solid var(--g-600,#14684A) !important; outline-offset:4px !important; }
@container (min-width:1120px) { body.atelier.market-body :is(#market-main,#market) .market-list { grid-template-columns:repeat(3,minmax(0,1fr)) !important; } }
@media (hover:hover) { body.atelier.market-body :is(#market-main,#market) .market-row:hover { border-color:#a9c2ae !important; background:#fdfefd !important; } }
@media (max-width:760px) {
 body.atelier.market-body :is(#market-main,#market) .market-wrap { padding:0 22px !important; }
 body.atelier.market-body :is(#market-main,#market) .market-hero { padding:32px 0 24px !important; }
 body.atelier.market-body :is(#market-main,#market) .market-hero h1 { font-size:30px !important; }
 body.atelier.market-body :is(#market-main,#market) .market-hero p { font-size:14px !important; }
 body.atelier.market-body :is(#market-main,#market) .market-featured,
 body.atelier.market-body :is(#market-main,#market) .market-list { grid-template-columns:minmax(0,1fr) !important; }
 body.atelier.market-body :is(#market-main,#market) .market-row { padding:22px !important; min-height:0 !important; }
 body.atelier.market-body :is(#market-main,#market) .market-rail ul { flex-wrap:nowrap !important; overflow-x:auto !important; padding:2px 2px 8px !important; }
 body.atelier.market-body :is(#market-main,#market) .market-rail a { white-space:nowrap !important; }
}
@media(prefers-reduced-motion:reduce) { body.atelier.market-body :is(#market-main,#market) * { transition:none !important; } }

@media(max-width:480px) {
 body.atelier.library-body #library-main .book-grid .cover-series { display:none !important; }
 body.atelier.library-body #library-main .book-grid .cover-name { margin-top:12% !important; }
 body.atelier.library-body #library-main .book-grid .cover-art { min-height:0 !important; }
 body.atelier.library-body #library-main .book-grid .cover-author { font-size:9px !important; }
}

/* The SPA already reserves sidebar space; its nested market must not reserve it again. */
body.atelier.market-body #market #market-main { margin-left:0 !important; margin-right:0 !important; width:100% !important; max-width:none !important; }

/* Page introductions: one quiet surface, aligned with each page's content rail. */
body.atelier.library-body #library-main .library-heading {
  padding:26px 28px !important; margin-bottom:24px !important; gap:20px !important;
  align-items:center !important; border:1px solid #ffffff8c !important; border-radius:24px !important;
  background:#eef3e8 !important; box-shadow:inset 0 1px 0 #ffffff80 !important;
}
body.atelier.library-body #library-main .library-heading > div { min-width:0 !important; }
body.atelier.library-body #library-main .library-heading h1 { font-size:36px !important; }
body.atelier.library-body #library-main .library-heading .library-subtitle { margin-top:10px !important; }
body.atelier.library-body #library-main .library-search-toggle { flex:none !important; margin:0 !important; align-self:center !important; background:#ffffffb3 !important; border-color:#d9e3d6 !important; }
body.atelier.market-body :is(#market-main,#market) .market-hero { padding-bottom:24px !important; }
body.atelier.market-body :is(#market-main,#market) .market-hero > .market-wrap {
  width:calc(100% - 2 * clamp(24px,3.5vw,56px)) !important;
  max-width:calc(1440px - 2 * clamp(24px,3.5vw,56px)) !important;
  padding:26px 28px !important; border:1px solid #ffffff8c !important; border-radius:24px !important;
  background:#eaf2ed !important; box-shadow:inset 0 1px 0 #ffffff80 !important;
}
body.atelier.market-body :is(#market-main,#market) .market-hero h1 { font-size:36px !important; }
body.atelier.market-body :is(#market-main,#market) .market-hero p { margin-top:10px !important; }
@media(max-width:760px) {
  body.atelier.library-body #library-main .library-heading { padding:20px !important; gap:12px !important; border-radius:20px !important; }
  body.atelier.library-body #library-main .library-heading h1 { font-size:28px !important; }
  body.atelier.library-body #library-main .library-heading .library-subtitle { font-size:15px !important; }
  body.atelier.market-body :is(#market-main,#market) .market-hero > .market-wrap { width:calc(100% - 44px) !important; padding:20px !important; border-radius:20px !important; }
  body.atelier.market-body :is(#market-main,#market) .market-hero h1 { font-size:28px !important; }
  body.atelier.market-body :is(#market-main,#market) .market-hero p { font-size:15px !important; }
}


/* Hotspot reading wall: shared mint materials, content-first density. */
#hotspots.hs-page {
 --hs-glass:rgba(249,255,250,.79) !important; --hs-glass-lo:rgba(255,255,255,.42) !important;
 --hs-edge:rgba(255,255,255,.65) !important; --hs-ink:#243b2d !important; --hs-ink-2:#4f6657;
 --hs-ink-3:#526459; --hs-ink-4:#526459; --hs-line:rgba(74,116,87,.14) !important;
 --hs-ikb:#327751 !important; --hs-ikb-soft:#e1efe3 !important;
 container-type:inline-size !important; padding:28px 30px 40px !important; color:var(--hs-ink) !important;
 font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif !important;
 background:transparent !important; min-width:0 !important;
}
#hotspots *,#hotspots *::before,#hotspots *::after { box-sizing:border-box !important; }
#hotspots :is(h1,h2,p,a,button,input,span,strong,small) { font-family:inherit !important; }
#hotspots [hidden] { display:none !important; }
#hotspots :is(a,button,input):focus-visible { outline:3px solid var(--g-600,#14684A) !important;outline-offset:3px !important; }
#hotspots .hs-head {
 display:flex !important;align-items:center !important;justify-content:space-between !important;gap:20px !important;flex-wrap:wrap !important;
 padding:24px 26px !important;margin-bottom:20px !important;border:1px solid var(--hs-edge) !important;border-radius:24px !important;
 background:var(--hs-glass) !important;box-shadow:0 8px 24px -20px #35614638 !important;
 backdrop-filter:blur(12px) saturate(115%) !important;-webkit-backdrop-filter:blur(12px) saturate(115%) !important;
}
#hotspots .hs-head h1 { margin:0 !important;font-size:32px !important;font-weight:650 !important;line-height:1.35 !important;letter-spacing:-.035em !important; }
#hotspots .hs-head p { margin:8px 0 0 !important;font-size:15px !important;line-height:1.7 !important;color:var(--hs-ink-3) !important; }
#hotspots .hs-updated { display:flex !important;gap:8px !important;align-items:center !important;margin-left:auto !important;font-size:12px !important;line-height:1.7 !important;color:var(--hs-ink-3) !important;font-variant-numeric:tabular-nums !important; }
#hotspots .hs-updated i { display:none !important; }
#hotspots .hs-updated.is-stale { color:#886735 !important; }
#hotspots .hs-bar { display:grid !important;grid-template-columns:minmax(240px,340px) minmax(0,1fr) !important;gap:18px !important;align-items:start !important;margin-bottom:24px !important; }
#hotspots .hs-search { display:flex !important;align-items:center !important;gap:10px !important;min-width:0 !important;min-height:48px !important;padding:0 15px !important;border:1px solid #c9ded0 !important;border-radius:12px !important;background:rgba(255,255,255,.77) !important; }
#hotspots .hs-search svg { flex:none !important;color:var(--hs-ink-3) !important; }
#hotspots .hs-search input { width:100% !important;min-width:0 !important;min-height:46px !important;padding:10px 0 !important;border:0 !important;outline:0 !important;background:none !important;font-size:16px !important;line-height:1.6 !important;color:var(--hs-ink) !important; }
#hotspots .hs-search input::placeholder { color:var(--hs-ink-3) !important; }
/* 审计 D5：这条规则的同源顺序压过了上面的 focus-visible，搜索框一度完全没有
   焦点环。补一条更高优先级的恢复，键盘用户能看到焦点。 */
#hotspots .hs-search input:focus-visible { outline:3px solid var(--g-600,#14684A) !important; outline-offset:3px !important; }
#hotspots .hs-search:focus-within { border-color:#679c78 !important; }
#hotspots .hs-platforms { display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:6px !important;min-width:0 !important; }
#hotspots .hs-chip { min-height:40px !important;padding:9px 12px !important;border:0 !important;border-radius:9px !important;background:transparent !important;color:var(--hs-ink-2) !important;font-size:13px !important;line-height:1.5 !important;white-space:nowrap !important;cursor:pointer !important;transition:background 160ms ease,color 160ms ease !important; }
#hotspots .hs-chip:hover { background:#ffffff66 !important; }
#hotspots .hs-chip[aria-pressed=true] { background:#e1eee2 !important;color:#285b3a !important;font-weight:600 !important; }
#hotspots .hs-chip.is-off { color:#727a6f !important; }
#hotspots .hs-chip-fav { color:#566d3d !important; }
#hotspots .hs-banner { margin:0 0 20px !important;padding:14px 18px !important;font-size:13px !important;line-height:1.8 !important;border:0 !important;border-radius:12px !important;color:#805e31 !important;background:#fff6e8 !important; }
#hotspots .hs-grid { display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:20px !important;align-items:start !important; }
#hotspots .hs-card { display:flex !important;flex-direction:column !important;min-width:0 !important;border:1px solid var(--hs-edge) !important;border-radius:22px !important;background:var(--hs-glass) !important;box-shadow:0 8px 26px -20px #35614638 !important;overflow:hidden !important;backdrop-filter:blur(12px) saturate(115%) !important;-webkit-backdrop-filter:blur(12px) saturate(115%) !important; }
#hotspots .hs-card:only-child { grid-column:1/-1 !important;width:100% !important;max-width:940px !important;justify-self:center !important; }
#hotspots .hs-card-head { display:flex !important;align-items:center !important;gap:10px !important;padding:16px 18px 10px !important; }
#hotspots .hs-dot { width:7px !important;height:7px !important;flex:none !important;border-radius:50% !important;background:#718b77 !important; }
#hotspots .hs-dot-weibo,#hotspots .hs-dot-toutiao { background:#b26f68 !important; }
#hotspots .hs-dot-zhihu,#hotspots .hs-dot-baidu,#hotspots .hs-dot-juejin { background:#648aab !important; }
#hotspots .hs-dot-douyin,#hotspots .hs-dot-github,#hotspots .hs-dot-v2ex { background:#5e6b60 !important; }
#hotspots .hs-dot-bilibili { background:#b7899d !important; }
#hotspots .hs-dot-douban { background:#679777 !important; }
#hotspots .hs-dot-tieba { background:#789bb4 !important; }
#hotspots .hs-dot-hackernews { background:#b99062 !important; }
#hotspots .hs-card-head h2 { min-width:0 !important;margin:0 !important;font-size:16px !important;font-weight:650 !important;line-height:1.6 !important;overflow-wrap:anywhere !important; }
#hotspots .hs-platform-open { padding:4px 0 !important;min-height:32px !important;border:0 !important;background:none !important;color:inherit !important;font:inherit !important;text-align:left !important;cursor:pointer !important; }
#hotspots .hs-platform-open:hover { color:#327751 !important; }
#hotspots .hs-card-count { margin-left:auto !important;flex:none !important;color:var(--hs-ink-3) !important;font-size:12px !important;line-height:1.6 !important;font-variant-numeric:tabular-nums !important; }
#hotspots .hs-card-list { list-style:none !important;margin:0 !important;padding:0 10px !important; }
#hotspots .hs-item { display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;gap:8px 10px !important;align-items:center !important;padding:12px 8px !important;border-radius:12px !important;transition:background 160ms ease !important; }
#hotspots .hs-item:hover,#hotspots .hs-item:focus-within { background:#ffffff69 !important; }
#hotspots .hs-item-title { grid-column:1/-1 !important;font-size:15px !important;line-height:1.7 !important;font-weight:450 !important;color:var(--hs-ink) !important;text-decoration:none !important;overflow-wrap:anywhere !important; }
#hotspots .hs-item-title:hover { color:#286941 !important; }
#hotspots .hs-item-meta { grid-column:1 !important;grid-row:2 !important;min-width:0 !important;font-size:12px !important;line-height:1.6 !important;color:var(--hs-ink-3) !important;font-variant-numeric:tabular-nums !important;overflow-wrap:anywhere !important; }
#hotspots .hs-item-tools { grid-column:2 !important;grid-row:2 !important;display:flex !important;align-items:center !important;gap:5px !important;justify-self:end !important; }
#hotspots .hs-mini,#hotspots .hs-go { display:inline-flex !important;align-items:center !important;justify-content:center !important;min-height:32px !important;padding:6px 8px !important;cursor:pointer !important;border:0 !important;border-radius:8px !important;font-size:12px !important;line-height:1.5 !important;white-space:nowrap !important;transition:background 160ms ease !important; }
#hotspots .hs-mini { color:#58715f !important;background:transparent !important; }
#hotspots .hs-mini:hover { background:#dceade !important; }
#hotspots .hs-star { min-width:30px !important;font-size:16px !important; }
#hotspots .hs-star.is-on { color:#537438 !important;background:#e4edda !important; }
@media(max-width:760px){#hotspots .hs-mini,#hotspots .hs-go{min-width:44px!important;min-height:44px!important;height:auto!important;display:inline-flex!important;align-items:center;justify-content:center}}
#hotspots .hs-go { color:#2e6340 !important;background:#e0ede0 !important; }
#hotspots .hs-go:hover { background:#cce2d0 !important; }
#hotspots .hs-card-foot { display:flex !important;align-items:center !important;justify-content:space-between !important;flex-wrap:wrap !important;gap:8px !important;padding:10px 18px 16px !important;font-size:12px !important;line-height:1.6 !important;color:var(--hs-ink-3) !important; }
#hotspots .hs-card-tools { display:flex !important;gap:6px !important; }
#hotspots .hs-card-btn { min-height:34px !important;padding:6px 9px !important;border:0 !important;border-radius:8px !important;font-size:12px !important;line-height:1.5 !important;color:#496651 !important;background:#ffffff69 !important;cursor:pointer !important; }
#hotspots .hs-card-btn:hover { background:#e0ece1 !important; }
#hotspots .hs-card-btn:disabled { opacity:.55 !important;cursor:default !important; }
#hotspots .hs-empty { grid-column:1/-1 !important;padding:56px 20px !important;text-align:center !important;color:var(--hs-ink-3) !important;font-size:14px !important;line-height:1.9 !important; }
#hotspots .hs-empty strong { display:block !important;margin-bottom:8px !important;color:var(--hs-ink) !important;font-size:18px !important; }
#hotspots .hs-skeleton { min-height:410px !important;border-radius:22px !important;background:rgba(249,255,250,.65) !important; }
@container (min-width:680px) { #hotspots .hs-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@container (min-width:1020px) { #hotspots .hs-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; } }
@container (min-width:1440px) { #hotspots .hs-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; } }
@container (min-width:1800px) { #hotspots .hs-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; } }
@container (min-width:2040px) { #hotspots .hs-grid { grid-template-columns:repeat(6,minmax(0,1fr)) !important; } }
@media(min-width:1101px) {
 body.atelier.hotspots-body { background:radial-gradient(ellipse at 30% 10%,#b4dec5 0,transparent 65%),linear-gradient(135deg,#c5e3d0,#e0ecdc) !important;background-attachment:fixed !important; }
 body.atelier.hotspots-body .app-shell { display:block !important;max-width:none !important;padding:28px 40px 30px 0 !important;background:transparent !important; }
 body.atelier.hotspots-body #hotspots.hs-page { width:100% !important;max-width:none !important;padding:0 !important;margin:0 !important; }
}
@media(min-width:1101px) and (max-width:1279px) { body.atelier.hotspots-body .app-shell { padding-right:28px !important; } }
@media(max-width:1100px) { #hotspots .hs-bar { grid-template-columns:minmax(0,1fr) !important; } }
@media(max-width:760px) {
 #hotspots.hs-page { padding:24px 18px 32px !important; }
 #hotspots .hs-head { padding:20px !important;border-radius:20px !important;gap:12px !important; }
 #hotspots .hs-head h1 { font-size:28px !important; }
 #hotspots .hs-head p { font-size:14px !important; }
 #hotspots .hs-updated { margin-left:0 !important; }
 #hotspots .hs-platforms { flex-wrap:nowrap !important;overflow-x:auto !important;padding:3px 2px 8px !important;scrollbar-width:thin !important; }
 #hotspots .hs-card { border-radius:20px !important; }
 #hotspots .hs-mini,#hotspots .hs-go { min-height:44px !important; }
}
@supports not (backdrop-filter:blur(12px)) { #hotspots .hs-card,#hotspots .hs-head { background:#f3fbf5 !important; } }
@media(prefers-reduced-transparency:reduce) { #hotspots .hs-card,#hotspots .hs-head { background:#f3fbf5 !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important; } }
@media(prefers-reduced-motion:reduce) { #hotspots.hs-page * { transition:none !important;animation:none !important; } }

/* Distinct platform modules: 靠强调色（圆点 + 标题色）区分平台，不再给整张卡
   铺淡色底 —— 整面大色块违反设计红线（禁大色块），实测 4 平台 4 色坐实。 */
#hotspots .hs-card { --hs-platform-accent:#4f715a; }
#hotspots .hs-card[data-platform="weibo"] { --hs-platform-accent:#9a5249; }
#hotspots .hs-card[data-platform="zhihu"] { --hs-platform-accent:#3c6e99; }
#hotspots .hs-card[data-platform="douyin"] { --hs-platform-accent:#555775; }
#hotspots .hs-card[data-platform="toutiao"] { --hs-platform-accent:#956b3c; }
#hotspots .hs-card[data-platform="baidu"] { --hs-platform-accent:#62629a; }
#hotspots .hs-card[data-platform="bilibili"] { --hs-platform-accent:#9c607e; }
#hotspots .hs-card[data-platform="juejin"] { --hs-platform-accent:#417c89; }
#hotspots .hs-card[data-platform="tieba"] { --hs-platform-accent:#6a7c42; }
#hotspots .hs-card[data-platform="douban"] { --hs-platform-accent:#4e7b52; }
#hotspots .hs-card[data-platform="v2ex"] { --hs-platform-accent:#796c59; }
#hotspots .hs-card[data-platform="hackernews"] { --hs-platform-accent:#9b6c41; }
#hotspots .hs-card[data-platform="github"] { --hs-platform-accent:#466d60; }
#hotspots .hs-card-head { padding:16px 18px 12px !important; background:rgba(255,255,255,.13) !important; }
#hotspots .hs-card-head h2 { font-size:17px !important; color:color-mix(in srgb,var(--hs-platform-accent) 85%,#203327) !important; }
#hotspots .hs-dot { width:9px !important;height:9px !important;background:var(--hs-platform-accent) !important; }
#hotspots .hs-card-foot { background:transparent !important; border:0 !important; box-shadow:none !important; }
#hotspots .hs-card-list { background:transparent !important; }
#hotspots .hs-mini { color:#496151 !important; }
#hotspots .hs-go { color:#2b573a !important; background:rgba(255,255,255,.6) !important; }
#hotspots .hs-card-btn { background:rgba(255,255,255,.48) !important; }

#hotspots .hs-empty [data-retry] { min-height:42px !important;margin-top:16px !important;padding:10px 18px !important;background:#e1eee2 !important;font-size:14px !important; }

/* ---------- 选题分析：入口按钮 + 抽屉（挂 body 层，独立作用域） ---------- */
#hotspots .hs-analyze { display:inline-flex !important;align-items:center !important;gap:5px !important;min-height:32px !important;padding:6px 10px !important;cursor:pointer !important;border:0 !important;border-radius:8px !important;font-size:12px !important;line-height:1.5 !important;white-space:nowrap !important;color:#245c3c !important;background:#e1efe3 !important;transition:background 160ms ease !important;font-family:inherit !important; }
#hotspots .hs-analyze:hover { background:#d3e8d8 !important; }
#hotspots .hs-analyze svg { flex:none !important; }
@media(max-width:760px){#hotspots .hs-analyze{min-width:44px!important;min-height:44px!important}}

#hsd-mask { position:fixed;inset:0;z-index:96;background:rgba(24,42,32,.35);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  opacity:0;pointer-events:none;transition:opacity 220ms ease; }
#hsd { --hsd-glass:rgba(249,255,250,.86); --hsd-edge:rgba(255,255,255,.7); --hsd-ink:#243b2d; --hsd-ink-2:#4f6657;
  --hsd-ink-3:#526459; --hsd-line:rgba(74,116,87,.14); --hsd-green:#327751; --hsd-green-soft:#e1efe3;
  position:fixed;top:0;right:0;bottom:0;width:480px;max-width:100vw;z-index:97;display:flex;flex-direction:column;
  color:var(--hsd-ink);font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  background:linear-gradient(180deg,#f6fbf7,#eef6f0);border-left:1px solid var(--hsd-edge);
  box-shadow:-24px 0 60px -30px rgba(31,58,42,.4);
  transform:translateX(103%);transition:transform 260ms cubic-bezier(.32,.72,.28,1);visibility:hidden; }
body.hs-drawer-open #hsd-mask { opacity:1;pointer-events:auto; }
body.hs-drawer-open #hsd { transform:none;visibility:visible; }
#hsd *,#hsd *::before,#hsd *::after { box-sizing:border-box; }
#hsd :is(a,button):focus-visible { outline:3px solid var(--hsd-green);outline-offset:3px; }
#hsd [hidden] { display:none !important; }
@media(max-width:760px){ #hsd { width:100vw;border-left:0; } }

#hsd .hsd-head { flex:none;display:flex;align-items:flex-start;gap:12px;padding:20px 22px 14px;border-bottom:1px solid var(--hsd-line); }
#hsd .hsd-head-main { min-width:0; }
#hsd .hsd-kicker { display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.08em;color:#2b6a44;
  background:var(--hsd-green-soft);border-radius:999px;padding:4px 10px;margin-bottom:10px; }
#hsd .hsd-head h2 { margin:0;font-size:19px;font-weight:650;line-height:1.55;letter-spacing:-.01em;overflow-wrap:anywhere; }
#hsd .hsd-close { flex:none;margin-left:auto;width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.6);
  color:var(--hsd-ink-2);font-size:15px;cursor:pointer;transition:background 160ms ease; }
#hsd .hsd-close:hover { background:#dceade; }

#hsd .hsd-body { flex:1;overflow-y:auto;padding:18px 22px 28px;scrollbar-width:thin; }
#hsd .hsd-sec { margin-bottom:22px; }
#hsd .hsd-sec-title { display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--hsd-ink-3); }
#hsd .hsd-sec-title::after { content:"";flex:1;height:1px;background:var(--hsd-line); }
#hsd .hsd-facts { border:1px solid var(--hsd-edge);border-radius:16px;background:rgba(255,255,255,.55);padding:14px 16px;box-shadow:0 6px 20px -18px #35614638; }
#hsd .hsd-facts dl { display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:13px;line-height:1.7; }
#hsd .hsd-facts dt { color:var(--hsd-ink-3);white-space:nowrap; }
#hsd .hsd-facts dd { margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums; }
#hsd .hsd-facts a { color:#2b6a44;text-decoration:underline;text-underline-offset:3px; }
#hsd .hsd-fact-note { margin:10px 0 0;font-size:11.5px;line-height:1.7;color:#8a6428;background:#fff8ec;border-radius:10px;padding:8px 12px; }

#hsd .hsd-topic { display:flex;gap:10px;align-items:flex-start;padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.5);margin-bottom:7px; }
#hsd .hsd-topic:hover { background:#ffffff7d; }
#hsd .hsd-topic-main { min-width:0;flex:1; }
#hsd .hsd-topic-title { font-size:14px;line-height:1.65;font-weight:500;overflow-wrap:anywhere; }
#hsd .hsd-topic-meta { display:flex;gap:8px;align-items:center;margin-top:3px;font-size:12px;color:var(--hsd-ink-3);flex-wrap:wrap; }
#hsd .hsd-track { background:#e7efe7;border-radius:6px;padding:1px 7px;color:#48684f; }
#hsd .hsd-score { flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:11px;color:var(--hsd-ink-3);font-variant-numeric:tabular-nums; }
#hsd .hsd-bar { width:44px;height:4px;border-radius:99px;background:#e2ece3;overflow:hidden; }
#hsd .hsd-bar i { display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#4d9668,#327751); }

#hsd .hsd-evidence { display:flex;gap:10px;align-items:flex-start;padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.5);margin-bottom:7px; }
#hsd .hsd-case { flex:none;font-size:11px;font-weight:600;color:#8a6428;background:#fff3e2;border-radius:6px;padding:2px 7px;margin-top:2px;white-space:nowrap; }
#hsd .hsd-evidence-main { min-width:0; }
#hsd .hsd-evidence-title { font-size:13.5px;line-height:1.65;overflow-wrap:anywhere; }
#hsd .hsd-evidence-meta { font-size:12px;color:var(--hsd-ink-3);margin-top:3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
#hsd .hsd-evidence-note { font-size:11.5px;color:var(--hsd-ink-3);line-height:1.7;margin:10px 0 0;padding-left:10px;border-left:2px solid var(--hsd-line); }
#hsd .hsd-evidence-note b { color:#8a6428; }

#hsd .hsd-angles { display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }
@media(max-width:430px){ #hsd .hsd-angles { grid-template-columns:1fr; } }
#hsd .hsd-angle { position:relative;text-align:left;cursor:pointer;border:1px solid var(--hsd-edge);border-radius:14px;
  background:rgba(255,255,255,.5);padding:12px 12px 10px;font-family:inherit;color:var(--hsd-ink);
  transition:border-color 160ms ease,background 160ms ease,transform 160ms ease; }
#hsd .hsd-angle:hover { background:#ffffff8c;transform:translateY(-1px); }
#hsd .hsd-angle[aria-pressed="true"] { border-color:var(--hsd-green);background:#eaf4ec;box-shadow:0 0 0 1px #32775133; }
#hsd .hsd-angle-name { display:block;font-size:14px;font-weight:650; }
#hsd .hsd-angle[aria-pressed="true"] .hsd-angle-name { color:#245c3c; }
#hsd .hsd-angle-desc { display:block;margin-top:4px;font-size:11.5px;line-height:1.6;color:var(--hsd-ink-3); }
#hsd .hsd-check { display:none;position:absolute;top:8px;right:8px;width:16px;height:16px;border-radius:50%;background:var(--hsd-green);
  color:#fff;font-size:10px;align-items:center;justify-content:center; }
#hsd .hsd-angle[aria-pressed="true"] .hsd-check { display:flex; }

#hsd .hsd-brief { border:1px dashed #b8d3c1;border-radius:16px;background:rgba(255,255,255,.45);padding:16px 18px;font-size:13.5px;line-height:1.85; }
#hsd .hsd-brief h3 { margin:0 0 8px;font-size:13px;font-weight:650;color:#245c3c;letter-spacing:.04em; }
#hsd .hsd-brief ul { margin:0;padding-left:18px; }
#hsd .hsd-brief li { margin:3px 0; }
#hsd .hsd-brief-hint { margin:10px 0 0;font-size:11.5px;color:#8a6428;background:#fff8ec;border-radius:10px;padding:8px 12px;line-height:1.7; }

#hsd .hsd-foot { flex:none;display:flex;gap:10px;align-items:center;padding:14px 22px calc(16px + env(safe-area-inset-bottom));
  border-top:1px solid var(--hsd-line);background:rgba(249,255,250,.85);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px); }
#hsd .hsd-go { flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:0;border-radius:14px;cursor:pointer;
  font-size:15px;font-weight:650;font-family:inherit;color:#fff;background:linear-gradient(135deg,#2e8157,#246a47);
  box-shadow:0 10px 24px -12px rgba(38,94,62,.55);transition:transform 160ms ease,filter 160ms ease,opacity 160ms ease; }
#hsd .hsd-go:hover:not(:disabled) { transform:translateY(-1px);filter:brightness(1.04); }
#hsd .hsd-go:disabled { opacity:.45;cursor:default;box-shadow:none; }
#hsd .hsd-go-note { flex:none;max-width:96px;font-size:11px;line-height:1.5;color:var(--hsd-ink-3); }

#hsd .hsd-state { padding:26px 10px;text-align:center;color:var(--hsd-ink-3);font-size:13.5px;line-height:1.9; }
#hsd .hsd-state strong { display:block;margin-bottom:6px;color:var(--hsd-ink);font-size:14.5px; }
#hsd .hsd-lock-btn { margin-top:12px;min-height:40px;padding:9px 20px;border:0;border-radius:12px;cursor:pointer;
  background:var(--hsd-green-soft);color:#245c3c;font-size:13.5px;font-weight:600;font-family:inherit; }
#hsd .hsd-lock-btn:hover { background:#d3e8d8; }
#hsd .hsd-retry { margin-top:12px;min-height:40px;padding:9px 18px;border:0;border-radius:12px;cursor:pointer;
  background:#e1eee2;color:#2b573a;font-size:13.5px;font-family:inherit; }
#hsd .hsd-loading { padding:8px 0; }
#hsd .hsd-skel { display:block;height:14px;border-radius:8px;margin-bottom:12px;
  background:linear-gradient(90deg,#e4efe6 25%,#f2f8f3 45%,#e4efe6 65%);background-size:200% 100%;animation:hsd-sweep 1.1s infinite linear; }
@keyframes hsd-sweep { to { background-position:-200% 0; } }
@media(prefers-reduced-motion:reduce){ #hsd,#hsd-mask,#hsd .hsd-skel,#hsd .hsd-angle { transition:none!important;animation:none!important; } }
@media(prefers-reduced-transparency:reduce){ #hsd { background:#f3fbf5; } #hsd-mask { backdrop-filter:none;-webkit-backdrop-filter:none; } }

/* --- lowfans.css --- */
/* 低粉爆文榜 · 浅绿液态玻璃
   ────────────────────────────────────────────────────────────────
   材质沿用项目 liquid-glass.css 的三件套，不自造一套：
     ① background-image 斜向高光（绝不挂 ::after —— 伪元素画在文字之上会洗灰正文）
     ② background-color 白度 .73 打底（太低是毛玻璃糊，太高就不是玻璃）
     ③ backdrop-filter: blur(24px) saturate(165%)（24px 是实测值，过重会吃掉背景色场）
   边界分层：页头保持轻玻璃；概览、说明条和榜单行用低对比细线界定区域，
   控件保留清晰的功能边界。避免卡片套卡片，也避免把内容压成一整张白纸。

   配色在 #lowfans 作用域内定义，不污染全局 tokens —— 与 hotspots.css 同一做法。
   ──────────────────────────────────────────────────────────────── */

#lowfans.lf-page {
  --lf-glass: rgba(249, 255, 250, .79);
  --lf-glass-edge: rgba(255, 255, 255, .68);
  --lf-ink: #1b3d30;
  --lf-text: #527066;
  --lf-muted: #6f8b7d;
  --lf-faint: #8ea397;
  --lf-green: #4a9e7c;
  --lf-deep: #2f7f60;
  --lf-soft: #e8f4ed;
  --lf-line: rgba(72, 128, 99, .13);
  --lf-line-2: rgba(72, 128, 99, .22);
  --lf-amber: #a86b32;
  --lf-amber-soft: #fdf1e6;

  position: relative;
  container-type: inline-size;
  padding: 28px 30px 44px;
  color: var(--lf-text);
  background: transparent;
  min-width: 0;
  font-family: var(--sans);
}
#lowfans *,
#lowfans *::before,
#lowfans *::after { box-sizing: border-box; }
#lowfans [hidden] { display: none !important; }
#lowfans :is(a, button, input, select):focus-visible {
  outline: 3px solid var(--lf-green);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- 页头（A 级真玻璃） */
#lowfans .lf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 26px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: var(--lf-glass);
  border: 1px solid var(--lf-glass-edge);
  box-shadow: 0 8px 24px -20px rgba(53, 97, 70, .42);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
}
#lowfans .lf-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--lf-ink);
}
#lowfans .lf-head p {
  margin: 8px 0 0;
  max-width: 44em;
  font-size: 15px;
  line-height: 1.72;
  color: var(--lf-text);
}
#lowfans .lf-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-bottom: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lf-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#lowfans .lf-stamp b { color: var(--lf-deep); font-weight: 600; }
#lowfans .lf-stamp .is-warn { color: var(--lf-amber); }

/* ---------------------------------------------------------------- 概览 */
#lowfans .lf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 16px;
  background-color: rgba(249, 255, 250, .66);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
}
#lowfans .lf-stat {
  padding: 17px 19px 16px;
  border-right: 1px solid rgba(72, 128, 99, .1);
  background-color: rgba(255, 255, 255, .2);
}
#lowfans .lf-stat:last-child { border-right: 0; }
#lowfans .lf-stat k {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--lf-faint);
}
#lowfans .lf-stat v {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--lf-deep);
  font-variant-numeric: tabular-nums;
}
#lowfans .lf-stat v small {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--lf-muted);
}
#lowfans .lf-stat s {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--lf-muted);
  text-decoration: none;
}

/* ---------------------------------------------------------------- 工具条（B 级磨砂片） */
#lowfans .lf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 14px;
  background-color: rgba(249, 255, 250, .72);
  box-shadow: 0 5px 16px -14px rgba(36, 67, 47, .35);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
}
#lowfans .lf-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 240px;
  max-width: 380px;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(72, 128, 99, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  transition: border-color .18s ease, background .18s ease;
}
#lowfans .lf-search svg { flex: none; color: var(--lf-faint); }
#lowfans .lf-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--lf-ink);
}
#lowfans .lf-search input::placeholder { color: var(--lf-faint); }
#lowfans .lf-search:focus-within { border-color: var(--lf-green); background: #fff; }

#lowfans .lf-select {
  min-height: 42px;
  padding: 0 34px 0 14px;
  border: 1px solid rgba(72, 128, 99, .09);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, .72);
  color: var(--lf-text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--lf-faint) 50%),
    linear-gradient(135deg, var(--lf-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
#lowfans .lf-select:hover { border-color: var(--lf-line-2); }

#lowfans .lf-export {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(72, 128, 99, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--lf-text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
#lowfans .lf-export:hover { border-color: var(--lf-green); color: var(--lf-deep); background: #fff; }
#lowfans .lf-export:disabled { opacity: .5; cursor: not-allowed; }
#lowfans .lf-bar-tail {
  margin-left: auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--lf-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 赛道 */
#lowfans .lf-tracks {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 4px 2px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(72, 128, 99, .1);
  scrollbar-width: none;
}
#lowfans .lf-track {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .46);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lf-text);
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
#lowfans .lf-track:hover {
  border-color: rgba(72, 128, 99, .12);
  background: rgba(255, 255, 255, .85);
}
#lowfans .lf-track n {
  font-size: 11px;
  color: var(--lf-faint);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
#lowfans .lf-track[aria-pressed="true"] {
  background: linear-gradient(180deg, #b7ddc9, #a0cfb8);
  border-color: transparent;
  color: #164e39;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 8px 18px -16px rgba(34, 106, 80, .45);
}
#lowfans .lf-track[aria-pressed="true"] n { color: rgba(22, 78, 57, .55); }
#lowfans .lf-track.is-empty { opacity: .45; }

/* ---------------------------------------------------------------- 列表 */
#lowfans .lf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(249, 255, 250, .58);
  border: 1px solid rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
}
#lowfans .lf-row:first-child { border-radius: 18px 18px 0 0; }
#lowfans .lf-row:last-child { border-bottom: 0; }

#lowfans .lf-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 0 16px;
  padding: 16px 20px 15px;
  border-bottom: 1px solid rgba(72, 128, 99, .12);
  background-color: rgba(255, 255, 255, .12);
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
#lowfans .lf-row:hover {
  border-bottom-color: rgba(72, 128, 99, .2);
  background-color: rgba(255, 255, 255, .48);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -24px rgba(34, 82, 58, .35);
}

#lowfans .lf-rank {
  grid-column: 1;
  align-self: start;
  padding-top: 3px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lf-faint);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
/* 前三名共用一套尺寸规则：只写 is-top 会让 2、3 名撑满整列、数字贴左上角 */
#lowfans .lf-rank.is-top,
#lowfans .lf-rank.is-top2,
#lowfans .lf-rank.is-top3 {
  width: 30px;
  height: 30px;
  margin: 0 auto;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 14px -14px rgba(47, 127, 96, .5);
}
#lowfans .lf-rank.is-top  { background: linear-gradient(180deg, #b3dcc8, #9bcdb4); color: #164e39; }
#lowfans .lf-rank.is-top2 { background: linear-gradient(180deg, #c6e5d6, #aed5c2); color: #1d5a42; }
#lowfans .lf-rank.is-top3 { background: linear-gradient(180deg, #d8ece2, #c3e0cf); color: #266a4f; }

#lowfans .lf-title {
  grid-column: 2;
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 550;
  letter-spacing: -.005em;
  color: var(--lf-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
#lowfans .lf-title:hover {
  color: var(--lf-deep);
  text-decoration: underline;
  text-decoration-color: rgba(74, 158, 124, .4);
  text-underline-offset: 3px;
}

#lowfans .lf-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 11px;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--lf-muted);
  font-variant-numeric: tabular-nums;
}
#lowfans .lf-meta .lf-name { color: var(--lf-text); font-weight: 550; }
#lowfans .lf-meta .lf-base { color: var(--lf-faint); }
#lowfans .lf-type {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--lf-soft);
  color: var(--lf-deep);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
}
#lowfans .lf-type.is-other { background: rgba(120, 140, 130, .13); color: var(--lf-muted); }

#lowfans .lf-metrics {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--lf-faint);
  font-variant-numeric: tabular-nums;
}
#lowfans .lf-metrics b { font-weight: 600; color: var(--lf-text); }

#lowfans .lf-side {
  grid-column: 3;
  /* 显式跨满三行并贴顶：auto 放置会把它排到第二行，比标题低 50px */
  grid-row: 1 / span 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
#lowfans .lf-side-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
#lowfans .lf-boost {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--lf-soft);
  color: var(--lf-deep);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#lowfans .lf-boost small { font-size: 11px; font-weight: 600; opacity: .75; }
#lowfans .lf-boost.is-hot { background: var(--lf-amber-soft); color: var(--lf-amber); }
#lowfans .lf-score {
  font-size: 11px;
  line-height: 1.6;
  color: var(--lf-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#lowfans .lf-actions { display: flex; gap: 6px; }
#lowfans .lf-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid rgba(72, 128, 99, .1);
  background: rgba(255, 255, 255, .6);
  color: var(--lf-text);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
#lowfans .lf-act:hover { border-color: var(--lf-green); color: var(--lf-deep); background: #fff; }
#lowfans .lf-act.is-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #3f9176, #2f7a60);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -16px rgba(34, 106, 80, .9);
}
#lowfans .lf-act.is-primary:hover { color: #fff; filter: brightness(1.06); }

/* ---------------------------------------------------------------- 状态 */
#lowfans .lf-note {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid rgba(72, 128, 99, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .38);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--lf-muted);
}
#lowfans .lf-note b { color: var(--lf-text); font-weight: 600; }
#lowfans .lf-note.is-warn {
  border-style: solid;
  border-color: rgba(168, 107, 50, .22);
  background: var(--lf-amber-soft);
  color: var(--lf-amber);
}

#lowfans .lf-empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--lf-muted);
  border-radius: 16px;
  background: rgba(255, 255, 255, .38);
}
#lowfans .lf-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lf-text);
}
#lowfans .lf-empty p { margin: 0; font-size: 13px; line-height: 1.8; }

#lowfans .lf-loading { padding: 48px 0; text-align: center; color: var(--lf-muted); font-size: 13px; }

#lowfans .lf-more {
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 14px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, .46);
  color: var(--lf-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
#lowfans .lf-more:hover { color: var(--lf-deep); background: rgba(255, 255, 255, .8); }

/* 全局 shell 会给所有 section 注入实色底，这两个榜单需要透出浅绿环境光。 */
body.atelier.lowfans-body #lowfans.lf-page {
  background: transparent !important;
}
@media (max-width: 1100px) {
  body.atelier.lowfans-body,
  body.atelier.topic-library-body {
    background: radial-gradient(ellipse at 30% 10%, #b4dec5 0, transparent 65%), linear-gradient(135deg, #c5e3d0, #e0ecdc) !important;
    background-attachment: fixed !important;
  }
}

/* ---------------------------------------------------------------- 响应式 */
@media (min-width: 1101px) {
  body.atelier.lowfans-body,
  body.atelier.topic-library-body {
    background: radial-gradient(ellipse at 30% 10%, #b4dec5 0, transparent 65%), linear-gradient(135deg, #c5e3d0, #e0ecdc) !important;
    background-attachment: fixed !important;
  }
  body.atelier.lowfans-body .app-shell {
    display: block !important;
    max-width: none !important;
    padding: 28px 40px 30px 0 !important;
    background: transparent !important;
  }
  body.atelier.lowfans-body #lowfans.lf-page {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  body.atelier.lowfans-body .app-shell { padding-right: 28px !important; }
}
@supports not (backdrop-filter: blur(12px)) {
  #lowfans .lf-head, #lowfans .lf-stats, #lowfans .lf-bar, #lowfans .lf-list { background: #f3fbf5; }
}
@media (prefers-reduced-transparency: reduce) {
  #lowfans .lf-head, #lowfans .lf-stats, #lowfans .lf-bar, #lowfans .lf-list {
    background: #f3fbf5;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@container (max-width: 980px) {
  #lowfans .lf-head { padding: 24px 24px; border-radius: 20px; }
}
@container (max-width: 720px) {
  #lowfans.lf-page { padding: 18px 15px 42px; }
  #lowfans .lf-head { padding: 20px; border-radius: 20px; gap: 12px; }
  #lowfans .lf-head h1 { font-size: 28px; }
  #lowfans .lf-head p { font-size: 14px; margin-top: 8px; }
  #lowfans .lf-stamp { margin-left: 0; white-space: normal; padding-bottom: 0; }
  #lowfans .lf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #lowfans .lf-stat { padding: 13px 13px 12px; border-radius: 13px; }
  #lowfans .lf-stat v { font-size: 20px; }
  #lowfans .lf-stat s { display: none; }
  #lowfans .lf-bar { padding: 10px; gap: 8px; }
  #lowfans .lf-search { flex: 1 1 100%; max-width: none; }
  #lowfans .lf-select,
  #lowfans .lf-export { flex: 1 1 auto; min-width: 0; }
  #lowfans .lf-bar-tail { flex: 1 1 100%; margin-left: 0; text-align: left; }
  #lowfans .lf-tracks { padding-bottom: 10px; }
  #lowfans .lf-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0 11px;
    padding: 15px 15px 14px;
    border-radius: 12px;
  }
  #lowfans .lf-rank { font-size: 16px; }
  #lowfans .lf-rank.is-top,
  #lowfans .lf-rank.is-top2,
  #lowfans .lf-rank.is-top3 { width: 26px; height: 26px; font-size: 13px; }
  #lowfans .lf-title { font-size: 15px; }
  #lowfans .lf-side {
    grid-column: 2;
    grid-row: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    margin-top: 11px;
    gap: 9px;
  }
  #lowfans .lf-side .lf-actions { margin-left: auto; }
}

/* ---- UI 稿落地：信息优先行式榜单 + 详情抽屉（覆盖本模块内旧行样式） ---- */
#lowfans .lf-table{border:1px solid var(--lf-line);border-radius:14px;background:rgba(255,255,255,.82);overflow:hidden}
#lowfans .lf-table .lf-row{grid-template-columns:40px minmax(0,1fr) 92px 104px 108px 132px;gap:12px;align-items:center;padding:14px 16px;min-height:100px;border-bottom:1px solid #edf2ed;border-radius:0}
#lowfans .lf-table .lf-row:last-child{border-bottom:0}
#lowfans .lf-table .lf-row:hover{transform:none;box-shadow:none;background:#fbfdfa}
#lowfans .lf-table .lf-rank{grid-column:1;grid-row:auto;align-self:center;margin:0;padding:0;width:auto;height:auto;display:block;border-radius:0;box-shadow:none;font-size:18px;background:none!important;color:#87998d}
#lowfans .lf-table .lf-rank.is-top,#lowfans .lf-table .lf-rank.is-top2,#lowfans .lf-table .lf-rank.is-top3{background:none!important;color:var(--lf-deep)!important;font-size:18px;width:auto;height:auto;margin:0;box-shadow:none}
#lowfans .lf-title-cell{grid-column:2;grid-row:auto;min-width:0}
#lowfans .lf-table .lf-title{display:block;grid-column:auto;width:100%;text-align:left;border:0;background:none;padding:0;font-size:15px;line-height:1.6;font-weight:700;color:var(--lf-ink);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#lowfans .lf-table .lf-title:hover{color:var(--lf-deep);text-decoration:underline;text-underline-offset:3px}
#lowfans .lf-table .lf-meta{grid-column:auto;grid-row:auto;margin-top:8px}
#lowfans .lf-when{color:var(--lf-faint)}
#lowfans .lf-cell{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
#lowfans .lf-cell b{font-size:16px;font-weight:750;font-variant-numeric:tabular-nums;color:var(--lf-ink)}
#lowfans .lf-cell b i{font-style:normal;font-size:12px;margin-left:1px}
#lowfans .lf-cell small{font-size:12px;color:#879488;margin-top:5px}
#lowfans .lf-cell-boost b{color:var(--lf-deep)}
#lowfans .lf-cell-boost b.is-hot{color:#c2703b}
#lowfans .lf-table .lf-actions{grid-column:auto;grid-row:auto;display:flex;flex-direction:column;gap:6px;align-items:stretch}
#lowfans .lf-table .lf-act{min-height:37px;padding:6px 10px;font-size:12px;border:1px solid var(--lf-line);border-radius:9px;background:#fff;color:var(--lf-ink);font-weight:600;cursor:pointer;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
#lowfans .lf-table .lf-act.is-primary{background:var(--lf-deep);border-color:var(--lf-deep);color:#fff}
#lowfans .lf-shade{position:fixed;inset:0;z-index:60;background:#10291d66}
#lowfans .lf-shade[hidden],#lowfans .lf-drawer[hidden]{display:none!important}
#lowfans .lf-drawer{position:fixed;top:0;bottom:0;right:0;width:min(450px,100vw);overflow:auto;background:var(--lf-paper,#fff);z-index:70;padding:24px;box-shadow:-12px 0 50px #132b1922}
#lowfans .lf-drawer-head{display:flex;align-items:center;justify-content:space-between}
#lowfans .lf-drawer-badge{font-size:12px;font-weight:700;padding:5px 9px;border-radius:20px;background:#f9f0df;color:#986a35}
#lowfans .lf-drawer-close{width:44px;height:44px;border:1px solid var(--lf-line);border-radius:50%;background:#fff;color:var(--lf-ink);font-size:22px;line-height:1;cursor:pointer}
#lowfans .lf-drawer h2{font:600 24px/1.5 var(--serif);margin:26px 0 12px;color:var(--lf-ink)}
#lowfans .lf-detail-sub{font-size:13px;color:var(--lf-muted);line-height:1.8;margin:0}
#lowfans .lf-detail-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
#lowfans .lf-detail-metrics section{padding:12px;border-radius:10px;background:#f4f8f4}
#lowfans .lf-detail-metrics small{display:block;font-size:12px;color:var(--lf-muted);margin-bottom:5px}
#lowfans .lf-detail-metrics b{font-size:20px;color:var(--lf-ink)}
#lowfans .lf-detail-note{font-size:12px;line-height:1.8;color:var(--lf-muted);padding:14px;border:1px solid var(--lf-line);border-radius:10px;background:#f7faf8}
#lowfans .lf-detail-siblings h3{font:600 16px var(--serif);margin:22px 0 10px}
#lowfans .lf-sibling{display:flex;justify-content:space-between;gap:10px;width:100%;min-height:42px;padding:8px 10px;border:0;border-bottom:1px solid var(--lf-line);background:none;color:var(--lf-text);font-size:12.5px;text-align:left;cursor:pointer}
#lowfans .lf-sibling:hover{color:var(--lf-deep)}
#lowfans .lf-sibling n{font-variant-numeric:tabular-nums;color:var(--lf-deep)}
#lowfans .lf-detail-actions{display:flex;gap:8px;margin-top:24px}
#lowfans .lf-detail-actions .lf-act{flex:1}
#lowfans .lf-drawer-loading{font-size:13px;color:var(--lf-muted);padding:20px 0}
@media(max-width:1120px){
  #lowfans .lf-table .lf-row{grid-template-columns:28px minmax(0,1fr) 88px 96px 124px}
  #lowfans .lf-table .lf-cell-base{display:none}
}
@media(max-width:850px){
  #lowfans .lf-table .lf-row{grid-template-columns:24px minmax(0,1fr) auto;gap:9px;padding:14px}
  #lowfans .lf-table .lf-title-cell{grid-column:2/span 2}
  #lowfans .lf-table .lf-cell-read{grid-column:2}
  #lowfans .lf-table .lf-cell-boost{grid-column:3}
  #lowfans .lf-table .lf-cell-base{display:none}
  #lowfans .lf-table .lf-actions{grid-column:2/span 2;flex-direction:row;justify-content:flex-end}
}
@media(max-width:640px){
  #lowfans .lf-drawer{padding:17px}
  #lowfans .lf-table .lf-row{min-height:auto}
  #lowfans .lf-table .lf-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}

/* ---- 扩展筛选：紧凑一行 + 展开面板 ---- */
#lowfans .lf-extra-btn{min-height:44px;padding:0 14px;border:1px solid var(--lf-line);border-radius:10px;background:rgba(255,255,255,.6);color:var(--lf-deep);font-weight:650;cursor:pointer;white-space:nowrap}
#lowfans .lf-extra-btn:hover{border-color:#8dae98}
#lowfans .lf-extra{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end;margin-top:12px;padding:16px;border:1px dashed var(--lf-line);border-radius:14px;background:rgba(255,255,255,.5)}
#lowfans .lf-extra[hidden]{display:none}
#lowfans .lf-field{display:flex;flex-direction:column;gap:6px;min-width:0}
#lowfans .lf-field>span{font-size:12px;font-weight:700;color:var(--lf-text)}
#lowfans .lf-field select,#lowfans .lf-field button{height:44px;padding:0 12px;border:1px solid #dbe6de;border-radius:10px;background:#fff;color:var(--lf-ink);font-size:13px;min-width:0;width:100%;text-align:left}
#lowfans .lf-field-disabled button{opacity:.5;cursor:not-allowed;color:var(--lf-muted)}
#lowfans .lf-reset{min-height:44px;padding:0 12px;border:0;background:none;color:var(--lf-deep);text-decoration:underline;cursor:pointer;white-space:nowrap}
@media(max-width:850px){#lowfans .lf-extra{grid-template-columns:repeat(2,minmax(0,1fr))}#lowfans .lf-reset{grid-column:span 2}}
@media(max-width:640px){#lowfans .lf-extra-btn{grid-column:span 2;min-height:38px}#lowfans .lf-extra{grid-template-columns:1fr;padding:12px}#lowfans .lf-reset{grid-column:auto}}

/* 详情抽屉里的查看原文：描边强调 */
#lowfans .lf-detail-actions{flex-wrap:wrap}
#lowfans .lf-act-source{border-color:var(--lf-deep);color:var(--lf-deep);font-weight:700}
#lowfans .lf-act-source:hover{background:var(--lf-deep);color:#fff;text-decoration:none}

/* --- image-board.css --- */
/* 低分爆图 · 封面优先的图片榜
   ────────────────────────────────────────────────────────────────
   和低粉爆文（行式榜单）不同，这一页的主角是封面本身，所以采用竖图网格
   （3:4，微信贴图的主流比例），数据和标题让位给图片。
   材质沿用工作台的浅绿玻璃：白度打底 + 细线分层，不做卡片套卡片。
   所有选择器都挂在 #image-board 下，不污染全局。
   ──────────────────────────────────────────────────────────────── */

#image-board.ib-page {
  --ib-ink: #172a23;
  --ib-body: #4a5d54;
  --ib-muted: #84968d;
  --ib-faint: #9aaba2;
  --ib-accent: #2f7f60;
  --ib-line: rgba(40, 86, 66, .12);
  --ib-line-2: rgba(40, 86, 66, .2);
  --ib-warm: #9a6428;
  --ib-warm-soft: #fdf3e7;

  position: relative;
  container-type: inline-size;
  min-width: 0;
  padding: 28px 30px 44px;
  color: var(--ib-body);
  background: transparent;
  font-family: var(--sans);
}
#image-board *,
#image-board *::before,
#image-board *::after { box-sizing: border-box; }
#image-board [hidden] { display: none !important; }
#image-board :is(a, button, input, select):focus-visible {
  outline: 3px solid var(--ib-accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- 页头 */
#image-board .ib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 26px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: rgba(249, 255, 250, .79);
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: 0 8px 24px -20px rgba(53, 97, 70, .42);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
}
#image-board .ib-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ib-ink);
}
#image-board .ib-head p {
  margin: 11px 0 0;
  max-width: 42em;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ib-body);
}
#image-board .ib-stamp {
  margin-left: auto;
  padding-bottom: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ib-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#image-board .ib-stamp b { color: var(--ib-accent); font-weight: 600; }

/* ---------------------------------------------------------------- 范围切换（玻璃容器） */
#image-board .ib-scopes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 4px;
  padding: 10px 14px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, .48);
  background-image: linear-gradient(135deg,
    rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .08) 50%,
    rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .16) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
#image-board .ib-scope {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--ib-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  font: inherit;
  font-size: 13.5px;
  color: var(--ib-body);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
#image-board .ib-scope:hover { border-color: var(--ib-line-2); background: #fff; }
#image-board .ib-scope n {
  font-size: 11.5px;
  color: var(--ib-faint);
  font-variant-numeric: tabular-nums;
}
#image-board .ib-scope[aria-selected="true"] {
  background: linear-gradient(180deg, #b7ddc9, #a0cfb8);
  border-color: transparent;
  color: #164e39;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 8px 18px -16px rgba(34, 106, 80, .5);
}
#image-board .ib-scope[aria-selected="true"] n { color: rgba(22, 78, 57, .55); }

/* ---------------------------------------------------------------- 口径说明（收敛为内联提示） */
#image-board .ib-note {
  margin: 0 0 10px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(232, 244, 237, .38);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ib-faint);
}
#image-board .ib-note b { color: var(--ib-muted); font-weight: 600; }

/* ---------------------------------------------------------------- 工具条（玻璃层） */
#image-board .ib-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 14px;
  background: rgba(249, 255, 250, .72);
  box-shadow: 0 5px 16px -14px rgba(36, 67, 47, .35);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
  backdrop-filter: blur(10px) saturate(115%);
}
#image-board .ib-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 240px;
  max-width: 360px;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(40, 86, 66, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .74);
  transition: border-color .18s ease, background .18s ease;
}
#image-board .ib-search svg { flex: none; color: var(--ib-faint); }
#image-board .ib-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ib-ink);
}
#image-board .ib-search input::placeholder { color: var(--ib-faint); }
#image-board .ib-search:focus-within { border-color: var(--ib-accent); background: #fff; }

#image-board .ib-select {
  min-height: 42px;
  padding: 0 34px 0 14px;
  border: 1px solid rgba(40, 86, 66, .09);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, .74);
  color: var(--ib-body);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ib-faint) 50%),
    linear-gradient(135deg, var(--ib-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
#image-board .ib-select:hover { border-color: var(--ib-line-2); }
#image-board .ib-tail {
  margin-left: auto;
  font-size: 12px;
  color: var(--ib-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 赛道 */
#image-board .ib-tracks {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 4px 2px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ib-line);
  scrollbar-width: none;
}
#image-board .ib-track {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
  font: inherit;
  font-size: 13px;
  color: var(--ib-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
#image-board .ib-track:hover { border-color: var(--ib-line); background: rgba(255, 255, 255, .86); }
#image-board .ib-track n { font-size: 12px; line-height: 1.5; color: var(--ib-muted); font-variant-numeric: tabular-nums; }
#image-board .ib-track.is-active {
  background: #e1eee2;
  border-color: transparent;
  color: #285b3a;
  font-weight: 600;
}
#image-board .ib-track.is-active n { color: rgba(29, 92, 67, .6); }

/* ---------------------------------------------------------------- 网格 */
#image-board .ib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 16px;
  align-items: start;
}

#image-board .ib-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: rgba(249, 255, 250, .72);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
  box-shadow: 0 8px 24px -20px rgba(53, 97, 70, .42);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
#image-board .ib-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .72);
  background-color: rgba(255, 255, 255, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 40px -26px rgba(24, 64, 46, .6);
}

/* 封面：3:4 竖图，图片进入后用淡入削掉加载突变 */
#image-board .ib-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(160deg, #eef3ef, #e3ebe5);
}
#image-board .ib-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .34s ease, transform .5s ease;
}
#image-board .ib-card:hover .ib-cover img { transform: scale(1.035); }
#image-board .ib-cover img.is-ready { opacity: 1; }

/* 取不到图时的占位：不显示破图图标，改用浅色块 + 标题前两个字 */
#image-board .ib-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .08em;
  color: rgba(23, 68, 50, .5);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(183, 221, 201, .85), transparent 62%),
    linear-gradient(150deg, #eef5f0, #dfe9e2);
}

#image-board .ib-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(18, 45, 34, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
#image-board .ib-rank.is-top { background: #b8762c; }

#image-board .ib-kind {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, .88);
  color: #3c6a55;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* 封面底部压一层渐变条，把「阅读 / 分享」直接压在图上，节省纵向空间 */
#image-board .ib-onimg {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 10px 9px;
  background: linear-gradient(to top, rgba(12, 32, 24, .8), rgba(12, 32, 24, .28) 52%, transparent);
  color: #fff;
  pointer-events: none;
}
#image-board .ib-read {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
#image-board .ib-read small { margin-left: 2px; font-size: 12px; font-weight: 500; opacity: .82; }
#image-board .ib-share {
  font-size: 11px;
  opacity: .9;
  font-variant-numeric: tabular-nums;
}
#image-board .ib-boost {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 214, 156, .95);
  color: #6b3f0e;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* 卡片正文 */
#image-board .ib-body { padding: 10px 4px 0; min-width: 0; }
#image-board .ib-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.42;
  font-weight: 600;
  color: var(--ib-ink);
  text-decoration: none;
}
#image-board .ib-title:hover { color: var(--ib-accent); }
#image-board .ib-sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ib-faint);
}
#image-board .ib-facts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ib-muted);
}
#image-board .ib-facts em {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(40, 86, 66, .055);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#image-board .ib-facts em.is-warm { background: var(--ib-warm-soft); color: var(--ib-warm); }

#image-board .ib-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}
#image-board .ib-act {
  flex: 1;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ib-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .8);
  font-size: 12.5px;
  color: var(--ib-body);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
#image-board .ib-act:hover { border-color: var(--ib-accent); color: var(--ib-accent); background: #fff; }
#image-board .ib-act.is-primary {
  border-color: transparent;
  background: #dcefe4;
  color: #1d5c43;
  font-weight: 600;
}
#image-board .ib-act.is-primary:hover { background: #cbe7d8; color: #164e39; }

/* ---------------------------------------------------------------- 状态 */
#image-board .ib-empty {
  padding: 64px 20px;
  text-align: center;
  color: var(--ib-muted);
}
#image-board .ib-empty strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ib-ink);
}
#image-board .ib-empty p { margin: 0; font-size: 13px; line-height: 1.7; }

/* 骨架屏：切换赛道时先占位，避免页面高度塌陷 */
#image-board .ib-skeleton .ib-cover {
  background: linear-gradient(100deg, #eef3ef 30%, #f7faf8 50%, #eef3ef 70%);
  background-size: 220% 100%;
  animation: ib-shimmer 1.15s linear infinite;
}
@keyframes ib-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
  #image-board .ib-card,
  #image-board .ib-cover img { transition: none; }
  #image-board .ib-skeleton .ib-cover { animation: none; }
}

/* 全局 shell 会给所有 section 注入实色底，爆图页需透出浅绿环境光。 */
body.atelier.image-board-body #image-board.ib-page {
  background: transparent !important;
}
@media (max-width: 1100px) {
  body.atelier.image-board-body {
    background: radial-gradient(ellipse at 30% 10%, #b4dec5 0, transparent 65%), linear-gradient(135deg, #c5e3d0, #e0ecdc) !important;
    background-attachment: fixed !important;
  }
}

/* ---------------------------------------------------------------- 窄屏 */
@media (min-width: 1101px) {
  body.atelier.image-board-body {
    background: radial-gradient(ellipse at 30% 10%, #b4dec5 0, transparent 65%), linear-gradient(135deg, #c5e3d0, #e0ecdc) !important;
    background-attachment: fixed !important;
  }
  body.atelier.image-board-body .app-shell {
    display: block !important;
    max-width: none !important;
    padding: 28px 40px 30px 0 !important;
    background: transparent !important;
  }
  body.atelier.image-board-body #image-board.ib-page {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  body.atelier.image-board-body .app-shell { padding-right: 28px !important; }
}
@supports not (backdrop-filter: blur(12px)) {
  #image-board .ib-head, #image-board .ib-bar, #image-board .ib-card { background: #f3fbf5; }
}
@media (prefers-reduced-transparency: reduce) {
  #image-board .ib-head, #image-board .ib-bar, #image-board .ib-card {
    background: #f3fbf5;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@container (max-width: 620px) {
  #image-board .ib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  #image-board .ib-title { font-size: 13.5px; }
  #image-board .ib-sub { display: none; }
  #image-board .ib-actions .ib-act.is-primary { display: none; }
}
@media (max-width: 640px) {
  #image-board.ib-page { padding: 20px 15px 44px; }
  #image-board .ib-head { padding: 20px; border-radius: 20px; }
  #image-board .ib-head h1 { font-size: 28px; }
  #image-board .ib-head p { font-size: 14px; }
  #image-board .ib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #image-board .ib-card { padding: 7px 7px 10px; border-radius: 14px; }
  #image-board .ib-title { font-size: 13px; }
  #image-board .ib-sub { display: none; }
  #image-board .ib-actions { display: none; }
  #image-board .ib-tail { width: 100%; margin-left: 0; }
  #image-board .ib-select { flex: 1 1 auto; }
}

#image-board .ib-act.ib-extract { flex: 2; padding: 6px 4px; background: #21744c; border-color: #21744c; color: #fff; font-weight: 600; text-align: center; line-height: 1.3; }
#image-board .ib-act.ib-extract:hover { background: #195f3d; color: #fff; }
@media (max-width: 640px) { #image-board .ib-actions { display: flex; } #image-board .ib-actions .ib-act:not(.ib-extract) { display: none; } #image-board .ib-act.ib-extract { min-height: 40px; font-size: 12px; } }

#image-board .ib-actions { flex-wrap: wrap; }
#image-board .ib-act.ib-extract { flex: 1 0 100%; order: 3; }
@media (max-width: 640px) { #image-board .ib-actions .ib-act:not(.ib-extract) { display: inline-flex; } #image-board .ib-actions .ib-act.ib-similar { display: inline-flex; } }

/* ---- 栅格：按卡片原始 212px 自适应，1440 屏 5 列 / 宽屏 6 列 / 窄屏递减 ---- */
#image-board .ib-grid{grid-template-columns:repeat(auto-fill,minmax(212px,1fr));gap:16px}
#image-board .ib-cover{aspect-ratio:3/4;cursor:pointer}
#image-board .ib-title{display:block;width:100%;text-align:left;border:0;background:none;padding:0;color:var(--ib-ink);font-weight:700;line-height:1.6;cursor:pointer}
#image-board .ib-title:hover{color:var(--ib-accent)}
#image-board .ib-shade{position:fixed;inset:0;z-index:60;background:#10291d66}
#image-board .ib-shade[hidden],#image-board .ib-drawer[hidden]{display:none!important}
#image-board .ib-drawer{position:fixed;top:0;bottom:0;right:0;width:min(450px,100vw);overflow:auto;background:#fff;z-index:70;padding:24px;box-shadow:-12px 0 50px #132b1922}
#image-board .ib-drawer-head{display:flex;align-items:center;justify-content:space-between}
#image-board .ib-drawer-badge{font-size:12px;font-weight:700;padding:5px 9px;border-radius:20px;background:#f9f0df;color:#986a35}
#image-board .ib-drawer-close{width:44px;height:44px;border:1px solid var(--ib-line);border-radius:50%;background:#fff;color:var(--ib-ink);font-size:22px;line-height:1;cursor:pointer}
#image-board .ib-detail-cover{display:block;width:160px;aspect-ratio:3/4;margin:20px auto 0;object-fit:cover;border-radius:10px;background:#eef3ef}
#image-board .ib-drawer h2{font:600 24px/1.5 var(--serif);margin:24px 0 12px;color:var(--ib-ink)}
#image-board .ib-detail-sub{font-size:13px;color:var(--ib-muted);line-height:1.8;margin:0}
#image-board .ib-detail-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
#image-board .ib-detail-metrics section{padding:12px;border-radius:10px;background:#f4f8f4}
#image-board .ib-detail-metrics small{display:block;font-size:12px;color:var(--ib-muted);margin-bottom:5px}
#image-board .ib-detail-metrics b{font-size:20px;color:var(--ib-ink)}
#image-board .ib-detail-note{font-size:12px;line-height:1.8;color:var(--ib-muted);padding:14px;border:1px solid var(--ib-line);border-radius:10px;background:#f7faf8}
#image-board .ib-detail-actions{display:flex;gap:8px;margin-top:24px}
#image-board .ib-detail-actions .ib-act{flex:1;text-align:center;text-decoration:none}
/* 列数交给 auto-fill 自适应，不再固定 3 列 */
@media(max-width:640px){#image-board .ib-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#image-board .ib-drawer{padding:17px}}

/* ---- 扩展筛选：紧凑一行 + 展开面板 ---- */
#image-board .ib-extra-btn{min-height:44px;padding:0 14px;border:1px solid var(--ib-line);border-radius:10px;background:rgba(255,255,255,.6);color:var(--ib-accent);font-weight:650;cursor:pointer;white-space:nowrap}
#image-board .ib-extra-btn:hover{border-color:#8dae98}
#image-board .ib-extra{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end;margin-top:12px;padding:16px;border:1px dashed var(--ib-line);border-radius:14px;background:rgba(255,255,255,.5)}
#image-board .ib-extra[hidden]{display:none}
#image-board .ib-field{display:flex;flex-direction:column;gap:6px;min-width:0}
#image-board .ib-field>span{font-size:12px;font-weight:700;color:var(--ib-body)}
#image-board .ib-field select,#image-board .ib-field button{height:44px;padding:0 12px;border:1px solid #dbe6de;border-radius:10px;background:#fff;color:var(--ib-ink);font-size:13px;min-width:0;width:100%;text-align:left}
#image-board .ib-field-disabled button{opacity:.5;cursor:not-allowed;color:var(--ib-muted)}
#image-board .ib-reset{min-height:44px;padding:0 12px;border:0;background:none;color:var(--ib-accent);text-decoration:underline;cursor:pointer;white-space:nowrap}
@media(max-width:850px){#image-board .ib-extra{grid-template-columns:repeat(2,minmax(0,1fr))}#image-board .ib-reset{grid-column:span 2}}
@media(max-width:640px){#image-board .ib-extra-btn{grid-column:span 2;min-height:38px}#image-board .ib-extra{grid-template-columns:1fr;padding:12px}#image-board .ib-reset{grid-column:auto}}

/* 详情抽屉里的查看原文：描边强调 */
#image-board .ib-detail-actions{flex-wrap:wrap}
#image-board .ib-act-source{border-color:var(--ib-accent);color:var(--ib-accent);font-weight:700}
#image-board .ib-act-source:hover{background:var(--ib-accent);color:#fff;text-decoration:none}

/* --- viral-insights-membership.css --- */
/* 爆款情报会员：复用现有薄荷玻璃风格变量，不引入新设计体系。 */
.vi-membership-button {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 14px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(46, 125, 90, .28); background: rgba(255, 255, 255, .72);
  color: #1f6b4a; font: 600 13px/1.4 var(--sans, system-ui); cursor: pointer;
}
.vi-membership-button[data-status="member_active"],
.vi-membership-button span[data-status="member_active"] { color: #0f7b3f; }
.vi-preview { display: grid; gap: 16px; }
.vi-preview ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vi-preview-row {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .7);
  filter: saturate(.9);
}
.vi-preview-row span { font-weight: 700; color: #1f6b4a; }
.vi-preview-row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-preview-row em { font-style: normal; font-size: 12px; color: #6b7280; }
.vi-lock {
  padding: 22px; border-radius: 18px; text-align: center;
  background: linear-gradient(135deg, rgba(212, 241, 222, .7), rgba(255, 255, 255, .8));
  border: 1px dashed rgba(46, 125, 90, .35);
}
.vi-lock strong { display: block; font-size: 15px; margin-bottom: 6px; }
.vi-lock p { margin: 0 0 14px; color: #4b5563; font-size: 13px; }
.vi-primary {
  display: inline-block; padding: 9px 20px; border-radius: 999px; border: 0;
  background: #1f6b4a; color: #fff; font-weight: 600; cursor: pointer; text-decoration: none;
}
.vi-card { max-width: 460px; }
.vi-head { display: flex; justify-content: space-between; align-items: center; }
.vi-head h2 { margin: 0; font-size: 18px; }
.vi-close { border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.vi-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.vi-packages button {
  display: grid; gap: 4px; padding: 14px 8px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(46, 125, 90, .3); background: #fff;
}
.vi-packages button:hover { border-color: #1f6b4a; }
.vi-packages b { font-size: 15px; }
.vi-packages span { font-size: 12px; color: #4b5563; }
.vi-pending { padding: 8px 12px; border-radius: 10px; background: #fff5e6; color: #a15c00; font-size: 13px; }
.vi-member-note { margin: 0 0 14px; padding: 10px 13px; border: 1px solid #cfe5d7; border-radius: 12px; background: #eff9f0; color: #245c38; font-size: 13px; line-height: 1.6; }
.vi-foot { margin: 14px 0 0; font-size: 12px; color: #6b7280; }
@media (max-width: 560px) { .vi-packages { grid-template-columns: 1fr; } }

/* Member dialog: scoped overrides for the site's shared modal surfaces. */
body.atelier #viral-insights-membership-modal.vi-modal {
  background: rgba(18, 54, 37, .30) !important;
  border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: blur(12px) !important; backdrop-filter: blur(12px) !important;
}
body.atelier #viral-insights-membership-modal .vi-card {
  box-sizing: border-box; width: min(540px, 100%) !important;
  max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
  padding: 28px !important; border-radius: 26px !important;
  border: 1px solid rgba(255,255,255,.82) !important;
  color: #1b4631 !important;
  background: linear-gradient(145deg, rgba(239,255,243,.96), rgba(210,237,219,.92) 55%, rgba(244,255,246,.96)) !important;
  box-shadow: 0 24px 70px rgba(17,62,36,.24), inset 0 1px 0 rgba(255,255,255,.9) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important; backdrop-filter: blur(28px) saturate(140%) !important;
}
#viral-insights-membership-modal .vi-head { gap: 16px; margin-bottom: 18px; }
#viral-insights-membership-modal .vi-head h2 { font-size: 20px; line-height: 1.35; color: #183f2a; font-weight: 750; }
#viral-insights-membership-modal .vi-close { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255,255,255,.5); color: #315c42; }
#viral-insights-membership-modal .vi-shared { padding: 18px 19px; border-radius: 18px; background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
#viral-insights-membership-modal .vi-shared-label { display: block; color: #357652; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
#viral-insights-membership-modal .vi-shared strong { display: block; margin-top: 7px; color: #153e2a; font-size: 21px; line-height: 1.4; font-weight: 800; }
#viral-insights-membership-modal .vi-shared strong span { color: #70a887; padding: 0 4px; }
#viral-insights-membership-modal .vi-shared p { margin: 7px 0 0; color: #456a53; font-size: 13px; line-height: 1.6; }
#viral-insights-membership-modal [data-vi-modal-body] > p { color: #365c44; font-size: 14px; line-height: 1.65; margin: 16px 0; }
#viral-insights-membership-modal .vi-primary { min-height: 44px; padding: 10px 20px; background: #1d6944; color: white; box-shadow: 0 5px 14px rgba(23,95,54,.18); }
#viral-insights-membership-modal .vi-packages button { min-height: 72px; border: 1px solid rgba(64,133,86,.25); background: rgba(250,255,251,.60); color: #214b32; box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
#viral-insights-membership-modal .vi-packages button:hover { background: rgba(255,255,255,.88); border-color: #39825a; }
#viral-insights-membership-modal .vi-packages b { font-size: 15px; font-weight: 750; }
#viral-insights-membership-modal .vi-packages span { color: #42624d; font-size: 13px; }
#viral-insights-membership-modal .vi-foot { color: #53715c; line-height: 1.6; }
#viral-insights-membership-modal :is(button,a):focus-visible { outline: 3px solid #26784a; outline-offset: 3px; }
@media (max-width: 560px) {
  body.atelier #viral-insights-membership-modal .vi-card { padding: 20px !important; padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important; border-radius: 22px 22px 16px 16px !important; max-height: calc(100svh - 24px - env(safe-area-inset-bottom)); }
  #viral-insights-membership-modal .vi-shared strong { font-size: 19px; }
  #viral-insights-membership-modal .vi-packages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  #viral-insights-membership-modal .vi-packages button { min-height: 68px; padding: 10px 4px; }
}

/* 支付按钮独立底栏：卡片 flex 纵向布局，只有 body 滚动，
   按钮区固定在卡片底部，内容滚过不再被遮挡（2026-11-09） */
#viral-insights-membership-modal .vi-card > .vi-head,
#viral-insights-membership-modal .vi-card > .vi-shared,
#viral-insights-membership-modal .vi-card > [data-vi-modal-body],
#viral-insights-membership-modal .vi-card > .vi-foot,
#viral-insights-membership-modal .vi-card > .vi-buy-wrap { flex: none; }
#viral-insights-membership-modal .vi-card > [data-vi-modal-body] {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
#viral-insights-membership-modal .vi-buy-wrap {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(73,143,94,.16);
}
#viral-insights-membership-modal .vi-buy { width: 100%; margin-top: 0; }
#viral-insights-membership-modal .vi-agree { margin: 9px 2px 0; text-align: center; color: #6b8a76; font-size: 11px; line-height: 1.5; }
#viral-insights-membership-modal .vi-benefit-note, #viral-insights-membership-modal .vi-next-credit {
  margin-top: 12px; padding: 10px 13px; border: 1px solid rgba(73,143,94,.14);
  border-radius: 12px; background: rgba(255,255,255,.42); color: #5a7565; font-size: 11.5px; line-height: 1.7;
}
#viral-insights-membership-modal .vi-trial { display: block; width: 100%; margin-top: 10px; padding: 11px; border: 1px solid rgba(39,120,74,.3); border-radius: 999px; background: rgba(255,255,255,.55); color: #246642; font-weight: 700; cursor: pointer; }
#viral-insights-membership-modal .vi-trial-note { display: block; text-align: center; color: #607e69; margin-top: 6px; font-size: 11px; }

/* —— 2026-11-09 按「付费转化 UI 稿 v1」一比一落地 ——
   设计变量：--green:#1B7A58 --green-deep:#0F5C40 --ink-2:#4A6559 --ink-3:#7C9488 --line:rgba(24,42,34,.08) */

/* 卡片皮肤 = 稿子 .sheet 底色 */
body.atelier #viral-insights-membership-modal .vi-card {
  background: linear-gradient(180deg,#F7FDF9,#F1FAF4) !important;
  border: 1px solid rgba(255,255,255,.9) !important;
}
/* 稿子没有「一份会员·三项共用」大块，该信息由头部副标题与权益行承担 */
#viral-insights-membership-modal .vi-shared { display: none; }
#viral-insights-membership-modal .vi-head { margin-bottom: 6px; }
#viral-insights-membership-modal .vi-head h2 { font-size: 21px; font-weight: 650; letter-spacing: -.01em; color: #182A22; }
#viral-insights-membership-modal .vi-head .vi-close { width: 30px; height: 30px; border-radius: 50%; background: rgba(24,42,34,.06); color: #4A6559; font-size: 16px; }
#viral-insights-membership-modal .vi-foot { text-align: center; font-size: 10.5px; color: #7C9488; margin-top: 10px; line-height: 1.6; }

/* 权益三卡 = 稿子 .benefits */
#viral-insights-membership-modal .vi-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 2px; }
#viral-insights-membership-modal .vi-benefit { background: #fff; border: 1px solid rgba(24,42,34,.08); border-radius: 14px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
#viral-insights-membership-modal .vi-bico { width: 28px; height: 28px; border-radius: 9px; background: #DDF2E4; color: #0F5C40; display: grid; place-items: center; flex: none; }
#viral-insights-membership-modal .vi-bico .icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#viral-insights-membership-modal .vi-benefit b { font-size: 11.5px; font-weight: 600; }
#viral-insights-membership-modal .vi-benefit span { font-size: 10px; color: #7C9488; line-height: 1.35; }

/* 行式套餐卡 = 稿子 .plan：左名称+角标+副文案，右价格+周期，选中右上角 ✓ 三角 */
#viral-insights-membership-modal .vi-plans { display: flex; flex-direction: column; gap: 9px; margin: 14px 0 0; }
#viral-insights-membership-modal .vi-plan { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 15px; background: #fff; border: 1.5px solid rgba(24,42,34,.08); border-radius: 16px; text-align: left; width: 100%; cursor: pointer; color: #182A22; font-family: inherit; transition: border-color .15s, background .15s, box-shadow .15s; }
#viral-insights-membership-modal .vi-plan:hover { border-color: rgba(27,122,88,.45); }
#viral-insights-membership-modal .vi-plan[aria-pressed="true"] { border-color: #1B7A58; background: linear-gradient(180deg,#F2FBF6,#EAF7F0); box-shadow: 0 8px 22px -16px rgba(15,92,64,.6); }
#viral-insights-membership-modal .vi-p-main { display: block; flex: 1; min-width: 0; }
#viral-insights-membership-modal .vi-p-top { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
#viral-insights-membership-modal .vi-p-top b { font-size: 15px; font-weight: 650; }
#viral-insights-membership-modal .vi-p-sub { display: block; font-size: 12.5px; color: #4A6559; line-height: 1.45; }
#viral-insights-membership-modal .vi-p-sub b { font-size: 15px; font-weight: 900; color: #14684A; letter-spacing: -.02em; }
#viral-insights-membership-modal .vi-p-price { display: block; text-align: right; flex: none; }
#viral-insights-membership-modal .vi-p-price b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
#viral-insights-membership-modal .vi-p-price b i { font-size: 12px; font-weight: 600; font-style: normal; margin-right: 1px; }
#viral-insights-membership-modal .vi-p-price span { display: block; font-size: 10.5px; color: #7C9488; margin-top: 2px; }
#viral-insights-membership-modal .vi-tick { position: absolute; right: -1px; top: -1px; width: 0; height: 0; border-style: solid; border-width: 0 26px 26px 0; border-color: transparent #1B7A58 transparent transparent; border-radius: 0 16px 0 0; opacity: 0; }
#viral-insights-membership-modal .vi-plan[aria-pressed="true"] .vi-tick { opacity: 1; }
#viral-insights-membership-modal .vi-tick::after { content: "✓"; position: absolute; right: -24px; top: 3px; color: #fff; font-size: 10px; font-weight: 700; }
#viral-insights-membership-modal .vi-plan-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
#viral-insights-membership-modal .vi-plan-badge.hot { background: #DDF2E4; color: #0F5C40; }
#viral-insights-membership-modal .vi-plan-badge.best { background: #FBF3DF; color: #8A6100; }

/* CTA = 稿子 .cta：52px 高渐变绿，价格在按钮上 */
#viral-insights-membership-modal .vi-buy { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: linear-gradient(160deg,#1F8A63,#0F5C40); color: #fff; font-size: 15.5px; font-weight: 650; letter-spacing: .01em; box-shadow: 0 12px 26px -14px rgba(15,92,64,.75); cursor: pointer; }
#viral-insights-membership-modal .vi-buy:active { transform: translateY(1px); }
#viral-insights-membership-modal .vi-agree { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 11px; color: #7C9488; line-height: 1.5; }

#viral-insights-membership-modal .vi-next-credit {
  margin-top: 12px; padding: 10px 13px; border: 1px solid rgba(73,143,94,.14);
  border-radius: 12px; background: rgba(255,255,255,.42); color: #5a7565; font-size: 11.5px; line-height: 1.7;
}
#viral-insights-membership-modal .vi-trial { display: block; width: 100%; margin-top: 10px; padding: 11px; border: 1px solid rgba(39,120,74,.3); border-radius: 999px; background: rgba(255,255,255,.55); color: #246642; font-weight: 700; cursor: pointer; }
#viral-insights-membership-modal .vi-trial-note { display: block; text-align: center; color: #607e69; margin-top: 6px; font-size: 11px; }
@media (max-width: 560px) {
  #viral-insights-membership-modal .vi-card { padding: 20px 18px !important; }
  /* 四档后内容变高，收紧行距让最后一档尽量留在首屏内；超出仍由 body 区滚动 */
  #viral-insights-membership-modal .vi-plans { gap: 6px; margin-top: 10px; }
  #viral-insights-membership-modal .vi-plan { padding: 10px 12px; gap: 10px; }
  #viral-insights-membership-modal .vi-p-price b { font-size: 17px; }
  #viral-insights-membership-modal .vi-head h2 { font-size: 19px; }
}


/* --- universe-home.css --- */
/* The brand canvas is HTML/CSS, not a flattened promotional image. */
#home .universe-stage,#home .universe-entry{font-family:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif}
body.atelier #home.home-v2{padding:0 28px 32px!important;color:#163e32}
.universe-stage{width:100%;flex-shrink:0;position:relative;isolation:isolate;max-width:1900px;margin:auto;min-height:850px;height:calc(100dvh - 44px);font-family:var(--font-sans,system-ui,sans-serif)}
.universe-edition{position:absolute;inset:28px 16px auto;display:flex;justify-content:space-between;color:#55766a;font-size:13px;letter-spacing:.12em}
.universe-edition span:last-child{font-size:11px}
.universe-brand{position:absolute;left:26%;right:20%;top:31%;text-align:center;z-index:2}
body.atelier #home .universe-brand h1{font-family:'Noto Serif SC','Songti SC',SimSun,serif!important;font-size:clamp(70px,6.8vw,150px)!important;font-weight:600!important;line-height:1.12!important;letter-spacing:-.065em!important;margin:0!important;color:#113b2e!important}
.universe-brand h1>span{display:block;white-space:nowrap}.universe-brand h1>span+span{padding-left:12%}.brand-period{color:#81c7ac}
.universe-brand p{font-size:clamp(18px,1.6vw,27px);letter-spacing:.11em;margin:28px -40px 22px;line-height:1.6}
.universe-start{display:inline-flex;align-items:center;gap:16px;color:#245b47!important;font-size:17px;font-weight:500;text-decoration:none!important;padding:12px 16px;border-radius:30px}
.universe-start>span{display:grid;place-items:center;width:36px;height:36px;border:1px solid #92b8a6;border-radius:50%;transition:transform .2s,background .2s}.universe-start:hover>span{transform:translate(3px,-3px);background:#ffffff90}
.universe-object{position:absolute;display:block;box-sizing:border-box;text-decoration:none!important;color:#234337!important;border:1px solid #ffffffcc;border-radius:25px;padding:22px;background:#fafcf5b8;box-shadow:0 18px 35px -25px #345d4755,inset 0 1px #fff;transition:transform .2s,box-shadow .2s}
a.universe-object:hover{transform:translateY(-5px);box-shadow:0 22px 40px -25px #345d4780}.object-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:17px;font-weight:600;position:relative;z-index:1}.object-label>span{font-size:12px;font-weight:400;color:#557467}.object-note{display:block;font-size:11px;color:#60796e;line-height:1.6}
.object-type{left:3%;top:13%;width:23%;height:210px;transform:rotate(-3deg)}.type-art{font-family:Georgia,serif;font-size:105px;line-height:1.35;color:#3b6250;text-shadow:0 3px #fff;position:relative}.type-art>span{position:absolute;z-index:-1;left:90px;top:20px;width:72px;height:95px;background:repeating-linear-gradient(#fff 0 14px,#dce4d8 15px 17px);border:10px solid white;transform:rotate(13deg);border-radius:8px;box-shadow:0 10px 20px #48604b1a}
.object-research{left:38%;top:9%;width:23%;height:125px;background:#eaf2efb8;transform:rotate(2deg)}.research-art{display:flex;height:48px;gap:8px;padding-left:10px}.research-art i{width:28%;height:45px;border:1px solid white;border-radius:8px 8px 0 0;background:repeating-linear-gradient(#e6efeb 0 8px,#bed3c9 9px 11px)}.research-art i:nth-child(2){margin-top:-12px}.research-art i:nth-child(3){margin-top:-5px}
.object-image{right:3%;top:12%;width:21%;height:210px;background:#eae6f3b8;transform:rotate(3deg)}.image-art{position:relative;display:block;width:130px;height:130px;margin:10px auto}.image-art i{position:absolute;width:90px;height:100px;border:1px solid #ffffffdd;border-radius:16px;background:linear-gradient(135deg,#f7f4ffcf,#a59fce99);transform:rotate(-22deg);left:5px;top:15px}.image-art i:nth-child(2){transform:rotate(30deg);left:35px;background:linear-gradient(135deg,#fff1f6cf,#b0a8d099)}.image-art i:nth-child(3){transform:rotate(-5deg);top:35px;background:linear-gradient(135deg,#ffffff99,#aaa6cc80)}
.object-video{right:0;top:42%;width:17%;max-width:235px;background:#f1e4dcb8;padding:20px}.film-art{display:grid;gap:8px;margin:20px 0 14px}.film-art i{height:62px;border:1px solid #fff;border-radius:8px;background:linear-gradient(145deg,#e2cbbd,#f8eee6 48%,#c9b8aa 49%,#e8dbcf)}.film-art i:nth-child(2){background:repeating-linear-gradient(170deg,#ddc9ba 0 12px,#f5e6dc 13px 18px)}.film-art i:nth-child(3){background:linear-gradient(25deg,#bdb6aa,#f8eee5)}.sound-art{font-size:17px;letter-spacing:2px;color:#9c8a7a;margin:12px 0}
.object-flow{left:3%;bottom:7%;width:23%;background:#edf2efbd;transform:rotate(-3deg)}.flow-art{width:100%;height:100px;margin:15px 0}.flow-art path{fill:none;stroke:#71958a;stroke-width:2}.flow-art rect{fill:#cfdfd8;stroke:white;stroke-width:2}.flow-art rect:nth-of-type(3){fill:#ccd8e2}
.object-agents{left:43%;bottom:4%;width:34%;background:#e5f2ecbc;transform:rotate(-2deg)}.agent-art{display:flex;align-items:center;justify-content:space-around;height:100px;gap:15px}.agent-art i{display:block;position:relative}.agent-orb{width:65px;height:65px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff,#b6dfcb 38%,#67a68c 80%);box-shadow:inset 0 0 0 2px #ffffff80,0 8px 12px #4569511a}.agent-star{font-size:85px;line-height:1;color:#c8bde3;text-shadow:1px 2px #fff}.agent-cone{width:0;height:0;border-left:30px solid transparent;border-right:30px solid transparent;border-bottom:70px solid #e9e0c4;filter:drop-shadow(0 3px 0 #fff)}.agent-art>span{display:grid;place-items:center;width:48px;height:58px;border:1px dashed #98b3a5;border-radius:14px;color:#6c8b7d;font-size:24px}
.universe-entry{box-sizing:border-box;width:100%;max-width:1200px;margin:32px auto 40px;padding:36px;border:1px solid #ffffffb3;border-radius:26px;background:#f6fbf5b3;scroll-margin-top:28px}.universe-entry h2{font-size:26px;margin:10px 0}.universe-entry p{font-size:14px;color:#5b776a}.universe-entry-links{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px}.universe-entry-links a{padding:22px 18px;background:#ffffffa6;border:1px solid #d9e7dd;border-radius:16px;text-decoration:none;color:#24533f}.universe-entry-links strong,.universe-entry-links span{display:block}.universe-entry-links strong{font-size:17px}.universe-entry-links span{font-size:13px;color:#668072;margin-top:10px}.universe-quick{width:100%;max-width:1200px;margin:auto}.universe-quick summary{cursor:pointer;padding:18px 4px;font-size:14px;color:#567666}.universe-quick summary span{float:right}.universe-quick .hv-body{margin-top:18px}
#home a:focus-visible{outline:3px solid var(--g-600,#14684A);outline-offset:5px}
@media(min-width:1900px){.universe-stage{min-height:1000px}.object-type,.object-image{height:250px}.type-art{font-size:130px}.image-art{margin-top:30px}.object-research{top:12%}.object-agents{bottom:8%}.object-flow{bottom:10%}}
@media(max-width:1279px) and (min-width:801px){.universe-stage{min-height:830px}.universe-brand{left:21%;right:15%;top:34%}.object-label{font-size:14px}.object-video{width:16%;padding:12px}.film-art i{height:44px}.object-type,.object-image{height:180px}.type-art{font-size:80px}.object-note{font-size:10px}.universe-brand p{font-size:18px}.object-agents{left:38%;width:44%}}
@media(max-width:800px){body.atelier #home.home-v2{padding:12px 16px 28px!important}.universe-stage{display:grid;grid-template-columns:1fr 1fr;gap:16px;height:auto;min-height:0;padding:20px 0}.universe-edition{position:static;grid-column:1/-1;padding:0 2px}.universe-edition span:last-child{display:none}.universe-brand{position:static;grid-column:1/-1;grid-row:2;padding:32px 0}.universe-brand h1{font-size:70px!important}.universe-brand p{margin:24px 0 12px;font-size:18px}.universe-start{font-size:15px}.universe-object{position:relative;inset:auto!important;transform:none!important;width:100%!important;height:auto;min-height:170px;padding:18px}.object-research{padding-top:32px}.object-video{max-width:none}.film-art{grid-template-columns:repeat(3,1fr)}.film-art i{height:65px}.object-agents{grid-column:1/-1;min-height:180px}.object-label{font-size:15px}.universe-entry{padding:24px 20px;margin-top:20px}.universe-entry-links{grid-template-columns:1fr 1fr}.universe-entry-links a{padding:18px 12px}.universe-entry-links strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){.universe-object,.universe-start>span{transition:none}}

/* Calm, single-line brand stage; navigation remains untouched. */
body.atelier #home .universe-brand h1{font-family:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif!important;font-size:clamp(38px,4.3vw,94px)!important;font-weight:800!important;letter-spacing:-.055em!important;line-height:1.2!important;white-space:nowrap;color:#102e24!important}
#home .universe-brand h1 .brand-period{display:inline;color:#80c7a6;padding:0;margin-left:.07em}
#home .universe-brand{left:24%;right:18%;top:39%}
#home .universe-object{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
@media (min-width:801px) and (prefers-reduced-motion:no-preference){#home .universe-object{animation:home-float 8s ease-in-out infinite alternate}#home .object-research,#home .object-video{animation-delay:-3s}#home .object-image,#home .object-agents{animation-delay:-5s}@keyframes home-float{from{translate:0 -3px}to{translate:0 3px}}}
@media(max-width:800px){#home .universe-brand{padding:30px 0 22px}body.atelier #home .universe-brand h1{font-size:clamp(30px,8.2vw,62px)!important;letter-spacing:-.06em!important;white-space:nowrap}#home .universe-brand h1 .brand-period{display:inline;padding:0}}
@media(prefers-reduced-motion:reduce){#home .universe-object{animation:none!important}}

/* Editorial home composition */
body.atelier #home.home-v2{background:radial-gradient(ellipse at 45% 70%,#e5f2e9 0,transparent 48%),#f8faf6;padding:24px 32px 48px!important}.home-editorial{max-width:1600px;width:100%;margin:0 auto;font-family:'UW Sans SC','Microsoft YaHei',sans-serif;color:#173d30}.he-main{display:grid;grid-template-columns:1.35fr 1fr;gap:32px;min-height:520px}.he-intro{position:relative;overflow:hidden;padding:36px 32px 36px 16px;isolation:isolate}.he-kicker{font-size:12px;letter-spacing:.13em;color:#638070}.he-intro h1{position:relative;z-index:1;font-family:'UW Serif SC','Noto Serif SC',SimSun,serif!important;font-size:clamp(62px,7.5vw,142px)!important;line-height:1.03!important;letter-spacing:-.07em!important;font-weight:600!important;margin:36px 0 24px!important;color:#102f25!important}.he-intro h1 span{color:#8bc9ad}.he-intro p{font-family:'UW Serif SC',SimSun,serif;font-size:clamp(19px,1.65vw,27px);letter-spacing:.04em;margin:0 0 34px}.he-start{position:relative;z-index:2;display:inline-flex;align-items:center;min-height:50px;padding:0 24px;background:#205c45;color:white!important;border-radius:13px;text-decoration:none!important;font-size:15px}.he-orbit{position:absolute;z-index:-1;width:74%;height:48%;left:15%;top:23%;border:1px solid #a6cabc99;border-radius:50%;transform:rotate(-22deg)}.he-orbit i,.he-orbit b{position:absolute;display:block;width:9px;height:9px;border-radius:50%;background:#38735a}.he-orbit i{right:12%;top:8%}.he-orbit b{left:23%;bottom:0}.he-featured{display:grid;gap:18px;grid-template-rows:1fr 1fr}.he-feature,.he-tool{position:relative;overflow:hidden;text-decoration:none!important;color:#173d30!important;background:linear-gradient(125deg,#ffffffcd,#edf7efbc);border:1px solid #dcebe0;border-radius:18px;box-shadow:inset 0 1px #fff,0 12px 30px #244e3710;transition:transform .25s,box-shadow .25s}.he-feature{display:flex;align-items:center;justify-content:space-between;padding:32px 36px;min-height:225px}.he-feature span,.he-tool{z-index:1}.he-feature strong,.he-tool strong{display:block;font-family:'UW Serif SC',SimSun,serif;font-size:clamp(20px,1.7vw,28px);font-weight:600}.he-feature small,.he-tool small{display:block;color:#61786b;font-size:14px;line-height:1.7;margin-top:16px}.he-feature em,.he-tool em{display:grid;place-items:center;border:1px solid #bfd6c6;width:36px;height:36px;border-radius:50%;font-style:normal;font-size:17px;margin-top:22px}.he-feature>b{font-family:Georgia,serif;font-size:clamp(100px,11vw,190px);font-weight:400;line-height:1;color:#376c54;opacity:.75}.he-papers{position:relative;width:42%;height:170px;flex-shrink:0}.he-papers i{position:absolute;width:100px;height:145px;right:15%;top:10px;border:1px solid #fff;border-radius:12px;background:linear-gradient(135deg,#fff,#cfe5d4aa);box-shadow:0 12px 20px #315e3e12;transform:rotate(18deg)}.he-papers i:nth-child(2){right:35%;transform:rotate(-12deg)}.he-papers i:nth-child(3){right:25%;transform:rotate(3deg)}.he-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.he-tool{display:block;min-height:210px;padding:28px 30px}.he-tool em{position:absolute;bottom:24px;left:30px}.he-art{position:absolute;right:8%;top:18%;width:42%;height:65%;opacity:.78}.he-pictures i{position:absolute;width:66%;height:75%;border-radius:12px;border:2px solid #fff;background:linear-gradient(140deg,#b5d3ba,#eff9f1);transform:rotate(-12deg)}.he-pictures i+ i{left:25%;top:15%;transform:rotate(12deg);background:linear-gradient(140deg,#e8f3ed,#98bea8)}.he-lines{display:grid;align-content:center;gap:12px}.he-lines i{height:7px;border-radius:6px;background:linear-gradient(90deg,#9fc7b0,#e7f4ea)}.he-lines i:nth-child(2){width:75%}.he-lines i:nth-child(3){width:88%}.he-tiles{display:grid;grid-template-columns:1fr 1fr;gap:6px}.he-tiles i{border:1px solid #fff;border-radius:8px;background:linear-gradient(135deg,#d5e7d7,#90bda2)}.he-tiles i:nth-child(2),.he-tiles i:nth-child(3){background:linear-gradient(135deg,#edf6ec,#b6d6bf)}.he-feature:hover,.he-tool:hover{transform:translateY(-4px);box-shadow:0 18px 35px #244e371c,inset 0 1px #fff}.he-footer{display:flex;justify-content:space-between;color:#758b7d;font-size:12px;margin:30px 2px;letter-spacing:.08em}.he-footer span+span{letter-spacing:.2em}@media(max-width:800px){body.atelier #home.home-v2{padding:0 18px 100px!important}.he-main{grid-template-columns:1fr;gap:20px;min-height:0}.he-intro{padding:24px 4px 20px}.he-intro h1{font-size:clamp(58px,14vw,90px)!important;margin:24px 0 16px!important}.he-intro p{font-size:17px;margin-bottom:22px}.he-featured{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:12px}.he-feature{min-height:190px;padding:18px;align-items:flex-start}.he-feature strong,.he-tool strong{font-size:18px}.he-feature small,.he-tool small{font-size:12px;margin-top:9px}.he-feature>b{position:absolute;right:12px;bottom:2px;font-size:84px;opacity:.32}.he-papers{position:absolute;right:0;bottom:-30px;opacity:.35}.he-feature em{margin-top:14px}.he-grid{grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.he-tool{min-height:175px;padding:18px}.he-tool em{left:18px;bottom:18px}.he-art{opacity:.35}.he-grid .he-tool:last-child{grid-column:1/-1}.he-footer{margin:24px 0}.he-orbit{width:90%;left:7%}}@media(prefers-reduced-motion:reduce){.he-feature,.he-tool{transition:none}}

/* The membership pack was styled only inside the mobile breakpoint, so the
   desktop home rendered the markup with no layout and it disappeared behind the
   editorial stack. Keep one explicit desktop presentation as well. */
body.atelier #home .he-member-pack{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,1.25fr);align-items:center;gap:28px;margin:22px 0 26px;padding:22px 26px;border:1px solid #d7ead9;border-radius:20px;background:#f4fbf4;color:#244f35;box-shadow:0 10px 30px -24px #315c3d66}
body.atelier #home .he-member-copy>span{display:block;color:#70917b;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
body.atelier #home .he-member-copy>strong{display:block;margin-top:6px;font-size:20px;line-height:1.35}
body.atelier #home .he-member-copy>small{display:block;margin-top:5px;color:#6a8572;font-size:12px}
body.atelier #home .he-member-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.atelier #home .he-member-links>a{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 12px;border-radius:12px;background:#fff;color:#275b3d;font-size:12px;font-weight:600;text-decoration:none}
body.atelier #home .he-member-links>a>span{display:block}.he-member-links>a>span>small{display:block;margin-top:2px;color:#78a084;font-size:10px;font-weight:400}
body.atelier #home .he-member-links>a>span>strong{font-size:12px}.he-member-links>a>b{font-size:15px;font-weight:400;color:#62a078}
body.atelier #home .he-member-links .he-hotspot-link{grid-column:1/-1;min-height:52px;background:#e3f3e5;color:#205b38}
body.atelier #home .he-member-links .he-hotspot-link small{color:#57906a}

/* Center the existing home stage on tall desktop screens. */
@media(min-width:801px){body.atelier #home.home-v2{min-height:100dvh!important;box-sizing:border-box;justify-content:safe center}}

/* 公众号创作 Plus 卡片暂时隐藏后，.he-featured 里只剩一张卡。
   它原本占一行（1fr 1fr 两行栅格），留空会让右侧塌掉；这里让独苗铺满。 */
.he-featured>:only-child{grid-row:1/-1;grid-column:1/-1}

/* 文章封面生成：桌面侧栏已有入口，只在手机首页露出这张卡，占满一行避免半列留白 */
.he-feature.he-cover-mobile{display:none}
@media(max-width:800px){
  .he-feature.he-cover-mobile{display:flex;grid-column:1/-1;min-height:150px}
  .he-feature.he-cover-mobile .he-papers{right:24px;bottom:-20px;opacity:.5}
}


/* --- settings-mint.css --- */
/* Shared settings surfaces: preserve existing forms, permission checks and data. */
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal){padding:32px!important;background:rgba(31,66,49,.19)!important;backdrop-filter:blur(14px)!important;color:#203e32}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) [role=dialog]{box-sizing:border-box!important;max-width:calc(100vw - 64px)!important;max-height:calc(100dvh - 64px)!important;overflow:auto!important;padding:36px!important;border:1px solid #ffffffdf!important;border-radius:28px!important;background:rgba(245,252,246,.96)!important;box-shadow:0 28px 90px #1b43352b,inset 0 1px white!important;font-family:var(--font-sans,system-ui,sans-serif)!important;color:#203e32!important;scrollbar-width:thin;scrollbar-color:#b4cbbd transparent}
body.atelier #wallet-modal .wallet-card{width:800px!important}body.atelier #api-settings-modal .api-settings-card{width:1000px!important}body.atelier #admin-users-modal .admin-users-card{width:1320px!important}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) h2{font-family:inherit!important;font-size:28px!important;font-weight:650!important;line-height:1.3!important;letter-spacing:-.025em!important;color:#193f30!important;margin:8px 0 12px!important}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) :is(p,label,button,input,select){font-family:inherit!important;font-size:14px!important;line-height:1.6}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) :is(p,label){color:#607569!important}
body.atelier :is(.wallet-head,.admin-users-head,.api-settings-head){border:0!important;padding-bottom:20px!important;gap:24px!important}
body.atelier :is(#wallet-close,#admin-users-close,#api-settings-close){flex-shrink:0;width:38px!important;height:38px!important;display:grid!important;place-items:center!important;padding:8px!important;border:1px solid #d6e5d9!important;border-radius:12px!important;background:#ffffffb3!important;color:#476654!important}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) .micro-label{font-size:11px!important;font-weight:600!important;letter-spacing:.1em!important;color:#547764!important}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) :is(input:not([type=hidden]),select){box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:44px!important;padding:10px 12px!important;background:#ffffffd9!important;border:1px solid #cfdfd3!important;border-radius:11px!important;color:#254735!important;box-shadow:none!important}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) :is(input,select,button):focus-visible{outline:2px solid #6ca78a!important;outline-offset:3px!important}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) button{min-height:36px;border-radius:10px!important;border-color:#cadfd0!important;color:#3e6851;background-color:#fff}
body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) :is(.primary-action,.admin-switch-user){background:#327454!important;color:white!important;border-color:transparent!important;box-shadow:none!important;padding:10px 18px!important}
body.atelier #api-settings-modal .api-config-stack{display:grid!important;grid-template-columns:1fr 1fr!important;gap:20px!important}
body.atelier #api-settings-modal .api-config-group{min-width:0;padding:22px!important;background:#eaf3ec!important;border:1px solid #d7e7da!important;border-radius:20px!important;box-shadow:none!important}
body.atelier #api-settings-modal .api-field-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;margin:14px 0!important}
body.atelier #api-settings-modal .config-group-head{gap:10px;margin-bottom:24px!important}body.atelier #api-settings-modal h3{font-size:17px!important;color:#254735!important}body.atelier #api-settings-modal .connection-status{font-size:11px!important;white-space:nowrap;background:#f8fcf6!important;border-color:#cfdfd0!important;color:#547764!important}
body.atelier #api-settings-modal .test-provider{width:100%;margin-top:8px!important;background:#f9fcf8!important;border:1px solid #c8dece!important;color:#3d7051!important}
body.atelier #api-settings-modal .api-settings-note{font-size:12px!important;margin:22px 0!important}.api-settings-actions{padding-top:0!important}
body.atelier #wallet-modal .wallet-total{background:#e0eee2!important;border:1px solid #c8dfcd!important;border-radius:20px!important;padding:24px!important;margin:8px 0 18px!important}
body.atelier #wallet-modal .wallet-total strong{font-size:25px!important;color:#315a40!important}body.atelier #wallet-modal .wallet-total b{font-size:42px!important;color:#2d7250!important;font-variant-numeric:tabular-nums}body.atelier #wallet-modal .wallet-total small{font-size:12px!important;color:#63806d!important}
body.atelier #wallet-modal .wallet-buckets{gap:14px!important}body.atelier #wallet-modal .wallet-buckets>div{background:#ffffff9c!important;border:1px solid #dae8dc!important;border-radius:16px!important;padding:18px!important}body.atelier #wallet-modal .wallet-buckets strong{font-size:23px!important;color:#31563e!important}
body.atelier #wallet-modal .wallet-transactions{max-height:310px!important;margin-top:12px!important;scrollbar-width:thin}body.atelier #wallet-modal .wallet-section-title{padding:16px 0!important;border:0!important}body.atelier #wallet-modal .admin-recharge{border-top:1px solid #dce8dc!important;margin-top:22px!important;padding-top:8px!important}.admin-user-results{scrollbar-width:thin}
body.atelier #admin-users-modal .admin-stats{gap:16px!important;margin:8px 0 24px!important}body.atelier #admin-users-modal .admin-stats article{background:#e7f1e8!important;border:1px solid #d6e5d7!important;border-radius:17px!important;padding:20px!important}body.atelier #admin-users-modal .admin-stats span{font-size:13px!important;color:#617e69!important}body.atelier #admin-users-modal .admin-stats strong{font-size:30px!important;color:#2c6143!important;font-variant-numeric:tabular-nums}
body.atelier #admin-users-modal .admin-users-layout{grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr)!important;gap:20px!important}body.atelier #admin-users-modal .admin-users-table-wrap{min-width:0;max-height:480px;overflow:auto!important;border:1px solid #d7e6da!important;border-radius:16px!important;background:#ffffffb3!important;scrollbar-width:thin}
body.atelier #admin-users-modal .admin-users-table{font-size:13px!important;min-width:650px!important}body.atelier #admin-users-modal .admin-users-table :is(th,td){padding:14px 12px!important;border-color:#e1ece3!important}body.atelier #admin-users-modal .admin-users-table th{position:sticky;top:0;background:#eaf3eb!important;color:#5f7b68!important;z-index:1}body.atelier #admin-users-modal .admin-users-table tr.selected{background:#e4f0e5!important}body.atelier #admin-users-modal .admin-users-table small{font-size:11px!important;color:#6b8171!important}
body.atelier #admin-users-modal .admin-user-detail{min-width:0;overflow-wrap:anywhere;background:#edf5ed!important;border:1px solid #d4e6d7!important;border-radius:18px!important}body.atelier #admin-users-modal .admin-user-detail :is(dl div,.admin-recent li){font-size:13px!important}body.atelier #admin-users-modal .admin-detail-empty{min-height:340px!important;color:#72907b!important}body.atelier #admin-users-modal .admin-detail-empty span{font-size:12px!important}
body.atelier #admin-users-modal .admin-users-toolbar label{flex:1;min-width:0!important;border:0!important;padding:0!important;position:relative}body.atelier #admin-users-modal .admin-users-toolbar label>svg{position:absolute;left:14px;z-index:1}body.atelier #admin-users-modal .admin-users-toolbar input{padding-left:40px!important}body.atelier #admin-users-modal .admin-task-section{margin-top:28px!important}
@media(max-width:800px){body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal){padding:12px!important}body.atelier :is(#wallet-modal,#admin-users-modal,#api-settings-modal) [role=dialog]{padding:22px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;border-radius:22px!important}body.atelier #api-settings-modal .api-config-stack{grid-template-columns:1fr!important}body.atelier #admin-users-modal .admin-users-layout{grid-template-columns:1fr!important}body.atelier #admin-users-modal .admin-stats{grid-template-columns:1fr 1fr!important}body.atelier #wallet-modal .wallet-total b{font-size:34px!important}}


/* --- brand-galaxy.css --- */
/* Approved galaxy mark; the brand uses one shared vector across all shells. */
body.atelier .v3-topbar .brand .mark,
body.atelier:not(.embedded) .v3-topbar .brand .mark {
  display:grid!important;place-items:center!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow:visible!important;
}
body.atelier .v3-topbar .brand .mark .galaxy-mark {
  display:block!important;width:46px!important;height:46px!important;
  max-width:none!important;object-fit:contain;
}
@media(max-width:1100px){
  body.atelier .v3-topbar .brand .mark .galaxy-mark{width:34px!important;height:34px!important}
}


/* --- mobile-creator.css --- */
/* Phone-first polish, deliberately isolated from the desktop workspace. */
.mobile-site-brand,.fl-mobile-copy,.mobile-inspiration{display:none}
.mobile-home-actions,.mobile-ai-tools{display:none}
@media(max-width:760px){
 /* Keep the original liquid-glass editorial card homepage as the mobile home. */
 .mobile-home-actions,.mobile-inspiration{display:none!important}
 body.atelier #home .home-editorial{display:block!important}
 .mobile-home-actions-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px;color:#193f30}
 .mobile-home-actions-head span{font:650 20px/1.4 var(--sans)}.mobile-home-actions-head small{color:#6b8372;font-size:11px}
 .mobile-home-primary{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px;border-radius:17px;background:#d9efdf;color:#1d5437;text-decoration:none}
 .mobile-home-primary .mobile-home-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#fff8;color:#367952;font-size:22px}
 .mobile-home-primary span:nth-child(2){flex:1;min-width:0}.mobile-home-primary strong{display:block;font-size:18px}.mobile-home-primary small{display:block;margin-top:3px;color:#5f7c68;font-size:11px;line-height:1.5}.mobile-home-primary b{font-size:20px;font-weight:400}
 .mobile-home-secondary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.mobile-home-secondary a{display:flex;align-items:center;justify-content:space-between;min-height:45px;padding:0 11px;border-radius:12px;background:#fff;color:#315c43;font-size:13px;text-decoration:none}.mobile-home-secondary a span{color:#6d9a7d}
 .mobile-ai-tools{display:block;padding:20px 18px 6px}.mobile-ai-tools-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:13px;color:#193f30}.mobile-ai-tools-head span{font:650 23px/1.35 var(--sans)}.mobile-ai-tools-head small{color:#6b8372;font-size:11px}.mobile-ai-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-ai-tools-grid a{position:relative;display:block;min-height:91px;padding:14px;border:1px solid #d7ebda;border-radius:16px;background:#f7fcf6;color:#28553a;text-decoration:none;box-sizing:border-box}.mobile-ai-tools-grid strong{display:block;font-size:14px}.mobile-ai-tools-grid small{display:block;margin-top:6px;padding-right:12px;color:#769080;font-size:11px;line-height:1.45}.mobile-ai-tools-grid a span{position:absolute;right:12px;top:12px;color:#67a07a;font-size:16px}
 body.atelier #market .mobile-ai-tools + #market-main .market-hero h1{font-size:0!important}
 body.atelier #market .mobile-ai-tools + #market-main .market-hero h1::after{content:'AI 工具';font-size:26px}
 body.atelier #market .mobile-ai-tools + #market-main .market-meta{display:none!important}
 .mobile-inspiration{display:block;margin:0 0 18px;padding:16px;border:1px solid #cfe6d5;border-radius:18px;background:#f1faf3}
 .mobile-inspiration strong{display:block;color:#193f30;font-size:16px}.mobile-inspiration div>span{display:block;margin-top:3px;color:#52715c;font-size:12px}
 .mobile-inspiration-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}
 .mobile-inspiration-links a{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 9px;border-radius:11px;background:#fff;color:#20563b;font-size:13px;font-weight:600;text-decoration:none}
 .mobile-inspiration-links a span{margin:0;color:#40815b;font-size:15px}
 body.atelier #home.home-v2{padding:0 18px 100px!important}
 .mobile-site-brand{display:block;padding:22px 2px 16px}
 .mobile-site-brand a{display:flex;align-items:center;gap:10px;width:fit-content;text-decoration:none;color:#193f30}
 .mobile-site-brand img{display:block;object-fit:contain;flex-shrink:0}
 .mobile-site-brand span{font:600 14px/1.4 var(--sans);letter-spacing:-.02em}
 .mobile-site-brand small{display:block;font-size:10px;letter-spacing:.04em;font-weight:400;color:#6c8576;margin-top:2px}
 #home .universe-stage{gap:14px;padding:6px 0 12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #home .universe-edition{padding:12px 0 0;font-size:11px;letter-spacing:.12em}
 #home .universe-brand{padding:26px 0 22px;text-align:left}
 body.atelier #home .universe-brand h1{font-size:clamp(50px,14vw,78px)!important;line-height:1.16!important;letter-spacing:-.05em!important}
 #home .universe-brand h1>span+span{padding-left:15%}
 #home .universe-brand p{font-size:16px;letter-spacing:.025em;margin:22px 0 10px;color:#3b5b49}
 #home .universe-start{padding:10px 0;gap:12px;font-size:15px;min-height:44px}
 #home .universe-start>span{width:32px;height:32px;background:#ffffff6e}
 #home .universe-object{min-height:148px;padding:16px;border-radius:22px;overflow:hidden;box-shadow:0 10px 25px -22px #345d4750}
 #home .object-label{font-size:14px;gap:6px}
 #home .object-label>span{font-size:10px}
 #home .object-type,#home .object-image{height:162px}
 #home .type-art{font-size:76px;line-height:1.4}
 #home .type-art>span{width:45px;height:65px;left:67px;top:16px;border-width:7px}
 #home .object-research{padding-top:28px}
 #home .research-art{height:62px;gap:5px;padding:0}
 #home .research-art i{height:44px}
 #home .image-art{transform:scale(.72);transform-origin:top center;height:105px;margin:6px auto 0}
 #home .object-video{height:162px}
 #home .film-art{gap:4px;margin:12px 0 8px}
 #home .film-art i{height:38px}
 #home .sound-art{font-size:12px;letter-spacing:0;white-space:nowrap;margin:6px 0}
 #home .object-note{font-size:10px;line-height:1.55}
 #home .object-flow{min-height:160px}
 #home .flow-art{height:66px;margin:10px 0}
 #home .object-agents{grid-column:auto;min-height:160px}
 #home .agent-art{height:72px;gap:5px;justify-content:space-between}
 #home .agent-orb{width:36px;height:36px;flex-shrink:0}
 #home .agent-star{font-size:49px}
 #home .agent-cone{border-left-width:17px;border-right-width:17px;border-bottom-width:40px}
 #home .agent-art>span{display:none}
 #home .universe-entry{padding:24px 18px;margin:20px 0 16px;border-radius:24px}
 #home .universe-entry h2{font:600 23px/1.4 var(--sans);margin:10px 0}
 #home .universe-entry-links{gap:10px;margin-top:20px}
 #home .universe-entry-links a{min-height:88px;padding:17px 12px;box-sizing:border-box}
 #home .universe-quick summary{min-height:44px;padding:16px 4px;box-sizing:border-box}
 #home .hv-body{display:block}#home .hv-rail{margin-top:16px}
 body.atelier #workbench.normalized-conversation{--fp-paper:#edf6ef;--fp-ink:#203f30;--fp-ink3:#637b69;background:#edf6ef!important;padding:0 16px 100px!important;min-height:100dvh!important;height:auto!important;overflow:visible!important;width:100%!important;box-sizing:border-box}
 body.atelier #workbench .mobile-site-brand{padding-top:20px;padding-bottom:26px}
 body.atelier #workbench[data-folio-empty="1"] .studio-heading > div:first-child{display:none!important}
 body.atelier #workbench .folio-landing{overflow:visible!important;min-height:0!important}
 body.atelier #workbench .fl-inner{display:block!important;width:100%!important;padding:12px 2px 30px!important;margin:0!important;max-width:none!important}
 body.atelier #workbench .fl-inner h1{font:650 30px/1.3 var(--sans)!important;letter-spacing:-.04em!important;color:#193f2c!important}
 .fl-desktop-copy{display:none}.fl-mobile-copy{display:inline}
 body.atelier #workbench .fl-sub{font:400 15px/1.8 var(--sans)!important;margin-top:14px!important;color:#62796a!important}
 body.atelier #workbench .fl-ask{margin-top:26px!important;padding:18px!important;border:1px solid #ffffffed!important;border-radius:24px!important;background:#ffffffba!important;box-shadow:0 12px 28px -24px #305c3d40!important}
 body.atelier #workbench .fl-ask textarea{box-sizing:border-box!important;min-height:128px!important;padding:0!important;border:0!important;font:400 16px/1.8 var(--sans)!important;color:#284e37!important}
 body.atelier #workbench .fl-ask textarea::placeholder{color:#819488!important}
 body.atelier #workbench .fl-ask-row{justify-content:space-between!important;gap:10px!important;margin-top:12px!important}
 body.atelier #workbench .fl-tip{font-size:12px!important;color:#718676!important}
 body.atelier #workbench .fl-send{min-height:44px!important;padding:10px 18px!important;border-radius:14px!important;background:#337454!important;color:white!important;font:500 14px/1.5 var(--sans)!important}
 body.atelier #workbench .fl-starts{margin-top:30px!important}
 body.atelier #workbench .fl-inner .fl-lbl{font:500 12px/1.6 var(--sans)!important;letter-spacing:.04em!important;color:#6a806f!important;margin-bottom:12px!important}
 body.atelier #workbench .fl-starts a{align-items:center!important;min-height:60px!important;padding:14px!important;margin-bottom:10px!important;background:#ffffff82!important;border:0!important;border-radius:16px!important;gap:10px!important;font:400 14px/1.65 var(--sans)!important;box-sizing:border-box}
 body.atelier #workbench .fl-starts .fl-t{flex:1;min-width:0}
 body.atelier #workbench .fl-starts .fl-tag{display:none!important}
 body.atelier #workbench .fl-side{display:none!important}
 body.atelier #workbench .studio-heading{padding:0 2px 16px!important;margin:0!important;background:none!important;border:0!important}
 body.atelier #workbench .studio-heading h1{font:650 22px/1.4 var(--sans)!important;color:#20432f!important}
 body.atelier #workbench .studio-heading p{display:none!important}
 body.atelier #workbench #workbench-stage-nav{display:flex;overflow-x:auto!important;gap:6px!important;padding:8px!important;border:1px solid #fff!important;border-radius:18px!important;background:#ffffff85!important;scrollbar-width:none;margin:0 0 14px!important}
 body.atelier #workbench #workbench-stage-nav button{flex:1 0 54px!important;min-width:54px!important;min-height:48px!important;padding:8px 4px!important;border-radius:11px!important;font-size:12px!important;border:0!important;color:#66806e!important}
 body.atelier #workbench #workbench-stage-nav button[aria-current="step"]{background:#d9ebde!important;color:#245e3c!important}
 body.atelier #workbench .conversation-output-actions{position:sticky!important;top:8px!important;z-index:10!important;justify-content:space-between!important;align-items:center!important;padding:8px 12px!important;margin:0 0 14px!important;border:1px solid #ffffffdf!important;border-radius:16px!important;background:#f3faf2f2!important;box-shadow:0 8px 18px -18px #254b35}
 body.atelier #workbench .conversation-output-actions::before{content:'对话 / 作品';font-size:13px;color:#57735f}
 body.atelier #workbench #workbench-view-toggle{min-height:40px!important;padding:9px 14px!important;border:0!important;border-radius:11px!important;background:#dceee1!important;color:#2e6746!important;font:600 13px/1.5 var(--sans)!important}
 body.atelier #workbench .conversation-workbench-layout{min-height:0!important;height:auto!important;overflow:visible!important;background:none!important;border:0!important}
 body.atelier #workbench #creation-assistant{padding:0!important;min-height:0!important;height:auto!important;overflow:visible!important;background:transparent!important;border:0!important}
 body.atelier #workbench .conversation-panel-head{padding:16px!important;border:0!important;border-radius:20px!important;background:#ffffff8c!important;gap:14px!important;margin-bottom:16px!important}
 body.atelier #workbench .conversation-identity strong{font-size:16px!important;color:#274b35!important}
 body.atelier #workbench .conversation-identity small{font-size:11px!important;color:#698371!important}
 body.atelier #workbench .conversation-panel-tools{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
 body.atelier #workbench .new-chat-button{min-height:40px!important;border-radius:10px!important;padding:8px 10px!important;font-size:12px!important}
 body.atelier #workbench #workbench-chat-thread{min-height:120px!important;max-height:none!important;height:auto!important;overflow:visible!important;padding:4px 0 18px!important;gap:18px!important}
 body.atelier #workbench .chat-message{max-width:100%!important;gap:8px!important}
 body.atelier #workbench .chat-message p{font:400 15px/1.8 var(--sans)!important;padding:14px 16px!important;border:0!important;border-radius:18px!important;background:#ffffffd9!important;color:#36543e!important;box-shadow:none!important;overflow-wrap:anywhere}
 body.atelier #workbench .chat-message.from-user p,body.atelier #workbench .chat-message.from-me p{background:#c9e6d3!important}
 body.atelier #workbench #workbench-action-card{padding:18px!important;margin:14px 0!important;border:0!important;border-radius:20px!important;background:#ffffffa6!important}
 body.atelier #workbench #workbench-action-card p{font-size:14px!important;line-height:1.8!important}
 body.atelier #workbench #workbench-action-card button{min-height:44px!important;border-radius:12px!important;padding:10px 12px!important;font-size:13px!important;white-space:normal!important}
 body.atelier #workbench .composer-shell{position:sticky!important;bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;z-index:9!important;padding:16px!important;margin-top:18px!important;border:1px solid #d3e4d5!important;border-radius:22px!important;background:#f8fcf6fa!important;box-shadow:0 8px 30px -20px #31553d55!important}
 body.atelier #workbench .composer-shell label{font-size:11px!important;letter-spacing:.04em!important;color:#6a846f!important}
 body.atelier #workbench #workbench-topic{min-height:86px!important;height:86px!important;max-height:180px!important;padding:10px 0!important;font:400 16px/1.7 var(--sans)!important;background:none!important;border:0!important;box-shadow:none!important}
 body.atelier #workbench .composer-hint{display:none!important}
 body.atelier #workbench .composer-actions{justify-content:space-between!important;align-items:center!important;gap:12px!important}
 body.atelier #workbench .composer-send{width:44px!important;height:44px!important;border-radius:14px!important;background:#337454!important;color:white!important}
 body.atelier #workbench #workbench-result{padding:18px 16px!important;min-height:400px!important;height:auto!important;border:1px solid #fff!important;border-radius:24px!important;background:#fbfdf7e8!important;overflow-wrap:anywhere}
 body.atelier #workbench :is(.workbench-stage-head,.article-canvas-head){padding:0!important;margin-bottom:22px!important;border:0!important;gap:14px!important}
 body.atelier #workbench .workbench-stage-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 body.atelier #workbench .workbench-stage-actions button{min-height:44px!important;padding:10px 12px!important;border-radius:12px!important;font-size:13px!important}
 body.atelier #workbench .article-canvas-head h2{font:600 22px/1.5 var(--sans)!important}
 body.atelier #workbench .canvas-actions{flex-wrap:wrap!important;gap:6px!important}
 body.atelier #workbench .canvas-actions button{width:40px!important;height:40px!important;border-radius:11px!important}
 body.atelier #workbench .topic-row-list{display:grid!important;gap:12px!important}
 body.atelier #workbench button.topic-row{padding:16px 12px!important;max-width:100%!important;background:#fff!important;border:1px solid #d8e7da!important;border-radius:18px!important;box-sizing:border-box}
 body.atelier #workbench button.topic-row.is-selected{border-color:#72a282!important;background:#edf7ed!important}
 body.atelier #workbench .topic-row-title{font:600 16px/1.75 var(--sans)!important;color:#2d5139!important}
 body.atelier #workbench .topic-row-meta{display:flex!important;flex-wrap:wrap!important;gap:10px!important}
 body.atelier #workbench :is(.folio-doc,#article-editor){font-size:16px!important;line-height:1.95!important;padding:0!important}
 body.atelier #workbench .folio-doc p{font:400 16px/1.95 var(--sans)!important}
 body.atelier #workbench :is(input,textarea,button,a):focus-visible{outline:2px solid #5c9675!important;outline-offset:3px!important}
 /* Older desktop layers have two-ID selectors; reset their grid placement too. */
 body.atelier #workbench.workbench-page.normalized-conversation .conversation-workbench-layout{display:block!important;grid-template-columns:none!important;min-height:0!important;height:auto!important}
 body.atelier #workbench.workbench-page.normalized-conversation #creation-assistant{width:100%!important;grid-column:auto!important;grid-row:auto!important;border:0!important;overflow:visible!important}
 body.atelier #workbench.workbench-page.normalized-conversation #workbench-result{display:none!important;width:100%!important;grid-column:auto!important;grid-row:auto!important;padding:20px 16px!important;box-sizing:border-box;overflow:visible!important}
 body.atelier #workbench.workbench-page.normalized-conversation[data-output-open="true"] #creation-assistant{display:none!important}
 body.atelier #workbench.workbench-page.normalized-conversation[data-output-open="true"] #workbench-result{display:flex!important}
 body.atelier #workbench .conversation-panel-head{height:auto!important;min-height:0!important;flex-direction:column!important;align-items:stretch!important}
 body.atelier #workbench .pd-phline{display:none!important}
 body.atelier #workbench .canvas-actions{display:flex!important}
 body.atelier #workbench .conversation-identity{display:block!important}
 body.atelier #workbench .conversation-identity small{display:block!important;margin-top:5px!important}
 body.atelier #workbench .fl-inner h2,body.atelier #home .universe-entry h2{font-family:var(--sans)!important}
 body.atelier #workbench #workbench-chat-thread .chat-message p{font:400 15px/1.8 var(--sans)!important;padding:13px 15px!important;background:#ffffffd9!important;border:0!important;border-radius:18px!important;box-shadow:none!important;margin:0!important}
 body.atelier #workbench #workbench-chat-thread .chat-message.from-user p,body.atelier #workbench #workbench-chat-thread .chat-message.from-me p{background:#c9e6d3!important;font-weight:400!important}
 body.atelier #workbench #workbench-chat-thread .chat-message p::before,body.atelier #workbench #workbench-chat-thread .chat-message p::after{content:none!important}
 body.atelier #workbench .composer-shell #workbench-topic{font:400 16px/1.65 var(--sans)!important;height:72px!important;min-height:72px!important}
 body.atelier #workbench .conversation-panel-head .conversation-identity strong{font:600 16px/1.5 var(--sans)!important;letter-spacing:0!important}
 body.atelier #workbench .article-canvas-head #result-title{font:600 22px/1.5 var(--sans)!important}
 body.atelier #workbench #workbench-result .workbench-stage-head{border:0!important}
 body.atelier #workbench .conversation-panel-head .conversation-panel-tools .work-status{font-size:12px!important}
 body.atelier #workbench.normalized-conversation .composer-shell #workbench-topic::placeholder{font:400 16px/1.65 var(--sans)!important;color:#7c9182!important;letter-spacing:0!important}
 body.atelier #workbench.normalized-conversation .composer-shell #start-workbench{width:44px!important;height:44px!important;border:0!important;border-radius:14px!important;background:#337454!important;color:#fff!important;box-shadow:none!important}
 body.atelier #workbench.normalized-conversation #workbench-result #result-title{font:600 22px/1.5 var(--sans)!important}
 body.atelier #workbench.normalized-conversation .composer-shell #workbench-regenerate-topics{font:400 12px/1.5 var(--sans)!important;min-height:40px!important;border:0!important;background:none!important;color:#5c7a65!important;padding:6px 0!important}
}

@media(max-width:760px){
 body.atelier #home .he-member-pack{display:block;margin:12px 0 14px;padding:16px;border:1px solid #d7ead9;border-radius:20px;background:#f4fbf4;color:#244f35;box-shadow:0 10px 30px -24px #315c3d66}
 body.atelier #home .he-member-copy>span{display:block;color:#70917b;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
 body.atelier #home .he-member-copy>strong{display:block;margin-top:6px;font-size:18px;line-height:1.35}
 body.atelier #home .he-member-copy>small{display:block;margin-top:4px;color:#6a8572;font-size:12px}
 body.atelier #home .he-member-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:13px}
 body.atelier #home .he-member-links>a{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 9px;border-radius:11px;background:#fff;color:#275b3d;font-size:12px;font-weight:600;text-decoration:none}
 body.atelier #home .he-member-links>a>span{display:block}.he-member-links>a>span>small{display:block;margin-top:2px;color:#78a084;font-size:10px;font-weight:400}
 body.atelier #home .he-member-links>a>span>strong{font-size:12px}.he-member-links>a>b{font-size:15px;font-weight:400;color:#62a078}
 body.atelier #home .he-member-links .he-hotspot-link{grid-column:1/-1;min-height:52px;background:#e3f3e5;color:#205b38}
 body.atelier #home .he-member-links .he-hotspot-link small{color:#57906a}
 body.atelier .more-page{padding:22px 16px 100px;background:linear-gradient(180deg,#f4fbf4 0%,#eaf5ec 100%);min-height:100dvh;color:#214a32}
 body.atelier .more-heading{padding:10px 2px 18px}.more-heading>span{color:#73917d;font-size:10px;letter-spacing:.13em}.more-heading h1{margin:8px 0 2px;font-size:34px;line-height:1.15}.more-heading p{margin:0;color:#6a8572;font-size:13px}
 body.atelier .glass-module{margin:0 0 12px;padding:16px;border:1px solid #d5e9d8;border-radius:20px;background:#ffffffa8;box-shadow:0 10px 30px -25px #315c3d66;backdrop-filter:blur(10px)}
 body.atelier .more-account{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.more-account>div span{display:block;color:#708b78;font-size:11px}.more-account>div strong{display:flex;align-items:baseline;gap:5px;margin-top:4px;color:#1f5b39;font-size:26px}.more-account>div strong small{font-size:11px;color:#708b78;font-weight:400}.more-account>a,.more-account>button{min-height:42px;padding:0 11px;border:0;border-radius:11px;background:#e3f3e5;color:#286443;font-size:12px;text-decoration:none}.more-account>button{grid-column:2;background:#fff;border:1px solid #d5e9d8}
 body.atelier .more-module-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.more-module-title span{color:#83a08b;font-size:9px;letter-spacing:.13em}.more-module-title h2{margin:3px 0 0;font-size:20px}.more-module-title>a{color:#43805a;font-size:12px;text-decoration:none}.more-member-note{margin:12px 0;color:#52745e;font-size:12px}.more-link-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.more-link-grid>a,.more-community-entry{display:flex;flex-direction:column;justify-content:center;min-height:62px;padding:10px 11px;border-radius:13px;background:#f8fcf8;color:#285b3b;text-decoration:none}.more-link-grid>a strong{font-size:13px}.more-link-grid>a small{margin-top:4px;color:#789181;font-size:10px}.more-link-grid>a i{display:inline-block;margin-left:4px;padding:2px 5px;border-radius:5px;background:#d8f0dc;color:#39734c;font-size:9px;font-style:normal;font-weight:500}.more-community-entry{border:0;font:500 13px/1.4 var(--sans);text-align:left}
}
@media(max-width:600px){
 body.atelier #workbench.workbench-page.normalized-conversation:not([data-folio-empty="1"]){display:flex!important;flex-direction:column!important;height:calc(var(--mobile-viewport-height,100dvh) - var(--mobile-nav-space,88px) - env(safe-area-inset-bottom,0px))!important;min-height:0!important;padding-bottom:0!important;overflow:hidden!important}
 body.atelier #workbench:not([data-folio-empty="1"]) .mobile-site-brand{display:none!important}
 body.atelier #workbench:not([data-folio-empty="1"]) .studio-heading{padding:0 2px 10px!important;flex-shrink:0}
 body.atelier #workbench .pd-breadcrumb{display:none!important}
 body.atelier #workbench:not([data-folio-empty="1"]) #workbench-stage-nav{flex-shrink:0;margin-bottom:8px!important}
 body.atelier #workbench:not([data-folio-empty="1"]) .conversation-output-actions{position:static!important;flex-shrink:0;margin-bottom:10px!important;min-height:44px;box-sizing:border-box}
 body.atelier #workbench:not([data-folio-empty="1"]) .conversation-output-actions:has(button[hidden]){display:none!important}
 body.atelier #workbench.workbench-page.normalized-conversation:not([data-folio-empty="1"]) .conversation-workbench-layout{flex:1!important;min-height:0!important;overflow:hidden!important}
 body.atelier #workbench.workbench-page.normalized-conversation #creation-assistant{height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
 body.atelier #workbench .conversation-panel-head{display:flex!important;padding:0 2px 6px!important;margin:0!important;background:none!important;flex-shrink:0!important}
 body.atelier #workbench .conversation-panel-head .conversation-identity,body.atelier #workbench .conversation-panel-head .work-status{display:none!important}
 body.atelier #workbench .conversation-panel-tools{justify-content:flex-end!important}
 body.atelier #workbench #workbench-chat-thread{flex:1!important;min-height:40px!important;overflow-y:auto!important;overscroll-behavior:contain;padding:10px 0 16px!important;scrollbar-width:thin}
 body.atelier #workbench .composer-shell{position:static!important;flex-shrink:0!important;margin-top:8px!important;padding:12px 14px!important}
 body.atelier #workbench .composer-shell label{display:none!important}
 body.atelier #workbench .composer-shell #workbench-topic{height:62px!important;min-height:62px!important;padding:4px 0!important}
 body.atelier #workbench.workbench-page.normalized-conversation[data-output-open="true"] #creation-assistant{display:none!important}
 body.atelier #workbench.workbench-page.normalized-conversation[data-output-open="true"] #workbench-result{height:100%!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
 body.atelier #workbench .workbench-progress{flex-shrink:0;max-height:110px;overflow:auto}
 body.mobile-writing-keyboard #workbench{--mobile-nav-space:8px}
 body.mobile-writing-keyboard .v3-topbar{display:none!important}
 body.mobile-writing-keyboard #workbench .mobile-site-brand,body.mobile-writing-keyboard #workbench .studio-heading,body.mobile-writing-keyboard #workbench #workbench-stage-nav,body.mobile-writing-keyboard #workbench .conversation-panel-head{display:none!important}
}

@media(max-width:760px){
 body.atelier #home.home-v2 .universe-brand h1{font-size:clamp(27px,7.8vw,58px)!important;letter-spacing:-.055em!important;white-space:nowrap}
 body.atelier #home .he-intro h1{font-family:var(--sans)!important;font-size:clamp(30px,8.8vw,42px)!important;line-height:1.2!important;letter-spacing:-.04em!important;white-space:nowrap!important;margin:22px 0 14px!important}
 body.atelier #home .he-grid .he-tool:last-child{grid-column:auto}
 body.atelier #home .he-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.atelier #home .he-tool{min-height:166px;padding:16px}
 body.atelier #home .he-tool strong{font-size:16px;white-space:nowrap}
 body.atelier #home .he-tool small{font-size:11px;line-height:1.45}
 body.atelier .more-membership-open{min-height:36px;padding:6px 0;border:0;background:transparent;color:#43805a;font:500 12px/1.4 var(--sans);cursor:pointer}
 body.atelier .more-membership-open:hover{background:transparent;color:#286443}
 body.atelier .more-account-actions .more-link-grid:empty{display:none}
 body.atelier .more-account-actions .more-link-grid button{display:flex;flex-direction:column;justify-content:center;min-height:62px;padding:10px 11px;border:0;border-radius:13px;background:#f8fcf8;color:#285b3b;font:inherit;text-align:left;cursor:pointer}
 body.atelier .more-account-actions .more-link-grid button[hidden]{display:none!important}
 body.atelier .more-account-actions .more-link-grid button:hover{background:#edf8ee}
 body.atelier,
 body.atelier.hotspots-body{background:#f1f8f2!important;background-image:none!important;background-attachment:initial!important}
 body.atelier .app-shell,
 body.atelier.hotspots-body .app-shell{background:#f1f8f2!important}
 body.atelier :is(#home,#more,#hotspots,#wechat-plus,#viral-remix,#lowfans,#image-board,#topic-library){background:#f1f8f2!important}
}


/* --- mobile-center.css --- */
.shell-mobile-my { display: none; }
.my-page { max-width: 1000px; margin: 0 auto; padding: 28px 32px 56px; color: #183e2d; }
.my-heading { margin-bottom: 18px; }
.my-heading h1 { margin: 0; font-size: 26px; font-weight: 650; }
/* ===== 我的页 · 积分卡（按付费转化 UI 稿 ② ③ 屏落地） ===== */
.my-credit-card { padding: 16px 17px 15px; }
.my-credit-label { display: block; color: #667f6f; font-size: 12px; }
.my-credit-top { display: flex; align-items: flex-end; justify-content: space-between; margin: 2px 0 4px; }
.my-credit-num { display: flex; align-items: baseline; gap: 6px; font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: #14523a; font-variant-numeric: tabular-nums; }
.my-credit-num small { font-size: 13px; font-weight: 600; color: #778c7d; letter-spacing: 0; }
.my-credit-convert { display: inline-block; margin: 2px 0 12px; padding: 4px 9px; border-radius: 8px; background: #e4f3e7; color: #4c6a58; font-size: 11.5px; line-height: 1.4; }
.my-credit-convert[hidden] { display: none; }
.my-credit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.my-credit-actions > a, .my-credit-actions > button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.my-credit-recharge { border: 0; background: #e4f3e7; color: #14523a; }
.my-credit-history { border: 1px solid #ddeae0; background: #fff; color: #24382c; }

/* ===== 我的页 · 会员卡（稿 ② 未开通 / ③ 会员态） ===== */
/* 特异性说明：mobile-creator.css 的 body.atelier .glass-module 是 (0,2,1)，
   会压过任何 (0,2,0) 的卡片背景（白玻璃盖掉深绿会员态 → 白底白字）。
   这里统一用 #my 前缀（1,1,0+）稳赢，不做 !important。 */
#my .my-member-card { position: relative; overflow: hidden; padding: 18px 17px 16px; background: linear-gradient(155deg, #fff 40%, #eaf6ee 100%); border: 1px solid rgba(27,122,88,.14); box-shadow: 0 14px 34px -26px rgba(15,58,40,.55); }
#my .my-member-card::after { content: ""; position: absolute; right: -40px; top: -56px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(27,122,88,.13), transparent 68%); pointer-events: none; }
.my-member-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.my-member-mtitle { display: flex; align-items: center; gap: 7px; min-width: 0; }
.my-member-mtitle h2 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.my-member-more { flex: none; border: 0; background: none; padding: 4px 0; min-height: auto; color: #1b7a58; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.my-member-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.my-member-badge.on { background: rgba(39,134,90,.12); color: #1d7a45; }
.my-member-badge.warn { background: #fff1dc; color: #a8630b; }
.my-member-badge.mute { background: rgba(80,110,95,.1); color: #5d7464; }
.my-member-sub { margin: 8px 0 0; font-size: 11.5px; line-height: 1.55; color: #667f6f; text-align: left; }
.my-member-list { display: flex; flex-direction: column; gap: 10px; margin: 15px 0 16px; }
.my-member-item { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.35; color: #24382c; text-decoration: none; text-align: left; }
.my-member-ico { width: 26px; height: 26px; border-radius: 8px; background: rgba(27,122,88,.1); color: #14523a; display: grid; place-items: center; }
.my-member-ico svg { width: 14px; height: 14px; }
.my-member-meta { font-size: 10.5px; color: #8ba093; text-align: right; white-space: nowrap; }
.my-member-cta { margin-top: 0; display: flex; }
.my-member-cta-btn, .btn-renew { border: 0; cursor: pointer; font-family: inherit; }
.my-member-cta-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; border-radius: 14px; background: linear-gradient(160deg,#1F8A63,#0F5C40); color: #fff; font-size: 14.5px; font-weight: 650; box-shadow: 0 10px 22px -14px rgba(15,92,64,.8); }
.my-member-cta-btn small { font-weight: 500; opacity: .82; font-size: 11.5px; }
/* 会员态深绿变体 */
#my .my-member-card.is-active { background: linear-gradient(155deg, #14382a, #0c2a1f); border-color: transparent; color: #eaf6ee; }
#my .my-member-card.is-active .my-member-mtitle h2 { color: #fff; }
#my .my-member-card.is-active .my-member-more { color: #a7e7c6; }
#my .my-member-card.is-active .my-member-sub { color: rgba(234,246,238,.72); }
#my .my-member-card.is-active .my-member-item { color: #eaf6ee; }
#my .my-member-card.is-active .my-member-meta { color: rgba(234,246,238,.6); }
#my .my-member-card.is-active .my-member-ico { background: rgba(255,255,255,.12); color: #c8f0da; }
#my .my-member-card.is-active::after { background: radial-gradient(circle, rgba(200,240,218,.18), transparent 68%); }
#my .my-member-card.is-active .my-member-badge.on { background: rgba(200,240,218,.16); color: #c8f0da; }
.my-renew-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding-top: 13px; border-top: 1px solid rgba(234,246,238,.14); }
.my-renew-days { font-size: 12px; color: #a7e7c6; }
.btn-renew { min-height: 38px; padding: 0 16px; border-radius: 11px; background: #eaf6ee; color: #0f5c40; font-size: 12.5px; font-weight: 650; }
.my-module { padding: 18px 20px; }
.my-module .more-module-title { margin-bottom: 12px; }
.my-module .more-module-title h2 { margin: 0; font-size: 18px; }
.my-account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.my-account-actions button { text-align: left; cursor: pointer; }
.my-account-actions button[hidden] { display: none !important; }
@media (max-width: 760px) {
  /* 底部留白：body 的 96px 在「我的/更多」这种短页面上不一定能撑过固定底栏
     （底栏 68px + 安全区/浏览器工具栏），账号与管理/退出登录会被遮。
     这里直接给页面自身补足以清过底栏，保证末屏内容可见。 */
  body.atelier #more.more-page, body.atelier #my.my-page { padding: 18px 14px calc(112px + env(safe-area-inset-bottom)) !important; }

  body.atelier #more .more-heading,
  body.atelier #my .my-heading { margin: 0 0 18px !important; text-align: left !important; }
  body.atelier #more .more-heading > span,
  body.atelier #my .my-heading > span { display: none !important; }
  body.atelier #more .more-heading h1,
  body.atelier #my .my-heading h1 {
    margin: 0 !important; font-size: 30px !important; line-height: 1.25 !important;
    font-weight: 600 !important; letter-spacing: .01em; text-align: left !important;
  }
  body.atelier #more .more-heading p,
  body.atelier #my .my-heading p {
    display: block !important; margin: 6px 0 0 !important;
    color: #5e7868 !important; font-size: 12.5px !important; line-height: 1.5;
  }

  body.atelier #more .glass-module, body.atelier #my .glass-module {
    border-radius: 20px !important; padding: 18px !important; margin-bottom: 12px !important;
  }
  body.atelier #more .more-module { margin-top: 0 !important; }
  body.atelier #more .more-module-title, body.atelier #my .more-module-title { margin-bottom: 12px !important; }
  body.atelier #more .more-module-title h2, body.atelier #my .more-module-title h2 {
    font-size: 17px !important; font-weight: 600 !important;
  }
  body.atelier #more .more-module-title > div > span { display: none !important; }

  /* 积分卡：数值独占一行，换算胶囊，两个按钮等分并排（稿 ② ③） */
  body.atelier #my .my-credit-card { padding: 16px !important; margin-bottom: 12px !important; }
  body.atelier #my .my-credit-num { font-size: 34px; }
  body.atelier #my .my-credit-convert { font-size: 11px; }
  body.atelier #my .my-credit-actions > a, body.atelier #my .my-credit-actions > button { min-height: 44px; font-size: 12.5px; }

  /* 账号与管理：单列列表行，图标 20 + 12 间距 + 标题 + chevron */
  body.atelier #my .more-link-grid.my-account-actions { display: block !important; }
  body.atelier #my .my-account-actions button {
    position: relative; display: flex !important; align-items: center; gap: 12px;
    width: 100%; min-height: 52px; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important; background: transparent !important;
    box-shadow: none !important; text-align: left; cursor: pointer;
    color: #1b2e22; font-size: 14px; font-weight: 400;
  }
  body.atelier #my .my-account-actions button :is(svg, i) {
    width: 20px; height: 20px; flex: none; stroke-width: 1.6; color: #46604f;
  }
  body.atelier #my .my-account-actions button::after {
    content: ""; width: 7px; height: 7px; margin-left: auto; flex: none;
    border-right: 1.5px solid #b4c5b9; border-bottom: 1.5px solid #b4c5b9;
    transform: rotate(-45deg);
  }
  body.atelier #my .my-account-actions button + button::before {
    content: ""; position: absolute; left: 32px; right: 0; top: 0; height: 1px; background: #eff4f0;
  }
  body.atelier #my .my-account-actions button[hidden] { display: none !important; }

  body.atelier #more .more-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  body.atelier #more .more-link-grid > a,
  body.atelier #more .more-link-grid > button { min-width: 0; min-height: 76px !important; padding: 13px !important; }
  body.atelier #more .more-link-grid strong { font-size: 14px !important; line-height: 1.4 !important; overflow-wrap: anywhere; }
  body.atelier #more .more-link-grid small { font-size: 12px !important; line-height: 1.45 !important; }

  body.atelier #my .more-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  body.atelier #my .more-link-grid > a {
    min-width: 0; padding: 10px 0 !important; min-height: auto !important;
    background: transparent !important; border-radius: 0 !important;
  }
  body.atelier #my .more-link-grid strong { font-size: 14px !important; color: #1f5137 !important; }
  body.atelier #my .more-link-grid small { font-size: 11.5px !important; }

  /* 会员卡（稿 ② ③）：权益行 26px 图标列 + 右侧定宽 meta，CTA 渐变绿 */
  body.atelier #my .my-member-card { padding: 16px 15px 15px !important; }
  body.atelier #my .my-member-head h2 { font-size: 16.5px !important; }
  body.atelier #my .my-member-more { min-height: 32px; }
  body.atelier #my .my-member-badge { font-size: 11px; padding: 2px 9px; }
  body.atelier #my .my-member-list { margin: 13px 0 14px; }
  body.atelier #my .my-member-item { font-size: 12.5px; }
  body.atelier #my .my-member-cta-btn { min-height: 48px; }
  body.atelier #my .btn-renew { min-height: 40px; }
}


/* --- points-notice.css --- */
body.points-notice-open{overflow:hidden}
html body #points-notice{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:32px;border:1px solid #ffffffe6;border-radius:28px;background:#f3faf3;color:#244532;box-shadow:0 28px 90px #193e3338;font-family:var(--sans,system-ui,sans-serif)}
#points-notice::backdrop{background:#24473542;backdrop-filter:blur(9px)}
html body #points-notice .points-notice-close{position:absolute;right:18px;top:18px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #d8e5d9;border-radius:12px;color:#65816c;background:#ffffffb3;font:400 24px/1 system-ui;cursor:pointer}
#points-notice .points-notice-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#dfede0;color:#467459;font-size:25px;margin-bottom:22px}
#points-notice .points-notice-eyebrow{font-size:11px;letter-spacing:.1em;color:#6d8573}
html body #points-notice #points-notice-title{font:650 27px/1.4 var(--sans,system-ui,sans-serif)!important;letter-spacing:-.025em;margin:8px 0 12px;color:#234a32}
html body #points-notice p{font:400 14px/1.85 var(--sans,system-ui,sans-serif)!important;letter-spacing:0;margin:0;color:#647b6a;overflow-wrap:anywhere}
#points-notice .points-notice-contact{margin:24px 0;padding:18px;background:#e6f1e6;border:1px solid #d7e6d8;border-radius:18px}
html body #points-notice #points-notice-contact{font-weight:550!important;color:#315e40;user-select:text}
html body #points-notice .points-notice-copy{min-height:40px;margin:12px 0 0;padding:8px 12px;border:1px solid #c6dacb;border-radius:10px;background:#f8fcf6;color:#3c6c4b;font:500 13px/1.5 var(--sans,system-ui,sans-serif);cursor:pointer}
#points-notice .points-notice-feedback{display:block;font-size:12px;color:#5d7d65;margin-top:6px}
#points-notice .points-notice-feedback:empty{display:none}
html body #points-notice .points-notice-confirm{display:block;width:100%;min-height:46px;padding:12px;border:0;border-radius:14px;background:#337454;color:white;font:550 15px/1.5 var(--sans,system-ui,sans-serif);cursor:pointer}
#points-notice .points-notice-packages{display:grid;gap:10px;margin:22px 0 14px}
html body #points-notice a.points-notice-plan.is-recommended{border-color:#80c6a1;background:#ebf9f0;box-shadow:inset 0 1px #fff}
html body #points-notice .points-notice-example{font-size:11px!important;line-height:1.6!important;color:#738d7e;margin:2px 2px 0}
#points-notice .points-notice-loading,#points-notice .points-notice-empty{margin:0;font-size:13px;color:#6d8573;text-align:center;padding:14px 0}
html body #points-notice a.points-notice-plan{display:flex;align-items:center;justify-content:space-between;gap:12px;
padding:14px 16px;border:1px solid #d7e6d8;border-radius:16px;background:#ffffff;color:#244532;text-decoration:none;
transition:border-color .15s ease,transform .15s ease}
html body #points-notice a.points-notice-plan:hover{border-color:#7fb89c;transform:translateY(-1px)}
.points-notice-plan-head{display:flex;flex-direction:column;gap:2px}
.points-notice-plan-head b{font-size:14px;font-weight:600}
.points-notice-plan-credits{font-size:12px;color:#6d8573}
.points-notice-plan-price{font-family:Georgia,"Songti SC",serif;font-size:19px;color:#1B7A58;font-weight:600}
html body #points-notice a.points-notice-more{display:block;text-align:center;font-size:12.5px;color:#3c6c4b;
text-decoration:underline dotted;margin:0 0 16px}
html body #points-notice a.points-notice-more:hover{color:#1B7A58}
#points-notice button:focus-visible{outline:2px solid #5e9973;outline-offset:3px}
@media(max-width:480px){html body #points-notice{padding:28px 24px;border-radius:24px}}

html body #points-notice .points-notice-member-hint { padding:11px 13px; margin:14px 0; border-radius:12px; background:#e6f5e9; color:#245c38; font-size:13px; line-height:1.7; }


/* --- auth-mint.css --- */
/* Account entry — paper & ink-green, compact and quiet. 2026-11-18 refactor.
   Visual rules only: DOM, ids and JS behaviour are intentionally untouched. */
body.auth-open{overflow:hidden}
body.atelier #auth-modal{box-sizing:border-box;position:fixed;inset:0;z-index:200;display:grid;place-items:center;grid-template-columns:minmax(0,1fr);padding:24px!important;overflow:auto;background:rgba(28,54,40,.26)!important;backdrop-filter:blur(6px)!important}
body.atelier #auth-modal[hidden]{display:none!important}
body.atelier #auth-modal .auth-card{position:relative;box-sizing:border-box;width:480px!important;max-width:100%!important;max-height:calc(100dvh - 48px)!important;overflow:auto;overscroll-behavior:contain;scroll-padding:20px;padding:30px 34px 22px!important;border:1px solid rgba(255,255,255,.94)!important;border-radius:22px!important;background:linear-gradient(155deg,#ffffff 0%,#fcfdf9 66%,#f2f7f2 100%)!important;box-shadow:0 24px 72px rgba(29,55,39,.18),inset 0 1px 0 #fff!important;color:#1d2f25!important;font-family:var(--font-sans,system-ui,sans-serif)!important;scrollbar-width:thin}
body.atelier #auth-modal .auth-home{position:absolute;top:16px;right:16px;z-index:1;display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(47,111,79,.14);border-radius:50%;background:rgba(255,255,255,.6);color:#5c7565;font:400 24px/1 system-ui;text-decoration:none;cursor:pointer}
body.atelier #auth-modal .auth-home:hover{background:#eef5ef;color:#24543c}
body.atelier #auth-modal .auth-brand{display:flex;align-items:center;gap:10px;margin:0 0 22px;padding:0;background:none;border:0}
body.atelier #auth-modal .auth-brand img{display:block;width:38px;height:38px;object-fit:contain}
body.atelier #auth-modal .auth-brand strong{display:block;font:650 14px/1.5 var(--font-sans,system-ui,sans-serif);color:#1d2f25}
body.atelier #auth-modal .auth-brand small{display:block;margin-top:1px;font:400 11px/1.5 var(--font-sans,system-ui,sans-serif);color:#7b8f80;letter-spacing:.06em}
body.atelier #auth-modal .auth-copy{margin:0 0 18px;padding:0!important;text-align:left}
body.atelier #auth-modal #auth-title{margin:0 0 8px!important;font:500 30px/1.28 "UW Serif SC",var(--serif,"Songti SC",serif)!important;letter-spacing:-.02em!important;color:#203c2d!important}
body.atelier #auth-modal #auth-description{margin:0;font:400 13px/1.65 var(--font-sans,system-ui,sans-serif)!important;color:#63796a!important}
body.atelier #auth-modal #auth-action-reason{margin:8px 0 0;font:400 12px/1.6 var(--font-sans,system-ui,sans-serif);color:#2f6f4f}
body.atelier #auth-modal #auth-action-reason[hidden]{display:none!important}
body.atelier #auth-modal .auth-browse{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:36px;margin:6px 0 0;padding:0;border:0;background:transparent;color:#8aa192;font:400 12px/1.5 var(--font-sans,system-ui,sans-serif);cursor:pointer}
body.atelier #auth-modal .auth-browse:hover{color:#2f6f4f;text-decoration:underline}
body.atelier #auth-modal .auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;margin:0 0 20px;border:0;border-radius:11px;background:#eef3ed}
body.atelier #auth-modal .auth-tabs button{min-height:40px;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:#748779!important;font:500 13px/1.5 var(--font-sans,system-ui,sans-serif)!important;cursor:pointer}
body.atelier #auth-modal .auth-tabs button.active{background:#fff!important;color:#24543c!important;box-shadow:0 1px 4px rgba(29,55,39,.1)!important;font-weight:650!important}
body.atelier #auth-modal .auth-phone-login{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;margin:10px 0 0;padding:6px 10px;border:0;background:transparent;color:#4d7a5e;text-decoration:none;transition:color .16s}
body.atelier #auth-modal .auth-phone-login:hover{color:#24543c;text-decoration:underline}
body.atelier #auth-modal .auth-phone-login:focus-visible{outline:3px solid #7db79a;outline-offset:2px}
body.atelier #auth-modal .auth-phone-login span{font:500 12.5px/1.4 var(--font-sans,system-ui,sans-serif)}
body.atelier #auth-modal .auth-phone-login small{display:none}
body.atelier #auth-modal .auth-phone-login b{font-size:17px;font-weight:400;line-height:1}
body.atelier #auth-modal .auth-form{display:flex;flex-direction:column;gap:0;margin:0}
body.atelier #auth-modal .auth-form label{display:block;margin:0 0 7px;font:500 13px/1.5 var(--font-sans,system-ui,sans-serif);color:#3a5745}
body.atelier #auth-modal .auth-identity-fields{display:block;margin:0}
body.atelier #auth-modal .auth-form input{box-sizing:border-box;display:block;width:100%;min-width:0;height:46px;margin:0 0 15px;padding:0 13px!important;border:1px solid #d3e0d6!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;color:#1d2f25!important;font:400 14px/1.5 var(--font-sans,system-ui,sans-serif)!important;letter-spacing:0}
body.atelier #auth-modal .auth-form input:focus{border-color:#5c9673!important;box-shadow:0 0 0 3px rgba(92,150,115,.14)!important;outline:none}
body.atelier #auth-modal input::placeholder{color:#9aab9e!important;opacity:1}
body.atelier #auth-modal .auth-password-wrap{position:relative}
body.atelier #auth-modal #auth-password{padding-right:64px!important;margin-bottom:0}
body.atelier #auth-modal #auth-password-toggle{position:absolute;right:4px;top:3px;min-width:54px;height:40px;padding:0 8px;background:transparent;border:0;border-radius:8px;color:#3b6950;font:500 12px/1.5 var(--font-sans,system-ui,sans-serif);cursor:pointer}
body.atelier #auth-modal #display-name-field{margin:0 0 15px}
body.atelier #auth-modal #display-name-field[hidden]{display:none!important}
body.atelier #auth-modal #display-name-field label{display:flex;align-items:baseline;gap:8px}
body.atelier #auth-modal .auth-name-hint{font:400 11px/1.5 var(--font-sans,system-ui,sans-serif)!important;font-weight:400!important;color:#8aa192!important;margin:0}
body.atelier #auth-modal .auth-name-wrap{position:relative}
body.atelier #auth-modal #auth-display-name{margin-bottom:0!important;padding-right:54px!important}
body.atelier #auth-modal #auth-name-count{position:absolute;right:13px;top:50%;transform:translateY(-50%);font:400 11px/1 var(--font-sans,system-ui,sans-serif);color:#8aa192;pointer-events:none}
body.atelier #auth-modal #auth-name-count.over{color:#b4573c;font-weight:600}
body.atelier #auth-modal #auth-challenge{margin:16px 0 0;padding:12px;border:1px solid #d9e7dc;border-radius:12px;background:rgba(255,255,255,.6)}
body.atelier #auth-modal #auth-challenge[hidden],body.atelier #auth-modal #auth-email-code-field[hidden]{display:none!important}
body.atelier #auth-modal .auth-verification-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px;color:#3a5745;font-size:12px;font-weight:600}
body.atelier #auth-modal .auth-verification-head small{font-size:11px;font-weight:400;color:#6f8475}
body.atelier #auth-modal #auth-challenge-widget{display:flex;justify-content:center;min-width:0;width:100%}
body.atelier #auth-modal #auth-challenge-retry{display:block;min-height:40px;margin:10px auto 0;padding:7px 14px;border:1px solid #a9cdb6;border-radius:9px;background:#eef7f0;color:#245b3e;font:600 12px/1.5 var(--font-sans,system-ui,sans-serif);cursor:pointer}
body.atelier #auth-modal #auth-challenge-retry[hidden]{display:none!important}
body.atelier #auth-modal #auth-email-code-field{margin-top:14px}
body.atelier #auth-modal #auth-challenge:not([hidden]) + #auth-email-code-field{margin-top:0}
body.atelier #auth-modal #auth-email-code-field>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:9px}
body.atelier #auth-modal #auth-email-code{height:46px;margin:0!important;letter-spacing:.12em}
body.atelier #auth-modal #auth-send-code{min-width:120px;min-height:46px;padding:8px 12px;border:1px solid #c2d8c8;border-radius:10px;background:#f7fcf8;color:#245b3e;font:600 12px/1.5 var(--font-sans,system-ui,sans-serif);cursor:pointer;white-space:nowrap}
body.atelier #auth-modal #auth-send-code:hover:not(:disabled){background:#e9f4ec}
body.atelier #auth-modal #auth-send-code:disabled{background:#eef2ee;color:#708374;border-color:#dce4dd;opacity:1;cursor:not-allowed}
body.atelier #auth-modal #auth-code-status{display:block;margin:7px 0 0;font-size:11px;line-height:1.6;color:#477c60;overflow-wrap:anywhere}
body.atelier #auth-modal #auth-code-status:empty{display:none}
body.atelier #auth-modal #auth-error{margin:12px 0 0;padding:10px 12px;border:1px solid #ecd3c6;border-radius:10px;background:#fff6f1;color:#92442d;font:400 12px/1.6 var(--font-sans,system-ui,sans-serif);overflow-wrap:anywhere}
body.atelier #auth-modal #auth-error[hidden]{display:none!important}
body.atelier #auth-modal input[aria-invalid=true]{border-color:#b4654c!important}
body.atelier #auth-modal #auth-submit{width:100%;min-height:48px;margin:18px 0 0;padding:12px 18px;border:1px solid transparent!important;border-radius:11px!important;background:#2f6f4f!important;color:#fff!important;box-shadow:0 6px 16px rgba(47,111,79,.2)!important;font:600 15px/1.5 var(--font-sans,system-ui,sans-serif)!important;cursor:pointer;transition:background .16s}
body.atelier #auth-modal #auth-submit:hover:not(:disabled){background:#275e42!important}
body.atelier #auth-modal button:disabled{opacity:.6;cursor:wait}
body.atelier #auth-modal :is(input,button,a,summary):focus-visible{outline:2px solid #4f8e69!important;outline-offset:2px!important}
body.atelier #auth-modal .auth-help{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid #e6ece7;font-size:12px;line-height:1.6;color:#758879}
body.atelier #auth-modal .auth-help strong{color:#3b654b;font-weight:600}
body.atelier #auth-modal #auth-copy-contact{flex-shrink:0;min-height:36px;min-width:64px;padding:6px 11px;border:1px solid #d3e2d7;border-radius:9px;background:#fff;color:#3b654b;font:600 12px/1.5 var(--font-sans,system-ui,sans-serif);cursor:pointer}
body.atelier #auth-modal #auth-copy-contact:hover{background:#eef7f0}
body.atelier #auth-modal #auth-copy-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.atelier #auth-modal .auth-footer{margin:14px 0 0;text-align:center;color:#9aac9d;font:400 11px/1.6 var(--font-sans,system-ui,sans-serif)}
@media(max-width:600px){
 body.atelier #auth-modal{padding:max(14px,env(safe-area-inset-top)) 12px max(14px,env(safe-area-inset-bottom))!important}
 body.atelier #auth-modal .auth-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 28px)!important;padding:26px 22px 20px!important;border-radius:18px!important}
 body.atelier #auth-modal .auth-brand{margin-bottom:18px}
 body.atelier #auth-modal #auth-title{font-size:27px!important}
 body.atelier #auth-modal #auth-description{font-size:12px!important}
 body.atelier #auth-modal .auth-phone-login{min-height:36px;margin-top:8px}
 body.atelier #auth-modal .auth-browse{min-height:32px}
 body.atelier #auth-modal #auth-send-code{min-width:104px;padding:8px;font-size:12px}
 body.atelier #auth-modal #auth-email-code-field>div{gap:7px}
 body.atelier #auth-modal .auth-optional{margin-top:12px}
}
@media(max-width:360px){
 body.atelier #auth-modal .auth-card{padding:22px 17px 18px!important}
 body.atelier #auth-modal #auth-title{font-size:25px!important}
}
@media(max-height:700px){
 body.atelier #auth-modal{place-items:start center!important;padding:12px!important}
 body.atelier #auth-modal .auth-card{max-height:calc(100dvh - 24px)!important;padding-top:22px!important;padding-bottom:18px!important}
 body.atelier #auth-modal .auth-brand{margin-bottom:14px}
 body.atelier #auth-modal .auth-copy{margin-bottom:12px}
 body.atelier #auth-modal .auth-tabs{margin-bottom:14px}
 body.atelier #auth-modal .auth-browse{margin-bottom:10px}
 body.atelier #auth-modal .auth-footer{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){body.atelier #auth-modal *{transition:none!important}}

/* --- viral-remix.css --- */
﻿body #viral-remix { padding:36px 40px!important; background:transparent!important; border:0!important; }
#viral-remix .v3-meta { display:flex!important; margin-bottom:24px; color:#638675; }
#viral-remix .skill-shell { display:grid!important; grid-template-columns:minmax(340px,420px) minmax(0,1fr)!important; gap:24px!important; align-items:start; border:0!important; background:transparent!important; box-shadow:none!important; }
#viral-remix .skill-form-col,#viral-remix .skill-output-col { padding:30px!important; border:1px solid #ffffff!important; border-radius:24px!important; background:linear-gradient(135deg,#ffffffed,#eff9f2cc)!important; box-shadow:0 14px 40px #29543d09!important; min-width:0; }
#viral-remix h1 { font-family:inherit!important; font-size:30px!important; line-height:1.35; color:#244b39; margin:16px 0; }
#viral-remix p { font-size:14px; line-height:1.8; color:#678373; }
#viral-remix .skill-form { padding:0!important; margin-top:24px; border:0!important; background:transparent!important; box-shadow:none!important; }
#viral-remix .form-section { border:0; padding:0; }
#viral-remix .head { margin-bottom:18px; }
#viral-remix .viral-upload { display:flex!important; position:relative; flex-direction:column!important; justify-content:center; align-items:center; gap:10px; min-height:200px; padding:24px; border:1.5px dashed #9ac8ae; border-radius:18px; background:#eaf6ee88; color:#285b42; text-align:center; box-sizing:border-box; }
#viral-remix .viral-upload strong { font-size:16px; } #viral-remix .viral-upload small { font-size:12px; color:#789284; }
#viral-remix .viral-upload-icon { display:grid; place-items:center; width:46px;height:46px; border:1px solid #b2d7c0; border-radius:14px; font-size:28px; background:#fff; color:#287c55; }
#viral-remix .field-wide { display:flex; flex-direction:column; gap:10px; margin-top:24px; font-size:13px; color:#476e59; }
#viral-remix textarea { padding:14px; min-height:100px; border:1px solid #cce0d2!important; border-radius:12px!important; background:#ffffffbb!important; font-size:14px!important; line-height:1.6; }
#viral-remix .skill-primary { margin-top:24px; width:100%; min-height:48px; border-radius:12px!important; background:linear-gradient(110deg,#24875e,#125333)!important; color:white; font-size:15px!important; }
#viral-remix .viral-empty { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:22px; min-height:500px; padding:20px!important; text-align:left!important; background:transparent!important; }
#viral-remix .viral-empty h2 { font-size:28px!important; line-height:1.5; color:#244b39; margin:0; }
#viral-remix .tie-steps { display:grid!important; grid-template-columns:repeat(2,1fr); list-style:none; padding:0; gap:14px; width:100%; margin:12px 0; }
#viral-remix .tie-steps li { display:flex; align-items:center; gap:12px; padding:18px; border:1px solid #d9e9de; border-radius:14px; background:#ffffff99; font-size:14px; color:#527460; }
#viral-remix .tie-steps b { color:#2c8a5d; font-size:13px; }
#viral-remix .tag { font-size:12px; color:#518268; letter-spacing:.04em; }
#viral-remix .viral-preview[hidden],#viral-remix .viral-result[hidden],#viral-remix .viral-empty[hidden] { display:none!important; }
#viral-remix .viral-ideas { grid-template-columns:1fr; } #viral-remix .viral-idea { border:1px solid #d6e7dc; background:#ffffffb3; }
.viral-file{display:flex;align-items:center;gap:10px;padding:8px;min-width:0}.viral-file img{width:50px;height:65px;object-fit:cover}.viral-file span{overflow:hidden;text-overflow:ellipsis;font-size:12px}.viral-file button{margin-left:auto}.viral-delivery{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;padding:20px;background:#eef7f0;border-radius:14px}#viral-remix-preview{display:flex;flex-direction:column;align-items:stretch}#viral-remix-result select{display:block;width:100%;padding:12px;margin:8px 0 16px;border:1px solid #cce0d2;border-radius:10px;background:white}
@media(max-width:1100px){body #viral-remix{padding:24px 24px calc(120px + env(safe-area-inset-bottom))!important}#viral-remix .skill-shell{grid-template-columns:1fr!important}#viral-remix .viral-empty{min-height:300px}#viral-remix #viral-remix-start{min-height:48px;scroll-margin-bottom:110px}}
#viral-remix #viral-remix-preview{display:flex!important;flex-direction:column!important;width:100%;box-sizing:border-box}#viral-remix .viral-file{display:grid!important;grid-template-columns:50px minmax(0,1fr) 48px;gap:10px;width:100%;box-sizing:border-box}#viral-remix .viral-file span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}#viral-remix .viral-file button{padding:6px;border:1px solid #cce0d2;border-radius:6px;background:white;color:#37684b}#viral-remix #viral-remix-preview[hidden]{display:none!important}
#viral-remix .remix-panel[hidden]{display:none!important}
#viral-remix .skill-output-col{padding:24px!important;max-height:none!important}
#viral-remix .remix-result-tabs{display:flex;gap:6px;padding:6px;background:#e8f2eb;border:1px solid #d5e5da;border-radius:14px;margin-bottom:24px}
#viral-remix .remix-result-tabs button{flex:1;padding:13px 8px;border:0;border-radius:10px;color:#597461;background:transparent;font-size:14px;font-weight:600;cursor:pointer}
#viral-remix .remix-result-tabs button[aria-selected=true]{background:white;color:#176641;box-shadow:0 2px 8px #23472e0a}
#viral-remix .viral-result-card{padding:24px;border:0;background:transparent;box-shadow:none}
#viral-remix .viral-result-card h2{font-family:inherit!important;font-size:24px!important;line-height:1.55;max-width:36em;margin:14px 0 22px;color:#244b39}
#viral-remix .viral-analysis{border:0;background:transparent;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
#viral-remix .viral-analysis>div{border:1px solid #dbe9df;border-radius:12px;padding:18px;background:#ffffffa6;gap:10px}
#viral-remix .viral-analysis span{font-size:14px;line-height:1.8;color:#425c4c;max-width:42em}
#viral-remix .viral-analysis b{font-size:12px;color:#28774d}
#viral-remix .remix-page-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
#viral-remix .remix-page-list article{padding:18px;border:1px solid #dbe9df;border-radius:12px;background:#ffffffb3}
#viral-remix .remix-page-list h4{font-size:16px;margin:10px 0}
#viral-remix .remix-page-list p{margin:8px 0;line-height:1.75}
#viral-remix .viral-ideas{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px;margin:0}
#viral-remix .viral-ideas > p{grid-column:1/-1;margin:0}
#viral-remix .remix-choices{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;padding:20px;border:1px solid #dbe9df;border-radius:14px;background:#ffffff8c}
#viral-remix .remix-choices h3,#viral-remix .remix-choices>p{grid-column:1/-1;margin:0 0 14px}
#viral-remix .viral-idea{display:flex;flex-direction:column;padding:22px;min-width:0;border-radius:16px}
#viral-remix .viral-idea>p{min-height:0;font-size:14px;line-height:1.8;color:#425c4c}
#viral-remix .viral-idea dl{flex:1;gap:18px;margin:18px 0 24px}
#viral-remix .viral-idea dd{font-size:13px;line-height:1.8;color:#597263}
#viral-remix .viral-generate,#viral-remix .remix-next{display:inline-flex!important;justify-content:center;align-items:center;gap:9px;min-height:46px;padding:12px 16px!important;border:0!important;border-radius:10px!important;background:#21744c!important;color:white!important;font-size:14px!important;line-height:1.5;white-space:normal;cursor:pointer;box-shadow:none!important}
#viral-remix .viral-generate:disabled{background:#e0eee5!important;color:#38664c!important;cursor:wait}
#viral-remix .button-spinner{display:inline-block!important;position:static!important;width:15px!important;height:15px!important;flex:0 0 15px;border:2px solid #91b39f;border-top-color:#38664c;border-radius:50%;animation:remix-spin .9s linear infinite}
#viral-remix .remix-output-placeholder{padding:60px 24px;text-align:center;color:#678373}
#viral-remix .remix-output-wait{padding:26px 28px 24px;border:1px solid #d6e7dc;border-radius:16px;background:#f7fcf8;text-align:left}
#viral-remix .remix-wait-head{display:flex;align-items:flex-start;gap:11px}
#viral-remix .remix-wait-pulse{flex:none;width:9px;height:9px;margin-top:8px;border-radius:50%;background:#2c8a5d;box-shadow:0 0 0 0 rgba(44,138,93,.5);animation:remix-wait-pulse 1.8s ease-out infinite}
#viral-remix .remix-wait-copy{min-width:0;flex:1}
#viral-remix .remix-output-wait h3{font-size:16.5px;font-weight:600;color:#1f4433;margin:0;line-height:1.55}
#viral-remix .remix-wait-plan{margin:3px 0 0;font-size:12.5px;color:#6d8a7b}
#viral-remix .remix-wait-track{margin:16px 0 0 20px;height:6px;border-radius:999px;background:#e2efe7;overflow:hidden}
#viral-remix .remix-wait-track i{display:block;height:100%;width:10%;border-radius:999px;background:linear-gradient(90deg,#2c8a5d,#54b184);transition:width .5s ease}
#viral-remix .remix-wait-progress{margin:14px 0 0 20px;font-size:13.5px;font-weight:600;color:#1f5c40}
#viral-remix .remix-output-wait .wait-elapsed{margin:4px 0 0 20px;font-size:12.5px;color:#5d8271;font-variant-numeric:tabular-nums}
#viral-remix .remix-output-wait .remix-wait-hint{margin:10px 0 0 20px;font-size:12.5px;line-height:1.7;color:#789284}
@keyframes remix-wait-pulse{0%{box-shadow:0 0 0 0 rgba(44,138,93,.5)}70%{box-shadow:0 0 0 9px rgba(44,138,93,0)}100%{box-shadow:0 0 0 0 rgba(44,138,93,0)}}
@media(prefers-reduced-motion:reduce){#viral-remix .remix-wait-pulse{animation:none}}
#viral-remix .remix-output-pending{margin:0 0 16px;padding:14px 16px;border:1px solid #f2ddb5;border-radius:12px;background:#fdf7ea;color:#8a6420;font-size:13px}
#viral-remix .viral-delivery{max-width:100%;font-size:14px;line-height:1.8}
@keyframes remix-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#viral-remix .button-spinner{animation:none}}
@media(max-width:1400px){#viral-remix .viral-ideas{grid-template-columns:1fr!important}}
@media(max-width:700px){#viral-remix .remix-choices,#viral-remix .viral-analysis,#viral-remix .remix-page-list{grid-template-columns:1fr}}
@media(max-width:560px){#viral-remix .skill-form-col,#viral-remix .skill-output-col{padding:22px!important}#viral-remix .tie-steps{grid-template-columns:1fr}#viral-remix h1{font-size:26px!important}}

#viral-remix .remix-history-open,#viral-remix .remix-save-button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:10px 15px;border:1px solid #abd4b9;border-radius:11px;background:#e8f8ee;color:#1f6e49;font-size:14px;font-weight:650;cursor:pointer}#viral-remix .remix-history-open{width:100%;margin-top:12px}#viral-remix .remix-save-button{background:#21744c;color:white;border-color:#21744c;white-space:nowrap}#viral-remix .viral-generated .remix-generated-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px}.remix-history-dialog,.remix-save-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(760px,calc(100% - 28px));max-width:none;max-height:90dvh;overflow:auto;padding:24px;border:1px solid #d9eee0;border-radius:22px;background:#f6fff9;color:#244b39;box-shadow:0 20px 80px #153c3033}.remix-history-dialog::backdrop,.remix-save-dialog::backdrop{background:#153c3055;backdrop-filter:blur(3px)}.remix-history-header,.remix-save-header{display:flex;justify-content:space-between;align-items:start;gap:12px}.remix-history-header h2,.remix-save-header h2{margin:0;font-size:22px}.remix-history-header p,.remix-save-dialog p{font-size:13px;line-height:1.6;color:#678373}.remix-history-header button,.remix-save-header button{border:0;border-radius:50%;width:36px;height:36px;background:#e5f4e9;color:#286c4c;font-size:24px;cursor:pointer}.remix-history-job{padding:16px 0;border-top:1px solid #dcebe0}.remix-history-job h3{font-size:14px;margin:0 0 12px;color:#345e47}.remix-history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.remix-history-card{min-width:0}.remix-history-card img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;background:#e5f1e8}.remix-history-card button,.remix-save-dialog #remix-save-action,.remix-history-dialog #remix-history-more{width:100%;margin-top:8px;min-height:42px;border:0;border-radius:10px;background:#21744c;color:white;font-size:14px;font-weight:600;cursor:pointer}.remix-save-dialog{width:min(500px,calc(100% - 28px));text-align:center}.remix-save-dialog img{display:block;max-width:100%;max-height:56dvh;margin:14px auto;object-fit:contain;border-radius:12px;-webkit-touch-callout:default}.remix-save-dialog button:disabled{opacity:.5}.remix-history-dialog [hidden]{display:none!important}
#viral-remix .remix-publication,.remix-history-dialog .remix-publication{padding:24px;margin:18px 0;border:1px solid #d8ebe0;border-radius:20px;background:#fbfffc;box-shadow:0 12px 36px #1f6a4110;color:#244b39}.remix-publication h3{margin:0 0 6px;font-size:21px}.remix-publication p{font-size:13px;line-height:1.6;color:#668373}.remix-publication strong,.remix-publication label{display:block;margin:16px 0 8px;font-weight:650;font-size:14px}.remix-publication input,.remix-publication textarea{box-sizing:border-box;width:100%;border:1px solid #d6e8dc;border-radius:10px;background:#fff;color:#244b39;padding:12px;font:inherit}.remix-publication label input,.remix-publication label textarea{display:block;margin-top:8px}.remix-copy-row{display:flex;gap:8px;margin:8px 0}.remix-copy-row input{min-width:0}.remix-publication button{border:1px solid #b8d8c4;border-radius:10px;padding:10px 14px;background:#f1faf4;color:#206742;font-weight:600;cursor:pointer;white-space:nowrap}.remix-copy-actions{display:flex;flex-wrap:wrap;gap:8px}.remix-copy-actions button:first-child{background:#21744c;border-color:#21744c;color:#fff}.remix-publication button:disabled{opacity:.6;cursor:wait}@media(max-width:600px){#viral-remix .remix-publication,.remix-history-dialog .remix-publication{padding:16px}.remix-copy-actions button{flex:1}}
.remix-delivery-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px;align-items:start}.remix-delivery-layout .remix-publication{margin:0!important}.remix-delivery-gallery{min-width:0}.remix-delivery-gallery .viral-generated{margin:0 0 14px}@media(max-width:900px){.remix-delivery-layout{grid-template-columns:1fr}}
.creation-actions{display:flex;gap:8px;margin:12px 0}.creation-actions button,.creation-history-item{border:1px solid #bfddc9;border-radius:10px;background:#f4fcf7;color:#245c40;padding:10px 14px;font-weight:600;cursor:pointer}.creation-history-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;text-align:left}.creation-history-item small{color:#698777;font-weight:400}.creation-history-item:hover{background:#e7f7ec}

/* 展示生成文件的完整画面，避免预览让边缘内容看起来被裁掉。 */
.remix-design-preview{border-radius:18px;padding:22px;margin-bottom:20px;background:#111e38;color:#fff;aspect-ratio:3/4;display:flex;flex-direction:column;gap:18px;overflow:hidden}.remix-design-preview>strong{font-size:23px;line-height:1.4;color:inherit}.remix-design-preview>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:13px}.remix-design-preview i{display:block;flex-basis:auto;height:10px;background:#ffe44f;border-radius:3px}.remix-design-preview small{margin-top:auto;color:inherit;opacity:.75}.remix-design-1{background:#f6f0e5;color:#252c35}.remix-design-1 b{font-size:25px;color:#ac3d2b}.remix-design-2{background:#ecf4ff;color:#152944}.remix-design-2>div{padding:9px;background:white;border-radius:9px}.remix-design-2 b{color:#305bdd}
.remix-history-card img{object-fit:contain!important}
.remix-design-preview{box-sizing:border-box;min-height:440px;height:auto;aspect-ratio:auto;overflow:visible;flex-shrink:0}.remix-design-preview>strong{overflow-wrap:anywhere}.remix-design-preview>div{flex-shrink:0}.remix-design-preview>small{display:block;line-height:1.6}
.viral-idea .remix-design-preview>strong{color:inherit!important}.viral-idea .remix-design-0{color:#ffffff}.viral-idea .remix-design-1{color:#252c35}.viral-idea .remix-design-2{color:#152944}
.viral-idea .remix-design-0{background:#fff7cb;color:#141414}.remix-design-0>strong{background:#ffe500;padding:10px;border-radius:6px}.remix-design-0 i{background:#168aca}
.remix-source-review{padding:18px;background:#f1f8f3;border-radius:14px;margin:0 0 20px}.remix-source-review summary{cursor:pointer;font-weight:650;line-height:1.6}.remix-source-review dl{margin:16px 0;max-height:460px;overflow:auto}.remix-source-review dl>div{display:flex;justify-content:space-between;gap:20px;padding:10px 4px;border-bottom:1px solid #d7e8dd}.remix-source-review dd{margin:0;font-variant-numeric:tabular-nums}
.remix-source-review input{width:48%;min-width:0;padding:9px 10px;border:1px solid #c8dece;background:#fff;border-radius:8px;color:#244b39;font:inherit}
#viral-remix .viral-notice:has(#viral-preserve-person){display:flex;align-items:center;gap:10px}#viral-remix #viral-preserve-person{appearance:auto;display:inline-block;flex:0 0 20px;width:20px!important;height:20px!important;min-height:20px;padding:0;margin:0;accent-color:#237d57}
.remix-layout-preview{background:#e5f1e9;color:#163b2d}.remix-layout-subject{display:flex!important;align-items:center;justify-content:center;flex:1;min-height:100px;padding:20px;border-radius:18px;background:rgba(255,255,255,.7);color:#214d3d;text-align:center;line-height:1.7}.remix-layout-1{background:#f0e8dc;color:#312a22}.remix-layout-1>strong{order:2}.remix-layout-1>small{order:3}.remix-layout-2{background:#e5edfa;color:#243e69}.remix-layout-2 .remix-layout-subject{margin-left:25%;border-radius:50% 12px 12px 50%}
.remix-save-dialog #remix-save-preview{width:auto!important;height:auto!important;max-width:100%!important;max-height:56dvh!important;aspect-ratio:auto!important;object-fit:contain!important}

/* 单张图优化（v2 极简）：图片 + 「修改图片」标题 + 一行输入，其余文字全部不要。
   glass-theme.css 有 .viral-generated > div{display:flex}，不改回 block 会把整个输入区拉成横条 */
#viral-remix .remix-poster{position:relative;display:block;margin:0 14px}
#viral-remix .remix-poster img{border-radius:14px;transition:opacity .35s}
#viral-remix .remix-poster.fading img{opacity:.25}
#viral-remix .remix-restore{position:absolute;right:12px;top:12px;display:none;width:36px;height:36px;place-items:center;border:1px solid rgba(255,255,255,.5);border-radius:50%;background:rgba(18,32,48,.42);backdrop-filter:blur(8px);color:#fff;font-size:18px;line-height:1;cursor:pointer;transition:.2s}
#viral-remix .remix-restore:hover{background:rgba(18,32,48,.68)}
#viral-remix .remix-poster.modified .remix-restore{display:grid}
#viral-remix .remix-refine{display:block;margin:14px 18px 16px;padding:0;border:0;background:transparent}
#viral-remix .remix-refine h2{margin:0 0 12px;font-size:16px;font-weight:650;letter-spacing:-.01em;color:#1B3327}
#viral-remix .remix-refine-combo{display:flex;align-items:stretch;border:1px solid rgba(31,84,58,.14);border-radius:13px;background:#fff;overflow:hidden;transition:border-color .2s,box-shadow .2s}
#viral-remix .remix-refine-combo:focus-within{border-color:#21744c;box-shadow:0 0 0 3px rgba(33,116,76,.09)}
#viral-remix .remix-refine-combo.shake{animation:remixShake .28s}
@keyframes remixShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
#viral-remix .remix-refine-prompt{flex:1;min-width:0;box-sizing:border-box;min-height:52px;max-height:120px;resize:none;border:0;outline:0;background:transparent;padding:14px;font-size:16px!important;line-height:1.5;color:#1B3327}
#viral-remix .remix-refine-prompt::placeholder{color:#93A99B}
#viral-remix .remix-refine-submit{flex:0 0 auto;margin:5px;border:0;border-radius:9px;padding:0 20px;min-width:82px;background:linear-gradient(135deg,#2E9262,#21744C);color:#fff;font-size:14px;font-weight:650;cursor:pointer;transition:.2s}
#viral-remix .remix-refine-submit:hover{filter:brightness(1.08)}
#viral-remix .remix-refine-submit:disabled{opacity:.62;cursor:progress}
@media(max-width:760px){#viral-remix .remix-poster{margin:0 12px}#viral-remix .remix-refine{margin:14px 14px 16px}#viral-remix .remix-refine-prompt{padding:12px}#viral-remix .remix-refine-submit{min-width:70px;padding:0 13px}}

/* 从贴图号提取带入的原文提示条 */
#viral-source-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 12px;padding:10px 14px;border:1px solid #cfe2d4;border-radius:11px;background:#eef6f0;font-size:12px;color:#3a6a4d;line-height:1.6}
#viral-source-note b{font-size:12px;color:#24744e}
#viral-source-note span{color:#6d8a79;font-size:11px}


/* --- sticker-extract.css --- */
/* Scoped extraction workspace, using the workbench's mint glass material. */
body #sticker-extract{box-sizing:border-box;--xe-ink:#244b39;--xe-muted:#5f7767;--xe-edge:#d9e8df;--xe-green:#24744e;display:block;padding:30px 36px!important;border:0!important;background:transparent!important;color:var(--xe-ink);max-width:1700px;margin:0 auto;width:100%;min-width:0}
#sticker-extract[hidden],#sticker-extract [hidden]{display:none!important}
#sticker-extract *{box-sizing:border-box}
#sticker-extract :is(button,textarea){font:inherit}
#sticker-extract :is(button,a,summary){touch-action:manipulation}
#sticker-extract :is(button,a,textarea,summary):focus-visible{outline:2px solid #318257;outline-offset:3px}
#sticker-extract .xe-page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}
#sticker-extract .xe-breadcrumb{font-size:11px;color:var(--xe-muted);margin:0 0 9px}
#sticker-extract h1{font-family:inherit!important;font-size:28px!important;letter-spacing:-.035em;line-height:1.4;margin:0!important;color:var(--xe-ink)}
#sticker-extract .xe-subtitle{font-size:13px;line-height:1.8;color:var(--xe-muted);margin:7px 0 0}
#sticker-extract .xe-auto-label{font-size:12px;color:var(--xe-muted);white-space:nowrap}
#sticker-extract :is(.xe-input-card,.xe-empty,#sticker-result){border:1px solid var(--lg-edge,#fff);background-color:var(--lg-fill,rgba(255,255,255,.78));background-image:var(--lg-hi,linear-gradient(145deg,#ffffffe6,#ffffff00 65%));box-shadow:var(--lg-shadow,0 14px 38px #24573809);border-radius:23px;min-width:0}
#sticker-extract .xe-input-card{padding:19px 22px;margin:0 0 20px;backdrop-filter:var(--lg-blur,blur(20px) saturate(150%))}
#sticker-extract .xe-input-card>label{display:block;font-size:12px;font-weight:600;color:var(--xe-ink);margin-bottom:9px}
#sticker-extract .xe-input-row{display:flex;align-items:stretch;gap:12px}
#sticker-extract #sticker-url{flex:1;min-width:0;width:100%;height:55px;min-height:55px;max-height:180px;resize:vertical;border:1px solid #cddfd3!important;border-radius:11px!important;padding:14px!important;font-size:13px!important;line-height:1.7;background:#ffffffc7!important;color:var(--xe-ink);overflow-wrap:anywhere}
#sticker-extract .xe-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:9px 13px;border:1px solid #cbded1;border-radius:10px;background:#ffffffb8;color:#315f46;font-size:12px;text-decoration:none;cursor:pointer;transition:background .15s}
#sticker-extract .xe-button:hover:not(:disabled){background:#f1faf4}
#sticker-extract .xe-button:disabled{opacity:.55;cursor:default}
#sticker-extract .xe-button.xe-primary{background:var(--xe-green);border-color:var(--xe-green);color:#fff}
#sticker-extract .xe-button.xe-primary:hover:not(:disabled){background:#1a603d}
#sticker-extract #sticker-start{min-width:128px;font-size:14px;white-space:nowrap}
#sticker-extract .xe-input-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:11px;color:var(--xe-muted);font-size:11px;line-height:1.7}
#sticker-extract .xe-input-footer details{max-width:65%}
#sticker-extract .xe-input-footer summary{cursor:pointer;color:#4e755d;text-decoration:underline;text-underline-offset:3px}
#sticker-extract .xe-input-footer details p{font-size:12px;margin:10px 0 0;max-width:500px;line-height:1.9}
#sticker-extract .xe-progress{display:flex;align-items:center;gap:10px;border:1px solid #cfe3d4;background:#e8f4ecd9;color:#326647;padding:13px 17px;margin-bottom:16px;border-radius:12px;font-size:12px}
#sticker-extract .xe-progress-hint{margin-left:auto;color:#658773;font-size:11px}
#sticker-extract .xe-spinner{display:block;flex:0 0 15px;width:15px;height:15px;aspect-ratio:1;border:2px solid #bcd7c5;border-top-color:#357e52;border-radius:50%;animation:xe-spin .9s linear infinite}
#sticker-extract .xe-error{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px;padding:15px 18px;background:#fff4eefa;border:1px solid #ecd7c8;border-radius:12px;font-size:13px;color:#875943;line-height:1.8;overflow-wrap:anywhere}
#sticker-extract .xe-error strong{display:block;font-weight:600}
#sticker-extract .xe-error button{flex-shrink:0}
#sticker-extract .xe-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:430px;padding:40px 25px;text-align:center}
#sticker-extract .xe-empty svg{height:78px;width:78px;color:#729881;margin-bottom:21px}
#sticker-extract .xe-empty h2{font-size:23px;line-height:1.5;margin:0 0 12px;color:var(--xe-ink)}
#sticker-extract .xe-empty p{font-size:13px;line-height:1.95;color:var(--xe-muted);margin:0}
#sticker-extract .xe-output-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:24px}
#sticker-extract .xe-output-tags span{font-size:11px;padding:5px 10px;border:1px solid var(--xe-edge);background:#ffffffa6;border-radius:7px;color:var(--xe-muted)}
#sticker-extract #sticker-result{overflow:hidden}
#sticker-extract .xe-result-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;border-bottom:1px solid var(--xe-edge)}
#sticker-extract .xe-result-info{min-width:0}
#sticker-extract .xe-badges{display:flex;flex-wrap:wrap;gap:7px}
#sticker-extract .xe-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:4px 9px;border:1px solid #d9e8dc;background:#eaf4ed;border-radius:7px;color:#4e765d}
#sticker-extract .xe-badge i{width:5px;height:5px;border-radius:50%;background:#499865}
#sticker-extract .xe-result-head h2{font-size:18px!important;line-height:1.65;letter-spacing:-.02em;color:var(--xe-ink);font-weight:600;margin:10px 0 9px;overflow-wrap:anywhere}
#sticker-extract .xe-author{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--xe-muted)}
#sticker-extract .xe-avatar{width:27px;height:27px;border-radius:50%;object-fit:cover;background:#e7eee7;display:grid;place-items:center;color:#7b9384;font-size:11px}
#sticker-extract .xe-stats{display:flex;flex-wrap:wrap;gap:17px;margin:0;flex-shrink:0}
#sticker-extract .xe-stats div{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
#sticker-extract .xe-stats dt{font-size:11px;color:var(--xe-muted)}
#sticker-extract .xe-stats dd{font-size:13px;color:#3d654d;margin:0;font-variant-numeric:tabular-nums;font-weight:500}
#sticker-extract .xe-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);min-width:0;align-items:stretch}
#sticker-extract .xe-workspace.xe-text-only{grid-template-columns:minmax(0,1fr)}
#sticker-extract .xe-media{padding:22px 25px;border-right:1px solid var(--xe-edge);min-width:0}
#sticker-extract .xe-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;font-size:11px;color:var(--xe-muted)}
#sticker-extract .xe-section-head h3{font-size:13px;font-weight:600;color:var(--xe-ink);margin:0}
#sticker-extract .xe-viewer{position:relative;display:grid;place-items:center;height:400px;border:1px solid #e0eae1;border-radius:13px;background:#edf2ed;overflow:hidden}
#sticker-extract .xe-main-image{display:block;width:100%;height:100%;object-fit:contain;min-height:0;cursor:zoom-in}
#sticker-extract .xe-image-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#edf2ed;font-size:12px;color:var(--xe-muted);padding:18px;text-align:center}
#sticker-extract .xe-image-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:10px 0 15px;font-size:11px;color:var(--xe-muted)}
#sticker-extract .xe-image-actions>div{display:flex;gap:9px}
#sticker-extract .xe-image-actions .xe-button{min-height:36px;font-size:11px;padding:5px 10px}
#sticker-extract .xe-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:9px}
#sticker-extract .xe-thumb{position:relative;min-height:52px;min-width:0;aspect-ratio:3/4;border:1px solid #d9e5da;background:#edf3ed;border-radius:7px;overflow:hidden;padding:0;cursor:pointer}
#sticker-extract .xe-thumb[aria-pressed=true]{outline:2px solid #357d56;outline-offset:2px}
#sticker-extract .xe-thumb img{display:block;width:100%;height:100%;object-fit:contain}
#sticker-extract .xe-thumb span{position:absolute;bottom:3px;left:3px;background:#244b3abf;color:#fff;font-size:9px;padding:1px 5px;border-radius:4px}
#sticker-extract .xe-live{font-size:10px;border:1px solid #d6e4d8;border-radius:5px;padding:2px 6px;color:#51715c}
#sticker-extract .xe-video{display:block;width:100%;height:auto;max-height:460px;min-width:0;background:#132419;border-radius:12px}
#sticker-extract .xe-media-note{font-size:12px;line-height:1.8;color:var(--xe-muted);padding:12px;background:#eef5ee;border:1px solid var(--xe-edge);border-radius:10px;margin:12px 0}
#sticker-extract .xe-video-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}
#sticker-extract .xe-cover{display:flex;align-items:center;gap:12px;margin-top:18px;padding:11px;border:1px solid var(--xe-edge);border-radius:11px;background:#ffffff85;font-size:12px}
#sticker-extract .xe-cover img{width:47px;height:62px;object-fit:contain;background:#eaf1e8;border-radius:5px}
#sticker-extract .xe-cover>div{flex:1;min-width:0;color:var(--xe-muted)}
#sticker-extract .xe-cover .xe-button{min-height:36px;font-size:11px;padding:5px 9px}
#sticker-extract .xe-document{display:flex;flex-direction:column;min-width:0;padding:22px 25px}
#sticker-extract .xe-document-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
#sticker-extract .xe-document-head h3{font-size:13px;color:var(--xe-ink);margin:0;font-weight:600}
#sticker-extract .xe-document-head .xe-button{font-size:11px;min-height:34px;padding:5px 10px}
#sticker-extract .xe-body{margin:0;padding:0 7px 0 0;min-height:270px;max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere;color:#36533f;background:transparent;border:0;border-radius:0;font-family:inherit;font-size:14px;line-height:1.95}
#sticker-extract .xe-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px}
#sticker-extract .xe-tags span{font-size:11px;padding:4px 8px;background:#edf4ee;border-radius:6px;color:#587861;overflow-wrap:anywhere}
#sticker-extract .xe-source-line{font-size:11px;color:#5f7464;line-height:1.8;margin:13px 0 20px}
#sticker-extract .xe-doc-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--xe-edge);padding-top:17px;margin-top:auto}
#sticker-extract .xe-footer-note{font-size:11px;color:#5f7464;margin:15px 0 0;text-align:right}
#sticker-extract #sticker-extract-lightbox{width:min(94vw,1000px);max-width:94vw;max-height:94dvh;overflow:auto;border:1px solid #dce9df;border-radius:20px;background:#f5f8f2;padding:18px;color:var(--xe-ink);box-shadow:0 25px 100px #1538243d}
#sticker-extract #sticker-extract-lightbox::backdrop{background:#183b2a99;backdrop-filter:blur(5px)}
#sticker-extract #sticker-extract-lightbox header,#sticker-extract #sticker-extract-lightbox footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#sticker-extract #sticker-extract-lightbox h2{font-size:15px;margin:0}
#sticker-extract .xe-lightbox-image{height:65dvh;background:#e9f0e7;border-radius:11px;margin:14px 0;display:grid;place-items:center;overflow:hidden}
#sticker-extract .xe-lightbox-image img{width:100%;height:100%;object-fit:contain}
#sticker-extract [data-xe-lightbox-index]{font-size:12px;color:var(--xe-muted)}
@keyframes xe-spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){#sticker-extract .xe-viewer{height:460px}}
@media(max-width:1150px){body #sticker-extract{padding:24px!important}#sticker-extract .xe-result-head{align-items:flex-start;flex-direction:column;gap:5px}#sticker-extract :is(.xe-media,.xe-document){padding:20px}#sticker-extract .xe-viewer{height:350px}}
@media(max-width:800px){body #sticker-extract{padding:20px 14px!important}#sticker-extract .xe-auto-label{display:none}#sticker-extract .xe-workspace{grid-template-columns:minmax(0,1fr)}#sticker-extract .xe-media{border-right:0;border-bottom:1px solid var(--xe-edge)}#sticker-extract .xe-body{max-height:none;min-height:0}#sticker-extract .xe-doc-actions{margin-top:23px}#sticker-extract .xe-input-footer{flex-direction:column;gap:9px}#sticker-extract .xe-input-footer details{max-width:100%}#sticker-extract .xe-empty{min-height:340px}#sticker-extract .xe-result-head{padding:20px}#sticker-extract .xe-video{max-height:520px}}
@media(max-width:560px){#sticker-extract .xe-input-row{flex-direction:column}#sticker-extract #sticker-start{min-height:44px}#sticker-extract .xe-input-card{padding:17px}#sticker-extract h1{font-size:25px!important}#sticker-extract .xe-empty h2{font-size:20px}#sticker-extract .xe-progress{flex-wrap:wrap;gap:7px}#sticker-extract .xe-progress-hint{margin-left:22px;width:100%}#sticker-extract .xe-error{align-items:flex-start;flex-direction:column;gap:10px}#sticker-extract .xe-viewer{height:360px}#sticker-extract .xe-thumbs{grid-template-columns:repeat(auto-fill,minmax(46px,1fr))}#sticker-extract .xe-footer-note{text-align:left}#sticker-extract .xe-cover{flex-wrap:wrap}#sticker-extract #sticker-extract-lightbox{padding:13px}#sticker-extract .xe-lightbox-image{height:60dvh}#sticker-extract #sticker-extract-lightbox footer{gap:7px}}
@media(prefers-reduced-motion:reduce){#sticker-extract *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:560px){#sticker-extract .xe-button,#sticker-extract .xe-image-actions .xe-button,#sticker-extract .xe-document-head .xe-button,#sticker-extract .xe-cover .xe-button{min-height:44px}}

/* Bound both grid tracks: intrinsic tall images must never enlarge the viewport. */
#sticker-extract #sticker-extract-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px;height:min(92dvh,980px);box-sizing:border-box;overflow:hidden;inset:0;margin:auto;transform:none}
#sticker-extract .xe-lightbox-image{height:auto;min-height:0;min-width:0;margin:0;display:flex;align-items:center;justify-content:center}
#sticker-extract .xe-lightbox-image img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0;min-height:0;object-fit:contain!important;aspect-ratio:auto}

#sticker-extract #sticker-extract-lightbox[open]{position:fixed!important;animation:none!important;transition:none!important}
#sticker-extract #sticker-extract-lightbox *{animation:none!important;transition:none!important}
#sticker-extract #sticker-extract-lightbox header,#sticker-extract #sticker-extract-lightbox footer{padding:0;margin:0;min-height:0;background:transparent}

/* Longer shared text and readable engagement figures. */
#sticker-extract .xe-input-row{align-items:stretch}
#sticker-extract #sticker-url{box-sizing:border-box;min-width:0;min-height:88px;height:88px;line-height:1.65;overflow-y:auto;overflow-wrap:anywhere;word-break:break-word;resize:vertical}
#sticker-extract #sticker-start{align-self:stretch;min-height:48px}
#sticker-extract .xe-result-info{min-width:0;flex:1}
#sticker-extract .xe-stats{display:grid;grid-template-columns:repeat(4,minmax(78px,1fr));gap:9px;min-width:min(100%,380px)}
#sticker-extract .xe-stats div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px 15px;border:1px solid #d9e9dd;border-radius:12px;background:#f0f8f1;white-space:normal}
#sticker-extract .xe-stats dt{font-size:12px;color:#668574}
#sticker-extract .xe-stats dd{font-size:21px;line-height:1.2;font-weight:700;color:#245e42}
@media(max-width:1150px){#sticker-extract .xe-stats{width:100%;margin-top:12px}}
@media(max-width:560px){#sticker-extract .xe-stats{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}#sticker-extract #sticker-url{min-height:100px;height:100px}}

#sticker-extract .sticker-select-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;color:var(--xe-muted);font-size:11px}
#sticker-extract .sticker-select-list label{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid var(--xe-edge);border-radius:7px;background:#fff}

/* 提取结果：预览和图片列表并列，选图操作直接贴近缩略图。 */
#sticker-extract #sticker-result{overflow:hidden}
#sticker-extract .sticker-result-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 26px;border-bottom:1px solid var(--xe-edge)}
#sticker-extract .sticker-result-head>div{min-width:0}
#sticker-extract .sticker-result-head h2{font-size:17px;line-height:1.55;color:var(--xe-ink);margin:6px 0 0;overflow-wrap:anywhere}
#sticker-extract .sticker-kicker{font-size:11px;font-weight:600;color:#48805f}
#sticker-extract .sticker-workspace{display:grid;grid-template-columns:minmax(250px, .78fr) minmax(0, 1.22fr);align-items:start}
#sticker-extract .sticker-preview,#sticker-extract .sticker-gallery{padding:22px 26px;min-width:0}
#sticker-extract .sticker-preview{border-right:1px solid var(--xe-edge)}
#sticker-extract .sticker-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 14px;font-size:12px;color:var(--xe-muted)}
#sticker-extract .sticker-section-head h3{font-size:14px;color:var(--xe-ink);margin:0;font-weight:650}
#sticker-extract .sticker-section-head p{font-size:12px;color:var(--xe-muted);margin:5px 0 0;line-height:1.5}
#sticker-extract .sticker-preview .xe-viewer{height:clamp(320px,44vh,520px)}
#sticker-extract .sticker-preview .xe-main-image{cursor:default}
#sticker-extract .sticker-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;color:var(--xe-muted);font-size:11px}
#sticker-extract .sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:14px;align-items:start}
#sticker-extract .sticker-card{min-width:0}
#sticker-extract .sticker-thumb{position:relative;display:block;width:100%;aspect-ratio:3/4;overflow:hidden;padding:0;border:1px solid #d8e7dc;border-radius:10px;background:#edf3ed;cursor:pointer}
#sticker-extract .sticker-thumb[aria-pressed=true]{outline:2px solid #37855e;outline-offset:2px}
#sticker-extract .sticker-thumb img{width:100%;height:100%;display:block;object-fit:contain}
#sticker-extract .sticker-thumb>span{position:absolute;left:6px;bottom:6px;padding:2px 6px;border-radius:5px;color:#fff;background:#244b3ac9;font-size:10px}
#sticker-extract .sticker-pick{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;color:#526f5e;font-size:12px;cursor:pointer}
#sticker-extract .sticker-pick input{accent-color:#24744e;width:15px;height:15px}
#sticker-extract .sticker-gallery-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--xe-edge);margin-top:18px;padding-top:17px;color:var(--xe-muted);font-size:11px}
@media(max-width:850px){#sticker-extract .sticker-workspace{grid-template-columns:minmax(0,1fr)}#sticker-extract .sticker-preview{border-right:0;border-bottom:1px solid var(--xe-edge)}#sticker-extract .sticker-grid{grid-template-columns:repeat(auto-fill,minmax(85px,1fr))}}
@media(max-width:560px){#sticker-extract .sticker-result-head{align-items:flex-start;flex-direction:column;padding:18px}#sticker-extract .sticker-result-head .xe-button{width:100%}#sticker-extract .sticker-preview,#sticker-extract .sticker-gallery{padding:18px}#sticker-extract .sticker-preview .xe-viewer{height:360px}#sticker-extract .sticker-gallery-actions .xe-button{width:100%}}
/* 空状态与抖音提取统一材质和信息层级。 */
body #sticker-extract .sticker-empty-glass{min-height:480px;padding:56px 28px;text-align:center}
#sticker-extract .sticker-empty-icon{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 17px;border:1px solid rgba(255,255,255,.9);border-radius:15px;color:#43866a;background:rgba(255,255,255,.68);box-shadow:inset 0 1px #fff,0 6px 18px rgba(40,96,61,.06)}
#sticker-extract .sticker-empty-icon svg{width:21px;height:21px;margin:0}
#sticker-extract .sticker-empty-label{color:#5b8a70;font-size:12px;font-weight:650;margin-bottom:15px}
#sticker-extract .sticker-empty-glass h2{font-family:Georgia,'Noto Serif SC',serif;font-size:27px;font-weight:500;line-height:1.4;margin-bottom:12px;letter-spacing:.01em}
#sticker-extract .sticker-empty-glass p{color:#718b7c;line-height:1.9}
#sticker-extract .sticker-steps{width:min(100%,900px);padding:0;margin:35px 0 0;list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#sticker-extract .sticker-steps li{min-width:0;padding:13px 14px;border:1px solid rgba(184,214,194,.7);border-radius:12px;background:rgba(255,255,255,.56);font-size:12px;color:#5c7e69;text-align:left;white-space:nowrap}
#sticker-extract .sticker-steps b{color:#398a62;margin-right:7px;font-variant-numeric:tabular-nums}
@media(max-width:700px){#sticker-extract .sticker-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body #sticker-extract .sticker-empty-glass{min-height:380px;padding:38px 18px}#sticker-extract .sticker-empty-glass h2{font-size:23px}}
.sticker-copy{font-size:.78rem;line-height:1.55;color:#355c4c;background:rgba(232,246,237,.72);border-radius:10px;padding:8px;margin:8px 0;max-height:90px;overflow:auto;white-space:pre-wrap}

/* 整篇文案：像小红书/抖音采集那样一次性出整篇，不再逐图分段 */
#sticker-extract .sticker-article-copy{margin:0 0 20px;padding:20px 24px;border:1px solid var(--lg-edge,#fff);background-color:var(--lg-fill,rgba(255,255,255,.78));background-image:var(--lg-hi,linear-gradient(145deg,#ffffffe6,#ffffff00 65%));box-shadow:var(--lg-shadow,0 14px 38px #24573809);border-radius:23px;backdrop-filter:var(--lg-blur,blur(20px) saturate(150%))}
#sticker-extract .sticker-article-copy .sticker-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
#sticker-extract .sticker-article-copy .sticker-section-head h3{font-size:16px;margin:0;color:var(--xe-ink);letter-spacing:-.01em}
#sticker-extract .sticker-article-copy .sticker-section-head p{font-size:12px;margin:4px 0 0;color:var(--xe-muted)}
#sticker-extract .sticker-copy-body{max-width:880px;max-height:none;overflow:visible;padding-right:10px;overflow-wrap:anywhere;word-break:break-word}
#sticker-extract .sticker-copy-body p{margin:0 0 15px;font-size:14px;line-height:2.0;color:#3a5546}
#sticker-extract .sticker-copy-body p:last-child{margin-bottom:0}
#sticker-extract .sticker-copy-body:empty::before{content:"暂未识别到文案，可换链接重试";color:var(--xe-muted);font-size:13px}
@media(max-width:700px){#sticker-extract .sticker-article-copy{padding:17px 16px}}


/* --- xhs-extract.css --- */
/* Scoped extraction workspace, using the workbench's mint glass material. */
body #xhs-extract{--xe-ink:#244b39;--xe-muted:#5f7767;--xe-edge:#d9e8df;--xe-green:#24744e;display:block;padding:30px 36px!important;border:0!important;background:transparent!important;color:var(--xe-ink);max-width:1700px;margin:0 auto;width:100%;min-width:0}
#xhs-extract[hidden],#xhs-extract [hidden]{display:none!important}
#xhs-extract *{box-sizing:border-box}
#xhs-extract :is(button,textarea){font:inherit}
#xhs-extract :is(button,a,summary){touch-action:manipulation}
#xhs-extract :is(button,a,textarea,summary):focus-visible{outline:2px solid #318257;outline-offset:3px}
#xhs-extract .xe-page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}
#xhs-extract .xe-breadcrumb{font-size:11px;color:var(--xe-muted);margin:0 0 9px}
#xhs-extract h1{font-family:inherit!important;font-size:28px!important;letter-spacing:-.035em;line-height:1.4;margin:0!important;color:var(--xe-ink)}
#xhs-extract .xe-subtitle{font-size:13px;line-height:1.8;color:var(--xe-muted);margin:7px 0 0}
#xhs-extract .xe-auto-label{font-size:12px;color:var(--xe-muted);white-space:nowrap}
#xhs-extract :is(.xe-input-card,.xe-empty,#xhs-extract-result){border:1px solid var(--lg-edge,#fff);background-color:var(--lg-fill,rgba(255,255,255,.78));background-image:var(--lg-hi,linear-gradient(145deg,#ffffffe6,#ffffff00 65%));box-shadow:var(--lg-shadow,0 14px 38px #24573809);border-radius:23px;min-width:0}
#xhs-extract .xe-input-card{padding:19px 22px;margin:0 0 20px;backdrop-filter:var(--lg-blur,blur(20px) saturate(150%))}
#xhs-extract .xe-input-card>label{display:block;font-size:12px;font-weight:600;color:var(--xe-ink);margin-bottom:9px}
#xhs-extract .xe-input-row{display:flex;align-items:stretch;gap:12px}
#xhs-extract #xhs-extract-url{flex:1;min-width:0;width:100%;height:55px;min-height:55px;max-height:180px;resize:vertical;border:1px solid #cddfd3!important;border-radius:11px!important;padding:14px!important;font-size:13px!important;line-height:1.7;background:#ffffffc7!important;color:var(--xe-ink);overflow-wrap:anywhere}
#xhs-extract .xe-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:9px 13px;border:1px solid #cbded1;border-radius:10px;background:#ffffffb8;color:#315f46;font-size:12px;text-decoration:none;cursor:pointer;transition:background .15s}
#xhs-extract .xe-button:hover:not(:disabled){background:#f1faf4}
#xhs-extract .xe-button:disabled{opacity:.55;cursor:default}
#xhs-extract .xe-button.xe-primary{background:var(--xe-green);border-color:var(--xe-green);color:#fff}
#xhs-extract .xe-button.xe-primary:hover:not(:disabled){background:#1a603d}
#xhs-extract #xhs-extract-start{min-width:128px;font-size:14px;white-space:nowrap}
#xhs-extract .xe-input-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:11px;color:var(--xe-muted);font-size:11px;line-height:1.7}
#xhs-extract .xe-input-footer details{max-width:65%}
#xhs-extract .xe-input-footer summary{cursor:pointer;color:#4e755d;text-decoration:underline;text-underline-offset:3px}
#xhs-extract .xe-input-footer details p{font-size:12px;margin:10px 0 0;max-width:500px;line-height:1.9}
#xhs-extract .xe-progress{display:flex;align-items:center;gap:10px;border:1px solid #cfe3d4;background:#e8f4ecd9;color:#326647;padding:13px 17px;margin-bottom:16px;border-radius:12px;font-size:12px}
#xhs-extract .xe-progress-hint{margin-left:auto;color:#658773;font-size:11px}
#xhs-extract .xe-spinner{display:block;flex:0 0 15px;width:15px;height:15px;aspect-ratio:1;border:2px solid #bcd7c5;border-top-color:#357e52;border-radius:50%;animation:xe-spin .9s linear infinite}
#xhs-extract .xe-error{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px;padding:15px 18px;background:#fff4eefa;border:1px solid #ecd7c8;border-radius:12px;font-size:13px;color:#875943;line-height:1.8;overflow-wrap:anywhere}
#xhs-extract .xe-error strong{display:block;font-weight:600}
#xhs-extract .xe-error button{flex-shrink:0}
#xhs-extract .xe-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:430px;padding:40px 25px;text-align:center}
#xhs-extract .xe-empty svg{height:78px;width:78px;color:#729881;margin-bottom:21px}
#xhs-extract .xe-empty h2{font-size:23px;line-height:1.5;margin:0 0 12px;color:var(--xe-ink)}
#xhs-extract .xe-empty p{font-size:13px;line-height:1.95;color:var(--xe-muted);margin:0}
#xhs-extract .xe-output-tags{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:24px}
#xhs-extract .xe-output-tags span{font-size:11px;padding:5px 10px;border:1px solid var(--xe-edge);background:#ffffffa6;border-radius:7px;color:var(--xe-muted)}
#xhs-extract #xhs-extract-result{overflow:hidden}
#xhs-extract .xe-result-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 25px;border-bottom:1px solid var(--xe-edge)}
#xhs-extract .xe-result-info{min-width:0}
#xhs-extract .xe-badges{display:flex;flex-wrap:wrap;gap:7px}
#xhs-extract .xe-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:4px 9px;border:1px solid #d9e8dc;background:#eaf4ed;border-radius:7px;color:#4e765d}
#xhs-extract .xe-badge i{width:5px;height:5px;border-radius:50%;background:#499865}
#xhs-extract .xe-result-head h2{font-size:18px!important;line-height:1.65;letter-spacing:-.02em;color:var(--xe-ink);font-weight:600;margin:10px 0 9px;overflow-wrap:anywhere}
#xhs-extract .xe-author{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--xe-muted)}
#xhs-extract .xe-avatar{width:27px;height:27px;border-radius:50%;object-fit:cover;background:#e7eee7;display:grid;place-items:center;color:#7b9384;font-size:11px}
#xhs-extract .xe-stats{display:flex;flex-wrap:wrap;gap:17px;margin:0;flex-shrink:0}
#xhs-extract .xe-stats div{display:flex;align-items:baseline;gap:5px;white-space:nowrap}
#xhs-extract .xe-stats dt{font-size:11px;color:var(--xe-muted)}
#xhs-extract .xe-stats dd{font-size:13px;color:#3d654d;margin:0;font-variant-numeric:tabular-nums;font-weight:500}
#xhs-extract .xe-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);min-width:0;align-items:stretch}
#xhs-extract .xe-workspace.xe-text-only{grid-template-columns:minmax(0,1fr)}
#xhs-extract .xe-media{padding:22px 25px;border-right:1px solid var(--xe-edge);min-width:0}
#xhs-extract .xe-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;font-size:11px;color:var(--xe-muted)}
#xhs-extract .xe-section-head h3{font-size:13px;font-weight:600;color:var(--xe-ink);margin:0}
#xhs-extract .xe-viewer{position:relative;display:grid;place-items:center;height:400px;border:1px solid #e0eae1;border-radius:13px;background:#edf2ed;overflow:hidden}
#xhs-extract .xe-main-image{display:block;width:100%;height:100%;object-fit:contain;min-height:0;cursor:zoom-in}
#xhs-extract .xe-image-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#edf2ed;font-size:12px;color:var(--xe-muted);padding:18px;text-align:center}
#xhs-extract .xe-image-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:10px 0 15px;font-size:11px;color:var(--xe-muted)}
#xhs-extract .xe-image-actions>div{display:flex;gap:9px}
#xhs-extract .xe-image-actions .xe-button{min-height:36px;font-size:11px;padding:5px 10px}
#xhs-extract .xe-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:9px}
#xhs-extract .xe-thumb{position:relative;min-height:52px;min-width:0;aspect-ratio:3/4;border:1px solid #d9e5da;background:#edf3ed;border-radius:7px;overflow:hidden;padding:0;cursor:pointer}
#xhs-extract .xe-thumb[aria-pressed=true]{outline:2px solid #357d56;outline-offset:2px}
#xhs-extract .xe-thumb img{display:block;width:100%;height:100%;object-fit:contain}
#xhs-extract .xe-thumb span{position:absolute;bottom:3px;left:3px;background:#244b3abf;color:#fff;font-size:9px;padding:1px 5px;border-radius:4px}
#xhs-extract .xe-live{font-size:10px;border:1px solid #d6e4d8;border-radius:5px;padding:2px 6px;color:#51715c}
#xhs-extract .xe-video{display:block;width:100%;height:auto;max-height:460px;min-width:0;background:#132419;border-radius:12px}
#xhs-extract .xe-media-note{font-size:12px;line-height:1.8;color:var(--xe-muted);padding:12px;background:#eef5ee;border:1px solid var(--xe-edge);border-radius:10px;margin:12px 0}
#xhs-extract .xe-video-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}
#xhs-extract .xe-cover{display:flex;align-items:center;gap:12px;margin-top:18px;padding:11px;border:1px solid var(--xe-edge);border-radius:11px;background:#ffffff85;font-size:12px}
#xhs-extract .xe-cover img{width:47px;height:62px;object-fit:contain;background:#eaf1e8;border-radius:5px}
#xhs-extract .xe-cover>div{flex:1;min-width:0;color:var(--xe-muted)}
#xhs-extract .xe-cover .xe-button{min-height:36px;font-size:11px;padding:5px 9px}
#xhs-extract .xe-document{display:flex;flex-direction:column;min-width:0;padding:22px 25px}
#xhs-extract .xe-document-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
#xhs-extract .xe-document-head h3{font-size:13px;color:var(--xe-ink);margin:0;font-weight:600}
#xhs-extract .xe-document-head .xe-button{font-size:11px;min-height:34px;padding:5px 10px}
#xhs-extract .xe-body{margin:0;padding:0 7px 0 0;min-height:270px;max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere;color:#36533f;background:transparent;border:0;border-radius:0;font-family:inherit;font-size:14px;line-height:1.95}
#xhs-extract .xe-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px}
#xhs-extract .xe-tags span{font-size:11px;padding:4px 8px;background:#edf4ee;border-radius:6px;color:#587861;overflow-wrap:anywhere}
#xhs-extract .xe-source-line{font-size:11px;color:#5f7464;line-height:1.8;margin:13px 0 20px}
#xhs-extract .xe-doc-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--xe-edge);padding-top:17px;margin-top:auto}
#xhs-extract .xe-footer-note{font-size:11px;color:#5f7464;margin:15px 0 0;text-align:right}
#xhs-extract #xhs-extract-lightbox{width:min(94vw,1000px);max-width:94vw;max-height:94dvh;overflow:auto;border:1px solid #dce9df;border-radius:20px;background:#f5f8f2;padding:18px;color:var(--xe-ink);box-shadow:0 25px 100px #1538243d}
#xhs-extract #xhs-extract-lightbox::backdrop{background:#183b2a99;backdrop-filter:blur(5px)}
#xhs-extract #xhs-extract-lightbox header,#xhs-extract #xhs-extract-lightbox footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#xhs-extract #xhs-extract-lightbox h2{font-size:15px;margin:0}
#xhs-extract .xe-lightbox-image{height:65dvh;background:#e9f0e7;border-radius:11px;margin:14px 0;display:grid;place-items:center;overflow:hidden}
#xhs-extract .xe-lightbox-image img{width:100%;height:100%;object-fit:contain}
#xhs-extract [data-xe-lightbox-index]{font-size:12px;color:var(--xe-muted)}
@keyframes xe-spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){#xhs-extract .xe-viewer{height:460px}}
@media(max-width:1150px){body #xhs-extract{padding:24px!important}#xhs-extract .xe-result-head{align-items:flex-start;flex-direction:column;gap:5px}#xhs-extract :is(.xe-media,.xe-document){padding:20px}#xhs-extract .xe-viewer{height:350px}}
@media(max-width:800px){body #xhs-extract{padding:20px 14px!important}#xhs-extract .xe-auto-label{display:none}#xhs-extract .xe-workspace{grid-template-columns:minmax(0,1fr)}#xhs-extract .xe-media{border-right:0;border-bottom:1px solid var(--xe-edge)}#xhs-extract .xe-body{max-height:none;min-height:0}#xhs-extract .xe-doc-actions{margin-top:23px}#xhs-extract .xe-input-footer{flex-direction:column;gap:9px}#xhs-extract .xe-input-footer details{max-width:100%}#xhs-extract .xe-empty{min-height:340px}#xhs-extract .xe-result-head{padding:20px}#xhs-extract .xe-video{max-height:520px}}
@media(max-width:560px){#xhs-extract .xe-input-row{flex-direction:column}#xhs-extract #xhs-extract-start{min-height:44px}#xhs-extract .xe-input-card{padding:17px}#xhs-extract h1{font-size:25px!important}#xhs-extract .xe-empty h2{font-size:20px}#xhs-extract .xe-progress{flex-wrap:wrap;gap:7px}#xhs-extract .xe-progress-hint{margin-left:22px;width:100%}#xhs-extract .xe-error{align-items:flex-start;flex-direction:column;gap:10px}#xhs-extract .xe-viewer{height:360px}#xhs-extract .xe-thumbs{grid-template-columns:repeat(auto-fill,minmax(46px,1fr))}#xhs-extract .xe-footer-note{text-align:left}#xhs-extract .xe-cover{flex-wrap:wrap}#xhs-extract #xhs-extract-lightbox{padding:13px}#xhs-extract .xe-lightbox-image{height:60dvh}#xhs-extract #xhs-extract-lightbox footer{gap:7px}}
@media(prefers-reduced-motion:reduce){#xhs-extract *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:560px){#xhs-extract .xe-button,#xhs-extract .xe-image-actions .xe-button,#xhs-extract .xe-document-head .xe-button,#xhs-extract .xe-cover .xe-button{min-height:44px}}

/* Bound both grid tracks: intrinsic tall images must never enlarge the viewport. */
#xhs-extract #xhs-extract-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:14px;height:min(92dvh,980px);box-sizing:border-box;overflow:hidden;inset:0;margin:auto;transform:none}
#xhs-extract .xe-lightbox-image{height:auto;min-height:0;min-width:0;margin:0;display:flex;align-items:center;justify-content:center}
#xhs-extract .xe-lightbox-image img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0;min-height:0;object-fit:contain!important;aspect-ratio:auto}

#xhs-extract #xhs-extract-lightbox[open]{position:fixed!important;animation:none!important;transition:none!important}
#xhs-extract #xhs-extract-lightbox *{animation:none!important;transition:none!important}
#xhs-extract #xhs-extract-lightbox header,#xhs-extract #xhs-extract-lightbox footer{padding:0;margin:0;min-height:0;background:transparent}

/* Longer shared text and readable engagement figures. */
#xhs-extract .xe-input-row{align-items:stretch}
#xhs-extract #xhs-extract-url{box-sizing:border-box;min-width:0;min-height:88px;height:88px;line-height:1.65;overflow-y:auto;overflow-wrap:anywhere;word-break:break-word;resize:vertical}
#xhs-extract #xhs-extract-start{align-self:stretch;min-height:48px}
#xhs-extract .xe-result-info{min-width:0;flex:1}
#xhs-extract .xe-stats{display:grid;grid-template-columns:repeat(4,minmax(78px,1fr));gap:9px;min-width:min(100%,380px)}
#xhs-extract .xe-stats div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px 15px;border:1px solid #d9e9dd;border-radius:12px;background:#f0f8f1;white-space:normal}
#xhs-extract .xe-stats dt{font-size:12px;color:#668574}
#xhs-extract .xe-stats dd{font-size:21px;line-height:1.2;font-weight:700;color:#245e42}
@media(max-width:1150px){#xhs-extract .xe-stats{width:100%;margin-top:12px}}
@media(max-width:560px){#xhs-extract .xe-stats{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}#xhs-extract #xhs-extract-url{min-height:100px;height:100px}}


/* --- article-visual.css --- */
/* 爆文转贴图：工作台内嵌视图，配色与全局 tokens 对齐 */
#article-visual .v3-meta { display:flex; margin-bottom:22px; color:#638675; }

#article-visual .av-layout { display:grid; grid-template-columns:minmax(360px,420px) minmax(0,1fr); gap:28px; align-items:start; }
#article-visual .av-col { display:flex; flex-direction:column; gap:16px; min-width:0; }
#article-visual .av-card {
  background:linear-gradient(135deg,#ffffffef,#f2faf5e6);
  border:1px solid #fff; border-radius:24px; box-shadow:0 18px 44px #29543d0f;
}
#article-visual .av-input-panel { padding:32px; background:linear-gradient(145deg,#ffffffed,#eef9f2b8);backdrop-filter:blur(24px);border:1px solid #ffffffef;border-radius:26px;box-shadow:inset 0 1px 0 #fff,0 16px 40px #29543d0b; }
#article-visual .av-input-panel .av-lead { margin-bottom:26px;line-height:1.9; }
#article-visual .av-input-panel .av-step-head { margin-top:28px;margin-bottom:18px; }
#article-visual .av-input-panel .av-input-row { flex-direction:column;gap:12px; }
#article-visual .av-input-panel .av-input-row input { flex:none;width:100%;height:50px;border-color:#c1ddcd;background:#ffffffb8; }
#article-visual .av-input-panel .av-input-row .av-btn { width:100%;height:48px; }
#article-visual .av-input-panel .av-hint { line-height:1.8;margin-top:14px; }
#article-visual .av-input-panel .av-note-line { margin-top:24px;padding-top:20px; }
@media(max-width:600px){#article-visual .av-input-panel{padding:24px}}
#article-visual .av-micro { display:flex; align-items:center; gap:8px; color:#5f8a70; font-size:10px; letter-spacing:.16em; }
#article-visual .av-micro .line { width:24px; height:1px; background:#a7c9b4; }
#article-visual .av-title { margin:14px 0 10px; font-family:inherit; font-size:30px; line-height:1.32; font-weight:720; color:#244b39; letter-spacing:.2px; }
#article-visual .av-serif { font-family:"Songti SC","Noto Serif SC",serif; font-weight:600; }
#article-visual .av-lead { margin:0 0 18px; color:#678373; font-size:13px; line-height:1.85; }
#article-visual .av-step-head { display:flex; gap:10px; align-items:flex-start; margin:14px 0 10px; }
#article-visual .av-num { color:#2c8a5d; font-size:12px; font-weight:700; padding-top:2px; }
#article-visual .av-step-head strong { display:block; color:#244b39; font-size:14px; }
#article-visual .av-step-head small { display:block; color:#7b9687; font-size:11.5px; margin-top:3px; }
#article-visual .av-field { display:block; font-size:12px; color:#7b9687; margin:8px 0 7px; }
#article-visual .av-input-row { display:flex; gap:8px; }
#article-visual .av-input-row input {
  flex:1; min-width:0; height:46px; padding:0 14px; font-size:13px; color:#244b39;
  border:1.5px solid #2c8a5d; border-radius:12px; background:#fff; outline:none;
}
#article-visual .av-input-row input::placeholder { color:#9db3a6; }
#article-visual .av-hint { margin:9px 0 0; font-size:11px; color:#9ab3a5; }
#article-visual .av-hint.is-error { color:#b04a3a; }
#article-visual .av-progress { margin-top:16px;padding:16px;border:1px solid #cce7d7;border-radius:16px;background:linear-gradient(135deg,#edf9f2,#fff);color:#235c43 }
#article-visual .av-progress[hidden] { display:none }
#article-visual .av-progress-head { display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:14px }
#article-visual .av-progress-head span,#article-visual .av-progress p { font-size:12px;color:#688b78 }
#article-visual .av-progress p { margin:8px 0 12px;line-height:1.5 }
#article-visual .av-progress-steps { display:flex;flex-wrap:wrap;gap:7px;font-size:11px;color:#8aa69a }
#article-visual .av-progress-steps span { padding:5px 8px;border-radius:8px;background:#f4faf6 }
#article-visual .av-progress-steps .is-current { background:#d7f0e1;color:#167047;font-weight:700 }
#article-visual .av-progress-steps .is-done { color:#39845f }
#article-visual .av-sticker-link { margin-top:10px; }
#article-visual .av-sticker-link[hidden] { display:none !important; }
#article-visual .av-note-line { margin-top:16px; padding-top:13px; border-top:1px dashed #d9e9de; font-size:11.5px; color:#8aa796; line-height:1.7; }

#article-visual .av-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:46px; padding:0 18px; border-radius:12px; border:1px solid #cfe3d6;
  background:#fff; color:#41614f; font-size:13px; font-weight:600; cursor:pointer;
  white-space:nowrap; text-decoration:none; transition:filter .15s, border-color .15s;
}
#article-visual .av-btn:hover { border-color:#a9cbb8; }
#article-visual .av-btn-primary { background:#2f8a5f; border-color:#2f8a5f; color:#fff; box-shadow:0 8px 18px #2f8a5f26; }
#article-visual .av-btn-ghost { background:#fff; color:#41614f; }
#article-visual .av-btn:disabled { opacity:.5; cursor:not-allowed; }
#article-visual .av-btn.small { height:38px; font-size:12px; padding:0 14px; border-radius:10px; }

#article-visual .av-article-panel { padding:22px; }
#article-visual .av-article-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
#article-visual .av-article-head h2 { margin:0 0 6px; font-size:15px; line-height:1.55; color:#244b39; }
#article-visual .av-meta { margin:0; color:#8aa796; font-size:11px; }
#article-visual .av-thesis { margin:12px 0 0; padding:9px 11px; background:#eef7f1; border-radius:10px; font-size:11.5px; color:#41614f; line-height:1.65; }

#article-visual .av-workcard { padding:22px; }
#article-visual .av-tabs { display:grid; grid-template-columns:repeat(3,1fr); background:#e8f2eb; border:1px solid #d5e5da; border-radius:14px; padding:5px; gap:4px; }
#article-visual .av-tab {
  height:38px; border:0; border-radius:10px; background:transparent; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px; font-size:12.5px; color:#5f806d;
}
#article-visual .av-tab b { font-size:11px; color:#8aa796; font-weight:600; }
#article-visual .av-tab.is-active { background:#fff; color:#244b39; font-weight:650; box-shadow:0 4px 12px #29543d0d; }
#article-visual .av-tab.is-active b { color:#2c8a5d; }
#article-visual .av-summary { display:flex; gap:18px; flex-wrap:wrap; margin:14px 2px 16px; font-size:11.5px; color:#7f9a8b; }
#article-visual .av-summary b { color:#2f6f4f; font-weight:650; }

#article-visual .av-empty h2, #article-visual .av-plan h2 { margin:0 0 8px; font-size:22px; line-height:1.4; font-weight:700; color:#244b39; }
#article-visual .av-empty > p, #article-visual .av-plan-sub { margin:0 0 16px; color:#678373; font-size:12.5px; line-height:1.8; }
#article-visual .av-features { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
#article-visual .av-feature { background:#ffffffb8; border:1px solid #dceade; border-radius:16px; padding:14px; }
#article-visual .av-feature > span { font-size:9.5px; color:#8aa796; letter-spacing:.12em; }
#article-visual .av-feature strong { display:block; font-size:13px; color:#244b39; margin:6px 0 4px; }
#article-visual .av-feature p { margin:0; color:#6d8a7a; font-size:11px; line-height:1.65; }
#article-visual .av-samples { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
#article-visual .av-sample { height:150px; border-radius:16px; padding:12px; display:flex; flex-direction:column; justify-content:space-between; border:1px solid #dceade; overflow:hidden; }
#article-visual .av-sample span { font-size:9px; letter-spacing:.12em; color:#cfe6d8; }
#article-visual .av-sample b { font-family:"Songti SC",serif; font-size:24px; line-height:1.12; color:#fff; }
#article-visual .av-sample small { font-size:10px; color:#9fc4ae; }
#article-visual .av-sample.a { background:linear-gradient(160deg,#13251f,#0b1210); }
#article-visual .av-sample.b { background:#0b0d0f; }
#article-visual .av-sample.b b { font-size:30px; }
#article-visual .av-sample.c { background:linear-gradient(160deg,#e9e4d8,#cfc8b8); }
#article-visual .av-sample.c span, #article-visual .av-sample.c small { color:#5d6a5f; }
#article-visual .av-sample.c b { color:#1d2a22; font-size:20px; }
#article-visual .av-flow { display:flex; align-items:flex-start; gap:0; list-style:none; padding:0; margin:0; }
#article-visual .av-flow li { flex:1; display:flex; flex-direction:column; gap:4px; position:relative; padding-right:10px; }
#article-visual .av-flow li:not(:last-child):after { content:""; position:absolute; left:26px; right:8px; top:9px; height:1px; background:#cfe3d6; }
#article-visual .av-flow b { font-size:10px; color:#2c8a5d; position:relative; z-index:1; width:22px; }
#article-visual .av-flow span { font-size:11.5px; color:#41614f; line-height:1.5; }

#article-visual .av-slot-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#article-visual .av-slot-card {
  display:flex; gap:11px; text-align:left; padding:12px; border-radius:16px;
  border:1px solid #dceade; background:#ffffffc9; cursor:pointer; font:inherit; color:inherit;
  transition:border-color .15s, box-shadow .15s;
}
#article-visual .av-slot-card:hover { border-color:#b9dcc6; box-shadow:0 8px 20px #29543d0d; }
#article-visual .av-slot-card.is-cover { border-color:#b9dcc6; background:linear-gradient(135deg,#ffffff,#eef8f1); }
#article-visual .av-slot-card.is-active { border-color:#2f8a5f; box-shadow:0 0 0 2px #2f8a5f1f; }
#article-visual .av-slot-thumb {
  width:60px; height:80px; border-radius:8px; flex:none; overflow:hidden;
  background:linear-gradient(160deg,#12211d,#0a0f0d); color:#f4d24c;
  display:flex; align-items:center; justify-content:center; text-align:center;
  font-size:9px; font-weight:700; line-height:1.3; padding:5px;
}
#article-visual .av-slot-info { min-width:0; }
#article-visual .av-slot-cap { display:flex; align-items:center; gap:6px; font-size:9.5px; color:#8aa796; letter-spacing:.06em; }
#article-visual .av-slot-cap em { font-style:normal; background:#eaf4ed; color:#2f7a55; padding:1px 6px; border-radius:999px; }
#article-visual .av-slot-info h3 { margin:4px 0 4px; font-size:13px; line-height:1.45; color:#244b39; }
#article-visual .av-slot-info p { margin:0 0 6px; font-size:10.5px; color:#6d8a7a; line-height:1.55; }
#article-visual .av-chips { display:flex; gap:4px; flex-wrap:wrap; }
#article-visual .av-chips span { font-size:9.5px; color:#5a7a67; background:#eef6f1; border:1px solid #dceade; border-radius:999px; padding:1px 6px; }

#article-visual .av-stage-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; }
#article-visual .av-stage-head h3 { margin:0; font-size:15px; color:#244b39; }
#article-visual .av-stage-status { font-size:11px; color:#8aa796; }
#article-visual .av-stage-status.is-ok { color:#2f7a55; }
#article-visual .av-stage-status.is-busy { color:#b07a2a; }
#article-visual .av-preview { background:#f3f9f5; border:1px dashed #cfe3d6; border-radius:16px; min-height:360px; padding:14px; }
#article-visual .av-preview img { display:block; margin:0 auto; width:auto !important; height:auto !important; max-width:100%; max-height:520px; object-fit:contain; border-radius:10px; }
#article-visual .av-preview-empty { min-height:330px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#8aa796; font-size:12px; }
#article-visual .av-preview-icon { display:inline-grid; place-items:center; width:56px; height:56px; border-radius:14px; background:#e8f2eb; color:#6f917d; font-size:12px; margin-bottom:8px; }
#article-visual .av-cover-styles { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:12px; }
#article-visual .av-cover-styles-label { font-size:11px; color:#8aa796; }
#article-visual .av-style-chip { height:30px; padding:0 12px; border-radius:999px; border:1px solid #cfe3d6; background:#fff; color:#5a7a67; font-size:12px; cursor:pointer; }
#article-visual .av-style-chip.is-active { background:#2f8a5f; border-color:#2f8a5f; color:#fff; }
#article-visual .av-editor { margin-top:12px; }
#article-visual .av-editor label { display:block; font-size:11px; color:#8aa796; margin-bottom:5px; }
#article-visual .av-editor input { width:100%; height:38px; padding:0 11px; border:1px solid #cfe3d6; border-radius:9px; font-size:13px; color:#244b39; background:#fff; }
#article-visual .av-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
#article-visual .av-note { margin:10px 0 0; font-size:11px; color:#8aa796; line-height:1.6; }

#article-visual .av-gallery-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
#article-visual .av-gallery-head h3 { margin:0; font-size:15px; }
#article-visual .av-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
#article-visual .av-gallery-empty { color:#8aa796; font-size:12px; }
#article-visual .av-card { background:#fff; border:1px solid #dceade; border-radius:12px; overflow:hidden; }
#article-visual .av-card img { width:100%; display:block; }
#article-visual .av-gallery-image-link { display:block; cursor:zoom-in; }
#article-visual .av-image-viewer { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:56px 20px 20px; background:#111e; }
#article-visual .av-image-viewer[hidden] { display:none; }
#article-visual .av-image-viewer img { max-width:min(92vw,900px); max-height:88vh; width:auto; height:auto; object-fit:contain; box-shadow:0 12px 48px #0008; }
#article-visual .av-image-viewer-close { position:fixed; top:14px; right:18px; width:42px; height:42px; border:1px solid #ffffff70; border-radius:50%; background:#222; color:#fff; font-size:28px; line-height:1; cursor:pointer; }
#article-visual .av-card-foot { padding:7px 9px; display:flex; justify-content:space-between; gap:6px; font-size:10px; color:#7b9687; }
#article-visual .av-toast { position:fixed; left:50%; bottom:30px; transform:translateX(-50%); background:#244b39; color:#fff; padding:9px 15px; border-radius:10px; font-size:12px; z-index:60; }

@media (max-width:1180px) { #article-visual .av-layout { grid-template-columns:1fr; } }
@media (max-width:680px) {
  #article-visual .av-title { font-size:25px; }
  #article-visual .av-slot-grid, #article-visual .av-gallery { grid-template-columns:1fr; }
  #article-visual .av-features, #article-visual .av-samples { grid-template-columns:1fr; }
  #article-visual .av-flow { flex-wrap:wrap; gap:8px; }
}

#article-visual .av-angle-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:12px 0 20px}
#article-visual .av-angle-option{display:flex;flex-direction:column;text-align:left;gap:8px;padding:17px;border:1px solid #d6e8dc;border-radius:14px;background:#f5faf6;color:#284c39;cursor:pointer}
#article-visual .av-angle-option.is-active{border-color:#31845b;background:#e9f5ec}
#article-visual .av-angle-option strong{font-size:16px;line-height:1.5}
#article-visual .av-angle-option span,#article-visual .av-angle-option small{line-height:1.6;color:#668372}
#article-visual .av-evidence{display:block;margin-top:8px;color:#668372;font-size:12px;line-height:1.6}
#article-visual #av-angles summary{cursor:pointer;color:#23734c;font-weight:600}
#article-visual [hidden]{display:none!important}

#article-visual #av-angles>.av-btn{margin:0 0 20px}
#article-visual .av-angle-option:disabled{cursor:not-allowed;opacity:.7}
#article-visual .av-angle-option:focus-visible{outline:3px solid #68aa83;outline-offset:2px}
#article-visual .av-delivery-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}#article-visual .av-delivery-layout .av-gallery{min-width:0}#article-visual .remix-publication{padding:22px;border:1px solid #d8ebe0;border-radius:20px;background:#fbfffc;box-shadow:0 12px 36px #1f6a4110;color:#244b39}#article-visual #av-publication:empty{display:none}@media(max-width:900px){#article-visual .av-delivery-layout{grid-template-columns:1fr}#article-visual .remix-publication{padding:16px}}

#article-visual #av-text-entry{margin:12px 0;color:#426c56;font-size:13px;line-height:1.6}#article-visual #av-text-entry summary{cursor:pointer;font-weight:600}#article-visual #av-text-entry input,#article-visual #av-text-entry textarea{display:block;box-sizing:border-box;width:100%;margin:6px 0 12px;padding:10px 12px;border:1px solid #cfe2d5;border-radius:10px;background:#fff;color:#244b39;font:inherit}#article-visual #av-text-entry textarea{resize:vertical;min-height:150px}#article-visual .av-review-warning{color:#805d1c;background:#fff7e5;border:1px solid #f0dcaf;border-radius:10px;padding:10px;line-height:1.6}


/* --- viral-article.css --- */
/* 爆文复刻：工作台内嵌视图 */
#viral-article .v3-meta {
  display: flex;
  margin-bottom: 22px;
  color: #638675;
}

#viral-article .va-layout {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

#viral-article .va-panel {
  min-width: 0;
  border: 1px solid #ffffffef;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffffed, #f3faf5d9);
  box-shadow: inset 0 1px 0 #fff, 0 16px 40px #29543d0b;
  backdrop-filter: blur(22px);
}

#viral-article .va-input-panel {
  padding: 30px;
}

#viral-article .va-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f8a70;
  font-size: 10px;
  letter-spacing: .14em;
}

#viral-article .va-kicker > span:first-child {
  width: 24px;
  height: 1px;
  background: #a7c9b4;
}

#viral-article h1 {
  margin: 14px 0 10px;
  color: #244b39;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 740;
}

#viral-article h1 span {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-weight: 620;
  color: #a65e35;
}

#viral-article .va-lead {
  margin: 0 0 24px;
  color: #678373;
  font-size: 13px;
  line-height: 1.85;
}

#viral-article .va-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#viral-article .va-form label {
  color: #52715f;
  font-size: 12px;
  font-weight: 650;
}

#viral-article textarea,
#viral-article input[type="text"],
#viral-article input[type="number"],
#viral-article .va-form > input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c7dfd0;
  border-radius: 12px;
  background: #ffffffc9;
  color: #244b39;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

#viral-article textarea {
  min-height: 142px;
  padding: 14px;
  resize: vertical;
  line-height: 1.75;
}

#viral-article .va-form > input,
#viral-article input[type="number"] {
  height: 46px;
  padding: 0 13px;
}

#viral-article textarea:focus,
#viral-article input:focus {
  border-color: #2f8a5f;
  box-shadow: 0 0 0 3px #2f8a5f14;
}

#viral-article textarea::placeholder,
#viral-article input::placeholder {
  color: #9db3a6;
}

#viral-article .va-url-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #8aa796;
  font-size: 11px;
}

#viral-article .va-url-meta .is-over {
  color: #b04a3a;
  font-weight: 700;
}

#viral-article .va-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 4px;
  padding: 12px 0;
  border-top: 1px dashed #d9e9de;
  border-bottom: 1px dashed #d9e9de;
}

#viral-article .va-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

#viral-article .va-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#viral-article .va-switch > span {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #c9dbcf;
  position: relative;
  transition: background .18s;
}

#viral-article .va-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px #244b3930;
  transition: transform .18s;
}

#viral-article .va-switch input:checked + span {
  background: #2f8a5f;
}

#viral-article .va-switch input:checked + span::after {
  transform: translateX(16px);
}

#viral-article .va-switch b {
  color: #41614f;
  font-size: 12px;
}

#viral-article .va-chars {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

#viral-article .va-chars input {
  width: 88px;
}

#viral-article .va-submit {
  height: 48px;
  margin-top: 6px;
  border: 1px solid #2f8a5f;
  border-radius: 12px;
  background: #2f8a5f;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 20px #2f8a5f26;
  transition: filter .15s;
}

#viral-article .va-submit:hover {
  filter: brightness(1.04);
}

#viral-article .va-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

#viral-article .va-error {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid #eccfc6;
  border-radius: 10px;
  background: #fff6f2;
  color: #9b4636;
  font-size: 12px;
  line-height: 1.65;
}

#viral-article .va-cost {
  margin: 3px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #d9e9de;
  color: #8aa796;
  font-size: 11px;
}

#viral-article .va-cost strong {
  color: #a65e35;
  font-size: 13px;
}

#viral-article .va-price-hint {
  margin: 6px 0 0;
  color: #8aa796;
  font-size: 11px;
  line-height: 1.65;
}

#viral-article .va-progress-panel {
  padding: 28px;
}

#viral-article .va-panel-head,
#viral-article .va-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

#viral-article .va-panel-head h2 {
  margin: 8px 0 0;
  color: #244b39;
  font-size: 20px;
  line-height: 1.4;
}

#viral-article .va-panel-head > strong {
  color: #a65e35;
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#viral-article .va-progress-track {
  height: 7px;
  margin: 22px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1ea;
}

#viral-article .va-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8a5f, #cf8a4b);
  transition: width .35s ease;
}

#viral-article .va-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#viral-article .va-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 8px 11px;
  border: 1px solid #e2ede6;
  border-radius: 12px;
  background: #ffffffa8;
}

#viral-article .va-step > i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #edf4ef;
  color: #799585;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

#viral-article .va-step strong {
  display: block;
  color: #41614f;
  font-size: 12.5px;
}

#viral-article .va-step small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #8aa796;
  font-size: 10.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viral-article .va-step-status {
  color: #91a89b;
  font-size: 10.5px;
}

#viral-article .va-step.is-running {
  border-color: #b7d9c5;
  background: #f2fbf5;
}

#viral-article .va-step.is-running > i {
  background: #d7f0e1;
  color: #167047;
}

#viral-article .va-step.is-running .va-step-status {
  color: #2f8a5f;
  font-weight: 700;
}

#viral-article .va-step.is-done > i {
  background: #2f8a5f;
  color: #fff;
}

#viral-article .va-step.is-done .va-step-status {
  color: #2f7a55;
}

#viral-article .va-step.is-failed {
  border-color: #eccfc6;
  background: #fff7f4;
}

#viral-article .va-step.is-failed > i {
  background: #b05a45;
  color: #fff;
}

#viral-article .va-warnings {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #ead8bd;
  border-radius: 12px;
  background: #fffaf0;
}

#viral-article .va-warnings h3 {
  margin: 0 0 7px;
  color: #86602f;
  font-size: 12px;
}

#viral-article .va-warnings ul {
  margin: 0;
  padding-left: 18px;
  color: #88755b;
  font-size: 11px;
  line-height: 1.7;
}

#viral-article .va-cancel {
  height: 38px;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid #d7c8b8;
  border-radius: 10px;
  background: #fff;
  color: #7b6450;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

#viral-article .va-result-panel {
  grid-column: 1 / -1;
  padding: 28px;
}

#viral-article .va-result-head h2 {
  margin: 9px 0 0;
  color: #203f31;
  font-size: 24px;
  line-height: 1.45;
}

#viral-article .va-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#viral-article .va-result-actions button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #cfe3d6;
  border-radius: 9px;
  background: #fff;
  color: #41614f;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}

#viral-article .va-result-actions button:hover {
  border-color: #a9cbb8;
}

#viral-article .va-result-content {
  max-height: none;
  margin: 22px 0 0;
  padding: 20px;
  overflow: visible;
  border: 1px solid #e0eae3;
  border-radius: 14px;
  background: #fff;
  color: #2f4338;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 13.5px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#viral-article .va-evidence {
  margin-top: 18px;
  border-top: 1px dashed #d9e9de;
  padding-top: 14px;
  color: #5c7a68;
  font-size: 11.5px;
}

#viral-article .va-evidence summary {
  cursor: pointer;
  font-weight: 650;
}

#viral-article .va-evidence h3 {
  margin: 16px 0 8px;
  color: #41614f;
  font-size: 12px;
}

#viral-article .va-evidence ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

#viral-article .va-evidence a {
  color: #2f7a55;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  #viral-article .va-layout {
    grid-template-columns: 1fr;
  }

  #viral-article .va-result-panel {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  #viral-article {
    padding-bottom: 96px;
  }

  #viral-article .va-input-panel,
  #viral-article .va-progress-panel,
  #viral-article .va-result-panel {
    padding: 22px;
  }

  #viral-article .va-input-panel {
    padding-top: 18px;
  }

  #viral-article .va-price-hint {
    margin-top: 7px;
  }

  #viral-article h1 {
    font-size: 27px;
  }

  #viral-article h1 {
    margin-top: 10px;
  }

  #viral-article #va-urls {
    min-height: 78px;
  }

  #viral-article .va-lead {
    margin-bottom: 16px;
  }

  #viral-article .va-options,
  #viral-article .va-panel-head,
  #viral-article .va-result-head {
    align-items: stretch;
    flex-direction: column;
  }

  #viral-article .va-result-actions {
    justify-content: flex-start;
  }
}


/* --- creator-skills.css --- */
/* Standalone de-AI rewrite and skill library. */
.deai-page, .skills-page { padding: 28px 32px 64px; max-width: 1320px; margin: 0 auto; }
.deai-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 20px; align-items: start; }
.deai-panel { border: 1px solid rgba(15, 118, 110, .14); border-radius: 14px; background: rgba(255,255,255,.82); padding: 24px; box-shadow: 0 12px 34px rgba(15, 60, 56, .06); }
.deai-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; color: #0f766e; text-transform: uppercase; }
.deai-kicker span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #14b8a6; }
.deai-page h1, .skills-page h1 { margin: 14px 0 10px; font-size: clamp(26px, 3vw, 40px); line-height: 1.18; color: #102a2a; font-weight: 650; }
.deai-page h1 span, .skills-page h1 span { color: #0f766e; }
.deai-lead { margin: 0 0 20px; color: #4b6360; font-size: 14px; line-height: 1.75; max-width: 52em; }
.deai-form label { display: block; font-size: 12px; font-weight: 600; color: #33514d; margin-bottom: 7px; }
.deai-form textarea, .skill-run textarea, .skills-search input {
  width: 100%; border: 1px solid rgba(15,118,110,.2); border-radius: 10px; background: #fff;
  color: #17302d; font: inherit; line-height: 1.7; padding: 12px 14px; resize: vertical;
}
.deai-form textarea:focus, .skill-run textarea:focus, .skills-search input:focus { outline: 2px solid rgba(20,184,166,.28); border-color: #14b8a6; }
.deai-meta { display: flex; justify-content: space-between; font-size: 11px; color: #6b8480; margin: 6px 0 16px; }
.deai-options { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; margin-bottom: 16px; }
.deai-options select { width: 100%; margin-top: 7px; padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(15,118,110,.2); background: #fff; color: #17302d; }
.deai-depth strong { color: #0f766e; }
.deai-depth input { width: 100%; margin-top: 10px; accent-color: #0f766e; }
.deai-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.deai-versions label { border: 1px solid rgba(15,118,110,.16); border-radius: 10px; padding: 12px; cursor: pointer; background: #fbfdfc; }
.deai-versions label:has(input:checked) { border-color: #14b8a6; background: #effbf8; }
.deai-versions input { position: absolute; opacity: 0; pointer-events: none; }
.deai-versions span { display: block; font-size: 13px; color: #17302d; font-weight: 600; }
.deai-versions small { display: block; margin-top: 4px; font-size: 11px; color: #6b8480; line-height: 1.5; }
.deai-cost { font-size: 12px; color: #526d68; margin: 0 0 14px; }
.deai-cost strong { color: #b45309; font-size: 16px; }
.deai-submit, .skill-run button {
  width: 100%; border: 0; border-radius: 9px; padding: 12px 18px; background: #0f766e; color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.deai-submit:disabled, .skill-run button:disabled { opacity: .55; cursor: not-allowed; }
.deai-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff1f1; color: #a02c2c; font-size: 12px; line-height: 1.6; }
.deai-progress-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.deai-progress-head span, .deai-result-head span { font-size: 11px; letter-spacing: .08em; color: #6b8480; text-transform: uppercase; }
.deai-progress-head strong { display: block; margin-top: 4px; font-size: 15px; color: #17302d; }
.deai-percent { font-size: 22px; font-weight: 650; color: #0f766e; }
.deai-bar { height: 6px; border-radius: 4px; background: #e6f2ef; overflow: hidden; margin: 16px 0 20px; }
.deai-bar i { display: block; height: 100%; width: 0; background: #14b8a6; transition: width .35s ease; }
.deai-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deai-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; background: #f7fbfa; }
.deai-steps li i { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: #e2eeeb; color: #4b6360; }
.deai-steps li strong { display: block; font-size: 12px; color: #17302d; }
.deai-steps li small { display: block; margin-top: 3px; font-size: 11px; color: #6b8480; line-height: 1.5; }
.deai-steps li.is-running { background: #eefaf7; }
.deai-steps li.is-running i { background: #14b8a6; color: #fff; }
.deai-steps li.is-done i { background: #0f766e; color: #fff; }
.deai-actions { margin-top: 16px; }
.deai-actions button { border: 1px solid rgba(15,118,110,.25); border-radius: 8px; background: #fff; color: #33514d; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 12px; }
.deai-summary { margin: 14px 0 0; font-size: 12px; color: #4b6360; line-height: 1.7; }
.deai-result { margin-top: 20px; border: 1px solid rgba(15,118,110,.14); border-radius: 14px; background: rgba(255,255,255,.86); padding: 22px; }
.deai-result-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.deai-result-head strong { display: block; margin-top: 4px; font-size: 16px; color: #17302d; }
.deai-result-head button { border: 1px solid rgba(15,118,110,.25); background: #fff; color: #0f766e; border-radius: 8px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: 12px; margin-left: 6px; }
.deai-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.deai-result-grid article { min-width: 0; border: 1px solid #e6f2ef; border-radius: 10px; padding: 14px; background: #fbfdfc; }
.deai-result-grid h2 { margin: 0 0 10px; font-size: 12px; color: #0f766e; }
.deai-text { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.85; color: #1d3431; max-height: none; overflow: visible; }
.deai-warnings { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #fffbeb; color: #92400e; font-size: 12px; line-height: 1.7; }

.skills-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 18px; }
.skills-search { width: min(320px, 100%); }
.skills-groups { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.skills-groups button { border: 1px solid rgba(15,118,110,.18); background: #fff; color: #4b6360; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 12px; cursor: pointer; }
.skills-groups button[aria-selected="true"] { background: #0f766e; border-color: #0f766e; color: #fff; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skill-card { display: flex; flex-direction: column; gap: 10px; text-align: left; border: 1px solid rgba(15,118,110,.14); border-radius: 12px; background: #fff; padding: 16px; cursor: pointer; min-height: 168px; box-shadow: 0 8px 22px rgba(15,60,56,.04); }
.skill-card:hover { border-color: rgba(20,184,166,.55); transform: translateY(-1px); }
.skill-card-top { display: flex; align-items: center; gap: 10px; }
.skill-card-icon { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; background: #effbf8; display: grid; place-items: center; color: #0f766e; font-weight: 700; }
.skill-card h3 { margin: 0; font-size: 14px; color: #17302d; }
.skill-card small { font-size: 11px; color: #6b8480; }
.skill-card p { margin: 0; font-size: 12px; line-height: 1.7; color: #4b6360; }
.skill-card-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 11px; color: #0f766e; }
.skills-empty { padding: 32px; text-align: center; color: #6b8480; }
.skill-dialog { width: min(880px, calc(100vw - 32px)); max-height: 88vh; border: 1px solid rgba(15,118,110,.2); border-radius: 14px; padding: 24px; background: #fff; color: #17302d; }
.skill-dialog::backdrop { background: rgba(8, 32, 30, .42); }
.skill-dialog-close { position: absolute; right: 12px; top: 10px; }
.skill-dialog-close button { border: 0; background: transparent; font-size: 22px; color: #6b8480; cursor: pointer; }
.skill-dialog-head span#skill-dialog-group { font-size: 11px; color: #0f766e; letter-spacing: .08em; }
.skill-dialog-head h2 { margin: 6px 0; font-size: 22px; }
.skill-dialog-head p { margin: 0; color: #4b6360; font-size: 13px; line-height: 1.7; }
.skill-dialog-tags { display: flex; gap: 8px; margin-top: 10px; }
.skill-dialog-tags span { border: 1px solid #e0eeeb; border-radius: 999px; padding: 3px 9px; font-size: 11px; color: #6b8480; }
.skill-prompt { margin: 16px 0; border: 1px solid #e6f2ef; border-radius: 10px; padding: 10px 12px; background: #fbfdfc; }
.skill-prompt summary { cursor: pointer; font-size: 12px; color: #0f766e; }
.skill-prompt pre { max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.7; color: #33514d; }
.skill-run { margin-top: 14px; }
.skill-run label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.skill-run button { margin-top: 10px; }
.skill-run-result { margin-top: 16px; border-top: 1px solid #e6f2ef; padding-top: 14px; }
.skill-run-result > div:first-child { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.skill-run-result button { border: 1px solid rgba(15,118,110,.25); background: #fff; color: #0f766e; border-radius: 8px; padding: 6px 11px; cursor: pointer; font: inherit; font-size: 12px; }
@media (max-width: 980px) {
  .deai-layout, .deai-result-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .deai-page, .skills-page { padding: 20px 14px 48px; }
  .deai-options, .deai-versions, .skills-grid { grid-template-columns: 1fr; }
  .deai-result-head { flex-direction: column; }
}


/* --- douyin-extract.css --- */
/*
 * douyin-extract.css — 抖音内容提取（/douyin-extract）
 * ────────────────────────────────────────────────────────────────
 * 材质沿用全站液态玻璃：直接吃 liquid-glass.css 的 --lg-* 令牌，
 * 不另起一套色板，避免这个页面看起来像「另一个产品」。
 *
 * 用材分级（和 liquid-glass.css 的约定一致）：
 *   A 级真玻璃：左右两块主面片（表单 / 结果）
 *   B 级磨砂片：元数据格、图片格、提示条 —— 只给白度和发丝边，不做模糊
 *
 * 交互层只做一件事：把「提取出来的素材」排成能直接用的样子，
 * 不在这里重复实现任何抓取逻辑。
 * ────────────────────────────────────────────────────────────────
 */

/* ---------------- 00 页面骨架 ---------------- */
body #douyin-extract {
  padding: 36px 40px !important;
  background: transparent !important;
  border: 0 !important;
}

#douyin-extract .v3-meta { display: flex !important; margin-bottom: 24px; color: #638675; }

#douyin-extract .skill-shell {
  display: grid !important;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start;
}

/* A 级：两块主面片 */
#douyin-extract .skill-form-col,
#douyin-extract .skill-output-col {
  position: relative;
  min-width: 0;
  padding: 30px !important;
  border: 1px solid var(--lg-edge, rgba(255, 255, 255, .72)) !important;
  border-radius: 24px !important;
  background-color: var(--lg-fill, rgba(255, 255, 255, .73)) !important;
  background-image: var(--lg-hi, linear-gradient(148deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 58%)) !important;
  box-shadow: var(--lg-shadow, 0 18px 48px rgba(34, 87, 59, .10), inset 0 1px 0 rgba(255, 255, 255, .95)) !important;
  -webkit-backdrop-filter: var(--lg-blur, blur(24px) saturate(165%));
  backdrop-filter: var(--lg-blur, blur(24px) saturate(165%));
}

#douyin-extract .skill-output-col { padding: 24px !important; }

/* ---------------- 01 表单 ---------------- */
#douyin-extract h1 {
  font-family: inherit !important;
  font-size: 30px !important;
  line-height: 1.35;
  color: #244b39;
  margin: 16px 0;
}

#douyin-extract p { font-size: 14px; line-height: 1.8; color: #678373; }

#douyin-extract .skill-form {
  padding: 0 !important;
  margin-top: 24px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#douyin-extract .form-section { border: 0; padding: 0; }
#douyin-extract .head { margin-bottom: 18px; }

#douyin-extract .field-wide {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #476e59;
}

#douyin-extract textarea {
  padding: 14px;
  min-height: 96px;
  border: 1px solid #cce0d2 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .74) !important;
  font-size: 13px !important;
  line-height: 1.6;
  resize: vertical;
  overflow-wrap: anywhere;
}

#douyin-extract textarea:focus-visible {
  outline: 3px solid #68aa83;
  outline-offset: 2px;
  border-color: #9ac8ae !important;
}

/* B 级：提示条 */
#douyin-extract .douyin-extract-hint {
  margin: 14px 0 0;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.75;
  color: #4f6f5d;
  border: 1px solid rgba(154, 200, 174, .42);
  border-radius: 12px;
  background: rgba(240, 250, 243, .72);
}

#douyin-extract .douyin-extract-hint b { color: #2c6e4f; font-weight: 600; }

#douyin-extract .douyin-extract-hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(154, 200, 174, .5);
  font-size: 11px;
  color: #2c6e4f;
  overflow-wrap: anywhere;
}

#douyin-extract .skill-primary {
  margin-top: 24px;
  width: 100%;
  min-height: 48px;
  border-radius: 12px !important;
  background: linear-gradient(110deg, #24875e, #125333) !important;
  color: #fff;
  font-size: 15px !important;
  cursor: pointer;
}

#douyin-extract .skill-primary:disabled { cursor: wait; opacity: .82; }

#douyin-extract .douyin-extract-notice {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #8ba396;
}

/* ---------------- 02 空状态 ---------------- */
#douyin-extract .douyin-extract-empty {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  min-height: 480px;
  padding: 20px !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#douyin-extract .douyin-extract-empty[hidden],
#douyin-extract .douyin-extract-result[hidden],
#douyin-extract .douyin-extract-error[hidden] { display: none !important; }

#douyin-extract .douyin-extract-empty h2 {
  font-size: 28px !important;
  line-height: 1.5;
  color: #244b39;
  margin: 0;
}

#douyin-extract .tag { font-size: 12px; color: #518268; letter-spacing: .04em; }

#douyin-extract .dy-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #88bda1;
}

#douyin-extract .dy-steps {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

#douyin-extract .dy-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d9e9de;
  border-radius: 14px;
  background: rgba(255, 255, 255, .6);
  font-size: 14px;
  color: #527460;
}

#douyin-extract .dy-steps b { color: #2c8a5d; font-size: 13px; }

/* ---------------- 03 结果区 ---------------- */
#douyin-extract .douyin-extract-result { display: flex; flex-direction: column; gap: 20px; }

#douyin-extract .dy-card {
  padding: 22px;
  border: 1px solid rgba(214, 231, 220, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

#douyin-extract .dy-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

#douyin-extract .dy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(154, 200, 174, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-size: 12px;
  color: #2c6e4f;
  white-space: nowrap;
}

#douyin-extract .dy-chip.muted { color: #6b8778; border-color: rgba(196, 214, 203, .8); }

#douyin-extract .dy-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
  color: #1f4633;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#douyin-extract .dy-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #4f6f5d;
}

#douyin-extract .dy-author img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .9);
  background: #eef6f0;
}

/* 元数据格：B 级磨砂片 */
#douyin-extract .dy-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

#douyin-extract .dy-stats div {
  padding: 12px 14px;
  border: 1px solid rgba(219, 233, 224, .95);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}

#douyin-extract .dy-stats dt { font-size: 11px; color: #7d9a8b; margin-bottom: 4px; }
#douyin-extract .dy-stats dd { margin: 0; font-size: 17px; font-weight: 600; color: #24503a; font-variant-numeric: tabular-nums; }

#douyin-extract .dy-body {
  margin: 0;
  padding: 16px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid rgba(219, 233, 224, .95);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.85;
  color: #33543f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#douyin-extract .dy-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

#douyin-extract .dy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

#douyin-extract .dy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(140, 180, 156, .5);
  border-radius: 10px;
  background: rgba(255, 255, 255, .85);
  color: #2c6e4f;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s, transform .16s;
}

#douyin-extract .dy-btn:hover { background: #fff; transform: translateY(-1px); }
#douyin-extract .dy-btn.primary { background: #21744c; border-color: #21744c; color: #fff; }
#douyin-extract .dy-btn.primary:hover { background: #1b5f3f; }

/* 图片墙 */
#douyin-extract .dy-media-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#douyin-extract .dy-media-head span { font-size: 12px; color: #7d9a8b; }

#douyin-extract .dy-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

#douyin-extract .dy-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(238, 248, 242, .8), rgba(255, 255, 255, .4));
  aspect-ratio: 3 / 4;
}

#douyin-extract .dy-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

#douyin-extract .dy-shot:hover img { transform: scale(1.04); }

#douyin-extract .dy-shot .dy-shot-index {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(32, 60, 50, .62);
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}

#douyin-extract .dy-shot .dy-shot-live {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #2c6e4f;
  font-size: 10px;
}

/* 视频卡：宽度跟随视频本身的比例，不再铺满整行。
   铺满时竖屏作品左右会各留一大条黑边（实测 1272×1568 的作品占满 1400px 宽的
   卡片，左右黑边比画面还宽）。width:auto + max-width/max-height 让播放器按
   画面自身比例收缩并居中。 */
#douyin-extract .dy-video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 460px;
  margin: 0 auto;
  border-radius: 14px;
  background: #0e1a14;
  border: 1px solid rgba(255, 255, 255, .8);
}

/* 错误提示 */
#douyin-extract .douyin-extract-error {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(217, 140, 122, .5);
  border-radius: 14px;
  background: rgba(255, 246, 243, .9);
  color: #8c3f2a;
  font-size: 13.5px;
  line-height: 1.75;
}

#douyin-extract .douyin-extract-error b { color: #7a2f1c; }

/* 引导行：告诉用户下一步点哪里，不只是「失败」两个字 */
#douyin-extract .douyin-extract-error .dy-error-hint {
  display: block;
  margin-top: 6px;
  color: #9a6b5c;
  font-size: 12.5px;
}

#douyin-extract .douyin-extract-error .dy-error-hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(217, 140, 122, .16);
  font-size: 12px;
}

/* ---------------- 04 响应式 ---------------- */
@media (max-width: 1100px) {
  body #douyin-extract { padding: 24px !important; }
  #douyin-extract .skill-shell { grid-template-columns: 1fr !important; }
  #douyin-extract .douyin-extract-empty { min-height: 300px; }
}

@media (max-width: 720px) {
  #douyin-extract .dy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  #douyin-extract .skill-form-col, #douyin-extract .skill-output-col { padding: 22px !important; }
  #douyin-extract .dy-steps { grid-template-columns: 1fr; }
  #douyin-extract h1 { font-size: 26px !important; }
  #douyin-extract .dy-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Unified extraction workspace: compact input, media and readable source text. */
body #douyin-extract{padding:28px 32px!important;max-width:1600px;margin:auto}
#douyin-extract .skill-shell{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
#douyin-extract .skill-form-col{padding:24px 28px!important}
#douyin-extract .micro-label{display:none}
#douyin-extract h1{font-size:28px!important;margin:0 0 8px!important;letter-spacing:-.5px}
#douyin-extract h1 br{display:none}
#douyin-extract .skill-form-col>p{margin:0;max-width:850px}
#douyin-extract .skill-form{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px 18px;margin-top:20px}
#douyin-extract .form-section{grid-row:1/3;min-width:0}
#douyin-extract .head{display:none}
#douyin-extract textarea{min-height:84px;width:100%;box-sizing:border-box;font-size:14px!important}
#douyin-extract .skill-primary{margin:27px 0 0!important;align-self:start;min-height:46px;border-radius:12px!important}
#douyin-extract .douyin-extract-notice{margin:0;font-size:12px;line-height:1.7}
#douyin-extract .douyin-extract-hint{padding:0;margin:9px 0 0;background:transparent;border:0;font-size:12px}
#douyin-extract .skill-output-col{padding:24px!important}
#douyin-extract .douyin-extract-empty{min-height:270px;padding:32px 20px!important}
#douyin-extract .douyin-extract-empty h2{font-size:26px;line-height:1.5}
#douyin-extract .dy-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:920px;margin:28px auto 0;padding:0;list-style:none}
#douyin-extract .dy-steps li{padding:14px;border:1px solid #d7e7dd;border-radius:12px;background:#ffffff9c;display:flex;gap:10px;align-items:center}
#douyin-extract .douyin-extract-result{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:20px;align-items:start}
#douyin-extract .douyin-extract-result>.dy-card:first-child{grid-column:2;grid-row:1}
#douyin-extract .douyin-extract-result>.dy-card:nth-child(2){grid-column:1;grid-row:1}
#douyin-extract .dy-card{min-width:0;padding:22px;border:1px solid #d9e8df;border-radius:18px;background:#ffffffbd;box-shadow:none}
#douyin-extract .dy-card h2{font-size:21px;line-height:1.5;overflow-wrap:anywhere}
#douyin-extract .dy-body{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;line-height:1.95;max-height:none;overflow:visible;padding:16px;background:#f3f8f3;border-radius:12px}
#douyin-extract .dy-video{display:block;width:100%;max-height:560px;object-fit:contain;border-radius:12px;background:#18271f}
#douyin-extract .dy-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
#douyin-extract .dy-btn{min-height:40px;border-radius:10px}
#douyin-extract .dy-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#douyin-extract .dy-shot img{width:100%;height:260px;object-fit:contain;background:#eef4ee}
#douyin-extract [hidden]{display:none!important}
@media(max-width:900px){body #douyin-extract{padding:20px!important}#douyin-extract .douyin-extract-result{grid-template-columns:1fr}#douyin-extract .douyin-extract-result>.dy-card:first-child{grid-column:1;grid-row:2}#douyin-extract .dy-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){body #douyin-extract{padding:16px!important}#douyin-extract .skill-form-col,#douyin-extract .skill-output-col{padding:18px!important}#douyin-extract .skill-form{grid-template-columns:1fr}#douyin-extract .form-section{grid-row:auto}#douyin-extract .skill-primary{margin:0!important;width:100%}#douyin-extract h1{font-size:24px!important}#douyin-extract .dy-card{padding:16px}#douyin-extract .dy-shot img{height:200px}#douyin-extract .dy-btn{min-height:44px}}


/* --- review-studio.css --- */
/* Publishing review shares the mint workbench palette and surfaces. */
body #hit-detector{--review-ink:#234b38;--review-muted:#63816f;--review-line:#d7e7dc;--review-accent:#21764e;padding:32px 40px!important;background:transparent!important;border:0!important}
#hit-detector .v3-meta{color:var(--review-muted);margin-bottom:20px}
#hit-detector .skill-shell{display:grid!important;grid-template-columns:minmax(320px,400px) minmax(0,1fr)!important;gap:24px!important;align-items:start}
#hit-detector .skill-form-col,#hit-detector .skill-output-col{min-width:0;padding:28px!important;border:1px solid #fff!important;border-radius:24px!important;background:linear-gradient(135deg,#fffffff0,#f0faf3d9)!important;box-shadow:0 12px 32px #34583f08!important;max-height:none!important}
#hit-detector h1{font-family:inherit!important;font-size:28px!important;line-height:1.4!important;color:var(--review-ink)!important;letter-spacing:-.02em}
#hit-detector :is(h2,h3,strong){color:var(--review-ink)}
#hit-detector p{font-size:14px;line-height:1.8;color:var(--review-muted);max-width:65ch}
#hit-detector .micro-label{color:var(--review-muted);font-size:11px;letter-spacing:.08em}
#hit-detector .skill-form{padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;margin-top:24px}
#hit-detector .form-section{padding:0;border:0}
#hit-detector .head{margin-bottom:20px}#hit-detector .head .num{background:#e4f2e8;color:#28724c;border-radius:8px}
#hit-detector label{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.5;color:#456951;letter-spacing:0;text-transform:none}
#hit-detector .field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}
#hit-detector :is(input,textarea,select){box-sizing:border-box;width:100%;padding:12px 14px!important;border:1px solid #c8ded0!important;border-radius:11px!important;background:#ffffffc9!important;color:#2d4937!important;font-size:14px!important;line-height:1.65;box-shadow:inset 0 1px 2px #254d3303!important}
#hit-detector textarea{min-height:130px;resize:vertical}#hit-detector #hit-body{min-height:300px}
#hit-detector :is(input,textarea,select):focus-visible{outline:2px solid #3c946b;outline-offset:3px}
#hit-detector :is(.skill-primary,.primary-action){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:12px 18px!important;border:0!important;border-radius:11px!important;background:linear-gradient(110deg,#25865d,#175b3c)!important;color:#fff!important;font-size:14px!important;box-shadow:0 4px 10px #21613e12!important;cursor:pointer}
#hit-detector .skill-primary{width:100%;margin-top:22px}#hit-detector button:disabled{opacity:.65;cursor:wait}
#hit-detector .secondary-action{border:1px solid #bad7c5!important;background:#eff9f2!important;color:#256743!important;border-radius:10px;padding:11px 16px}
#hit-detector .creator-chat-history{background:transparent;max-height:380px}#hit-detector .creator-chat-history>div{border-radius:13px;font-size:14px;line-height:1.8}
#hit-detector .creator-form-mode{margin-top:24px;padding-top:18px;border-top:1px solid var(--review-line)}#hit-detector summary{color:#387653;font-size:13px;cursor:pointer}
#hit-detector .skill-empty{padding:18px!important;background:transparent!important;min-height:420px}#hit-detector .skill-empty h2{font-size:25px!important;line-height:1.5!important;margin:16px 0;color:var(--review-ink)}
#hit-detector .empty-head{padding:0!important}#hit-detector .empty-grid{gap:14px;margin-top:24px}#hit-detector .empty-preview{border:1px solid var(--review-line)!important;border-radius:16px!important;background:#ffffff9c!important;padding:20px!important;box-shadow:none!important}
#hit-detector .empty-preview header{font-size:12px;color:#698473}#hit-detector .empty-foot{margin-top:24px;padding-top:18px;border-color:var(--review-line);color:#789281;font-size:12px}
#hit-detector .detector-hero{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:center;padding:26px;border:1px solid var(--review-line);border-radius:18px;background:#eaf6ee!important}
#hit-detector .detector-hero h2{font-size:56px;line-height:1.1;margin:14px 0 6px;color:#236b47}#hit-detector .detector-hero p{font-size:13px;margin:8px 0}#hit-detector .detector-verdict strong{font-size:18px;line-height:1.6}
#hit-detector .result-status{display:inline-flex;padding:6px 11px;border-radius:20px;font-size:12px;background:#d9eee0;color:#246444}#hit-detector .result-status.blocked{background:#fae3df;color:#a24232}#hit-detector .result-status.revise{background:#faf0d8;color:#8c6923}
#hit-detector .result-section{margin-top:22px;padding:22px;border:1px solid var(--review-line);border-radius:16px;background:#ffffff9c}#hit-detector .result-section-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px;font-size:15px}#hit-detector .result-section-title span{font-size:12px;color:#718b79}
#hit-detector .detector-score{display:grid;grid-template-columns:70px minmax(0,1fr) 55px;gap:14px;align-items:center;margin:14px 0;font-size:13px;color:#476451}#hit-detector .detector-score>div{height:6px;border-radius:6px;background:#e7f0e9;overflow:hidden}#hit-detector .detector-score i{display:block;height:100%;background:#69a784;border-radius:6px}#hit-detector .detector-score small{color:#849789;font-weight:400}
#hit-detector .suggestion-list article{display:flex;align-items:start;gap:16px;padding:18px 0;border-bottom:1px solid #e5eee8}#hit-detector .suggestion-list article:last-child{border:0}#hit-detector .suggestion-list article>span{padding:5px 8px;border-radius:7px;background:#f6ecd6;color:#8d6b2d;font-size:12px}#hit-detector .suggestion-list p{margin:6px 0 0;color:#587362}
#hit-detector .ledger-list>div{display:flex;gap:14px;align-items:start;padding:14px 0;border-bottom:1px solid #e5eee8}#hit-detector .ledger-list span{flex-shrink:0;font-size:12px;color:#65816e;padding-top:4px}#hit-detector .ledger-list p{margin:0;overflow-wrap:anywhere}
@media(max-width:1100px){body #hit-detector{padding:24px!important}#hit-detector .skill-shell{grid-template-columns:1fr!important}}
@media(max-width:560px){body #hit-detector{padding:16px!important}#hit-detector .skill-form-col,#hit-detector .skill-output-col{padding:20px!important;border-radius:18px!important}#hit-detector .detector-hero{grid-template-columns:1fr;padding:20px;gap:12px}#hit-detector .field-grid{grid-template-columns:1fr}#hit-detector .result-section{padding:16px}#hit-detector .result-section-title{flex-wrap:wrap}}


/* --- referrals.css --- */
/* 拉新活动：钱包里的邀请面板。
   注册表单的手填邀请码入口已删除（2026-11-14），这里只保留邀请面板的样式，
   不覆盖既有排版，配色沿用工作台的墨绿主色。 */

#invite-panel[hidden] { display: none !important; }

.wallet-invite {
  margin: 18px 0 4px;
  padding: 16px;
  border: 1px solid #d7e7dc;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fcf9, #ffffff);
}
.wallet-invite .wallet-section-title { margin-bottom: 10px; }
.wallet-invite .wallet-section-title span { color: #5c7a68; font-size: 12px; }

.invite-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.invite-code-row code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border: 1px dashed #a8cbb6;
  border-radius: 12px;
  background: #ffffff;
  color: #1f4030;
  font: 650 17px/1.2 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  letter-spacing: .22em;
  text-align: center;
  overflow-wrap: anywhere;
}
.invite-code-row button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: #2f7a52;
  color: #fff;
  font: 600 14px/1.2 var(--font-sans, system-ui, sans-serif);
  cursor: pointer;
}
.invite-code-row button:hover { background: #286844; }
.invite-code-row button:focus-visible { outline: 2px solid #2f7a52; outline-offset: 2px; }

.invite-stats {
  margin: 10px 0 0;
  color: #5c7a68;
  font-size: 13px;
  line-height: 1.6;
}

.invite-list { margin-top: 12px; display: grid; gap: 8px; }
.invite-list p { margin: 0; color: #6b8273; font-size: 13px; }
.invite-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f9f6;
}
.invite-list article div { min-width: 0; }
.invite-list article strong { display: block; font-size: 14px; color: #1f4030; }
.invite-list article small {
  display: block;
  color: #6b8273;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-status {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.invite-status.pending { background: #fdf3e0; color: #8a6416; }
.invite-status.activated { background: #e8f1fd; color: #23558f; }
.invite-status.rewarded { background: #e4f6ec; color: #22684a; }

/* 注册成功后的一次性高亮：让人注意到自己也有邀请码，而不是永久装饰。 */
.wallet-invite.invite-panel-flash {
  animation: invite-panel-flash 1.8s ease-out;
}
@keyframes invite-panel-flash {
  0% { box-shadow: 0 0 0 0 rgba(47, 122, 82, .55); border-color: #2f7a52; }
  55% { box-shadow: 0 0 0 8px rgba(47, 122, 82, 0); border-color: #2f7a52; }
  100% { box-shadow: 0 0 0 0 rgba(47, 122, 82, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-invite.invite-panel-flash { animation: none; border-color: #2f7a52; }
}

@media (max-width: 560px) {
  .invite-code-row { gap: 8px; }
  .invite-code-row button { width: 100%; }
  .invite-list article { align-items: flex-start; }
}


/* --- extract-unified.css --- */
/* Unified, quiet glass extraction workspaces. Scoped to extraction screens. */
body :is(#xhs-extract,#douyin-extract,#sticker-extract){--extract-ink:#193b30;--extract-muted:#607b6c;--extract-line:rgba(171,202,183,.5);--extract-glass:rgba(250,255,251,.78);max-width:1600px!important;margin:0 auto!important;padding:32px 36px 55px!important;color:var(--extract-ink)!important}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) *{box-sizing:border-box}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) h1{font-family:inherit!important;color:var(--extract-ink)!important;font-size:29px!important;letter-spacing:-.03em;line-height:1.3!important}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-card,.xe-empty,#xhs-extract-result,#sticker-result,.skill-form-col,.skill-output-col){border:1px solid rgba(255,255,255,.9)!important;border-radius:23px!important;background:linear-gradient(130deg,rgba(255,255,255,.9),rgba(235,250,240,.75))!important;box-shadow:0 12px 40px rgba(37,88,60,.07),inset 0 1px rgba(255,255,255,.9)!important;backdrop-filter:blur(20px) saturate(140%)}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-card,.skill-form-col){padding:24px 26px!important}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-button,.dy-btn){min-height:42px;border-radius:11px;font-weight:600}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-primary,.dy-btn.primary,.skill-primary){background:#1c5b40!important;border-color:#1c5b40!important;color:white!important;box-shadow:0 5px 14px rgba(27,91,60,.14)}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-video-download,.dy-video-download){min-height:46px;padding:10px 20px;font-size:14px}
#xhs-extract .xe-cover img{cursor:zoom-in}
#xhs-extract #xhs-extract-result{padding:5px!important}
#xhs-extract .xe-result-head{padding:22px 24px}
#xhs-extract .xe-workspace{gap:0}
#xhs-extract .xe-viewer{background:#eaf3eb;border:0;border-radius:16px}
#xhs-extract .xe-body{color:#35584a;line-height:2}
#douyin-extract .v3-meta,#douyin-extract .micro-label{display:none!important}
#douyin-extract .skill-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
#douyin-extract .skill-form-col>p{color:var(--extract-muted)!important;max-width:860px;line-height:1.8}
#douyin-extract .skill-form{display:grid!important;grid-template-columns:minmax(0,1fr) 150px!important;gap:10px 16px!important;margin-top:22px!important}
#douyin-extract .skill-form .form-section{grid-row:1/3}
#douyin-extract .skill-form .head{display:none}
#douyin-extract .field-wide{color:#285242;font-weight:600;font-size:13px}
#douyin-extract textarea{border-radius:12px!important;background:rgba(255,255,255,.84)!important;border:1px solid var(--extract-line)!important;min-height:76px!important;font-size:14px!important}
#douyin-extract .skill-primary{min-height:48px;margin-top:22px!important;border-radius:12px!important}
#douyin-extract .douyin-extract-hint,#douyin-extract .douyin-extract-notice{font-size:12px!important;color:var(--extract-muted)!important}
#douyin-extract .skill-output-col{padding:22px!important}
#douyin-extract .douyin-extract-result{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
#douyin-extract .douyin-extract-result>.dy-card:first-child{grid-column:2;grid-row:1}
#douyin-extract .douyin-extract-result>.dy-card:nth-child(2){grid-column:1;grid-row:1}
#douyin-extract .dy-card{border:1px solid var(--extract-line);border-radius:17px;background:rgba(255,255,255,.68);padding:22px!important;box-shadow:none}
#douyin-extract .dy-body{background:#f2f8f3;color:#35584a;line-height:1.95}
#douyin-extract .dy-shot{padding:0;cursor:zoom-in;border:1px solid var(--extract-line)}
#douyin-extract .dy-lightbox{width:min(94vw,960px);max-height:94dvh;padding:16px;border:1px solid #dce9df;border-radius:20px;color:var(--extract-ink);background:#f4faf4;box-shadow:0 25px 90px #17392755}
#douyin-extract .dy-lightbox:not([open]){display:none}
#douyin-extract .dy-lightbox::backdrop{background:#173927aa;backdrop-filter:blur(5px)}
#douyin-extract .dy-lightbox-toolbar,#douyin-extract .dy-lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}
#douyin-extract .dy-lightbox img{display:block;width:100%;height:65dvh;object-fit:contain;margin:14px 0;background:#e9f1e9;border-radius:12px}
#douyin-extract .dy-lightbox button{min-width:44px;min-height:44px;border:1px solid #cadfd0;border-radius:10px;background:#fff;color:#234e38;cursor:pointer}
#douyin-extract .dy-lightbox button:disabled{opacity:.45}
#douyin-extract .dy-lightbox p{margin:10px 0 0;font-size:12px;color:#607b6c;text-align:center}
@media(max-width:800px){body :is(#xhs-extract,#douyin-extract,#sticker-extract){padding:20px 14px 110px!important}#douyin-extract .douyin-extract-result{grid-template-columns:minmax(0,1fr)}#douyin-extract .douyin-extract-result>.dy-card:first-child,#douyin-extract .douyin-extract-result>.dy-card:nth-child(2){grid-column:auto;grid-row:auto}#douyin-extract .douyin-extract-result>.dy-card:first-child{order:2}#douyin-extract .douyin-extract-result>.dy-card:nth-child(2){order:1}}
@media(max-width:560px){body :is(#xhs-extract,#douyin-extract,#sticker-extract) h1{font-size:25px!important}body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-card,.skill-form-col){padding:18px!important}#douyin-extract .skill-form{display:flex!important;flex-direction:column}#douyin-extract .skill-primary{width:100%;margin:0!important}#douyin-extract .skill-output-col{padding:15px!important}#douyin-extract .dy-card{padding:16px!important}#douyin-extract .dy-lightbox img{height:60dvh}body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-video-download,.dy-video-download){width:100%}}
body #xhs-extract .xe-video-help{align-self:center;color:#607b6c;font-size:12px;line-height:1.6}
@media(max-width:560px){body #xhs-extract .xe-button{min-height:44px}}
/* Result-first editorial layout: one workspace, one media/document surface. */
body :is(#xhs-extract,#douyin-extract,#sticker-extract){max-width:1500px!important}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-card,.skill-form-col){padding:18px 22px!important}
#xhs-extract .xe-page-head{margin-bottom:16px}
#xhs-extract #xhs-extract-url{height:58px;min-height:58px;max-height:140px}
#xhs-extract .xe-input-card{margin-bottom:16px}
#douyin-extract .skill-form-col{display:grid;grid-template-columns:1fr;gap:0}
#douyin-extract .skill-form-col>h1{margin:0 0 7px!important}
#douyin-extract .skill-form-col>p{margin:0!important;font-size:13px}
#douyin-extract .skill-form{grid-template-columns:minmax(0,1fr) 145px!important;grid-template-rows:auto auto!important;gap:8px 12px!important;margin-top:17px!important}
#douyin-extract .skill-form .form-section{grid-row:1/3;display:grid;grid-template-columns:1fr;gap:6px}
#douyin-extract .field-wide{display:flex;flex-direction:column;gap:7px}
#douyin-extract textarea{height:58px!important;min-height:58px!important;max-height:140px;resize:vertical;padding:11px 14px!important}
#douyin-extract .skill-primary{margin:23px 0 0!important;min-height:58px!important;align-self:start}
#douyin-extract .douyin-extract-hint{margin:0!important;padding:0!important;border:0!important;background:transparent!important;line-height:1.6}
#douyin-extract .douyin-extract-hint summary{cursor:pointer;color:#44715a;text-decoration:underline;text-underline-offset:3px}
#douyin-extract .douyin-extract-hint p{margin:8px 0!important}
#douyin-extract .douyin-extract-notice{margin:0!important;text-align:right;white-space:nowrap;align-self:start}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-result-heading{display:flex;align-items:center;gap:10px;padding:4px 3px 16px;color:#1b4332}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-heading-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e4f3e9;color:#24784e;font-weight:700}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-result-heading strong{display:block;font-size:16px;line-height:1.3}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-result-heading small{display:block;color:#728c7c;font-size:11px;margin-top:3px}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-result-kind{margin-left:auto;padding:5px 10px;border:1px solid #d6e8da;border-radius:999px;font-size:11px;color:#557563;background:#f5faf6}
#xhs-extract #xhs-extract-result{padding:20px!important;overflow:visible}
#xhs-extract .xe-workspace{border:1px solid #e0ede3;border-radius:17px;background:rgba(255,255,255,.7);overflow:hidden;grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr)}
#xhs-extract .xe-workspace.xe-text-only{grid-template-columns:minmax(0,1fr)}
#xhs-extract .xe-media{padding:18px!important;border-right:0;background:#f7fbf7}
#xhs-extract .xe-document{padding:20px 24px!important;background:transparent;min-width:0}
#xhs-extract .xe-result-head{display:block!important;padding:0 0 16px!important;border:0!important}
#xhs-extract .xe-result-head h2{font-size:20px!important;line-height:1.5;margin:9px 0!important}
#xhs-extract .xe-document-head{margin:2px 0 10px}
#xhs-extract .xe-body{min-height:72px;max-height:none;overflow:visible;font-size:14px}
#xhs-extract .xe-tags{margin-top:12px}
#xhs-extract .xe-stats{gap:18px;margin:18px 0 0;padding:14px 0;border-top:1px solid #e3eee5}
#xhs-extract .xe-stats div{display:flex;gap:5px}
#xhs-extract .xe-doc-actions{padding-top:0;border:0;margin-top:auto}
#xhs-extract .xe-viewer{height:300px!important}
#xhs-extract .xe-thumbs{grid-template-columns:repeat(auto-fill,minmax(44px,54px))}
#douyin-extract .skill-output-col{padding:20px!important}
#douyin-extract .douyin-extract-result{gap:0!important;grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr)!important;align-items:stretch!important}
#douyin-extract .douyin-extract-result>.extract-result-heading{grid-column:1/-1;grid-row:1}
#douyin-extract .douyin-extract-result>.dy-details{grid-column:2!important;grid-row:2!important;order:initial!important;border-radius:0 17px 17px 0;border-left:0}
#douyin-extract .douyin-extract-result>.dy-media-card{grid-column:1!important;grid-row:2!important;order:initial!important;border-radius:17px 0 0 17px;background:#f7fbf7}
#douyin-extract .douyin-extract-result>.dy-details:only-of-type{grid-column:1/-1!important;border-radius:17px;border-left:1px solid var(--extract-line)}
#douyin-extract .dy-card{padding:20px!important;min-width:0}
#douyin-extract .dy-card h3{font-size:19px;line-height:1.5;color:#1b4332}
#douyin-extract .dy-media-head h3{font-size:13px}
#douyin-extract .dy-video{max-height:330px;background:#172c20}
#douyin-extract .dy-stats{margin:14px 0}
#douyin-extract .dy-body{min-height:72px;max-height:none;overflow:visible;background:transparent!important;padding:0!important;font-size:14px;line-height:1.9}
#douyin-extract .dy-actions{gap:8px}
#douyin-extract .dy-hint-inline{width:100%;font-size:11px;color:#718b7b}
@media(max-width:800px){#xhs-extract .xe-workspace,#douyin-extract .douyin-extract-result{grid-template-columns:minmax(0,1fr)!important}#xhs-extract .xe-media{border-bottom:1px solid #e4eee6}#douyin-extract .douyin-extract-result>.dy-media-card{grid-column:1!important;grid-row:2!important;border-radius:17px 17px 0 0}#douyin-extract .douyin-extract-result>.dy-details{grid-column:1!important;grid-row:3!important;border-left:1px solid var(--extract-line);border-top:0;border-radius:0 0 17px 17px}#douyin-extract .douyin-extract-result>.dy-details:only-of-type{grid-row:2!important;border:1px solid var(--extract-line);border-radius:17px}#xhs-extract .xe-viewer{height:300px!important}}
@media(max-width:560px){#xhs-extract #xhs-extract-result,#douyin-extract .skill-output-col{padding:14px!important}#xhs-extract .xe-document,#xhs-extract .xe-media,#douyin-extract .dy-card{padding:16px!important}#douyin-extract .skill-form{display:flex!important}#douyin-extract .skill-primary{margin:0!important;min-height:48px!important}#douyin-extract .douyin-extract-notice{white-space:normal;text-align:left}#xhs-extract .xe-result-head h2,#douyin-extract .dy-card h3{font-size:17px!important}#xhs-extract .xe-stats{gap:10px;justify-content:space-between;flex-wrap:nowrap}#xhs-extract .xe-stats div{flex-direction:column;gap:2px}}
#douyin-extract .dy-page-head{margin:0 0 16px}
#douyin-extract .dy-page-head h1{margin:0 0 7px!important}
#douyin-extract .dy-page-head p{font-size:13px;line-height:1.8;color:var(--extract-muted);margin:0}
#douyin-extract .skill-form{margin-top:0!important}
#douyin-extract .dy-body{border:0!important;box-shadow:none!important}
/* Link composer: a single tactile glass surface with a clear primary action. */
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-card,.skill-form-col){padding:23px 25px!important;background:linear-gradient(125deg,rgba(255,255,255,.78),rgba(231,249,237,.58) 72%,rgba(244,255,249,.8))!important;border:1px solid rgba(255,255,255,.94)!important;box-shadow:0 18px 48px rgba(29,81,53,.08),inset 0 1px 0 rgba(255,255,255,.95)!important}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-link-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 11px;color:#244c39;font-size:13px;font-weight:650;line-height:1.4}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-link-label span{font-size:11px;font-weight:500;color:#769283}
#douyin-extract .skill-form.extract-link-form{display:block!important;margin:0!important}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field{display:flex!important;flex-direction:row;align-items:center!important;gap:0!important;min-width:0;padding:8px!important;border:1px solid rgba(255,255,255,.95);border-radius:19px;background:linear-gradient(115deg,rgba(255,255,255,.86),rgba(239,251,243,.62) 60%,rgba(222,245,230,.48));box-shadow:inset 0 1px 2px rgba(255,255,255,.95),inset 0 -1px 0 rgba(149,191,161,.12),0 9px 25px rgba(45,104,67,.08);-webkit-backdrop-filter:blur(24px) saturate(155%);backdrop-filter:blur(24px) saturate(155%);transition:border-color .18s,box-shadow .18s}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field:focus-within{border-color:#7bb99a;box-shadow:0 0 0 3px rgba(76,160,112,.14),0 10px 28px rgba(45,104,67,.09),inset 0 1px rgba(255,255,255,.95)}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-link-icon{display:grid;place-items:center;align-self:center;flex:0 0 42px;width:42px;height:42px;margin:0 9px 0 3px;border:1px solid rgba(255,255,255,.88);border-radius:14px;color:#408260;background:linear-gradient(145deg,rgba(232,249,237,.94),rgba(207,237,216,.58));box-shadow:inset 0 1px 2px #fff,0 3px 9px rgba(34,100,61,.08)}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-link-icon svg{width:20px;height:20px}
body #xhs-extract #xhs-extract-url,body #douyin-extract #douyin-extract-url,body #sticker-extract #sticker-url{display:block!important;flex:1 1 auto;min-width:0;width:100%;height:68px!important;min-height:68px!important;max-height:180px;padding:20px 8px!important;margin:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#244a38!important;font:400 14px/1.8 inherit;line-height:1.8!important;resize:vertical;overflow-y:auto;word-break:break-word}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field textarea::placeholder{color:#8ba296;opacity:1}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field .extract-submit{flex:0 0 auto;align-self:center;min-width:132px;min-height:50px!important;height:50px!important;margin:0!important;padding:0 21px!important;border:1px solid rgba(255,255,255,.25)!important;border-radius:14px!important;background:linear-gradient(145deg,#287954,#15583b)!important;color:#fff!important;font-size:14px!important;font-weight:650;white-space:nowrap;box-shadow:inset 0 1px rgba(255,255,255,.2),0 6px 16px rgba(22,88,57,.20)!important}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field .extract-submit:hover:not(:disabled){filter:brightness(1.07)}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field .extract-submit:focus-visible{outline:3px solid #7cb994;outline-offset:3px}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-footer,.extract-form-foot){display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:12px 3px 0;color:#718b7c;font-size:11px;line-height:1.7}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-footer,.extract-form-foot) summary{color:#5a8068;text-decoration:none;cursor:pointer}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-footer,.extract-form-foot) summary:hover{text-decoration:underline;text-underline-offset:3px}
#douyin-extract .douyin-extract-notice{font-size:11px!important;white-space:normal;text-align:right}
@media(max-width:560px){body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-card,.skill-form-col){padding:18px!important}body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-link-label span{font-size:10px}body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field{display:grid!important;grid-template-columns:43px minmax(0,1fr);align-items:start!important;gap:0 7px!important;padding:9px!important;border-radius:17px}body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-link-icon{align-self:start;margin:3px 0 0;width:40px;height:40px}body #xhs-extract #xhs-extract-url,body #douyin-extract #douyin-extract-url,body #sticker-extract #sticker-url{height:78px!important;min-height:78px!important;padding:10px 3px!important;font-size:16px!important}body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field .extract-submit{grid-column:1/-1;width:100%!important;height:46px!important;min-height:46px!important;margin:5px 0 0!important}body :is(#xhs-extract,#douyin-extract,#sticker-extract) :is(.xe-input-footer,.extract-form-foot){flex-direction:row;flex-wrap:wrap;gap:4px 12px}body :is(#xhs-extract,#douyin-extract,#sticker-extract) .xe-input-footer details{max-width:100%}}
@media(prefers-reduced-motion:reduce){body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field{transition:none}}
@media(min-width:561px){body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field .extract-submit{width:132px!important;max-width:132px!important;flex:0 0 132px!important}}
/* Hide native scrollbar controls and the resize grip, while retaining scrolling. */
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field textarea{resize:none!important;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
body :is(#xhs-extract,#douyin-extract,#sticker-extract) .extract-glass-field textarea::-webkit-scrollbar{display:none;width:0;height:0}

/* 页面骨架不应再套一层边框；输入和结果卡片保留独立玻璃面。 */
body.atelier #douyin-extract .skill-shell{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}


/* --- home-ratio-fix.css --- */
/* 首页 PC 比例修正 · 2026-11-08 · v=20261108-ratio-1
 *
 * 问题：universe-home.css 里 .he-intro h1 用 7.5vw 跟整屏缩放，
 * 但文字容器被侧栏 276px、页面 padding 64px、栅格 gap、1.35:1 分栏、
 * intro padding 48px 连扣四刀。1280 CSS 视口下 h1 只剩 474px，
 * 「宇宙第一工作台」7 字按 96px 算要 625px，必然断成「宇宙第一工/作台」。
 * 1440 / 1920 也修不好，容器封顶 1600 后更是任何宽度都折行。
 *
 * 本层只覆盖尺寸、字号、间距，不动结构、文案、颜色、交互、路由。
 * 全部规则包在 min-width:801px 内，800px 以下完全沿用线上原有移动端样式。
 * 不支持容器查询的浏览器走 vw 兜底，不会白屏或回退到旧的大字号。
 * 回滚：删掉 index.html 里本文件的 link 一行即可，旧样式原封不动。
 */

@media (min-width:801px){

  /* 1. 页面留白统一到 24 / 32 / 40 / 64 节奏，容器对齐全站 --shell-max:1280px */
  body.atelier #home.home-v2{
    padding:32px 32px 64px !important;
  }
  body.atelier #home.home-v2 .home-editorial{
    max-width:1280px;
    margin-inline:auto;
  }

  /* 2. 主栅格：左栏多拿一点，gap 跟视口走，去掉 520px 硬撑 */
  body.atelier #home.home-v2 .he-main{
    grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
    gap:clamp(24px,2.5vw,40px);
    min-height:clamp(360px,52vh,520px);
  }
  body.atelier #home.home-v2 .he-intro{
    padding:36px 24px;
  }

  /* 3. 标题：vw 兜底先写，容器查询支持的浏览器再覆盖成 cqw */
  body.atelier #home.home-v2 .he-intro h1{
    font-size:clamp(56px,5vw,96px) !important;
    line-height:1.08 !important;
    white-space:nowrap;
  }
  body.atelier #home.home-v2 .he-intro p{
    font-size:clamp(18px,1.4vw,24px);
    margin-bottom:30px;
  }

  /* 4. 右侧装饰字 11vw 会撑破卡片，收进 96px 上限 */
  body.atelier #home.home-v2 .he-feature{
    min-height:200px;
    padding:26px 30px;
  }
  body.atelier #home.home-v2 .he-feature>b{
    font-size:clamp(72px,7.5vw,96px) !important;
    line-height:1;
  }
  body.atelier #home.home-v2 .he-grid{ gap:24px; }
  body.atelier #home.home-v2 .he-tool{
    min-height:200px;
    padding:24px;
  }
  body.atelier #home.home-v2 .he-footer{ margin:30px 24px; }

  /* 5. 正确解法：字号锚定容器而不是整屏，跨宽度占栏宽恒定约 88% */
  @supports (container-type:inline-size){
    body.atelier #home.home-v2 .he-intro{ container-type:inline-size; }
    body.atelier #home.home-v2 .he-intro h1{
      font-size:clamp(56px,13.5cqw,112px) !important;
    }
    body.atelier #home.home-v2 .he-feature{ container-type:inline-size; }
    body.atelier #home.home-v2 .he-feature>b{
      font-size:clamp(72px,26cqw,96px) !important;
    }
  }
}

/* 6. 1101–1400 是最挤区间：侧栏仍占 248px，收紧 gap 和 padding，不改列数 */
@media (min-width:1101px) and (max-width:1400px){
  body.atelier #home.home-v2 .he-main{ gap:24px; }
  body.atelier #home.home-v2 .he-intro{ padding:28px 20px; }
  body.atelier #home.home-v2 .he-feature{ padding:24px 26px; }
}

/* 7. 801–1100：侧栏已收成 78px 图标栏但视口偏窄，字号单独降一档防溢出。
   这里刻意不把 .he-main 转成单列 —— 侧栏收窄后内容区反而变宽，
   原方案「把 800 断点上提到 1100」会让这段无谓地纵向堆叠。 */
@media (min-width:801px) and (max-width:1100px){
  body.atelier #home.home-v2 .he-intro h1{
    font-size:clamp(38px,5vw,56px) !important;
  }
  body.atelier #home.home-v2 .he-feature>b{
    font-size:56px !important;
  }
}


/* --- home-typography.css --- */
/* Home typography: editorial display title with a calm, readable UI hierarchy. */
body.atelier #home.home-v2 .he-kicker,
body.atelier #home.home-v2 .he-intro p,
body.atelier #home.home-v2 .he-feature strong,
body.atelier #home.home-v2 .he-tool strong,
body.atelier #home.home-v2 .he-feature small,
body.atelier #home.home-v2 .he-tool small,
body.atelier #home.home-v2 .he-footer {
  font-family: "UW Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.atelier #home.home-v2 .he-kicker {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
}

body.atelier #home.home-v2 .he-intro h1 {
  font-family: "UW Serif SC", "Songti SC", "Noto Serif CJK SC", serif !important;
  font-size: 56px !important;
  line-height: 1.16 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  margin: 30px 0 18px !important;
}

body.atelier #home.home-v2 .he-intro p {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 28px;
}

body.atelier #home.home-v2 .he-feature strong,
body.atelier #home.home-v2 .he-tool strong {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
}

body.atelier #home.home-v2 .he-feature small,
body.atelier #home.home-v2 .he-tool small {
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}

body.atelier #home.home-v2 .he-footer {
  font-size: 11px;
  line-height: 1.5;
}

@media (min-width: 801px) and (max-width: 1100px) {
  body.atelier #home.home-v2 .he-intro h1 { font-size: 42px !important; }
}

@media (max-width: 800px) {
  body.atelier #home.home-v2 .he-intro h1 {
    font-family: "UW Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-size: 32px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
    margin: 22px 0 14px !important;
  }

  body.atelier #home.home-v2 .he-intro p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  body.atelier #home.home-v2 .he-feature strong,
  body.atelier #home.home-v2 .he-tool strong {
    font-size: 16px;
    line-height: 1.4;
  }

  body.atelier #home.home-v2 .he-feature small,
  body.atelier #home.home-v2 .he-tool small {
    font-size: 12px;
    line-height: 1.55;
  }
}


/* --- mobile-fixes.css --- */
/* 移动端修复覆盖层 · 2026-11-09
 *
 * 只作用于 ≤760px，桌面端零影响。集中处理一批“桌面尺寸直接带到手机”的问题：
 * 输入框字号、触控热区、内嵌页高度、工具条吸顶、长文容器。
 *
 * 全部用 !important 覆盖原有单条声明与内联 style。回滚方式：删掉 index.html
 * 里引用本文件的那一行即可，不涉及其他文件。
 */

@media (max-width: 760px) {
  /* The tab strip itself must stay transparent; only the floating shell is glass. */
  body.atelier .v3-topbar .app-tabs,
  body.atelier .v3-topbar .app-tabs::before,
  body.atelier .v3-topbar .app-tabs::after {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my),
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)::before,
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)::after {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* 公众号排版保留在“更多”中，移动底部主导航只放高频工作台入口。 */
  body.atelier .v3-topbar .app-tabs a[data-view="mp-format"] {
    display: none !important;
  }


  /* ---------- 底栏 tab ----------
     上一版把五个 tab 几何全部重写、还恢复了「创作」的常驻绿块，结果
     满屏大绿块，不是用户要的。用户要的是回到之前的样子：
     浅绿底只出现在「当前页」这一个 tab 上，「创作」保持描边+透明底
     （community.css 注入后用户一直在看的状态），其他 tab 透明。
     这里只做一件事：把「我的」的几何对齐其他 tab——community.css 给
     a[data-shell-primary] / .shell-mobile-more 定了 25px 圆角 / 54px 高 /
     无描边，但选择器漏了 .shell-mobile-my，导致「我的」之前是
     14px 圆角带描边的异类。追加 [data-view] 抬特异性（静态 link 排在
     运行时注入样式之后，同等特异性必输）。 */
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)[data-view] {
    margin: 0 3px !important;
  }
  body.atelier .v3-topbar .app-tabs .shell-mobile-my[data-view] {
    padding: 4px 2px !important;
    min-width: 0 !important;
    min-height: 54px !important;
    height: auto !important;
    flex: 1 1 0 !important;
    border: 0 !important;
    border-radius: 25px !important;
    box-sizing: border-box !important;
  }
  /* 当前页激活态：干净的薄荷玻璃药丸，铺满整个 tab。
     之前用的是半透明模糊伪元素药丸（在白底上糊成发灰的「鼓包」），
     又叠了 community.css 运行时注入的径向渐变，两层绿叠一起显脏。
     这里改成半透薄荷 + 高光内阴影 + 轻投影，像浮在玻璃栏上的实色药丸，
     符合「靠颜色而非大色块强调」的基调，也去掉了视觉噪音。
     特异性刻意高于 community.css 的 .active 规则（带 [data-view]），
     否则运行时注入的径向渐变会盖掉它（静态 link 排在注入样式之后）。 */
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)[data-view].active {
    background: radial-gradient(circle at 50% 32%, rgba(224, 255, 235, .82), rgba(174, 230, 194, .24) 48%, transparent 76%) !important;
    color: #155a3c !important;
    font-weight: 600 !important;
    border-radius: 19px !important;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .62), 0 2px 9px rgba(39, 112, 71, .18) !important;
  }
  /* 彻底关掉模糊伪元素药丸，避免双层绿叠加 */
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)[data-view].active::before {
    display: none !important;
  }
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)[data-view].active > :is(.tab-icon, span, .nav-short) {
    color: #155a3c !important;
    position: relative;
    z-index: 1;
  }
  /* 图标尺寸统一 21px（community.css 给了 a/more，漏了 my 的 20px） */
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)[data-view] .tab-icon {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 1.35 !important;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.35));
    transition: transform .2s ease, filter .2s ease, color .2s ease;
  }
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)[data-view]:active .tab-icon,
  body.atelier .v3-topbar .app-tabs :is(a[data-shell-primary], .shell-mobile-more, .shell-mobile-my)[data-view].active .tab-icon {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 2px 3px rgba(23, 91, 58, .22));
  }

  /* 「创作」的常驻描边环撤掉：当前页已有玻璃药丸标识，环是一层多余的
     视觉噪音，圆角 25px 拉成椭圆环尤其难看（用户实测截图坐实） */
  body.atelier .v3-topbar .app-tabs .shell-mobile-more[data-view] {
    border: 0 !important;
  }

  /* 底栏液态玻璃 · 悬浮胶囊式（iOS 26 liquid glass 形态）。
     教训：上一版通栏贴底 + 0.92 不透明度，blur 被糊死且白墙贴白玻璃看不出效果。
     玻璃要「被看见」需要两个条件：低透明度让内容透进来 + 悬浮形态（圆角、
     四周留缝、投影）让玻璃有体积感。blur(30px) saturate(180%) 会把底下滚动的
     内容搅成柔和色块而不是渗色，安全区由 bottom 偏移自然让开，不再需要实色条。
     选择器加 :has(.app-tabs) 抬特异性压过运行时注入的 community.css。 */
  body.atelier .app-shell > .v3-topbar:has(.app-tabs),
  body.atelier .v3-topbar.shell-nav:has(.app-tabs) {
    /* 不用 left+right 双约束也不信 100%：实测某个祖先（疑似带 transform/
       backdrop-filter）把 fixed 包含块变成了约 375px 宽的容器，两种写法
       都合成出「左 10 右 25」的不对称。改用中心点定位：left:50% + 自己
       translateX 回中 + 100vw 显式宽度，对称性由几何保证，与包含块无关。 */
    left: 50% !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: calc(100vw - 20px) !important;
    transform: translateX(-50%) !important;
    height: 62px !important;
    padding: 5px 8px !important;
    border-radius: 25px !important;
    border: 1px solid rgba(255, 255, 255, .52) !important;
    /* 白度从 .62/.5 降到 .45/.34：白色一高，浅绿底上就是一块实心白，
       blur 再强也读不出玻璃。降下来之后底下滚过的内容才透得出「霜」。 */
    background: transparent !important;
    -webkit-backdrop-filter: blur(26px) saturate(190%) !important;
    backdrop-filter: blur(26px) saturate(190%) !important;
    box-shadow: 0 18px 42px -14px rgba(24, 54, 41, .42), 0 4px 12px rgba(24, 54, 41, .10), inset 0 1px 1px rgba(255, 255, 255, .72), inset 0 -1px 1px rgba(66, 112, 88, .08) !important;
  }
  body.atelier .app-shell > .v3-topbar:has(.app-tabs)::before,
  body.atelier .v3-topbar.shell-nav:has(.app-tabs)::before {
    content: "";
    position: absolute;
    inset: 1px 2px auto;
    height: 42%;
    border-radius: 24px 24px 45% 45%;
    background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0));
    pointer-events: none;
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body.atelier .app-shell > .v3-topbar:has(.app-tabs),
    body.atelier .v3-topbar.shell-nav:has(.app-tabs) {
      background: transparent !important;
    }
  }

  /* ---------- 创作中心（#more）图标化入口 ----------
     原来 18 个入口是纯文字行，旗舰工具和「反馈与群聊」视觉权重一样。
     复用 routes.js 同款线性图标 + 淡绿底座，让每个工具有「脸」。
     图标 HTML 直接写在 index.html 里（.more-ico + .more-link-text）。 */
  body.atelier #more .more-link-grid > a,
  body.atelier #more .more-link-grid > button {
    display: flex !important;
    /* 竖排全居中：图标在上居中，标题/说明跟居住中——
       此前 text-align:left + flex:1 文本块撑满整行，读起来就是「图标居中文字靠左」的错位构图 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  body.atelier #more .more-ico {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, rgba(27, 122, 88, .13), rgba(27, 122, 88, .05));
    border: 1px solid rgba(27, 122, 88, .16);
    color: #1B7A58;
  }
  body.atelier #more .more-ico svg {
    width: 20px;
    height: 20px;
    display: block;
  }
  body.atelier #more .more-link-text {
    flex: none;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  body.atelier #more .more-link-text strong {
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  body.atelier #more .more-link-text small {
    font-size: 11.5px;
    line-height: 1.4;
    opacity: .72;
  }
  /* 创作工具组是旗舰位：卡片加高、底座加大一号，和次级工具拉开层级 */
  body.atelier #more section[aria-labelledby="more-creation-title"] .more-link-grid > a {
    min-height: 88px !important;
  }
  body.atelier #more section[aria-labelledby="more-creation-title"] .more-ico {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  /* 找灵感组与底栏「找灵感」tab 重复（那边是四张玻璃卡弹层），手机端不再平铺 */
  body.atelier #more section[aria-labelledby="more-inspiration-title"] {
    display: none !important;
  }
  /* 页面大标题与分组标题保持靠左（用户 11-09 拍板）：
     「创作」「创作工具」「更多工具」跟随 mobile-center.css 的左对齐基调，
     只有卡片内部（图标+标题+说明）是竖排居中构图。曾经改成居中后被用户要求改回。 */

  /* ---------- 找灵感底部弹层（shell.js 动态插入 .inspiration-sheet） ----------
     底栏「找灵感」点击后不再直跳热点广场，先弹四张液态玻璃卡片竖排。 */
  .inspiration-sheet {
    inset: auto 12px calc(80px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    background: linear-gradient(150deg, rgba(255, 255, 255, .84), rgba(233, 247, 238, .72));
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    backdrop-filter: blur(26px) saturate(170%);
    box-shadow: 0 18px 50px rgba(31, 72, 49, .22), inset 0 1px 2px rgba(255, 255, 255, .9);
  }
  .inspiration-sheet::backdrop {
    background: rgba(20, 40, 30, .3);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
  .insp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .insp-head h2 {
    font-size: 19px;
    font-weight: 600;
    color: #1f5137;
  }
  .insp-head p {
    margin-top: 3px;
    font-size: 12px;
    color: #7d9586;
  }
  .insp-close {
    flex: none;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 81, 55, .08);
    color: #46604f;
    font-size: 14px;
    cursor: pointer;
  }
  .insp-cards {
    display: grid;
    gap: 10px;
  }
  .insp-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 18px;
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 8px 24px -14px rgba(31, 72, 49, .35), inset 0 1px 0 rgba(255, 255, 255, .9);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
  }
  .insp-card:active {
    transform: scale(.98);
    background: rgba(221, 242, 224, .9);
  }
  .insp-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #ddf2e0;
    color: #1f5137;
  }
  .insp-icon svg {
    width: 22px;
    height: 22px;
  }
  .insp-text {
    flex: 1;
    min-width: 0;
  }
  .insp-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f3a2b;
  }
  .insp-text small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #7d9586;
  }
  .insp-arrow {
    flex: none;
    color: #a9c3b1;
    font-size: 18px;
  }

  /* ---------- 内嵌页高度 ----------
     原来按 calc(100dvh - 32px) 算，但手机端底部导航是 fixed、占 68px，
     iframe 底部会被压住 36px，页面自己的底部操作条点不到。 */
  :is(#topic-library-frame, #content-factory-frame, #video-factory-frame, #bookshelf-frame) {
    height: calc(100dvh - 100px) !important;
  }

  /* ---------- 榜单工具条吸顶 ----------
     三个榜单翻过十几条后搜索/平台/赛道/排序全部滚出屏幕，改条件必须滑回顶部。 */
  :is(#hotspots .hs-bar, #lowfans .lf-bar, #image-board .ib-bar) {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 252, 248, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 18px -16px rgba(31, 81, 55, .55);
  }

  /* ---------- 输入框字号（全站通配基线） ----------
     低于 16px 时 iOS 和微信 WKWebView 会在聚焦瞬间把整页放大到 1.3 倍以上，
     之后所有按钮位置偏移，用户会以为点错了。
     之前是「逐视图枚举」写法，漏掉 #pricing 等页面。改成全站通配：
     ≤760px 下所有输入框 / 文本域一律 16px。只改字号，不动行高与内边距。 */
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), textarea) {
    font-size: 16px !important;
  }

  /* 上面全站规则不带 ID，会被一批「带 ID + 14px !important」的旧规则压住
     （settings-mint.css 的钱包/admin/API 弹窗、viral-remix/douyin-extract/
     tie-tu-studio/review-studio 的文本域，实测每页固定 16 个输入框漏网）。
     这里用同样带 ID、特异性更高的镜像规则把它们逐一压回 16px。
     (2,4,2) > 这些旧规则里最高的 (2,1,2)（tie-tu 双 ID）。 */
  body.atelier :is(#wallet-modal, #admin-users-modal, #api-settings-modal,
                   #viral-remix, #douyin-extract, #hit-detector,
                   #tie-tu #tie-form, #tie-tu .creator-conversation)
    :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), textarea) {
    font-size: 16px !important;
  }

  /* ---------- 触控热区（全站通配基线 + 具名补齐） ----------
     移动端按钮低于 44px 时手指命中率低、相邻易误触。
     ① 全局兜底：任何 button / 可点控件至少 44px 高——这样连「无 class 的
        对话框按钮」也能被兜住（实测每页都有一批 40~42px 的无 class 小按钮漏网）。
     ② 排除灵感弹层的圆形关闭键 .insp-close（设计上就是 32px 小圆点，
        强行 44px 会变椭圆）；正文里的内联 <a> 不强制，避免撑破段落排版。 */
  :is(button:not(.insp-close), [role="button"], input[type="button"], input[type="submit"]) {
    min-height: 44px !important;
  }

  /* 以下具名按钮原本只有 26~43px，除高度外还需 inline-flex 垂直居中
     （否则文字贴顶）；同时补齐之前漏掉的页面选择器。 */
  :is(#lowfans .lf-act,
      #lowfans [data-track],
      #image-board [data-track],
      #hotspots .hs-card-btn,
      #hotspots .hs-chip,
      #hotspots .hs-platform-open,
      #article-visual .av-tab,
      #viral-remix .skill-primary,
      #viral-remix .remix-history-open,
      #lowfans .vi-membership-button,
      #lowfans .lf-export,
      #xiaohongshu .primary-action,
      #xiaohongshu .secondary-action,
      /* 价格页返回键是 <a class="pricing-back">，但价格页是独立页面，
         不加载本文件——真正的修复在 pricing-packages.css 里（移动端媒体查询），
         这里保留裸类名以防该页未来并入主站。 */
      .pricing-back,
      .cancel-generation,
      .workbench-stage-actions button,
      .conversation-output-actions button,
      .new-chat-button,
      #my .my-account > a,
      #my .my-account > button,
      #xhs-extract .xe-button,
      #douyin-extract .xe-button,
      #sticker-extract .xe-button) {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  /* design-parity.css:1372-1377 把创作页主按钮定成 34px 薄片（桌面设计稿意图：
     「不是大绿块」），其中带 ID 的变体特异性 (1,3,1) 压过了上面的具名清单
     (1,1,0)，实测 #xiaohongshu 主按钮仍是 34px。移动端 44px 是触控底线，
     这里用更高特异性的镜像选择器 (1,3,2) 压回；桌面端不受影响。 */
  body.atelier :is(#xiaohongshu, #tie-tu, #hit-detector) form.skill-form .primary-action {
    min-height: 44px !important;
  }

  /* ---------- 正圆 / 方形图标按钮防拉椭圆 ----------
     上面的 44px 通配兜底只撑高度不撑宽度，32~38px 的圆形/方形小图标按钮
     （二维码弹窗关闭键、钱包关闭键等）在移动端全被拉成 32x44 的椭圆。
     这里让这批按钮宽度同步跟到 44px，保持正圆/正方，同时触控热区反而更大。 */
  :is(.group-qr-close, .insp-close, .icon-command, .icon-action, .cr-icon, .cr-dialog-close,
      .admin-users-close, .wallet-close, #api-settings-close, #admin-users-close) {
    min-width: 44px !important;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
  }

  /* 榜单 chip 横向排列，加高后要保住横向滑动的手感 */
  :is(#lowfans [data-track], #image-board [data-track], #hotspots .hs-chip) {
    white-space: nowrap;
  }

  /* ---------- 长文容器 ----------
     手机屏幕本身就不高，框内再套一层滚动会导致“滚错了在看哪一段”。 */
  .deai-text {
    max-height: none !important;
    overflow: visible !important;
  }
  .deai-result-grid {
    grid-template-columns: 1fr !important;
  }

  /* ---------- 榜单失败 / 空态里的重试按钮（lowfans.js 新增） ---------- */
  .lf-retry {
    margin-top: 12px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #c8dece;
    border-radius: 10px;
    background: #ffffff;
    color: #2f7f60;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
  }

  /* 追加加载中：按钮要有可见的“已按下”状态，否则会被连点 */
  .lf-more[disabled] {
    opacity: .65;
    cursor: default;
  }

  /* ---------- 「我的」账号操作行 ----------
     手机端顶部账户区被整块隐藏（.right 在 760px 以下 display:none），
     #logout-button 又在设置弹层里，导致登录后无法退出或换号。
     这里放一条常驻行，点击复用原来的退出逻辑。 */
  #my .my-session {
    padding: 0 !important;
    overflow: hidden;
  }
  #my .my-session button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    color: #46604f;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
  }
  #my .my-session button span {
    flex: 1;
  }
  #my .my-session button svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: #46604f;
  }
  #my .my-session button .chev {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: #b4c5b9;
  }
}

/* 桌面端不显示这条：桌面有设置弹层，不需要重复入口 */
#my .my-session {
  display: none;
}

/* 「账号与管理」没有任何可见按钮时整块收起。
   用 :has() 是因为那些按钮由 shell.js 克隆生成、hidden 由 MutationObserver
   异步同步；JS 在按钮就绪前判断会误判成空，把站长权限一起藏掉。
   :has() 不支持的旧内核会退回"显示空卡片"，不会丢内容。 */
#my .my-module:has(.my-account-actions):not(:has(.my-account-actions button:not([hidden]))) {
  display: none !important;
}

@media (max-width: 760px) {
  #my .my-session {
    display: block;
  }
  #my .my-session[hidden] {
    display: none !important;
  }
}

/* 找灵感弹层只在手机端存在；桌面端强制隐藏（dialog[open] 也压得住） */
@media (min-width: 761px) {
  .inspiration-sheet {
    display: none !important;
  }
}

/* ---------- 创作中心图标底座（全端基础样式） ----------
   #more 的入口 HTML 现在带 .more-ico 图标 + .more-link-text 正文包裹。
   这里给桌面端兜底尺寸（SVG 不给宽高会按默认 300x150 渲染撑爆卡片），
   手机端的放大与配色见上方 ≤760px 块。 */
.more-link-grid .more-ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, rgba(27, 122, 88, .12), rgba(27, 122, 88, .04));
  border: 1px solid rgba(27, 122, 88, .15);
  color: #1B7A58;
}
.more-link-grid .more-ico svg {
  width: 17px;
  height: 17px;
  display: block;
}
.more-link-grid .more-link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.more-link-grid .more-link-text strong {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.more-link-grid .more-link-text small {
  font-size: 12px;
  line-height: 1.4;
  opacity: .72;
}
/* 只作用于创作中心 #more：「我的」页的 .my-account-actions 由设置菜单克隆
   填充，结构不受控，flex 化可能打乱它的布局。 */
#more .more-link-grid > a,
#more .more-link-grid > button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}


/* --- home-group-banner.css --- */
/* 首页加群横幅 + 二维码弹窗 · 2026-11-12 */

.he-group-banner{display:flex;align-items:center;gap:14px;margin:20px 0 0;padding:14px 16px 14px 14px;border-radius:18px;background:rgba(255,255,255,.72);border:1px solid rgba(23,61,48,.1);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);}
.he-group-badge{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#205c45,#2f7d5c);display:flex;align-items:center;justify-content:center;font-size:21px;flex:none;}
.he-group-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;}
.he-group-copy strong{font-size:15px;color:#173d30;letter-spacing:.01em;}
.he-group-copy small{font-size:12px;color:#5c7268;letter-spacing:.02em;}
.he-group-btn{flex:none;border:0;border-radius:999px;background:#205c45;color:#fff;font-size:13px;font-weight:600;padding:10px 18px;cursor:pointer;letter-spacing:.02em;transition:transform .15s ease,box-shadow .15s ease;}
.he-group-btn:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(32,92,69,.25);}
.he-group-btn:active{transform:translateY(0);}

.group-qr-dialog{border:0;border-radius:20px;padding:0;background:#0d0d0d;max-width:min(380px,88vw);width:100%;overflow:hidden;box-shadow:0 30px 80px rgba(10,30,20,.45);}
.group-qr-dialog::backdrop{background:rgba(12,26,20,.6);backdrop-filter:blur(4px);}
.group-qr-dialog img{display:block;width:100%;height:auto;}
.group-qr-close{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s ease;}
.group-qr-close:hover{background:rgba(255,255,255,.3);}
.group-qr-foot{padding:12px 18px 14px;text-align:center;font-size:13px;color:#e8efe9;background:#0d0d0d;margin:0;}

@media (max-width:560px){
  .he-group-banner{flex-wrap:wrap;padding:14px;}
  .he-group-copy{flex:1 1 60%;}
  .he-group-btn{flex:1 1 100%;padding:11px 18px;}
}

/* 白底二维码（核心股东群码 / 初创合伙人微信码）上关闭按钮要深底才可见 */
:is(.founder-qr-dialog,#group-qr-dialog) .group-qr-close{background:rgba(13,13,13,.55);border:1px solid rgba(255,255,255,.28);z-index:2;}
:is(.founder-qr-dialog,#group-qr-dialog) .group-qr-close:hover{background:rgba(13,13,13,.8);}

/* --- creator-chat.css --- */
.creator-conversation { width: 100%; min-width: 0; margin: 20px 0; }
.creator-conversation label { display: grid; gap: 8px; }
.creator-conversation textarea { width: 100%; box-sizing: border-box; min-height: 88px; resize: vertical; }
.creator-chat-history { max-height: 320px; overflow: auto; overflow-wrap: anywhere; }
.creator-chat-history p { white-space: pre-wrap; font-size: 14px; line-height: 1.7; margin: 12px 0; }
.creator-conversation progress { display: block; width: 100%; height: 4px; margin: 12px 0; }
.creator-conversation [hidden] { display: none !important; }
.creator-conversation > button { margin: 8px 8px 0 0; width: auto; min-width: 88px; }
.creator-chat-output { text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.creator-chat-output p { white-space: pre-wrap; line-height: 1.8; }
.creator-chat-output a { display: inline-block; margin: 8px; }
.creator-chat-output button { margin: 8px 8px 0 0; }
.creator-chat-output article { max-width: 680px; }
.creator-chat-output img { max-height: 480px; object-fit: contain; }
.creator-form-mode > summary { cursor: pointer; padding: 12px 0; font-size: 14px; }


/* --- tie-tu-studio.css --- */
/* 贴图号：轻透玻璃工作面，仅作用于本页。 */
body.atelier #tie-tu.tie-studio { --tie-ink:#203c32; --tie-muted:#657c70; --tie-line:rgba(91,139,111,.2); }
body.atelier #tie-tu .skill-shell { align-items:start; gap:18px; background:transparent!important; border:0!important; box-shadow:none!important; }
body.atelier #tie-tu .skill-form-col, body.atelier #tie-tu .skill-output-col { min-width:0; border:1px solid rgba(255,255,255,.76)!important; border-radius:24px!important; background:linear-gradient(140deg,rgba(255,255,255,.78),rgba(239,250,242,.48))!important; box-shadow:0 16px 44px rgba(34,87,59,.09),inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(120,173,142,.12)!important; -webkit-backdrop-filter:blur(28px) saturate(145%); backdrop-filter:blur(28px) saturate(145%); }
body.atelier #tie-tu .skill-form-col { padding:28px!important; }
body.atelier #tie-tu .skill-output-col { padding:30px!important; height:auto!important; max-height:none; position:static; overflow:visible; }
body.atelier #tie-tu .skill-form-col > .micro-label, body.atelier #tie-tu .skill-form-col > h1, body.atelier #tie-tu .skill-form-col > p { display:block; }
body.atelier #tie-tu .skill-form-col h1 { color:var(--tie-ink); font:600 24px/1.25 'Microsoft YaHei',sans-serif; letter-spacing:-.03em; margin:15px 0 10px; }
body.atelier #tie-tu .skill-form-col > p { color:var(--tie-muted); line-height:1.7; }
body.atelier #tie-tu .micro-label, body.atelier #tie-tu .v3-meta { color:#678375; letter-spacing:.06em; }
body.atelier #tie-tu .creator-conversation { margin:22px 0 8px; }
body.atelier #tie-tu .creator-conversation textarea { min-height:128px; background:rgba(255,255,255,.65); border:1px solid rgba(120,160,136,.28); border-radius:16px; padding:14px; line-height:1.6; box-shadow:inset 0 1px 3px rgba(34,70,45,.04); }
body.atelier #tie-tu .creator-conversation textarea:focus-visible, body.atelier #tie-tu .style-chip:focus-visible { outline:3px solid #68aa83; outline-offset:2px; }
body.atelier #tie-tu .creator-conversation .primary-action { background:linear-gradient(145deg,#43886a,#276f50)!important; color:white!important; border:1px solid rgba(255,255,255,.35)!important; border-radius:12px!important; box-shadow:0 6px 15px rgba(35,111,75,.2),inset 0 1px rgba(255,255,255,.3)!important; }
body.atelier #tie-tu .creator-form-mode { border-top:1px solid var(--tie-line); margin-top:18px; }
body.atelier #tie-tu .creator-form-mode summary { color:#54705e; font-size:13px; }
body.atelier #tie-tu .skill-empty { display:block!important; width:100%; min-width:0; padding:0!important; background:transparent; border:0; box-shadow:none; text-align:left!important; }
body.atelier #tie-tu .skill-empty[hidden] { display:none!important; }
body.atelier #tie-tu .skill-empty::before { display:none!important; }
body.atelier #tie-tu .empty-head .tag { display:inline-flex; align-items:center; gap:8px; color:#658778; font-size:12px; letter-spacing:.04em; }
body.atelier #tie-tu .tie-status-dot { width:5px; height:5px; border-radius:50%; background:#88bda1; }
body.atelier #tie-tu .empty-head h2 { color:var(--tie-ink); font:600 24px/1.3 'Microsoft YaHei',sans-serif!important; letter-spacing:-.025em; margin:15px 0 8px!important; }
body.atelier #tie-tu .empty-head p { color:var(--tie-muted); line-height:1.7; }
body.atelier #tie-tu .skill-output-col .empty-grid { display:grid; grid-template-columns:minmax(0,1fr)!important; gap:18px; margin-top:26px; width:100%; }
body.atelier #tie-tu .empty-preview { border:0; border-radius:18px; background:transparent; box-shadow:none; padding:0; }
body.atelier #tie-tu .empty-preview-tietu { padding:18px; background:linear-gradient(145deg,rgba(232,247,236,.56),rgba(255,255,255,.32)); border:1px solid rgba(255,255,255,.8); box-shadow:inset 0 1px 0 white,0 6px 24px rgba(67,118,84,.05); }
body.atelier #tie-tu .empty-preview header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
body.atelier #tie-tu .ep-tag, body.atelier #tie-tu .ep-meta { color:#688577; font-size:12px; font-style:normal; }
body.atelier #tie-tu .tietu-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
body.atelier #tie-tu .empty-preview-tietu .tietu-card { position:relative; aspect-ratio:3 / 4; max-height:260px; min-height:0; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; padding:16px; border:1px solid rgba(255,255,255,.84); border-radius:15px; overflow:hidden; background:linear-gradient(150deg,rgba(255,255,255,.78),rgba(226,242,233,.4))!important; box-shadow:0 8px 22px rgba(52,98,68,.07),inset 0 1px rgba(255,255,255,.95); color:#719485; }
body.atelier #tie-tu .empty-preview-tietu .tietu-card:nth-child(2) { background:linear-gradient(145deg,rgba(244,255,248,.8),rgba(209,235,219,.42))!important; }
body.atelier #tie-tu .empty-preview-tietu .tietu-card:nth-child(3) { background:linear-gradient(145deg,rgba(255,255,255,.7),rgba(232,241,232,.48))!important; }
body.atelier #tie-tu .empty-preview-tietu .tietu-card .tc-n { position:static; font-size:11px; font-weight:600; color:#7b9a88; }
body.atelier #tie-tu .tie-card-icon { align-self:center; font-size:32px; font-weight:300; color:rgba(105,158,126,.52); }
body.atelier #tie-tu .tie-card-foot { font-size:12px; color:#779588; }
body.atelier #tie-tu .style-chip-row { display:flex; flex-wrap:wrap; gap:8px; }
body.atelier #tie-tu .style-chip { border:1px solid rgba(130,170,143,.27); border-radius:999px; background:rgba(255,255,255,.58); color:#496b57; padding:7px 12px; font-size:12px; box-shadow:inset 0 1px rgba(255,255,255,.9); transition:background .18s,transform .18s; }
body.atelier #tie-tu .style-chip:hover { background:rgba(255,255,255,.94); transform:translateY(-1px); }
body.atelier #tie-tu .empty-foot { margin-top:22px; padding-top:16px; border-top:1px solid var(--tie-line); color:#638070; background:transparent!important; }
body.atelier #tie-tu .empty-foot small { color:#8ca798; }
body.atelier #tie-tu .tie-result .creator-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
body.atelier #tie-tu .tie-result .creator-output-card { border:1px solid rgba(255,255,255,.85); border-radius:16px; overflow:hidden; background:rgba(255,255,255,.55); box-shadow:0 8px 24px rgba(52,98,68,.07); }
body.atelier #tie-tu .tie-result .card-image-slot { background:rgba(226,245,232,.6); aspect-ratio:3 / 4; }
body.atelier #tie-tu .tie-result .card-image-slot img { width:100%; height:100%; object-fit:contain; }
body.atelier #tie-tu .tie-result .creator-card-copy { padding:14px; }
@media(max-width:768px) { body.atelier #tie-tu .skill-form-col,body.atelier #tie-tu .skill-output-col { padding:20px!important; } body.atelier #tie-tu .empty-preview-tietu { padding:12px; } body.atelier #tie-tu .tietu-board { gap:7px; } body.atelier #tie-tu .empty-preview-tietu .tietu-card { padding:10px; border-radius:11px; } body.atelier #tie-tu .tie-card-icon { font-size:23px; } body.atelier #tie-tu .empty-foot small { display:none; } }
@media(prefers-reduced-transparency:reduce) { body.atelier #tie-tu .skill-form-col,body.atelier #tie-tu .skill-output-col { background:#f5fbf6!important; -webkit-backdrop-filter:none; backdrop-filter:none; } }
@media(prefers-reduced-motion:reduce) { body.atelier #tie-tu .style-chip { transition:none; } }

/* 贴图号大屏尺度与表单控件，与玻璃工作区统一。 */
@media(min-width:1100px) {
 body.atelier #tie-tu .tool-heading,body.atelier #tie-tu .skill-shell { max-width:1920px!important; }
 body.atelier #tie-tu .skill-shell { grid-template-columns:clamp(410px,32%,560px) minmax(0,1fr)!important; gap:20px!important; }
 body.atelier #tie-tu .skill-form-col { padding:32px!important; }
 body.atelier #tie-tu .skill-output-col { padding:34px!important; min-height:690px!important; }
 body.atelier #tie-tu .empty-preview-tietu .tietu-card { max-height:340px; }
}
body.atelier #tie-tu .skill-form-col > p,body.atelier #tie-tu .empty-head p,body.atelier #tie-tu .creator-conversation label,body.atelier #tie-tu .creator-conversation textarea { font-size:15px!important; }
body.atelier #tie-tu .creator-form-mode summary { font-size:14px; font-weight:600; padding:12px 0; cursor:pointer; }
body.atelier #tie-tu .creator-form-mode #tie-form { position:static!important; padding:20px!important; margin:2px 0 0!important; border:1px solid rgba(255,255,255,.9)!important; border-radius:18px!important; background:rgba(255,255,255,.46)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 24px rgba(43,98,65,.06)!important; }
body.atelier #tie-tu #tie-form .form-section { padding:0!important; background:transparent!important; border:0!important; box-shadow:none!important; }
body.atelier #tie-tu #tie-form .field-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
body.atelier #tie-tu #tie-form label { display:flex; flex-direction:column; gap:7px; min-width:0; color:#526e60!important; font-size:13px!important; }
body.atelier #tie-tu #tie-form :is(input,select,textarea) { width:100%!important; min-width:0; min-height:44px; font-size:14px!important; color:#274a38; border:1px solid rgba(115,158,130,.3)!important; border-radius:11px!important; background:rgba(255,255,255,.72)!important; box-shadow:inset 0 1px 2px rgba(27,79,45,.04)!important; }
body.atelier #tie-tu #tie-form textarea { min-height:110px; }
body.atelier #tie-tu #tie-form .skill-primary { min-height:44px; border-radius:12px!important; }
@media(max-width:480px) { body.atelier #tie-tu #tie-form .field-grid { grid-template-columns:minmax(0,1fr); } body.atelier #tie-tu .creator-form-mode #tie-form { padding:16px!important; } }

/* 展开创作要求时背景随文档延伸；入口保持可读且易点。 */
body.atelier:has(#tie-tu:not([hidden])) { height:auto!important; min-height:100vh!important; }
body.atelier:has(#tie-tu:not([hidden])) .app-shell { height:auto!important; min-height:100vh!important; }
body.atelier #tie-tu .creator-form-mode > summary { display:flex!important; align-items:center; gap:10px; min-height:48px; padding:12px 14px!important; border:1px solid rgba(123,170,140,.26); border-radius:12px; background:rgba(255,255,255,.48); color:#28543d!important; font-size:16px!important; font-weight:600!important; line-height:1.4; list-style:none; }
body.atelier #tie-tu .creator-form-mode > summary::-webkit-details-marker { display:none; }
body.atelier #tie-tu .creator-form-mode > summary::before { content:'＋'; font-size:19px; line-height:1; color:#438462; }
body.atelier #tie-tu .creator-form-mode[open] > summary::before { content:'－'; }
body.atelier #tie-tu .creator-form-mode > summary:focus-visible { outline:3px solid #68aa83; outline-offset:2px; }
html:has(body.atelier #tie-tu:not([hidden])) { background:linear-gradient(178deg,#fafbf7 0%,#f0f3ec 52%,#e8eee6 100%) fixed!important; }
body.atelier #tie-tu .skill-shell { height:auto!important; max-height:none!important; }
body.atelier #tie-tu .skill-form-col { height:auto!important; max-height:none!important; overflow:visible!important; }

/* 聚焦计划与卡片，保留真实流程状态。 */
body.atelier #tie-tu .tie-steps { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:22px 0 0; }
body.atelier #tie-tu .tie-steps li { display:flex; align-items:center; gap:7px; padding:8px 11px; border:1px solid rgba(117,162,132,.18); border-radius:999px; background:rgba(255,255,255,.36); color:#667f70; font-size:13px; }
body.atelier #tie-tu .tie-steps li[aria-current] { color:#245a3d; background:rgba(215,239,222,.68); border-color:rgba(92,157,111,.28); }
body.atelier #tie-tu .tie-steps b { font-size:11px; color:#67947a; }
body.atelier #tie-tu .empty-preview-tietu .tietu-card { max-height:190px; }
body.atelier #tie-tu .creator-chat-history:not(:empty) { max-height:280px; overflow-y:auto; overscroll-behavior:contain; padding:12px 14px; border:1px solid rgba(121,162,136,.17); border-radius:14px; background:rgba(255,255,255,.42); }
body.atelier #tie-tu .creator-chat-history p { font-size:14px!important; line-height:1.7; color:#3d5749; white-space:pre-wrap; }
body.atelier #tie-tu .creator-conversation p[role=status] { font-size:14px!important; line-height:1.6; color:#425e4e; overflow-wrap:anywhere; }
body.atelier #tie-tu .tie-form-hint { margin:10px 2px 12px; color:#536e5e; font-size:13px; line-height:1.6; }
body.atelier #tie-tu .tie-result { min-width:0; width:100%; }
body.atelier #tie-tu .tie-result .output-head { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:18px; }
body.atelier #tie-tu .tie-result .output-head h2 { font-size:clamp(22px,2vw,30px); line-height:1.3; color:#203f30; }
body.atelier #tie-tu .tie-result .output-head p { max-width:65ch; font-size:14px; line-height:1.7; color:#4e685a; }
body.atelier #tie-tu .tie-result .creator-card-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),360px))!important; gap:16px!important; }
body.atelier #tie-tu .tie-result .creator-output-card { display:flex; flex-direction:column; min-width:0; }
body.atelier #tie-tu .tie-result .card-image-slot { width:100%; aspect-ratio:3/4; max-height:none; flex-shrink:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
body.atelier #tie-tu .tie-result .card-image-slot img { min-height:0; }
body.atelier #tie-tu .tie-result .creator-card-copy { display:flex; flex-direction:column; gap:9px; padding:17px; color:#496454; }
body.atelier #tie-tu .tie-result .creator-card-copy > span { font-size:12px; color:#527a60; }
body.atelier #tie-tu .tie-result .creator-card-copy strong { font-size:16px; line-height:1.45; color:#244b34; }
body.atelier #tie-tu .tie-result .creator-card-copy p,body.atelier #tie-tu .tie-result .creator-card-copy small { font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
body.atelier #tie-tu .tie-result .creator-card-copy p b { font-size:12px; color:#6b8a76; }
@media(max-width:768px) { body.atelier #tie-tu .tie-steps { gap:6px; } body.atelier #tie-tu .tie-steps li { font-size:12px; padding:7px 9px; } body.atelier #tie-tu .creator-chat-history:not(:empty) { max-height:none; overflow:visible; } body.atelier #tie-tu .tie-result .creator-card-grid { grid-template-columns:minmax(0,min(100%,360px))!important; } body.atelier #tie-tu .tie-result .card-image-slot { max-height:none; } }

/* 表单常驻显示，标题与控件统一使用易读字号。 */
body.atelier #tie-tu .tie-form-intro { margin-top:24px; padding-top:22px; border-top:1px solid var(--tie-line); }
body.atelier #tie-tu .tie-form-intro strong { display:block; color:#244d37; font-size:18px; line-height:1.4; }
body.atelier #tie-tu .tie-form-intro p { margin:7px 0 14px; color:#526d5d; font-size:14px; line-height:1.6; }
body.atelier #tie-tu #tie-form { position:static!important; padding:20px!important; margin:0!important; border:1px solid rgba(255,255,255,.9)!important; border-radius:18px!important; background:rgba(255,255,255,.46)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 24px rgba(43,98,65,.06)!important; }
body.atelier #tie-tu #tie-form .head .copy strong { font-size:16px!important; line-height:1.5; }
body.atelier #tie-tu #tie-form .head .copy small { font-size:14px!important; line-height:1.6; color:#536d5e; }
body.atelier #tie-tu #tie-form label { font-size:16px!important; line-height:1.5; color:#385b47!important; }
body.atelier #tie-tu #tie-form :is(input,select,textarea) { font-size:16px!important; min-height:48px; }
body.atelier #tie-tu #tie-form .skill-primary { font-size:16px!important; min-height:48px; }
@media(max-width:480px) { body.atelier #tie-tu #tie-form { padding:16px!important; } }

/* 创建方式切换：保留两个表单的状态，仅切换可见性。 */
body.atelier #tie-tu #tie-form[hidden],body.atelier #tie-tu .creator-conversation[hidden],body.atelier #tie-tu .tie-mode-activity[hidden] { display:none!important; }
body.atelier #tie-tu .tie-mode-switch { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:24px 0 0; padding:5px; border:1px solid rgba(121,163,136,.2); border-radius:15px; background:rgba(226,240,230,.55); }
body.atelier #tie-tu .tie-mode-switch button { min-height:46px; border:0; border-radius:11px; background:transparent; color:#5b7464; font-size:16px; font-weight:600; cursor:pointer; }
body.atelier #tie-tu .tie-mode-switch button[aria-pressed=true] { color:#20543a; background:rgba(255,255,255,.83); box-shadow:0 3px 10px rgba(46,102,67,.1),inset 0 1px 0 #fff; }
body.atelier #tie-tu .tie-mode-switch button:focus-visible { outline:3px solid #68aa83; outline-offset:2px; }
body.atelier #tie-tu .tie-mode-hint { margin:12px 2px 14px!important; color:#526d5d!important; font-size:14px!important; line-height:1.6; }
body.atelier #tie-tu .tie-mode-activity { margin:0 2px 14px; padding:9px 12px; border-radius:10px; color:#365f49; background:rgba(216,239,224,.8); font-size:14px; line-height:1.5; }
body.atelier #tie-tu .creator-conversation:not([hidden]) { margin:0 0 8px; }

/* Make in-flight image actions visibly unavailable. */
body.atelier #tie-tu #tie-images:disabled { background:#d7dfda!important; color:#59675f!important; box-shadow:none!important; cursor:not-allowed; opacity:1; pointer-events:none; }
body.atelier #tie-tu .image-elapsed { font-size:14px; color:#496454; white-space:nowrap; }
body.atelier #tie-tu .generation-progress > div:first-child { flex-wrap:wrap; gap:10px; }
.card-image-slot { position:relative; }
.card-image-slot .card-image-preview { display:block; width:100%; height:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.card-image-slot .card-image-preview img { width:100%; height:100%; object-fit:contain; }
.card-image-slot .card-image-download { position:absolute; right:10px; bottom:10px; padding:7px 12px; border-radius:8px; background:#fff; color:#163f32; box-shadow:0 2px 10px #0002; font-size:14px; }
.card-image-lightbox { max-width:96vw; max-height:96dvh; padding:12px; border:0; border-radius:14px; background:#fff; }
.card-image-lightbox::backdrop { background:#000b; }
.card-image-lightbox > img { display:block; max-width:90vw; max-height:80dvh; width:auto; height:auto; margin:auto; object-fit:contain; }
.card-image-lightbox > div { display:flex; justify-content:flex-end; gap:18px; align-items:center; padding-top:12px; }
.card-image-lightbox button,.card-image-lightbox a { padding:8px 14px; cursor:pointer; }

/* A compact publication action stays visible above the potentially long card list. */
body.atelier #tie-tu .tie-publication { margin:18px 0 22px; padding:22px 24px; border:1px solid #b8dcca; border-radius:18px; background:linear-gradient(125deg,#f1fbf4,#e4f5eb); box-shadow:0 10px 28px rgba(34,103,66,.08); }
body.atelier #tie-tu .tie-publication h3 { color:#173f2a; font-size:20px; line-height:1.3; }
body.atelier #tie-tu .tie-publication > p:not([role=status]) { max-width:60ch; margin:6px 0 14px; color:#476b55; font-size:14px; }
body.atelier #tie-tu .tie-publication > p[role=status]:empty { display:none; }
body.atelier #tie-tu .tie-publication .remix-copy-actions button:last-child { min-height:44px; padding:11px 20px; border-color:#176d40; background:#176d40; color:#fff; }
body.atelier #tie-tu .tie-publication button:focus-visible { outline:3px solid #79b895; outline-offset:3px; }
@media(max-width:600px) { body.atelier #tie-tu .tie-publication { padding:18px; margin:16px 0 20px; } body.atelier #tie-tu .tie-publication .remix-copy-actions button { width:100%; min-height:44px; white-space:normal; } }


/* --- ui-system.css --- */
/* 宇宙第一工作台 · 统一层 (ui-system.css)
 * 只做三件事：统一可读性下限、统一控件热区、抹平模块间皮肤差异。
 * 加载顺序放在所有历史样式之后；不触碰首页 hero（#home 与 .home-page 均不在选择器里）。
 */

:root {
  --uw-ink: #1d2f25;
  --uw-ink-2: #3f574b;
  --uw-ink-3: #4f6657;
  --uw-green: #2f6f4f;
  --uw-green-ink: #ffffff;
  --uw-line: rgba(47, 111, 79, .16);
  --uw-paper: #fbfbf8;
  --uw-radius: 12px;
}

/* ---------- 1. 可读性：正文与辅助文字下限 12px / 4.5:1 ---------- */

#workbench .composer-hint,
#workbench .fl-tip,
#workbench .article-canvas-foot,
#workbench .version-strip {
  font-size: 12px !important;
  color: var(--uw-ink-3) !important;
}

/* 步骤条与主按钮内的字号/对比度（覆盖 folio / design-parity 的小字规则） */
body.atelier #workbench#workbench #workbench-stage-nav button .pd-step-t,
body.atelier #workbench#workbench #workbench-stage-nav button .pd-step-n,
body.atelier #workbench#workbench #workbench-stage-nav .pd-step-t {
  color: var(--uw-ink-2) !important;
  font-size: 12.5px !important;
  opacity: 1 !important;
}

body.atelier #workbench#workbench .composer-hint {
  font-size: 12px !important;
  color: var(--uw-ink-3) !important;
}

#workbench .begin-writing span { font-size: 15px !important; line-height: 1.2; }

#workbench .composer-shell label,
#workbench .chat-thread .chat-message p,
#workbench #workbench-decision p {
  color: var(--uw-ink-2) !important;
}

#hotspots :is(.hs-item-meta, .hs-card-count, .hs-chip, .hs-updated) {
  font-size: 12.5px !important;
  color: var(--uw-ink-3) !important;
}

#hotspots .hs-chip { color: #3a5144 !important; }

#market :is(.pd-step-t, .market-kicker, .market-meta, .market-row small) {
  color: var(--uw-ink-3) !important;
}

#market-main :is(#meta-updated, .market-foot p, .market-wrap p, .market-row .n, a.on .n, a span.n) {
  color: var(--uw-ink-3) !important;
}

/* ---------- 2. 控件热区：行内操作不少于 44px，筛选 chip 不少于 32px ---------- */

#hotspots .hs-item-tools :is(button, a) {
  min-height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#hotspots .hs-chip { min-height: 40px; }

#workbench .composer-send,
#workbench #workbench-stage-next,
#workbench #workbench-stage-rerun {
  min-height: 44px;
}

/* ---------- 3. 热点广场：保留各平台底色，只统一文字对比度 ---------- */

#hotspots .hs-card-head :is(strong, b) { color: var(--uw-ink) !important; }

/* ---------- 4. 工作台空态：一个主按钮，收起重复入口 ---------- */

#workbench #workbench-decision.is-empty-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 40px 24px 44px;
  min-height: 280px;
}

#workbench #workbench-decision.is-empty-stage > strong { font-size: clamp(22px, 2vw, 28px); }

#workbench #workbench-decision.is-empty-stage > p {
  max-width: 46ch;
  margin: 6px auto 0;
  line-height: 1.7;
}

#workbench .begin-writing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--uw-radius);
  background: var(--uw-green);
  color: var(--uw-green-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px -14px rgba(30, 82, 58, .7);
}

#workbench .begin-writing:hover { background: #285f43; }
#workbench .begin-writing:focus-visible { outline: 3px solid var(--g-600,#14684A); outline-offset: 3px; }

/* 没有候选选题时，"换一批方向" 没有对象可换 */
#workbench:not(.has-topics) #workbench-regenerate-topics { display: none !important; }

/* ---------- 5. 创作页模式切换（替代侧栏里三个近义入口） ---------- */

#workbench .studio-modes {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--uw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
}

#workbench .studio-modes a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--uw-ink-2);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

#workbench .studio-modes a:hover { background: rgba(47, 111, 79, .08); }

#workbench .studio-modes a.is-current {
  background: var(--uw-green);
  color: #fff;
  font-weight: 600;
}

/* ---------- 6. 素笺落地（手机/空态）：阶段条与画布入口 ---------- */

#workbench .fl-stagebar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 4px;
}

#workbench .fl-stage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--uw-line);
  border-radius: 999px;
  color: var(--uw-ink-3);
  font-size: 12px;
  line-height: 1;
}

#workbench .fl-stage i {
  font-style: normal;
  font-size: 11px;
  opacity: .8;
}

#workbench .fl-stage.is-on {
  border-color: transparent;
  background: rgba(47, 111, 79, .12);
  color: #245239;
  font-weight: 600;
}

#workbench .fl-canvas-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--uw-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  color: var(--uw-ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

#workbench .fl-canvas-link:hover { border-color: rgba(47, 111, 79, .34); }

/* ---------- 7. AI 超市：与其余模块同一张纸 ---------- */

#market-main.market-page,
#market.market-page {
  background: transparent !important;
}

#market-main .market-foot,
#market .market-foot {
  background: transparent !important;
}

#market .market-fcard,
#market .market-card,
#market .market-row {
  border-color: var(--uw-line);
}

/* ---------- 8. 手机上给工作台留出底部导航的空间 ---------- */

@media (max-width: 760px) {
  #workbench { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  #workbench .fl-stagebar { margin-top: 12px; }
}

/* ---------- 9. 空态只保留一处说明：画布里的那张卡 ---------- */

body.atelier #workbench:not([data-stage]) #workbench-decision,
body.atelier #workbench[data-stage="0"] #workbench-decision {
  display: flex !important;
  position: relative;
  z-index: 3;
  background: var(--uw-paper) !important;
  border: 1px solid var(--uw-line) !important;
  border-radius: 16px !important;
}

/* 空态不再重复第二遍“作品会在这里出现” */
body.atelier #workbench#workbench:not([data-stage]) #workbench-result > .article-canvas-head,
body.atelier #workbench#workbench[data-stage=""] #workbench-result > .article-canvas-head,
body.atelier #workbench#workbench[data-stage="0"] #workbench-result > .article-canvas-head {
  display: none !important;
}

/* 空态卡片里那张“示例排版”的装饰文稿会和小字打架，空态时不显示 */
#workbench-decision.is-empty-stage::after { display: none !important; }

/* 主按钮内的文字统一白字（页面里有针对 span 的绿色规则） */
#workbench .begin-writing,
#workbench .begin-writing :is(span, i) { color: #fff !important; }

body.atelier #workbench:not([data-stage]) #workbench-action-card,
body.atelier #workbench[data-stage="0"] #workbench-action-card {
  display: none !important;
}

/* 模式切换在顶栏内靠右 */
#workbench .studio-heading { flex-wrap: wrap; gap: 12px; }
#workbench .studio-heading .studio-modes { margin: 0 0 0 auto; align-self: center; }

/* ---------- 10. 侧栏分组：全部展开 ----------
   曾把「工具 / 资源 / 账户」默认收起，只留 7 个入口，下面挂一个「更多功能」。
   用户要求取消折叠：所有分组直接展开，不再有开关。 */
#workspace-navigation .nav-groups { display: block; }

#workspace-navigation .nav-group[data-group] { display: block; }

@media (max-width: 760px) {
  #workbench .studio-modes {
    display: inline-flex;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
    gap: 2px;
    padding: 3px;
  }
  #workbench .studio-modes a { flex: 0 0 auto; padding: 0 9px; font-size: 12px; }
  #workbench .studio-heading .studio-modes {
    flex: 0 0 auto;
    order: 3;
    margin: 8px 0 0;
  }
}


/* --- xhs-glass.css --- */
/* Xiaohongshu: a quiet green glass workspace, scoped to this page. */
body.atelier #xiaohongshu {
  --xhs-ink: #183d2b;
  --xhs-muted: #557465;
  --xhs-line: rgba(59, 130, 89, .17);
  --xhs-glass: rgba(250, 255, 251, .68);
  color: var(--xhs-ink);
}
body.atelier #xiaohongshu [hidden] { display: none !important; }
body.atelier #xiaohongshu .tool-heading h1 { color: #193b2b !important; }
body.atelier #xiaohongshu .tool-heading p { color: #5b7968 !important; }
body.atelier #xiaohongshu .skill-shell {
  gap: 16px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.atelier #xiaohongshu .skill-form-col,
body.atelier #xiaohongshu .skill-output-col {
  border: 1px solid rgba(255,255,255,.88) !important;
  border-radius: 22px !important;
  background: var(--xhs-glass) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 45px rgba(49,98,66,.08) !important;
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}
body.atelier #xiaohongshu .skill-form-col { padding: 23px !important; }
body.atelier #xiaohongshu .skill-form-col::before { color: #305d45 !important; font-weight: 700 !important; }
body.atelier #xiaohongshu .creator-conversation { margin: 18px 0 0 !important; }
body.atelier #xiaohongshu .creator-conversation label,
body.atelier #xiaohongshu .skill-form label { color: #315746 !important; font-size: 13px !important; font-weight: 650; }
body.atelier #xiaohongshu :is(textarea,input,select) {
  box-sizing: border-box;
  border: 1px solid rgba(63,130,89,.22) !important;
  border-radius: 13px !important;
  background: rgba(255,255,255,.76) !important;
  color: #244736 !important;
  box-shadow: inset 0 1px 4px rgba(36,85,54,.035) !important;
}
body.atelier #xiaohongshu textarea::placeholder, body.atelier #xiaohongshu input::placeholder { color: #789187; }
body.atelier #xiaohongshu .creator-conversation textarea { min-height: 132px; padding: 14px !important; line-height: 1.65; }
body.atelier #xiaohongshu :is(textarea,input,select,button,summary):focus-visible { outline: 3px solid var(--g-600,#14684A) !important; outline-offset: 2px; }
body.atelier #xiaohongshu .creator-conversation > button,
body.atelier #xiaohongshu .skill-primary { min-height: 44px; border-radius: 12px !important; }
body.atelier #xiaohongshu .creator-conversation > button[type=submit],
body.atelier #xiaohongshu .skill-primary {
  background: linear-gradient(140deg,#359a68,#1d724a) !important;
  border: 1px solid #27845a !important; color: white !important;
  box-shadow: 0 8px 18px rgba(31,119,72,.2), inset 0 1px rgba(255,255,255,.25) !important;
}
body.atelier #xiaohongshu .creator-form-mode { border-top: 1px solid var(--xhs-line) !important; margin-top: 20px; }
body.atelier #xiaohongshu .creator-form-mode > summary { color: #426b53; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
body.atelier #xiaohongshu .creator-form-mode > summary::before { content: '+'; font-size: 20px; margin-right: 9px; color: #40845c; }
body.atelier #xiaohongshu .creator-form-mode[open] > summary::before { content: '−'; }
body.atelier #xiaohongshu .skill-output-col { min-width: 0; padding: 25px !important; }
body.atelier #xiaohongshu #xhs-empty {
  min-height: 540px !important; padding: 32px !important;
  border: 1px solid rgba(255,255,255,.8) !important; border-radius: 18px !important;
  background: radial-gradient(circle at 82% 12%,rgba(198,239,210,.5),transparent 40%), linear-gradient(145deg,rgba(255,255,255,.78),rgba(237,250,241,.6)) !important;
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
body.atelier #xiaohongshu #xhs-empty[hidden] { display:none !important; }
body.atelier #xiaohongshu #xhs-empty h2 { margin: 0 0 10px !important; color: #244d36 !important; font-size: 22px !important; font-weight: 700 !important; }
body.atelier #xiaohongshu #xhs-empty > p { max-width: 410px; margin: 0; color: #678676 !important; font-size: 14px; line-height: 1.8; }
body.atelier #xiaohongshu .xhs-glass-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: min(100%,600px); gap: 10px; margin-top: 32px; text-align: left; }
body.atelier #xiaohongshu .xhs-glass-guide-item { padding: 16px; min-width: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; background: rgba(255,255,255,.52); box-shadow: 0 8px 22px rgba(39,111,65,.045); }
body.atelier #xiaohongshu .xhs-glass-guide-item > span { display: block; margin-bottom: 15px; color: #5da178; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
body.atelier #xiaohongshu .xhs-glass-guide-item strong, body.atelier #xiaohongshu .xhs-glass-guide-item small { display: block; }
body.atelier #xiaohongshu .xhs-glass-guide-item strong { color: #254d37; font-size: 14px; }
body.atelier #xiaohongshu .xhs-glass-guide-item small { margin-top: 6px; color: #71907d; font-size: 12px; line-height: 1.5; }
body.atelier #xiaohongshu #xhs-result { min-width: 0; color: var(--xhs-ink); }
body.atelier #xiaohongshu #xhs-result .output-head { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:16px; padding-bottom: 20px; }
body.atelier #xiaohongshu #xhs-result .output-head h2 { color:#214d35 !important; font-size:clamp(22px,2vw,30px) !important; line-height:1.35; }
body.atelier #xiaohongshu #xhs-result .output-head p { color:var(--xhs-muted); line-height:1.65; }
body.atelier #xiaohongshu #xhs-result .result-section { margin-top: 22px; padding-top: 22px; border-top:1px solid var(--xhs-line); }
body.atelier #xiaohongshu #xhs-result .result-section-title strong { color:#2a5a3d !important; font-size:15px; }
body.atelier #xiaohongshu #xhs-result :is(.title-option,.creator-output-card,.result-meta-grid > div) { border:1px solid rgba(104,170,124,.2) !important; border-radius:14px !important; background:rgba(255,255,255,.62) !important; }
body.atelier #xiaohongshu #xhs-result .title-option.selected { border-color:#76bd91 !important; background:rgba(222,246,228,.68) !important; }
body.atelier #xiaohongshu #xhs-result .card-image-slot { background:linear-gradient(145deg,#e9f7ed,#f6fbf7) !important; }
body.atelier #xiaohongshu #xhs-result :is(.secondary-action,.copy-result) { min-height: 40px; border-radius: 11px; color:#246741; border-color:#a9d5b8; background:rgba(246,255,248,.8); }
@media (max-width: 760px) {
  body.atelier #xiaohongshu .skill-shell { gap: 12px !important; }
  body.atelier #xiaohongshu .skill-form-col, body.atelier #xiaohongshu .skill-output-col { padding: 18px !important; border-radius: 18px !important; }
  body.atelier #xiaohongshu #xhs-empty { min-height: 300px !important; padding: 24px 16px !important; }
  body.atelier #xiaohongshu #xhs-empty h2 { font-size: 19px !important; }
  body.atelier #xiaohongshu .xhs-glass-guide { grid-template-columns: 1fr; gap:8px; margin-top:20px; }
  body.atelier #xiaohongshu .xhs-glass-guide-item { display:flex; align-items:center; gap:14px; padding:11px 13px; }
  body.atelier #xiaohongshu .xhs-glass-guide-item > span { margin:0; }
  body.atelier #xiaohongshu .xhs-glass-guide-item small { margin-top:2px; }
  body.atelier #xiaohongshu .creator-conversation textarea { min-height:110px; }
}
@media (prefers-reduced-motion: reduce) { body.atelier #xiaohongshu * { scroll-behavior: auto !important; } }
body.atelier #xiaohongshu #xhs-result .result-section { border-top: 0 !important; }
body.atelier #xiaohongshu #xhs-result .title-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:10px; }
body.atelier #xiaohongshu #xhs-result .creator-card-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:12px; }
@media(max-width:760px) {
  body.atelier #xiaohongshu #xhs-result .title-options,
  body.atelier #xiaohongshu #xhs-result .creator-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.atelier #xiaohongshu #xhs-result .title-option { min-width:0; overflow-wrap:anywhere; }
}


/* --- daily-checkin.css --- */
.daily-checkin { box-sizing:border-box; display:flex; align-items:center; gap:10px; padding:13px; border:1px solid rgba(255,255,255,.9); border-radius:16px; background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(220,245,227,.82)); color:#1d4b32; box-shadow:0 8px 24px rgba(31,100,59,.07),inset 0 1px rgba(255,255,255,.8); }
.daily-checkin-icon { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:11px; background:#d8f1df; color:#227849; font-size:19px; font-weight:700; }
.daily-checkin-copy { flex:1; min-width:0; }
.daily-checkin-copy strong,.daily-checkin-copy small { display:block; }
.daily-checkin-copy strong { font-size:13px; line-height:1.35; color:#1d4b32; }
.daily-checkin-copy small { margin-top:3px; font-size:11px; line-height:1.4; color:#65816f; }
.daily-checkin button { flex:none; min-height:38px; padding:8px 10px; border:1px solid #287d50; border-radius:10px; background:#277d50; color:#fff; font-family:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.daily-checkin button:disabled { border-color:#c3dfcb; background:#e2f2e6; color:#447958; cursor:default; }
.daily-checkin button:focus-visible { outline:3px solid #79bc94; outline-offset:3px; }
.daily-checkin-message:empty { display:none; }
.daily-checkin-message { flex-basis:100%; color:#32744d; font-size:12px; }
.daily-checkin-sidebar { flex-wrap:wrap; flex-shrink:0; margin:0 2px -12px; }
.daily-checkin-sidebar .daily-checkin-icon { width:28px; height:28px; }
.daily-checkin-sidebar button { padding:7px 8px; font-size:11px; }
.daily-checkin-home { display:none; }
.daily-checkin-wallet { margin:14px 0; flex-wrap:wrap; }
@media(max-width:1100px) { .daily-checkin-sidebar { display:none !important; } }
@media(max-width:1100px) { .daily-checkin-home { display:flex; flex-wrap:wrap; margin:12px 0 16px; } .daily-checkin-home button,.daily-checkin-wallet button { min-height:44px; padding:10px 15px; } }
.daily-checkin-sidebar { gap:7px; padding:10px; }
.daily-checkin-sidebar .daily-checkin-copy small { font-size:10px; white-space:nowrap; }
.daily-checkin-sidebar button { min-height:38px; padding:7px; }

/* Keep the completed desktop state readable without a redundant disabled button. */
.daily-checkin-sidebar.is-checked { min-height:58px; gap:10px; padding:10px 12px; }
.daily-checkin-sidebar.is-checked button { display:none; }
.daily-checkin-sidebar.is-checked .daily-checkin-copy strong { font-size:13px; }
.daily-checkin-sidebar.is-checked .daily-checkin-copy small { font-size:11px; color:#557562; white-space:normal; }
.daily-checkin-sidebar.is-checked .daily-checkin-message:not(:empty) { padding-left:38px; margin-top:-4px; }

/* 初创合伙人按钮：签到卡正下方的浅绿色入口，点击弹出站长微信二维码 */
.founder-partner-btn { box-sizing:border-box; width:100%; margin-top:10px; min-height:40px; padding:9px 12px; border:1px solid #a9dcb9; border-radius:10px; background:linear-gradient(135deg,#e6f7ec,#cdedd9); color:#1d4b32; font-family:inherit; font-size:12px; font-weight:700; letter-spacing:.02em; cursor:pointer; transition:background .15s ease,border-color .15s ease; }
.founder-partner-btn:hover { border-color:#8ccba1; background:linear-gradient(135deg,#d9f1e1,#bfe8cd); }
.founder-partner-btn:focus-visible { outline:3px solid #79bc94; outline-offset:3px; }
.daily-checkin + .founder-partner-btn { margin-top:-6px; }
.daily-checkin-wallet + .founder-partner-btn { margin-top:2px; }
@media(max-width:1100px) { .founder-partner-btn { min-height:44px; padding:11px 15px; font-size:13px; } }

/* 我的页「成为合伙人」入口 + 弹窗内复制微信号 */
.cr-partner-icon{background:linear-gradient(135deg,#e9f6ee,#d4eddd);color:#1d4b32}
.partner-copy-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px 18px;background:#0d0d0d;border-top:1px solid #262626}
.partner-copy-label{font-size:13px;color:#e8efe9;line-height:1.6}
.partner-copy-label b{color:#8ce0ad;font-weight:700;letter-spacing:.02em}
.partner-copy-btn{flex:none;min-height:36px;padding:0 16px;border:1px solid #7bd39f;border-radius:9px;background:#7bd39f;color:#0d0d0d;font:700 13px/1 inherit;cursor:pointer;transition:background .15s,border-color .15s}
.partner-copy-btn:hover{background:#9be4b7;border-color:#9be4b7}
.partner-copy-btn:focus-visible{outline:3px solid #7bd39f;outline-offset:2px}

/* 我的页三入口合并成一张卡：一行一个，细线分隔，收紧高度 */
.cr-entry-group .cr-entry{min-height:0;padding:12px 18px;gap:12px}
.cr-entry-group .cr-entry + .cr-entry{border-top:1px solid rgba(31,100,59,.09)}
.cr-entry-group .cr-entry-icon{width:36px;height:36px;border-radius:11px;font-size:17px}
.cr-entry-group .cr-entry-copy strong{font-size:14px}
.cr-entry-group .cr-entry-copy small{margin-top:2px;font-size:11px;line-height:1.5;color:#819087}
.cr-entry-group .cr-entry-arrow{font-size:20px}
@media(max-width:1100px){.cr-entry-group .cr-entry{padding:13px 15px}}


/* 邀请好友弹窗：复用 cr-dialog 外观，只调整 iframe 内容区 */
.invite-growth-dialog .igd-body{padding:0;display:flex;min-height:0}
.invite-growth-dialog iframe{display:block;width:100%;height:100%;min-height:60vh;border:0;background:#f6f5f1}
@media(max-width:760px){.invite-growth-dialog iframe{min-height:70vh}}

/* --- checkin-demote.css --- */
/* ============================================================
   签到降级覆盖层（产品经济角度）
   问题：桌面侧栏常驻绿卡 + 手机端首页满宽绿卡，视觉权重压过创作主路径，
        且领取成本(+5 积分/天 ≈ 1 积分 0.1 元 ≈ ¥0.5/人/天)随 MAU 线性放大，
        还培养"打开→领分→走"而非"创作"的肌肉记忆。
   做法：保留功能（手动点击领取、钱包弹窗内的签到仍在），只降位置优先级与视觉权重。
   回滚：删除 index.html 中本文件 <link> 即可，零副作用。
   ============================================================ */

/* 1) 桌面侧栏常驻签到卡：全宽隐藏
   原 daily-checkin.css 仅在 ≤1100px 隐藏侧栏卡，桌面端一直常驻抢视觉；
   此处扩展到所有宽度，让导航区只剩"功能 + 一个主行动按钮"。 */
.daily-checkin-sidebar { display: none !important; }

/* 2) 手机端首页/顶部签到卡：直接移除，只保留「我的积分」钱包弹窗内的签到
   用户要求不在手机端顶部/首页留签到入口，避免与"开始创作"抢第一屏注意力。
   daily-checkin.css 在 ≤1100px 会把 .daily-checkin-home 显示成满宽绿卡，
   这里强制隐藏；桌面端 .daily-checkin-home 原本就是 display:none，
   钱包 .daily-checkin-wallet 走另一条规则，不受影响、照常保留。 */
@media (max-width: 1100px) {
  .daily-checkin-home { display: none !important; }
}

/* --- creation-records.css --- */
/* Per-user creation records. Fits the glass-module cards on the #my page. */
.cr-module { padding: 22px; }
.cr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cr-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cr-head p { margin: 5px 0 0; font-size: 12px; color: #6b7c74; line-height: 1.6; }
.cr-retention { flex: none; padding: 5px 10px; border: 1px solid rgba(0,47,167,.14); border-radius: 999px; background: rgba(0,47,167,.05); color: #002FA7; font-size: 11px; font-weight: 600; }
.cr-notice { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border: 1px solid rgba(186,133,23,.22); border-radius: 12px; background: rgba(250,238,218,.7); color: #6a4a08; font-size: 12px; line-height: 1.6; }
.cr-notice[hidden] { display: none; }
.cr-tabs { display: flex; gap: 6px; margin: 16px 0 14px; overflow-x: auto; scrollbar-width: none; }
.cr-tabs::-webkit-scrollbar { display: none; }
.cr-tab { flex: none; min-height: 34px; padding: 7px 15px; border: 1px solid rgba(31,100,59,.12); border-radius: 999px; background: rgba(255,255,255,.62); color: #4b6555; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s ease,color .15s ease,border-color .15s ease; }
.cr-tab:hover { border-color: rgba(0,47,167,.3); color: #002FA7; }
.cr-tab.active { border-color: #002FA7; background: #002FA7; color: #fff; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 12px; }
.cr-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid rgba(31,100,59,.1); border-radius: 16px; background: rgba(255,255,255,.76); box-shadow: 0 8px 24px rgba(31,100,59,.05); transition: transform .16s ease,box-shadow .16s ease; }
.cr-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31,100,59,.09); }
.cr-card.is-archived { opacity: .62; }
.cr-thumb { display: grid; place-items: center; width: 100%; height: 108px; margin-bottom: 10px; border-radius: 11px; overflow: hidden; background: linear-gradient(135deg,rgba(0,47,167,.06),rgba(220,245,227,.7)); color: #002FA7; font-size: 26px; font-weight: 600; }
.cr-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cr-kind { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: rgba(0,47,167,.07); color: #002FA7; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.cr-title { margin: 8px 0 4px; font-size: 13px; font-weight: 600; line-height: 1.45; color: #1d3327; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-summary { margin: 0; font-size: 11px; line-height: 1.55; color: #6b7c74; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.cr-meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 10px; color: #82938a; }
.cr-meta .cr-source { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-actions { display: flex; gap: 6px; margin-top: 10px; }
.cr-open { flex: 1; min-height: 34px; border: 1px solid rgba(0,47,167,.16); border-radius: 10px; background: rgba(0,47,167,.05); color: #002FA7; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.cr-open:hover { background: rgba(0,47,167,.11); }
.cr-icon { width: 34px; height: 34px; min-width: 34px; min-height: 34px; aspect-ratio: 1/1; box-sizing: border-box; display: grid; place-items: center; border: 1px solid rgba(31,100,59,.12); border-radius: 50%; background: rgba(255,255,255,.7); color: #6b7c74; font-size: 14px; line-height: 1; cursor: pointer; }
.cr-icon:hover { border-color: rgba(0,47,167,.3); color: #002FA7; }
.cr-icon.is-on { border-color: rgba(0,47,167,.35); background: rgba(0,47,167,.1); color: #002FA7; }
.cr-empty { padding: 34px 16px; text-align: center; color: #6b7c74; font-size: 12px; line-height: 1.8; }
.cr-empty strong { display: block; margin-bottom: 4px; color: #1d3327; font-size: 13px; font-weight: 600; }
.cr-more { display: block; width: 100%; margin-top: 14px; min-height: 40px; border: 1px solid rgba(31,100,59,.14); border-radius: 12px; background: rgba(255,255,255,.6); color: #315744; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cr-more:hover { border-color: rgba(0,47,167,.3); color: #002FA7; }
.cr-more[hidden] { display: none; }
@media (max-width: 640px) {
  .cr-module { padding: 16px; }
  .cr-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .cr-thumb { height: 88px; }
  .cr-tab { min-height: 44px; padding: 10px 16px; }
  .cr-icon { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .cr-open { min-height: 44px; }
}


/* --- creation-records.css (entry + dialog) --- */
  .cr-module { padding: 16px; }
  .cr-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .cr-thumb { height: 88px; }
  .cr-tab { min-height: 44px; padding: 10px 16px; }
  .cr-icon { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .cr-open { min-height: 44px; }
}

/* 入口卡：默认只占一行，点开才展开全部记录 */
.cr-entry-wrap { padding: 0; overflow: hidden; }
.cr-entry { display: flex; align-items: center; gap: 13px; width: 100%; box-sizing: border-box; padding: 16px 18px; border: 0; background: transparent; color: inherit; font-family: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.cr-entry:hover { background: rgba(0,47,167,.045); }
.cr-entry:focus-visible { outline: 3px solid rgba(0,47,167,.35); outline-offset: -3px; }
.cr-entry-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(0,47,167,.08); color: #002FA7; font-size: 18px; }
.cr-entry-copy { flex: 1; min-width: 0; }
.cr-entry-copy strong,.cr-entry-copy small { display: block; }
.cr-entry-copy strong { font-size: 14px; font-weight: 600; color: #1d3327; }
.cr-entry-copy small { margin-top: 3px; font-size: 11px; color: #6b7c74; line-height: 1.5; }
.cr-entry-count { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #002FA7; color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.cr-entry-count[hidden] { display: none; }
.cr-entry-arrow { flex: none; color: #82938a; font-size: 22px; line-height: 1; }

/* 展开层 */
.cr-dialog { width: min(940px,calc(100vw - 32px)); max-width: none; max-height: 88vh; padding: 0; border: 1px solid rgba(31,100,59,.14); border-radius: 20px; background: rgba(250,252,250,.98); color: #1d3327; box-shadow: 0 30px 90px rgba(10,30,20,.28); overflow: hidden; }
.cr-dialog::backdrop { background: rgba(12,26,20,.52); backdrop-filter: blur(5px); }
.cr-dialog-inner { display: flex; flex-direction: column; max-height: 88vh; }
.cr-dialog-head { position: relative; display: flex; align-items: center; gap: 12px; flex: none; padding: 20px 58px 16px 24px; border-bottom: 1px solid rgba(31,100,59,.09); background: rgba(255,255,255,.7); }
.cr-dialog-title { flex: 1; min-width: 0; }
.cr-dialog-title h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.cr-dialog-title p { margin: 4px 0 0; font-size: 12px; color: #6b7c74; line-height: 1.5; }
.cr-dialog-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; aspect-ratio: 1/1; box-sizing: border-box; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: #1d3327; color: #fff; font-family: inherit; font-size: 20px; line-height: 1; cursor: pointer; transition: background .15s ease; }
.cr-dialog-close:hover { background: #002FA7; }
.cr-dialog-close:focus-visible { outline: 3px solid rgba(0,47,167,.45); outline-offset: 2px; }
.cr-dialog-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 24px; overscroll-behavior: contain; }
.cr-dialog-body .cr-tabs { margin-top: 0; }
@media (max-width: 640px) {
  .cr-entry { padding: 14px 16px; }
  .cr-dialog { width: calc(100vw - 16px); max-height: 92vh; border-radius: 18px; }
  .cr-dialog-inner { max-height: 92vh; }
  .cr-dialog-head { padding: 16px 56px 14px 16px; gap: 8px; }
  .cr-dialog-head .cr-retention { display: none; }
  .cr-dialog-close { top: 14px; right: 14px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .cr-dialog-body { padding: 14px 14px 22px; }
}


/* --- creation-records.css (dialog polish) --- */

/* showModal 会把焦点落到关闭键，焦点环压淡避免抢视觉 */
.cr-dialog-close:focus-visible { outline: 2px solid rgba(0,47,167,.22); outline-offset: 3px; }
/* 手机端卡片太窄，三个按钮挤一行会把「打开产物」折行，改成主按钮独占一行 */
@media (max-width: 640px) {
  .cr-actions { flex-wrap: wrap; justify-content: flex-end; }
  .cr-open { flex: 1 1 100%; }
}


/* --- creation-records.css (detail view) --- */
  .cr-actions { flex-wrap: wrap; justify-content: flex-end; }
  .cr-open { flex: 1 1 100%; }
}

/* 产物详情层：图片放大可下载，文章直接看全文 */
.cr-card { cursor: pointer; }
.cr-detail-dialog { width: min(960px,calc(100vw - 32px)); max-width: none; max-height: 90vh; padding: 0; border: 1px solid rgba(31,100,59,.14); border-radius: 20px; background: rgba(250,252,250,.99); color: #1d3327; box-shadow: 0 34px 100px rgba(6,18,12,.4); overflow: hidden; }
.cr-detail-dialog::backdrop { background: rgba(6,14,10,.64); backdrop-filter: blur(5px); }
.cr-detail-inner { display: flex; flex-direction: column; max-height: 90vh; }
.cr-detail-head { display: flex; align-items: center; gap: 14px; flex: none; padding: 16px 20px; border-bottom: 1px solid rgba(31,100,59,.09); background: rgba(255,255,255,.82); }
.cr-detail-heading { flex: 1; min-width: 0; }
.cr-detail-heading .cr-kind { display: inline-block; margin-bottom: 6px; }
.cr-detail-heading h2 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-detail-meta { display: block; margin-top: 4px; font-size: 11px; color: #6b7c74; }
.cr-detail-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.cr-detail-btn { min-height: 36px; padding: 8px 14px; border: 1px solid rgba(0,47,167,.18); border-radius: 10px; background: rgba(0,47,167,.06); color: #002FA7; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cr-detail-btn:hover { background: rgba(0,47,167,.12); }
.cr-detail-btn[hidden] { display: none; }
.cr-detail-download { border-color: #002FA7; background: #002FA7; color: #fff; }
.cr-detail-download:hover { background: #00247f; }
.cr-detail-close { width: 36px; height: 36px; min-width: 36px; min-height: 36px; aspect-ratio: 1/1; box-sizing: border-box; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: #1d3327; color: #fff; font-family: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.cr-detail-close:hover { background: #002FA7; }
.cr-detail-close:focus-visible { outline: 2px solid rgba(0,47,167,.28); outline-offset: 3px; }
.cr-detail-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
.cr-detail-body.is-image { background: #0e1512; }
.cr-detail-image { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; object-fit: contain; }
.cr-detail-text { max-width: 760px; margin: 0 auto; padding: 26px 30px 40px; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.9; color: #24392d; }
.cr-detail-empty { padding: 48px 24px; text-align: center; color: #6b7c74; font-size: 13px; line-height: 1.9; }
.cr-detail-empty strong { display: block; margin-bottom: 6px; color: #1d3327; font-size: 14px; font-weight: 600; }
.cr-detail-body.is-image .cr-detail-empty { color: #b9c9bf; }
.cr-detail-body.is-image .cr-detail-empty strong { color: #eef5f0; }
.cr-detail-pager { display: flex; align-items: center; justify-content: center; gap: 16px; flex: none; padding: 11px 16px; border-top: 1px solid rgba(255,255,255,.1); background: #0e1512; color: #c9d8ce; font-size: 12px; }
.cr-detail-pager[hidden] { display: none; }
.cr-detail-pager button { min-height: 34px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(255,255,255,.06); color: #e8f0ea; font-family: inherit; font-size: 12px; cursor: pointer; }
.cr-detail-pager button:hover { background: rgba(255,255,255,.14); }
.cr-detail-pager button:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) {
  .cr-detail-dialog { width: calc(100vw - 16px); max-height: 94vh; border-radius: 18px; }
  .cr-detail-inner { max-height: 94vh; }
  .cr-detail-head { padding: 12px 14px; gap: 8px; }
  .cr-detail-heading h2 { font-size: 14px; }
  .cr-detail-btn { min-height: 44px; padding: 10px 12px; font-size: 11px; }
  .cr-detail-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .cr-detail-text { padding: 18px 18px 32px; font-size: 14px; }
  .cr-detail-image { max-height: 56vh; }
}


/* --- creation-records.css (copy button + footer) --- */

/* 文章详情头部主按钮改为「复制全文」，回原工具降级为底部淡链接 */
.cr-detail-copy { border-color: #002FA7; background: #002FA7; color: #fff; }
.cr-detail-copy:hover { background: #00247f; }
.cr-detail-copy.is-done { border-color: #1d7a4d; background: #1d7a4d; color: #fff; }
.cr-detail-copy.is-done:hover { background: #1d7a4d; }
.cr-detail-foot { flex: none; padding: 9px 20px 12px; border-top: 1px solid rgba(31,100,59,.08); background: rgba(255,255,255,.9); text-align: center; }
.cr-detail-foot[hidden] { display: none; }
.cr-detail-foot a { color: #72877b; font-size: 11px; text-decoration: none; }
.cr-detail-foot a:hover { color: #002FA7; text-decoration: underline; }

/* --- 公众号排版 v6.5：工作区高度与模块节奏修正 ---
   目标：固定底部版式胶片不再覆盖正文；编辑、预览、版式选择三块保持同一视觉节奏。
   只改布局与材质，不触碰 data-mpf-* 业务钩子。 */
body.atelier #mp-format{min-height:100dvh;height:100dvh;overflow:hidden;padding-bottom:0!important}
body.atelier #mp-format .mpf-top{height:58px;min-height:58px;padding:8px 28px;background:rgba(255,255,255,.72);border-bottom:1px solid rgba(255,255,255,.86)}
body.atelier #mp-format .mpf-workspace{height:calc(100dvh - 58px - 126px);min-height:0;width:min(100%,1320px);padding:22px 32px 18px;grid-template-columns:360px minmax(0,1fr);gap:28px;overflow:hidden}
body.atelier #mp-format .mpf-editor-panel{height:100%;max-height:none;overflow:auto;padding:18px 18px 16px;border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(232,247,236,.56));border:1px solid rgba(255,255,255,.86);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 16px 38px -28px rgba(12,79,55,.3)}
body.atelier #mp-format .mpf-canvas{min-height:0;overflow:auto;padding:0 12px 8px}
body.atelier #mp-format .mpf-stage-head{margin-bottom:12px}
body.atelier #mp-format .mpf-reader-wrap{min-height:0;display:flex;justify-content:center;align-items:flex-start}
body.atelier #mp-format .mpf-paper{width:min(100%,560px);margin:0 auto;box-shadow:0 18px 48px -26px rgba(12,79,55,.38),inset 0 1px 0 rgba(255,255,255,.96)}
body.atelier #mp-format .mpf-phone{max-height:calc(100dvh - 58px - 126px - 120px);overflow:auto}
body.atelier #mp-format .mpf-strip{height:126px;padding:10px 28px;gap:16px;background:rgba(247,252,248,.9);border-top:1px solid rgba(255,255,255,.9);box-shadow:0 -12px 28px rgba(12,79,55,.08)}
body.atelier #mp-format .mf-strip-lab{width:112px}
body.atelier #mp-format .mpf-strip .mpf-style{padding:0 126px 0 0}
body.atelier #mp-format .mpf-strip .mpf-themes{gap:8px}
body.atelier #mp-format .mpf-strip .mpf-theme{height:96px;padding:6px;border-radius:12px;background:rgba(255,255,255,.62);border:1px solid rgba(31,115,80,.10)}
body.atelier #mp-format .mpf-strip .mpf-theme.on{background:rgba(255,255,255,.92);border-color:var(--mf-accent);box-shadow:0 8px 18px -14px rgba(12,79,55,.45)}
body.atelier #mp-format .mpf-strip .mpf-mini{height:42px;border-radius:8px}
body.atelier #mp-format .mpf-strip .mpf-start{right:0;width:116px;height:38px;border-radius:10px;background:linear-gradient(145deg,#5fb98e,#2f7256);color:#fff;border:0;box-shadow:0 10px 20px -14px rgba(12,79,55,.65)}
body.atelier #mp-format .mpf-strip .mpf-start:disabled{background:rgba(255,255,255,.8);color:var(--mf-ink3);border:1px solid var(--mf-line2)}
body.atelier #mp-format .mpf-strip .mpf-cost-note{top:calc(50% + 31px);width:116px;color:var(--mf-ink3)}
@media(max-width:1080px){body.atelier #mp-format .mpf-workspace{grid-template-columns:300px minmax(0,1fr);padding:16px 18px;gap:18px}body.atelier #mp-format .mpf-strip{padding:10px 16px}.mf-strip-end{display:none!important}}
@media(max-width:640px){body.atelier #mp-format{height:auto;min-height:100dvh;overflow:visible;padding-bottom:110px!important}body.atelier #mp-format .mpf-top{height:50px;min-height:50px;padding:6px 10px}body.atelier #mp-format .mpf-workspace{height:auto;grid-template-columns:1fr;padding:10px 0 24px;overflow:visible}body.atelier #mp-format .mpf-editor-panel{height:auto;max-height:none;margin:0 12px;padding:14px;border-radius:16px}body.atelier #mp-format .mpf-canvas{overflow:visible;padding:0}body.atelier #mp-format .mpf-phone{max-height:none;overflow:visible}body.atelier #mp-format .mpf-strip{height:110px;padding:8px 10px;gap:6px}body.atelier #mp-format .mf-strip-lab{display:none}body.atelier #mp-format .mpf-strip .mpf-style{padding-right:92px}body.atelier #mp-format .mpf-strip .mpf-themes{gap:5px}body.atelier #mp-format .mpf-strip .mpf-theme{height:90px}body.atelier #mp-format .mpf-strip .mpf-start{width:84px;font-size:10px}}

/* --- 手机首页 hero 压缩（20261117-hero-compact）---
   品牌大标题原占首屏约 310px，工具产品应让用户先看到功能。
   仅 max-width:800px 生效，桌面端不变；不碰主 CTA 指向（那是另一项）。 */
@media(max-width:800px){
  body.atelier #home.home-v2 .he-intro{padding:14px 4px 12px!important}
  body.atelier #home.home-v2 .he-intro h1{
    font-size:26px!important;line-height:1.25!important;
    letter-spacing:-.03em!important;margin:8px 0 8px!important;
    white-space:normal!important;
  }
  body.atelier #home.home-v2 .he-intro h1 br{display:none!important}
  body.atelier #home.home-v2 .he-intro h1 span{color:var(--green-2,#2E9262)!important}
  body.atelier #home.home-v2 .he-kicker{font-size:10px!important;letter-spacing:.1em!important}
  body.atelier #home.home-v2 .he-intro p{font-size:13px!important;margin:0 0 14px!important}
  body.atelier #home.home-v2 .he-start{min-height:42px!important;padding:0 18px!important;font-size:13px!important}
  body.atelier #home.home-v2 .he-orbit{display:none!important}
}

/* P0 单画布：进入创作空间（iframe #studio 可见）时收起全局侧栏/顶栏，
   让创作空间独占整幅视口。返回入口由 iframe 内「返回工作台」承担。
   桌面端侧栏是 .report-nav.app-sidebar，.v3-topbar 在手机端是顶部导航，两者一并隐藏。
   注意 L1882 的 .app-shell > section 默认带侧栏偏移，收起后必须归零，否则左侧留白。 */
body:has(#studio:not([hidden])) .v3-topbar,
body.studio-body .v3-topbar,
body:has(#studio:not([hidden])) .report-nav.app-sidebar,
body.studio-body .report-nav.app-sidebar{display:none!important}
body:has(#studio:not([hidden])) .app-shell,
body.studio-body .app-shell{margin-left:0!important;padding-top:0!important}
body:has(#studio:not([hidden])) .app-shell > section,
body.studio-body .app-shell > section{width:100%!important;margin-left:0!important}
