@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');
:root{--paper:#f5f1e8;--paper-deep:#ebe5d8;--ink:#20352d;--ink-soft:#607369;--line:#d8d8c9;--accent:#b44f36;--accent-dark:#8f3925;--green:#2d5a48;--card:#fffdf8;--shadow:0 18px 44px rgba(35,51,42,.07)}
*{box-sizing:border-box}html{font-family:'DM Sans','PingFang SC',sans-serif;color:var(--ink);background:var(--paper)}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:260px;flex:none;background:var(--ink);color:#f1ebdc;padding:30px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 10px}.brand-mark{width:43px;height:43px;border-radius:50% 45% 52% 41%;display:grid;place-items:center;background:#cf7255;color:#fff;font:700 25px 'Noto Serif SC',serif;transform:rotate(-7deg)}.brand strong{font:700 26px 'Noto Serif SC',serif;letter-spacing:.07em;display:block;line-height:1.1}.brand small{font-size:9px;letter-spacing:.23em;color:#a8b6aa}.sidebar-caption{font-size:12px;color:#a8b6aa;padding:35px 12px 15px;letter-spacing:.1em}.sidebar nav{display:grid;gap:4px}.nav-link{border:0;background:transparent;color:#c8d1c7;text-align:left;padding:13px 13px;border-radius:9px;font-size:14px;transition:.18s}.nav-link span{font-size:10px;color:#729481;margin-right:14px;letter-spacing:.08em}.nav-link:hover{background:#2a4439;color:white}.nav-link.active{background:#f2eee4;color:var(--ink);font-weight:700}.nav-link.active span{color:var(--accent)}.sidebar-foot{margin-top:auto;border-top:1px solid #395347;padding:22px 10px 2px;font-size:12px;display:flex;align-items:center;gap:9px;color:#b9c7ba}.sidebar-foot small{margin-left:auto;color:#81a691}.live-dot{height:8px;width:8px;border-radius:50%;background:#9bd881;box-shadow:0 0 0 4px #9bd88122}.main{flex:1;min-width:0;padding:34px clamp(24px,4vw,72px) 80px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:25px;margin-bottom:34px}.eyebrow,.kicker{font-size:11px;font-weight:700;letter-spacing:.18em;color:var(--accent);text-transform:uppercase}.topbar h1{margin:10px 0 0;font:700 clamp(30px,3vw,42px) 'Noto Serif SC',serif;letter-spacing:.04em}.top-actions{display:flex;align-items:center;gap:20px;color:var(--ink-soft);font-size:12px;padding-top:13px}.panel{display:none;animation:enter .35s ease both}.panel.active{display:block}@keyframes enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}.intro-grid{display:grid;grid-template-columns:minmax(0,1fr) 190px;align-items:center;background:#dce7db;border-radius:16px;padding:36px 42px;margin-bottom:25px;overflow:hidden;position:relative}.intro-grid:before{content:'';position:absolute;width:320px;height:320px;border-radius:50%;border:1px solid #b6ccba;right:-100px;top:-140px}.intro-grid h2{font:700 clamp(23px,2.5vw,34px) 'Noto Serif SC',serif;line-height:1.45;max-width:670px;margin:8px 0 14px}.muted{color:var(--ink-soft);font-size:14px;line-height:1.7}.hero-sigil{font:700 125px 'Noto Serif SC',serif;color:#658674;transform:rotate(-11deg);text-align:center;line-height:1}.hero-sigil span{color:var(--accent);font-size:45px}.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:36px}.stat-card{background:var(--card);border:1px solid var(--line);padding:22px 25px;min-height:126px;border-radius:11px;box-shadow:var(--shadow)}.stat-card strong{display:block;font-size:34px;letter-spacing:-.04em;margin:8px 0 1px}.stat-card small{font-size:12px;color:var(--ink-soft)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:18px 0 18px}.section-head h2,.section-head h3{font-family:'Noto Serif SC',serif;margin:5px 0 0}.section-head h2{font-size:30px}.section-head h3{font-size:20px}.button{border:1px solid var(--line);padding:10px 17px;border-radius:7px;background:var(--card);color:var(--ink);font-size:13px;font-weight:700;white-space:nowrap;transition:.18s}.button:hover{transform:translateY(-1px);box-shadow:0 5px 13px #20352d16}.button-primary{background:var(--accent);color:#fff;border-color:var(--accent)}.button-primary:hover{background:var(--accent-dark)}.button-ghost{background:transparent}.button-danger{color:#9e4233;border-color:#e5c8bf}.text-link{border:0;background:transparent;color:var(--accent);font-weight:700;font-size:13px}.toolbar{display:flex;gap:10px;align-items:center;margin:15px 0 22px}.toolbar input{min-width:200px;max-width:350px;flex:1}.toolbar select{min-width:140px}.list-card,.card{background:var(--card);border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}.list-card:empty:after{content:'暂无数据';display:block;padding:26px;color:var(--ink-soft)}.list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;padding:17px 21px;border-bottom:1px solid #e9e9df}.list-row:last-child{border-bottom:0}.list-row:hover{background:#fbfaf5}.row-title{font-weight:700;font-size:14px;margin:0 0 5px}.row-sub{font-size:12px;color:var(--ink-soft);word-break:break-all}.row-actions{display:flex;align-items:center;gap:10px}.pill,.status{display:inline-block;padding:5px 8px;border-radius:5px;font-size:10px;font-weight:700;letter-spacing:.04em;background:#e7ede4;color:#4e725c}.status.failed,.status.withdrawn{background:#f7e4de;color:#a34734}.status.running,.status.queued,.status.unreviewed{background:#f7edda;color:#98672e}.status.succeeded,.status.published{background:#e2eee2;color:#34734f}.stars{color:var(--accent);letter-spacing:2px;font-size:13px}.two-col,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{padding:25px}.form-card{display:flex;flex-direction:column;gap:18px}.form-card label,.inline-form label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:7px}.form-card label small{font-weight:400;color:var(--ink-soft);margin-top:3px}input,select,textarea{border:1px solid #cdd3c7;border-radius:7px;background:#fffefa;color:var(--ink);padding:11px 12px;outline:none;font-size:13px}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #5f8c6b20}textarea{resize:vertical;line-height:1.65}.help-card{background:#e9eee4}.help-card h3{font:700 23px 'Noto Serif SC',serif}.help-card p{color:var(--ink-soft);line-height:1.8;font-size:14px}.large-number{font-size:11px;letter-spacing:.3em;color:var(--accent)}.inline-form{display:grid;grid-template-columns:2fr .7fr 1fr .8fr auto;gap:12px;align-items:end;margin-bottom:22px}.inline-form label input,.inline-form label select{width:100%}.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.case-card{padding:22px;background:var(--card);border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}.case-card header{display:flex;justify-content:space-between;gap:10px}.case-card h3{font:700 18px 'Noto Serif SC',serif;margin:15px 0 5px}.case-card p{font-size:13px;color:var(--ink-soft);line-height:1.7;max-height:87px;overflow:hidden}.case-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.card-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.card-heading h3{font:700 21px 'Noto Serif SC',serif;margin:0}.lower-card{margin-top:20px}.config-row{border-top:1px solid var(--line);padding:16px 0}.config-row:first-child{border-top:0}.config-row strong{display:block;font-size:14px}.config-row small{font-size:12px;color:var(--ink-soft)}.config-row form{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}.config-row form .wide{grid-column:1/-1}.full{width:100%;margin-top:14px}.scope-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.scope-grid label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12px;font-weight:500}.scope-grid input{accent-color:var(--accent)}.small{font-size:11px}.toast{position:fixed;right:26px;bottom:24px;background:var(--ink);color:white;padding:13px 20px;border-radius:8px;box-shadow:0 15px 35px #182b2360;opacity:0;transform:translateY(8px);pointer-events:none;transition:.25s;z-index:20;max-width:460px}.toast.show{opacity:1;transform:none}dialog{border:1px solid var(--line);border-radius:14px;padding:26px 30px;max-width:min(760px,92vw);width:100%;max-height:90vh;overflow:auto;background:var(--card);box-shadow:0 30px 90px #172a2480}dialog::backdrop{background:#10251bb0;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:20px}.dialog-head button{border:0;background:none;font-size:30px;color:var(--ink-soft)}.dialog-images{display:flex;gap:9px;overflow:auto;padding-bottom:9px}.dialog-images img{height:190px;width:140px;object-fit:cover;border-radius:6px}.dialog-form{display:grid;gap:12px}.dialog-form label{font-size:12px;font-weight:700;display:grid;gap:6px}.dialog-form textarea{min-height:180px}.tag-list{display:flex;gap:7px;flex-wrap:wrap}.empty{padding:28px;color:var(--ink-soft);text-align:center;font-size:13px}.mono{font-family:ui-monospace,monospace;word-break:break-all}.secret-box{background:#eef1e9;border:1px dashed #91a493;border-radius:7px;padding:12px;margin:10px 0;font-size:12px}.secret-box code{display:block;margin-top:7px;word-break:break-all;color:#8b422f}
@media(max-width:1050px){.sidebar{width:210px}.main{padding:26px}.inline-form{grid-template-columns:repeat(2,1fr)}.inline-form button{align-self:end}.stat-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:740px){.app-shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:15px}.sidebar .brand,.sidebar-caption,.sidebar-foot{display:none}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav-link{white-space:nowrap}.nav-link span{display:none}.main{padding:20px}.topbar{align-items:center}.topbar h1{font-size:27px}.top-actions #today{display:none}.intro-grid{grid-template-columns:1fr;padding:23px}.hero-sigil{display:none}.stat-grid,.two-col,.settings-grid,.case-grid{grid-template-columns:1fr}.inline-form{grid-template-columns:1fr 1fr}.toolbar{flex-wrap:wrap}}

/* 图片案例与模板目录：沿用画眉的纸张色和墨绿，突出参考视觉。 */
.case-filter-panel{background:#eaece3;border:1px solid var(--line);border-radius:14px;padding:23px 25px;margin:22px 0 17px;display:grid;gap:17px}
.filter-group h3{font-size:13px;letter-spacing:.12em;margin:0 0 10px;color:var(--ink)}
.chip-row{display:flex;flex-wrap:wrap;gap:8px}
.filter-chip{background:#fffdf8;border:1px solid #d3d8c9;color:#647469;border-radius:999px;padding:7px 13px;font-size:12px;transition:background .18s,border-color .18s,transform .18s}
.filter-chip:hover{border-color:#8da993;transform:translateY(-1px)}
.filter-chip.active{background:#275844;color:#fff;border-color:#275844;box-shadow:0 4px 12px #2d5a4828}
.case-toolbar{justify-content:space-between}
.case-grid,.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.case-card,.template-card{padding:0;background:var(--card);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:transform .2s,box-shadow .2s}
.case-card:hover,.template-card:hover{transform:translateY(-3px);box-shadow:0 22px 42px #21392f1e}
.case-cover,.template-cover{position:relative;height:230px;background:#dce4d8;overflow:hidden}
.case-cover img,.template-cover img{width:100%;height:100%;object-fit:cover;display:block}
.case-cover:after,.template-cover:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#14251b55);pointer-events:none}
.cover-label{position:absolute;top:13px;left:13px;z-index:1;background:#183529d9;color:#fff;padding:7px 10px;border-radius:6px;font-size:11px;font-weight:700;backdrop-filter:blur(4px)}
.case-card-body,.template-card-body{padding:20px 21px 22px;display:flex;flex-direction:column;flex:1}
.case-card header{align-items:center}.case-card h3,.template-card h3{font:700 19px 'Noto Serif SC',serif;line-height:1.4;margin:13px 0 9px}
.case-card .case-excerpt,.template-card p{font-size:13px;color:var(--ink-soft);line-height:1.65;margin:0 0 16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:63px}
.case-card .tag-list,.template-card .tag-list{margin-top:auto;min-height:25px}
.case-card footer,.template-card footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #e9e9df;margin-top:18px;padding-top:15px}
.case-card footer>div{display:flex;gap:7px}.case-card footer .text-link{font-size:11px;white-space:nowrap}
.template-card footer .button{padding:8px 11px}
.template-placeholder{height:100%;padding:24px;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;background:radial-gradient(circle at 72% 26%,#d8e7d0 0,#d8e7d000 35%),linear-gradient(140deg,#284a39,#62856f);color:#fff}
.template-placeholder span{font-size:9px;letter-spacing:.24em;opacity:.7}.template-placeholder strong{font:700 27px 'Noto Serif SC',serif;max-width:80%;line-height:1.35}.template-placeholder small{font-size:11px;opacity:.72}
.tag-section{padding:19px 0;border-top:1px solid var(--line)}.tag-section h3{font:700 18px 'Noto Serif SC',serif;margin:0 0 13px}.tag-section h3 small{font:600 12px 'DM Sans',sans-serif;color:var(--ink-soft);margin-left:6px}
dialog.gallery-dialog{max-width:min(1160px,94vw);padding:20px 24px 26px}
.case-detail,.template-detail{display:grid;grid-template-columns:minmax(0,46%) minmax(0,54%);gap:28px}
.case-detail-media,.template-detail-media{background:#e8eee3;border-radius:11px;min-height:440px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.case-detail-media img,.template-detail-media img{width:100%;height:100%;max-height:680px;object-fit:contain}
.case-detail-content,.template-detail-content{min-width:0;max-height:70vh;overflow:auto;padding-right:7px}
.case-detail-content h2,.template-detail-content h2{font:700 28px 'Noto Serif SC',serif;margin:8px 0 10px}
.case-detail-content .dialog-form{margin-top:18px}.case-detail-content textarea{min-height:220px}
.template-detail-media .template-placeholder{width:100%;height:100%;min-height:440px}
.template-detail-content h3{font:700 17px 'Noto Serif SC',serif;margin:22px 0 10px}
.detail-note{background:#e9eee4;border:1px solid #d5dfd1;border-radius:9px;padding:15px;margin-top:20px;font-size:13px}.detail-note p{margin:6px 0 0;color:var(--ink-soft);line-height:1.6}
.prompt-block{white-space:pre-wrap;word-break:break-word;background:#e8eee5;border:1px solid #d2decf;padding:16px;border-radius:8px;max-height:260px;overflow:auto;font-size:12px;line-height:1.7}
@media(max-width:1350px){.case-grid,.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.case-grid,.template-grid{grid-template-columns:1fr}.case-detail,.template-detail{grid-template-columns:1fr}.case-detail-media,.template-detail-media{min-height:260px;max-height:360px}.case-detail-content,.template-detail-content{max-height:none}.case-cover,.template-cover{height:240px}}

/* 画眉品牌视觉：以蜂鸟的蓝青为基底，暖色只用于重点操作与状态。 */
:root{
  --paper:#f5f8fb;--paper-deep:#e9f1f7;--ink:#19334d;--ink-soft:#62778a;
  --line:#dce6ed;--accent:#ee5266;--accent-dark:#d83a52;--green:#148f9d;
  --card:#ffffff;--shadow:0 14px 36px rgba(31,74,110,.07)
}
html{background:var(--paper)}
body{background:radial-gradient(circle at 82% -6%,#e6f8fc 0,transparent 30%),var(--paper)}
.sidebar{
  width:272px;background:#fff;color:var(--ink);padding:28px 20px;
  border-right:1px solid var(--line);box-shadow:5px 0 24px rgba(32,83,125,.035)
}
.brand{gap:11px;padding:0 7px}
.brand-mark{
  width:62px;height:62px;flex:none;border:0;border-radius:16px;background:#f3fbfc;
  display:grid;place-items:center;transform:none;overflow:hidden
}
.brand-mark img{width:58px;height:58px;object-fit:contain;display:block}
.brand strong{font-size:27px;letter-spacing:.1em;color:var(--ink)}
.brand small{font-size:12px;letter-spacing:.08em;color:#5f899b}
.sidebar nav{gap:5px;margin-top:30px}
.nav-link{color:#52687d;border-radius:10px;padding:12px 14px;position:relative}
.nav-link span{color:#a7b6c4;margin-right:16px}
.nav-link:hover{color:#17436a;background:#eef8fc}
.nav-link.active{background:#e9f7fb;color:#086a82;box-shadow:inset 3px 0 #13bad0}
.nav-link.active span{color:#e94762}
.sidebar-foot{border-top:1px solid var(--line);color:#738a9a}
.live-dot{background:#20b891;box-shadow:0 0 0 4px #20b89122}
.main{padding-top:37px}
.topbar{border-bottom-color:var(--line);margin-bottom:30px}
.topbar h1{letter-spacing:.025em}
.eyebrow,.kicker{color:#069db1}
.top-actions{color:#728b9e}
.intro-grid{
  min-height:250px;grid-template-columns:minmax(0,1fr) 230px;padding:36px 42px;
  background:linear-gradient(112deg,#eaf9fc 0%,#f4fbfb 44%,#fff4e7 100%);
  border:1px solid #d8edf1;border-radius:18px
}
.intro-grid:before{width:460px;height:460px;border-color:#c8eaf0;right:-132px;top:-130px}
.intro-grid:after{content:'';position:absolute;width:220px;height:220px;border:1px solid #f8dbab;border-radius:50%;right:64px;top:109px}
.intro-grid h2{max-width:570px;line-height:1.38}
.intro-grid .muted{max-width:610px}
.hero-sigil{position:relative;z-index:1;transform:none;line-height:0;text-align:center}
.hero-sigil img{width:210px;height:210px;object-fit:contain;filter:drop-shadow(0 13px 14px rgba(33,117,140,.12))}
.stat-card,.list-card,.card,.case-card,.template-card{border-color:var(--line);box-shadow:var(--shadow)}
.stat-card{position:relative;overflow:hidden}
.stat-card:before{content:'';position:absolute;inset:0 auto 0 0;width:4px;background:#14bad0}
.stat-card:nth-child(3n+2):before{background:#f4b821}
.stat-card:nth-child(3n):before{background:#ed5968}
.button{border-radius:9px}
.button-primary{background:#ec5067;border-color:#ec5067;box-shadow:0 6px 15px rgba(236,80,103,.16)}
.button-primary:hover{background:#d83955;border-color:#d83955}
#import-submit:disabled,#import-submit:disabled:hover{background:#dce5ea;border-color:#dce5ea;color:#6f8290;box-shadow:none;transform:none;cursor:not-allowed}
.button-ghost:hover{border-color:#80cbd5;color:#087f94}
.text-link{color:#087f94}
.text-link:hover{text-decoration:underline}
.list-row{border-bottom-color:#e9eff3}
.list-row:hover{background:#f5fbfd}
.pill,.status{background:#e9f8f9;color:#177689}
.status.failed,.status.withdrawn{background:#fff0ed;color:#b94350}
.status.running,.status.queued,.status.unreviewed{background:#fff4dc;color:#986c18}
.status.succeeded,.status.published{background:#e9f8f0;color:#218768}
.stars{color:#ee9d19}
input,select,textarea{background:#fff;border-color:#d1e0e8}
input:focus,select:focus,textarea:focus{border-color:#15a9bb;box-shadow:0 0 0 3px #15a9bb20}
.help-card,.detail-note{background:#eef9fa;border-color:#d5eef0}
.case-filter-panel{background:#edf7fa;border-color:#d8ebf1}
.filter-chip{background:#fff;border-color:#d9e7ed;color:#5e7787}
.filter-chip:hover{border-color:#63bdca}
.filter-chip.active{background:#087f94;border-color:#087f94;box-shadow:0 4px 12px #0e9aaa27}
.case-cover,.template-cover{background:#e5f0f3}
.case-cover:after,.template-cover:after{background:linear-gradient(transparent,#18364d55)}
.cover-label{background:#173e56df}
.case-card footer,.template-card footer{border-top-color:#e9eff3}
.template-placeholder{background:radial-gradient(circle at 74% 22%,#58cfe3 0,transparent 37%),linear-gradient(145deg,#10436b,#1298ae)}
.prompt-block{background:#f1f8fa;border-color:#d8e8ed}
.secret-box{background:#f1f9fa;border-color:#89cbd2}
.secret-box code{color:#b04158}
.credential-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.credential-heading .button{padding:6px 12px;font-size:12px}.credential-box code{font-size:13px;line-height:1.6;user-select:all}
dialog{border-color:#d5e3e9;background:#fff}
dialog::backdrop{background:#112e43a8}
@media(max-width:1050px){.sidebar{width:225px}.intro-grid{grid-template-columns:minmax(0,1fr) 170px}.hero-sigil img{width:165px;height:165px}}
@media(max-width:740px){
  .sidebar{width:100%;padding:12px 14px 10px;border-right:0;border-bottom:1px solid var(--line);box-shadow:none}
  .sidebar .brand{display:flex;padding:0 3px 10px}
  .brand-mark{width:40px;height:40px;border-radius:10px}.brand-mark img{width:38px;height:38px}
  .brand strong{font-size:20px}.brand small{font-size:10px}
  .sidebar nav{margin-top:10px}
  .sidebar nav{padding-bottom:3px}.nav-link{padding:9px 12px}
  .main{padding:20px}.topbar{gap:12px;align-items:flex-start}.top-actions{padding-top:1px}
  .intro-grid{grid-template-columns:1fr;min-height:0;padding:23px}
}

/* 服务配置：两类配置共用清晰的扁平列表。 */
.settings-tabs{display:flex;gap:27px;border-bottom:1px solid var(--line);margin:6px 0 26px}
.settings-tab{appearance:none;border:0;border-bottom:3px solid transparent;background:none;color:var(--ink-soft);font-size:15px;font-weight:700;padding:12px 4px 15px;display:flex;align-items:center;gap:9px}
.settings-tab:hover{color:#087f94}
.settings-tab.active{color:var(--ink);border-bottom-color:#13bad0}
.settings-tab span{min-width:21px;border-radius:999px;background:#eaf3f7;color:#597e91;padding:2px 6px;font-size:11px;text-align:center}
.settings-tab.active span{background:#dff5f7;color:#087f94}
.settings-pane[hidden]{display:none!important}
.settings-pane-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.settings-pane-head h3{font:700 23px 'Noto Serif SC',serif;margin:0 0 5px}
.settings-pane-head p{margin:0}
.settings-table-wrap{border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow);overflow-x:auto}
.settings-table{min-width:800px}
.settings-table-head,.settings-table-row{display:grid;align-items:center;column-gap:18px;padding:0 22px}
.provider-table .settings-table-head,.provider-table .settings-table-row{grid-template-columns:minmax(190px,1.4fr) minmax(210px,1.6fr) 78px 84px 76px}
.model-table .settings-table-head,.model-table .settings-table-row{grid-template-columns:minmax(200px,1.4fr) minmax(210px,1.5fr) 84px 95px 132px}
.settings-table-head{min-height:49px;background:#f3f8fa;border-bottom:1px solid var(--line);font-size:11px;font-weight:700;letter-spacing:.04em;color:#688193}
.settings-table-row{min-height:78px;border-bottom:1px solid #e9eff3;font-size:13px}
.settings-table-row:last-child{border-bottom:0}
.settings-table-row:hover{background:#f8fcfd}
.storage-form{max-width:820px;margin-top:20px}.storage-form .editor-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.storage-form [hidden]{display:none!important}.storage-form .button{align-self:flex-start}
.settings-identity{min-width:0}.settings-identity strong{display:block;font-size:14px;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-identity small{display:block;color:var(--ink-soft);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-url{font-size:11px;color:#587489;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-priority{font-weight:700;color:#096e83}
.settings-actions{display:flex;gap:6px}.settings-actions .button{padding:7px 10px;font-size:11px}
.editor-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-two-col label{min-width:0}
.dialog-form .check-label{display:flex;flex-direction:row;align-items:center;gap:9px}.check-label input{width:16px;height:16px;accent-color:#0c98aa}
.dialog-form .generation-source-toggle{align-items:flex-start;padding:14px 16px;border:1px solid #bdd9df;border-radius:10px;background:#f0f9fb;cursor:pointer}.generation-source-toggle input{flex:none;margin:3px 0 0}.generation-source-toggle strong,.generation-source-toggle small{display:block}.generation-source-toggle strong{font-size:14px;color:#176b7a}.generation-source-toggle small{margin-top:4px;font-size:12px;font-weight:400;line-height:1.5;color:#587783}
@media(max-width:740px){.settings-pane-head{align-items:flex-start}.settings-pane-head .button{margin-top:2px}.settings-tabs{gap:16px}.settings-tab{font-size:13px}.editor-two-col{grid-template-columns:1fr}}

/* 弹窗只让内容层滚动，关闭按钮始终留在右上角。 */
#detail-dialog{padding:0;overflow:visible;max-height:90vh}
#detail-dialog.gallery-dialog{padding:0}
.dialog-scroll{max-height:90vh;overflow-y:auto;overscroll-behavior:contain;padding:30px 34px}
.gallery-dialog .dialog-scroll{padding:28px 30px}
.dialog-close{position:absolute;top:14px;right:16px;z-index:3;display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:9px;background:#f1f7f9;color:#597386;font-size:29px;line-height:1;box-shadow:0 2px 10px #17384b18}
.dialog-close:hover{background:#e1f2f6;color:#096f83}
.dialog-scroll h2:first-child{padding-right:44px}

/* 笔记详情：图文、话题与人工标注分区。 */
#detail-dialog.note-dialog{max-width:min(980px,94vw)}
.note-detail h2{font:700 clamp(28px,3vw,40px) 'Noto Serif SC',serif;line-height:1.35;margin:0 44px 12px 0;overflow-wrap:anywhere}
.note-detail-meta{margin:0 0 22px}
.note-detail-meta a{color:#087f94;text-decoration:underline;text-decoration-color:#8fcbd4;text-underline-offset:3px}
.note-detail-meta a:hover{color:#065b6d;text-decoration-color:currentColor}
.xsec-link-status{display:inline-flex;align-items:center;gap:5px;color:#087f94;font-size:12px;white-space:nowrap}
.xsec-link-status[hidden]{display:none}
.xsec-spinner{width:12px;height:12px;border:2px solid #b9dce3;border-top-color:#087f94;border-radius:50%;animation:xsec-spin .7s linear infinite}
@keyframes xsec-spin{to{transform:rotate(360deg)}}
.note-detail .dialog-images{gap:11px;padding-bottom:12px;align-items:flex-start}
.note-image-item{width:170px;flex:none}
.note-image-id{margin-top:8px;padding:7px 8px;border:1px solid #d9e8ed;border-radius:7px;background:#f4f9fb;color:#526e7d}
.note-image-id-heading{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:11px;font-weight:700}
.note-image-id-heading button{border:0;background:none;color:#087f94;padding:0;font-size:11px;font-weight:700}
.note-image-id code{display:block;margin-top:3px;font-size:10px;line-height:1.35;overflow-wrap:anywhere;user-select:all}
.note-image-media{height:228px;position:relative;background:#e7f0f3;border-radius:8px;overflow:hidden}
.note-image-media img,.note-image-media video{width:100%;height:100%;display:block;object-fit:cover}
.note-image-media video{position:absolute;inset:0;opacity:0;pointer-events:none}
.note-image-media.is-playing video{opacity:1}
.note-image-media.is-live:focus-visible{outline:3px solid #1d9eb1;outline-offset:-3px}
.note-live-badge{position:absolute;z-index:2;top:9px;left:9px;display:inline-flex;align-items:center;gap:4px;padding:4px 8px 4px 4px;height:24px;border-radius:999px;background:rgba(64,64,64,.25);color:#fff;font-size:11px;font-weight:700;letter-spacing:.05em;line-height:1;pointer-events:none;backdrop-filter:saturate(150%) blur(10px);-webkit-backdrop-filter:saturate(150%) blur(10px)}
.note-image-media .note-live-icon{width:16px;height:16px;object-fit:contain;flex:none}
.note-live-badge.unavailable{letter-spacing:0}
.note-image-action{width:100%;margin-top:7px;padding:9px 5px;border:1px solid #1b8fa1;border-radius:7px;background:#0e8095bf;color:white;font-size:12px;font-weight:700;transition:background .18s}
.note-image-action:hover:not(:disabled){background:#0e8095}
.note-image-action:disabled{opacity:.6;cursor:wait}
.note-live-label{color:#16879a;font-weight:700}
.note-copy,.note-annotation,.note-snapshots{margin-top:26px}
.note-detail h3{font:700 17px 'Noto Serif SC',serif;margin:0 0 12px}
.note-body{white-space:pre-wrap;overflow-wrap:anywhere;color:#4c6475;line-height:1.85;font-size:15px;margin:0 0 18px}
.note-topics{display:flex;flex-wrap:wrap;gap:8px 15px;color:#1281b8;font-size:14px;line-height:1.7}
.note-topics span{overflow-wrap:anywhere}
.note-annotation{border-top:1px solid #e0eaf0;padding-top:22px}
.note-annotation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.note-annotation-heading h3{margin:0}
#note-save-state{font-size:12px;color:#718999}
.note-field{display:flex;align-items:flex-start;gap:22px;margin-top:21px}
.note-field>strong{font-size:13px;min-width:35px;padding-top:8px}
.note-stars-control{display:flex;gap:3px}
.note-star{border:0;background:transparent;color:#c9d4db;font-size:31px;line-height:1;padding:2px 4px;transition:color .12s,transform .12s}
.note-star.is-on{color:#f3b641}
.note-star:hover{transform:scale(1.12)}
.note-star:focus-visible,.note-tag-chip button:focus-visible,.note-add-tag:focus-visible{outline:2px solid #0e9ec0;outline-offset:2px}
.note-tags-control{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:39px}
.note-tag-chip{position:relative;display:inline-flex;align-items:center;min-height:33px;border:1px solid #bfd4df;border-radius:7px;background:#f7fbfd;color:#315a71;padding:5px 28px 5px 10px;font-size:13px}
.note-tag-chip button{position:absolute;top:0;right:2px;width:24px;height:24px;border:0;background:transparent;color:#718a9b;font-size:17px;line-height:1}
.note-tag-chip button:hover{color:#b84d53}
.note-add-tag{width:33px;height:33px;border:1px dashed #8bb9c8;border-radius:7px;background:#fff;color:#148fa5;font-size:24px;line-height:1}
.note-add-tag:hover{background:#eaf8fa}
.note-tag-input{width:155px;height:34px;padding:6px 9px}
.template-preview{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.template-preview>h3{margin-top:0}
.template-preview-controls{display:flex;gap:8px;align-items:center}
.template-preview-controls select{min-width:0;flex:1}
.template-preview-output{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:start;margin-top:14px}
.template-preview-output img{width:100px;height:130px;object-fit:cover;border-radius:7px}
.template-preview-output .prompt-block{margin:0;max-height:300px}
@media(max-width:740px){.dialog-scroll,.gallery-dialog .dialog-scroll{padding:25px 18px}.dialog-close{top:9px;right:9px}.note-detail h2{font-size:27px}.note-image-item{width:135px}.note-image-media{height:182px}.note-field{gap:11px}}

/* 笔记仓库：封面保持原比例，按列形成瀑布流。 */
.note-search-wrap{display:flex;justify-content:center;margin:26px 0 27px}
.note-search-box{display:flex;align-items:center;gap:15px;width:min(850px,100%);min-height:69px;padding:7px 8px 7px 21px;border:1px solid #d5e3e9;border-radius:18px;background:#fff;box-shadow:0 13px 35px #1b4b6010;transition:border-color .18s,box-shadow .18s}
.note-search-box:focus-within{border-color:#2ca9bd;box-shadow:0 12px 35px #0e98ac1b}
.note-search-box>svg{width:21px;height:21px;flex:none;fill:none;stroke:#8399a6;stroke-width:1.8;stroke-linecap:round}
.note-search-box input{min-width:0;flex:1;border:0;box-shadow:none!important;background:transparent;font-size:16px;padding:11px 0}
.note-search-box input:focus{border:0;box-shadow:none}
.note-search-box button{flex:none;height:49px;padding:0 25px;border:0;border-radius:12px;background:#173b50;color:#fff;font-size:14px;font-weight:700}
.note-search-box button:hover{background:#087f94}
.note-category-tabs{display:flex;justify-content:center;gap:22px;overflow-x:auto;white-space:nowrap;border-bottom:1px solid #dce6eb;margin-bottom:15px;padding:0 4px;scrollbar-width:thin}
.note-category-tab{display:inline-flex;align-items:center;gap:5px;flex:none;padding:9px 0 14px;border:0;border-bottom:3px solid transparent;background:transparent;color:#718695;font-size:15px;font-weight:600}
.note-category-tab span{color:#a3b1bb;font-size:11px;font-weight:500}
.note-category-tab:hover{color:#087f94}
.note-category-tab.active{border-bottom-color:#df4d62;color:#17344d}
.note-browse-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 20px}
.note-view-tabs{display:flex;gap:17px}
.note-view-tab{border:1px solid transparent;border-radius:999px;background:transparent;color:#8297a5;font-size:12px;font-weight:700;padding:7px 12px}
.note-view-tab.active{border-color:#bfd8e1;background:#eaf5f8;color:#173b50}
.note-view-tab:hover{color:#087f94}
.note-star-filter{display:flex;align-items:center;gap:7px;color:#8095a3;font-size:12px;white-space:nowrap}
.note-star-filter select{width:107px;padding:8px 9px;border-color:#d9e5e9;background:#fff;font-size:12px}
.note-image-failed{color:#b3563f;font-weight:700}
.note-image-alert{border:1px solid #efcebd;background:#fff6f0;border-radius:10px;padding:14px 17px;margin:14px 0;color:#81452f;font-size:13px}
.note-image-alert ul{padding-left:20px;line-height:1.6;margin:8px 0 12px}
.note-waterfall{column-count:5;column-gap:16px}
.note-entry{display:inline-block;width:100%;margin:0 0 17px;border:1px solid #e0e9ee;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 5px 18px #1b4b600b;break-inside:avoid;cursor:pointer;vertical-align:top;transition:transform .18s,box-shadow .18s}
.note-entry:hover{transform:translateY(-3px);box-shadow:0 16px 30px #1b4b601d}
.note-entry:focus-visible{outline:2px solid #13bad0;outline-offset:3px}
.note-cover{position:relative;display:block;overflow:hidden;background:#e7f0f3;color:#7c95a5}
.note-cover img{display:block;width:100%;height:auto}
.note-cover-empty{display:grid;place-items:center;width:100%;aspect-ratio:3/4;padding:16px;background:linear-gradient(145deg,#dcecf1,#f4f8fa);font-size:12px}
.note-image-count,.note-cover-live{position:absolute;right:9px;top:9px;border-radius:6px;padding:4px 7px;background:#18364dbf;color:#fff;font-size:10px;font-weight:700;line-height:1.2;backdrop-filter:blur(6px)}
.note-cover-live{left:9px;right:auto;letter-spacing:.05em}
.note-content{padding:12px 13px 13px}
.note-content h3{font:700 15px/1.5 'Noto Serif SC',serif;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.note-excerpt{font-size:11px;line-height:1.55;color:#8194a0;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.note-card-footer{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-top:10px;color:#8a9eaa;font-size:10px}
.note-card-footer .mono{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal}
.note-rating{flex:none;color:#dc9750;font-size:11px;font-weight:700}
.note-content .note-image-failed{margin-top:8px;font-size:10px}
.note-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.note-tags .pill{font-size:10px;padding:3px 6px}
.note-empty{column-span:all;padding:50px 18px;border:1px dashed #cadde5;border-radius:13px;background:#f8fbfc;text-align:center;color:#8296a2;font-size:13px}
@media(max-width:1650px){.note-waterfall{column-count:4}}
@media(max-width:1220px){.note-waterfall{column-count:3}}
@media(max-width:880px){.note-waterfall{column-count:2}}
@media(max-width:520px){.note-waterfall{column-gap:10px}.note-entry{margin-bottom:11px}.note-content{padding:9px 10px}.note-content h3{font-size:13px}.note-search-box{min-height:59px;padding-left:14px;gap:9px}.note-search-box input{font-size:13px}.note-search-box button{height:43px;padding:0 14px}.note-category-tabs{justify-content:flex-start;gap:17px}.note-browse-controls{flex-wrap:wrap}.note-star-filter{margin-left:auto}}

.pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 4px;flex-wrap:wrap}
.pagination-total{font-size:12px;color:var(--ink-soft)}
.pagination-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.page-button{min-width:34px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:12px;cursor:pointer}
.page-button:hover:not(:disabled){border-color:#63bdca;color:#087f94;background:#f2fbfd}
.page-button.active{border-color:#087f94;background:#087f94;color:#fff}
.page-button:disabled{opacity:.45;cursor:not-allowed}

/* 左侧导航按业务区域分组。 */
.sidebar{width:184px;padding:24px 10px;overflow-y:auto}
.brand{gap:9px;padding:0 3px}
.brand-mark{width:50px;height:50px;border-radius:13px}
.brand-mark img{width:47px;height:47px}
.brand strong{font-size:24px}
.brand small{font-size:10px}
.sidebar nav{display:flex;flex-direction:column;gap:15px;margin-top:27px}
.nav-group{display:grid;gap:4px}
.nav-group-title{padding:0 13px;color:#a8b0b8;font-size:12px;font-weight:700;letter-spacing:.1em;line-height:1.6}
.nav-link{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 13px;font-size:15px}
.sidebar a.nav-link{text-decoration:none}
.nav-icon-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.nav-icon{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#7d99a8}
.nav-link:hover .nav-icon,.nav-link.active .nav-icon{color:#087f94}
@media(max-width:1050px) and (min-width:741px){.sidebar{width:172px;padding-inline:8px}}
@media(max-width:740px){
  .sidebar{width:100%;height:auto;overflow:visible;padding:12px 14px 10px}
  .sidebar nav{flex-direction:row;gap:6px;overflow-x:auto;margin-top:10px;padding-bottom:3px}
  .nav-group{display:flex;flex:none;gap:5px}
  .nav-group-title{display:none}
  .nav-link{width:auto;white-space:nowrap;padding:9px 12px}
}

/* 总览保留页头，其余页面在内容区标题旁放轻量刷新入口。 */
.topbar.is-hidden{display:none}
.panel:not(#panel-overview)>.section-head{margin-top:0}
.section-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:none}
.refresh-icon-button{width:36px;height:36px;padding:8px;display:inline-flex;align-items:center;justify-content:center;flex:none;border:1px solid #e0e7ec;border-radius:9px;background:#f7f9fa;color:#8a9ba7;box-shadow:none;cursor:pointer;transition:color .18s,border-color .18s,background-color .18s}
.refresh-icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.refresh-icon-button:hover{color:#536e80;border-color:#b9cbd5;background:#eff4f6}
.refresh-icon-button:focus-visible{outline:2px solid #087f94;outline-offset:2px}
@media(max-width:740px){.section-head,.settings-pane-head{align-items:flex-start}.section-actions{gap:6px}.section-actions>.muted{display:none}}

/* 任务详情按调用顺序展示后端返回，长响应在独立区域滚动。 */
dialog.task-dialog{max-width:min(1100px,94vw)}
.task-detail h3{font:700 18px 'Noto Serif SC',serif;margin:25px 0 12px}
.task-detail details{border:1px solid var(--line);border-radius:10px;background:#f8fbfc;margin:12px 0;padding:13px 15px}
.task-detail summary{cursor:pointer;font-weight:700;color:var(--ink);line-height:1.5}
.task-detail summary span{font-size:11px;font-weight:400;color:var(--ink-soft);margin-left:8px}
.task-parameter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.task-parameter-box{min-width:0}
.task-parameter-box h4{margin:0 0 7px;color:#506a79;font-size:12px;font-weight:700}
.task-parameter-box .task-response{margin:0;min-height:140px;max-height:420px}
@media(max-width:720px){.task-parameter-grid{grid-template-columns:1fr}}
.task-response{max-height:420px;overflow:auto;margin:12px 0 0;padding:14px;border-radius:8px;background:#fff;border:1px solid var(--line);font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.task-children{display:grid;gap:8px}
.task-child{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);text-align:left}
.task-child:hover{background:#f2fafc}
.profile-row{display:inline-flex;align-items:center;gap:14px}.profile-row img{width:64px;height:64px;object-fit:cover;border-radius:12px;background:#eef4f7}.profile-images{display:flex;gap:10px;overflow-x:auto;margin:16px 0}.profile-images img{width:128px;height:128px;object-fit:cover;border-radius:12px}
.character-card-preview{margin:16px 0}.character-card-preview img{display:block;width:100%;max-height:65vh;object-fit:contain;border-radius:12px;background:#eef4f7}
.profile-category-filter{display:inline-flex;align-items:center;gap:9px;margin:0 0 18px;color:var(--ink-soft);font-size:13px}.profile-category-filter select{min-width:170px}
.generation-profile-picker{border:1px solid #d8e5ea;border-radius:10px;padding:15px;background:#f8fbfc}.generation-profile-picker>strong{font-size:13px}.generation-profile-picker>p{margin:5px 0 12px;color:var(--ink-soft);font-size:12px}.generation-profile-options{max-height:230px;overflow:auto;display:grid;gap:5px}.generation-profile-category{padding:9px 5px 3px;color:#7d93a0;font-size:11px;font-weight:700}.generation-profile-option{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:7px 10px;border:1px solid #e0e9ed;border-radius:8px;background:#fff;font-size:13px}.generation-profile-option label{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;cursor:pointer}.generation-profile-option input{width:16px;height:16px;flex:none;accent-color:#0c98aa}.generation-profile-option .generation-primary-choice{color:#587582;font-size:12px;white-space:nowrap}.generation-primary-choice:has(input:disabled){opacity:.45}
.generation-scene-order{margin-left:auto;color:#0c8395;font-size:11px;white-space:nowrap}

/* 三列工作台：区域图标栏、当前区域菜单、内容。 */
.app-shell{align-items:stretch}
.section-rail{width:88px;flex:none;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;align-items:center;background:#103f49;color:#edf9f9;border-right:1px solid #0b3540;z-index:5}
.rail-brand{width:100%;min-height:132px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-bottom:1px solid #ffffff24}
.rail-brand img{display:block;width:55px;height:55px;object-fit:contain;border-radius:14px;background:#f2fbfc;padding:3px}
.rail-brand strong{font:700 15px 'Noto Serif SC',serif;letter-spacing:.12em;color:#fff}
.rail-nav{width:100%;display:flex;flex-direction:column;align-items:center;gap:7px;padding:22px 10px;overflow-y:auto}
.rail-link{width:68px;min-height:65px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:13px;background:transparent;color:#b6d7da;text-decoration:none;font-size:11px;font-weight:700;line-height:1.1;transition:background .18s,color .18s,transform .18s}
.rail-link svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rail-link:hover{background:#ffffff1c;color:#fff;transform:translateY(-1px)}
.rail-link.active{background:#ee5266;color:#fff;border-color:#f37384;box-shadow:0 7px 17px #082f3840}
.rail-link:focus-visible{outline:2px solid #0c9caf;outline-offset:2px}
.rail-docs{margin-top:auto;margin-bottom:17px}
.sidebar{width:226px;flex:none;padding:0 14px 18px;background:#f2f9fa;border-right:1px solid var(--line);box-shadow:none;overflow-y:auto}
.sidebar-head{min-height:132px;margin:0 -14px;padding:24px 20px 18px;display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid var(--line)}
.sidebar-head small{display:block;color:#8298a0;font-size:10px;font-weight:700;letter-spacing:.08em;white-space:nowrap}
.sidebar-head h2{font:700 28px 'Noto Serif SC',serif;line-height:1.1;margin:9px 0 0;color:var(--ink);white-space:nowrap}
.sidebar-head>span{font-size:10px;color:#93a8ae;white-space:nowrap;align-self:flex-end;margin-bottom:3px}
.sidebar nav{margin-top:0;padding-top:20px;gap:0}
.sidebar nav:before{content:'页面';display:block;padding:0 13px 13px;color:#91a5ab;font-size:11px;font-weight:700;letter-spacing:.14em}
.sidebar .nav-group-title{display:none}
.sidebar .nav-group{gap:5px}
.sidebar .nav-link{min-height:47px;padding:11px 13px 11px 17px;gap:0;font-size:15px;font-weight:600;color:#5f7881}
.sidebar .nav-link .nav-icon{display:none}
.sidebar .nav-link:before{content:'';width:7px;height:7px;flex:none;border-radius:50%;background:#afd4d8;margin-right:13px}
.sidebar .nav-link:hover{background:#e5f5f6;color:#087f94}
.sidebar .nav-link.active{background:#dff3f4;color:#087f94;box-shadow:none}
.sidebar .nav-link.active:before{background:#ee5266}
.sidebar-foot{margin-top:auto;padding:16px 10px 0;font-size:11px;border-top:1px solid var(--line)}
.main{flex:1;min-width:0;padding:31px clamp(24px,3vw,54px) 80px}
@media(min-width:741px){.sidebar .nav-group:not(.active-section){display:none}}
@media(max-width:1120px) and (min-width:741px){.section-rail{width:74px}.rail-link{width:60px}.sidebar{width:194px;padding-inline:10px}.sidebar-head{margin-inline:-10px;padding-inline:15px}.sidebar-head>span{display:none}.main{padding-inline:24px}}
@media(max-width:740px){
  .section-rail{position:static;width:100%;height:auto;flex-direction:row;min-height:68px;padding:8px 10px;gap:10px}
  .rail-brand{width:auto;min-height:0;border:0}.rail-brand img{width:40px;height:40px}.rail-brand strong{display:none}
  .rail-nav{flex:1;min-width:0;flex-direction:row;justify-content:flex-start;gap:2px;padding:0;overflow-x:auto}
  .rail-link{width:48px;min-height:48px;gap:2px;flex:none;font-size:9px;border-radius:9px}
  .rail-link svg{width:20px;height:20px}.rail-docs{margin:0}
  .sidebar{position:static;width:100%;height:auto;overflow:visible;padding:9px 12px;border-right:0;border-bottom:1px solid var(--line)}
  .sidebar-head,.sidebar-foot,.sidebar nav:before{display:none}
  .sidebar nav{padding:0;margin:0;display:flex;gap:5px;overflow-x:auto}
  .sidebar .nav-group{display:flex;flex:none;gap:4px}
  .sidebar .nav-group:not(.active-section){display:none}
  .sidebar .nav-link{width:auto;min-height:37px;padding:8px 10px;font-size:13px;white-space:nowrap}
  .sidebar .nav-link:before{width:6px;height:6px;margin-right:6px}
  .main{padding:20px}
}

/* 生图列表：左侧多行任务信息，右侧并排图片。 */
.generation-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,42%);gap:22px;align-items:center;padding:18px 21px;border-bottom:1px solid #e4ebee}
.generation-entry:last-child{border-bottom:0}
.generation-entry-main,.generation-gallery{min-width:0}
.generation-entry-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.generation-entry-heading h3{margin:0;font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.generation-entry-meta{display:grid;gap:4px;margin-top:9px;color:#718897;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.generation-entry-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.generation-gallery-label{margin-bottom:8px;color:#8095a3;font-size:11px;font-weight:700;letter-spacing:.05em}
.generation-thumbs{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:1px 1px 5px;scrollbar-width:thin}
.generation-thumb{position:relative;flex:0 0 88px;width:88px;height:112px;padding:0;border:1px solid #d7e5eb;border-radius:8px;overflow:hidden;background:#e9f2f5;box-shadow:0 2px 8px #183e4d13;transition:transform .18s,border-color .18s}
.generation-thumb:hover{transform:translateY(-2px);border-color:#0c9caf}
.generation-thumb:focus-visible{outline:2px solid #087f94;outline-offset:2px}
.generation-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.generation-thumb span{position:absolute;left:5px;bottom:5px;padding:2px 6px;border-radius:4px;background:#102a40b8;color:#fff;font-size:10px;font-weight:700}
.generation-thumbs-empty{display:grid;place-items:center;min-height:112px;width:100%;border:1px dashed #d5e3e9;border-radius:8px;color:#9aacb6;background:#f8fbfc;font-size:12px}
@media(max-width:580px){.generation-entry{grid-template-columns:1fr;gap:16px}.generation-gallery{grid-row:2}}

/* 生图大图预览保留原图比例，并提供上一张和下一张。 */
#detail-dialog.generation-preview-dialog{max-width:min(1100px,94vw);background:#102436;border-color:#375366;color:#f3f8fa}
.generation-preview-dialog .dialog-scroll{padding:22px 24px 20px}
.generation-preview-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-right:54px;font-size:13px;color:#b4cbd8}
.generation-preview-heading strong{font-size:18px;color:#f3f8fa}
.generation-preview-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;margin-top:16px;min-height:160px}
.generation-preview-stage.single{grid-template-columns:minmax(0,1fr)}
.generation-preview-stage img{display:block;max-width:100%;max-height:calc(90vh - 165px);width:auto;height:auto;margin:auto;object-fit:contain;border-radius:7px}
.generation-preview-arrow{width:42px;height:52px;border:1px solid #ffffff40;border-radius:9px;background:#ffffff1a;color:white;font-size:37px;line-height:1}
.generation-preview-arrow:hover:not(:disabled){background:#ffffff38}
.generation-preview-arrow:disabled{opacity:.25;cursor:default}
.generation-preview-arrow:focus-visible{outline:2px solid #60d4e2;outline-offset:2px}
.generation-preview-id{margin:13px 0 0;text-align:center;color:#9db7c5;font-size:11px;overflow-wrap:anywhere}
@media(max-width:580px){.generation-preview-dialog .dialog-scroll{padding:18px 12px}.generation-preview-stage{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}.generation-preview-arrow{width:30px;height:44px;font-size:28px}}

.dialog-form [hidden]{display:none!important}
