/* Layout: map-first field instrument. Brand header + tab rail, map stage on the left, bilingual briefing panel on the right; stacks on phones. */
:root {
  --bg: #eef3f8; --surface: #ffffff; --sunk: #dfe7ef; --line: #c9d5e1;
  --fg: #111a3a; --muted: #4f5d78;
  --brand: #1f72b8; --brand-cyan: #2eb0de; --brand-navy: #18144a; --brand-soft: #1f72b81a;
  --lv0: #2e8b57; --lv1: #c99a00; --lv2: #e0661b; --lv3: #c0262d;
  --landslide: #9a5b13; --flood: #1d6fb8; --quake: #c2321f; --subsidence: #3f7d78; --storm: #6b5bb5; --heat: #d9480f; --cold: #3b82c4;
  --f-display: "Barlow Condensed", "Mukta", "Arial Narrow", sans-serif;
  --f-body: "Mukta", "Nirmala UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1024; --surface: #121a36; --sunk: #080c1c; --line: #26315a;
  --fg: #e6ecf8; --muted: #93a2c4;
  --brand: #4aa3e8; --brand-cyan: #4cc4ee; --brand-navy: #b9c6f5; --brand-soft: #4aa3e824;
  --lv0: #4fbf83; --lv1: #f0c33a; --lv2: #ff8a3d; --lv3: #ff5a5f;
  --landslide: #d99a4e; --flood: #5ca8ec; --quake: #f06a55; --subsidence: #6fb7b0; --storm: #a596ec; --heat: #ff7b3d; --cold: #7fb8ee;
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0b1024; --surface: #121a36; --sunk: #080c1c; --line: #26315a;
  --fg: #e6ecf8; --muted: #93a2c4;
  --brand: #4aa3e8; --brand-cyan: #4cc4ee; --brand-navy: #b9c6f5; --brand-soft: #4aa3e824;
  --lv0: #4fbf83; --lv1: #f0c33a; --lv2: #ff8a3d; --lv3: #ff5a5f;
  --landslide: #d99a4e; --flood: #5ca8ec; --quake: #f06a55; --subsidence: #6fb7b0; --storm: #a596ec; --heat: #ff7b3d; --cold: #7fb8ee;
  color-scheme: dark }

