.tool-shell{max-width:1440px;margin:auto;padding:24px clamp(16px,3vw,40px) 64px}.tool-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px clamp(16px,3vw,40px);border-bottom:1px solid var(--line)}.tool-head nav{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tool-brand{font:700 26px var(--font-display);color:var(--text);text-decoration:none}.tool-shell h1{font:700 clamp(32px,4vw,56px)/1.08 var(--font-display);max-width:22ch;margin:20px 0 16px;letter-spacing:-.025em;text-wrap:balance}.tool-intro{max-width:70ch;color:var(--mut);margin-bottom:28px}.tool-shell h2{font:700 25px var(--font-display);margin:32px 0 12px}.tool-shell h3{font:700 20px var(--font-display)}.tool-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:32px;align-items:start}.tool-preview{position:sticky;top:20px;min-width:0}.tool-canvas{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;background:repeating-conic-gradient(#253751 0 25%,#17263b 0 50%) 0/20px 20px;border-radius:12px;border:1px solid var(--line)}.tool-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.tool-shell button,.tool-head button,.tool-shell select,.tool-shell input:not([type=checkbox]):not([type=color]),.tool-shell textarea{min-height:44px;font:inherit;border:1px solid var(--line-strong,#61789b);border-radius:8px;padding:10px 12px;color:var(--text);background:var(--surface)}.tool-shell button{cursor:pointer}.tool-shell button:hover{background:var(--surface-2)}.tool-shell button.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent);font-weight:700}.tool-shell button:disabled{opacity:.55;cursor:not-allowed}.tool-shell button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.tool-shell input,.tool-shell select,.tool-shell textarea{width:100%;min-width:0}.tool-shell textarea{resize:vertical;min-height:90px}.tool-shell input[type=color]{width:100%;height:44px;padding:4px;background:var(--surface);border:1px solid var(--line-strong);border-radius:8px}.tool-shell input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent);flex-shrink:0}.tool-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.tool-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:15px}.tool-field.full{grid-column:1/-1}.tool-check{display:flex;align-items:center;min-height:44px;gap:10px}.tool-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:4px}.tool-theme{padding:0!important;text-align:left;overflow:hidden;min-width:0}.tool-theme canvas{width:100%;display:block;aspect-ratio:16/9}.tool-theme span{display:block;padding:8px;font-size:13px;line-height:1.3}.tool-note{color:var(--mut);font-size:14px;line-height:1.6;max-width:72ch}.tool-status{min-height:28px;overflow-wrap:anywhere;color:var(--text)}.tool-status.error{color:var(--bad,#ff9d9d)}.tool-shell progress{width:100%;height:12px;accent-color:var(--accent)}.tool-project{display:flex;gap:8px;padding:12px 0;border-top:1px solid var(--line);align-items:center;flex-wrap:wrap}.tool-project img{width:90px;aspect-ratio:16/9;object-fit:cover}.tool-project strong{flex:1;min-width:120px;overflow-wrap:anywhere}.tool-day{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 0;border-bottom:1px solid var(--line)}.tool-day h3{grid-column:1/-1;margin:0}.tool-hub{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:32px 0}.tool-hub article{border-top:1px solid var(--line);padding-top:20px;min-width:0}.tool-hub canvas{width:100%;aspect-ratio:16/9;display:block;border-radius:12px;background:var(--surface)}.tool-hub a{display:inline-flex;min-height:44px;align-items:center;font-weight:700}.tool-badge{font-size:13px;padding:4px 8px;border-radius:6px;background:var(--surface-2);display:inline-block;margin:8px 6px 0 0}.tool-shell details{border-top:1px solid var(--line);padding:16px 0}.tool-shell summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}.tool-shell :focus-visible,.tool-head :focus-visible{outline:3px solid var(--accent-text);outline-offset:3px}.tool-head a,.tool-shell a{color:var(--accent-text);text-underline-offset:4px}.tool-understood li{margin:8px 0}.tool-table{width:100%;border-collapse:collapse;overflow-wrap:anywhere}.tool-table td,.tool-table th{padding:12px 6px;text-align:left;border-bottom:1px solid var(--line)}.tool-result{padding:18px 0;border-top:1px solid var(--line)}.tool-result video{width:min(100%,500px);max-height:260px}.tool-result.ignored{opacity:.65}.tool-shell [hidden]{display:none!important}.tool-footer{border-top:1px solid var(--line);margin-top:42px;padding-top:20px;display:flex;gap:20px;flex-wrap:wrap}.tool-private{padding:12px 0;line-height:1.6;color:var(--mut)}.tool-out{overflow-wrap:anywhere;white-space:pre-wrap;max-height:260px;overflow:auto;padding:14px;background:var(--surface);border-radius:8px}.tool-presets{margin:20px 0}.tool-localmark{font-size:14px;color:var(--mut)}.tool-obs{margin:0;overflow:hidden;background:transparent!important}.tool-obs canvas{display:block;width:100vw;height:100vh;object-fit:contain}.tool-share{width:100%}.tool-checklist{padding-left:24px}.tool-checklist li{margin:8px 0}.tool-shell ::selection{background:var(--accent);color:var(--on-accent)}
@media(max-width:850px){.tool-grid{grid-template-columns:1fr}.tool-preview{position:relative;top:0}.tool-canvas{max-height:55vh}.tool-hub{gap:20px}.tool-head nav{gap:12px;font-size:14px}}@media(max-width:480px){.tool-hub{grid-template-columns:1fr}.tool-fields{grid-template-columns:1fr}.tool-field.full{grid-column:auto}.tool-themes{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-head{gap:10px}.tool-head nav{width:100%;justify-content:space-between}.tool-shell h1{max-width:22ch}.tool-actions button{flex:1 1 auto}}@media(prefers-reduced-motion:reduce){.tool-shell *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.tool-head .ic-appr-btn{min-width:44px;min-height:44px;width:44px;height:44px}.tool-head .topnav a{min-width:44px;justify-content:center}.tool-head .topnav{margin-left:0}
