/* Roger Wilco Imagery — v2 analyst interface. Brand palette: Shadow #1A1A1A, Forest #1F3B2E, Wilco Brown #5C3F2E, Rogue Tan #C9A277,
   Mountain Blue #2F5EBA, Sky #7BABC9, Snow #F4F4F2, Stone #6C6C6C, sage #92AF71. Dark by default. */
:root {
  --bg: #111312; --bg2: #161817; --panel: #1b1d1c; --line: #2a2d2b; --line2: #353936; --ink: #ecece8; --muted: #9b9c96; --faint: #6f716c;
  --accent: #c9a277; --accent-ink: #1a1a1a; --link: #d8b88f; --sky: #7babc9; --sage: #92af71;
  --high: #e5675c; --med: #e2a64a; --low: #7d7f79;
  --k-lead: #e5675c; --k-heat: #f08a3c; --k-change: #c792ea; --k-watch: #7babc9; --k-report: #c9a277; --k-track: #92af71;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display: "Oswald", "Arial Narrow", sans-serif; --r: 10px; --rail: 228px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f2; --bg2: #ecebe6; --panel: #fff; --line: #e1e0da; --line2: #cfcec7; --ink: #1a1a1a; --muted: #5f605b; --faint: #8a8b85;
  --accent: #5c3f2e; --accent-ink: #fff; --link: #2f5eba; --high: #b3261e; --med: #9a5d00; --low: #8a8b85;
  --k-lead: #b3261e; --k-heat: #c2410c; --k-change: #7c3aed; --k-watch: #2f5eba; --k-report: #5c3f2e; --k-track: #4f7a3a;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
.mono, code { font-family: var(--mono); font-size: .86em; } .small { font-size: 12.5px; } .muted { color: var(--muted); }
kbd { font: 11px var(--mono); padding: 1px 5px; border: 1px solid var(--line2); border-radius: 4px; color: var(--muted); }
button { font: inherit; color: inherit; }

/* ---- app shell: rail + main */
.app { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 16px 12px; background: var(--bg2); border-right: 1px solid var(--line); overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 16px/1 var(--display); letter-spacing: .06em; padding: 4px 8px; }
.logo img { border-radius: 50%; border: 2px solid var(--accent); } .logo b { color: var(--sage); font-weight: 600; } .logo:hover { text-decoration: none; }
.search-b { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: var(--muted); cursor: pointer; text-align: left; }
.search-b svg { width: 16px; height: 16px; fill: currentColor; } .search-b span { flex: 1; } .search-b:hover { border-color: var(--accent); }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.rail nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; opacity: .8; }
.rail nav a:hover { background: var(--panel); text-decoration: none; }
.rail nav a.on { background: var(--panel); box-shadow: inset 3px 0 0 var(--accent); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rail-foot a, .linkish { color: var(--muted); padding: 3px 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: 13px; }
.main { min-width: 0; padding: 22px 28px 40px; max-width: 1400px; }
.foot { padding: 0 28px 28px; color: var(--faint); font-size: 12px; margin-left: var(--rail); }

/* ---- page header */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ph h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; line-height: 1.2; }
.since { margin: 4px 0 0; color: var(--muted); }
.ph-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow { margin: 0 0 4px; color: var(--accent); letter-spacing: .06em; }
.crumb { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.tog { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line2); border-radius: 99px; font-size: 13px; cursor: pointer; user-select: none; background: var(--panel); }
.tog:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--panel)); }
.tog input { accent-color: var(--accent); margin: 0; }
.tog .ic { width: 14px; height: 14px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; border: 1px solid var(--accent); cursor: pointer; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); } .btn:hover { text-decoration: none; filter: brightness(1.08); }

/* ---- filter chips */
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; font-size: 13px; }
.fchip b { font-weight: 600; color: var(--muted); font-size: 12px; }
.fchip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--panel)); }
.ic { width: 16px; height: 16px; flex: none; fill: currentColor; }
[data-f="lead"] .ic, .k-lead > .ic { color: var(--k-lead); } [data-f="heat"] .ic, .k-heat > .ic { color: var(--k-heat); }
[data-f="change"] .ic, .k-change > .ic { color: var(--k-change); } [data-f="watch"] .ic, .k-watch > .ic { color: var(--k-watch); }
[data-f="report"] .ic, .k-report > .ic { color: var(--k-report); } [data-f="track"] .ic, .k-track > .ic { color: var(--k-track); }