* { box-sizing: border-box }
html, body { height: 100%; margin: 0 }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--f-body); display: grid; grid-template-rows: auto auto minmax(0, 1fr) }
button, select, input { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px }
[hidden] { display: none !important }
a { color: var(--brand) }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; padding: .5rem 16px; background: var(--surface); border-bottom: 1px solid var(--line) }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--fg) }
.brand .word { font: 700 1.9rem/1 var(--f-display); letter-spacing: .04em }
.brand .word b { background: linear-gradient(90deg, var(--brand-cyan), var(--brand) 55%, var(--brand-navy)); -webkit-background-clip: text; background-clip: text; color: transparent }
.tagline { margin: 0; color: var(--muted); font-size: .9rem; flex: 1 1 18rem; min-width: 0 }
.tools { display: flex; gap: .5rem; align-items: center }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden }
.lang button { border: 0; background: transparent; padding: .2rem .8rem; cursor: pointer; font-weight: 600 }
.lang button[aria-pressed=true] { background: var(--brand); color: #fff }

.tabs { display: flex; gap: 0; padding-inline: 16px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto }
.tabs button { border: 0; background: transparent; padding: .55rem .9rem; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap }
.tabs button[aria-selected=true] { color: var(--fg); border-bottom-color: var(--brand) }

main { display: grid; grid-template-columns: minmax(0, 1fr) 430px; min-height: 0 }
.stage { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; min-width: 0 }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: end; padding: .5rem 16px; border-bottom: 1px solid var(--line); background: var(--surface) }
.field { display: grid; gap: .1rem }
.field > span { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.field .row { display: flex; gap: .25rem; align-items: center }
select, input[type=date], input[type=search] { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: .3rem .5rem; font-size: .85rem; max-width: 14rem }
.step { width: 1.8rem; height: 1.8rem; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; cursor: pointer }

.toolbar { grid-row: 1 }
.mapwrap { grid-row: 2; position: relative; min-height: 300px; min-width: 0 }
.strip { grid-row: 3 }
#map, #map3d { position: absolute; inset: 0; background: var(--sunk) }
#map3d { background: #0a0f2a }
.yearbig { position: absolute; left: 16px; top: 14px; z-index: 5; padding: .2rem .7rem; background: #0b1024d9; color: #f2f5fb; border-radius: 6px; font: 700 2.4rem/1.1 var(--f-display); pointer-events: none }
.years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: .6rem 0 }
.years button { min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; font-weight: 700; cursor: pointer; font-family: var(--f-mono) }
.years button[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff }
.years button.ev { border-color: var(--lv2) }
input[type=range] { width: 100%; accent-color: var(--brand) }
.leaflet-container { font: inherit; background: var(--sunk) }
.leaflet-popup-content { font: .85rem/1.4 var(--f-body); margin: .6rem .8rem }
.badge { position: absolute; top: 10px; z-index: 900; padding: .2rem .55rem; background: #0b1024d9; color: #f2f5fb; font: 500 .75rem var(--f-mono); border-radius: 4px; pointer-events: none }
.badge b { font: 700 .85rem var(--f-display); letter-spacing: .08em; margin-right: .35rem; color: var(--brand-cyan) }
#badgeA { left: 54px } #badgeB { right: 10px }
#divider { position: absolute; top: 0; bottom: 0; width: 0; z-index: 800; border-left: 2px solid #fff; box-shadow: 0 0 0 1px #0006; pointer-events: none }
#handle { position: absolute; top: 50%; left: -17px; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; cursor: ew-resize; pointer-events: auto; touch-action: none; display: grid; place-items: center; color: #fff; font-weight: 700 }
.legend { position: absolute; left: 10px; bottom: 10px; z-index: 900; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .35rem .6rem; font-size: .75rem; display: flex; flex-wrap: wrap; gap: .2rem .7rem; max-width: calc(100% - 20px) }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; vertical-align: -1px }
.evm { width: 14px; height: 14px; transform: rotate(45deg); border: 2px solid #fff; box-shadow: 0 0 0 1px #0008; cursor: pointer }
.evm.sel { outline: 3px solid var(--brand); outline-offset: 2px }
.t-landslide { background: var(--landslide) } .t-flood { background: var(--flood) } .t-quake { background: var(--quake) } .t-subsidence { background: var(--subsidence) }
.pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--lv3); border: 2px solid #fff; box-shadow: 0 0 0 0 var(--lv3); animation: pulse 1.8s infinite }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px transparent } 100% { box-shadow: 0 0 0 0 transparent } }
.trk { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: var(--brand); box-shadow: 0 0 0 1px #000a; color: #fff; font: 700 9px/8px var(--f-mono); text-align: center }

.strip { position: relative; height: 70px; border-top: 1px solid var(--line); background: var(--surface); padding-inline: 16px }
.strip canvas { position: absolute; inset: 0 16px; width: calc(100% - 32px); height: 100% }
.strip .tick { position: absolute; top: 8px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); border: 1.5px solid var(--surface); cursor: pointer; padding: 0 }
.strip .tick.sel { outline: 2px solid var(--brand); outline-offset: 2px }
.strip .lbl { position: absolute; bottom: 4px; font: .66rem var(--f-mono); color: var(--muted); transform: translateX(-50%) }
.strip .cap { position: absolute; left: 16px; top: 26px; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); pointer-events: none }

