/* Geo Arc portal - light theme (2026-11-06). Brand teal from the emblem. */
:root {
  /* survey paper, slate ink, the emblem's teal; amber only for control / index contours */
  --bg: #F5F7F6; --panel: #FFFFFF; --panel2: #EEF2F2; --line: #DCE3E4; --line2: #C3CDD0; --ink: #10222B; --muted: #5E717A;
  --accent: #2F5C6F; --accent-2: #24495A; --accent-soft: #E4EEF1; --accent-ink: #FFFFFF; --deep: #132E39; --amber: #D9A21B;
  --ok: #17804F; --ok-soft: #E2F3EA; --warn: #9A5B00; --warn-soft: #FBF0D9; --bad: #B83227; --bad-soft: #FBE9E7;
  --info: #1F63B8; --info-soft: #E6EEF9; --violet: #5B45B0; --violet-soft: #EEEBF8;
  --r: 6px; --r-lg: 10px; --shadow: 0 1px 0 rgba(16,34,43,.04); --shadow-lg: 0 18px 50px -12px rgba(16,34,43,.28);
  --f: "Archivo", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 400 14.5px/1.5 var(--f); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; } a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--f); margin: 0; color: var(--ink); font-weight: 700; }
h1 { font-size: 28px; line-height: 1.15; font-variation-settings: "wdth" 118; letter-spacing: -.005em; }
h2 { font-size: 19px; font-variation-settings: "wdth" 112; } h3 { font-size: 15px; font-weight: 650; font-variation-settings: "wdth" 106; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .right { margin-left: auto; }
.row { display: flex; gap: 12px; align-items: center; } .wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* shell: slim white sidebar + top bar (DroneDeploy-like) */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh;
  background: linear-gradient(90deg, var(--panel) 219px, var(--line) 219px, var(--line) 220px, var(--bg) 220px); }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh; align-self: start; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; text-decoration: none; }
.logo img.em { width: 32px; height: 32px; } .logo img.wm { height: 24px; display: block; }
.logo .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center;
  color: var(--accent-ink); font: 700 15px var(--f); }
