/* Direction: Ledger Stone — pale stone paper, ink-black grotesque, one emerald
   accent kept for approvals, committed money and the main button. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f3f1ec;
  --surface: #faf9f6;
  --surface-2: #e9e6de;
  --border: #d5d0c4;
  --border-strong: #abada8;
  --ink: #14120f;
  --muted: #656056;
  --accent: #0b6b4a;
  --accent-hover: #095b3f;
  --accent-ink: #ffffff;
  --accent-text: #0a5c40;
  --accent-strong: #084d35;
  --accent-soft: #dfeee6;
  --accent-border: #8bb5a3;
  --success: #0b6b4a;
  --success-ink: #ffffff;
  --success-soft: #d7e1d9;
  --success-strong: #0b6b4a;
  --warning: #8a5a12;
  --warning-ink: #ffffff;
  --warning-soft: #e6dfd2;
  --warning-strong: #7f5311;
  --danger: #9a2d20;
  --danger-ink: #ffffff;
  --danger-soft: #e8d9d4;
  --danger-strong: #9a2d20;
  --chart-1: #0b6b4a;
  --chart-2: #0d809f;
  --chart-3: #453f90;
  --chart-4: #a04c82;
  --chart-5: #803107;
  --chart-6: #7d7310;

  --x-danger-soft: #f3e3df;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.025em;
  --radius-btn: 4px;
  --radius-card: 4px;
  --radius-input: 4px;
  --shadow-card: none;
  --card-pad: 1.25rem;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #020f0a;
  --surface: #1b2723;
  --surface-2: #0f1b16;
  --border: #25312c;
  --border-strong: #4e5754;
  --ink: #f3f1ec;
  --muted: #939792;
  --accent: #0b6b4a;
  --accent-hover: #308165;
  --accent-ink: #ffffff;
  --accent-text: #5e9d86;
  --accent-strong: #50957c;
  --accent-soft: #042318;
  --accent-border: #063827;
  --success: #0b6b4a;
  --success-ink: #ffffff;
  --success-soft: #042318;
  --success-strong: #50957c;
  --warning: #8a5a12;
  --warning-ink: #ffffff;
  --warning-soft: #20200c;
  --warning-strong: #ab8855;
  --danger: #9a2d20;
  --danger-ink: #ffffff;
  --danger-soft: #23160f;
  --danger-strong: #bc746c;
  --chart-1: #277d5b;
  --chart-2: #1994b6;
  --chart-3: #7674cb;
  --chart-4: #b45e95;
  --chart-5: #bf633b;
  --chart-6: #90851b;
}

/* Signoff's own screen behaviour: pages settle in, budget bars fill,
   figures stay tabular. Tokens only. */

/* Nothing in this ledger may push the page sideways on a phone. */
body {
  overflow-x: clip;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
main {
  animation: pageIn 0.42s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

@keyframes barFill {
  from {
    transform: scaleX(0.001);
  }
}
.bar-fill {
  transform-origin: left center;
  animation: barFill 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html.reduced-motion main,
html.reduced-motion .bar-fill {
  animation: none;
}

.input,
.select,
.date {
  font-variant-numeric: tabular-nums;
}

.row-link {
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

/* The bulk signing bar: rests just below the page, slides up when rows are ticked. */
.bulk-bar {
  transform: translateY(115%);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bulk-bar.is-open {
  transform: translateY(0);
}
html.reduced-motion .bulk-bar {
  transition: none;
}

[data-bulk-row].is-picked {
  background-color: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}
.row-link:hover .row-ref {
  color: var(--accent-text);
}