/* ---- Today: feed + side */
.today { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.panel h2 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.panel h2 a { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.tmap { height: 300px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); }
.tmap.small { height: 240px; }
.feed { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel .feed { border: 0; background: none; border-radius: 0; margin: 0 -14px -12px; }
.day { padding: 8px 14px 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg2); border-bottom: 1px solid var(--line); list-style: none; position: sticky; top: 0; z-index: 2; }
.ev { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line); position: relative; }
.ev:last-child { border-bottom: 0; }
.ev > .ic { margin-top: 2px; }
.ev.s-high::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--high); }
.ev.s-low { opacity: .72; }
.ev:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.ev.hot { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.ev-main { color: var(--ink); min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ev-main:hover { text-decoration: none; } .ev-main:hover .ev-t { color: var(--link); }
.ev-t { font-weight: 550; overflow-wrap: anywhere; } .ev-s { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.ev time { color: var(--faint); font-size: 12px; white-space: nowrap; padding-top: 2px; }
.ev.new .ev-t::after { content: "new"; margin-left: 8px; padding: 0 6px; border-radius: 4px; background: var(--sky); color: #111; font-size: 10.5px; font-weight: 700; text-transform: uppercase; vertical-align: 1px; }
.empty { color: var(--muted); padding: 16px; text-align: center; list-style: none; }
.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini li { display: flex; flex-direction: column; } .mini a { color: var(--ink); font-weight: 500; line-height: 1.35; } .mini span { color: var(--faint); font-size: 12px; }

/* ---- lists: places, reports */
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.bar input[type=search], .bar select { font: inherit; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); }
.bar input[type=search] { flex: 1 1 260px; }
.plist, .rlist { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.prow { display: grid; grid-template-columns: 30px minmax(0, 1fr) 170px 150px 80px; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.prow a { color: var(--ink); display: flex; flex-direction: column; min-width: 0; } .prow a span { color: var(--muted); font-size: 12.5px; }
.prow .pc, .prow .pn { font-size: 12.5px; } .prow .pn { color: var(--muted); } .prow time { color: var(--faint); font-size: 12px; text-align: right; }
.pin { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 17px; padding: 2px; line-height: 1; }
.pin[aria-pressed="true"] { color: var(--accent); }
.pin.big { border: 1px solid var(--line2); border-radius: 8px; padding: 7px 12px; font-size: 14px; }
.rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rrow a { color: var(--ink); display: flex; flex-direction: column; gap: 2px; min-width: 0; } .rrow a:hover { text-decoration: none; } .rrow a:hover b { color: var(--link); }
.rid { color: var(--accent); font-size: 12px; } .rh { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rmeta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.kt { padding: 1px 7px; border-radius: 4px; background: var(--bg2); color: var(--muted); } .lc { color: var(--k-lead); font-weight: 600; }
.t-c { color: var(--sage); } .t-p { color: var(--med); } .t-u { color: var(--high); } .t-n { color: var(--muted); }

/* ---- place + report pages */
.placepage, .rep { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.pmain { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ba { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 4 / 3; max-height: 560px; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ba .after { clip-path: inset(0 0 0 var(--x)); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: var(--accent); pointer-events: none; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-l, .ba-r { position: absolute; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; pointer-events: none; }
.ba-l { left: 10px; } .ba-r { right: 10px; }
.ba.one img { position: static; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.thumbs a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 12px; }
.thumbs img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #000; } .thumbs span { display: block; padding: 4px 8px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; } .dl dt { color: var(--muted); } .dl dd { margin: 0; min-width: 0; }
.copy { background: none; border: 0; padding: 0; color: var(--link); cursor: copy; text-align: left; }
.copy.btn { color: var(--ink); padding: 7px 14px; border: 1px solid var(--line2); }
.copied::after { content: " ✓ copied"; color: var(--sage); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line2); color: var(--ink); font-size: 13px; } .chip:hover { border-color: var(--accent); text-decoration: none; }
.leadsbox { border-left: 3px solid var(--k-lead); }
.leadlist { margin: 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.leadlist li > b { display: block; font-size: 16px; margin: 2px 0 6px; line-height: 1.35; }
.leadlist p { margin: 3px 0; } .leadlist .k { display: inline-block; min-width: 125px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.leadlist li:target { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.lead-p { font-size: 16px; line-height: 1.6; margin: 0 0 8px; max-width: 75ch; }

/* ---- leads board */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-width: 220px; }
.col h2 { margin: 2px 4px 10px; font-size: 13px; display: flex; justify-content: space-between; } .col h2 b { color: var(--muted); }
.col ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.col li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; display: flex; flex-direction: column; gap: 4px; }
.col li a { color: var(--ink); display: flex; flex-direction: column; gap: 4px; } .col li a span { color: var(--accent); } .col time { color: var(--faint); font-size: 12px; }

/* ---- full map */
.fullmap { position: relative; height: calc(100vh - 110px); min-height: 420px; }
#bigmap { position: absolute; inset: 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg2); }
.mapctl { position: absolute; top: 12px; right: 12px; z-index: 500; width: 210px; display: flex; flex-direction: column; gap: 6px; }
.mapctl .tog { border: 0; background: none; padding: 2px 0; }
.leaflet-container { background: var(--bg2) !important; font: inherit !important; }

/* ---- ⌘K search */
.kmodal { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.55); display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.kmodal[hidden] { display: none; }
.kbox { width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.kbox input { width: 100%; padding: 16px 18px; font: inherit; font-size: 16px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); outline: none; }
#kres { list-style: none; margin: 0; padding: 6px; max-height: 55vh; overflow-y: auto; }
#kres li a { display: grid; grid-template-columns: 74px 1fr; gap: 2px 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
#kres li a span { grid-row: span 2; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
#kres li a small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#kres li.sel a, #kres li a:hover { background: var(--bg2); text-decoration: none; }
.khint { margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; display: flex; gap: 6px; align-items: center; }

/* ---- tablet */
@media (max-width: 1180px) {
  .today, .placepage, .rep { grid-template-columns: 1fr; }
  .side { position: static; }
  .prow { grid-template-columns: 30px minmax(0, 1fr) auto; } .prow .pn, .prow .pc { display: none; }
}
/* ---- phone: bottom tab bar, search in the top bar */
@media (max-width: 760px) {
  .app { display: block; }
  .rail { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 2000; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom); gap: 0; border-right: 0; border-top: 1px solid var(--line); overflow: visible; }
  .rail .logo, .rail-foot { display: none; }
  .rail nav { flex-direction: row; flex: 1; justify-content: space-around; gap: 0; }
  .rail nav a { flex-direction: column; gap: 2px; padding: 8px 4px 6px; font-size: 10.5px; flex: 1; align-items: center; border-radius: 0; }
  .rail nav a.on { box-shadow: inset 0 2px 0 var(--accent); background: none; color: var(--accent); }
  .rail nav a[href*="tracks"] { display: none; }
  .search-b { position: fixed; top: 10px; right: 12px; width: auto; z-index: 2001; padding: 7px 10px; }
  .search-b span, .search-b kbd { display: none; }
  .main { padding: 14px 14px 90px; }
  .ph { padding-right: 52px; } .ph h1 { font-size: 22px; }
  .foot { margin: 0; padding: 0 14px 90px; }
  .ev { grid-template-columns: 20px minmax(0, 1fr); } .ev time { grid-column: 2; padding: 0; }
  .tmap { height: 220px; }
  .ph-acts, .fchips { flex-wrap: nowrap; overflow-x: auto; margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
  .ph-acts .tog, .fchip { flex: none; } .ph-acts { width: 100%; } .fchips { margin-bottom: 10px; }
  .board { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; }
  .rrow { grid-template-columns: 1fr; } .rmeta { flex-direction: row; align-items: center; }
  .leadlist .k { display: block; }
  .mapctl { top: auto; bottom: 12px; right: 12px; left: 12px; width: auto; }
  .fullmap { height: calc(100vh - 170px); }
}

/* map fallback message */
.tmap { position: relative; }   /* #bigmap stays absolute (inset: 0 in .fullmap); both hold the .mapmsg overlay */
.mapmsg { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 600; padding: 8px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line2); color: var(--muted); font-size: 12.5px; }
.tmap:not(.leaflet-container) .mapmsg, #bigmap:not(.leaflet-container) .mapmsg { top: 50%; bottom: auto; transform: translateY(-50%); text-align: center; }
/* phone: the filter rows scroll sideways; fade the right edge so it is obvious there is more */
@media (max-width: 760px) {
  .ph-acts, .fchips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
}
.notice { border: 1px solid var(--line); border-left: 3px solid var(--sky); background: var(--panel); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
/* Leaflet controls in the app's style */
.leaflet-container .leaflet-control-attribution { font-size: 10px; line-height: 1.4; background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--faint); padding: 1px 6px; }
.leaflet-container .leaflet-control-attribution a { color: var(--muted); }
.leaflet-control-layers { background: var(--panel) !important; color: var(--ink); border: 1px solid var(--line2) !important; border-radius: 8px !important; box-shadow: none !important; font-size: 12.5px; }
.leaflet-control-layers-toggle { width: 30px !important; height: 30px !important; background-size: 18px !important; }
:root:not([data-theme="light"]) .leaflet-control-layers-toggle { filter: invert(.85); }
.leaflet-control-layers-expanded { padding: 6px 10px !important; }

/* Watches */
.wgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.wcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.wc-h { display: flex; flex-direction: column; color: var(--ink); } .wc-h b { font-size: 16px; } .wc-h:hover { text-decoration: none; } .wc-h:hover b { color: var(--link); }
.wn { margin: 2px 0; padding-left: 18px; } .wn li { margin: 2px 0; }
.thumbs.four { grid-template-columns: repeat(4, 1fr); } .thumbs.four span { display: none; }
.wday h2 { justify-content: space-between; } .wday details summary { cursor: pointer; color: var(--link); margin-top: 6px; }
.prose { font-size: 13.5px; } .prose table { border-collapse: collapse; width: 100%; font-size: 12.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .prose th { color: var(--muted); font-weight: 600; }
.prose img { max-width: 100%; border-radius: 8px; }
@media (max-width: 760px) { .rail nav a[href*="watches"] { display: none; } .wgrid { grid-template-columns: 1fr; } }

/* account + lead status controls */
.rail-foot .who { margin: 0 0 6px; color: var(--sage); font-size: 12.5px; }
.lctl { margin-top: 4px; } .lctl summary { cursor: pointer; color: var(--link); font-size: 12.5px; }
.lform { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.lform select, .lform input { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); }
.lform .btn { align-self: flex-start; padding: 5px 12px; font-size: 13px; }
.lst { padding: 4px 8px; border-radius: 6px; background: var(--bg2); display: inline-block; }
.lst b { color: var(--sage); }

/* rail: More */
.more { padding: 0 2px; } .more summary { cursor: pointer; padding: 6px 10px; color: var(--muted); font-size: 13.5px; list-style: none; }
.more summary::before { content: "▸ "; } .more[open] summary::before { content: "▾ "; }
.more a { display: block; padding: 5px 10px 5px 22px; border-radius: 6px; color: var(--ink); font-size: 13.5px; }
.more a:hover { background: var(--panel); text-decoration: none; } .more a.on { box-shadow: inset 3px 0 0 var(--accent); background: var(--panel); }
.rail nav a[href$="more.html"] { display: none; }
.morelist { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.morelist li { border-bottom: 1px solid var(--line); } .morelist li:last-child { border-bottom: 0; }
.morelist a, .morelist .linkish { display: block; padding: 13px 16px; color: var(--ink); font-size: 15px; width: 100%; text-align: left; }
@media (max-width: 760px) { .rail .more { display: none; } .rail nav a[href$="more.html"] { display: flex; } }
/* Leaflet zoom buttons in the app's colours */
.leaflet-bar a { background: var(--panel) !important; color: var(--ink) !important; border-color: var(--line2) !important; }

/* Thermal watch */
.thermal { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.fcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.fcard { border: 1px solid var(--line); border-left: 3px solid var(--high); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; background: var(--bg2); }
.fcard a { color: var(--ink); } .fcard a b { font-size: 15px; }
.fnums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0; }
.fnums span { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); line-height: 1.2; } .fnums b { font: 600 18px/1.2 var(--sans); color: var(--ink); }
.bars7 { display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; } .bars7 i { display: block; width: 9px; background: var(--k-heat); border-radius: 2px 2px 0 0; opacity: .85; }
tr.routine .bars7 i { background: var(--low); } tr.flag .bars7 i { background: var(--high); }
.dtab { width: 100%; border-collapse: collapse; font-size: 13px; } .dtab th, .dtab td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtab th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; } .dtab tr.routine { opacity: .7; }
.tagf, .tagr { margin-left: 8px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.tagf { background: var(--high); color: #111; } .tagr { background: var(--bg2); color: var(--muted); }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 3px 0 8px; vertical-align: 0; } .lg.l2 { background: var(--high); } .lg.l1 { background: var(--k-heat); } .lg.l0 { background: var(--low); }
/* Tracks */
.tlist { list-style: none; margin: 0 -14px -12px; padding: 0; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.trow a { color: var(--ink); display: flex; flex-direction: column; gap: 1px; min-width: 0; } .trow a:hover { text-decoration: none; } .trow a:hover b { color: var(--link); }
.tst { padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tst.s-live { background: var(--high); color: #111; } .tst.s-closed { background: color-mix(in srgb, var(--sage) 25%, transparent); color: var(--sage); } .tst.s-aborted { background: color-mix(in srgb, var(--med) 25%, transparent); color: var(--med); }
.tmap.big { height: 440px; }
.tend { border-left: 3px solid var(--med); } .tend.s-closed { border-left-color: var(--sage); }
@media (max-width: 1180px) { .thermal { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .tmap.big { height: 300px; } .fnums b { font-size: 16px; } }
.tablewrap { overflow-x: auto; max-width: 100%; }
@media (max-width: 760px) { .fnums { grid-template-columns: repeat(2, 1fr); } .dtab { font-size: 12.5px; } }
.plainlist { margin: 0; padding-left: 18px; } .plainlist li { margin: 5px 0; font-size: 13.5px; } .plainlist a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); }

/* Signals */
.ncards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px; }
.ncard { border: 1px solid var(--line); border-left: 3px solid var(--sky); border-radius: 8px; padding: 10px 12px; background: var(--bg2); display: flex; flex-direction: column; gap: 4px; }
.ncard.k-surge { border-left-color: var(--med); } .ncard > a { color: var(--ink); } .ncard > a b { font-size: 15px; }
.ratio { display: inline-block; min-width: 56px; padding-left: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--sky) 40%, transparent) calc(var(--r) * 100%), transparent 0); border-radius: 3px; }
.dtab td.hot { color: var(--high); font-weight: 700; }
/* MILAIR */
.mday h2 a { margin-left: auto; text-transform: none; letter-spacing: 0; }
.cat { padding: 1px 7px; border-radius: 4px; background: var(--bg2); font-size: 12px; white-space: nowrap; }
/* Wilco Watch */
.thumbs.big { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.egg { opacity: .6; margin-top: 18px; }
@media (max-width: 760px) { .ncards { grid-template-columns: 1fr; } }
.thumbs.big img { aspect-ratio: auto; height: auto; object-fit: contain; }
.ncard .dtab td:first-child { white-space: nowrap; }
.ncard { min-width: 0; }

/* Task a pass */
.tform { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.tpick { position: relative; } .tpick input, .trow2 input { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); }
.tpick input { width: 100%; }
.tsugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: 4px 0 0; padding: 4px; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.tsugg button { width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 6px; cursor: pointer; } .tsugg button:hover { background: var(--bg2); }
.tsugg small { color: var(--muted); margin-left: 6px; }
.trow2 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; } .trow2 .grow { flex: 1 1 240px; }
.trow2 label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.tbox summary { cursor: pointer; color: var(--link); margin-top: 8px; font-size: 13.5px; }
.tchips { margin: 10px 0 0; padding: 0; list-style: none; } .tchips .linkish { padding: 0 0 0 4px; color: var(--muted); }
.tsources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 8px; }
.tsrc { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); cursor: pointer; }
.tsrc:has(input:checked) { border-color: var(--accent); } .tsrc input { margin-top: 3px; accent-color: var(--accent); }
.tsrc span { display: flex; flex-direction: column; gap: 2px; } .tsrc small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.tsubmit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; } .tsubmit p { margin: 2px 0 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.tst.s-done, .tst.s-finished { background: color-mix(in srgb, var(--sage) 25%, transparent); color: var(--sage); }
.tst.s-partial, .tst.s-running, .tst.s-queued { background: color-mix(in srgb, var(--med) 25%, transparent); color: var(--med); }
.tst.s-failed, .tst.s-rejected { background: color-mix(in srgb, var(--high) 25%, transparent); color: var(--high); }
svg.goes { display: block; width: 100%; height: 130px; background: var(--bg2); border-radius: 8px; } svg.goes rect { fill: var(--k-heat); }
.goes-ax { display: flex; justify-content: space-between; margin: 4px 0 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .rail nav a[href$="task.html"] { display: none; } }
/* map layers panel: a <details>, open on desktop, folded to one line on phones so the map stays usable */
.mapctl > summary { cursor: pointer; list-style: none; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mapctl > summary::-webkit-details-marker { display: none; }
.mapctl > summary::after { content: "▾"; float: right; }
.mapctl:not([open]) > summary::after { content: "▸"; }
.mapctl[open] > summary { margin-bottom: 4px; }
@media (max-width: 760px) { .mapctl { top: 12px; bottom: auto; left: 58px; right: 62px; padding: 8px 12px; } .mapctl[open] { max-height: 60%; overflow: auto; } }
