:root {
  --bg: #f2f2f7; --card: #ffffff; --card2: #f2f2f7; --text: #1c1c1e; --text2: #6e6e73; --sep: rgba(60, 60, 67, .16);
  --tint: #1f7a4d; --tint-soft: rgba(31, 122, 77, .12); --on-tint: #fff;
  --ok: #1d7a3a; --ok-soft: rgba(29, 122, 58, .12); --warn: #b25000; --warn-soft: rgba(255, 149, 0, .16); --bad: #d70015; --bad-soft: rgba(215, 0, 21, .1);
  --fill: rgba(120, 120, 128, .14); --fill2: rgba(120, 120, 128, .22); --bar: rgba(249, 249, 251, .86);
  --r: 14px; --tab-h: 56px; --side-w: 232px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --card: #1c1c1e; --card2: #2c2c2e; --text: #f5f5f7; --text2: #a1a1a8; --sep: rgba(84, 84, 88, .6);
    --tint: #3ecf8e; --tint-soft: rgba(62, 207, 142, .16); --on-tint: #04130b;
    --ok: #32d74b; --ok-soft: rgba(50, 215, 75, .16); --warn: #ffb340; --warn-soft: rgba(255, 159, 10, .18); --bad: #ff6961; --bad-soft: rgba(255, 69, 58, .18);
    --fill: rgba(120, 120, 128, .24); --fill2: rgba(120, 120, 128, .36); --bar: rgba(22, 22, 24, .86);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 17px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
a { color: var(--tint); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text2); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- shell ---------- */
#app { height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.view { min-height: 0; min-width: 0; display: flex; flex-direction: column; padding: calc(var(--sat) + 10px) calc(16px + var(--sar)) 0 calc(16px + var(--sal)); }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 2px 10px; flex: none; }
.view-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.view-head .sub { font-size: 14px; color: var(--text2); margin-bottom: 2px; }
.view-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.view-body::-webkit-scrollbar { display: none; }
.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); padding: 4px calc(6px + var(--sar)) calc(var(--sab) + 2px) calc(6px + var(--sal)); z-index: 5; }
.tab { height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--text2); border-radius: 10px; }
.tab svg { width: 26px; height: 26px; }
.tab[aria-current="page"] { color: var(--tint); }
.brand { display: none; }

@media (min-width: 860px) {
  #app { grid-template-rows: minmax(0, 1fr); grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .tabbar { order: -1; grid-auto-flow: row; grid-auto-columns: auto; align-content: start; gap: 4px; border-top: 0; border-right: .5px solid var(--sep); padding: calc(var(--sat) + 18px) 12px 12px calc(12px + var(--sal)); }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; height: 46px; padding: 0 12px; font-size: 16px; }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { background: var(--tint-soft); }
  .brand { display: block; padding: 0 12px 16px; }
  .brand b { display: block; font-size: 19px; letter-spacing: -.01em; }
  .brand span { font-size: 12px; color: var(--text2); }
  .view { padding: calc(var(--sat) + 22px) 28px 0; }
  .view-body.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 16px; }
  .view-body.cols > .span { grid-column: 1 / -1; }
}

