/* Base reset (the prototype got this from the artifact host) */
html, body { margin: 0 }
img { max-width: 100% }
[hidden] { display: none !important }
/* Layout: one phone column of in-game style panels (brown title bar + dark slate body), game-style tab bar at the bottom.
   Single dark look on purpose: it mirrors Z Route's own UI. */
:root {
  color-scheme: dark;
  --bg: #161a22; --bg2: #1f2633;
  --panel: #2c2c34; --row: #33333c; --rowline: #3f3f49; --strip: #474752;
  --ink: #ece6d8; --muted: #a39f97; --title: #f6e7c4;
  --brown1: #8f6b40; --brown2: #5b3f24; --brownline: #a98352;
  --gold: #e8c15a; --green: #95e04f; --steel1: #8fb0cf; --steel2: #4f7398;
  --now1: #8a4f22; --now2: rgba(138,79,34,0);
  --blue: #2f5f9e; --red: #9e2f2f; --skip: #77737a;
  --c-construction: #c46a2c; --c-research: #3d7fc4; --c-fighter: #c43d3d; --c-hero: #8a5cc4; --c-training: #3b9a7f;
  --f-head: "Exo 2", "Titillium Web", system-ui, sans-serif;
  --f-body: "Titillium Web", system-ui, sans-serif;
}
* { box-sizing: border-box }
html { background: var(--bg) }
body { background: radial-gradient(120% 60% at 50% 0%, var(--bg2), var(--bg) 70%) fixed, var(--bg); color: var(--ink); font: 15px/1.45 var(--f-body); }
.app { max-width: 480px; margin: 0 auto; padding-inline: 16px; padding-block: 0 104px; }
button { font: inherit; color: inherit; cursor: pointer }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px }
.num { font-variant-numeric: tabular-nums; font-weight: 700 }

