/* Mobile field notebook: slate, paper and safety yellow. */
:root {
 --bg:#edf1f3; --card:#ffffff; --ink:#192b36; --soft:#526570; --line:#ccd6dc;
 --chip:#e5ebef; --bar:#b7c7d1; --y:#ffc400; --onacc:#192b36;
 --font:"Segoe UI",Roboto,Arial,sans-serif;
 --cond:Bahnschrift,"Segoe UI",Arial,sans-serif;
}
@media(prefers-color-scheme:dark) {
 :root { --bg:#16212a; --card:#202e38; --ink:#f1f5f7; --soft:#b2c2cc; --line:#415360; --chip:#2e404c; --bar:#587180; --onacc:#192b36; }
}
body { line-height:1.55; -webkit-text-size-adjust:100%; }
button,input,select,textarea { touch-action:manipulation; }
button { -webkit-tap-highlight-color:transparent; }
.stripe { height:5px; background:var(--y); }
.brand { padding:18px 24px 14px; gap:8px 18px; }
h1 { font-size:23px; line-height:1.2; letter-spacing:-.02em; text-transform:none; }
h2 { font-size:26px; line-height:1.2; letter-spacing:-.02em; text-transform:none; }
h3 { font-size:16px; letter-spacing:0; text-transform:none; color:var(--ink); }
p { margin:0 0 6px; }
.wrap { padding:26px 24px 40px; gap:22px; }
.wrap > *, .row, .grid, .hub { min-width:0; }
.pill { border-radius:7px; font-size:13px; padding:6px 10px; }
button.pill { min-height:44px; cursor:pointer; }
.pill.y { font-weight:650; }
.tabs { gap:6px; padding:8px 24px 14px; }
.tabs button { min-height:44px; border:1px solid transparent; border-radius:8px; font-size:14px; font-weight:650; text-transform:none; letter-spacing:0; }
.tabs button[aria-current="page"] { border-color:var(--y); }
.card { padding:22px; gap:16px; border-radius:16px; box-shadow:none; }
input,select,textarea { min-height:48px; border-width:1px; border-radius:9px; background:var(--card); font-size:16px; line-height:1.4; padding:12px; }
input:focus,select:focus,textarea:focus { border-color:var(--soft); outline:2px solid var(--y); outline-offset:2px; }
input[type=checkbox],input[type=radio] { min-height:0; }
label { gap:7px; font-size:14px; font-weight:600; }
textarea { min-height:124px; }
button.btn,summary.btn { min-height:46px; border:1px solid var(--y); border-radius:9px; font-size:15px; font-weight:650; text-transform:none; letter-spacing:0; line-height:1.4; padding:12px 16px; }
button.btn.ghost { border-color:var(--line); }
:focus-visible { outline:3px solid var(--y); outline-offset:3px; }
.btn:active,.act:active,.tabs button:active { filter:brightness(.93); }
.act { border:1px solid var(--line); border-radius:12px; font:650 18px/1.35 var(--font); text-transform:none; letter-spacing:0; padding:18px; min-height:64px; }
.act .ic { width:42px; height:42px; background:var(--chip); color:var(--ink); border-radius:10px; }
.hub { gap:12px; }
.hub .act { min-height:150px; gap:18px; font-size:21px; }
.hub .act .ic { width:44px; height:44px; font-size:25px; border-radius:10px; background:var(--chip); color:var(--ink); }
.hub .act:first-child { border-top:4px solid var(--y); }
.hub .act:first-child .ic { background:var(--y); color:var(--onacc); }
.hub .act small { font-size:13px; line-height:1.45; margin-top:7px; }
.tile { border-radius:12px; padding:16px; gap:8px; }
.tile .k,.rdt .k { text-transform:none; letter-spacing:0; font-size:13px; line-height:1.4; }
.tile .v { font-size:40px; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.tile .v small { letter-spacing:0; font-size:16px; }
.item { padding:15px 2px; gap:6px; }
.chip { line-height:1.25; }
.note { border-left-width:3px; padding:14px 16px; }
.answer { font-size:17px; line-height:1.65; overflow-wrap:anywhere; }
.scroll { max-width:100%; overscroll-behavior-x:contain; }
th { letter-spacing:0; text-transform:none; }
th,td { padding:10px; }
details > summary { min-height:44px; align-content:center; }
@media(max-width:760px) {
 .brand { padding:16px 16px 14px; display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
 h1 { font-size:24px; }
 .sub { font-size:12px; }
 .pills { gap:6px; margin:3px 0 0; }
 .pill { font-size:12px; }
 .wrap { padding:22px 16px 28px; gap:18px; }
 h2 { font-size:24px; }
 .card { padding:18px 16px; border-radius:14px; gap:16px; }
 .acts { gap:10px; }
 .hub { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .hub .act { padding:16px 13px; min-height:154px; font-size:19px; gap:15px; }
 .hub .act small { font-size:12px; }
 .hub .act:last-child:nth-child(odd) { min-height:92px; }
 .tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:18px 16px calc(22px + env(safe-area-inset-bottom,0px)); overflow:visible; }
 .tabs button { width:100%; min-width:0; white-space:normal; text-align:left; padding:12px 14px; border:1px solid var(--line); background:var(--bg); font-size:14px; }
 .tabs button[aria-current="page"] { background:var(--y); color:var(--onacc); border-color:var(--y); }
 .tabs:empty { display:none; }
 .chips { gap:7px; padding:3px 0; }
 .chips > .btn { min-height:44px; }
 .tile .v { font-size:32px; }
 .tile .k { font-size:12px; }
 dialog.ovd { padding:18px 14px; border-radius:16px; }
}
@media(max-width:480px) {
 .row { gap:14px; }
 .row > label,.row.two > label { flex-basis:100%; }
 .row > .btn { flex-grow:1; }
 .task { grid-template-columns:30px minmax(0,1fr); }
 .task > .chip { grid-column:2; justify-self:start; }
 .card .row > input,.card .row > select { flex-basis:100%; }
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}


@media(max-width:760px) {
 .tiles { gap:10px; }
 .tiles .tile { min-height:108px; padding:12px 10px; gap:6px; justify-content:flex-start; }
 .tiles .tile .v { font-size:29px; line-height:1.15; white-space:nowrap; }
 .tiles .tile .small { font-size:11px; line-height:1.4; }
 .tiles .tile .v small { font-size:13px; }
}

