/* Suma UI v1 · tokens + pressable controls. Bilingual product. Palette and type from the Suma brand kit (brand-kit/). */
:root {
  --suma-celeste: #00ADEE; --suma-jade: #01A779; --suma-forest: #1B2B23; --suma-mist: #F5F8F6; --suma-night: #15261D; --suma-action: #006B4F;

  --app-bg: #F5F8F6; --surface: #FFFFFF; --surface-2: #EEF4F1;
  --ink: #1B2B23; --ink-soft: #52645A; --ink-faint: #7C948A;
  --line: #DCE6DF; --line-strong: #B9CFC6;

  --rail: #1B2B23; --rail-2: #0E2F28; --rail-ink: #F4FAF7; --rail-ink-soft: #B5C9C0; --rail-line: #1E4F44; --rail-active: #1B5145;

  --accent: #006B4F; --accent-ink: #004D38; --accent-soft: #E6F5ED; --on-accent: #FFFFFF; --accent-edge: #004D38;
  --edge: #B9CFC6;

  --ok: #007A55; --ok-bg: #E6F5ED; --wait: #805600; --wait-bg: #FFF2CC; --bad: #B42332; --bad-bg: #FDECEF;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(27, 43, 35, .06), 0 1px 3px rgba(27, 43, 35, .04);
  --shadow: 0 1px 2px rgba(27, 43, 35, .06), 0 10px 26px -18px rgba(27, 43, 35, .35);
  --r: 16px; --r-sm: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --app-bg: #15261D; --surface: #172B23; --surface-2: #20392F;
    --ink: #F4FAF7; --ink-soft: #B5C9C0; --ink-faint: #8FA69C;
    --line: #365348; --line-strong: #4A6659;
    --rail: #0B1613; --rail-2: #081210; --rail-line: #1E3A31; --rail-active: #1B4A3D;
    --accent: #00ADEE; --accent-ink: #A7E3F9; --accent-soft: #153A2D; --on-accent: #1B2B23; --accent-edge: #3FA7CE;
    --edge: #0A1512;
    --ok: #6EE7B7; --ok-bg: #153A2D; --wait: #F8D47B; --wait-bg: #3D3116; --bad: #FFB3BC; --bad-bg: #45232B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 28px -20px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --app-bg: #15261D; --surface: #172B23; --surface-2: #20392F;
  --ink: #F4FAF7; --ink-soft: #B5C9C0; --ink-faint: #8FA69C;
  --line: #365348; --line-strong: #4A6659;
  --rail: #0B1613; --rail-2: #081210; --rail-line: #1E3A31; --rail-active: #1B4A3D;
  --accent: #00ADEE; --accent-ink: #A7E3F9; --accent-soft: #153A2D; --on-accent: #1B2B23; --accent-edge: #3FA7CE;
  --edge: #0A1512;
  --ok: #6EE7B7; --ok-bg: #153A2D; --wait: #F8D47B; --wait-bg: #3D3116; --bad: #FFB3BC; --bad-bg: #45232B;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 28px -20px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

/* Pressable controls: a dark bottom edge lifts the control off the page. No side highlights.
   Hover grows it slightly; a click pushes it down onto its edge. */
.press {
  box-shadow: 0 4px 0 var(--edge);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
  will-change: transform;
}
.press:hover { transform: translateY(-1px) scale(1.025); box-shadow: 0 5px 0 var(--edge); }
.press:active { transform: translateY(3px) scale(.995); box-shadow: 0 1px 0 var(--edge); }
.press.primary, .press[data-primary] { --edge: var(--accent-edge); }
.press:disabled, .press[aria-disabled="true"] { transform: none; box-shadow: 0 2px 0 var(--edge); opacity: .55; cursor: not-allowed; }
.press:focus-visible { outline: 3px solid var(--suma-celeste); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .press, .press:hover, .press:active { transition: none; transform: none; }
}
