@import './variables.css'; * { box-sizing: border-box; user-select: none; } input, select, textarea, [contenteditable='true'] { user-select: text; } html, body, #root { height: 100%; font-size: var(--font-size); } body { margin: 0; background: var(--bg-void); color: var(--text-primary); font-family: var(--font-ui); } .mono { font-family: var(--font-mono); } .app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; } @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; } } button:focus-visible, *:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--accent-brand); } button { transition: background var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); } .stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-panel); overflow-y: auto; -webkit-overflow-scrolling: touch; } /* Global scrollbar */ ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-hairline); border-radius: var(--radius-pill); } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* ---------- Touch / phone support ---------- */ html, body { overscroll-behavior: none; /* no pull-to-refresh / rubber-band */ -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } button, [role='button'] { touch-action: manipulation; /* removes 300ms delay + double-tap zoom */ } /* Safe areas (notch, status bar, home indicator) */ .app { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-left: 0; padding-right: 0; } /* Touch devices: bigger hit targets, no hover-only behaviour */ @media (pointer: coarse) { button, select, input[type='checkbox'], input[type='radio'] { min-height: var(--touch-target); } } /* ---------- Phone layout ---------- */ @media (max-width: 768px) { .stage { align-items: flex-start; justify-content: center; padding: 12px 8px; overflow-y: auto; overflow-x: hidden; min-height: 0; -webkit-overflow-scrolling: touch; } .stage > * { margin: 0 auto; flex-shrink: 0; } /* Prevent inputs from triggering iOS focus zoom */ input, select, textarea { font-size: 16px; } } /* ---------- Landscape phone ---------- */ @media (max-height: 500px) and (orientation: landscape) { .app { height: 100vh; height: 100dvh; min-height: 0; } .stage { align-items: flex-start; justify-content: center; padding: 8px; overflow-y: auto; overflow-x: hidden; min-height: 0; } .stage > * { margin: 0 auto; flex-shrink: 0; } .add-dsp-form { width: 100%; max-width: 520px; margin-top: 0; margin-bottom: 8px; } }