
:root { --blue:#1f4e79; --bg:#f4f6f8; --card:#fff; --text:#1c2833; --muted:#6b7a88; --line:#e1e6eb; --red:#b3261e; --green:#1e7d45; --amber:#a86400; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); padding-bottom: 84px; }
a { color: var(--blue); }
h1 { font-size: 1.5rem; margin: .6rem 0 .8rem; } h2 { font-size: 1.1rem; margin: 0 0 .6rem; } h3 { font-size: .95rem; margin: .8rem 0 .3rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.wrap { max-width: 900px; margin: 0 auto; padding: 12px 14px; }
.narrow { max-width: 420px; margin-left:auto; margin-right:auto; }
header.top { background: var(--blue); color:#fff; display:flex; align-items:center; justify-content:space-between; padding: 10px 14px; position: sticky; top:0; z-index: 5; flex-wrap: wrap; gap: 6px; }
header.top .brand { color:#fff; font-weight:700; text-decoration:none; font-size:1.1rem; }
header.top nav { display:flex; gap: 2px; flex-wrap: wrap; }
header.top nav a { color:#dbe7f3; text-decoration:none; padding: 6px 9px; border-radius: 6px; font-size:.92rem; }
header.top nav a.on, header.top nav a:hover { background: rgba(255,255,255,.16); color:#fff; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.item { padding: 10px 0; border-top: 1px solid var(--line); } .item:first-of-type { border-top: 0; }
.row { display:flex; gap: 10px; align-items:center; flex-wrap: wrap; } .between { justify-content: space-between; }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; } .grid3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); } .small { font-size: .86rem; } .big { font-size: 2.2rem; font-weight: 700; margin: 0; }
.low { color: var(--red); font-weight: 600; } .ok { color: var(--green); font-weight: 600; } .lowrow td { background: #fdecea; }
.pills { display:flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.pill { display:inline-block; background:#e9eef3; border-radius: 999px; padding: 2px 9px; font-size: .8rem; }
.pill.i1 { background:#e3f1e8; } .pill.i2 { background:#eaf0d8; } .pill.i3 { background:#fdf0c8; } .pill.i4 { background:#fbd9b8; } .pill.i5 { background:#f7bcb5; } .pill.low { background:#f7bcb5; color:#7a1a14; }
p { margin: .35rem 0; }
label { display:block; margin: 10px 0 4px; font-weight: 600; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  display:block; width:100%; font: inherit; padding: 10px; border: 1px solid #c6cfd8; border-radius: 8px; background:#fff; margin-top: 4px; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 12px 0; } legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 4px; }
.checks, .radios { display:flex; flex-wrap: wrap; gap: 6px; }
.chk { display:inline-flex; align-items:center; gap: 6px; font-weight: 500; border: 1px solid #c6cfd8; border-radius: 999px; padding: 7px 12px; margin: 0; background:#fff; cursor:pointer; user-select:none; }
.chk:has(input:checked) { background: var(--blue); color:#fff; border-color: var(--blue); }
.chk input { margin:0; accent-color: #fff; }
.radios .chk { min-width: 48px; justify-content:center; }
button, .button { display:inline-block; font: inherit; font-weight: 600; background: var(--blue); color:#fff; border:0; border-radius: 8px; padding: 12px 18px; margin-top: 12px; cursor:pointer; text-decoration:none; }
button.secondary, .button.secondary { background:#e9eef3; color: var(--text); } button.danger { background: var(--red); } button.small { padding: 7px 12px; margin-top: 0; font-size: .86rem; }
.actions { margin-top: 8px; } .actions form { margin: 0; } .actions select { width:auto; display:inline-block; margin:0; padding: 7px; }
form.inline select { width:auto; margin:0; padding: 7px; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; border:1px solid; }
.flash.ok { background:#e6f4ea; border-color:#b7dfc3; color:#14532d; } .flash.error { background:#fdecea; border-color:#f5c2be; color:#7a1a14; } .flash.warn { background:#fff4d6; border-color:#f3d48b; color:#5c3d00; }
code.pw { font-size: 1.2rem; background:#fff; padding: 3px 8px; border-radius: 6px; border:1px solid #f3d48b; }
.tbl { width:100%; border-collapse: collapse; background:#fff; border:1px solid var(--line); border-radius: 10px; overflow:hidden; }
.tbl th, .tbl td { text-align:left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl th { background:#f0f3f6; font-size:.82rem; text-transform: uppercase; color: var(--muted); }
.tbl .num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
ul.tight { margin: 4px 0; padding-left: 18px; } ul.tight li { margin: 2px 0; }
.spark { display:flex; gap: 4px; height: 90px; align-items: flex-end; }
.bar-col { flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; height:100%; }
.bar { width: 100%; background: #b9c9d9; border-radius: 3px 3px 0 0; min-height: 2px; }
.bar.i3 { background:#e0b84a; } .bar.i4 { background:#e88a3a; } .bar.i5 { background:#d9534f; }
.lbl { font-size: .65rem; color: var(--muted); margin-top: 3px; }
.fab-bar { position: fixed; bottom: 0; left: 0; right: 0; display:flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(244,246,248,.95); border-top: 1px solid var(--line); justify-content: center; z-index: 5; }
.fab { background: var(--blue); color:#fff; text-decoration:none; font-weight:700; padding: 12px 16px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); } .fab.alt { background:#fff; color: var(--blue); border:1px solid var(--blue); }
.print-head { display:none; }
details summary { cursor:pointer; font-weight: 600; margin: 10px 0; }
@media print {
  header.top, .fab-bar, .noprint, .flash { display:none !important; } body { background:#fff; padding:0; font-size: 12px; } .card { border:0; padding: 0; margin-bottom: 16px; page-break-inside: avoid; }
  .print-head { display:block; margin-bottom: 12px; } .wrap { max-width:none; padding:0; } a { color: inherit; text-decoration:none; }
}
