/* finesse · component: interactive product showcase · existing CGC-Max tokens */
#hero-workbench{width:100%;max-width:none;transform:none;transition:none}
#hero-workbench .workbench-top{padding:15px 22px}
#hero-workbench .workbench-label{font-size:14px}
#workbench-expand{width:44px;height:44px;border:1px solid var(--line);border-radius:10px}
#workbench-mount{min-height:660px}
.wb-shell{--wb-bg:#0e1222;--wb-card:#151a2b;--wb-border:#29324b;--wb-muted:#9daac3;--wb-fill:50%;font-size:14px;line-height:1.6;color:var(--ink);background:var(--wb-bg);font-family:'Segoe UI','Microsoft YaHei UI',sans-serif;text-align:left;min-width:0}
.wb-shell [hidden]{display:none!important}
.wb-shell button,.wb-shell input,.wb-shell select{font:inherit;color:inherit}
.wb-shell button,.wb-shell select,.wb-shell input{border:1px solid var(--wb-border);border-radius:7px;background:var(--surface-soft);min-height:38px;max-width:100%}
.wb-shell button{cursor:pointer;padding:7px 12px;white-space:nowrap;transition:background-color .15s}
.wb-shell button:active{transform:translateY(1px)}
.wb-shell button:disabled{opacity:.5;cursor:not-allowed}
.wb-shell :is(button,input,select,summary):focus-visible,#workbench-expand:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.wb-shell svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.wb-brandbar{display:flex;justify-content:space-between;align-items:center;gap:12px;height:49px;padding:0 21px;border-block:1px solid var(--wb-border);background:linear-gradient(100deg,var(--surface-soft),var(--surface-deep))}
.wb-brandbar>span{display:flex;align-items:center;gap:9px;min-width:0}
.wb-brandbar strong{font-size:15px;font-weight:700}
.wb-brandbar small{font-size:9px;letter-spacing:.18em;color:var(--wb-muted)}
.wb-preview-label{font-size:11px;color:var(--cyan);white-space:nowrap}
.wb-preview-label i,.wb-sidebar-note>i{width:5px;height:5px;background:currentColor;border-radius:50%}
.wb-layout{display:grid;grid-template-columns:155px minmax(0,1fr);height:550px}
.wb-sidebar{display:flex;flex-direction:column;border-right:1px solid var(--wb-border);background:linear-gradient(160deg,var(--surface-soft),var(--surface-deep));padding:18px 10px 14px;min-width:0}
.wb-sidebar nav{display:flex;flex-direction:column;gap:5px}
.wb-sidebar nav button{display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border:1px solid transparent;color:var(--wb-muted);min-height:44px;padding:9px 12px}
.wb-sidebar nav button b{margin-left:auto;opacity:0;font-weight:400}
.wb-sidebar nav button[aria-current]{background:var(--accent-soft);border-color:var(--edge-accent);color:var(--ink)}
.wb-sidebar nav button[aria-current] svg{color:var(--cyan)}
.wb-sidebar nav button[aria-current] b{opacity:1}
.wb-sidebar-note{margin-top:auto;padding:18px 7px 0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px;color:var(--wb-muted)}
.wb-sidebar-note>i{color:var(--cyan)}
.wb-sidebar-note span{flex-basis:100%;font-size:10px;margin-left:11px;opacity:.85}
.wb-main{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--edge-accent) transparent;padding:25px 28px 30px;min-width:0;background:radial-gradient(ellipse at top right,var(--surface-soft),transparent 70%)}
.wb-page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}
.wb-breadcrumb{color:var(--wb-muted);font-size:11px}
.wb-breadcrumb>span{color:var(--text-soft)}
.wb-page-heading h3{font-size:24px;line-height:1.3;letter-spacing:0;margin:6px 0;font-weight:650}
.wb-page-heading p{color:var(--wb-muted);font-size:12px;margin:0}
.wb-page-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:12px;background:var(--accent-soft);border:1px solid var(--edge-accent);color:var(--text-blue);flex:none}
.wb-page-icon svg{width:24px;height:24px}
.wb-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.wb-group{border:1px solid var(--wb-border);border-radius:11px;background:var(--wb-card);min-width:0;overflow:clip}
.wb-group summary{display:flex;align-items:center;gap:10px;padding:15px 16px;cursor:pointer;list-style:none;min-height:57px;font-weight:600;font-size:14px}
.wb-group summary::-webkit-details-marker{display:none}
.wb-group-symbol{display:grid;place-items:center;color:var(--text-blue);width:28px;height:28px;background:var(--accent-soft);border-radius:7px;flex:none}
.wb-group-symbol svg{width:16px;height:16px}
.wb-chevron{font-size:17px;color:var(--wb-muted);margin-left:auto;transform:rotate(-90deg);font-weight:400}
.wb-group[open] .wb-chevron{transform:none}
.wb-fields{padding:0 16px 6px;border-top:1px solid var(--wb-border)}
.wb-field{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:59px;padding:11px 0;border-bottom:1px solid var(--wb-border)}
.wb-field:last-child{border:0}
.wb-field>label:first-child{font-size:12px;color:var(--text-soft);min-width:0}
.wb-readonly-label{font-size:12px;color:var(--text-soft)}
.wb-readonly{font-size:12px;color:var(--wb-muted);text-align:right;overflow-wrap:anywhere}
.wb-field>label[title]{cursor:help;text-decoration:underline dotted var(--edge-accent);text-underline-offset:4px}
.wb-field :is(select,input[type=text]){width:53%;min-width:0;padding:6px 9px;font-size:12px}
.wb-field input[type=color]{width:45px;padding:4px;cursor:pointer}
.wb-field-range{flex-wrap:wrap;gap:8px}
.wb-field-range>label{flex-basis:100%}
.wb-range{display:flex;align-items:center;gap:13px;width:100%}
.wb-range input[type=range]{min-width:0;flex:1;min-height:6px;height:6px;border:0;appearance:none;-webkit-appearance:none;background:linear-gradient(90deg,var(--cyan) 0%,var(--accent) var(--wb-fill),var(--wb-border) var(--wb-fill));border-radius:9px;cursor:pointer}
.wb-range input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border:3px solid var(--text-blue);border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--surface-soft)}
.wb-range input[type=range]::-moz-range-thumb{width:9px;height:9px;border:2px solid var(--text-blue);border-radius:50%;background:var(--accent)}
.wb-range input[type=number]{width:69px;min-height:31px;text-align:center;padding:3px;font-variant-numeric:tabular-nums;font-size:12px}
.wb-switch{position:relative;width:34px;height:20px;flex:none;cursor:pointer}
.wb-switch input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;min-height:0;cursor:pointer}
.wb-switch>span{display:block;background:var(--wb-border);border:1px solid var(--edge-accent);height:20px;border-radius:20px;pointer-events:none}
.wb-switch>span:after{content:'';display:block;width:12px;height:12px;border-radius:50%;background:var(--wb-muted);transform:translate(3px,3px);transition:transform .15s}
.wb-switch input:checked+span{background:var(--accent);border-color:var(--accent)}
.wb-switch input:checked+span:after{background:var(--ink);transform:translate(17px,3px)}
.wb-switch input:focus-visible+span{outline:2px solid var(--cyan);outline-offset:4px}
.wb-field .wb-action{font-size:12px;color:var(--text-blue);display:flex;align-items:center;gap:12px}
.wb-key{display:flex;gap:4px;min-width:0}
.wb-key button{font-size:11px;min-width:0}
.wb-key button:first-child{overflow:hidden;text-overflow:ellipsis;max-width:160px}
.wb-key .wb-recording{color:var(--cyan);border-color:var(--cyan)}
.wb-welcome{padding:23px 25px 20px;background:var(--accent-soft);border:1px solid var(--edge-accent);border-radius:11px;margin-bottom:16px}
.wb-welcome-tag{font-size:10px;color:var(--text-blue);letter-spacing:.04em}
.wb-welcome h4{font-size:25px;line-height:1.5;margin:8px 0;font-weight:600;letter-spacing:-.03em}
.wb-welcome p{font-size:12px;color:var(--wb-muted);margin:0}
.wb-shortcuts{display:flex;gap:9px;margin-top:20px}
.wb-shortcuts button{display:flex;align-items:center;gap:9px;flex:1;background:var(--surface-soft);font-size:12px}
.wb-shortcuts span{margin-left:auto;color:var(--wb-muted)}
.wb-shortcuts svg{color:var(--text-blue);width:17px;height:17px}
.wb-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:62px;padding:12px 19px;border-top:1px solid var(--wb-border);background:var(--surface-soft)}
.wb-footer p{font-size:11px;color:var(--wb-muted);margin:0}
.wb-footer>div{display:flex;gap:8px;flex:none}
.wb-footer button{font-size:12px}
.wb-footer .wb-primary{background:var(--accent-gradient);border-color:transparent;color:var(--button-ink);font-weight:600}
.wb-primary span{margin-left:14px}
.wb-dialog{width:min(1280px,calc(100vw - 44px));max-width:none;max-height:calc(100dvh - 40px);padding:0;background:var(--surface-deep);color:var(--ink);border:1px solid var(--edge-accent);border-radius:14px;overflow:hidden}
.wb-dialog::backdrop{background:rgba(4,7,16,.85)}
.wb-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 20px;background:var(--panel)}
.wb-dialog-header h2{font-size:15px;margin:0;font-weight:500}
.wb-dialog-header button{border:1px solid var(--line);border-radius:7px;background:var(--surface-soft);color:var(--ink);padding:8px 14px;min-height:40px;cursor:pointer}
.wb-dialog .wb-layout{height:calc(100dvh - 230px);min-height:240px;max-height:740px;grid-template-columns:170px minmax(0,1fr)}
@media(hover:hover){.wb-shell button:hover{background:var(--panel-light);border-color:var(--edge-accent)}.wb-group summary:hover{background:var(--accent-soft)}.wb-shell .wb-primary:hover{background:var(--accent);color:var(--button-ink)}}
@media(max-width:1000px){.wb-groups{grid-template-columns:minmax(0,1fr)}.wb-main{padding:21px}.wb-layout{grid-template-columns:135px minmax(0,1fr)}.wb-sidebar nav button{padding:9px;gap:8px}.wb-welcome{padding:20px}.wb-welcome h4{font-size:22px}}
@media(max-width:640px){#hero-workbench .workbench-top{padding:9px 13px}#workbench-mount{min-height:680px}.wb-brandbar{padding:0 13px}.wb-brandbar small{display:none}.wb-layout,.wb-dialog .wb-layout{display:flex;flex-direction:column;height:570px}.wb-sidebar{padding:6px;border-right:0;border-bottom:1px solid var(--wb-border)}.wb-sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.wb-sidebar nav button{justify-content:center;padding:8px 3px;gap:5px;font-size:11px;min-height:44px}.wb-sidebar nav button svg{width:14px;height:14px}.wb-sidebar nav button b,.wb-sidebar-note{display:none}.wb-main{padding:18px 14px;flex:1;min-height:0}.wb-page-heading h3{font-size:22px}.wb-page-heading{margin-bottom:16px}.wb-page-heading p{font-size:11px}.wb-page-icon{width:36px;height:36px}.wb-group summary{padding:13px}.wb-fields{padding:0 13px 4px}.wb-footer{flex-wrap:wrap;gap:9px;padding:11px 13px}.wb-footer p{flex-basis:100%;font-size:10px;min-height:16px}.wb-footer>div{margin-left:auto}.wb-footer button{min-height:40px}.wb-welcome{padding:18px 14px}.wb-welcome h4{font-size:20px}.wb-shortcuts{gap:6px}.wb-shortcuts button{justify-content:center;gap:5px;padding:8px 5px}.wb-shortcuts span{display:none}.wb-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.wb-dialog-header{padding:9px 12px}.wb-dialog-header h2{font-size:13px}.wb-dialog .wb-layout{height:calc(100dvh - 226px);min-height:180px;max-height:none}.wb-field :is(select,input[type=text]){min-height:40px}.wb-switch{height:30px;display:flex;align-items:center}.wb-switch>span{width:34px}.wb-range input[type=range]{height:8px;min-height:8px}.wb-range{min-height:34px}}
@media(prefers-reduced-motion:reduce){.wb-shell *{transition:none!important;scroll-behavior:auto!important}}
