/* FieldMark — light, high-contrast UI for field + office use. Brand accent via --acc/--acc2. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --acc: #2f80ed; --acc2: #1b5fc1;
  --bg: #f4f6f9; --card: #ffffff; --line: #e1e6ee; --line2: #cfd7e3;
  --txt: #172033; --dim: #5f6b7d; --muted: #8b96a8;
  --ok: #2fbf71; --warn: #f0a22e; --bad: #e5484d; --info: #2f80ed;
  --stage: #3a4150; --rail: #eef1f6;
  --r: 10px; --sh: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.1);
  --sh2: 0 8px 24px rgba(16,24,40,.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --bar-h: 52px; --dock-h: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font: 14px/1.4 var(--font); -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: none; }
#app { min-height: 100dvh; display: flex; flex-direction: column; }
.boot { display: grid; place-items: center; height: 100dvh; color: var(--dim); }
a { color: var(--acc); }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 18px; } h3 { font-size: 15px; }
small, .dim { color: var(--dim); } .muted { color: var(--muted); }
.ic { width: 20px; height: 20px; flex: none; }
.row { display: flex; align-items: center; gap: 8px; } .grow { flex: 1; } .wrap { flex-wrap: wrap; }
.hide { display: none !important; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line2); background: #fff; color: var(--txt); font: 500 13.5px var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--acc); } .btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; } .btn.primary:hover { background: var(--acc2); }
.btn.danger { color: var(--bad); border-color: #f3c4c6; } .btn.danger:hover { background: #fff2f2; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--txt); cursor: pointer; position: relative; }
.ib:hover { background: #eef2f8; } .ib.on { background: var(--acc); color: #fff; } .ib:disabled { opacity: .4; cursor: default; }
.ib.sm { width: 30px; height: 30px; } .ib.sm .ic { width: 17px; height: 17px; }
input, select, textarea { font: 14px var(--font); color: var(--txt); background: #fff; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--acc) 35%, transparent); border-color: var(--acc); }
input[type=color] { padding: 2px; width: 40px; height: 34px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--acc); }
textarea { resize: vertical; min-height: 60px; }
.lbl { display: block; font-size: 12px; color: var(--dim); margin: 10px 0 4px; font-weight: 500; }
.field { margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2f8; color: var(--dim); white-space: nowrap; }
.chip.st { color: #fff; } .chip b { font-weight: 700; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.off { background: #fde8c8; color: #8a5300; } .chip.sync { background: #dbeafe; color: #1e40af; } .chip.warnc { background: #fff1d6; color: #8a5300; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.ptxt { margin: 0 0 10px; }
.err { color: var(--bad); font-size: 13px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--acc); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.seg button { height: 32px; padding: 0 12px; border: 0; background: #fff; color: var(--dim); font: 500 13px var(--font); cursor: pointer; }
.seg button.on { background: var(--acc); color: #fff; }

/* ---------- toasts / modals / menus ---------- */
#toasts { position: fixed; left: 50%; bottom: calc(18px + var(--sab)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; pointer-events: none; }
.toast { background: #1f2937; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--sh2); opacity: 0; transform: translateY(8px); transition: .25s; max-width: 92vw; }
.toast.in { opacity: 1; transform: none; } .toast.ok { background: #14532d; } .toast.bad { background: #7f1d1d; } .toast.warn { background: #78350f; }
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 900; opacity: 0; transition: opacity .16s; padding: 16px; }
.overlay.in { opacity: 1; }
.modal { background: #fff; border-radius: 14px; width: min(460px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: var(--sh2); transform: translateY(10px); transition: transform .16s; }
.overlay.in .modal { transform: none; } .modal.wide { width: min(760px, 100%); }
.mhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.mbody { padding: 10px 16px 16px; overflow: auto; }
.mfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.overlay.sheet { align-items: flex-end; padding: 0; }
.overlay.sheet .modal { width: 100%; border-radius: 16px 16px 0 0; max-height: 86dvh; padding-bottom: var(--sab); }
.menu { position: fixed; z-index: 950; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh2); padding: 6px; opacity: 0; transform: scale(.98); transition: .12s; }
.menu.in { opacity: 1; transform: none; }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 10px; border: 0; background: transparent; border-radius: 7px; font: 500 13.5px var(--font); color: var(--txt); cursor: pointer; text-align: left; }
.mi:hover { background: #eef2f8; } .mi.danger { color: var(--bad); } .mi:disabled { opacity: .45; cursor: default; } .mi small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.mi .ic { width: 18px; height: 18px; color: var(--dim); } .mi.danger .ic { color: var(--bad); }
.msep { height: 1px; background: var(--line); margin: 4px 6px; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, color-mix(in srgb, var(--acc) 18%, transparent), transparent), var(--bg); }
.login .card { width: min(400px, 100%); padding: 28px 28px 24px; }
.login .brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.logo { max-height: 44px; max-width: 200px; display: block; } .logo-txt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--acc); }
.login p.tag { margin: 0 0 18px; color: var(--dim); }
.login .btn.primary { width: 100%; height: 42px; margin-top: 16px; font-size: 15px; }

