/* Receipts (November 9, 2026). The Total Placement tool look: white header with the logo, brand blue (#054fb8)
   headings and buttons, a 3-pixel blue line under the header. Built phone first; errors use orange plus words,
   never red against green (Jake is red/green color blind). */
:root {
  --brand: #054fb8;
  --brand-light: #e6eefa;
  --ink: #222;
  --muted: #666;
  --line: #d9d9d9;
  --warn: #b35900;
  --warn-light: #fff1e0;
  --bg: #f5f6f8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: var(--ink); background: var(--bg); }
.top { background: #fff; padding: 10px 16px; border-bottom: 3px solid var(--brand); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { display: block; height: 40px; width: auto; }
.brand .name { border-left: 1px solid var(--line); padding-left: 12px; }
.brand .title { font-size: 18px; font-weight: bold; color: var(--brand); }
.brand .sub { font-size: 12px; color: var(--muted); }
.who { font-size: 13px; display: flex; gap: 10px; align-items: center; color: var(--muted); }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 16px; margin-bottom: 16px; }
.card.narrow { max-width: 440px; margin: 40px auto; }
h2 { margin: 0 0 8px; font-size: 19px; color: var(--brand); }
.note { color: var(--muted); font-size: 14px; margin: 4px 0 16px; line-height: 1.4; }
label { display: block; font-size: 15px; font-weight: bold; margin: 16px 0 6px; }
textarea { font: inherit; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 4px; resize: vertical; }
textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }
button, .button { font: inherit; padding: 10px 16px; border-radius: 6px; border: 1px solid var(--brand); cursor: pointer; text-decoration: none; display: inline-block; text-align: center; margin: 0; }
.button.primary, button.primary { background: var(--brand); color: #fff; font-weight: bold; }
button.secondary { background: #fff; color: var(--brand); }
button:disabled { opacity: .55; cursor: default; }
.big { display: block; width: 100%; padding: 16px; font-size: 18px; }
.file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.alt { text-align: center; margin: 14px 0 0; }
.linklike { display: inline; font-weight: normal; font-size: 15px; color: var(--brand); text-decoration: underline; cursor: pointer; margin: 0; }
.preview-wrap { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; text-align: center; margin-bottom: 10px; }
#preview { max-width: 100%; max-height: 50vh; display: block; margin: 0 auto; }
#save { margin-top: 18px; }
input[type="text"], input[type="date"] { font: inherit; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.row { display: flex; gap: 12px; }
.row .grow { flex: 1; min-width: 0; }
.status { margin-top: 14px; padding: 10px 12px; border-radius: 4px; font-size: 14px; background: var(--bg); color: var(--muted); }
.status.ok { background: var(--brand-light); color: var(--brand); }
.status.ok .tick { font-weight: bold; margin-right: 4px; }
.status.bad { background: var(--warn-light); color: var(--warn); border-left: 4px solid var(--warn); }
.status.bad button { display: block; width: 100%; margin: 10px 0 6px; }
.small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.error { background: var(--warn-light); color: var(--warn); border-left: 4px solid var(--warn); padding: 10px 12px; font-size: 14px; margin: 14px 0 0; }
.saved { list-style: none; margin: 0; padding: 0; }
.saved li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.saved li:last-child { border-bottom: none; }
.saved .when { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.saved .tick { color: var(--brand); font-weight: bold; margin-right: 6px; }
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 6px; max-width: 90%; z-index: 10; font-size: 15px; }