/* ---------- cards and rows ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 14px 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2, .sec { font-size: 13px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .03em; }
.card h2 { margin-bottom: 10px; }
.sec { padding: 4px 16px 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 16px; width: 100%; text-align: left; position: relative; }
.row + .row::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; border-top: .5px solid var(--sep); }
button.row:active, .chip:active, .tile:active { background: var(--fill); }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .d { font-size: 13px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .v { color: var(--text2); text-align: right; flex: none; }
.chev { width: 9px; height: 14px; color: var(--fill2); flex: none; }
.empty { text-align: center; color: var(--text2); padding: 28px 16px; font-size: 15px; }

.btn { height: 50px; border-radius: 13px; padding: 0 20px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--fill); color: var(--tint); }
.btn.primary { background: var(--tint); color: var(--on-tint); }
.btn.bad { color: var(--bad); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; border-radius: 10px; padding: 0 14px; font-size: 15px; }
.btn:disabled { opacity: .4; }
.btn:active { filter: brightness(.94); }
.btn svg { width: 20px; height: 20px; }
.btn.hero { height: 64px; font-size: 19px; border-radius: 18px; }
.link { color: var(--tint); font-weight: 500; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.exceed { background: var(--bad-soft); color: var(--bad); } .pill.plain { background: var(--fill); color: var(--text2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat .k { font-size: 12px; color: var(--text2); }
.stat .n { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .u { font-size: 12px; color: var(--text2); }
.meter { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; position: relative; }
.meter > i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--tint); min-width: 2px; transition: width .25s; }
.meter.warn > i { background: var(--warn); } .meter.exceed > i { background: var(--bad); }
.meter.tall { height: 14px; border-radius: 7px; } .meter.tall > i { border-radius: 7px; }
.ring { width: 44px; height: 44px; flex: none; }
.ring circle { fill: none; stroke-width: 5; } .ring .bg { stroke: var(--fill); } .ring .fg { stroke: var(--tint); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring.warn .fg { stroke: var(--warn); } .ring.exceed .fg { stroke: var(--bad); }
.ring text { font-size: 11px; font-weight: 600; fill: var(--text); text-anchor: middle; dominant-baseline: central; }

.wx { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.wx .big { font-size: 40px; font-weight: 300; letter-spacing: -.03em; grid-row: span 2; line-height: 1; }
.wxgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.wxgrid div { background: var(--card2); border-radius: 10px; padding: 7px 8px; }
.wxgrid .k { font-size: 11px; color: var(--text2); } .wxgrid .n { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.flag { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; }
.flag.exceed { background: var(--bad-soft); } .flag.warn { background: var(--warn-soft); } .flag.info { background: var(--fill); } .flag.ok { background: var(--ok-soft); }
.flag b { grid-column: 2; } .flag .c { grid-column: 2; font-size: 12px; color: var(--text2); }
.flag .i { grid-row: span 3; font-weight: 700; } .flag.exceed .i { color: var(--bad); } .flag.warn .i { color: var(--warn); } .flag.ok .i { color: var(--ok); }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* ---------- controls ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 10px; padding: 2px; gap: 2px; }
.seg button { height: 34px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-weight: 600; }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: #636366; } }
.seg.yn { width: 124px; flex: none; }
.seg.yn button[aria-pressed="true"].y { background: var(--ok); color: #fff; } .seg.yn button[aria-pressed="true"].n { background: var(--bad); color: #fff; }
.field-in { display: flex; flex-direction: column; gap: 4px; }
.field-in label, .lbl { font-size: 13px; color: var(--text2); font-weight: 500; }
.farm { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.farm b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.farm span { font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; }
input[type=date].in { -webkit-appearance: none; appearance: none; box-sizing: border-box; max-width: 100%; display: flex; align-items: center; justify-content: center; line-height: 46px; }
input[type=date].in::-webkit-date-and-time-value { text-align: center; line-height: 46px; margin: 0; }
.in { height: 46px; border-radius: 11px; border: 0; background: var(--fill); padding: 0 12px; width: 100%; min-width: 0; }
textarea.in { height: 76px; padding: 10px 12px; resize: none; }
.in.big { height: 60px; font-size: 28px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; }
.stepper button { height: 60px; border-radius: 14px; background: var(--fill); font-size: 30px; font-weight: 400; color: var(--tint); line-height: 1; }
.stepper button:active { background: var(--fill2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fstrip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -16px 4px; padding: 2px 16px 6px; }
.fstrip::-webkit-scrollbar { display: none; }
.fpill { flex: 0 0 auto; scroll-snap-align: center; display: flex; flex-direction: column; align-items: flex-start; min-width: 84px; min-height: 48px; padding: 6px 12px; border-radius: 12px; background: var(--card2); border: 2px solid transparent; }
.fpill b { font-size: 16px; } .fpill span { font-size: 12px; color: var(--text2); }
.fpill[aria-pressed="true"] { border-color: var(--tint); background: var(--tint-soft); }
input[type=time].in { -webkit-appearance: none; appearance: none; box-sizing: border-box; max-width: 100%; display: flex; align-items: center; justify-content: center; line-height: 46px; }
input[type=time].in::-webkit-date-and-time-value { text-align: center; line-height: 46px; margin: 0; }
.grid2 > * { min-width: 0; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.chip { border-radius: 12px; background: var(--card2); padding: 8px 10px; text-align: left; min-height: 56px; border: 2px solid transparent; }
.chip b { display: block; font-size: 17px; } .chip span { font-size: 11.5px; color: var(--text2); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip[aria-pressed="true"] { border-color: var(--tint); background: var(--tint-soft); }
.chip:disabled { opacity: .42; }
.chip .mini { height: 4px; border-radius: 2px; background: var(--fill2); margin-top: 5px; overflow: hidden; } .chip .mini i { display: block; height: 100%; background: var(--tint); }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: calc(100dvh - var(--sat) - 10px); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: up .26s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
.sheet.full { height: calc(100dvh - var(--sat) - 10px); }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 16px 8px; flex: none; }
.sheet-head h3 { font-size: 17px; font-weight: 600; text-align: center; }
.sheet-head .r { justify-self: end; } .sheet-head .l { justify-self: start; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.sheet-foot { flex: none; padding: 10px 16px calc(var(--sab) + 12px); display: flex; gap: 10px; background: var(--bg); }
.sheet-foot .btn { flex: 1; }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 18px; max-height: min(820px, calc(100dvh - 48px)); } .sheet.full { height: min(820px, calc(100dvh - 48px)); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { animation: none; } }
.steps { display: flex; gap: 5px; justify-content: center; padding: 0 0 8px; flex: none; }
.steps i { width: 26px; height: 4px; border-radius: 2px; background: var(--fill2); } .steps i.on { background: var(--tint); }
.q { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- login ---------- */
.login { height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: calc(var(--sat) + 16px) 24px calc(var(--sab) + 16px); grid-column: 1 / -1; }
.login .logo { width: 68px; height: 68px; border-radius: 16px; }
.login h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.login .box { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.dots { display: flex; gap: 14px; justify-content: center; height: 16px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text2); } .dots i.on { background: var(--text); border-color: var(--text); }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; justify-content: center; }
.pad button { width: 76px; height: 76px; border-radius: 50%; background: var(--fill); font-size: 30px; font-weight: 400; }
.pad button:active { background: var(--fill2); } .pad button.txt { background: none; font-size: 16px; color: var(--tint); }
.shake { animation: shake .34s; } @keyframes shake { 25% { transform: translateX(-9px); } 75% { transform: translateX(9px); } }

