/* Tracker tablet app: the office tokens (from /static/app.css) with bigger
   touch targets, one column, and a sync bar that is always visible. */
html, body { background:var(--bg); }
body { font-size:17px; -webkit-tap-highlight-color:transparent; overscroll-behavior-y:contain; }
.fbar { position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:10px; padding:10px 14px; padding-top:max(10px, env(safe-area-inset-top));
  background:var(--surface); border-bottom:1px solid var(--line); }
.fbar .mark { width:34px; height:34px; border-radius:9px; background:var(--plum); color:#fff; display:grid; place-items:center; font:700 13px var(--font-display); flex:none; }
.fbar h1 { font-size:18px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fbar .back { font-size:22px; width:42px; height:42px; }
.sync { display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:600; padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:var(--bg-soft); color:var(--slate); white-space:nowrap; cursor:pointer; }
.sync .dot { width:9px; height:9px; border-radius:50%; background:var(--faint); }
.sync.ok .dot { background:var(--up); }
.sync.pending .dot { background:var(--amber); }
.sync.off .dot { background:var(--down); }
.sync.busy .dot { background:var(--cta); animation:pulse 1s infinite; }
@keyframes pulse { 50% { opacity:.3; } }
.fmain { padding:14px 14px 120px; max-width:980px; margin:0 auto; }
.fmain > * + * { margin-top:14px; }
.tile { display:flex; align-items:center; gap:12px; padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); color:var(--ink); text-decoration:none !important; width:100%; text-align:left; font:inherit; cursor:pointer; }
.tile + .tile { margin-top:10px; }
.tile:active { background:var(--cta-soft); }
.tile .t { font-weight:700; font-family:var(--font-display); color:var(--navy); }
.tile .s { color:var(--muted); font-size:14.5px; }
.tile .r { margin-left:auto; text-align:right; flex:none; }
.tile .chev { color:var(--faint); font-size:22px; margin-left:6px; }
.tile.room .t { font-size:16px; }
.list-h { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:20px 4px 8px; }
.big { height:52px !important; font-size:17px !important; padding:0 22px !important; border-radius:12px !important; }
.btn.block { width:100%; justify-content:center; }
.fmain input, .fmain select, .fmain textarea { font-size:17px; height:48px; border-radius:10px; }
.fmain textarea { height:auto; min-height:90px; }
.fmain .field > span { font-size:12.5px; }
.pick { display:flex; flex-wrap:wrap; gap:8px; }
.pick button { min-width:56px; height:48px; padding:0 16px; border-radius:10px; border:1.5px solid var(--line-strong); background:var(--surface); color:var(--ink); font:600 16px var(--font-body); cursor:pointer; }
.pick button.on { background:var(--cta); border-color:var(--cta); color:var(--on-cta); }
.pick.status button.on[data-v="S"] { background:var(--plum); border-color:var(--plum); }
.pick.status button.on[data-v="SP"], .pick.status button.on[data-v="P"] { background:var(--amber); border-color:var(--amber); color:#1b1300; }
.pick small { display:block; font-size:11px; font-weight:400; opacity:.8; margin-top:-3px; }
.pick.scores button { min-width:64px; height:56px; line-height:1.1; }
.sec { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; }
.sec > h2 { font-size:15px; margin-bottom:10px; }
.sec > * + * { margin-top:12px; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:560px) { .two { grid-template-columns:1fr; } }
.scorebox { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:12px; background:var(--bg-soft); }
.scorebox .score { min-width:44px; height:40px; font-size:18px; }
.photos { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.photo { position:relative; aspect-ratio:4/3; border:2px dashed var(--line-strong); border-radius:12px; display:grid; place-items:center; color:var(--muted); background:var(--bg-soft); overflow:hidden; cursor:pointer; font-weight:600; }
.photo img { width:100%; height:100%; object-fit:cover; }
.photo input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.photo .x { position:absolute; top:6px; right:6px; background:rgba(0,0,0,.6); color:#fff; border:0; border-radius:999px; width:32px; height:32px; font-size:16px; z-index:2; }
.matlist { max-height:300px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.matlist button { display:flex; width:100%; gap:10px; padding:12px 14px; border:0; border-bottom:1px solid var(--line); background:none; font:inherit; text-align:left; cursor:pointer; color:var(--ink); }
.matlist button:active { background:var(--cta-soft); }
.matlist .code { font-family:var(--mono); font-size:13px; color:var(--muted); width:42px; flex:none; padding-top:2px; }
.matlist .acm { margin-left:auto; color:var(--plum); font-size:12px; font-weight:700; }
.savebar-f { position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; gap:10px; padding:12px 14px; padding-bottom:max(12px, env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--line); }
.savebar-f .btn { flex:1; justify-content:center; }
.savebar-f .btn.danger { flex:0 0 auto; }
.tag { font-size:12px; font-weight:700; padding:2px 8px; border-radius:999px; background:var(--grey-bg); color:var(--grey); }
.tag.unsent { background:var(--warn-bg); color:var(--warn); }
.banner { padding:12px 14px; border-radius:12px; background:var(--warn-bg); color:var(--warn); border:1px solid var(--warn-line); font-size:15px; }
.banner.info { background:var(--cta-soft); color:var(--cta-ink); border-color:var(--glass); }
.flogin { max-width:420px; margin:8vh auto 0; }
.flogin img { display:block; max-width:220px; margin:0 auto 18px; }
html[data-theme="dark"] .flogin img { background:#fff; border-radius:8px; padding:6px; }
