/* Hallmark · shape: app screen · genre: editorial · theme: Garden base, Clay palette (deal by choice: soft tone, none of 3 dealt fit), system faces (CSP self, no web fonts)
 * nav: top bar · signature: the receipt name ledger · states: empty (drop), error, full, saving, done
 * axes: light/sans/chromatic-terracotta · posture: committed · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P_ H_ E_ S_ R_ V_ · weakest: theme fonts unavailable offline, system faces used instead */
/* answered 49: the two save choices are cards with a title and one line, wrapping is intended · answered F4: .btn.secondary is an outline button, not filled */
@import url("./tokens.css");
@import url("./base.css");

/* Soft overrides on the Garden base. */
:root {
  --font-display: "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --display-weight: 650; --tracking-display: -0.01em;
  --radius-card: 14px; --radius-control: 10px; --radius-drop: 20px;
  --color-surface: oklch(99% 0.008 90);
  --color-warn: oklch(52% 0.12 70);
  --shadow-soft: 0 1px 2px oklch(30% 0.03 150 / 0.06), 0 6px 20px oklch(30% 0.03 150 / 0.06);
}
/* Clay palette (chosen by Aileen 06/12/2026): warm cream paper, terracotta signal */
:root {
  --color-paper: oklch(96.5% 0.018 70); --color-paper-2: oklch(93.5% 0.026 65); --color-paper-3: oklch(90% 0.032 60);
  --color-ink: oklch(26% 0.035 45); --color-ink-2: oklch(36% 0.04 45); --color-muted: oklch(48% 0.035 50);
  --color-rule: oklch(86% 0.022 60); --color-rule-2: oklch(70% 0.04 55);
  --color-accent: oklch(52% 0.14 40); --color-accent-2: oklch(88% 0.05 50); --color-accent-ink: oklch(98% 0.01 70);
  --color-focus: oklch(52% 0.14 40); --tint-moss: oklch(52% 0.14 40 / 0.10); --color-surface: oklch(99.2% 0.006 70);
}

.bar { background: var(--color-surface); border-bottom: var(--rule-hair) solid var(--color-rule); }
.wrap { max-width: 1200px; margin-inline: auto; padding: var(--space-md) var(--space-lg); }
.bar .wrap { display: flex; align-items: baseline; gap: var(--space-sm); flex-wrap: wrap; }
.bar h1 { font-size: var(--text-xl); max-width: none; }
.bar p { color: var(--color-muted); font-size: var(--text-sm); }

ol.steps { display: flex; gap: var(--space-xs); padding: 0; margin: var(--space-lg) 0; list-style: none; flex-wrap: wrap; counter-reset: s; }
ol.steps li { counter-increment: s; display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm) var(--space-2xs) var(--space-2xs);
  border-radius: var(--radius-pill); color: var(--color-muted); font-size: var(--text-sm); }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--color-paper-2); color: var(--color-ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
ol.steps li[aria-current] { background: var(--tint-moss); color: var(--color-ink); font-weight: 600; }
ol.steps li[aria-current]::before { background: var(--color-accent); color: var(--color-accent-ink); }

#drop { display: grid; place-items: center; text-align: center; gap: var(--space-xs); min-height: 240px; padding: var(--space-xl);
  background: var(--color-surface); border: 2px dashed var(--color-rule-2); border-radius: var(--radius-drop); cursor: pointer;
  box-shadow: var(--shadow-soft); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
#drop:hover, #drop.over { border-color: var(--color-accent); background: var(--tint-moss); }
#drop:focus-within { outline: 2px solid var(--color-focus); outline-offset: 3px; }
#drop:active { background: var(--color-paper-2); }
#drop strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--display-weight); }
#drop .hint, .hint { color: var(--color-muted); font-size: var(--text-sm); }

.btn { min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-control); border: var(--rule-hair) solid var(--color-accent);
  background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.secondary { background: var(--color-surface); color: var(--color-accent); border-color: var(--color-rule-2); }
.btn.secondary:hover { background: var(--tint-moss); }

#msg { margin: var(--space-md) 0; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-control);
  background: color-mix(in oklab, var(--color-error) 10%, var(--color-surface)); color: var(--color-error); }
#msg:empty { display: none; }

.summary { display: flex; gap: var(--space-xs); flex-wrap: wrap; align-items: center; margin: var(--space-md) 0; }
.chip { background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  padding: var(--space-2xs) var(--space-sm); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.summary .spacer { flex: 1; }

.table-wrapper { overflow: auto; max-height: 65vh; background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.table-wrapper:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
th, td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; white-space: nowrap; }
thead th { position: sticky; top: 0; z-index: var(--z-raised); background: var(--color-paper-2); color: var(--color-ink-2); font-weight: 600; }
tbody tr:hover { background: var(--color-paper); }
td.num { text-align: right; }
td.name input { width: 100%; min-width: 26rem; min-height: 32px; border: var(--rule-hair) solid transparent; border-radius: 8px;
  padding: 0 var(--space-xs); background: transparent; color: var(--color-ink); }
td.name input:hover { border-color: var(--color-rule); }
td.name input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; background: var(--color-surface); }
td.name input:disabled { color: var(--color-muted); }
td.desc { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; color: var(--color-muted); }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--color-accent); }
.st { font-weight: 600; }
.st.ready { color: var(--color-success); } .st.no-receipt { color: var(--color-warn); } .st.expired, .st.bad-link { color: var(--color-error); }
tr.off td:not(:first-child) { opacity: .55; }

#save h2, #work h2 { font-size: var(--text-xl); margin-bottom: var(--space-md); max-width: none; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-md); margin-bottom: var(--space-lg); }
.choice { text-align: left; display: grid; gap: var(--space-xs); padding: var(--space-lg); background: var(--color-surface); color: var(--color-ink);
  border: 2px solid var(--color-rule); border-radius: var(--radius-card); cursor: pointer; box-shadow: var(--shadow-soft);
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.choice:hover { border-color: var(--color-accent); background: var(--tint-moss); }
.choice:active { transform: translateY(1px); }
.choice:disabled { opacity: .5; cursor: not-allowed; }
.choice strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-accent); }
.choice span { color: var(--color-muted); font-size: var(--text-sm); }

progress { width: 100%; height: 12px; border-radius: var(--radius-pill); accent-color: var(--color-accent); }
#work-text { font-weight: 600; margin-top: var(--space-sm); }
#problems { color: var(--color-error); font-size: var(--text-sm); }
.privacy { color: var(--color-muted); font-size: var(--text-sm); margin: var(--space-xl) 0 var(--space-lg); }