aside { border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; background: var(--bg) }
section { padding: .9rem 16px; border-bottom: 1px solid var(--line) }
h2 { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: .5rem; align-items: baseline }
h2 small { font: .7rem var(--f-mono); letter-spacing: 0; text-transform: none }
h3 { margin: .1rem 0 .3rem; font: 700 1.6rem/1.1 var(--f-display); text-wrap: balance }
p { margin: .35rem 0; max-width: 62ch }
.hint, .note { font-size: .82rem; color: var(--muted) }
.note { border-left: 2px solid var(--line); padding-left: .6rem }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: .35rem .8rem; cursor: pointer; font-weight: 600; white-space: nowrap }
.btn:hover { border-color: var(--brand) }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand) }
.btnrow { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 }
.searchrow { display: flex; gap: .4rem }
.searchrow input { flex: 1; min-width: 0; max-width: none; font-size: .95rem; padding: .45rem .6rem }
.results { margin-top: .3rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden }
.results button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: .4rem .7rem; cursor: pointer }
.results button:hover { background: var(--brand-soft) }
.results small { color: var(--muted) }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: .6rem }
.summary div { background: var(--surface); border-radius: 6px; padding: .4rem .5rem; border-top: 3px solid var(--lvc, var(--line)) }
.summary b { display: block; font: 700 1.5rem/1 var(--f-display) }
.summary span { font-size: .72rem; color: var(--muted) }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .1rem .65rem; font-size: .8rem; cursor: pointer }
.chip[aria-pressed=true] { background: var(--fg); color: var(--bg); border-color: var(--fg) }
.list { display: grid; gap: 3px; max-height: 300px; overflow-y: auto }
.item { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: .6rem; align-items: center; text-align: left; border: 0; background: var(--surface); padding: .4rem .6rem .4rem 0; cursor: pointer; border-radius: 4px }
.item:hover, .item.sel { background: var(--brand-soft) }
.item .bar { align-self: stretch; border-radius: 4px 0 0 4px }
.item .nm { font-weight: 600; line-height: 1.2 }
.item .dt { font-size: .78rem; color: var(--muted) }
.lvl { font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 99px; color: #fff; white-space: nowrap }
.l0 { background: var(--lv0) } .l1 { background: var(--lv1); color: #1d1600 } .l2 { background: var(--lv2) } .l3 { background: var(--lv3) }

.outlook h3 { margin-bottom: 0 }
.place-meta { font-size: .82rem; color: var(--muted) }
.threat { display: grid; grid-template-columns: 6px 1fr; gap: .7rem; margin: .6rem 0; background: var(--surface); border-radius: 6px; overflow: hidden }
.threat .bar { background: var(--lvc) }
.threat > div { padding: .5rem .7rem .55rem 0 }
.threat .head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-weight: 700 }
.threat p { margin: .2rem 0; font-size: .9rem }
.threat .do { font-size: .85rem; color: var(--muted) }
.threat .do::before { content: "→ " }
.allclear { background: var(--surface); border-left: 6px solid var(--lv0); border-radius: 6px; padding: .6rem .8rem; margin: .6rem 0 }
.share { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem }
.sub { margin-top: 1rem }
.sub h4 { margin: 0 0 .3rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.chart { width: 100%; height: auto; display: block }
.chart text { fill: var(--muted); font: 10px var(--f-mono) }
.chart .grid { stroke: var(--line) }
.chart .bar { fill: var(--flood) } .chart .bar.fc { fill: var(--brand-cyan); opacity: .7 } .chart .bar.now { fill: var(--lv2) }
.chart .mark { stroke: var(--lv2); stroke-width: 1.5; stroke-dasharray: 3 2 }
.chart .line { fill: none; stroke: var(--flood); stroke-width: 2 }
.chart .thr1 { stroke: var(--lv1); stroke-dasharray: 4 3 } .chart .thr2 { stroke: var(--lv3); stroke-dasharray: 4 3 }
.chart .band { fill: var(--brand-cyan); opacity: .18 }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; font-size: .85rem; margin: .4rem 0 }
.kv dt { color: var(--muted) } .kv dd { margin: 0 }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: .1rem .45rem; border-radius: 3px }
.beta { color: var(--lv2) }
.steps { margin: .4rem 0; padding-left: 1.2rem; font-size: .9rem }
.check { display: flex; gap: .4rem; align-items: center; font-size: .9rem }
table.trk-t { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: .5rem }
table.trk-t th, table.trk-t td { text-align: left; padding: .25rem .3rem; border-bottom: 1px solid var(--line) }
table.trk-t td.n { font-family: var(--f-mono); font-variant-numeric: tabular-nums }
.about h3 { font-size: 1.3rem; margin-top: 1rem }
.about ul { padding-left: 1.2rem }
.foot { padding: .9rem 16px 1.5rem; font-size: .78rem; color: var(--muted) }
.credits { font-size: .72rem }
.spin { display: inline-block; width: .8em; height: .8em; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -1px }
@keyframes spin { to { transform: rotate(360deg) } }

@media (max-width: 900px) {
  body { display: block; height: auto }
  main { display: block }
  .stage { height: 62vh; height: 62svh }
  aside { border-left: 0; overflow: visible }
  .summary { grid-template-columns: repeat(2, 1fr) }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important } }

