
:root[data-theme=dark]{--bg:#191919;--panel:#272727;--ink:#ededed;--muted:#bdbdbd;--green:#bfbfbf;--line:#545454;color-scheme:dark}

[data-theme=dark] body{background:var(--bg);color:var(--ink)}

[data-theme=dark] aside{background:#202020;border-color:#4b4b4b}
[data-theme=dark] header,[data-theme=dark] footer{border-color:var(--line)}

[data-theme=dark] nav a.active{background:#3e3e3e;color:#e2e2e2}
[data-theme=dark] nav a.active:after{background:#e2e2e2}

[data-theme=dark] button,[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select{color:var(--ink);background:var(--panel);border-color:#6c6c6c}

[data-theme=dark] button:hover{background:#474747;border-color:#bbbbbb}

[data-theme=dark] .primary,[data-theme=dark] .community-top{color:#ffffff;background:#626262;border-color:#878787}
[data-theme=dark] .primary:hover,[data-theme=dark] .community-top:hover{background:#707070;color:#ffffff}

[data-theme=dark] .search{background:#343434}
[data-theme=dark] .search input{background:transparent}
[data-theme=dark] .search svg{stroke:#c6c6c6}

[data-theme=dark] .eyebrow,[data-theme=dark] .mini-mark,[data-theme=dark] .opening h1,[data-theme=dark] .section-head h2,[data-theme=dark] .methods-index h2{color:var(--ink)}
[data-theme=dark] .live-dot{background:#b6b6b6}
[data-theme=dark] .opening h1 span{color:#b3b3b3}

[data-theme=dark] .card,[data-theme=dark] .video-card,[data-theme=dark] .gallery-card,[data-theme=dark] .workspace,[data-theme=dark] .table-wrap,[data-theme=dark] dialog{background:var(--panel);color:var(--ink);border-color:#6b6b6b;box-shadow:none}

[data-theme=dark] .gallery-card{box-shadow:3px 4px 0 #525252}
[data-theme=dark] .prompt-peek{background:#383838;border-color:#5e5e5e}
[data-theme=dark] .peek-copy{color:#e7e7e7}
[data-theme=dark] .peek-mark{color:#c3c3c3}

[data-theme=dark] .gallery-caption,[data-theme=dark] .card button{border-color:var(--line)}
[data-theme=dark] .gallery-caption button{color:#e8e8e8;background:#474747;border-color:#7a7a7a}

[data-theme=dark] .badge,[data-theme=dark] .badge.wait,[data-theme=dark] .detail-tags span{background:#444444;color:#e8e8e8}
[data-theme=dark] .aspect-label,[data-theme=dark] .caption{background:#2c2c2ce8;color:#e2e2e2;border-color:#7e7e7e}

[data-theme=dark] .radar,[data-theme=dark] .strip{background:#303030;border-color:#6d6d6d;color:var(--ink)}
[data-theme=dark] .radar-status>span{background:#383838;border-color:#717171;color:#e5e5e5}
[data-theme=dark] .radar-status .insufficient{background:#494949}
[data-theme=dark] .radar-status b,[data-theme=dark] .radar-meta span,[data-theme=dark] .micro,[data-theme=dark] .radar-note,[data-theme=dark] .radar-estimate small{color:#c7c7c7}

[data-theme=dark] p,[data-theme=dark] small,[data-theme=dark] .card p,[data-theme=dark] .section-head p,[data-theme=dark] .gallery-note,[data-theme=dark] .aside-label,[data-theme=dark] .aside-bottom p,[data-theme=dark] .aside-bottom small,[data-theme=dark] dialog p,[data-theme=dark] dialog li{color:var(--muted)}

[data-theme=dark] .filters button.active{background:#616161;color:#ffffff;border-color:#a6a6a6}
[data-theme=dark] .make-link{background:#515151;color:#eeeeee;border-color:#9d9d9d}
[data-theme=dark] .studio-link,[data-theme=dark] .opening-links a,[data-theme=dark] .methods-index>a{color:#e4e4e4;border-color:#7d7d7d}

[data-theme=dark] .placeholder{background:repeating-linear-gradient(135deg,#323232,#323232 1px,#292929 1px,#292929 12px);color:#d2d2d2}
[data-theme=dark] .detail-media{background:#202020;border-color:#666666}
[data-theme=dark] .detail-copy textarea,[data-theme=dark] .workspace textarea{background:#1f1f1f;color:#ececec;border-color:#6b6b6b}

[data-theme=dark] .local-toolbar select,[data-theme=dark] #mediaForm select,[data-theme=dark] #mediaForm input,[data-theme=dark] #editForm input,[data-theme=dark] #editForm select{background:#282828;color:#ececec;border-color:#757575}

[data-theme=dark] .gallery-media img,[data-theme=dark] .gallery-media video,[data-theme=dark] .detail-media img,[data-theme=dark] .detail-media video{background:#131313}
/* v08 content hub + local tools */
:root[data-theme=dark]{--bg:#0f0f0f;--panel:#1e1e1e;--ink:#f3f3f3;--muted:#c9c9c9;--green:#cdcdcd;--line:#5d5d5d}

[data-theme=dark] body{background:#0f0f0f}
[data-theme=dark] aside{background:#151515}
[data-theme=dark] .card,[data-theme=dark] .gallery-card,[data-theme=dark] .creator-panel,[data-theme=dark] .gate-card,[data-theme=dark] dialog{background:#1e1e1e}

[data-theme=dark] .search{background:#2d2d2d}
[data-theme=dark] header{border-color:#585858}
[data-theme=dark] nav a.active{background:#474747;color:#f0f0f0}
[data-theme=dark] .primary,[data-theme=dark] .make-link{background:#606060;border-color:#acacac;color:#fcfcfc}
[data-theme=dark] .ad-art{background:#333333}
[data-theme=dark] .ad-art b,[data-theme=dark] .ad-price em{color:#e0e0e0}
[data-theme=dark] .canvas-ad p.ad-price{color:#d0d0d0}
[data-theme=dark] .canvas-ad .studio-link{background:#454545;color:#f0f0f0}

[data-theme=dark] .demo-state{background:#333333;border-color:#747474;color:#eeeeee}
[data-theme=dark] .demo-state span{color:#cfcfcf}
[data-theme=dark] .creator-panel input,[data-theme=dark] .creator-panel textarea,[data-theme=dark] .simple-form input,[data-theme=dark] .simple-form textarea,[data-theme=dark] .simple-form select{background:#151515;color:#f1f1f1;border-color:#6e6e6e}
[data-theme=dark] .price-ad .studio-link{background:#464646;color:#f0f0f0}
[data-theme=dark] .v10-radar{--radar-accent:#acacac;background:#191919}

:root[data-theme=dark]{--bg:#101010;--panel:#1b1b1b;--ink:#f2f2f2;--muted:#b9b9b9;--green:#dedede;--line:#454545;--accent:#dedede;color-scheme:dark}

[data-theme=dark] body{background:var(--bg)}

[data-theme=dark] aside{background:#151515;border-color:var(--line)}

[data-theme=dark] header,[data-theme=dark] footer{border-color:var(--line)}

[data-theme=dark] nav a.active{background:#303030;color:var(--ink)}

[data-theme=dark] nav a.active:after,[data-theme=dark] .live-dot{background:#e3e3e3}

[data-theme=dark] .sidebar-tool,[data-theme=dark] .sidebar-account,[data-theme=dark] .card,[data-theme=dark] .gallery-card,[data-theme=dark] .creator-panel,[data-theme=dark] .gate-card,[data-theme=dark] .contact-card,[data-theme=dark] .workbench-overview>div,[data-theme=dark] .lead-copy,[data-theme=dark] .v10-radar,[data-theme=dark] dialog{background:var(--panel);border-color:var(--line);color:var(--ink)}

[data-theme=dark] .v10-radar{--radar-accent:#dedede}

[data-theme=dark] .sidebar-tool:disabled{background:#171717;color:var(--muted)}

[data-theme=dark] button,[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select,[data-theme=dark] .search{background:#252525;border-color:var(--line);color:var(--ink)}

[data-theme=dark] .search input{background:transparent}

[data-theme=dark] button:hover,[data-theme=dark] .sidebar-tool:not(:disabled):hover{background:#343434;border-color:#8d8d8d;color:var(--ink)}

[data-theme=dark] .primary,[data-theme=dark] .make-link,[data-theme=dark] .community-top{background:#dedede;color:#171717;border-color:#dedede}

[data-theme=dark] .primary:hover,[data-theme=dark] .make-link:hover,[data-theme=dark] .community-top:hover{background:#fafafa;color:#171717}

[data-theme=dark] button:focus-visible,[data-theme=dark] a:focus-visible,[data-theme=dark] input:focus-visible{outline-color:#d7d7d7}
/* Coordinated controls and spacing; no light-theme color declarations. */
:root{--radius-xs:10px;--radius-sm:14px;--radius-control:18px;--radius-card:24px;--radius-dialog:28px}
body{font-family:"Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;line-height:1.75}
button,input,select,textarea{font:inherit}
button,.primary,.search,input:not([type=checkbox]):not([type=radio]),select,textarea,.make-link{border-radius:var(--radius-control)}
nav a,.sidebar-tool,.filters button,.badge{border-radius:var(--radius-sm)}
.card,.video-card,.gallery-card,.radar,.v10-radar,.gate-card,.creator-panel,.contact-card,.workbench-overview>div{border-radius:var(--radius-card)}
nav a,.sidebar-tool,button{transition:background-color .16s ease,border-color .16s ease,transform .16s ease}
button:active,.sidebar-tool:active{transform:translateY(1px)}
.qy-distribution{margin-block:32px;min-width:0}
.qy-distribution>h2{margin:0 0 8px;font-size:clamp(22px,2.1vw,30px);line-height:1.45}
.qy-distribution>p{margin:0 0 20px;color:var(--muted);max-width:64ch}
.qy-content-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:start;gap:24px}
.qy-content-card{min-width:0;padding:24px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--panel)}
.qy-content-card h3{margin:8px 0 12px;font-size:21px;line-height:1.5}
.qy-content-card p{line-height:1.8;margin:8px 0 16px}
.qy-content-card small{color:var(--muted);font-size:12px}
.qy-content-card details{padding-block:12px;border-top:1px solid var(--line)}
.qy-content-card summary{cursor:pointer;font-weight:500;line-height:1.7}
.qy-content-card textarea{display:block;resize:vertical;width:100%;min-height:100px;margin:12px 0;padding:14px;border:1px solid var(--line);background:var(--bg);color:var(--ink);line-height:1.8}
.qy-content-card video{display:block;width:100%;max-height:460px;object-fit:contain;background:#111;border-radius:18px;margin:16px 0}
.qy-content-card button{min-height:44px;padding:10px 18px}
.qy-content-card :focus-visible{outline:3px solid var(--green);outline-offset:4px}
.qy-placeholder-hidden{display:none!important}
.sidebar-tools{margin:22px 0;padding-top:18px;border-top:1px solid var(--line)}
.sidebar-tools h2{font-size:12px;color:var(--muted);margin:0 0 10px}
.sidebar-tool{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;margin-block:8px;border:1px solid var(--line);min-height:44px;font-size:13px}
.sidebar-account{display:grid;gap:8px;margin-top:auto;padding-top:20px;border-top:1px solid var(--line)}
.sidebar-account small{font-size:12px;color:var(--muted)}
/* Final entry hierarchy: account stays in DOM; its visible proxy is lower left. */
html.qy-account-ready header #login{display:none!important}
html.qy-support-ready nav [data-page=contact]{display:none}
header{padding-inline:clamp(16px,2vw,28px);gap:12px}
header .search{flex:1 1 180px;min-width:0;max-width:320px}
header .search input{width:100%;min-width:0}
.qy-action-icon{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.sidebar-tool{justify-content:flex-start;gap:12px;padding:14px;border-radius:18px}
.sidebar-tool>span:not(.qy-action-arrow){display:grid;gap:3px;min-width:0}
.sidebar-tool b{font-size:13px;font-weight:550;line-height:1.45}
.sidebar-tool small{font-size:12px;font-weight:400;line-height:1.5;color:var(--muted)}
.qy-action-arrow{margin-left:auto;font-size:15px;color:var(--muted)}
.sidebar-tool:hover{border-color:var(--green);transform:translateY(-1px)}
.gallery-card{box-shadow:none}
.qy-content-card,.sidebar-tools,.sidebar-account{font-variant-numeric:tabular-nums}
.qy-content-card :is(p,small){overflow-wrap:anywhere}
.qy-content-card details[open] summary{margin-bottom:12px}
.qy-content-card small{display:block;line-height:1.75}
.sidebar-account button{display:flex;align-items:center;gap:12px;text-align:left;min-height:46px;padding:12px 14px}
.qy-support-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:16px;font-size:12px;white-space:nowrap}
.qy-support-link:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.qy-support-link .qy-action-icon{width:19px;height:19px}
@media(max-width:760px){header{height:auto;min-height:64px;padding:12px 16px;flex-wrap:wrap;gap:10px}header .search{flex:1 1 120px;max-width:none}header .header-location{flex-basis:100%}.qy-support-link{padding:8px;font-size:12px}.sidebar-tool{padding:12px;gap:10px}}
aside small,header small,.aside-label,.eyebrow,.badge{font-size:12px}
@media(prefers-reduced-motion:reduce){.sidebar-tool:hover{transform:none}}
@media(max-width:760px){.qy-distribution{margin-block:24px}.qy-content-grid{grid-template-columns:1fr;gap:16px}.qy-content-card{padding:20px}.sidebar-tool{min-height:44px;min-width:0}.qy-content-card video{max-height:420px}}
@media(prefers-reduced-motion:reduce){nav a,.sidebar-tool,button{transition:none!important;animation:none!important}button:active,.sidebar-tool:active{transform:none}}
