/* Aned Book panel - the look of the approved canvas: navy bar, saffron "Aned",
   green "Book", white cards. Works from 360px phones up. */
:root {
  --navy: #0F172A; --ink: #0F172A; --muted: #475569; --line: #E2E8F0; --ground: #F8FAFC;
  --green: #197915; --green-lt: #35A62E; --saffron: #EF841A; --bad: #B91C1C; --warn: #9A3412;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--ground); }
a { color: var(--green); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px 20px; background: var(--navy); color: #E2E8F0; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; }
.brand .aned { color: var(--saffron); } .brand .book { color: var(--green-lt); }
.brand .tag { color: #CBD5E1; font-weight: 500; font-size: 14px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px; }
.top nav a { color: #CBD5E1; text-decoration: none; padding: 6px 10px; border-radius: 6px; }
.top nav a.on, .top nav a:hover { color: #fff; background: #1E293B; }
.top .out { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .who { font-size: 13px; color: #CBD5E1; }
main { max-width: 1150px; margin: 0 auto; padding: 22px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.narrow { max-width: 440px; margin: 40px auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fig .k { font-size: 12px; color: var(--muted); }
.fig .v { font-size: 24px; font-weight: 800; }
label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=search] {
  width: 100%; height: 44px; border: 1px solid #CBD5E1; border-radius: 8px; padding: 0 12px; font-size: 16px; background: #fff; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 0; background: var(--green); color: #fff; font: 600 15px system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid #CBD5E1; color: inherit; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.top .btn.ghost { color: #E2E8F0; border-color: #475569; }
.full { width: 100%; margin-top: 16px; }
.err { background: #FEF2F2; color: #7F1D1D; border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.ok { background: #F0FDF4; color: #14532D; border-radius: 8px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.note { color: var(--muted); font-size: 13px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: #F1F5F9; color: #334155; }
.pill.due { background: #FFF7ED; color: var(--warn); }
.pill.lapsed { background: #FEF2F2; color: #7F1D1D; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { width: 220px; height: 220px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; }
.codes { columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
