.screen-tool{color:var(--ink);background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;overflow:hidden}.screen-tool-topbar{border-bottom:1px solid var(--line);justify-content:space-between;gap:16px;padding:15px 24px;font-size:13px;font-weight:700;display:flex}.screen-tool-topbar small,.screen-preview-caption>span,.screen-preview-note,.screen-task-note,.screen-field-note,.screen-wake-control small{color:var(--muted);font-size:12px;font-weight:400;line-height:1.6}.screen-tool-body{grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);display:grid}.screen-preview-column{background:var(--soft);border-right:1px solid var(--line);padding:28px}.screen-preview{aspect-ratio:16/10;outline:1px solid var(--sample-canvas-edge);width:100%;min-height:280px;position:relative;overflow:hidden}.screen-pattern{pointer-events:none;place-items:center;display:grid;position:absolute;inset:0;overflow:hidden}.screen-light-window{flex:none}.screen-preview-caption{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 16px;padding-top:18px;font-size:13px;display:flex}.screen-preview-caption code{color:var(--muted);font-size:12px}.screen-preview-note{margin:18px 0 0}.screen-controls{min-width:0;padding:24px}.screen-controls h2{margin:0 0 10px;font-size:18px;line-height:1.4}.screen-task-note{margin:0 0 20px;font-size:13px}.screen-field{min-width:0;margin:16px 0;display:block}.screen-field .field-label{margin:0 0 8px;font-size:12px;display:block}.screen-field input[type=range]{width:100%;accent-color:var(--accent);display:block}.screen-color-inputs{align-items:center;gap:8px;display:flex}.screen-color-inputs input[type=color]{background:var(--card);border:1px solid var(--line);cursor:pointer;border-radius:6px;flex:0 0 42px;width:42px;height:40px;padding:3px}.screen-color-inputs input[type=text]{width:100%;min-width:0;height:40px;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:6px;padding:7px 10px;font-size:13px}.screen-field-note{margin:10px 0 0}.screen-stage-choices,.screen-choice-row{flex-wrap:wrap;gap:7px;margin:14px 0;display:flex}.screen-stage-choices button,.screen-choice-row button,.screen-small-button{min-height:36px;color:var(--ink);background:var(--card);border:1px solid var(--line);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:7px 10px;font-size:12px;line-height:1.4;display:inline-flex}.screen-stage-choices button[aria-pressed=true],.screen-choice-row button[aria-pressed=true]{color:var(--accent-dark);background:var(--accent-soft);border-color:var(--accent);font-weight:700}.screen-swatch{border:1px solid var(--sample-canvas-edge);border-radius:50%;flex:0 0 14px;width:14px;height:14px;display:inline-block}.screen-wake-control{margin:20px 0}.screen-wake-control label{cursor:pointer;align-items:flex-start;gap:9px;font-size:12px;display:flex}.screen-wake-control input{width:16px;height:16px;accent-color:var(--accent);flex:none;margin-top:2px}.screen-wake-control small{margin:5px 0 0 25px;font-size:11px;display:block}.screen-wake-control .screen-small-button{margin:8px 0 0 25px}.screen-start-button{width:100%;margin-top:2px}.screen-step-actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.screen-step-actions .button{flex:1;min-height:39px;padding:8px 12px;font-size:12px}.screen-step-actions button:disabled{opacity:.4;cursor:default}.screen-progress{color:var(--muted);gap:8px;margin-top:20px;font-size:12px;display:grid}.screen-progress progress{width:100%;height:5px;accent-color:var(--accent)}.screen-setup{background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:14px 16px}.screen-setup h3{margin:0 0 8px;font-size:13px}.screen-setup ol{color:var(--muted);margin:0;padding-left:18px;font-size:12px}.screen-setup li+li{margin-top:6px}.screen-workflow{border-bottom:1px solid var(--line);flex-wrap:wrap;gap:8px 18px;margin:0;padding:17px 24px;list-style:none;display:flex}.screen-workflow button{color:var(--muted);cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:0;font-size:12px;display:inline-flex}.screen-workflow button span{background:var(--soft);border:1px solid var(--line);border-radius:50%;place-items:center;width:23px;height:23px;display:grid}.screen-workflow button[aria-current=step]{color:var(--accent-dark);font-weight:700}.screen-workflow button[aria-current=step] span{background:var(--accent-soft);border-color:var(--accent)}.screen-completion{color:var(--ink);background:var(--accent-soft);border-bottom:1px solid var(--line);padding:18px 24px;font-size:14px}.screen-completion p{margin:5px 0 0;font-size:12px}.screen-full-display{z-index:10000;background:#000;border:0;outline:none;width:100%;height:100dvh;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}.screen-full-display:fullscreen{z-index:10000;background:#000;border:0;outline:none;width:100%;height:100dvh;margin:0;padding:0;position:fixed;inset:0;overflow:hidden}.screen-full-controls{right:max(20px, env(safe-area-inset-right));bottom:max(20px, env(safe-area-inset-bottom));left:max(20px, env(safe-area-inset-left));width:min(680px,100% - 40px);max-height:calc(100dvh - 40px);color:var(--ink);background:var(--card);border:1px solid var(--line);opacity:1;border-radius:12px;margin:0 auto;padding:18px;transition:opacity .12s;position:absolute;overflow-y:auto;box-shadow:0 8px 40px #0002}.screen-full-controls.is-hidden{opacity:0;pointer-events:none}.screen-full-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.screen-full-heading strong{font-size:15px;display:block}.screen-full-heading-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px;display:flex}.screen-full-heading span{color:var(--muted);margin-top:3px;font-size:11px;display:block}.screen-exit-button{min-height:40px;color:var(--ink);background:var(--soft);border:1px solid var(--line);cursor:pointer;border-radius:7px;flex:none;align-items:center;gap:6px;padding:8px 12px;font-size:12px;display:inline-flex}.screen-full-instruction,.screen-full-bottom>p{color:var(--muted);margin:12px 0 0;font-size:12px;line-height:1.55}.screen-full-settings{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:0 16px;display:grid}.screen-full-settings>.screen-field-note{grid-column:1/-1}.screen-full-settings .screen-small-button{place-self:center start}.screen-full-settings .screen-choice-row{align-self:center}.screen-full-settings:empty{display:none}.screen-full-bottom{justify-content:space-between;gap:12px;display:flex}.screen-full-bottom .screen-wake-control{flex:1;margin:14px 0 0}.screen-full-bottom>p{flex:1;align-self:center;max-width:260px;font-size:11px}.screen-tool button:focus-visible,.screen-tool input:focus-visible,.screen-full-display button:focus-visible,.screen-full-display input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media (width<=800px){.screen-tool-body{grid-template-columns:minmax(0,1fr)}.screen-preview-column{border-right:0;border-bottom:1px solid var(--line);padding:20px}.screen-preview{min-height:210px}.screen-controls{padding:20px}}@media (width<=500px){.screen-tool-topbar{padding:13px 18px}.screen-workflow{gap:8px 13px;padding:15px 18px}.screen-workflow button{font-size:11px}.screen-full-controls{right:max(10px, env(safe-area-inset-right));bottom:max(10px, env(safe-area-inset-bottom));left:max(10px, env(safe-area-inset-left));width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:14px}.screen-full-settings,.screen-full-bottom{display:block}.screen-full-bottom>p{max-width:none}.screen-full-settings .screen-field{margin:12px 0}}@media (prefers-reduced-motion:reduce){.screen-full-controls{transition:none}}.screen-resolution .utility-controls{min-width:0}.screen-resolution-preview{text-align:center;flex-direction:column;justify-content:center;gap:14px;display:flex}.screen-resolution-preview>svg{color:var(--accent)}.screen-resolution-label{color:var(--muted);font-size:14px;font-weight:650}.screen-resolution-main-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(24px,3vw,38px);font-weight:750;line-height:1.25}.screen-resolution-preview>span{color:var(--muted);font-size:14px}.screen-resolution-limitation{max-width:320px;color:var(--muted);font-size:14px;line-height:1.8}.screen-resolution-preview>.screen-resolution-live{border:1px solid var(--line);background:var(--card);border-radius:6px;margin-top:12px;padding:6px 10px;font-size:12px}.screen-resolution-metrics{margin:0}.screen-resolution-metric{border-bottom:1px solid var(--line);padding:14px 0}.screen-resolution-metric dt{color:var(--muted);font-size:13px}.screen-resolution-metric dd{margin:5px 0 0;font-size:15px}.screen-resolution-metric dd strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:20px;font-weight:700}.screen-resolution-metric dd>span{color:var(--muted);margin-left:8px;font-size:12px}.screen-resolution-metric dd p{color:var(--muted);margin-top:5px;font-size:13px;line-height:1.7}.screen-resolution-note{margin:16px 0}.screen-resolution-copy-status{min-height:20px;color:var(--muted);margin-top:8px;font-size:13px;line-height:1.7}.screen-resolution-fallback{margin-top:12px}.screen-resolution-fallback textarea{resize:vertical;min-height:180px}.screen-resolution-create{border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.screen-resolution-create h3{margin:0 0 14px;font-size:16px}.screen-resolution-output{font-variant-numeric:tabular-nums;margin-top:12px;font-size:14px;font-weight:650}.screen-resolution-actions{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}.screen-resolution-actions .button{white-space:normal;text-align:center}@media (width<=760px){.screen-resolution{grid-template-columns:minmax(0,1fr)}.screen-resolution-preview{min-height:280px;padding:28px 20px}.screen-resolution .utility-controls{padding:24px 20px}}
