/* Compare, checklist, footer, the budgets page and the settings menu. */
/* Compare */
.compare{flex:1;min-height:0;display:flex;flex-direction:column}
.compare .card{flex:1}
table{border-collapse:collapse;width:100%;min-width:35rem;font-variant-numeric:tabular-nums}
th,td{padding:.625rem .875rem;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
th:first-child,td:first-child{text-align:left;color:var(--ink-2)}
thead th{font-family:var(--display);font-weight:500;font-size:1rem;color:var(--ink)}
thead th.active{color:var(--accent)}
tbody tr:last-child td{border-bottom:0}
tr.key td{font-weight:700}

/* Checklist */
.checklist{flex:1;min-height:0;display:flex;flex-direction:column;gap:.875rem}
.check-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.125rem;flex:none}
.check-head h2{font-family:var(--body);font-size:1.125rem;font-weight:600}
.progress{flex:1;min-width:7.5rem;max-width:26.25rem;height:.5rem;background:color-mix(in srgb,var(--ink) 8%,transparent);border-radius:.25rem;overflow:hidden}
.progress div{height:100%;background:var(--good)}
.check-head .spacer{flex:1}
.cgroups{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.cgroup .card-head{display:block}
.cgroup .card-head .hint{margin:2px 0 0}
.citem{display:grid;grid-template-columns:1.375rem minmax(0,1fr) 1.75rem;gap:.375rem;align-items:start;padding:.25rem 0;border-top:1px solid var(--line);border-radius:0}
.citem:first-child{border-top:0}
.citem:hover{background:color-mix(in srgb,var(--paper) 35%,transparent)}
.citem input[type="checkbox"]{width:1.0625rem;height:1.0625rem;accent-color:var(--accent);margin:.4375rem 0 0}
.citem .ctext{display:block;border:1px solid transparent;background:transparent;border-radius:.4375rem;padding:.25rem .4375rem;width:100%;min-width:0;resize:none;overflow:hidden;line-height:1.45;field-sizing:content}
.citem .ctext:hover,.citem .ctext:focus{border-color:var(--line);background:color-mix(in srgb,var(--paper) 60%,transparent)}
.citem.done .ctext{text-decoration:line-through;color:var(--muted)}
.addrow{margin-top:.625rem}

/* Footer and "About the estimates" panel */
.about{position:fixed;right:1.5rem;top:4.5rem;width:min(30rem,calc(100% - 2rem));max-height:calc(100dvh - 6rem);overflow:auto;background:color-mix(in srgb,var(--paper) 90%,transparent);backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur);border:1px solid var(--line);border-radius:1.25rem;padding:1rem 1.125rem;box-shadow:0 1rem 3rem color-mix(in srgb,var(--ink) 18%,transparent);z-index:20;font-size:.8125rem;color:var(--ink-2)}
.about .bh{display:flex;justify-content:space-between;align-items:center;margin-bottom:.375rem}
.about h3{font-family:var(--body);font-size:.9375rem;font-weight:600;color:var(--ink)}
.about p{margin:0 0 .5rem}
.about p:last-child{margin:0}
.about .credit{font-size:.75rem;color:var(--muted)}
.toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 3.5rem);transform:translateX(-50%);background:var(--ink);color:var(--on-ink);padding:.625rem 1rem;border-radius:.75rem;font-weight:600;font-size:.875rem;max-width:calc(100% - 2rem);z-index:30}