/* ---------- app shell (dashboard & admin pages) ---------- */
.top { position: sticky; top: 0; z-index: 50; height: calc(var(--bar-h) + var(--sat)); padding-top: var(--sat); display: flex; align-items: center; gap: 6px; padding-left: 12px; padding-right: 12px; background: #fff; border-bottom: 1px solid var(--line); }
.top .logo { max-height: 30px; } .top .logo-txt { font-size: 18px; }
.top nav { display: flex; gap: 2px; margin-left: 16px; }
.top nav a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; color: var(--dim); text-decoration: none; font-weight: 500; }
.top nav a:hover { background: #eef2f8; } .top nav a.on { background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc); }
.page { width: min(1180px, 100%); margin: 0 auto; padding: 18px 16px calc(24px + var(--sab)); }
.page h1 { font-size: 22px; margin-bottom: 4px; }
.sub { color: var(--dim); margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.kpi { padding: 12px 14px; } .kpi .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; } .kpi .k { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.kpi .v.ac { color: var(--acc); }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pcard { padding: 14px 16px; cursor: pointer; transition: border-color .12s, transform .12s; position: relative; }
.pcard:hover { border-color: var(--acc); } .pcard:active { transform: scale(.995); }
.pcard .nm { font-size: 16px; font-weight: 650; margin-right: 36px; } .pcard .cl { color: var(--dim); font-size: 12.5px; }
.pcard .meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 12.5px; margin-top: 8px; }
.pcard .more { position: absolute; top: 10px; right: 10px; }
.sbar { height: 6px; border-radius: 3px; overflow: hidden; display: flex; background: #e9edf3; margin-top: 10px; }
.sbar i { display: block; height: 100%; }
.pcard.archived { opacity: .6; }
.empty { text-align: center; padding: 50px 20px; color: var(--dim); } .empty .ic { width: 42px; height: 42px; color: var(--line2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; } .tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl input, .tbl select { padding: 5px 8px; height: 32px; }
.tbl tr.inactive td { opacity: .55; }
.tbl .ib.sm { width: 28px; height: 28px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sect { padding: 16px; margin-bottom: 14px; } .sect h3 { margin-bottom: 10px; }
.swatch { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line2); display: inline-block; vertical-align: middle; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-list label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px 4px 6px; cursor: pointer; font-size: 13px; }
.pill-list label:has(input:checked) { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.recent li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .recent li:last-child { border: 0; }
.recent { list-style: none; margin: 0; padding: 0; }

/* ---------- project viewer ---------- */
.pv { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.vbar { height: calc(var(--bar-h) + var(--sat)); padding: var(--sat) 8px 0; display: flex; align-items: center; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.vbar .title { display: flex; flex-direction: column; min-width: 0; margin: 0 6px 0 2px; }
.vbar .title b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.vbar .title small { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.vbar .tools { display: flex; gap: 2px; padding: 0 6px; margin: 0 4px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.vbar .sp { flex: 1; }
.vbar .zoom { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; height: 34px; overflow: hidden; }
.vbar .zoom button { height: 100%; width: 32px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--txt); }
.vbar .zoom span { min-width: 48px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.vbar .chips { display: flex; gap: 6px; align-items: center; margin-left: 6px; }
.vbody { flex: 1; display: flex; min-height: 0; position: relative; }
.rail { width: 148px; flex: none; background: var(--rail); border-right: 1px solid var(--line); overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.rail .thumb { position: relative; border: 2px solid transparent; border-radius: 6px; cursor: pointer; background: #fff; box-shadow: var(--sh); overflow: hidden; aspect-ratio: var(--ar, 1.55); }
.rail .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rail .thumb.on { border-color: var(--acc); } .rail .thumb .pn { position: absolute; left: 4px; bottom: 4px; font-size: 10.5px; font-weight: 700; background: rgba(23,32,51,.8); color: #fff; padding: 1px 6px; border-radius: 4px; }
.rail .thumb .mc { position: absolute; right: 4px; top: 4px; }
.rail.collapsed { display: none; }
.stage { flex: 1; position: relative; overflow: hidden; background: var(--stage); touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.stage.pan { cursor: grab; } .stage.draw { cursor: crosshair; } .stage.panning { cursor: grabbing; }
.pc { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.pc canvas { display: block; }
.pc svg { position: absolute; left: 0; top: 0; overflow: visible; }
.pc svg g[data-id] { cursor: pointer; } .pc svg .hit { stroke: transparent; fill: none; stroke-width: 14; pointer-events: stroke; }
.pc svg .hitfill { fill: transparent; stroke: none; pointer-events: fill; }
.pc svg .selbox { fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.pc svg .lab { font: 600 9px var(--font); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.pc svg .stdot { pointer-events: none; }
.stage .hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(23,32,51,.86); color: #fff; padding: 7px 12px; border-radius: 8px; font-size: 12.5px; pointer-events: none; white-space: nowrap; opacity: 0; transition: .2s; }
.stage .hint.in { opacity: 1; }
.stage .loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; pointer-events: none; }
.panel { width: 340px; flex: none; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel.hidden { display: none; }
.phead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.phead h3 { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbody { flex: 1; overflow: auto; padding: 10px 12px 14px; }
.pfoot { padding: 10px 12px calc(10px + var(--sab)); border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 8px; align-items: center; font-size: 13px; }
.kv label { color: var(--dim); font-size: 12px; }
.qtyrow { display: flex; gap: 6px; align-items: center; } .qtyrow input { flex: 1; } .qtyrow .unit { width: 64px; flex: none; }
.auto { font-size: 11px; color: var(--acc); cursor: pointer; white-space: nowrap; } .auto.off { color: var(--muted); text-decoration: line-through; }
.codesel { position: relative; }
.codesel .opts { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid var(--line2); border-radius: 8px; box-shadow: var(--sh2); max-height: 220px; overflow: auto; display: none; }
.codesel.open .opts { display: block; }
.codesel .opt { padding: 7px 10px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.codesel .opt:hover, .codesel .opt.hl { background: #eef2f8; } .codesel .opt b { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; } .codesel .opt small { color: var(--dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .codesel .opt .u { color: var(--muted); font-size: 11.5px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.photos .ph { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #eef1f6; cursor: pointer; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph .gps { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(23,32,51,.75); color: #fff; padding: 1px 5px; border-radius: 4px; }
.photos .ph.pending::after { content: "queued"; position: absolute; inset: auto 4px 4px auto; font-size: 10px; background: var(--warn); color: #fff; padding: 1px 5px; border-radius: 4px; }
.photos .add { display: grid; place-items: center; aspect-ratio: 1; border: 1.5px dashed var(--line2); border-radius: 8px; color: var(--dim); cursor: pointer; background: #fff; }
.photos .add:hover { border-color: var(--acc); color: var(--acc); }
.stline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); margin: 8px 0; }
.insp { font-size: 12.5px; color: var(--dim); background: #f6f8fb; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.mlist li:hover { background: #f6f8fb; } .mlist li.on { background: color-mix(in srgb, var(--acc) 10%, transparent); }
.mlist .n { width: 24px; color: var(--muted); font-size: 11.5px; text-align: right; flex: none; }
.mlist .c { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 600; min-width: 70px; }
.mlist .q { color: var(--dim); min-width: 56px; } .mlist .by { color: var(--muted); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
.mlist .sd { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.filt { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.filt .chip { cursor: pointer; } .filt .chip.on { outline: 2px solid var(--acc); }
.dock, .pstrip, .mtitle, .mobile-only { display: none; }
.color-dot {width:22px;height:22px;border-radius:50%;border:2px solid #d0d7e2;display:block;}
.viewer-lightbox img { max-width: 100%; max-height: 72dvh; display: block; margin: 0 auto; border-radius: 8px; }

/* ---------- billing ---------- */
.billing-work-row {display:flex;align-items:center;gap:10px;padding:8px 4px;border-bottom:1px solid var(--line);font-size:13px;}
.billing-work-row input {width:18px;flex:none;}
@media (max-width:820px) {.top nav {gap:0;min-width:0;flex:1;overflow-x:auto;scrollbar-width:none;}.top nav a {padding:0 7px;flex:none;}.top .logo-txt {font-size:16px;max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.top .logo {max-width:96px;}.top #syncchip {width:26px;min-width:26px;max-width:26px;padding:0 3px;overflow:hidden;}}

/* ---------- field forms ---------- */
.fr { padding: 10px 12px; margin: 8px 0; }
.form-row-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:8px; }
.form-photo-list { display:flex; flex-wrap:wrap; gap:8px; max-height:180px; overflow:auto; }
.form-photo-list label { display:flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:8px; padding:6px; cursor:pointer; }
.form-photo-list img { width:48px; height:48px; object-fit:cover; border-radius:5px; }
#formActions { position:sticky; bottom:0; background:white; padding-top:10px; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .top nav a span { display: none; } .top nav { margin-left: 4px; }
  .page { padding: 14px 12px calc(20px + var(--sab)); }
  .vbar .tools, .vbar .zoom, .vbar .desk { display: none; }
  .vbar .mobile-only {display:inline-flex;flex:none;}
  .vbar .title b {max-width:30vw;}
  .vbar .chips .chip:first-child {display:none;}

  .rail { display: none; }
  .panel { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(16,24,40,.18); z-index: 30; transform: translateY(0); transition: transform .2s; }
  .panel.hidden { display: flex; transform: translateY(110%); pointer-events: none; }
  .panel .phead::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; border-radius: 2px; background: var(--line2); transform: translateX(-50%); }
  .panel .phead { padding-top: 14px; position: relative; }
  .dock { display: flex; flex: none; height: calc(var(--dock-h) + var(--sab)); padding: 4px 4px var(--sab); background: #fff; border-top: 1px solid var(--line); gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .dock::-webkit-scrollbar { display: none; }
  .dock button { flex: 1 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--dim); font: 500 10.5px var(--font); border-radius: 10px; cursor: pointer; padding: 4px 0; }
  .dock button .ic { width: 22px; height: 22px; } .dock button.on { color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
  .dock button.primary { color: var(--acc); } .dock .sep { width: 1px; background: var(--line); margin: 8px 2px; flex: none; }
  .pstrip { display: flex; gap: 6px; padding: 6px 8px; overflow-x: auto; background: var(--rail); border-top: 1px solid var(--line); flex: none; scrollbar-width: none; }
  .pstrip::-webkit-scrollbar { display: none; }
  .pstrip .thumb { flex: none; width: 76px; height: 54px; position: relative; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #fff; }
  .pstrip .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .pstrip .thumb.on { border-color: var(--acc); } .pstrip .thumb .pn { position: absolute; left: 3px; bottom: 2px; font-size: 10px; font-weight: 700; background: rgba(23,32,51,.8); color: #fff; padding: 0 5px; border-radius: 4px; }
  .pstrip.hide { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
  .tbl .hide-m { display: none; }
}
@media (min-width: 821px) { .rail.auto-collapse { display: flex; } }