/* Lite 3D (no WebGL): imagery + hillshade on a CSS perspective plane */
.lite3d { position: absolute; inset: 0; overflow: hidden; perspective: 900px; perspective-origin: 50% 0%; background: linear-gradient(180deg, #070b1f 0%, #142552 34%, #2b4479 44%, #0a0f2a 60%) }
.lite3d-plane { position: absolute; left: -30%; right: -30%; top: 10%; bottom: -35%; transform-origin: 50% 100%; transform: rotateX(var(--tilt, 40deg)); transition: transform .45s ease; background: #0a0f2a; box-shadow: 0 -40px 80px #0a0f2a inset }
.lite3d .lite-year { transition: opacity .9s ease }
.lite3d .lite-shade { mix-blend-mode: multiply; pointer-events: none }
.lite3d-zoom { position: absolute; right: 10px; top: 10px; z-index: 5; display: grid; gap: 4px }
.lite3d-zoom button { width: 36px; height: 36px; border: 1px solid #ffffff40; border-radius: 6px; background: #0b1024cc; color: #fff; font-size: 20px; line-height: 1; cursor: pointer }
@media (prefers-reduced-motion: reduce) { .lite3d-plane, .lite3d .lite-year { transition: none } }

/* Disaster simulation box */
.simbox { margin-top: .8rem; padding: .7rem .8rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line) }
.simbox h4 { margin: 0 0 .45rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.simbox .btnrow { margin: .2rem 0 .5rem }
.simbox .btn.sim { background: var(--lv2); border-color: var(--lv2); color: #fff }
.siminfo { font-size: .9rem; font-weight: 600; min-height: 1.4em; font-variant-numeric: tabular-nums }

/* Erosion lab widget */
.erosion { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line) }
.erosion canvas { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; image-rendering: pixelated; border-radius: 6px; border: 1px solid var(--line); background: var(--sunk) }
.legend-row { display: flex; gap: 1rem; font-size: .8rem; margin: .4rem 0 }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px }

/* What changed */
#impact { position: absolute; inset: 0; background: #0a0f2a; overflow: hidden; touch-action: manipulation }
#imCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair }
.im-title { position: absolute; left: 14px; top: 12px; z-index: 3; max-width: calc(100% - 28px); padding: .35rem .75rem; background: #0b1024d9; color: #f2f5fb; border-radius: 6px; pointer-events: none }
.im-title b { display: block; font: 700 clamp(1.3rem, 3.2vw, 2.1rem)/1.1 var(--f-display) }
.im-title span { font: 500 .8rem var(--f-mono); color: var(--brand-cyan) }
.im-badge { position: absolute; bottom: 14px; z-index: 3; padding: .2rem .6rem; background: #0b1024d9; color: #f2f5fb; font: 500 .85rem var(--f-mono); border-radius: 4px; pointer-events: none }
.im-badge b { font: 700 1rem var(--f-display); letter-spacing: .08em; margin-right: .4rem; color: var(--brand-cyan) }
.im-badge.a { left: 14px } .im-badge.b { right: 14px }
.im-wipe { position: absolute; top: 0; bottom: 0; z-index: 4; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px #0009; cursor: ew-resize; touch-action: none }
.im-wipe::before { content: ''; position: absolute; inset: 0 -14px }
.im-wipe i { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: #0b1024; display: grid; place-items: center; font: 700 1.1rem var(--f-body); font-style: normal; box-shadow: 0 2px 10px #0008 }
.im-stat { position: absolute; right: 14px; top: 12px; z-index: 5; max-width: min(320px, 60%); padding: .55rem .9rem .65rem; background: #0b1024e6; color: #f2f5fb; border-left: 4px solid #ff5a5f; border-radius: 6px; pointer-events: none; animation: imIn .4s ease-out }
.im-stat .big { font: 700 clamp(2.4rem, 7vw, 4rem)/1 var(--f-display); color: #ff5a5f }
.im-stat .big small { font-size: .45em; color: #f2f5fb }
.im-stat p { margin: .15rem 0 0; font-size: .95rem; line-height: 1.3 }
.im-stat .sub { font-size: .78rem; color: #b9c6e4 }
.im-msg { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: #c9d5ef; font: 500 1rem var(--f-body); text-align: center; padding: 1rem }
@keyframes imIn { from { opacity: 0; transform: translateY(-6px) } }
.im-list { display: grid; gap: 6px; margin: .8rem 0 }
.im-list button { text-align: left; padding: .55rem .7rem; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; cursor: pointer; color: var(--fg) }
.im-list button b { display: block; font-size: .95rem }
.im-list button small { color: var(--muted); font-size: .78rem }
.im-list button[aria-pressed=true] { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand) }
.im-tap { font-weight: 600; color: var(--brand) }
.im-res { font: 600 1rem var(--f-body); padding: .45rem .6rem; background: var(--brand-soft); border-radius: 6px }
@media (max-width: 640px) { .im-stat { top: auto; bottom: 52px; right: 10px; max-width: calc(100% - 20px) } .im-title { left: 10px; top: 10px } }
.im-time { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; gap: 2px; align-items: flex-end; padding: 6px 10px 8px; background: linear-gradient(transparent, #0b1024ee 40%); overflow-x: auto }
.im-time:empty { display: none }
.im-time button { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; min-height: 52px; padding: 2px; border: 0; background: none; color: #c9d5ef; cursor: pointer; font: 600 .78rem var(--f-mono); border-radius: 4px }
.im-time button i { width: 70%; max-width: 26px; background: #ff5a5f; border-radius: 2px 2px 0 0; transition: height .4s }
.im-time button[aria-pressed=true] { background: #ffffff1f; color: #fff }
.im-time button[aria-pressed=true] span { color: var(--brand-cyan) }
.im-time button.base span { color: #ffd23f }
.im-time .play { flex: 0 0 46px; font-size: 1.1rem; color: #0b1024; background: #fff; border-radius: 50%; min-height: 46px; align-self: center; justify-content: center }
.im-badge { bottom: 76px }
#impact:has(.im-time:empty) .im-badge { bottom: 14px }
.im-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: .6rem 0 }
.im-ctl select { max-width: 100%; width: 100% }
#imDrawPic[aria-pressed=true] { background: #ffd23f; border-color: #ffd23f; color: #0b1024 }
.im-list h3 { margin: .7rem 0 .1rem; font: 700 .72rem var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted) }
.im-mapwrap { position: absolute; inset: 0; z-index: 8; background: #0a0f2a }
#imMap { position: absolute; inset: 0 }
.im-mapwrap.drawing #imMap { cursor: crosshair; touch-action: none }
.im-mapbar { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 1000; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: .5rem .7rem; background: #0b1024e6; color: #f2f5fb; border-radius: 6px; font-size: .9rem }
.im-mapbar span { flex: 1 1 200px }
.im-mapwrap.drawing #imMapGo { display: none }
@media (max-width: 640px) { .im-stat { bottom: 120px } .im-time button { flex-basis: 38px; font-size: .7rem } }
.lock { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 360px }
.lock p { flex-basis: 100%; margin: 0 }
.lock input { flex: 1; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--fg) }
.im-time button.pre { opacity: .55 }
.im-list h4 { margin: .45rem 0 0; font: 600 .78rem var(--f-body); color: var(--brand) }

.kinds { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .3rem !important; font-size: .78rem }
.k i, i.k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px }
.k.lost i, i.k.lost { background: #eb1e28 } .k.built i, i.k.built { background: #ff9614 } .k.green i, i.k.green { background: #28d25a }
.im-report { margin: .6rem 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface) }
.im-report:empty { display: none }
.im-report h3 { margin: 0 0 .3rem; font: 700 .85rem var(--f-body) }
.im-report ul { margin: 0 0 .4rem; padding-left: 0; list-style: none; font-size: .9rem }
.im-report li { margin: .15rem 0 }
.k.water i, i.k.water { background: #1eaaff }

/* ATGEO Assets */
.as-ix { font: 700 1.1rem var(--f-display); padding: .1rem .5rem; border-radius: 6px; color: #fff; background: var(--lv0) }
.as-ix.watch { background: var(--lv1) } .as-ix.elevated { background: var(--lv2) } .as-ix.high { background: var(--lv3) }
.asset h3 { margin: .8rem 0 .2rem }
.as-card { margin: .7rem 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface) }
.as-card h4 { margin: 0 0 .35rem; font: 700 .85rem var(--f-body); letter-spacing: .03em; text-transform: uppercase; color: var(--muted) }
.as-card .big { font: 700 2.6rem/1 var(--f-display) } .as-card .big small { font-size: .4em; color: var(--muted) }
.as-card .big.watch { color: var(--lv1) } .as-card .big.elevated { color: var(--lv2) } .as-card .big.high { color: var(--lv3) } .as-card .big.low { color: var(--lv0) }
.as-card .pend { color: var(--muted); font-style: italic }
.as-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: .4rem }
.as-pics img { width: 100%; border-radius: 4px; display: block } .as-pics figure { margin: 0 } .as-pics figcaption { font: .72rem var(--f-mono); color: var(--muted); text-align: center }
.as-rep-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--brand); font-size: .85rem }
body.report header.top, body.report nav.tabs, body.report main { display: none }
body.report { background: #fff; color: #111a3a }
#assetReport { max-width: 190mm; margin: 0 auto; padding: 8mm 6mm; font-size: 10.5pt }
#assetReport .as-card { break-inside: avoid; background: #fff; border-color: #c9d5e1 }
#assetReport .btnrow { display: none }
@page { size: A4; margin: 12mm }
@media print { body.report { color: #000 } #assetReport { padding: 0; max-width: none } .as-card { page-break-inside: avoid } }
.foot .pro { padding: .5rem .7rem; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 4px }
.foot .pro a { color: var(--fg); text-decoration: none } .foot .pro a:hover { text-decoration: underline }