/* Budgets page: pick or create a budget beside the interactive globe */
.budgets-screen{flex:1;min-height:0;display:grid;grid-template-columns:minmax(22.5rem,35rem) minmax(0,1fr);gap:1.5rem}
.budget-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.budget-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;text-align:left;padding:.75rem 1rem;border:1px solid var(--line);border-radius:1rem;background:color-mix(in srgb,var(--paper) 55%,transparent);color:var(--ink);cursor:pointer}
.budget-item:hover{background:color-mix(in srgb,var(--paper) 90%,transparent);border-color:color-mix(in srgb,var(--ink) 28%,transparent)}
.budget-item.current{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.bi-main,.bi-fig{display:flex;flex-direction:column;gap:2px;min-width:0}
.bi-fig{align-items:flex-end;flex:none}
.bi-name{font-weight:600;font-size:.9375rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.bi-meta{font-size:.75rem;color:var(--muted)}
.bi-meta.bi-unsaved{color:var(--bad)}
.limit-note{margin:.75rem 0 0}
.bi-fig .num{font-weight:600;font-size:.9375rem}
.badge{display:inline-flex;align-items:center;color:var(--accent);font-family:var(--mono);font-size:.6875rem;font-weight:600;letter-spacing:.02em;vertical-align:middle;white-space:nowrap}
.create .fields + .fields{margin-top:.75rem}
/* Five questions on one form, set a little closer than elsewhere so Create budget stays in view at 1440×900. */
.create > .choices,.create > .choice-row{margin-top:.625rem}
.create > .choices + .fields{margin-top:.625rem}
.create > .start-est{margin-top:.875rem}
.create .actions{margin-top:1rem;display:flex;gap:.625rem}
.create > .hint:last-child{margin-top:.875rem}
.opt-label{font-weight:400;color:var(--muted)}
.readonly-value{display:flex;align-items:center;border-color:transparent!important;background:transparent!important;padding-left:0;color:var(--ink);font-weight:600;cursor:default}
.inp[readonly]{background:color-mix(in srgb,var(--field) 50%,transparent);color:var(--ink-2);cursor:default}
.inp:disabled{opacity:.6}
.globe-stage{position:relative;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.125rem}
.globe-viewport{position:relative;width:min(100%,58vh);aspect-ratio:1;flex:none;isolation:isolate;overflow:hidden;border-radius:1.5rem}
.globe-canvas{position:relative;display:block;width:100%;height:100%;touch-action:pan-y pinch-zoom;cursor:grab;border-radius:inherit}
.globe-canvas:active{cursor:grabbing}
.globe-canvas:focus-visible{outline:2px solid var(--accent);outline-offset:.25rem}
.globe-pins{position:absolute;inset:0;pointer-events:none;overflow:hidden}
/* The marker is anchored by its point, so the element itself has no size: the drawing
   hangs above the spot rather than being centred on it. */
.globe-pin{position:absolute;left:0;top:0;width:0;height:0;padding:0;border:0;background:transparent;
  pointer-events:auto;cursor:pointer;color:var(--accent)}
.globe-pin[hidden]{display:none}
.globe-pin-mark{position:absolute;left:-.6875rem;bottom:-.125rem;width:1.375rem;height:1.95rem;
  filter:drop-shadow(0 .125rem .1875rem rgba(16,37,54,.35))}
.globe-pin-body{fill:currentColor;stroke:var(--ground);stroke-width:1.4}
.globe-pin-hole{fill:var(--ground)}
/* The one being looked at stands slightly taller and darker than the rest. */
.globe-pin.selected{color:var(--globe-pin);z-index:3}
.globe-pin.selected .globe-pin-mark{width:1.6875rem;height:2.4rem;left:-.84375rem}
.globe-pin-tooltip{position:absolute;left:50%;bottom:2.25rem;transform:translateX(-50%);width:max-content;
  max-width:12rem;padding:.4rem .65rem;border-radius:.5rem;background:var(--ink);color:var(--surface);
  font-size:.75rem;font-weight:500;line-height:1.4;opacity:0;visibility:hidden;pointer-events:none;
  box-shadow:0 .2rem .5rem #0002}
.globe-pin:hover,.globe-pin:focus-visible{z-index:5!important}
.globe-pin:hover .globe-pin-tooltip,.globe-pin:focus .globe-pin-tooltip{opacity:1;visibility:visible}
.globe-pin:focus-visible .globe-pin-body{stroke:var(--ink);stroke-width:2.2}
.globe-pin.draft{pointer-events:auto;cursor:default}
@media (prefers-reduced-motion:no-preference){
  .globe-pin-mark{transition:width .15s ease,height .15s ease}
  .globe-pin.reveal .globe-pin-mark{animation:globe-pin-in .3s ease-out both}
  .globe-pin-tooltip{transition:opacity .15s ease}
  @keyframes globe-pin-in{from{opacity:0;transform:translateY(-.25rem)}to{opacity:1;transform:none}}
}
}
.globe-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.375rem;max-width:100%}
.globe-controls button{min-width:2.75rem;min-height:2.75rem;padding:.375rem .75rem}
.globe-help,.globe-location-note{margin:0;text-align:center;font-size:.75rem;color:var(--muted)}
.globe-location-note{min-height:1.4em;max-width:28rem}
.globe-stage{gap:.625rem}
.globe-caption{margin:0;min-height:1.3em;font-family:var(--display);font-weight:500;font-size:1.375rem;color:var(--ink);text-align:center}
@media (min-width:900px) and (min-height:600px){
  .globe-stage{justify-content:flex-start;align-items:flex-start;padding-top:.75rem;isolation:isolate}
  .globe-viewport{position:absolute;inset:0 auto auto 0;width:calc(100% + 2rem);height:calc(100% + 4rem);aspect-ratio:auto;border-radius:0;z-index:-1}
  .globe-stage > p,.globe-controls{position:relative;z-index:1}
  .globe-caption,.globe-location-note,.globe-help{text-align:left}
  .globe-controls{justify-content:flex-start}
  #app.no-rail{overflow:clip}
}

/* Budget page header and settings menu */
.crumb{display:inline-flex;align-items:center;gap:.25rem;border:0;background:none;padding:0;margin:0 0 .25rem;color:var(--ink-2);font-weight:600;font-size:.7812rem;cursor:pointer}
.crumb .ui-icon{width:.9375rem;height:.9375rem}
.crumb:hover{color:var(--accent)}
.brand h1 .badge{margin-left:.25rem}
.view-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.625rem;flex:none}
.view-top .subtabs{margin-bottom:0}
.hunt-main{display:flex;flex-direction:column;min-height:0;min-width:0}
.hunt-main > .card{flex:1;min-height:0}
.dash,.compare,.checklist{min-height:0}
.menu-wrap{position:relative}
.menu-wrap > .btn .ui-icon:last-child{width:.875rem;height:.875rem}
.menu{position:absolute;right:0;top:calc(100% + .375rem);min-width:13.125rem;z-index:40;padding:.375rem;background:color-mix(in srgb,var(--paper) 96%,transparent);backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur);border:1px solid var(--line);border-radius:1rem;box-shadow:0 1rem 3rem color-mix(in srgb,var(--ink) 18%,transparent)}
.menu [role="menuitem"]{display:block;width:100%;text-align:left;border:0;background:none;padding:.5rem .75rem;border-radius:.625rem;font-weight:600;font-size:.875rem;color:var(--ink)}
.menu [role="menuitem"]:hover,.menu [role="menuitem"]:focus-visible{background:var(--surface-2)}
.menu .danger{color:var(--bad)}
/* The confirm window: smoked glass (chosen 2026-10-10). The page behind is dimmed and
   blurred, and the window is frosted glass with a fine edge lit along its top. The dimming
   is set per theme: mixing in --ink made a grey wash in dark mode, where --ink is near-white. */
