/* GDC ROI v2: home grid and the Capex Engine tools. One column edge for everything: min(1120px, 100% - 28px). */
@font-face { font-family: "GDC Display"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/cormorant/cormorant-garamond-latin-300-normal.woff2) format("woff2"); }
:root { --edge: min(1120px, calc(100% - 28px)); --gap: 12px; --ok: #646E67; --warn: #8A6A4C; }
@media (min-width: 700px) { :root { --gap: 16px; } }
@media (min-width: 1000px) { :root { --gap: 18px; } }

/* ---- home ---- */
.home { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.home-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: clamp(6px, 3vh, 30px) 24px clamp(22px, 4vh, 40px); }
.home-hero .title { font-size: clamp(28px, 6vw, 42px); max-width: 15em; margin-top: clamp(12px, 2.4vh, 22px); }
.home-main { width: var(--edge); margin: 0 auto; display: grid; gap: var(--gap); }
.home-main > .enter { min-width: 0; }

/* every stage is whole rows: a heading square, then its tools. 2 across on a phone, 4 from 700px. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: calc(var(--gap) * 1.5); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: flex-start; text-align: left; min-width: 0; overflow: hidden;
  padding: var(--tp); border-radius: var(--r-lg); color: var(--ink); cursor: pointer; --tp: 14px;
  transition: transform .5s var(--spring), box-shadow .5s var(--glide), background .4s; }
@media (min-width: 700px) { .tile { --tp: 16px; } }
@media (min-width: 1000px) { .tile { --tp: 22px; } }
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: scale(.97); }
.tile:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--ink), var(--lift); }
.tile-top { display: flex; align-items: flex-start; height: var(--ic); --ic: 36px; }
@media (min-width: 1000px) { .tile-top { --ic: 46px; } }
.tile-ic { width: var(--ic); height: var(--ic); border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--soft); box-shadow: inset 0 0 0 1px var(--field-line); }
.tile-ic svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-b { display: grid; gap: 5px; min-width: 0; margin-top: 14px; }
@media (min-width: 1000px) { .tile-b { margin-top: 20px; } }
.tile-n { font-size: clamp(15.5px, 1.9vw, 20px); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tile-l { font-size: clamp(12px, 1.25vw, 13.5px); line-height: 1.4; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-st { position: absolute; left: var(--tp); right: var(--tp); bottom: var(--tp); display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-st i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--faint); }
.st-ready i, .st-open i { background: var(--ok); } .st-ready, .st-open { color: var(--ink); }
.st-prog i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ok); }
.st-warn i { background: var(--warn); } .st-warn { color: var(--ink); }
.st-lock i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.tile.locked .tile-n, .tile.locked .tile-ic { opacity: .55; }
.tile.live { background: var(--dark); color: var(--dark-ink); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tile.live .tile-l, .tile.live .tile-st { color: var(--dark-mute); }
.tile.live .tile-ic { background: rgba(255,255,255,.08); color: var(--dark-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.tile.live .st-open i { background: var(--dark-ink); }

/* the heading square: editorial, quieter than a tool */
.head-cell { cursor: default; background: var(--pill); border: 1px solid var(--pill-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.head-cell:hover, .head-cell:active { transform: none; }
.hc-n { font-family: "GDC Display", var(--hotel); font-weight: 300; font-size: var(--ic, 36px); line-height: 1; height: 36px; letter-spacing: .02em; color: var(--ink); }
@media (min-width: 1000px) { .hc-n { font-size: 46px; height: 46px; } }
.hc-t { margin-top: 14px; font-size: clamp(15.5px, 1.9vw, 20px); font-weight: 300; line-height: 1.2; }
@media (min-width: 1000px) { .hc-t { margin-top: 20px; } }
.hc-s { margin-top: 5px; font-size: clamp(12px, 1.25vw, 13.5px); line-height: 1.4; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-p { position: absolute; left: var(--tp); right: var(--tp); bottom: var(--tp); font-size: 12px; line-height: 1; color: var(--mute); letter-spacing: .02em; }

/* the strip: which hotel, and where it stands */
.strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px var(--pad); border-radius: var(--r-lg); }
@media (min-width: 900px) { .strip { grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; } }
.strip-l { display: grid; gap: 3px; min-width: 0; }
.strip-k { font-size: 12px; color: var(--mute); letter-spacing: .02em; }
.strip-v { font-size: 17px; font-weight: 300; overflow: hidden; text-overflow: ellipsis; }
.strip .hotel-name, .s1-h .hotel-name { font-family: var(--hotel); font-weight: 500; text-transform: uppercase; letter-spacing: .07em; font-size: 18px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.strip-m, .strip-r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn { background: transparent; box-shadow: inset 0 0 0 1px var(--warn); }

/* ---- tool pages ---- */
.tool { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.tool-head { width: var(--edge); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(10px, 3vh, 30px) 0 clamp(20px, 3.5vh, 34px); }
.tool-head .title { font-size: clamp(30px, 6vw, 44px); }
.eyebrow { display: block; font-size: 12.5px; color: var(--mute); letter-spacing: .02em; }
.hotel-pill { font-family: var(--hotel); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; height: 32px; padding: 0 16px; background: var(--pill); border: 1px solid var(--pill-line); }
.tool-sub { max-width: 36em; }
.tool-main { width: var(--edge); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
@media (min-width: 960px) { .tool-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tool-main > .wide, .tool-main > .ret, .tool-main > .grid4, .tool-main > .empty, .tool-main > .add-row, .tool-main > .feature-r, .tool-main > .proj, .tool-main > .ph, .tool-main > .sheet-1, .tool-main > .row-btns, .tool-main > div[data-o="val"] { grid-column: 1 / -1; } }
.ret, div[data-o="val"] { display: grid; gap: var(--gap); min-width: 0; }
.tc { padding: var(--pad); min-width: 0; }
.tc-h { margin-bottom: 20px; }
.tc-h.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tc-h h2 { font-size: 22px; font-weight: 300; line-height: 1.25; letter-spacing: -.01em; margin-top: 3px; }
.mini { font-size: 12.5px; font-weight: 400; color: var(--mute); letter-spacing: .02em; margin: 22px 0 10px; display: flex; gap: 10px; align-items: baseline; }
.small-note { font-size: 13.5px; line-height: 1.5; margin: 0 0 16px; }
.dark-card { background: var(--dark); color: var(--dark-ink); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.dark-card .eyebrow, .dark-card .stat-l, .dark-card .stat-n, .dark-card .quiet { color: var(--dark-mute); }
.dark-card .chart-svg .b { fill: var(--dark-ink); }
.dark-card .chart-svg .ax { fill: var(--dark-mute); }

/* inputs: label above, a soft pill field, unit inside */
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 16px; }
@media (min-width: 560px) { .fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fgrid.own:empty { display: none; }
.fgrid.own { margin-top: 14px; }
.fi { display: grid; gap: 6px; min-width: 0; align-content: start; }
.fi.wide { grid-column: 1 / -1; }
.fl { font-size: 13.5px; color: var(--ink); }
.fv { position: relative; display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 16px; background: var(--field); border: 1px solid var(--field-line); transition: border-color .3s, box-shadow .3s; }
.fv:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.fv input, .fv select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 300; color: var(--ink); -webkit-appearance: none; appearance: none; }
.fv input:focus, .fv select:focus { outline: none; }
.fv input[type="date"] { min-height: 46px; }
.fv.sel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; pointer-events: none; flex: none; }
.fv select { cursor: pointer; padding-right: 8px; }
.fu { color: var(--mute); font-size: 14.5px; padding-left: 6px; flex: none; }
.fu.pre { padding: 0 4px 0 0; color: var(--ink); }
.fh { font-size: 12px; color: var(--mute); line-height: 1.4; }
.seg-row { margin-bottom: 14px; overflow-x: auto; }
.seg-row .seg { flex-wrap: nowrap; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.row-btns.center { justify-content: center; }
.add-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 6px 0; }
.btn svg { width: 18px; height: 18px; }

/* figures */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 4px 0 16px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: grid; gap: 3px; align-content: start; min-width: 0; }
.stat-l { font-size: 12.5px; color: var(--mute); }
.stat b { font-weight: 300; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.stat-n { font-size: 12px; color: var(--mute); line-height: 1.35; }
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 900px) { .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid4 > .stat { padding: 18px 20px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); min-height: 112px; }
.grid4 > .stat b { font-size: clamp(19px, 2.2vw, 26px); }
.sheet-1 .grid4 > .stat { background: var(--soft-2); }
.feature-r { padding: var(--pad); }
.fr-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.big-n { margin: 22px 0 8px; font-weight: 300; font-size: clamp(44px, 9vw, 84px); line-height: 1; letter-spacing: -.035em; font-variant-numeric: lining-nums tabular-nums; }
.fr-s { color: var(--dark-mute); font-size: 15px; }
.feature-r .eyebrow { color: var(--dark-mute); }
@media (min-width: 560px) { .tc.wide .fgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

/* tables */
.tw { overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
table.dt { min-width: 100%; }
table.dt th { font-size: 12px; font-weight: 400; color: var(--mute); padding: 8px 10px 8px 0; white-space: nowrap; text-align: left; }
table.dt th.r { text-align: right; }
table.dt td { font-size: 14px; padding: 9px 10px 9px 0; white-space: nowrap; }
table.dt td.k { color: var(--ink); white-space: normal; min-width: 120px; }
table.dt tr.hi td { font-weight: 400; color: var(--ink); background: var(--ok-bg); }
table.dt tr.dim td { color: var(--faint); }
table.dt tr.tot td { border-top: 1px solid var(--ink); font-weight: 400; }
table.dt.act td.d { color: var(--mute); font-size: 13px; }
.cell { width: 110px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--field); text-align: right; font: inherit; font-size: 14px; font-weight: 300; color: var(--ink); font-variant-numeric: tabular-nums; }
.cell:focus { outline: none; border-color: var(--ink); }
.tick { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12px; }
.tick.ok { background: var(--ok-bg); color: var(--ok-ink); } .tick.no { box-shadow: inset 0 0 0 1px var(--warn); }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); background: var(--ok); }
.checks li.no::before { background: var(--warn); }
.split-sum .ok { color: var(--ok); } .split-sum .no { color: var(--warn); }
.paste { margin-top: 16px; }
.paste summary { cursor: pointer; font-size: 14px; color: var(--ink); }
.paste textarea { width: 100%; margin: 12px 0 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--field-line); background: var(--field); font: 13px/1.5 ui-monospace, Menlo, monospace; color: var(--ink); }
.proj.off { opacity: .6; }
.proj-act { display: flex; gap: 2px; flex-wrap: wrap; margin-right: -14px; }
.proj-res .stats { margin-bottom: 4px; }
.ph.on { box-shadow: 0 0 0 1.5px var(--ok), var(--lift); }
.empty { text-align: center; padding: clamp(28px, 6vw, 56px) var(--pad); display: grid; justify-items: center; gap: 12px; }
.empty h2 { font-size: 24px; font-weight: 300; }
.empty .quiet { max-width: 30em; }
.empty .row-btns { justify-content: center; }
.note-card { padding: 18px var(--pad); }
.note-card .checks { margin: 0; }
.center-note { text-align: center; }
.file-in { font: inherit; font-size: 14px; margin-bottom: 12px; }

/* action squares on the reports page reuse the tile shape */
.actions .act { aspect-ratio: auto; min-height: 168px; }
.actions .act .tile-b { margin-top: 18px; }

/* charts */
.chart-svg { display: block; width: 100%; height: auto; margin: 8px 0 16px; overflow: visible; }
.chart-svg .b { fill: var(--ink); opacity: .78; }
.chart-svg .b-hi { fill: var(--ok); }
.chart-svg .b-neg { fill: var(--warn); opacity: .7; }
.chart-svg .ax { font-size: 13px; fill: var(--mute); font-family: var(--sans); }
.chart-svg .zero { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-svg .budget { stroke: var(--warn); stroke-width: 1.2; }
.chart-svg .ln { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-svg .pt { fill: var(--mute); opacity: .55; }
.chart-svg .pt-hi { fill: var(--ok); }

/* one-page summary */
.sheet-1 { padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.s1-cols > div { min-width: 0; }
.sheet-1 .tw { margin: 0 calc(clamp(22px, 4vw, 44px) * -1); padding: 0 clamp(22px, 4vw, 44px); }
.s1-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.s1-h .hotel-name { font-size: clamp(20px, 3vw, 28px); margin: 4px 0 6px; white-space: normal; }
.s1-logo { width: 70px; opacity: .7; } .s1-logo svg { width: 100%; height: auto; display: block; }
.s1-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; } @media (min-width: 800px) { .s1-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.s1-cols .eyebrow { margin-top: 10px; }
.s1-foot { border-top: 1px solid var(--line); padding-top: 14px; }

/* page foot: back and next along the journey */
.tool-nav { width: var(--edge); margin: calc(var(--gap) * 2) auto 0; display: flex; justify-content: space-between; gap: 10px; }
.tool-nav .btn { max-width: 48%; } .tool-nav .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: calc(var(--gap) * 2) 0 0; width: var(--edge); margin: 0 auto; }
.home-foot .xsmall { max-width: 40em; padding: 12px 20px; border-radius: var(--r-md); background: var(--pill); border: 1px solid var(--pill-line); color: var(--ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.foot-gdc { width: 64px; display: block; opacity: .55; } .foot-gdc svg { width: 100%; height: auto; display: block; }
.isheet .bul { margin: 0 0 20px; padding: 0 0 0 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.isheet .ic.big svg { width: 24px; height: 24px; stroke-width: 1.4; }

@media print {
  body * { visibility: hidden; } .stage, .top, .tool-nav, .home-foot, .row-btns { display: none !important; }
  .sheet-1, .sheet-1 * { visibility: visible; } .sheet-1 { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; background: #fff; color: #181818; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet-1 .grid4 > .stat { background: #F5F1EC; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover, .tile:active { transform: none; transition: none; } }
