:root {
  --ink: #163c3a;
  --ink-2: #2c5653;
  --paper: #fbfcfa;
  --panel: #eef3ef;
  --line: #d3ddd6;
  --text: #1d2826;
  --muted: #5d6d69;
  --posted: #2f7a4a;
  --posted-bg: #e3f1e7;
  --hold: #9a5f0c;
  --hold-bg: #fbf0dc;
  --blocked: #a3362f;
  --blocked-bg: #f8e3e1;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: "Segoe UI", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}
a { color: var(--ink-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid #7fb3a8; outline-offset: 2px;
}
h1 { font-size: 1.65rem; margin: 0 0 1rem; color: var(--ink); font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 1.4rem 0 .6rem; color: var(--ink); font-weight: 650; }
.shell { display: flex; min-height: 100vh; }
.side {
  width: 220px; flex: 0 0 220px; background: var(--ink); color: #dfeae6;
  padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: 1.2rem;
}
.brand { display: flex; gap: .6rem; align-items: center; }
.brand strong { display: block; color: #fff; font-size: 1.05rem; }
.brand small { color: #a9c4bd; }
.paw { width: 30px; height: 30px; border-radius: 50%; background: #f2c14e; position: relative; flex: 0 0 30px; }
.paw::after { content: ""; position: absolute; left: 9px; top: 11px; width: 12px; height: 10px; background: var(--ink); border-radius: 50% 50% 45% 45%; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: #dfeae6; text-decoration: none; padding: .45rem .6rem; border-radius: var(--radius); }
.side nav a:hover { background: var(--ink-2); }
.side nav a.on { background: #f2c14e; color: var(--ink); font-weight: 600; }
.who { margin-top: auto; font-size: .9rem; }
.who a { color: #f2c14e; }
.main { flex: 1; padding: 1.6rem 2rem 3rem; max-width: 1200px; }
.main.narrow, .narrow { max-width: 460px; }
.muted { color: var(--muted); font-size: .92rem; }
.note { padding: .7rem .9rem; border-radius: var(--radius); margin: 0 0 1rem; border-left: 4px solid; }
.note.ok { background: var(--posted-bg); border-color: var(--posted); }
.note.hold { background: var(--hold-bg); border-color: var(--hold); }
.note.bad { background: var(--blocked-bg); border-color: var(--blocked); }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.badge.posted { background: var(--posted-bg); color: var(--posted); }
.badge.hold { background: var(--hold-bg); color: var(--hold); }
.badge.blocked { background: var(--blocked-bg); color: var(--blocked); }
.badge.none { background: var(--panel); color: var(--muted); }
.btn {
  display: inline-block; border: 1px solid var(--ink); background: #fff; color: var(--ink);
  padding: .5rem .95rem; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--panel); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-2); }
.btn.small { padding: .25rem .6rem; font-size: .88rem; }
.form { display: flex; flex-direction: column; gap: .8rem; margin: 1rem 0; max-width: 560px; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; max-width: none; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .92rem; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: .7rem; padding: .8rem 1rem; }
input, select, textarea { font: inherit; padding: .45rem .55rem; border: 1px solid #b9c7bf; border-radius: var(--radius); background: #fff; color: var(--text); }
textarea { width: 100%; font-family: Consolas, "Courier New", monospace; font-size: .88rem; line-height: 1.4; }
.toolbar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar form { display: flex; gap: .4rem; align-items: center; }
.toolbar label { display: flex; gap: .4rem; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.2rem; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: #fff; border-top: 4px solid var(--ink); }
.step h2 { margin-top: 0; }
.plain { list-style: none; padding: 0; margin: 0 0 .8rem; }
.block { margin-bottom: 1.6rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.6rem; }
table { border-collapse: collapse; }
.grid { width: 100%; background: #fff; border: 1px solid var(--line); font-size: .93rem; }
.grid th, .grid td { padding: .42rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.grid thead th { background: var(--panel); color: var(--ink); font-weight: 650; }
.grid tr.warn td { background: var(--hold-bg); }
.narrowtable { width: auto; min-width: 280px; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures { width: 100%; background: #fff; border: 1px solid var(--line); }
.figures td { padding: .38rem .7rem; border-bottom: 1px solid #e6ece8; }
.figures tr.sec th { text-align: left; background: var(--panel); color: var(--ink); padding: .45rem .7rem; font-size: .92rem; }
.figures tr.tot td { font-weight: 700; border-bottom: 2px solid var(--line); }
.figures tr.warn td { background: var(--hold-bg); }
.figures a { color: inherit; text-decoration-color: #b9c7bf; }
.statusbar { display: flex; gap: 1rem; align-items: center; padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; background: var(--panel); border-left: 6px solid var(--muted); }
.statusbar.s-posted { border-color: var(--posted); }
.statusbar.s-hold { border-color: var(--hold); }
.statusbar.s-blocked { border-color: var(--blocked); }
.statusbar .meta { font-size: .9rem; color: var(--muted); }
.exlist { margin: 0; padding-left: 1.1rem; }
.exlist li { margin-bottom: .35rem; }
.exlist .sev-block b, .exlist .sev-hold b { color: var(--blocked); }
.exlist .sev-info b { color: var(--muted); }
.cls { font-size: .78rem; padding: 0 .4rem; border-radius: 4px; background: var(--panel); }
.cls-old_recovery { background: #e6eefb; color: #2b4f8a; }
.cls-same_day { background: var(--posted-bg); color: var(--posted); }
.cls-advance, .cls-refund { background: var(--hold-bg); color: var(--hold); }
.cls-hold { background: var(--blocked-bg); color: var(--blocked); }
.sub td { padding: .15rem .5rem; border: 0; font-size: .86rem; }
details summary { cursor: pointer; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions form { display: flex; gap: .3rem; }
.tick { color: var(--posted); font-weight: 700; }
.cross { color: var(--blocked); font-size: .85rem; }
.howto { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1rem 1rem; margin-bottom: 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { width: auto; flex: none; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .who { margin-top: 0; }
  .main { padding: 1rem; }
  .steps, .cols { grid-template-columns: 1fr; }
  .grid { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
