:root{font-family:"Microsoft YaHei UI","PingFang SC",Inter,Arial,sans-serif;color:#f1f1f3;background:#101012;color-scheme:dark;font-size:13px;--bg:#101012;--panel:#1a1a1d;--stroke:#36363b;--ink:#f1f1f3;--muted:#a0a0a6;--secondary:#818896;--accent:#3178DF}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}.shell{height:100dvh;min-width:1024px;min-height:620px;display:grid;grid-template-rows:82px minmax(0,1fr) 47px;background:#101012}.topbar{display:grid;grid-template-columns:clamp(226px,19.5vw,270px) minmax(360px,1fr) clamp(328px,29vw,410px);gap:clamp(7px,.75vw,10px);padding:0 clamp(7px,.75vw,10px);background:#18181a;border-bottom:1px solid var(--stroke);min-width:0}.header-left,.header-right{height:58px;display:flex;align-items:center}.header-left{gap:10px}.header-right{justify-content:flex-end}.menu-button{width:38px;height:36px;border:0;border-radius:8px;background:transparent;display:grid;place-content:center;gap:4px}.menu-button:hover,.menu-button.open{background:#303138}.menu-button i{display:block;width:19px;height:2px;border-radius:1px;background:#f0f0f2}.brand-button{border:0;background:none;color:var(--ink);display:flex;align-items:center;gap:8px;padding:0;font-size:16px;font-weight:600;letter-spacing:1.6px}.brand-button b{color:var(--accent)}.header-center{height:82px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0}.header-slots{height:58px;display:flex;align-items:center;justify-content:center;gap:6px;width:100%}.header-slot{position:relative;width:clamp(108px,29%,137px);height:40px;border:1px solid #37373b;border-radius:8px;background:#222225;color:#ddd;text-align:left;padding:4px 8px;display:grid;grid-template-columns:15px minmax(0,1fr);align-items:center;gap:6px;overflow:hidden}.header-slot.active{border-color:var(--accent);background:#21344f}.slot-enable{width:15px;height:15px;border-radius:50%;background:#55555a;border:1px solid #77777b;display:grid;place-items:center;font-size:9px;color:#171719}.header-slot.enabled .slot-enable{background:var(--accent);border:0}.slot-copy{min-width:0;display:flex;flex-direction:column;gap:1px}.slot-copy strong,.slot-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-copy strong{font-size:11px;color:var(--ink)}.slot-copy small{font-size:9px;color:var(--secondary)}.header-status{height:17px;width:min(100%,423px);font-size:10px;color:#a5a5ad;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-button{height:34px;border:1px solid transparent;border-radius:7px;padding:0 13px;color:#e9e9ed;background:#29292d;font-weight:500}.studio-button:hover{background:#36363b}.studio-button.prominent{background:#5b8cff;color:#fff}.studio-button.prominent:hover{background:#6b98ff}.studio-button.neutral{border-color:#4a4a50;background:#252529}.studio-button.subtle{background:transparent}.studio-button.compact{height:33px;min-width:65px;padding:0 10px}.studio-button.square{width:35px;padding:0;font-size:16px}.studio-button.block{width:100%;margin-top:10px}
.page-host{min-height:0;overflow:hidden;position:relative}.page{display:none;width:100%;height:100%;min-height:0}.page.active{display:block}.filter-layout{height:100%;padding:clamp(7px,.75vw,10px);display:grid;grid-template-columns:clamp(226px,19.5vw,270px) minmax(360px,1fr) clamp(328px,29vw,410px);gap:clamp(7px,.75vw,10px);min-height:0}.panel{background:var(--panel);border:1px solid var(--stroke);border-radius:12px;min-width:0;overflow:hidden}.preset-panel{padding:10px;display:flex;flex-direction:column;min-height:0}.preset-head{height:37px;display:flex;align-items:center;gap:6px}.preset-head h2{margin:0 0 0 5px;font-size:14px;font-weight:600;flex:1}.preset-head .studio-button{height:33px}.switcher{height:36px;margin-top:9px;display:grid;grid-template-columns:1fr 1fr;background:#242428;border:1px solid #343439;border-radius:8px;padding:3px;gap:3px}.switcher button,.right-tabs button,.channel-tabs button,.source-switch button,.mode-switch button{border:0;background:transparent;color:#8f929b;border-radius:6px}.switcher button.on,.channel-tabs button.on,.source-switch button.on,.mode-switch button.on{background:#37383e;color:#fff}.search{height:36px;border:1px solid #2e343e;border-radius:8px;background:#101318;color:#eee;padding:0 12px;width:100%;margin-top:9px;font-size:11px}.search:focus{outline:none;border-color:var(--accent)}.list-top{height:38px;display:flex;align-items:center;gap:8px;padding:0 5px;color:var(--secondary);font-size:10px}.family-label{color:#b6becb;border:1px solid #373b44;border-radius:5px;padding:2px 5px}.grow{flex:1}.filter-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:5px;padding-right:5px}.filter-list::-webkit-scrollbar{width:5px}.filter-list::-webkit-scrollbar-thumb{background:#45454b;border-radius:5px}.filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px}.filter-item{height:76px;border:1px solid #303034;border-radius:9px;background:#1e1e20;color:#eee;display:flex;align-items:center;gap:10px;text-align:left;padding:8px;width:100%;position:relative}.filter-item:hover{background:#29292c;border-color:#4a4a4f}.filter-item.active{border-color:var(--accent);border-width:1.4px;background:#333337}.thumb{width:76px;height:56px;flex:none;border-radius:8px;background:#30343b;object-fit:cover;display:block}.filter-label{min-width:0;display:flex;flex-direction:column;gap:5px}.filter-label b,.filter-label small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.filter-label b{font-size:11px;font-weight:500}.filter-item.active .filter-label b{font-weight:600;color:#fff}.filter-label small{font-size:9px;color:#778290}.filter-indicator{position:absolute;right:11px;top:50%;margin-top:-4px;width:8px;height:8px;border-radius:50%;background:var(--accent)}.delete-filter{width:25px;border:0;background:transparent;color:#6f727c}.empty-list{padding:25px 8px;color:#777d88;font-size:10px;text-align:center}
.viewer{display:flex;flex-direction:column;background:#0a0c0f;min-height:0}.stage{flex:1;min-height:0;background:#090b0d;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.stage canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto}.stage.drag-over{outline:2px solid var(--accent);outline-offset:-3px}.drop-hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);font-size:9px;color:#7c8490;background:#111319bb;padding:5px 10px;border-radius:9px;pointer-events:none;opacity:.25}.stage:hover .drop-hint{opacity:.9}.preview-busy{display:none;position:absolute;top:12px;left:50%;transform:translateX(-50%);padding:7px 12px;border-radius:7px;background:#d9222428;color:#e8e8eb;font-size:12px}.viewer-toolbar{height:52px;flex:none;border-top:1px solid var(--stroke);background:#141416;display:flex;align-items:center;padding:0 14px;gap:8px}.toolbar-spacer{flex:1}.source-switch,.mode-switch{height:34px;display:flex;align-items:center;padding:3px;background:#222329;border:1px solid #34363d;border-radius:8px}.source-switch{width:158px}.source-switch button{height:26px;flex:1}.mode-switch{width:118px}.mode-switch button{height:26px;flex:1}.mode-switch button.disabled{opacity:.35}
.adjust{display:grid;grid-template-rows:46px minmax(0,1fr) 56px;min-height:0}.right-tabs{height:46px;display:grid;grid-template-columns:1fr 1fr;position:relative;border-bottom:1px solid var(--stroke)}.right-tabs button{position:relative;border-radius:0;color:var(--secondary);font-size:11px}.right-tabs button.on{color:#f5f5f5;font-weight:600}.right-tabs button.on:after{content:"";position:absolute;height:2px;left:12px;right:12px;bottom:0;background:var(--accent);border-radius:1px}.inspector-body{min-height:0;position:relative}.inspector-pane{display:none;height:100%;overflow:auto;padding:17px}.inspector-pane.active{display:block}.inspector-pane::-webkit-scrollbar{width:5px}.inspector-pane::-webkit-scrollbar-thumb{background:#45454b;border-radius:5px}.subhead-line,.curve-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.subhead-line h3{font-size:12px;margin:0;font-weight:600}.hint{margin:10px 0 15px;color:var(--secondary);font-size:10px;line-height:1.5}.controls{display:flex;flex-direction:column;gap:15px}.control{display:flex;flex-direction:column;gap:7px;color:#ccc;font-size:10px}.control span{display:flex;justify-content:space-between}.control output{color:#9ba3b1}.control input[type=range],.wide-range{width:100%;accent-color:var(--accent)}.divider{height:1px;background:var(--stroke);margin:18px 0}.matrix-box{height:182px;border-radius:10px;background:#141416;border:1px solid #313135;padding:12px}.matrix-grid{height:100%;display:grid;grid-template-columns:19px repeat(3,minmax(0,1fr));grid-template-rows:18px repeat(3,35px);gap:8px;align-content:center}.matrix-axis{font-size:10px;font-weight:600;text-align:center;align-self:center}.matrix-axis.r{color:#ff747c}.matrix-axis.g{color:#67deac}.matrix-axis.b{color:#7aaeff}.matrix-cell{width:100%;height:35px;background:#202125;border:1px solid #393a40;border-radius:7px;color:#f2f2f3;text-align:center;font-size:11px}.matrix-cell:focus{outline:none;border-color:var(--accent)}.matrix-cell.diagonal{background:#242832}.curve-head{height:33px;color:var(--secondary);font-size:11px}.curve-head>div{display:flex;gap:6px}.channel-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:11px 0}.channel-tabs button{height:34px;background:#25262b}.curve-box{width:100%;aspect-ratio:1/1;min-height:280px;border-radius:10px;background:#15191f;border:1px solid #2b313a;padding:6px}.curve-canvas{width:100%;height:100%;display:block}.camera-footer{height:56px;border-top:1px solid var(--stroke);background:#1c1c1f;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 16px;color:var(--secondary);font-size:11px}.compact-select,.tool-card select{height:34px;border:1px solid #42434a;border-radius:7px;background:#24252a;color:#eee;padding:0 9px}.compact-select{width:145px}
.foot{height:47px;background:#18181a;border-top:1px solid var(--stroke);display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:#858894;font-size:10px}.foot strong{color:#d3d4d9;font-weight:500}.foot i{display:inline-block;width:3px;height:3px;border-radius:50%;background:#54545b;margin:0 10px 2px}.side-nav{position:fixed;z-index:60;left:0;top:0;bottom:0;width:286px;background:#1a1a1deF;border-right:1px solid #48484e;transform:translateX(-100%);transition:transform .18s ease;padding:20px 12px}.side-nav.open{transform:translateX(0)}.nav-mask{display:none;position:fixed;z-index:55;inset:0;background:#0009;backdrop-filter:blur(8px)}.nav-mask.open{display:block}.nav-title{height:50px;padding:10px;font-size:15px;letter-spacing:1.4px}.nav-title b{color:var(--accent)}#navItems{display:flex;flex-direction:column;gap:5px}.nav-entry{height:58px;border:0;border-radius:9px;background:transparent;color:#eee;display:grid;grid-template-columns:34px 1fr 18px;align-items:center;text-align:left}.nav-entry:hover,.nav-entry.active{background:#303138}.nav-number{color:#626976;font-size:10px;text-align:center}.nav-copy{display:flex;flex-direction:column;gap:3px}.nav-copy strong{font-size:11px}.nav-copy small{font-size:9px;color:#858b97}.nav-arrow{color:#777}.toast{position:fixed;z-index:100;left:50%;bottom:64px;transform:translate(-50%,12px);padding:9px 14px;border-radius:8px;background:#2c2d32;color:#fff;border:1px solid #4a4c53;opacity:0;pointer-events:none;transition:.15s}.toast.visible{opacity:1;transform:translate(-50%,0)}
.tool-page{overflow:auto;background:#101012}.tool-wrap{max-width:1100px;margin:0 auto;padding:28px 42px 50px}.wide-tool{max-width:1280px}.tool-heading h1{margin:0;font-size:27px}.tool-heading h1 small{font-size:13px;color:#777d88;font-weight:400;margin-left:8px}.tool-heading p{color:#9297a2;margin:8px 0 22px}.tool-card{background:#1a1a1d;border:1px solid #36363b;border-radius:14px;padding:18px;margin-bottom:14px}.tool-card h2{margin:0 0 8px;font-size:15px}.tool-card p{color:#979ba5}.row-card,.action-card{display:flex;align-items:center;gap:14px}.row-card select{min-width:190px}.row-card .studio-button{margin-left:auto}.cp-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:15px}.cp-preview{min-height:480px;display:grid;place-items:center;position:relative;background:#090b0d}.cp-preview canvas{max-width:100%;max-height:70vh}.cp-controls .control{margin-top:13px}.steps{display:grid;grid-template-columns:1fr 1fr;gap:14px}.steps .tool-card>b{font-size:24px;color:#5b8cff}.tutorial{white-space:pre-wrap;color:#bbc0ca}.big-value{font-size:28px;color:#7aaeff;margin-left:auto}.wide-range{margin:18px 0}
@media(max-width:1180px){.shell{min-width:980px}.topbar,.filter-layout{grid-template-columns:210px minmax(340px,1fr) 310px}.filter-layout{gap:7px;padding:7px}.topbar{gap:7px;padding:0 7px}.offline-note{display:none}.matrix-box{height:168px}.inspector-pane{padding:13px}.header-slot{width:108px}}
@media(max-height:690px){.shell{grid-template-rows:76px minmax(0,1fr) 42px}.topbar{height:76px}.header-center{height:76px}.header-slots{height:55px}.header-status{height:16px}.filter-layout{padding-top:6px;padding-bottom:6px}.preset-head{height:34px}.switcher{margin-top:6px}.search{margin-top:6px}.filter-item{height:70px}.thumb{width:70px;height:52px}.viewer-toolbar{height:48px}.adjust{grid-template-rows:43px minmax(0,1fr) 52px}.inspector-pane{padding:12px 14px}.controls{gap:10px}.hint{margin:7px 0 10px}.divider{margin:12px 0}.matrix-box{height:154px}.matrix-grid{grid-template-rows:15px repeat(3,31px);gap:6px}.matrix-cell{height:31px}.curve-box{min-height:230px}.camera-footer{height:52px}.foot{height:42px}}

/* Cross Processing controls: compact enough to keep all five native adjustments visible. */
.cp-select-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.cp-select-row label,.cp-curve-selectors label{display:flex;flex-direction:column;gap:5px;color:#9297a2;font-size:10px}
.cp-select-row select,.cp-curve-selectors select{height:33px;border:1px solid #3d4048;border-radius:7px;background:#202126;color:#eee;padding:0 8px}
.cp-curve-title{margin-top:0}
.cp-native-controls{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.cp-curve-canvas{display:block;width:100%;height:150px;border:1px solid #30343d;border-radius:9px;background:#111216}
.cp-curve-selectors{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:8px}

/* Beta81 UI parity pass: keep the desktop visual language instead of a Web-only skin. */
.studio-button.prominent{background:var(--accent)!important;color:#fff}.studio-button.prominent:hover{background:var(--accent)!important;filter:brightness(1.08)}
.header-slot.active{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 18%,#222225)!important}
.slot-enable{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;font-size:0!important;line-height:1!important}
.header-slot.enabled .slot-enable:after{content:"✓";display:block;width:15px;height:15px;font-size:10px;font-weight:800;line-height:15px;text-align:center;transform:none}
.drop-hint{display:none!important}

/* Desktop sliders are visually light and thin; the accent is reserved for selection state. */
.control input[type=range],.wide-range{width:100%;height:18px;appearance:none;-webkit-appearance:none;background:transparent;outline:none}
.control input[type=range]::-webkit-slider-runnable-track,.wide-range::-webkit-slider-runnable-track{height:2px;background:#77787d;border-radius:2px}
.control input[type=range]::-webkit-slider-thumb,.wide-range::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#e9e9ec;border:1px solid #c9c9cd;margin-top:-5px;box-shadow:0 0 0 2px #161618}
.control input[type=range]:focus::-webkit-slider-thumb,.wide-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--accent)}

.footer-actions{display:flex;align-items:center;gap:12px}.settings-button{width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#999ba3;font-size:16px;line-height:1;display:grid;place-items:center}.settings-button:hover{background:#292a2f;color:#eee}

/* Cross Processing mirrors the desktop inspector: fixed header + two tabs + one pane at a time. */
.cp-grid{grid-template-columns:minmax(0,1fr) minmax(340px,370px)}
.cp-preview{min-height:480px}.cp-preview canvas{max-height:70vh}
.cp-controls{height:min(650px,calc(100dvh - 190px));padding:0!important;overflow:hidden!important;display:grid;grid-template-rows:50px 44px minmax(0,1fr) auto}
.cp-control-head{display:flex;align-items:center;padding:0 17px;border-bottom:1px solid var(--stroke)}.cp-control-head strong{font-size:14px}.cp-control-head span{margin-left:auto;color:var(--muted);font-size:10px}
.cp-inspector-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--stroke)}.cp-inspector-tabs button{position:relative;border:0;background:transparent;color:#9da0aa}.cp-inspector-tabs button.on{color:#f4f6fc;font-weight:600}.cp-inspector-tabs button.on:after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--accent);border-radius:1px}
.cp-inspector-body{min-height:0;position:relative}.cp-inspector-pane{display:none;height:100%;min-height:0;overflow:auto;padding:10px 16px 12px}.cp-inspector-pane.active{display:block}.cp-inspector-pane::-webkit-scrollbar{width:5px}.cp-inspector-pane::-webkit-scrollbar-thumb{background:#45454b;border-radius:5px}
.cp-select-row{margin-top:9px}.cp-native-controls{gap:6px;margin-top:10px}.cp-controls .control{margin-top:0;gap:4px}
.cp-export-row{border-top:1px solid var(--stroke);display:flex;flex-direction:column;gap:9px;padding:11px 14px;min-width:0}.cp-export-row .studio-button{height:34px}
.cp-import-form{margin:0;min-width:0}.cp-import-line{display:flex;gap:7px;align-items:center;min-width:0}
.cp-import-field{display:flex;align-items:center;flex:1;min-width:0;height:34px;border:1px solid color-mix(in srgb,var(--stroke) 75%,#919196);border-radius:7px;background:color-mix(in srgb,var(--panel) 80%,#42434a);overflow:hidden;transition:border-color .12s}
.cp-import-field:focus-within{border-color:var(--accent)}.cp-import-field:has(input[aria-invalid=true]){border-color:#ff858d}
.cp-import-field input{flex:1;min-width:0;height:100%;border:0;background:transparent;color:var(--ink);padding:0 11px;font:12px ui-monospace,Consolas,monospace;outline:none}.cp-import-field input::placeholder{font-family:inherit;color:var(--muted)}
.cp-paste-icon{display:grid;place-items:center;flex:0 0 35px;align-self:stretch;border:0;border-left:1px solid var(--stroke);background:transparent;color:var(--ink);padding:0}.cp-paste-icon:hover,.cp-paste-icon:focus-visible{background:color-mix(in srgb,var(--accent) 22%,var(--panel));color:var(--accent);outline:none}
.cp-inspector-body{display:grid;grid-template-rows:minmax(0,1fr)}
.cp-export-row{gap:11px;padding:12px 14px 14px;background:color-mix(in srgb,var(--panel) 93%,#4b4c55)}
.cp-current-group,.cp-import-form{display:grid;gap:5px;min-width:0}.cp-recipe-label{display:block;color:var(--muted);font-size:11px;font-weight:500}.cp-import-apply{flex:0 0 62px;padding:0 8px;font-size:12px}
.cp-current-group .cp-param-chip{margin:0!important;width:100%;background:color-mix(in srgb,var(--panel) 85%,#42434a)!important;color:var(--ink);border:1px solid var(--stroke);text-align:left;padding-left:11px;padding-right:30px}.cp-current-group .cp-param-chip::after{opacity:1;right:12px}.cp-current-group .cp-param-chip:hover{border-color:var(--accent)}

/* Desktop-style settings dialog. */
.settings-overlay{position:fixed;z-index:180;inset:0;background:#000a;backdrop-filter:blur(7px);display:grid;place-items:center}.settings-overlay[hidden]{display:none}.settings-dialog{width:min(790px,calc(100vw - 58px));height:min(556px,calc(100vh - 75px));background:#18181a;border:1px solid #333337;border-radius:13px;overflow:hidden;display:grid;grid-template-columns:194px minmax(0,1fr);box-shadow:0 22px 70px #0008}
.settings-nav{background:#111113;padding:19px 17px;display:flex;flex-direction:column;gap:7px}.settings-nav h2{margin:0 0 9px;color:var(--accent);font-size:18px}.settings-nav button{height:41px;border:0;border-radius:8px;background:transparent;color:#9d9da3;display:grid;grid-template-columns:28px 1fr;align-items:center;text-align:left;padding:0 12px;gap:5px}.settings-nav button span{font-size:17px;color:#9a9ba0}.settings-nav button b{font-size:12px;font-weight:500}.settings-nav button.on{background:#252b32;color:#f1f1f2}.settings-nav button.on span{color:var(--accent)}.settings-nav small{margin-top:auto;color:#65666c;font-size:9px}
.settings-main{min-width:0;padding:22px 25px 20px;display:grid;grid-template-rows:43px minmax(0,1fr)}.settings-main>header{display:flex;align-items:flex-start;border-bottom:1px solid #2d2d30}.settings-main>header h2{margin:0;font-size:23px}.settings-close{margin-left:auto;width:31px;height:31px;border:0;border-radius:7px;background:transparent;color:#9a9ba0;font-size:22px}.settings-close:hover{background:#29292d;color:#fff}
.settings-page{display:none;padding-top:16px;overflow:auto}.settings-page.active{display:block}.settings-page h3{font-size:13px;margin:0 0 11px}.settings-divider{height:1px;background:#2b2b30;margin-bottom:12px}.settings-row{display:flex;align-items:center;justify-content:space-between;color:#ccccd0;font-size:12px}.settings-row select{width:245px;height:36px;border:1px solid #42434a;border-radius:7px;background:#24252a;color:#eee;padding:0 9px}.settings-page h3:nth-of-type(2){margin-top:27px}.settings-label{font-size:12px;color:#ccccd0}.accent-row{display:flex;gap:11px;align-items:center}.accent-choice{width:41px;height:41px;border-radius:50%;background:#242427;border:1px solid #44444a;display:grid;place-items:center;padding:0}.accent-choice i{display:block;width:29px;height:29px;border-radius:50%;background:var(--swatch)}.accent-choice.on{border:2px solid #f1f1f3}.accent-custom{position:relative;overflow:hidden}.accent-custom:before{content:"";display:block;width:29px;height:29px;border-radius:50%;background:conic-gradient(#f44,#ff0,#0f8,#0df,#36f,#b4f,#f44);mask:radial-gradient(circle,transparent 0 7px,#000 8px);-webkit-mask:radial-gradient(circle,transparent 0 7px,#000 8px)}.accent-custom input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.settings-note{color:#98989d;font-size:11px;line-height:1.65;margin-top:16px}.guide-list{display:flex;flex-direction:column;gap:7px}.guide-item{border:1px solid #33343a;border-radius:9px;background:#1d1d20;overflow:hidden}.guide-item button{width:100%;height:43px;border:0;background:transparent;color:#eee;padding:0 13px;display:flex;align-items:center;text-align:left}.guide-item button b{font-size:12px}.guide-item button span{margin-left:auto;color:#858791;font-size:17px}.guide-item p{display:none;margin:0;padding:0 13px 15px;color:#a1a3aa;font-size:11px;line-height:1.7}.guide-item.open p{display:block}.about-copy{max-width:520px;font-size:12px}.settings-overlay select:focus{outline:none;border-color:var(--accent)}
.steps .tool-card>b,.big-value{color:var(--accent)!important}
.desktop-download{height:28px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid color-mix(in srgb,var(--accent) 58%,#41434a);border-radius:7px;background:color-mix(in srgb,var(--accent) 16%,#1d1e22);color:#dce8ff;text-decoration:none;font-size:10px;white-space:nowrap}.desktop-download:hover{background:color-mix(in srgb,var(--accent) 28%,#1d1e22);color:#fff}
.studio-button:disabled{opacity:.45;cursor:not-allowed;filter:saturate(.5)}

/* Keep long settings guides scrollable inside the fixed dialog grid. */
.settings-main{min-height:0}
.settings-page{min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.settings-page.active{min-height:0}
.settings-page::-webkit-scrollbar{width:5px}.settings-page::-webkit-scrollbar-thumb{background:#45454b;border-radius:5px}
.guide-list{min-height:0}.guide-item{flex:0 0 auto}

/* Point-curve input: stop browser pan/zoom from cancelling captured drags. */
.curve-box{overscroll-behavior:contain;touch-action:none}
.curve-canvas{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:crosshair}
.curve-canvas:active{cursor:grabbing}

.engineering-row{flex-wrap:wrap;gap:10px 12px}.engineering-row label{white-space:nowrap}.engineering-row select{min-width:120px;max-width:100%;flex:1 1 130px;width:0}.engineering-row #engineeringCommand{flex-basis:175px}.engineering-row .studio-button{flex-shrink:0;white-space:nowrap}

#cpPhotoStage{cursor:pointer}#cpPhotoStage:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.header-right #cpExportBtn{white-space:nowrap}
.header-right button[hidden]{display:none!important}

.cp-param-chip{font-family:ui-monospace,Consolas,monospace;font-size:12px;letter-spacing:.45px;white-space:nowrap;position:relative;font-variant-numeric:tabular-nums;cursor:copy}
.cp-param-chip::after{content:"";position:absolute;right:10px;top:10px;width:8px;height:10px;border:1px solid currentColor;border-radius:2px;box-shadow:2px -2px 0 -1px var(--accent),3px -3px 0 -1px currentColor;opacity:0;transition:opacity .12s ease;pointer-events:none}
.cp-param-chip:hover::after,.cp-param-chip:focus-visible::after{opacity:1}

/* Shared select appearance across the entire workspace. */
select{border-radius:7px;cursor:pointer;color:var(--ink);background:color-mix(in srgb,var(--panel) 85%,#42434a);border:1px solid var(--stroke);outline:none}
select:focus-visible{border-color:var(--accent);outline:1px solid var(--accent);outline-offset:1px}
select:disabled{opacity:.5;cursor:not-allowed}
@supports (appearance:base-select) and selector(::picker(select)){
  select,select::picker(select){appearance:base-select}
  select{align-items:center;gap:6px}
  .cp-controls select{min-width:0}
  select::picker-icon{color:var(--muted);font-size:10px}
  select:open{border-color:var(--accent)}
  select::picker(select){
    margin-block:4px;padding:4px;max-height:300px;overflow:auto;
    border:1px solid var(--stroke);border-radius:10px;
    background:color-mix(in srgb,var(--panel) 90%,#42434a);color:var(--ink);
    box-shadow:0 8px 24px #0005;
  }
  select option{min-height:30px;padding:7px 9px;border-radius:6px;gap:8px;cursor:pointer;white-space:normal}
  select option:checked{background:color-mix(in srgb,var(--accent) 18%,var(--panel));color:var(--ink)}
  select option:hover,select option:focus-visible{background:color-mix(in srgb,var(--accent) 27%,var(--panel));color:var(--ink);outline:none}
  select option::checkmark{order:1;margin-left:auto;color:var(--accent)}
  select option:disabled{opacity:.5;cursor:not-allowed}
}
