:root {
  color-scheme: light;
  --ink: #1A1A1A; --muted: #55554F; --line: #D9D9D6; --hair: #ECECE9; --bg: #F2F2F0; --card: #FFFFFF; --soft: #F7F7F5;
  --accent: #FF4E00; --navy: #1F3A5F;
  --stop: #A4161A; --stop-ink: #FFFFFF; --cond: #F2C14E; --cond-ink: #1A1A1A; --cond-deep: #4A3A10; --go: #CFE8D8; --go-ink: #14532D;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
a { color: var(--navy); }
button { font-family: inherit; }
.wrap { min-height: 100vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
#app { max-width: 520px; margin: 0 auto; }
.top { background: var(--ink); color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 5; }
.top-in { max-width: 488px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.top .brand img { height: 30px; width: auto; display: block; }
.top .brand span { font-size: 16px; font-weight: 600; color: #E6E6E3; padding-left: 10px; border-left: 1px solid #55554F; letter-spacing: 0.02em; }
.top .who { font-size: 12px; color: #E6E6E3; border: 1px solid #8A8A85; border-radius: 4px; padding: 2px 8px; background: none; }
.pad { padding: 16px 16px 0; }
h1 { font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 700; line-height: 1.1; margin: 0; font-variant-numeric: lining-nums; }
.ptitle { font-size: 16px; font-weight: 600; margin-top: 6px; }
.titlerow { display: flex; align-items: center; gap: 8px; }
.mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mhead .small { white-space: nowrap; }
.kv { display: flex; justify-content: space-between; gap: 12px; }
.kv > span:first-child { color: var(--muted); }
.segline { font-size: 14px; }
.rtext { max-width: 55%; }
.nowrap { white-space: nowrap; }
.push { margin-left: auto; }
.barwrap { display: flex; flex-direction: column; gap: 4px; }
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.glance .g { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 9px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.glance .g.key { border: 2px solid var(--navy); padding: 9px 9px 8px; }
.glance .k { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.glance .g.key .k { color: var(--navy); }
.glance .v { font-size: 22px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.glance .v small { font-size: 13px; font-weight: 600; color: var(--muted); }
.glance .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: 13px; color: var(--muted); }
.section { padding: 20px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rows { padding: 4px 14px; gap: 0; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.row:last-child { border-bottom: none; }
.row > span:first-child { color: var(--muted); }
.row > span:last-child { text-align: right; }
.banner { margin: 12px 16px 0; border-radius: 10px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.banner .word { font-size: 26px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; }
.banner .why { font-size: 15px; margin-top: 4px; }
.STOP { background: var(--stop); color: var(--stop-ink); }
.CONDITIONAL { background: var(--cond); color: var(--cond-ink); }
.CONDITIONAL .meta { color: var(--cond-deep); }
.GO { background: var(--go); color: var(--go-ink); }
.chip { font-size: 12px; font-weight: 700; border-radius: 4px; padding: 2px 8px; white-space: nowrap; letter-spacing: 0.02em; }
.chip.neutral { background: #E6E6E3; color: var(--ink); }
.quote { font-size: 14px; background: var(--soft); border-radius: 6px; padding: 10px 12px; }
.note { font-size: 13px; color: var(--muted); }
.small { font-size: 12px; color: var(--muted); }
.btn { min-height: 48px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid var(--ink); background: var(--card); color: var(--ink); padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.btn.soft { background: var(--soft); border-color: var(--line); justify-content: flex-start; font-weight: 600; }
.btn:disabled { opacity: 0.5; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.tel { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 600; text-decoration: none; }
.tel .num { margin-left: auto; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; text-align: center; }
.grid5 > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; background: var(--soft); border-radius: 8px; }
.grid5 > div.key { background: #fff; border: 2px solid var(--navy); padding: 6px 0; }
.grid5 .k { font-size: 12px; color: var(--muted); }
.grid5 .key .k { color: var(--navy); font-weight: 600; }
.grid5 .v { font-size: 18px; font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 48px; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; background: var(--navy); border-radius: 2px 2px 0 0; min-height: 0; }
.bars div.p1 { background: #5B7398; }
.bars div.gap { background: repeating-linear-gradient(45deg, #D9D9D6 0 3px, transparent 3px 6px); height: 100% !important; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.levels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.levels button { min-height: 44px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.levels button.on { background: var(--ink); color: #fff; }
.seg { display: flex; flex-direction: column; gap: 6px; }
.seg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tabs { display: flex; gap: 6px; background: #E6E6E3; padding: 4px; border-radius: 10px; }
.tabs button { flex: 1; min-height: 36px; border: none; border-radius: 8px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink); }
.tabs button.on { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.day { display: grid; grid-template-columns: 64px 1fr auto; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--hair); align-items: center; }
.day:last-child { border-bottom: none; }
.day .d { font-weight: 700; }
.day .x { font-size: 13px; color: var(--muted); grid-column: 2 / 4; }
.hours { display: grid; grid-template-columns: 56px 1fr 1fr 1.3fr 0.8fr; font-size: 14px; row-gap: 4px; }
.hours .h { font-size: 12px; color: var(--muted); }
.offline { margin: 12px 16px 0; background: #FFF4D6; border: 1px solid var(--cond); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.err { margin: 12px 16px 0; background: #FBE9E9; border: 1px solid #E3B4B4; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.spinner { margin: 40px auto; width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.list a.proj { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.list { display: flex; flex-direction: column; gap: 8px; }
input.coords { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink); }
.footer { padding: 24px 16px 8px; font-size: 12px; color: var(--muted); }
details summary { cursor: pointer; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 10; }

/* ---- v0.3 data styling ---- */
.ico { flex: none; color: var(--muted); }
.glance .k { display: flex; align-items: center; gap: 4px; white-space: nowrap; letter-spacing: 0; overflow: hidden; }
.glance .g.key .k .ico { color: var(--navy); }
.glance .v { font-variant-numeric: normal; letter-spacing: -0.01em; }
.glance .v .sl { color: var(--muted); font-weight: 400; margin: 0 3px; }
.glance .s { display: flex; align-items: center; gap: 3px; }
.warrow { flex: none; vertical-align: -1px; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; font-weight: 600; }
.stats span { display: inline-flex; align-items: center; gap: 4px; }
.hpanel { display: flex; flex-direction: column; gap: 6px; }
.hchart { display: block; overflow: visible; touch-action: pan-y; }
.hchart .tline { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hchart .tarea { fill: var(--navy); opacity: 0.08; }
.hchart .tdot { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.hchart .tlab { font: 600 12px 'Source Sans 3', system-ui, sans-serif; fill: var(--ink); }
.hchart .tlab.small { font-size: 11px; }
.hchart .hx { font: 11px 'Source Sans 3', system-ui, sans-serif; fill: var(--muted); }
.hchart .hv { font: 600 11px 'Source Sans 3', system-ui, sans-serif; fill: var(--ink); }
.hchart .hnone { font-weight: 400; letter-spacing: 0; }
.hchart .hcap { font: 600 11px 'Source Sans 3', system-ui, sans-serif; fill: var(--muted); letter-spacing: 0.02em; }
.hchart .hgrid { stroke: var(--hair); stroke-width: 1; }
.hchart .pbar { fill: #4F6E99; }
.hchart .warr { fill: var(--ink); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.hchart .hhit { fill: transparent; cursor: pointer; }
.hchart .hsel { fill: var(--soft); }
.hdetail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; padding: 8px 10px; background: var(--soft); border-radius: 8px; min-height: 36px; }
.hdetail span { display: inline-flex; align-items: center; gap: 4px; }
.olist { display: flex; flex-direction: column; }
.orow { display: grid; grid-template-columns: 54px 22px 46px 30px 1fr 34px; align-items: center; column-gap: 8px; row-gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.orow:last-child { border-bottom: none; }
.orow .od { font-weight: 700; white-space: nowrap; }
.sky, .sky-wrap { display: inline-flex; color: var(--ink); }
.sky.sun { color: var(--accent); }
.orow .op { font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.orow .op.wet { color: var(--navy); }
.orow .op .ico { color: inherit; }
.orow .olo { text-align: right; color: var(--muted); font-weight: 600; }
.orow .ohi { font-weight: 700; text-align: right; }
.orange { position: relative; height: 6px; border-radius: 3px; background: var(--hair); }
.orange span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--navy); }
.orow .onote { grid-column: 2 / -1; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bars { height: 52px; gap: 2px; }
.bars div { border-radius: 3px 3px 0 0; background: var(--navy); }
.grid5 > div.wet { background: #E8EDF4; }
.grid5 > div[style] .k { color: inherit; opacity: 0.85; }

/* ---- v0.4 project list and scope ---- */
.rgroup + .rgroup { margin-top: 14px; }
.rname { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 2px 6px; }
details.scope { margin-top: 6px; font-size: 13px; }
details.scope summary { font-weight: 600; color: var(--muted); font-size: 12px; }
details.scope .ids { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 2px 0 6px; }
details.scope .ids span { white-space: nowrap; }

/* ---- v0.5 project editor ---- */
.wrap.wide #app { max-width: 760px; }
.wrap.wide .top-in { max-width: 728px; }
.editor .fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.editor .fld > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.editor .fld small { font-size: 12px; color: var(--muted); }
.editor input:not([type="radio"]), .editor select, .editor textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.editor textarea { min-height: 0; line-height: 1.4; resize: vertical; }
.editor textarea[name="locs"], .editor textarea[name="segs"], .editor textarea[name="sids"] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.editor input:focus, .editor select:focus, .editor textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.boxed { border-left: 3px solid var(--navy); }
.boxhead { display: flex; gap: 10px; align-items: center; }
.boxhead select { font-weight: 700; flex: 1; }
.linkbtn { background: none; border: none; color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 0; cursor: pointer; text-align: left; }
.linkbtn.danger { color: var(--stop); margin-top: 6px; }
.addbox { display: flex; gap: 10px; }
.addbox select { flex: 1; }
.seg-mode { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.seg-mode label { display: flex; gap: 8px; align-items: center; }
.scoperow { border-top: 1px solid var(--hair); padding-top: 8px; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.err ul { margin: 6px 0 0; padding-left: 18px; }
.chip.plain { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.boxdef .rtext-l { font-size: 14px; line-height: 1.45; }
.libtext { font-size: 13px; line-height: 1.45; padding: 8px 0; border-top: 1px solid var(--hair); }
.savebar { padding-bottom: 8px; }
.lockcard { border-color: var(--cond); background: #FFF8E6; }
.lockcard .btn { align-self: flex-start; min-height: 40px; }
.audit { padding: 8px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.audit:last-child { border-bottom: none; }

/* ---- v0.7 data color ---- */
/* meters: track, filled span or dot, and an ink tick for a limit */
.mtr { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--hair); margin: 6px 0 3px; }
.mtr.none { visibility: hidden; }
.mtr .mf { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.mtr .md { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.mtr .mt { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; box-shadow: 0 0 0 1.5px #fff; }
.mkey { display: flex; align-items: center; gap: 6px; }
.mkey .tk { width: 2px; height: 12px; background: var(--ink); border-radius: 1px; flex: none; }
/* hourly chart */
.hchart .tline { stroke-width: 2.5; }
.hchart .tarea { opacity: 0.14; }
.hchart .tdot { stroke: #fff; stroke-width: 2; }
.hchart .thr { stroke-width: 1.25; stroke-dasharray: 4 3; opacity: 0.9; }
.hchart .thl { font: 600 10.5px 'Source Sans 3', system-ui, sans-serif; fill: var(--muted); }
.hchart .warr { stroke-width: 1; }
.hkey { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hkey > span { display: inline-flex; align-items: center; gap: 6px; }
.ks { display: inline-block; width: 26px; height: 6px; border-radius: 3px; }
.ks.tscale { background: linear-gradient(90deg, #3987e5, #86b6ef, #b4b2aa, #f0a04b, #eb6834, #d03b3b); }
.ks.wscale { background: linear-gradient(90deg, #a99ff0, #6250d6, #362a85); }
.kd { display: inline-block; width: 18px; height: 0; border-top-width: 2px; border-top-style: dashed; }
/* observed rain bars */
.bars div.p1 { opacity: 0.6; }
/* 7-day outlook */
.orow .op { border-radius: 4px; padding: 1px 3px; color: var(--ink); justify-self: start; }
.orow .op.wet { color: var(--ink); }
.orange { background: #EDEDEA; }
/* sky icons */
.sky .ico { color: inherit; }
.sky.sun { color: #E8912F; }
.sky.partly, .sky.cloud { color: #8A8F98; }
.sky.rain { color: #3987e5; }
.sky.snow { color: #6da7ec; }
.sky.bolt { color: #C98500; }
.sky.haze { color: #9C8E74; }
.sky.wind { color: #8678e6; }
/* alerts, fires, AQI */
.alerts { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.al { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.alert { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.alert .ico { color: inherit; }
.alert.warn { background: #B4441A; color: #fff; }
.alert.watch { background: #FDE4C4; color: #7A3A06; box-shadow: inset 0 0 0 1px #F0B77A; }
.alert.adv { background: #FFF3C4; color: #6B5300; box-shadow: inset 0 0 0 1px #ECD27A; }
.alert.stmt { background: #ECECE9; color: var(--ink); }
.fire { display: inline-flex; align-items: center; gap: 4px; }
.aqi { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.aqi > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.aqi i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22); }
/* PAL scale */
.palstrip { display: inline-flex; gap: 2px; vertical-align: middle; }
.palstrip span { min-width: 21px; height: 20px; padding: 0 3px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: #EFEFEC; color: #9A9A94; border-radius: 3px; }
.palstrip span.on { min-width: 24px; }
.palworst { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* heat */
.hchip { font-size: 13px; font-weight: 700; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.hchip.h80 { background: #FCE3C4; color: #7A3A06; }
.hchip.h95 { background: #F8D3CB; color: #7F1D1D; }
.row .ico { vertical-align: -2px; }
/* daylight bar */
.dline { padding: 12px 0 4px; border-bottom: 1px solid var(--hair); }
.dbar { position: relative; height: 14px; border-radius: 7px; }
.dtick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #B87A2E; border-radius: 1px; }
.dnow { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 0 1.5px #fff; }
.dlabels { position: relative; height: 22px; font-size: 12px; color: var(--muted); }
.dlabels span { position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap; }
.dlabels span.mid { color: var(--ink); font-weight: 600; }

/* ---- v0.8 alerts ---- */
.top-in { gap: 10px; }
.bell { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; color: #E6E6E3; border-radius: 6px; margin-left: auto; }
.bell.on { background: rgba(255, 255, 255, 0.12); color: #fff; }
.checks { gap: 6px; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.chk input:disabled + * , .chk input:disabled { opacity: 0.6; }
.chkgroup { border-top: 1px solid var(--hair); padding-top: 8px; margin-top: 2px; }
.chkgroup .rname { margin: 0 0 2px; }
.chkgrid { display: grid; grid-template-columns: minmax(0, 1fr); }
.devrow { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #B9B9B4; flex: none; }
.dot.on { background: #2F9E5B; box-shadow: 0 0 0 3px #D7EFE0; }
.devon { border-color: #A9D8BB; }
.arow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.arow:last-child { border-bottom: none; }
.arow > .alert, .arow > .fire { flex: none; margin-top: 1px; }
.arow .alert { padding: 3px 5px; }
@container (min-width: 520px) { .chkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; } }

/* ---- v0.9 my projects ---- */
.mystar { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px 5px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mystar .ico { color: var(--muted); }
.mystar.on { background: #FFF4DE; border-color: #EBC57A; }
.mystar.on .ico { color: #D98E1A; fill: #E8A33D; }
.labrow { display: flex; justify-content: space-between; align-items: baseline; }
.labrow a { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.mypick .btn { align-self: flex-start; min-height: 42px; }
.mylist { margin: -2px 0 6px 30px; }
.mychecks .chk .small { font-weight: 400; }

/* ---- v0.6 wide screens ---- */
/* Phones keep the single column. Sections carry --o, their phone order; on wide screens they sit in two columns. */
.d-only, .dnav, .pwhy, .bmeta { display: none; }
.cols { display: flex; flex-direction: column; }
.cmain, .cside { display: contents; }
.cols .section { order: var(--o, 0); }
.cardtitle { padding-top: 14px; }
.seggrid { display: grid; gap: 10px; }
.hsvg { min-height: 160px; }
.hsvg svg { display: block; }

@media (min-width: 760px) {
  .m-only { display: none !important; }
  .d-only { display: revert; }
  div.d-only, span.tally.d-only { display: flex; }
  body { font-size: 15px; }
  .top { padding: 0 32px; }
  .top-in, .wrap.wide .top-in { max-width: 1176px; height: 58px; }
  .top .brand img { height: 28px; }
  .dnav:not([hidden]) { display: flex; align-self: stretch; gap: 2px; margin: 0 auto 0 32px; }
  .bell { display: none !important; }
  .dnav a { display: flex; align-items: center; padding: 0 14px; color: #C9C9C4; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.01em; border-bottom: 3px solid transparent; margin-bottom: -3px; }
  .dnav a:hover { color: #fff; }
  .dnav a.on { color: #fff; border-bottom-color: #fff; }
  .top .who { font-size: 13px; padding: 4px 12px; cursor: pointer; }
  .top .who:hover { border-color: #E6E6E3; }

  #app, .wrap.wide #app { max-width: 1240px; padding: 0 32px; container-type: inline-size; }
  .pad, .section, .footer { padding-left: 0; padding-right: 0; }
  .banner, .offline, .err { margin-left: 0; margin-right: 0; }
  .section { padding-top: 24px; }
  h1 { font-size: 34px; }
  .pad:first-child, .cardhead { padding-top: 28px; }
  .pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
  .tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .tools .btn, .tools .btn-row .btn { min-height: 40px; flex: none; padding: 0 16px; font-size: 14px; }
  .tools .btn-row { gap: 10px; }
  a:hover { text-decoration-thickness: 2px; }
  .btn:not(:disabled):hover { border-color: var(--navy); }
  .btn.dark:not(:disabled):hover { background: #33332F; }

  /* home */
  .tally { gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
  .tcount { display: inline-flex; align-items: center; gap: 6px; }
  .tcount b { font-size: 16px; }
  .hometools { gap: 10px; align-items: center; }
  .dcoords { display: flex; gap: 0; }
  .dcoords input.coords { width: 300px; min-height: 42px; border-radius: 10px 0 0 10px; font-size: 15px; }
  .dcoords .btn { min-height: 42px; border-radius: 0 10px 10px 0; border-color: var(--line); border-left: none; }
  .hometools > .btn { min-height: 42px; }
  .rgroup + .rgroup { margin-top: 22px; }
  .rname { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
  .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .list a.proj { align-items: flex-start; min-height: 0; padding: 12px 14px 12px 16px; border-left: 4px solid var(--line); transition: box-shadow .12s; }
  .list a.proj:hover { box-shadow: 0 2px 10px rgba(26, 26, 26, 0.08); border-top-color: #C6C6C2; border-right-color: #C6C6C2; border-bottom-color: #C6C6C2; }
  .list a.proj.st-STOP { border-left-color: var(--stop); }
  .list a.proj.st-CONDITIONAL { border-left-color: var(--cond); }
  .list a.proj.st-GO { border-left-color: #6FA886; }
  .list a.proj { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "sub sub" "chip why"; column-gap: 8px; row-gap: 2px; align-items: center; }
  .list a.proj .pmain { display: contents; }
  .list a.proj .pmain br { display: none; }
  .list a.proj b { grid-area: name; font-size: 16px; }
  .list a.proj .psub { grid-area: sub; }
  .list a.proj .chip { grid-area: chip; margin-top: 8px; justify-self: start; }
  .list a.proj .pedit { display: none; }
  .pwhy { display: block; grid-area: why; margin-top: 8px; font-size: 13px; color: var(--ink); line-height: 1.3; }
  .homelist.nolabel > .label { display: none; }
  .mysave .btn-row { justify-content: flex-start; }
  .mysave .btn-row .btn { flex: none; min-width: 140px; }
  .homelist > .label { margin-bottom: 2px; }

  /* project card and location */
  .cardhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
  .cardhead .pad { padding-top: 0; }
  .cardtop { order: 2; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
  .cardtop .tabs { width: 260px; }
  .cardtitle { order: 1; flex: 1 1 360px; min-width: 0; }
  .ptitle { font-size: 17px; }
  .banner { margin-top: 18px; padding: 18px 22px; align-items: center; gap: 16px; }
  .banner .word { font-size: 28px; }
  .banner .why { font-size: 16px; }
  .banner .bmeta { display: block; margin-left: auto; text-align: right; font-size: 13px; line-height: 1.5; opacity: 0.85; white-space: nowrap; }
  .nearby { display: flex; flex-direction: column; }
  .nearby .btn { min-height: 44px; }
  .footer { padding-top: 28px; }
  .hchart .hhit { cursor: crosshair; }

  /* admin */
  .boxgrid .section { padding-top: 16px; }
  .card > .btn:not(.block) { align-self: flex-start; min-width: 200px; }
  .card > .btn-row { justify-content: flex-start; }
  .card > .btn-row .btn { flex: none; min-width: 140px; }
  .lockcard { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
  .lockcard .btn { margin-left: auto; }
  .lockcard .small { flex-basis: 100%; order: 2; }
  .lockcard .btn { order: 1; }
  .editor .savebar { position: sticky; bottom: 0; z-index: 4; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; padding: 14px 0 16px; margin-top: 8px; background: linear-gradient(to bottom, rgba(242, 242, 240, 0), var(--bg) 22%); }
  .editor .savebar .btn { flex: none; min-width: 140px; min-height: 44px; }
  .editor .savebar .linkbtn.danger { margin-top: 0; }
}

/* container widths: the main column, or the whole page below the two-column breakpoint */
@container (min-width: 660px) {
  .glance { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .seggrid.multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orow { grid-template-columns: 64px 24px 44px 34px minmax(120px, 220px) 34px minmax(0, 1fr); }
  .orow .onote { grid-column: auto; padding-left: 14px; }
  .boxgrid { columns: 2; column-gap: 24px; }
  .boxgrid .section { break-inside: avoid; }
}

@media (min-width: 980px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 32px; align-items: start; }
  .cmain, .cside { display: flex; flex-direction: column; min-width: 0; }
  .cmain { container-type: inline-size; }
  .cside .section .label { font-size: 11px; }
  .edcols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .edcols .cside { container-type: inline-size; }
}
@media (min-width: 1280px) {
  .cols { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; }
  .edcols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
