*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font);
  font-size: var(--text-body); line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--green-600); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.header { padding: 20px var(--space) 12px; max-width: 760px; margin: 0 auto; display: flex;
  align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.header h1 { margin: 0; font-size: 22px; font-weight: 750; font-stretch: 118%; letter-spacing: -0.01em; }
.header .sub { font-size: 14px; color: var(--ink-3); }
.band { display: none; }
.container { max-width: 760px; margin: 8px auto 24px; background: var(--card);
  border-radius: var(--radius-card); padding: 28px 24px; animation: enter 280ms var(--ease-enter) both; }
@media (max-width: 520px) { .container { margin: 8px 12px 24px; padding: 22px 18px; } }
h2 { font-size: var(--text-title); line-height: 1.1; font-weight: 750; font-stretch: 120%;
  letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font-size: 21px; font-weight: 700; font-stretch: 112%; margin: 24px 0 8px; }
.note { font-size: var(--text-small); color: var(--ink-3); }
.footer { max-width: 760px; margin: 0 auto 40px; padding: 0 var(--space); font-size: 14px; color: var(--ink-3); }
.footer a { margin-right: 14px; }

label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: var(--text-small); }
input[type=text], input[type=password], input[type=search], select {
  width: 100%; max-width: 440px; min-height: var(--tap); padding: 12px 16px; font: inherit;
  border: 2px solid var(--line); border-radius: var(--radius-field); background: var(--card); color: var(--ink); }
input[type=text]:focus, input[type=password]:focus, select:focus { border-color: var(--green-500); outline: none; }
input.digits { font-variant-numeric: tabular-nums; font-stretch: 85%; letter-spacing: 0.12em; font-size: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 28px; border: 0; border-radius: var(--pill); cursor: pointer;
  background: var(--green-500); color: #FFFFFF; font: inherit; font-weight: 650; font-stretch: 108%;
  text-decoration: none; transition: transform 150ms var(--ease-press), background-color 150ms; }
.btn:hover { background: var(--green-600); }
.btn:active { transform: scale(0.96); }
.btn.quiet { background: var(--green-50); color: var(--green-700); }
.btn.plain { background: transparent; color: var(--ink-2); border: 2px solid var(--line); }
.btn.danger { background: var(--red-50); color: var(--red-700); }
.btn.wide { width: 100%; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; max-width: 440px; }

.flash { background: var(--red-50); color: var(--red-700); border-radius: var(--radius-field);
  padding: 12px 16px; margin: 0 0 16px; font-weight: 600; animation: enter 240ms var(--ease-enter) both; }
table.tbl { border-collapse: collapse; width: 100%; font-size: var(--text-small); }
table.tbl td, table.tbl th { border-bottom: 1px solid var(--ground); padding: 10px 8px; text-align: left; vertical-align: top; }
table.tbl th { color: var(--ink-3); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; font-stretch: 85%; }

.greeting { color: var(--warm-700); font-weight: 650; font-size: var(--text-small); margin: 0 0 4px; }
.panel { background: var(--ground); border-radius: 20px; padding: 16px 18px; margin: 16px 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .tick { flex: none; width: 26px; height: 26px; border-radius: var(--pill); background: var(--green-50);
  color: var(--green-700); display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.ends { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: var(--warm-50); color: var(--warm-700); border-radius: 20px; padding: 14px 18px; }
.ends strong { font-size: 26px; font-stretch: 85%; font-variant-numeric: tabular-nums; color: var(--ink); }

.read-aloud { float: right; min-height: 44px; padding: 0 16px; font-size: 15px; }
.drop { display: grid; place-items: center; text-align: center; gap: 6px; min-height: 180px;
  border: 2px dashed var(--green-100); border-radius: var(--radius-card); background: var(--green-50);
  color: var(--green-700); padding: 20px; cursor: pointer; font-weight: 650; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop small { color: var(--ink-3); font-weight: 500; }
.done-mark { width: 72px; height: 72px; border-radius: var(--pill); background: var(--sage-50);
  color: var(--sage-700); display: grid; place-items: center; font-size: 36px; margin-bottom: 12px;
  animation: pop 300ms var(--ease-press) both; }

@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill);
  font-weight: 650; font-size: var(--text-small); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: var(--pill); background: currentColor; }
.status-pending { background: var(--warm-50); color: var(--warm-700); }
.status-approved { background: var(--sage-50); color: var(--sage-700); }
.status-rejected { background: var(--red-50); color: var(--red-700); }
.status-withdrawn { background: var(--ground); color: var(--ink-3); }
.timeline { list-style: none; margin: 20px 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 6px; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px;
  border-radius: var(--pill); background: var(--green-500); border: 3px solid var(--card); }
.timeline li.future::before { background: var(--card); border: 2px dashed var(--warm-500); }
.timeline .when { font-size: 14px; color: var(--ink-3); }
.timeline .what { font-weight: 650; }
.timeline .who { color: var(--ink-2); font-size: var(--text-small); }
.timeline .why { color: var(--ink-2); font-size: var(--text-small); font-style: italic; }
.demo-sms { background: var(--warm-50); color: var(--warm-700); border-radius: var(--radius-field); padding: 10px 14px; }
