/* Aza Design · build · genre: modern-minimal · macrostructure: Component Playground · theme: Terminal
 * N9 minimal header, Ft2 inline footer; restrained color; variance 3 / motion 2 / density 6
 * pre-emit critique: P5 H4 E4 S4 R5 V4 */
:root {
  color-scheme: light dark;
  --surface: #e9efed; --panel: #f6f9f8; --field: #f9fcfb; --ink: #172925;
  --muted: #405d55; --line: #a1b5ae; --control-line: #405d55; --accent: #155b49; --accent-ink: #f3faf7;
  --danger: #862d25; --focus: #136f57; --font-body: system-ui, -apple-system, sans-serif;
  --font-number: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --surface: #151e1c; --panel: #1d2a26; --field: #253630; --ink: #e8f2ed; --muted: #bbcec5; --line: #5c756b; --control-line: #bbcec5; --accent: #9ad8b9; --accent-ink: #10251c; --danger: #ffb3a6; --focus: #a9e9c9; }
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.5; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-family: var(--font-number); font-weight: 800; text-decoration: none; white-space: nowrap; }
.topbar span { color: var(--muted); text-align: right; }
.intro { padding: 2rem 0 1.5rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.025em; overflow-wrap: anywhere; }
h1 span, h2 span { color: var(--muted); font-weight: 500; }
.intro p, .all-heading p { color: var(--muted); margin-top: .4rem; }
.workspace { background: var(--panel); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }
.category-field { max-width: 30rem; margin-bottom: 1.5rem; }
label { display: block; font-weight: 700; margin-bottom: .4rem; }
label span { color: var(--muted); font-weight: 500; }
input, select, button, output { font: inherit; }
input, select, output { width: 100%; min-width: 0; min-height: 3.25rem; border: 1px solid var(--control-line); border-radius: .2rem; background: var(--field); color: var(--ink); padding: .65rem .8rem; }
input, output { font-family: var(--font-number); font-variant-numeric: tabular-nums; font-size: 1.15rem; }
input::placeholder { color: var(--muted); opacity: 1; }
output { display: block; overflow-wrap: anywhere; }
select { cursor: pointer; }
button { min-height: 2.75rem; border: 1px solid var(--accent); border-radius: .2rem; background: var(--accent); color: var(--accent-ink); padding: .55rem .85rem; font-weight: 700; cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(.92); }
button:active:not(:disabled) { transform: scale(.98); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--ink); border-color: var(--control-line); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.conversion { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.field-group select { margin-top: .6rem; }
.swap { min-width: 3rem; margin-top: 2rem; font-size: 1.4rem; }
.help, .message { color: var(--muted); margin-top: .6rem; }
.message:empty { display: none; }
.error, .warning { color: var(--danger); }
.warning { margin-top: 1rem; font-weight: 700; }
.copy-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.all-section { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.all-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h2 { font-size: 1.25rem; }
.unit-row { display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(0, 2fr) auto; gap: .75rem; align-items: center; border-bottom: 1px solid var(--line); padding: .6rem 0; }
.unit-row output { border: 0; background: transparent; padding: 0; min-height: auto; font-size: 1rem; text-align: right; }
.unit-row button { white-space: nowrap; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1.25rem 2rem; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 767px) { .conversion { grid-template-columns: minmax(0, 1fr); } .swap { margin: 0; } .intro { padding-top: 1.5rem; } .unit-row { grid-template-columns: minmax(4.5rem, 1fr) minmax(0, 1.5fr) auto; gap: .4rem; } .unit-row button { padding-inline: .55rem; } }