.overlay{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:1.5rem;
  background:rgba(17,24,39,.18);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.dialog{width:min(26rem,100%);padding:1.25rem 1.375rem 1.125rem;gap:.5rem;
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.66));border:1px solid rgba(17,24,39,.1);
  box-shadow:inset 0 1px 0 #ffffff,0 1.5em 3em -1em rgba(17,24,39,.35);
  backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4)}
:root[data-theme=dark] .overlay{background:rgba(5,6,8,.4)}
:root[data-theme=dark] .dialog{background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.04));border-color:rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 1.5em 3em -1em rgba(0,0,0,.8)}
.dialog h2{font-size:1.0625rem;font-weight:600}
.dialog p{margin:.25rem 0 0;color:var(--ink-2);font-size:.875rem;line-height:1.5}
.dialog-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1rem}
.btn.danger-solid{background:var(--bad);border-color:var(--bad);color:var(--on-ink)}
.btn.danger-solid:hover{background:color-mix(in srgb,var(--bad) 85%,#000);border-color:color-mix(in srgb,var(--bad) 85%,#000);color:var(--on-ink)}
.start-est{margin-top:1rem;font-size:.8125rem;font-weight:600;color:var(--ink-2)}
.dash{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:1rem}
.dash .card-body{display:flex;flex-direction:column;gap:.75rem}
.dash .chartwrap{position:relative;flex:1;min-height:9rem}
.dash .stats{border-bottom:0;padding-bottom:0}
.chart-pair{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.donut-wrap{position:relative;flex:none;width:min(9.5rem,34%);min-width:6.5rem;aspect-ratio:1}
.donut{width:100%;height:100%;display:block}
.donut-centre{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.donut-centre strong{font-family:var(--display);font-weight:500;font-size:1.125rem;line-height:1.1}
.donut-centre span{font-size:.6875rem;color:var(--muted)}
.legend{flex:1;min-width:9rem;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.25rem;font-size:.8125rem}
.legend li{display:flex;align-items:center;gap:.5rem}
.legend .sw{width:.625rem;height:.625rem;border-radius:.1875rem;flex:none}
.legend .lg-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2)}
.legend .lg-val{font-weight:600}
.pane-grid{display:flex;flex-direction:column;gap:.875rem}
.choice-row{display:flex;flex-wrap:wrap;gap:.5rem 2rem}
.choice-row .choices{margin:0}
.group + .group{margin-top:.75rem;padding-top:.625rem;border-top:1px solid var(--line)}
.bh{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem 1rem;margin-bottom:.5rem}
.bh h3{font-family:var(--body);font-size:.9375rem;font-weight:600}
.bh .sub{color:var(--ink-2);font-size:.8125rem}
/* Same column tracks for every row in a card, so labels and inputs line up across sections. */
.fields.fixed{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:.625rem}
.fields.fixed .hint{margin-top:.125rem;font-size:.75rem;line-height:1.35}
/* A choice that sits in the grid with the fields (How long are you moving for?). */
.fields.fixed .field.wide{grid-column:span 2;display:block}
.fields.fixed .field.wide .choices{margin:0}
@container (min-width:34rem){.fields.fixed{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (min-width:44rem){.fields.fixed{grid-template-columns:repeat(4,minmax(0,1fr))}}
@supports (grid-template-rows:subgrid){
  .fields.fixed .field{display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:0;align-content:start}
  .fields.fixed .field > label{align-self:end}
}
.mrow.computed .calc-val{grid-column:span 2;text-align:right;font-weight:600;padding-right:.625rem}
.orow.computed .calc-val{text-align:right;font-weight:600;padding-right:.625rem}
.mortgage-line{margin:.875rem 0 0;padding:.625rem .875rem;border-radius:1rem;background:color-mix(in srgb,var(--ink) 4%,transparent);border:1px solid var(--line)}
thead th .badge{margin-left:.5rem;font-size:.625rem}

/* Signing in (optional: the app works fully without an account). */
.savebar .menu{right:0;left:auto;min-width:14rem}

/* Account: the header's single icon and its menu are js/account-ui.js + styles/account.css,
   shared with the landing page. */
