@import 'tailwindcss'; @font-face { font-family: GeistSans; font-display: swap; src: local('Geist'), url('./style/geist-sans.woff2') format('woff2'); font-weight: 100 900; } @font-face { font-family: GeistMono; font-display: swap; src: local('Geist Mono'), url('./style/geist-mono.woff2') format('woff2'); font-weight: 100 900; } @theme { /* Canonical names from DESIGN.md */ --color-dark-greeny: #181d16; --color-mid-dark-greeny: #293126; --color-greeny: #3e4939; --color-yellow: #ffff11; --color-orange: #f09139; --color-off-off-white: #ddd9c0; --color-off-white: #ecebe3; --color-fake-gray: #d7e2cc; --color-white: #ffffff; /* UI foreground alias — prefer off-white over pure white */ --color-primary: #ecebe3; --font-sans: 'GeistSans', 'Geist', ui-sans-serif, system-ui, sans-serif; --font-mono: 'GeistMono', 'Geist Mono', ui-monospace, monospace; } :root { color-scheme: dark; /* Derived tokens — kept in step with dashy so both apps mix the same lines and surfaces */ --line: color-mix(in oklab, var(--color-fake-gray) 20%, transparent); --line-strong: color-mix(in oklab, var(--color-fake-gray) 36%, transparent); --muted: color-mix(in oklab, var(--color-fake-gray) 72%, transparent); --faint: color-mix(in oklab, var(--color-fake-gray) 55%, transparent); --surface-1: var(--color-dark-greeny); --surface-2: color-mix(in oklab, var(--color-off-white) 4.5%, transparent); --surface-3: color-mix(in oklab, var(--color-off-white) 8%, transparent); --radius: 0; --safe-top: env(safe-area-inset-top, 0px); --safe-right: env(safe-area-inset-right, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); --safe-left: env(safe-area-inset-left, 0px); --panel-width: min(20rem, 100%); } * { box-sizing: border-box; } html, body, #app { height: 100%; margin: 0; } @supports (height: 100dvh) { html, body, #app { height: 100dvh; } } body { background: var(--color-mid-dark-greeny); color: var(--color-off-white); font-family: var(--font-sans); font-weight: 400; -webkit-font-smoothing: antialiased; overflow: hidden; touch-action: manipulation; } ::selection { background: var(--color-yellow); color: var(--color-greeny); } input[type='range'] { appearance: none; background: transparent; cursor: pointer; height: 28px; width: 100%; } input[type='range']::-webkit-slider-runnable-track { background: var(--line-strong); border-radius: 0; height: 2px; } input[type='range']::-webkit-slider-thumb { appearance: none; background: var(--color-off-white); border: none; border-radius: 0; height: 14px; margin-top: -6px; transition: background-color 0.15s ease; width: 10px; } input[type='range']:hover::-webkit-slider-thumb { background: var(--color-yellow); } input[type='range']::-moz-range-track { background: var(--line-strong); border-radius: 0; height: 2px; } input[type='range']::-moz-range-thumb { background: var(--color-off-white); border: none; border-radius: 0; height: 14px; width: 10px; } input[type='range']:hover::-moz-range-thumb { background: var(--color-yellow); } input[type='color'] { appearance: none; background: transparent; border: none; cursor: pointer; height: 18px; padding: 0; width: 18px; } input[type='color']::-webkit-color-swatch-wrapper { padding: 0; } input[type='color']::-webkit-color-swatch { border: 1px solid var(--line-strong); border-radius: 0; } /* Section eyebrow or field caption */ .ui-label { color: var(--muted); font-size: 0.75rem; font-weight: 500; } /* Header tab — lowercase label behind a muted shortcut number. The active tab is a solid yellow block */ .ui-tab { align-items: center; background: transparent; border: none; border-radius: var(--radius); color: color-mix(in oklab, var(--color-off-white) 80%, transparent); cursor: pointer; display: inline-flex; flex-shrink: 0; font-size: 0.875rem; font-weight: 500; gap: 0.375rem; justify-content: center; line-height: 1.25rem; min-height: 2.25rem; padding: 0.375rem 0.625rem; text-decoration: none; text-transform: lowercase; transition: background-color 0.15s ease, color 0.15s ease; white-space: nowrap; } .ui-tab:hover { background: var(--surface-2); color: var(--color-off-white); } .ui-tab.is-active { background: var(--color-yellow); color: var(--color-dark-greeny); } .ui-tab-key { color: color-mix(in oklab, var(--color-off-white) 50%, transparent); font-family: var(--font-mono); } .ui-tab.is-active .ui-tab-key { color: color-mix(in oklab, var(--color-dark-greeny) 55%, transparent); } /* Tab row — scrolls sideways with faded edges on narrow screens, wraps from lg up. The side padding equals the fade width, so the first and last tab clear the fade at either end. */ .ui-tab-row { display: flex; flex-wrap: nowrap; gap: 1px; mask-image: linear-gradient(to right, transparent, black 0.75rem, black calc(100% - 0.75rem), transparent); overflow-x: auto; padding: 0.25rem 0.75rem; scroll-padding-inline: 0.75rem; scroll-snap-type: x proximity; scrollbar-width: none; } .ui-tab-row::-webkit-scrollbar { display: none; } .ui-tab-row > .ui-tab { scroll-snap-align: start; } @media (min-width: 1024px) { .ui-tab-row { flex-wrap: wrap; mask-image: none; overflow-x: visible; padding: 0.25rem 0.375rem; scroll-snap-type: none; } } .ui-chip { background: transparent; border: 1px solid transparent; border-radius: var(--radius); color: var(--muted); cursor: pointer; font-size: 0.75rem; font-weight: 500; min-height: 2rem; padding: 0.375rem 0.75rem; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; } .ui-chip:hover { background: var(--color-yellow); color: var(--color-greeny); } .ui-chip.is-active { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-greeny); } .ui-seg { background: var(--surface-2); border-radius: var(--radius); display: grid; gap: 2px; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; } .ui-seg-btn { background: transparent; border: none; border-radius: var(--radius); color: var(--muted); cursor: pointer; font-size: 0.75rem; font-weight: 500; min-height: 2.25rem; padding: 0.5rem 0.5rem; transition: background-color 0.15s ease, color 0.15s ease; } .ui-seg-btn:hover { background: var(--color-yellow); color: var(--color-greeny); } .ui-seg-btn.is-active { background: var(--color-yellow); color: var(--color-greeny); } .ui-field { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); min-height: 2.5rem; padding: 0.5rem 0.625rem; transition: border-color 0.15s ease; } .ui-field:focus-within { border-color: var(--color-yellow); } .ui-btn { background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius); color: var(--color-off-white); cursor: pointer; font-size: 0.875rem; font-weight: 500; min-height: 2.75rem; padding: 0.625rem 0.875rem; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; } .ui-btn:hover { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-greeny); } .ui-btn-primary { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-greeny); } .ui-btn-primary:hover { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-greeny); filter: brightness(1.05); } .ui-btn-ghost { background: transparent; border: 1px solid transparent; border-radius: var(--radius); color: var(--muted); cursor: pointer; font-size: 0.875rem; font-weight: 500; min-height: 2.75rem; padding: 0.625rem 0.875rem; transition: color 0.15s ease, background-color 0.15s ease; } .ui-btn-ghost:hover { background: var(--color-yellow); color: var(--color-greeny); } .ui-link { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.8125rem; font-weight: 500; min-height: 2.5rem; padding: 0.5rem 0; transition: color 0.15s ease; } .ui-link:hover { color: var(--color-yellow); } /* Rectangular on/off control — not a pill */ .ui-toggle { background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; flex-shrink: 0; height: 22px; position: relative; transition: background-color 0.15s ease, border-color 0.15s ease; width: 40px; } .ui-toggle.is-on { background: var(--color-yellow); border-color: var(--color-yellow); } .ui-toggle-knob { background: var(--color-off-white); border-radius: var(--radius); height: 14px; left: 3px; position: absolute; top: 3px; transition: transform 0.15s ease, background-color 0.15s ease; width: 14px; } .ui-toggle.is-on .ui-toggle-knob { background: var(--color-greeny); transform: translateX(18px); } .ui-panel-shell { background: var(--surface-1); border-right: 1px solid var(--line); display: flex; flex-direction: column; flex-shrink: 0; height: 100%; max-width: 100%; padding-left: var(--safe-left); width: var(--panel-width); } .ui-panel-shell.is-collapsed { width: calc(2.75rem + var(--safe-left)); } .ui-panel-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; } .ui-panel-shell.is-collapsed .ui-panel-body { display: none; } .ui-panel-toggle-row { align-items: center; display: flex; flex-shrink: 0; min-height: 2.75rem; padding: 0.25rem; } .ui-panel-shell.is-collapsed .ui-panel-toggle-row { flex: 1; justify-content: center; } .ui-panel-shell:not(.is-collapsed) .ui-panel-toggle-row { border-bottom: 1px solid var(--line); justify-content: flex-end; } .ui-panel-toggle { align-items: center; background: transparent; border: none; border-radius: var(--radius); color: var(--muted); cursor: pointer; display: inline-flex; height: 2.25rem; justify-content: center; transition: background-color 0.15s ease, color 0.15s ease; width: 2.25rem; } .ui-panel-toggle:hover { background: var(--color-yellow); color: var(--color-greeny); } @media (min-width: 768px) { .ui-tab { min-height: auto; padding: 0.25rem 0.625rem; } .ui-chip { min-height: auto; padding: 0.25rem 0.625rem; } .ui-seg-btn { min-height: auto; padding: 0.3125rem 0.5rem; } .ui-field { min-height: auto; padding: 0.375rem 0.5rem; } .ui-btn, .ui-btn-ghost { font-size: 0.8125rem; min-height: auto; padding: 0.5rem 0.75rem; } .ui-link { font-size: 0.75rem; min-height: auto; padding: 0; } .ui-toggle { height: 16px; width: 30px; } .ui-toggle-knob { height: 10px; left: 2px; top: 2px; width: 10px; } .ui-toggle.is-on .ui-toggle-knob { transform: translateX(14px); } input[type='range'] { height: 16px; } input[type='range']::-webkit-slider-thumb { height: 12px; margin-top: -5px; width: 8px; } input[type='range']::-moz-range-thumb { height: 12px; width: 8px; } }