/* Web equivalents of TrackTechStyle, ActionButton, Section, Card, Field and
   SectionSwitcher. Behavior lives in app.js; shared tokens own visual states. */
:root{color-scheme:dark;--tt-background:#101112;--tt-surface:#1c1e20;--tt-raised:#272a2c;--tt-field:#141618;--tt-border:#393e41;--tt-text:#f1f3f4;--tt-secondary:#adb5ba;--tt-green:#8be5a7;--tt-green-surface:#233e2c;--tt-danger:#ffc0c0;--tt-space-small:.5rem;--tt-space:.875rem;--tt-section-gap:1.125rem;--tt-inset:1rem;--tt-control-radius:.75rem;--tt-card-radius:1.25rem;font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--tt-background);color:var(--tt-text)}button,input,video{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--tt-green)}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--tt-green);outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:2rem;letter-spacing:-.035em;line-height:1.2}h2{font-size:1.05rem;letter-spacing:-.01em}h3{font-size:1.1rem}p{overflow-wrap:anywhere}[hidden]{display:none!important}.tt-card,.tt-section{background:var(--tt-surface);border-radius:var(--tt-card-radius);padding:var(--tt-inset)}.tt-button,.tt-icon,.tt-choice{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:1px solid transparent;border-radius:var(--tt-control-radius);background:var(--tt-raised);color:var(--tt-text);min-height:44px;padding:.55rem 1rem;font-weight:600;text-decoration:none;line-height:1.35}.tt-button:hover,.tt-icon:hover,.tt-choice:hover{background:#34393c}.tt-button.primary{background:var(--tt-green);color:#102617}.tt-button.primary:hover{background:#a6f4bf}.tt-icon{width:44px;padding:.5rem;flex-shrink:0;font-size:1.25rem}.tt-choice[aria-pressed=true]{background:var(--tt-green-surface);border-color:var(--tt-green);color:#bbf4cc}.tt-choice[aria-pressed=true]::before{content:'✓';font-weight:700}.tt-field{width:100%;background:var(--tt-field);color:var(--tt-text);border:1px solid var(--tt-border);border-radius:var(--tt-control-radius);min-height:44px;padding:.65rem .85rem}.tt-field::placeholder{color:#929ba1}.tt-switcher{display:flex;gap:.5rem;overflow-x:auto;scrollbar-width:thin;padding:4px 4px 10px;margin-inline:-4px}.tt-switcher>*{flex-shrink:0}.tt-sheet{background:var(--tt-surface);color:var(--tt-text);border:1px solid var(--tt-border);border-radius:var(--tt-card-radius);padding:1.5rem;width:min(600px,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto}.tt-sheet::backdrop{background:#000b;backdrop-filter:blur(7px)}.tt-sheet p{margin:1rem 0}.tt-sheet h2{font-size:1.4rem}.sheet-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.sheet-heading h2{overflow-wrap:anywhere}.sheet-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.5rem}.quiet{color:var(--tt-secondary);font-size:.875rem}.notice{padding:1rem;background:var(--tt-surface);border:1px solid var(--tt-border);border-radius:var(--tt-control-radius);margin-bottom:1rem}.error{color:var(--tt-danger)}.notice.error{border-color:#744c4c}.badge{display:inline-block;border:1px solid var(--tt-border);border-radius:99px;padding:.2rem .65rem;color:var(--tt-secondary);font-size:.75rem;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.text-button{background:transparent;border:0;color:var(--tt-green);min-height:44px;padding:.5rem;font-size:.875rem}.action-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.skip-link{position:fixed;top:-100px;left:1rem;z-index:20;padding:.6rem;background:var(--tt-surface)}.skip-link:focus{top:1rem}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}@media(prefers-contrast:more){:root{--tt-secondary:#e0e3e5;--tt-border:#8d969c}.tt-card,.tt-section{outline:1px solid var(--tt-border)}}