.logo b { font: 700 17px var(--f); } .logo span { display: block; font-size: 11px; color: var(--muted); }
.nav a { display: flex; gap: 11px; align-items: center; padding: 8px 10px; border-radius: 5px; text-decoration: none; color: #34474F; font-weight: 500; position: relative; }
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { background: var(--panel2); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--deep); font-weight: 650; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a .badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.nav .sep { margin: 20px 10px 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.side .me { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.side .me .av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
  font-weight: 700; flex: none; }
.side .me b { color: var(--ink); display: block; font-size: 13px; }
.mainwrap { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 56px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px;
  padding: 0 24px; position: sticky; top: 0; z-index: 500; }
.topbar .crumbs { color: var(--muted); font-size: 13px; } .topbar .crumbs a { color: var(--muted); text-decoration: none; }
.topbar .crumbs b { color: var(--ink); font-weight: 600; }
.main { padding: 24px 28px 60px; max-width: 1400px; width: 100%; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head .sub { color: var(--muted); margin-top: 4px; }

/* pieces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card h3 { margin-bottom: 12px; }
.card .ch { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .card .ch h3 { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink);
  padding: 8px 15px; border-radius: var(--r); font: 600 13.5px var(--f); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--panel2); color: var(--ink); } .btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); } .btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { color: var(--bad); border-color: #F0C7C2; } .btn.danger:hover { background: var(--bad-soft); }
.btn.sm { padding: 5px 10px; font-size: 12px; } .btn.lg { padding: 12px 20px; font-size: 15px; } .btn.block { width: 100%; }
input, select, textarea { width: 100%; background: var(--panel); border: 1px solid var(--line2); color: var(--ink); border-radius: 8px;
  padding: 9px 11px; font: 14px var(--f); outline: none; border-radius: var(--r); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,92,111,.15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--panel2); color: #4A5A67; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-draft, .s-uploading, .s-cart { color: #5B6B78; background: #EEF1F4; } .s-received, .s-pending { color: var(--info); background: var(--info-soft); }
.s-processing { color: var(--accent); background: var(--accent-soft); } .s-review { color: var(--violet); background: var(--violet-soft); }
.s-delivered, .s-paid { color: var(--ok); background: var(--ok-soft); } .s-on_hold { color: var(--warn); background: var(--warn-soft); }
.s-cancelled { color: #8a8a8a; background: #F1F1F1; } .s-failed { color: var(--bad); background: var(--bad-soft); }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 5px; background: var(--panel2); color: #4A5A67; border: 1px solid var(--line); }
.stat { padding: 16px 20px; } .stat .n { font: 700 26px var(--f); font-variation-settings: "wdth" 116; font-variant-numeric: tabular-nums; } .stat .l { color: var(--muted); font-size: 12.5px; }
.bar { height: 8px; background: #E9EDF0; border-radius: 9px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width .3s; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.table td { padding: 11px 14px; border-bottom: 1px solid #EDF0F3; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; } .table tr:hover td { background: #FAFBFC; }
.table .r, .r { text-align: right; } .table td.num, .table td.r, .table td:first-child b { white-space: nowrap; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.note { padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.note.ok { background: var(--ok-soft); color: var(--ok); } .note.warn { background: var(--warn-soft); color: #7A5300; } .note.bad { background: var(--bad-soft); color: var(--bad); }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 7px 13px; font: 600 12.5px var(--f); color: #4A5A67; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }

/* dashboard / project cards */
.map { height: 340px; border-radius: var(--r); background: #DDE3E8; }
.card.flush .map { border-radius: 0; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { cursor: pointer; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pcard:hover { border-color: var(--line2); box-shadow: var(--shadow-lg); }
.pcard .thumb { height: 168px; background: var(--deep) url(/img/contours_dark.svg) center/cover; position: relative; }
.pcard .thumb .leaflet-control-container { display: none; }
.pcard .thumb .st { position: absolute; top: 10px; left: 10px; z-index: 450; }
.pcard .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9CB8C3; font-size: 12.5px; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.pcard .meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: center; margin: 6px 0 14px; flex-wrap: wrap; }
.toolbar input { max-width: 300px; }

/* auth (the teal sign-in page, chosen 2026-11-06) */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--panel); }
.auth .art { background: linear-gradient(160deg, #24495A, #2F5C6F 45%, #3F7A92); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .art h1 { font-size: 38px; line-height: 1.12; max-width: 520px; color: #fff; }
.auth .art ul { color: #DCEAF0; padding-left: 18px; line-height: 2; } .auth .art .muted { color: #BFD6DF; }
.auth .art .logo img.em { width: 46px; height: 46px; } .auth .art .logo img.wm { height: 34px; }
.auth .form { display: grid; place-items: center; padding: 30px; }
.auth .box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* page head band (dashboard) */
.band { position: relative; margin: -24px -28px 22px; padding: 28px 28px 22px; background: var(--panel) url(/img/contours_light.svg) right -120px center/1100px auto no-repeat;
  border-bottom: 1px solid var(--line); }
.band h1 { font-size: 30px; } .band .sub { color: var(--muted); margin-top: 6px; }
.band .sum { display: flex; gap: 34px; margin-top: 20px; flex-wrap: wrap; }
.band .sum a { display: block; } .band .sum b { display: block; font-size: 24px; font-weight: 700; font-variation-settings: "wdth" 118; font-variant-numeric: tabular-nums; }
.band .sum span { color: var(--muted); font-size: 12.5px; }
.band .sum a { text-decoration: none; color: inherit; } .band .sum a:hover b { color: var(--accent); }

/* wizard */
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.steps div { flex: 1; padding: 10px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.steps div.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); } .steps div.done { color: var(--ok); }
.prod { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prod .tile { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: .15s; }
.prod .tile.on { border-color: var(--accent); background: #F6FAFB; box-shadow: 0 0 0 3px rgba(47,92,111,.08); }
.prod .pick { display: flex; gap: 12px; cursor: pointer; }
.prod .pick input { margin-top: 3px; }
.prod .opts { display: none; margin-top: 12px; padding-left: 26px; } .prod .tile.on .opts { display: grid; }
.drop { border: 2px dashed var(--line2); border-radius: 12px; padding: 34px; text-align: center; background: #FAFBFC; transition: .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop b { font-size: 16px; display: block; margin-bottom: 6px; }
.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.checks .k { background: #FAFBFC; border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.checks .k .v { font: 700 19px var(--f); font-variation-settings: "wdth" 112; } .checks .k .l { font-size: 12px; color: var(--muted); }
.warns { display: flex; flex-direction: column; gap: 6px; }
.warns div { padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.warns .w { background: var(--warn-soft); color: #7A5300; } .warns .b { background: var(--bad-soft); color: var(--bad); } .warns .g { background: var(--ok-soft); color: var(--ok); }

/* project page */
.timeline { display: flex; gap: 0; margin: 6px 0 4px; }
.timeline .t { flex: 1; position: relative; padding-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.timeline .t::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline .t::after { content: ""; position: absolute; top: 2px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--line2); }
.timeline .t.done { color: var(--ink); } .timeline .t.done::before { background: var(--ok); } .timeline .t.done::after { background: var(--ok); border-color: var(--ok); }
.timeline .t.now { color: var(--accent); font-weight: 700; } .timeline .t.now::after { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(47,92,111,.15); }
.feed { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; }
.feed .e { display: flex; gap: 10px; font-size: 13px; }
.feed .e .d { color: var(--muted); font-size: 11px; white-space: nowrap; width: 92px; flex: none; padding-top: 2px; }
.feed .e.comment .x { background: var(--panel2); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }
.feed .e.warn .x { color: var(--warn); }
.dl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #FAFBFC; }
.dl .ic { width: 34px; height: 34px; border-radius: 6px; background: var(--accent-soft); display: grid; place-items: center; font: 700 10px var(--f); color: var(--accent); flex: none; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13px; } .kv .k { color: var(--muted); }
.pgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--accent); border-color: var(--accent); } .tabs a:hover { color: var(--ink); }

/* cart / billing */
.cart .line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #EDF0F3; }
.cart .line:last-child { border-bottom: 0; }
.cart .line .t { flex: 1; min-width: 0; } .cart .line .a { font-weight: 600; white-space: nowrap; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; margin-top: 10px; }
.totals .g { font: 700 21px var(--f); font-variation-settings: "wdth" 114; padding-top: 6px; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.svc .s { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.svc .s .p { font: 700 17px var(--f); } .svc .s .p span { font: 400 12px var(--f); color: var(--muted); }
.free { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--ok-soft); color: #0F5E3A; font-size: 13px; }
.secure { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 10px; justify-content: center; }
.secure svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }


#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: #17232D;
  color: #fff; padding: 10px 16px; border-radius: 9px; opacity: 0; transition: .25s; pointer-events: none; box-shadow: var(--shadow-lg); z-index: 9999; }
#toast.show { opacity: 1; transform: translateX(-50%); }
.leaflet-container { background: #DDE3E8; font: 12px var(--f); }
.nomap { display: grid; place-items: center; color: var(--muted); font-size: 13px;
  background: repeating-linear-gradient(45deg, #E7ECEF, #E7ECEF 12px, #EEF2F4 12px, #EEF2F4 24px); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side .logo { padding-bottom: 4px; } .nav { display: flex; flex-wrap: wrap; gap: 2px; } .nav .sep { display: none; }
  .side .me { display: none; } .main { padding: 18px 16px 50px; } .band { margin: -18px -16px 18px; padding: 22px 16px 18px; } .topbar { padding: 0 16px; }
  .grid2, .grid3, .grid4, .prod, .checks { grid-template-columns: 1fr 1fr; } .auth { grid-template-columns: 1fr; } .auth .art { display: none; }
  .pgrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid2, .grid4, .prod, .checks { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: repeat(3, 1fr); gap: 8px; } .stat { padding: 12px; } .stat .n { font-size: 20px; }
  .map { height: 240px; } .timeline .t { font-size: 10px; } .kv { grid-template-columns: 110px 1fr; }
  .table th, .table td { padding: 9px 8px; }
}

/* ================================================================== map-first layout (2026-11-06) */
.app { display: grid; grid-template-columns: 76px 1fr; min-height: 100vh; }
.rail { background: var(--deep); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: stretch; padding: 12px 8px; gap: 4px; z-index: 700;
  background-image: linear-gradient(180deg, rgba(19,46,57,.92), rgba(19,46,57,.97)), url(/img/contours_dark.svg); background-size: auto, 900px auto; background-position: center; }
.rail .rlogo { display: grid; place-items: center; height: 52px; margin-bottom: 10px; }
.rail .rlogo img { width: 38px; height: 38px; }
.rail a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 8px; border-radius: 8px; color: #A9C3CD; text-decoration: none; font-size: 11px; font-weight: 500; }
.rail a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail a:hover { color: #fff; background: rgba(255,255,255,.06); }
.rail a.on { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.rail .rsep { height: 1px; background: rgba(255,255,255,.12); margin: 8px 10px; }
.rail .rfoot { margin-top: auto; }
.work { min-width: 0; display: flex; flex-direction: column; }
.top { height: 58px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 22px; position: sticky; top: 0; z-index: 650; }
.top .wm { height: 20px; } .top .crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; min-width: 0; padding-left: 18px; border-left: 1px solid var(--line); height: 24px; }
.top .crumbs a { color: var(--muted); text-decoration: none; } .top .crumbs a:hover { color: var(--ink); } .top .crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .crumbs .sl { color: var(--line2); }
.top .btn svg, .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.who { display: flex; align-items: center; gap: 10px; } .who b { display: block; font-size: 13px; } .who span { color: var(--muted); font-size: 12px; }
.who .av { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.app .main { padding: 26px 30px 60px; max-width: 1400px; }
.app.full .main { padding: 0; max-width: none; height: calc(100vh - 58px); }
.map.fill { height: 100%; border-radius: 0; }

/* projects: list panel + map */
.split { display: grid; grid-template-columns: 400px 1fr; height: 100%; }
.plpanel { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.plhead { padding: 20px 20px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.plhead h2 { font-size: 22px; font-variation-settings: "wdth" 118; }
.seg button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; display: block; }
.search { position: relative; display: block; } .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search input { padding-left: 34px; background: var(--panel2); border-color: transparent; } .search input:focus { background: #fff; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font: 500 12.5px var(--f); color: #3D5058; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.fchips button i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.fchips button.on { background: var(--deep); border-color: var(--deep); color: #fff; } .fchips button.on i { color: #A9C3CD; }
.plist2 { overflow: auto; flex: 1; padding: 6px 0; }
.prow { display: flex; gap: 14px; padding: 12px 20px; text-decoration: none; color: inherit; border-left: 3px solid transparent; }
.prow:hover { background: #F4F7F7; border-left-color: var(--accent); }
.prow .th { width: 76px; height: 76px; border-radius: 6px; flex: none; overflow: hidden; background: var(--deep) url(/img/contours_dark.svg) center/400px auto; }
.prow .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prow .tx { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .prow .tx b { font-weight: 650; font-size: 14.5px; }
.prow .tx > span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .meta { display: flex; gap: 10px; align-items: center; margin-top: 4px; } .prow .meta em { font-style: normal; color: var(--muted); font-size: 12px; }
.plfoot { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); align-items: flex-start; }
.plfoot svg { width: 16px; height: 16px; flex: none; stroke: var(--accent); fill: none; stroke-width: 2; margin-top: 1px; }
.mapwrap { position: relative; min-width: 0; }
.mgrid { display: none; }
.mapwrap.asgrid .map { display: none; }
.mapwrap.asgrid .mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 24px; overflow: auto; height: 100%; align-content: start; }
.gcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; }
.gcard:hover { box-shadow: var(--shadow-lg); border-color: var(--line2); }
.gcard .th { height: 160px; position: relative; background: var(--deep) url(/img/contours_dark.svg) center/700px auto; }
.gcard .th img { width: 100%; height: 100%; object-fit: cover; display: block; } .gcard .th span { position: absolute; left: 10px; top: 10px; }
.gcard .gb { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 3px; } .gcard .gb > span:first-of-type { color: var(--muted); font-size: 12.5px; }
.pin i { display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); transition: transform .12s; }
.pin.hot i { transform: rotate(-45deg) scale(1.35); }
.leaflet-tooltip { font: 12.5px/1.4 var(--f); border-radius: 6px; border: 0; box-shadow: 0 6px 20px rgba(0,0,0,.2); padding: 7px 10px; }
.leaflet-bar a { color: var(--ink) !important; } .leaflet-control-scale-line { font: 11px var(--f); }

/* project: full map, floating panel, tool bar */
.pview { position: relative; height: 100%; }
.fpanel { position: absolute; z-index: 600; left: 16px; top: 16px; bottom: 16px; width: 420px; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px -8px rgba(16,34,43,.35);
  display: flex; flex-direction: column; overflow: hidden; }
.fph { padding: 18px 20px 6px; } .fph h1 { font-size: 23px; margin: 8px 0 4px; font-variation-settings: "wdth" 116; } .fph .muted { font-size: 13px; }
.fph .back { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.fph .back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; } .fph .back:hover { color: var(--accent); }
.fph .timeline { margin-top: 16px; } .fph .timeline .t { font-size: 10.5px; }
.ftabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 12px; gap: 2px; }
.ftabs button { flex: 1; border: 0; background: none; padding: 11px 4px 10px; font: 500 12px var(--f); color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ftabs button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ftabs button.on { color: var(--deep); border-bottom-color: var(--accent); font-weight: 650; } .ftabs button:hover { color: var(--ink); }
.fbody { overflow: auto; padding: 18px 20px 24px; flex: 1; }
.fbody .checks { grid-template-columns: repeat(2, 1fr); } .fbody .kv { grid-template-columns: 110px 1fr; }
.fbody .drop { padding: 24px 16px; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar2 { position: absolute; z-index: 600; right: 16px; top: 16px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -8px rgba(16,34,43,.35); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.toolbar2 i { height: 1px; background: var(--line); margin: 4px 6px; }
.tool { border: 0; background: none; width: 58px; padding: 8px 2px 6px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); font: 500 10.5px var(--f); }
.tool svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover:not(:disabled) { background: var(--accent-soft); color: var(--deep); } .tool:disabled { color: #A5B3B9; cursor: not-allowed; }
.mapbadge { position: absolute; z-index: 590; left: 452px; top: 16px; background: rgba(19,46,57,.88); color: #E1ECF0; border-radius: 99px; padding: 8px 14px; font-size: 12.5px;
  display: flex; gap: 8px; align-items: center; backdrop-filter: blur(6px); max-width: calc(100% - 560px); }
.mapbadge svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.paybar { position: absolute; z-index: 600; left: calc(452px + (100% - 452px - 90px) / 2); transform: translateX(-50%); bottom: 22px; background: #fff; border-radius: 12px;
  box-shadow: 0 14px 40px -8px rgba(16,34,43,.45); padding: 12px 12px 12px 20px; display: flex; gap: 22px; align-items: center; }
.paybar b { display: block; font-size: 15px; } .paybar span { color: var(--muted); font-size: 13px; }
.emptyart { border-radius: 10px; padding: 70px 22px 22px; color: #fff; background: var(--deep) url(/img/contours_dark.svg) center/600px auto; display: flex; flex-direction: column; gap: 6px; }
.emptyart b { font-size: 16px; } .emptyart span { color: #BFD6DF; font-size: 13px; }
.leaflet-left .leaflet-control-scale { margin-left: 452px; margin-bottom: 16px; }
.pview .leaflet-bottom.leaflet-right { margin-bottom: 0; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; } .rail { position: sticky; top: 0; height: auto; flex-direction: row; padding: 6px 8px; overflow-x: auto; gap: 2px; background-image: none; }
  .rail .rlogo { height: auto; margin: 0 6px 0 0; } .rail .rlogo img { width: 30px; height: 30px; } .rail a { padding: 6px 8px; min-width: 58px; } .rail .rsep { display: none; } .rail .rfoot { margin: 0 0 0 auto; }
  .top { top: 58px; padding: 0 14px; } .top .wm, .who .small { display: none; } .top .crumbs { border: 0; padding: 0; }
  .app.full .main { height: auto; } .split { grid-template-columns: 1fr; height: auto; } .mapwrap { height: 300px; order: -1; } .plist2 { overflow: visible; }
  .mapwrap.asgrid .map { display: block; } .mapwrap.asgrid .mgrid { display: none; } #vw { display: none; } .top { top: 0; position: static; }
  .pview { height: auto; display: flex; flex-direction: column; } .pview .map.fill { height: 340px; }
  .fpanel { position: static; width: auto; border-radius: 0; box-shadow: none; } .toolbar2 { top: 12px; right: 12px; } .tool { width: 50px; }
  .mapbadge { left: 12px; top: 12px; max-width: calc(100% - 90px); } .paybar { position: fixed; left: 12px; right: 12px; transform: none; bottom: 12px; justify-content: space-between; }
  .leaflet-left .leaflet-control-scale { margin-left: 10px; }
}

/* project map: layer panel, legend, spot height (2026-11-09) */
.lpanel { position: absolute; z-index: 610; right: 92px; top: 16px; width: 250px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -8px rgba(16,34,43,.35);
  padding: 12px 14px; display: none; font-size: 13px; }
.lpanel.open { display: block; }
.lph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lph .x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.lrow { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.lrow span { flex: 1; } .lrow small { color: var(--muted); font-size: 11.5px; }
.lrow.sub { padding-left: 24px; cursor: default; } .lrow.sub input { width: 110px; }
.legend { padding: 4px 0 6px 24px; } .lbar { height: 10px; border-radius: 3px; }
.lnum { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.hpop .leaflet-popup-content { margin: 8px 12px; font: 13px var(--f); display: flex; flex-direction: column; gap: 2px; }
.hpop .leaflet-popup-content b { font-size: 15px; font-variant-numeric: tabular-nums; } .hpop .leaflet-popup-content span { color: var(--muted); font-size: 11.5px; }
@media (max-width: 900px) { .lpanel { right: 76px; top: 12px; width: min(250px, calc(100% - 100px)); } }

/* order choices (2026-11-11) */
.order { display: flex; flex-direction: column; gap: 14px; }
.order .oh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; } .order .oa { margin-left: auto; font-size: 12px; }
.order .oa a { color: var(--accent); cursor: pointer; text-decoration: none; } .order .oa a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip2 { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 13px; cursor: pointer; }
.chip2:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chip2.fixed { cursor: default; opacity: .85; }
.crspick { position: relative; display: flex; flex-direction: column; gap: 5px; }
.crspick > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.crsres { display: none; position: absolute; left: 0; right: 0; top: 62px; z-index: 30; max-height: 280px; overflow: auto; background: var(--panel);
  border: 1px solid var(--line2); border-radius: 9px; box-shadow: 0 12px 30px rgba(15,30,40,.16); }
.crsres.show { display: block; }
.crsres button { display: block; width: 100%; text-align: left; padding: 8px 11px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 13px; cursor: pointer; }
.crsres button:hover { background: var(--accent-soft); }

/* drawings panel (2026-11-11) */
.dpanel { width: 330px; max-height: calc(100% - 32px); overflow: auto; }
.dtools { display: flex; gap: 6px; margin: 4px 0 10px; } .dtools .btn { flex: 1; gap: 5px; }
.dtools svg, .ddl svg, .drow .ib svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dsec { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 8px; }
.dsec input, .dsec select { height: 30px; padding: 0 8px; font-size: 12.5px; }
.dlist { display: flex; flex-direction: column; max-height: 300px; overflow: auto; }
.drow { display: flex; align-items: center; gap: 4px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.drow label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; cursor: pointer; }
.drow .dn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .drow small { color: var(--muted); white-space: nowrap; }
.drow .ib { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px 4px; border-radius: 5px; font-size: 13px; line-height: 1; }
.drow .ib:hover { background: var(--accent-soft); color: var(--deep); }
.dk { width: 12px; height: 12px; border-radius: 3px; flex: none; border: 2px solid #4BD0FF; } .dk.line { height: 0; border-width: 2px 0 0; border-radius: 0; }
.dk.point { border-radius: 50%; background: #4BD0FF; } .dk.contour { height: 0; border-width: 2px 0 0; border-color: #F5C542; border-radius: 0; }
.ddl { display: flex; gap: 6px; margin-top: 10px; } .ddl select { height: 30px; padding: 0 6px; font-size: 12.5px; flex: 1; } .ddl .btn { gap: 5px; }
.drawbar { display: none; position: absolute; z-index: 620; left: calc(50% + 170px); bottom: 28px; transform: translateX(-50%); background: #fff; border-radius: 12px;
  box-shadow: 0 10px 30px -8px rgba(16,34,43,.45); padding: 8px 10px; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.drawbar .muted { font-size: 12px; }
.dpanel .lph b, .lpanel .lph b { user-select: none; }
@media (max-width: 900px) { .drawbar { left: 50%; bottom: 80px; } }
/* map tools while drawing / results (2026-11-11) */
.drawing .leaflet-interactive { pointer-events: none !important; }
.dres { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 2px 0 10px; background: #FAFBFC; }
.dres .prof { margin: 6px 0; } .dres .prof text { font-size: 9px; fill: var(--muted); }
.dres .vol { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.dres .vol div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; }
.dres .vol span { font-size: 11px; color: var(--muted); } .dres .vol b { font-size: 16px; font-variant-numeric: tabular-nums; }
.dres select, .dres input { height: 30px; padding: 0 6px; font-size: 12.5px; } .dres .kv { grid-template-columns: 110px 1fr; }

/* the 3D view of the point cloud (2026-11-11) */
.pview .map.fill { isolation: isolate; }
.v3d { position: absolute; inset: 0; z-index: 2000; background: #1C262E; }
.v3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.v3d canvas:active { cursor: grabbing; }
.v3panel { position: absolute; right: 92px; top: 16px; width: 250px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  padding: 12px 14px; font-size: 13px; max-height: calc(100% - 32px); overflow: auto; }
.v3panel .lph .x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.v3panel .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.v3row { display: flex; align-items: center; gap: 8px; padding: 4px 0; } .v3row span { flex: 0 0 74px; color: var(--muted); }
.v3row select { padding: 5px 8px; font-size: 13px; } .v3row input[type=range] { padding: 0; border: 0; box-shadow: none; }
.v3load { margin-top: 6px; min-height: 18px; }
.v3compass { position: absolute; left: 452px; bottom: 18px; width: 44px; height: 44px; pointer-events: none; }
.v3compass svg { width: 44px; height: 44px; } .v3compass circle { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.5); stroke-width: 1.5; }
.v3compass path { fill: #fff; } .v3compass text { fill: #fff; font: 700 9px var(--f); }
.tool.on { background: var(--accent); color: #fff; }
.lpanel .btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
@media (max-width: 900px) { .v3panel { right: 70px; top: 12px; width: 210px; max-height: calc(100% - 24px); } .v3compass { left: 12px; } }

/* the client's GCPs: card in the upload step + tagging window (2026-11-11) */
.gcpcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: #FAFBFC; }
.gmode { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gmode label { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; background: #fff; font-size: 13px; }
.gmode label.on { border-color: var(--accent); background: var(--accent-soft); }
.gmode input { width: auto; }
.gprog { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .gprog .bar { flex: 1; }
.gcplbl { font: 600 11px var(--f); padding: 1px 5px; }
.gtov { position: fixed; inset: 0; z-index: 3000; background: rgba(16,34,43,.55); display: grid; place-items: center; padding: 16px; }
.gtwin { background: #fff; border-radius: 14px; width: min(1280px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }
.gthead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.gthead .x { margin-left: auto; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }
.gtbody { flex: 1; display: grid; grid-template-columns: 190px 1fr; min-height: 0; }
.gtlist { border-right: 1px solid var(--line); overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.gti { display: flex; justify-content: space-between; align-items: center; border: 0; background: none; padding: 7px 9px; border-radius: 7px; cursor: pointer; font: 500 13px var(--f); text-align: left; color: var(--ink); }
.gti:hover { background: var(--panel2); } .gti.on { background: var(--accent-soft); font-weight: 650; }
.gti i { font-style: normal; font-size: 11px; color: var(--muted); } .gti i.ok { color: var(--ok); font-weight: 650; }
.gtmain { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gttop, .gtfoot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.gttop { justify-content: space-between; border-bottom: 1px solid var(--line); } .gtfoot { border-top: 1px solid var(--line); flex-wrap: wrap; }
.gtfoot .ell { max-width: 260px; }
.gtcv { position: relative; flex: 1; min-height: 0; background: #1C262E; }
.gtcv canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.gtmsg { position: absolute; left: 12px; top: 12px; background: rgba(19,46,57,.85); color: #E1ECF0; border-radius: 99px; padding: 6px 12px; font-size: 12.5px; pointer-events: none; }
.gtzoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 4px; }
.gtempty { margin: auto; text-align: center; max-width: 380px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 900px) { .gtbody { grid-template-columns: 1fr; grid-template-rows: 120px 1fr; } .gtlist { border-right: 0; border-bottom: 1px solid var(--line); } }
.gcplegend { background: #fff; border-radius: 10px; padding: 8px 10px; box-shadow: 0 6px 20px -6px rgba(16,34,43,.35); font: 12px var(--f); display: flex; flex-direction: column; gap: 3px; }
.gcplegend span, .gtab td:first-child { display: flex; align-items: center; gap: 6px; }
.gcplegend i, .gtab .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.pview .leaflet-bottom.leaflet-left .gcplegend { margin-left: 452px; margin-bottom: 44px; }
@media (max-width: 900px) { .pview .leaflet-bottom.leaflet-left .gcplegend { margin-left: 10px; } }
/* the results, grouped (2026-11-11) */
.rgroup { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.rgh { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; } .rgh b { font-size: 13.5px; } .rgh .btn { margin-left: auto; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
/* phones: the map tools as one row across the top of the map (they ran down over the project card - 2026-11-11) */
@media (max-width: 900px) {
  .toolbar2 { flex-direction: row; left: 12px; right: 12px; top: 12px; overflow-x: auto; scrollbar-width: none; }
  .toolbar2::-webkit-scrollbar { display: none; }
  .toolbar2 i { width: 1px; height: auto; margin: 6px 3px; flex: none; }
  .toolbar2 .tool { width: 54px; flex: none; }
  .lpanel, .dpanel, .v3panel { right: 12px; left: 12px; width: auto; top: 84px; max-height: calc(100% - 96px); overflow: auto; }
  .pview .leaflet-bottom.leaflet-left .gcplegend { margin-bottom: 30px; }
}
.pview .lpanel, .pview .dpanel { z-index: 1100; }     /* above the map's own controls and the GCP legend */

/* the survey report in the drawing tools (2026-11-11) */
.dsec.rep { border-top: 1px solid #e3e8ec; margin-top: 10px; padding-top: 10px; }
.dsec.rep.flash { animation: repflash 1.6s ease; }
@keyframes repflash { 0%, 60% { background: #e6f6f4; } 100% { background: transparent; } }
.repmenu { position: absolute; z-index: 1150; width: 250px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -8px rgba(16,34,43,.35); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.repmenu .btn { justify-content: flex-start; }
.repmenu .btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tool.busy svg { animation: repspin 1.2s linear infinite; }
@keyframes repspin { 50% { opacity: .25; } }
@media (max-width: 700px) { .repmenu { left: 12px; right: 12px !important; width: auto; top: 84px !important; } }