/* top bar: like the "ALLIANCE COMPETITION" strip */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; margin-inline: -16px; padding: 10px 16px;
  background: linear-gradient(#2a2118, #1d1812); border-bottom: 2px solid var(--brown2); display: flex; align-items: center; gap: 12px }
.brand { flex: 1; font: 800 20px/1 var(--f-head); letter-spacing: .03em; text-transform: uppercase; color: var(--title); text-shadow: 0 2px 0 #000 }
.clocks { display: flex; gap: 14px; font-size: 11px; color: var(--muted); text-align: right; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em }
.clocks b { display: block; color: var(--ink); font-size: 16px; letter-spacing: 0; font-variant-numeric: tabular-nums }
.iconbtn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--brownline); background: linear-gradient(var(--brown1), var(--brown2)); display: grid; place-items: center; color: var(--title) }
.iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2 }
.sim { margin-top: 10px; background: linear-gradient(90deg, var(--now1), #5a3418); border: 1px solid var(--brownline); border-radius: 6px; padding: 8px 12px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px }
.sim button { background: none; border: 1px solid var(--title); color: var(--title); border-radius: 6px; padding: 2px 10px; font-size: 12px }

/* in-game panel */
.panel { margin-top: 18px; background: var(--panel); border: 1px solid #4a3a2a; border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.45); overflow: hidden }
.ph { background: linear-gradient(100deg, var(--brown1) 0%, #7a5733 40%, var(--brown2) 100%); border-bottom: 2px solid #3a2a1a; padding: 9px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px }
.ph h2 { margin: 0; font: 800 20px/1.1 var(--f-head); color: var(--title); text-shadow: 0 2px 0 rgba(0,0,0,.6) }
.ph span { font-size: 12px; color: #e9d7b0; font-weight: 600; white-space: nowrap }
.pb { padding: 14px }

/* level badge */
.lvl { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; border-radius: 3px; white-space: nowrap; border: 1px solid currentColor }
.lvl.full { color: var(--green); background: rgba(149,224,79,.1) }
.lvl.chests { color: var(--gold); background: rgba(232,193,90,.1) }
.lvl.skip { color: var(--skip); background: rgba(255,255,255,.03) }

/* category tile */
.cat { width: 42px; height: 42px; flex: none; border-radius: 6px; display: grid; place-items: center; font: 800 15px var(--f-head); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.5);
  background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 100%, #fff 18%), color-mix(in srgb, var(--cc) 75%, #000)); border: 1px solid rgba(255,255,255,.18) }
.cat.sm { width: 32px; height: 32px; font-size: 12px }
/* tile opens the MR missions popup (when turned on in Settings) */
button.cat { position: relative; padding: 0; cursor: pointer }
/* stage shield opens the VS points popup */
.shbtn { position: relative; flex: none; padding: 0; border: 0; background: none; display: block; cursor: pointer }
[data-cat=construction] { --cc: var(--c-construction) } [data-cat=research] { --cc: var(--c-research) }
[data-cat=fighter] { --cc: var(--c-fighter) } [data-cat=hero] { --cc: var(--c-hero) } [data-cat=training] { --cc: var(--c-training) }

/* shield badge like the stage I–VI icons */
.shield { width: 44px; height: 50px; flex: none; display: grid; place-items: center; padding-bottom: 6px; font: 800 17px var(--f-head); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.6);
  background: linear-gradient(var(--steel1), var(--steel2)); clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%) }
.shield.sm { width: 34px; height: 39px; font-size: 13px; padding-bottom: 5px }
.shield.rest { background: linear-gradient(#77737a, #4a474e) }

/* NOW: MR slot */
.slot { display: flex; gap: 12px; align-items: center }
.slot .cat { width: 54px; height: 54px; font-size: 20px }
.grow { flex: 1; min-width: 0 }
.slot small { display: block; color: var(--muted); font-size: 13px }
.slot h3 { margin: 0; font: 800 23px/1.1 var(--f-head) }
.verdict { margin: 12px 0 0; font-weight: 600 }
.verdict.full { color: var(--green) } .verdict.chests { color: var(--gold) } .verdict.skip { color: var(--muted) }
.timebar { margin-top: 14px; display: grid; gap: 6px }
.timebar .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted) }
.timebar .row b { color: var(--ink); font-size: 15px }
.bar { height: 10px; border-radius: 2px; background: #1c1c22; border: 1px solid #4a4a55; overflow: hidden }
.bar i { display: block; height: 100%; background: linear-gradient(#f2d77a, #c99a2e) }
.rows { border-top: 1px solid var(--rowline) }
.rowi { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rowline); font-size: 14px }
.rowi:last-child { border-bottom: 0 }
.rowi small { display: block; color: var(--muted); font-size: 12px }

/* VS card */
.vs-head { display: flex; gap: 12px; align-items: center }
.vs-head h3 { margin: 0; font: 800 21px/1.1 var(--f-head) }
.vs-head small { color: var(--muted) }
.timer { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums }
.timer svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2 }
.resetrow { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px }
ul.do { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rowline) }
ul.do li { padding: 8px 0 8px 18px; border-bottom: 1px solid var(--rowline); position: relative; font-size: 14px }
ul.do li:last-child { border-bottom: 0 }
ul.do li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg) }
/* NOW: spend plan (wait for MR slot / anytime) */
.plan-h { margin: 18px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 700 13px var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--title) }
.plan-h small { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted) }
.plan-h + ul.do { margin-top: 0 }
.grp { margin-top: 8px; padding: 10px 12px 2px; background: var(--row); border: 1px solid var(--rowline); border-left: 3px solid var(--rowline); border-radius: 3px }
.grp.live { border-left-color: var(--green); background: linear-gradient(90deg, rgba(149,224,79,.08), var(--row) 60%) }
.grp-h { display: flex; gap: 10px; align-items: center }
.grp-h b { font-weight: 700 }
.slts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px }
.slts span, .slts em { font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); background: rgba(0,0,0,.25); border-radius: 2px; padding: 0 6px }
.slts span.now { color: #10200a; background: var(--green); font-weight: 700 }
.slts span.past { text-decoration: line-through; opacity: .6 }
.grp-note { margin: 8px 0 0; font-size: 12px; color: var(--gold) }
.grp ul.do { margin-top: 8px }

/* START SAVING */
.save { border-bottom: 1px solid var(--rowline) }
.save:last-child { border-bottom: 0 }
.save-h { display: flex; gap: 10px; align-items: center; padding: 12px 14px 6px }
.save-h b { font: 800 16px/1.1 var(--f-head) }
.save-h small { display: block; color: var(--muted); font-size: 12px }
.when { font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; text-transform: uppercase; letter-spacing: .05em }
.when.soon { color: #1d1206; background: var(--gold); padding: 2px 7px; border-radius: 3px }
.items { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 14px 58px }
.items span { font-size: 13px; background: var(--row); border: 1px solid var(--rowline); border-radius: 3px; padding: 3px 8px }
.urgent { margin: 0 14px 14px 58px; padding: 8px 10px; background: rgba(232,193,90,.08); border-left: 3px solid var(--gold); font-size: 13px; display: grid; gap: 4px }
.urgent b { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .08em }

/* NEXT timeline (calendar style) */
.filter { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px }
.btn { border: 1px solid #a9c6e2; border-radius: 4px; padding: 9px; font: 700 14px var(--f-head); text-transform: uppercase; letter-spacing: .04em; color: #16263a;
  background: linear-gradient(#a9c6e2, #5f86ad); box-shadow: inset 0 1px 0 rgba(255,255,255,.4) }
.btn[aria-pressed=false] { background: linear-gradient(#5a5a66, #3a3a44); color: var(--muted); border-color: #5a5a66 }
.cal-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "tile t lvl" "tile nm nm" "d d d"; column-gap: 10px; row-gap: 2px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rowline) }
.cal-row:last-child { border-bottom: 0 }
.cal-row .cat { grid-area: tile; align-self: start }
.cal-row .t { grid-area: t; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; line-height: 1.2 }
.cal-row .t small { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: 11px }
.cal-row .lvl { grid-area: lvl; justify-self: end }
.cal-row .nm { grid-area: nm; font-weight: 600; line-height: 1.2 }
.cal-row .d { grid-area: d; margin: 4px 0 0; font-size: 12px; color: var(--muted) }
.cal-row.skip { opacity: .55 }
.cal-row.now { background: linear-gradient(90deg, var(--now1), var(--now2) 85%) }
.nowtag { font-size: 10px; font-weight: 700; color: #1d1206; background: var(--gold); border-radius: 2px; padding: 0 5px; margin-left: 6px; vertical-align: 2px }

/* WEEK (Details-table style) */
details.day { border-bottom: 1px solid var(--rowline) }
details.day:last-child { border-bottom: 0 }
details.day summary { list-style: none; padding: 10px 14px; display: grid; grid-template-columns: 44px 1fr 18px; gap: 12px; align-items: center; cursor: pointer }
details.day summary::-webkit-details-marker { display: none }
details.day.today summary { background: linear-gradient(#3f6d9e, #2f5884) }
details.day b.nm { display: block; font: 700 16px/1.15 var(--f-body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236,230,216,.4) }
details.day small { color: var(--muted); font-size: 12px }
details.day.today small { color: #d6e4f2 }
.chev { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; transition: transform .2s }
details[open] .chev { transform: rotate(180deg) }
.strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px }
.strip div { padding: 3px 0 2px; text-align: center; font: 800 11px var(--f-head); background: rgba(0,0,0,.25); border-bottom: 3px solid var(--lv); border-radius: 2px }
.strip div.full { --lv: var(--green) } .strip div.chests { --lv: var(--gold) } .strip div.skip { --lv: #55525a; opacity: .6 }
.strip div b { color: color-mix(in srgb, var(--cc) 70%, #fff) }
.strip div span { display: block; font: 400 9px var(--f-body); color: var(--muted) }
.d-body { padding: 4px 14px 16px; display: grid; gap: 14px; background: rgba(0,0,0,.18) }
.d-body h4 { margin: 10px 0 0; font: 700 13px var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--title) }
.d-body ul.do { margin-top: 6px }
.pts { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px }
.pts td { padding: 6px 0; border-bottom: 1px solid var(--rowline); vertical-align: top }
.pts td:last-child { text-align: right; padding-left: 10px; color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap }
.pts tr.grp { cursor: pointer }
.pts tr.grp small { color: var(--muted); font-weight: 400 }
.pts .tw { display: inline-block; width: 0; height: 0; margin-right: 7px; border: 5px solid transparent; border-left-color: var(--muted); border-right-width: 0; vertical-align: 0; transition: transform .15s }
.pts tr.grp.open .tw { transform: rotate(90deg) }
.pts tr.sub td:first-child { padding-left: 14px; color: var(--muted) }
.coin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b0, #e0b03a 55%, #9a6d12); vertical-align: -2px; margin-left: 4px }
ul.do li.mrw { color: var(--muted); font-size: 13px }
.mrw-h { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; margin-bottom: 2px }
.mrw-h .num { white-space: nowrap; flex: none }
.mrw-h .lvl { margin-left: auto; flex: none; padding: 3px 7px; font-size: 11px }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px }

/* bottom tabs: like Theme / Details / Raid */
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: linear-gradient(#2a2118, #17130e); border-top: 2px solid var(--brown2); padding-bottom: env(safe-area-inset-bottom, 0px) }
nav.tabs .in { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr) }
nav.tabs button { background: none; border: 0; border-right: 1px solid #3a2e22; padding: 12px 0; font: 800 17px var(--f-head); color: var(--title); opacity: .75 }
nav.tabs button:last-child { border-right: 0 }
nav.tabs button[aria-selected=true] { opacity: 1; background: linear-gradient(#b07a3c, #7a4f24); text-shadow: 0 2px 0 rgba(0,0,0,.5) }

/* settings sheet */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px }
.sheet { width: 100%; max-width: 440px; max-height: 90%; overflow-y: auto; margin: 0 }
.sheet .pb { display: grid; gap: 16px }
.xbtn { background: none; border: 0; color: var(--gold); font: 800 26px/1 var(--f-head); padding: 0 }
.field { display: grid; gap: 4px }
.field label { font-size: 12px; color: var(--title); font-weight: 600; text-transform: uppercase; letter-spacing: .06em }
.field .val { padding: 9px 12px; background: var(--row); border: 1px solid var(--rowline); border-radius: 3px; font-weight: 600 }
.field p { margin: 0; font-size: 12px; color: var(--muted) }
.field label.chk { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--row); border: 1px solid var(--rowline); border-radius: 3px; font-size: 14px; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; cursor: pointer }
.chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold) }
.btnrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px }
/* tip links + tip popup + tips list */
.tiplink { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: rgba(232,193,90,.6); white-space: nowrap }
.tiplink:hover { text-decoration-style: solid }
button.lvl { cursor: pointer }
.more { width: 100%; background: none; border: 0; border-top: 1px solid var(--rowline); padding: 10px 14px; color: var(--steel1); font-weight: 600; font-size: 13px; display: flex; justify-content: center; align-items: center; gap: 6px }
.more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5 }
.rowi.dim { opacity: .55 }
.tip-modal .pb { display: grid; gap: 12px }
.tip-modal h3 { margin: 0; font: 800 22px/1.15 var(--f-head); text-wrap: balance }
.tip-modal .badge { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em }
.tip-modal ol { margin: 0; padding-left: 22px; display: grid; gap: 8px }
.tip-modal ol li::marker { color: var(--gold); font-weight: 700 }
.tip-modal p { margin: 0 }
.backbtn { width: 100% }
.tipnav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.tiprow { width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; gap: 12px; align-items: center; padding: 11px 14px; background: none; border: 0; border-bottom: 1px solid var(--rowline); text-align: left }
.tiprow:last-child { border-bottom: 0 }
.tiprow .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--f-head); background: linear-gradient(#a9c6e2, #5f86ad); color: #16263a }
.tiprow b { font-weight: 600; display: block }
.tiprow small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tiprow .grow { min-width: 0 }
.tiprow svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2 }
.proto { font-size: 12px; color: var(--muted); text-align: center; margin-top: 28px }
@media (prefers-reduced-motion: reduce) { * { transition: none !important } }
/* settings: points buff inputs */
.buffs { display: grid; gap: 6px }
.buffs label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400 }
.buffs input { width: 72px; padding: 6px 8px; background: var(--row); border: 1px solid var(--rowline); border-radius: 3px; color: var(--ink); font: 600 14px var(--f-body); text-align: right }
.buffs input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px }
/* MR missions popup + calculator */
.mr-pts td { vertical-align: middle }
.mr-pts td small { display: block; color: var(--muted); font-size: 11px }
.popmode { margin-top: 0 }
.brk { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted) }
.brk select { padding: 6px 8px; background: var(--row); border: 1px solid var(--rowline); border-radius: 3px; color: var(--ink); font: 600 14px var(--f-body) }
.brk select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px }
.goals label.gin { padding: 0; display: block }
.gin input { width: 100%; padding: 6px 4px; border: 0; background: none; color: inherit; font: 700 13px var(--f-body); text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield }
.gin input::-webkit-outer-spin-button, .gin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.gin input::placeholder { color: #6d6a72; font-weight: 400 }
.gin input:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px }
.goals .gin { border: 1px dashed var(--rowline); border-bottom: 3px solid var(--chc) }
.popmode .btn { padding: 7px; font-size: 13px }
.pop-note { font-size: 12px; color: var(--muted) }
.tip-modal .pts { margin-top: 0 }
.mr-pts td:nth-child(2) { width: 100px; padding: 4px 0 4px 8px }
.mr-list td:nth-child(2) { width: auto; padding: 6px 0 6px 10px }
.mr-pts td:last-child { width: 64px; color: var(--gold) }
.mr-pts tr.hd td { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em }
.mr-pts tr.hd td:nth-child(2) { text-align: right }
.mr-pts tr.have td { color: var(--ink) }
.mr-pts td[colspan] { color: var(--ink); font-weight: 400; text-align: left; padding-left: 0 }
.mr-pts input { width: 100%; padding: 6px; background: var(--row); border: 1px solid var(--rowline); border-radius: 3px; color: var(--ink); font: 600 14px var(--f-body); text-align: right; -moz-appearance: textfield }
.mr-pts input::-webkit-outer-spin-button, .mr-pts input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.mr-pts input::placeholder { color: #6d6a72; font-weight: 400; font-size: 12px }
.mr-pts input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px }
.mr-pts input.bad { border-color: #d0533f; color: #ff9a8a }
.calc-res { display: grid; gap: 8px }
.calc-tot { display: flex; justify-content: space-between; align-items: baseline; font: 700 13px var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--title) }
.calc-tot b { font: 800 24px var(--f-head); letter-spacing: 0; color: var(--gold); font-variant-numeric: tabular-nums }
.gbar { position: relative; height: 12px; border-radius: 2px; background: #1c1c22; border: 1px solid #4a4a55; margin-bottom: 4px }
.gbar i { display: block; height: 100%; width: 0; background: linear-gradient(#f2d77a, #c99a2e); transition: width .2s }
.gbar .mk { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -2px; background: var(--chc); border-radius: 1px }
.tip-modal .plan-h { margin: 4px 0 0 }
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px }
.goals span { text-align: center; padding: 6px 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); background: rgba(0,0,0,.25); border-bottom: 3px solid var(--chc); border-radius: 3px }
.goals .got { color: #fff; background: color-mix(in srgb, var(--chc) 55%, transparent); text-shadow: 0 1px 0 rgba(0,0,0,.5) }
.goals span.got::before { content: "\2713  " }
.ch0 { --chc: #4caf50 } .ch1 { --chc: #3d7fc4 } .ch2 { --chc: #8a5cc4 } .ch3 { --chc: #e07a2c }
.calc-next { font-size: 13px; color: var(--muted) }
.clr { justify-self: start; background: none; border: 0; padding: 0; color: var(--steel1); font-size: 13px; font-weight: 600 }
.d-body h4 small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted) }