/* ---------- map ---------- */
.map { flex: 1; min-height: 240px; border-radius: var(--r); overflow: hidden; background: var(--card2); position: relative; z-index: 0; }
.map.inline { height: 100%; }
.maptools { display: flex; gap: 8px; flex-wrap: wrap; }
.leaflet-container { font: inherit; background: var(--card2); }
.leaflet-container .leaflet-control-attribution { font-size: 10px; line-height: 1.3; }
.sheet-body > *, .view-body > *, .col-scroll > * { min-width: 0; max-width: 100%; flex-shrink: 0; }
.sheet-body > .map, .view-body > .map { flex-shrink: 1; }
.sheet-body { overflow-x: hidden; }
.vtx { width: 20px; height: 20px; border-radius: 50%; background: #0a84ff; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); cursor: grab; }
.vtx:active { cursor: grabbing; }
.fld-label { background: rgba(0, 0, 0, .62); color: #fff; border: 0; border-radius: 6px; padding: 1px 6px; font-weight: 600; font-size: 12px; box-shadow: none; }
.fld-label::before { display: none; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .02em; padding: 6px 8px; border-bottom: .5px solid var(--sep); white-space: nowrap; }
table.t td { padding: 8px; border-bottom: .5px solid var(--sep); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t .n { text-align: right; font-variant-numeric: tabular-nums; }
.scrollx { overflow-x: auto; }
table.t input.in { height: 36px; padding: 0 8px; min-width: 64px; }

.fab-wrap { position: fixed; right: calc(14px + var(--sar)); bottom: calc(var(--sab) + var(--tab-h) + 18px); z-index: 10; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab { width: 46px; height: 46px; border-radius: 50%; background: var(--card); color: var(--tint); font-size: 22px; font-weight: 700; box-shadow: 0 2px 10px rgba(0, 0, 0, .22), 0 0 0 .5px var(--sep); }
.fab:active { filter: brightness(.94); }
.fab-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab-menu[hidden] { display: none; }
.fab-item { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--card); color: var(--text); font-size: 15px; font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .2), 0 0 0 .5px var(--sep); }
@media (min-width: 860px) { .fab-wrap { bottom: 20px; right: 22px; } }
@media print { .fab-wrap { display: none; } }
#toast { position: fixed; left: 50%; bottom: calc(var(--sab) + var(--tab-h) + 22px); transform: translate(-50%, 20px); background: rgba(28, 28, 30, .94); color: #fff; padding: 11px 18px; border-radius: 22px; font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: .22s; z-index: 40; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- placement tool: shape handles ---------- */
/* The handle element is the touch target; the drawn dot inside it is smaller. */
.leaflet-marker-icon.hdl, .hdl { display: grid; place-items: center; background: none; border: 0; cursor: grab; touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.hdl:active { cursor: grabbing; }
.hdl::after { content: ""; grid-area: 1 / 1; box-sizing: border-box; border-radius: 50%; transition: transform .12s; }
.hdl.corner::after { width: 20px; height: 20px; background: #0a84ff; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.hdl.mid::after { width: 14px; height: 14px; background: rgba(255, 255, 255, .55); border: 2px solid rgba(10, 132, 255, .9); box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.hdl.mid.on::after, .hdl.mid:hover::after { background: #0a84ff; border-color: #fff; transform: scale(1.3); }
.hdl.move::after { width: 30px; height: 30px; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .5); }
.hdl.move svg { grid-area: 1 / 1; z-index: 1; color: #0a84ff; pointer-events: none; }
.hdl.corner:active::after, .hdl.move:active::after, .hdl.leaflet-drag-target::after { transform: scale(1.18); }
.shape-label { background: rgba(10, 60, 130, .88); font-size: 13px; padding: 2px 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.place-read { padding: 8px 14px; }
.maptools.tight { gap: 6px; }
.maptools.tight .btn.sm { height: 34px; padding: 0 11px; font-size: 14px; }
.btn.sm.toggle[aria-pressed="true"] { background: var(--tint); color: var(--on-tint); }
@media (max-width: 480px) { .place-read .small { font-size: 12.5px; line-height: 1.3; } }

/* Field by field stepper in the field sheet */
.fieldstep { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px 8px; border-bottom: 1px solid var(--sep); }
.fieldstep button { min-height: 40px; min-width: 76px; padding: 0 12px; border-radius: 12px; background: var(--card2); color: var(--tint); font-weight: 600; font-size: 15px; border: 0; white-space: nowrap; }
.fieldstep button:last-child { text-align: right; }

/* Phone: header controls keep their labels; touch targets at least 40 px */
.view-head > :first-child { min-width: 0; }
.view-head .seg { flex: none; }
.view-head .seg button { padding: 0 12px; overflow: visible; }
@media (max-width: 859px) {
  .seg button { height: 40px; }
  .btn.hero { height: 60px; font-size: 17px; white-space: nowrap; }
  .view-head h1 { font-size: 27px; }
}

/* Working with no signal: one line under the page title. */
.netbar { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--warn-soft); color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.3; text-align: left; cursor: pointer; }
.netbar.bad { background: var(--bad-soft); }
.netbar b { flex: none; color: var(--tint); font-weight: 600; }
.netbar .grow { flex: 1; min-width: 0; }

/* dashboard */
.wxstrip { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; }
.wxstrip:active { background: var(--fill); }
.todo { display: flex; gap: 10px; padding: 10px 16px; border-top: .5px solid var(--sep); font-size: 14.5px; line-height: 1.35; }
.todo .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--text2); }
.todo.warn .dot { background: var(--warn); } .todo.exceed .dot { background: var(--bad); }
@media (min-width: 860px) { .view-body.cols { grid-auto-rows: max-content; } }

/* site record */
.site-inspect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) { .sheet:has(.site-inspect) { max-width: 1120px; } }

/* raised button: the one step on the amount screen that is easy to miss */
.btn3d { height: 58px; border-radius: 16px; font-size: 17px; font-weight: 700; color: var(--on-tint); background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 82%, #fff) 0%, var(--tint) 55%, color-mix(in srgb, var(--tint) 86%, #000) 100%);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--tint) 58%, #000), 0 10px 18px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .38); transform: translateY(-3px); margin: 4px 0 8px; transition: transform .06s, box-shadow .06s; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.btn3d:active { transform: translateY(2px); box-shadow: 0 0 0 color-mix(in srgb, var(--tint) 58%, #000), 0 2px 5px rgba(0, 0, 0, .25), inset 0 2px 4px rgba(0, 0, 0, .22); }
.btn3d.done { color: var(--tint); text-shadow: none; background: linear-gradient(180deg, var(--card), var(--card2)); box-shadow: 0 4px 0 var(--fill2), 0 8px 14px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .6); }
@media (prefers-reduced-motion: reduce) { .btn3d { transition: none; } }

/* contour elevation labels */
.elev { background: rgba(0, 0, 0, .58); border: 0; box-shadow: none; color: #fff8c4; font-weight: 700; font-size: 11px; padding: 0 3px; border-radius: 3px; }
.elev::before { display: none; }
