/* theWorkshop (base styles from Paycheck Planner) */
:root {
  color-scheme: light;
  --ink: #18242c; --muted: #55636d; --line: #dde4e9; --paper: #fff; --bg: #f3f6f8; --soft: #eef3f6;
  --accent: #a8481a; --accent-dark: #7f3510; --accent-soft: #f8e9df; --gold: #8b5a14;
  --good: #1e6b34; --good-bg: #e5f6e9; --good-line: #b9e3c4;
  --warn: #7a5200; --warn-bg: #fdf3df; --warn-line: #f0d9a8;
  --bad: #8a2c1f; --bad-bg: #fbe7e4; --bad-line: #f0bdb4;
  --field: #75848e;   /* form borders: at least 3:1 against white (WCAG 1.4.11) */
  --focus: #b35c00;
  --radius: 12px;
  /* charts (the validated reference palette, slots 1-4, and its chrome) */
  --surface: #fcfcfb; --grid: #e1e0d9; --axis: #c3c2b7; --tick: #6f6d68;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s-gray: #a8a69f;
  --s1-soft: #cde2fb;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #ecebe7; --muted: #b3b1a8; --line: #2f3336; --paper: #1a1a19; --bg: #111314; --soft: #222526;
    --accent: #f0a272; --accent-dark: #5a2a10; --accent-soft: #3a261a; --gold: #d9a24a;
    --good: #7fd69a; --good-bg: #16301f; --good-line: #2c5a3a;
    --warn: #f2c66d; --warn-bg: #33270e; --warn-line: #5c4718;
    --bad: #f3a196; --bad-bg: #3a1a16; --bad-line: #6b2d25;
    --field: #7d8a92; --focus: #ffb35c;
    --surface: #1a1a19; --grid: #2c2c2a; --axis: #383835; --tick: #9a988f;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s-gray: #6b6a64;
    --s1-soft: #1c3550;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden wins over .btn's display, and the like */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.btn, .brand, .menu a, .nav a, .nav-out, .tile a, a.card-link { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-header :focus-visible { outline-color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; color: #7f3510; padding: 8px 14px; border-radius: 8px; z-index: 50; font-weight: 600; }
.skip:focus { top: 8px; }
img { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main.wrap.wide { max-width: 1320px; }

/* Header and menu */
.site-header { background: #26292c; color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a, .nav-out { color: rgba(255,255,255,.92); padding: 7px 10px; border-radius: 8px; font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a.active, .nav-out:hover { background: rgba(255,255,255,.15); }
.nav a.cta { background: #f08a4b; color: #1b0d03; font-weight: 700; }
.nav a.cta:hover { background: #f59d66; }
.menu { background: #1d2023; }
.menu.staff { background: #3a2c22; }
.menu-label { color: #f6c9a8; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; align-self: center; padding: 0 8px 0 0; white-space: nowrap; }
.who { color: rgba(255,255,255,.85); font-size: .9rem; }
.switcher select { width: auto; min-height: 34px; padding: 4px 8px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); font-size: .88rem; max-width: 200px; }
.switcher select option { color: #18242c; background: #fff; }
.menu-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu-row::-webkit-scrollbar { display: none; }
.menu a { color: rgba(255,255,255,.88); padding: 10px 12px; font-size: .92rem; font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.menu a.active { color: #fff; border-bottom-color: #f08a4b; font-weight: 650; }

main.wrap { padding-top: 22px; padding-bottom: 48px; }
h1 { font-size: 1.65rem; margin: 0 0 10px; line-height: 1.2; } h2 { font-size: 1.18rem; margin: 0 0 12px; line-height: 1.3; } h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.tight { margin-top: 0; margin-bottom: 4px; } .spaced { margin-top: 26px; }
.muted { color: var(--muted); } .small { font-size: .87rem; } .tiny { font-size: .78rem; } .center { text-align: center; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 16px; } .grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid { margin-bottom: 16px; }
.grid > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; } .row.gap { gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; gap: 12px; flex-wrap: wrap; } .row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }

/* Messages */
.flash, .alert { border-radius: 10px; padding: 11px 15px; margin-bottom: 16px; font-weight: 500; }
.flash, .alert.ok { background: var(--good-bg); border: 1px solid var(--good-line); color: var(--good); }
.flash.error, .alert.error { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }
.alert.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.alert.info { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); }
.alert p { margin: 4px 0 0; font-weight: 400; }

/* Buttons and forms */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); padding: 8px 17px; border-radius: 999px; font-weight: 600; font-size: .93rem; cursor: pointer; font-family: inherit; line-height: 1.3; min-height: 40px; }
@media (prefers-color-scheme: dark) { .btn { color: #1b0d03; } }
.btn:hover { filter: brightness(1.08); }
.btn.outline { background: transparent; color: var(--accent); }
.btn.outline:hover { background: var(--accent-soft); filter: none; }
.btn.small { padding: 4px 12px; font-size: .84rem; min-height: 30px; } .btn.wide { width: 100%; }
.btn.danger { background: #a33; border-color: #a33; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn:disabled { opacity: .55; cursor: default; }
button.link { background: none; border: 0; padding: 2px 0; min-height: 24px; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
form { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 15px; min-width: 0; } legend { font-weight: 600; font-size: .9rem; margin-bottom: 5px; padding: 0; }
.field { margin-bottom: 14px; } .field > label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=search], input[type=password], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--field); border-radius: 8px; font: inherit; background: var(--paper); color: var(--ink); min-height: 42px; }
input[inputmode=decimal] { font-variant-numeric: tabular-nums; }
textarea { min-height: 80px; resize: vertical; }
.hint { color: var(--muted); font-size: .84rem; margin: 5px 0 0; }
label.check { display: flex; gap: 8px; align-items: baseline; font-weight: 400; margin: 5px 0; font-size: .94rem; } label.check input { width: auto; flex: none; }
.fields { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.money-input { display: flex; align-items: stretch; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; background: var(--paper); }
.money-input span { padding: 9px 4px 9px 11px; color: var(--muted); background: var(--soft); display: flex; align-items: center; }
.money-input input { border: 0; border-radius: 0; min-width: 0; }
.money-input:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.money-input input:focus-visible { outline: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip { border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .84rem; cursor: pointer; min-height: 30px; }
.chip:hover { border-color: var(--accent); }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '▸'; font-size: .8em; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more > .more-body { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { details.more > summary::before { transition: none; } }

/* Badges */
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--accent-soft); color: var(--ink); vertical-align: middle; white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.off { background: var(--soft); color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 650; }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

/* Figures */
.hero-label { font-size: .95rem; color: var(--muted); font-weight: 600; margin: 0; }
.hero-figure { font-size: 3.1rem; font-weight: 700; line-height: 1.05; margin: 4px 0 6px; letter-spacing: -.01em; }
.hero-figure.bad { color: var(--bad); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.tile .label { font-size: .84rem; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.tile .value { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.tile .sub { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.status { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; margin: 0 0 4px; }
.status + p { margin-top: 0; }
.status-ok { color: var(--good); } .status-warn { color: var(--warn); } .status-bad { color: var(--bad); }

/* Meters: the fill carries the state; the track is a lighter step */
.meter { height: 8px; border-radius: 999px; background: var(--s1-soft); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--s1); min-width: 2px; }
.meter.goal { background: color-mix(in srgb, var(--s3) 22%, var(--paper)); } .meter.goal > span { background: var(--s3); }
.meter.over > span { background: #d03b3b; }
.meter.near > span { background: #c98500; }
.meter-row { margin: 10px 0; }
.meter-row .row.between { font-size: .9rem; margin-bottom: 4px; gap: 8px; flex-wrap: nowrap; }

/* The tall segmented bar: where a paycheck goes */
.segbar { display: flex; gap: 2px; height: 28px; margin: 6px 0 10px; }
.segbar > span { border-radius: 4px; display: flex; align-items: center; padding: 0 7px; font-size: .78rem; font-weight: 650; color: #fff; white-space: nowrap; overflow: hidden; min-width: 0; }
.segbar > span.dark-text { color: #0b0b0b; }
.seg-bills { background: var(--s1); } .seg-spend { background: var(--s2); } .seg-save { background: var(--s3); } .seg-invest { background: var(--s4); }
.seg-gray { background: var(--s-gray); } .seg-extra { background: color-mix(in srgb, var(--s2) 40%, var(--paper)); }
@media (prefers-color-scheme: dark) { .segbar > span.seg-gray, .segbar > span.seg-extra { color: #fff; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .key { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend .key.line { height: 3px; border-radius: 2px; width: 16px; }
.legend strong { color: var(--ink); font-weight: 650; }

/* Charts */
.chart { position: relative; width: 100%; min-height: 220px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart svg:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.chart .tip { position: absolute; pointer-events: none; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.14); border-radius: 8px; padding: 8px 10px; font-size: .82rem; line-height: 1.35; min-width: 140px; max-width: 260px; z-index: 5; }
.chart .tip[hidden] { display: none; }
.chart .tip .t-head { color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.chart .tip .t-row { display: flex; align-items: center; gap: 7px; justify-content: space-between; }
.chart .tip .t-row .k { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.chart .tip .t-row .k i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.chart .tip .t-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.chart .tip .t-note { margin-top: 5px; color: var(--muted); font-size: .76rem; }
.chart-note { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
details.table-view { margin-top: 10px; }
details.table-view > summary { cursor: pointer; font-size: .85rem; color: var(--accent); font-weight: 600; min-height: 28px; display: inline-flex; align-items: center; }
details.table-view .table-wrap { max-height: 360px; overflow: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
details.table-view table { font-size: .85rem; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none; }
.list .what { flex: 1; min-width: 0; }
.list .what strong { display: block; overflow-wrap: anywhere; }
.list .meta { font-size: .84rem; color: var(--muted); display: block; }
.list .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.list .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.list li.overdue .meta { color: var(--bad); font-weight: 600; }

/* Landing */
.hero { background: linear-gradient(160deg, #26292c, #3a2c22 55%, #7f3510); color: #fff; border-radius: 16px; padding: 34px 28px; margin-bottom: 20px; }
.hero h1 { font-size: 2.2rem; color: #fff; max-width: 760px; }
.hero p { font-size: 1.1rem; max-width: 680px; color: rgba(255,255,255,.93); }
.hero .btn { background: #f08a4b; border-color: #f08a4b; color: #1b0d03; }
.hero .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--paper); }
.price .p-amt { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.price .p-what { color: var(--muted); font-size: .88rem; font-weight: 600; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 42px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (prefers-color-scheme: dark) { .steps li::before { color: #1b0d03; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.checklist .ck { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--field); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.checklist li.done .ck { background: var(--good); border-color: var(--good); color: #fff; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.pill-row a { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-size: .86rem; text-decoration: none; color: var(--ink); }
.pill-row a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .pill-row a.on { color: #1b0d03; } }
.qr-box { display: inline-block; background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
.qr-box img, .qr-box canvas { display: block; }

/* The timeline: free and taken times. Rows scroll sideways inside their box on a phone; the labels stay put. */
.tl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tl { min-width: calc(190px + var(--cols) * 26px); }
.tl-head, .tl-row { display: grid; grid-template-columns: 190px 1fr; }
.tl-head { position: sticky; top: 0; background: var(--paper); z-index: 2; border-bottom: 1px solid var(--line); }
.tl-row { border-bottom: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 0; }
.tl-label { position: sticky; left: 0; background: var(--paper); z-index: 1; padding: 7px 10px; font-size: .86rem; border-right: 1px solid var(--line); min-width: 0; }
.tl-label a { font-weight: 600; }
.tl-sub { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.tl-book { font-size: .78rem; margin-left: 4px; }
.tl-track { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0; padding: 5px 0; min-height: 44px; }
.tl-head .tl-track { min-height: 26px; padding: 0; }
.tl-hour { font-size: .72rem; color: var(--muted); padding: 5px 0 0 3px; border-left: 1px solid var(--line); white-space: nowrap; grid-row: 1; }
.tl-cell { grid-row: 1; border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent); min-height: 32px; }
.tl-cell.free { background: color-mix(in srgb, var(--good-bg) 70%, var(--paper)); }
a.tl-cell.free:hover { background: var(--good-line); }
.tl-cell.closed, .tl-cell.past { background: repeating-linear-gradient(135deg, var(--soft), var(--soft) 4px, transparent 4px, transparent 8px); }
.tl-block { grid-row: 1; z-index: 1; margin: 0 1px; border-radius: 4px; padding: 3px 6px; font-size: .74rem; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-height: 32px; display: flex; align-items: center; text-decoration: none; }
.tl-block span { overflow: hidden; text-overflow: ellipsis; }
.tl-block.booked { background: var(--s-gray); color: #111; }
.tl-block.mine { background: var(--s1); color: #fff; }
.tl-block.class { background: var(--s2); color: #111; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #d03b3b; z-index: 3; pointer-events: none; }
.tl-legend .tl-key { border: 1px solid var(--line); }
.tl-key.free { background: color-mix(in srgb, var(--good-bg) 70%, var(--paper)); } .tl-key.booked { background: var(--s-gray); } .tl-key.mine { background: var(--s1); }
.tl-key.class { background: var(--s2); } .tl-key.closed { background: repeating-linear-gradient(135deg, var(--soft), var(--soft) 2px, var(--paper) 2px, var(--paper) 4px); }
@media (max-width: 560px) { .tl-head, .tl-row { grid-template-columns: 130px 1fr; } .tl { min-width: calc(130px + var(--cols) * 24px); } }
.daynav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.daynav h2 { margin: 0 8px 0 0; }
.daynav input[type=date] { width: auto; }

table.heat th { text-transform: none; letter-spacing: 0; }
table.heat td { min-width: 30px; }

/* The floor plan */
.plan { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.plan svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.plan a { text-decoration: none; }
.plan.editing svg { touch-action: none; }
.plan-floor { fill: var(--soft); }
.plan-gridline { stroke: color-mix(in srgb, var(--line) 80%, transparent); stroke-width: 1; }
.plan-area rect:first-of-type { stroke: var(--ink); stroke-opacity: .35; stroke-width: 1.5; }
.plan-area.c1 rect:first-of-type { fill: #d7e6fa; } .plan-area.c2 rect:first-of-type { fill: #fbdcc8; } .plan-area.c3 rect:first-of-type { fill: #cdeee0; }
.plan-area.c4 rect:first-of-type { fill: #fbecc2; } .plan-area.c5 rect:first-of-type { fill: #e6dcf6; } .plan-area.c6 rect:first-of-type { fill: #e4e3df; }
.plan-area.busy rect:first-of-type { stroke: var(--s2); stroke-opacity: 1; stroke-width: 3; }
.plan-name { font-weight: 700; fill: #1b1d1f; }
.plan-sub { font-size: 12px; fill: #3c4146; }
.plan a:hover .plan-area rect:first-of-type, .plan a:focus .plan-area rect:first-of-type { stroke: var(--accent); stroke-opacity: 1; stroke-width: 3; }
.plan a:focus { outline: none; }
.plan-handle { fill: var(--accent); cursor: nwse-resize; }
.plan.editing .plan-area { cursor: move; }
.plan.editing .plan-area.dragging rect:first-of-type { stroke: var(--accent); stroke-opacity: 1; stroke-width: 3; }
@media (prefers-color-scheme: dark) {
  .plan-area.c1 rect:first-of-type { fill: #1f3550; } .plan-area.c2 rect:first-of-type { fill: #4a2a18; } .plan-area.c3 rect:first-of-type { fill: #173d2f; }
  .plan-area.c4 rect:first-of-type { fill: #45391a; } .plan-area.c5 rect:first-of-type { fill: #33284a; } .plan-area.c6 rect:first-of-type { fill: #35352f; }
  .plan-name { fill: #f2f1ed; } .plan-sub { fill: #c9c7bf; }
  .plan-area rect:first-of-type { stroke: #fff; }
}
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; border: 1px solid var(--line); }
.swatch.c1 { background: #d7e6fa; } .swatch.c2 { background: #fbdcc8; } .swatch.c3 { background: #cdeee0; } .swatch.c4 { background: #fbecc2; } .swatch.c5 { background: #e6dcf6; } .swatch.c6 { background: #e4e3df; }

/* Projects */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.proj-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.proj-card:hover { border-color: var(--accent); }
.proj-card .ph { aspect-ratio: 4 / 3; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; overflow: hidden; }
.proj-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-card .pc { padding: 12px 14px; }
.proj-card .pc strong { display: block; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; background: var(--soft); }
.photos figcaption { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.entry { border-top: 1px solid var(--line); padding: 16px 0; }
.entry:first-of-type { border-top: 0; padding-top: 4px; }
.entry .e-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.entry .e-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }

/* The business plan worksheet */
.ws-table td, .ws-table th { padding: 6px 6px; vertical-align: middle; }
.ws-table input { min-height: 36px; padding: 6px 8px; }
.ws-table td.amt { width: 150px; } .ws-table td.del { width: 40px; text-align: center; }
.ws-table .money-input span { padding: 6px 3px 6px 8px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
.plan-print-only { display: none; }
@media print {
  .plan-print-only { display: block; }
  .no-print, details.table-view > summary { display: none !important; }
  details.table-view { display: block; } details.table-view .table-wrap { max-height: none; border: 0; }
  .ws-table input, .ws-table textarea { border: 0; padding: 0; min-height: 0; }
}

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 4px 0; }

@media (max-width: 700px) {
  /* the menu scrolls sideways on a phone: a fade at the edge shows there's more */
  .menu-row { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 40px; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.4rem; }
  .hero { padding: 24px 18px; } .hero h1 { font-size: 1.6rem; }
  .hero-figure { font-size: 2.5rem; }
  .card { padding: 16px; }
  .list > li { flex-wrap: wrap; }
  .list .acts { width: 100%; justify-content: flex-start; }
}
@media print {
  .site-header, .site-footer, .btn, form { display: none !important; }
  body { background: #fff; }
  .card { border-color: #ccc; break-inside: avoid; }
}
/* Maintenance jobs */
.job { border-top: 1px solid var(--line); padding: 10px 0; }
.job:first-of-type { border-top: 0; }
.job-late { border-left: 4px solid #d03b3b; padding-left: 10px; }
.job-due, .job-soon { border-left: 4px solid var(--s4); padding-left: 10px; }
/* Asset labels to print */
.asset-labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.asset-label { display: flex; gap: 10px; align-items: center; border: 1px dashed var(--field); border-radius: 8px; padding: 8px; background: #fff; color: #111; break-inside: avoid; }
.asset-label .qr-box { padding: 4px; border: 0; }
.asset-label strong { display: block; font-size: 1.05rem; } .asset-label span { display: block; font-size: .85rem; }
@media print { .asset-labels { grid-template-columns: repeat(3, 1fr); } .asset-label { border-color: #999; } }

/* The check-in panel */
tr.refused td { background: var(--warn-bg); }
.checkin .ci-status { font-weight: 650; font-size: 1.05rem; margin-bottom: 4px; }
.checkin.is-in { border-left: 4px solid var(--good); }
.checkin .ci-why { color: var(--warn); }
.checkin .ci-msg:empty { display: none; }
.checkin .ci-auto { margin-top: 10px; }
