/* Sealife OS · clean, light theme (one sans-serif throughout) */
:root {
  --bg: #ffffff; --soft: #f7f7f7; --soft2: #f2f2f2; --line: #ebebeb; --line2: #dddddd;
  --ink: #222222; --muted: #6a6a6a; --faint: #b0b0b0;
  --sea: #1d5b7c; --sea-deep: #143f57; --sea-soft: #e8f1f5;
  --terra: #c13515; --terra-soft: #fdecea; --olive: #3f7d4e; --olive-soft: #e7f3ea; --sand: #c9a86a;
  --r1: 6px; --r2: 10px; --r3: 16px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --namecol: 190px; --lane: 30px;
  --shadow: 0 6px 16px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
h1, h2 { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: 1.9rem; line-height: 1.15; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.bad, .error { color: var(--terra); }
.warn { color: var(--terra); font-weight: 600; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 28px; padding: 0 32px; height: 72px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand b { font-weight: 700; color: var(--sea-deep); }
.mainnav { display: flex; gap: 6px; flex: 1; justify-content: center; }
.mainnav a { color: var(--muted); text-decoration: none; padding: 10px 14px; font-weight: 500; position: relative; border-radius: 999px; }
.mainnav a:hover { color: var(--ink); background: var(--soft); }
.mainnav a[aria-current] { color: var(--ink); font-weight: 600; }
.mainnav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 2px; background: var(--ink); border-radius: 2px; }
.who { display: flex; gap: 16px; align-items: center; font-size: .9rem; color: var(--muted); }
.who a { color: var(--ink); font-weight: 500; }

.page { padding: 32px; max-width: 1440px; margin: 0 auto; }
.page-bare { max-width: none; padding: 0; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { font-size: .85rem; color: var(--muted); margin: 0 0 4px; font-weight: 500; }
.eyebrow a { color: inherit; }
.flash { background: var(--soft); border: 1px solid var(--line); padding: 12px 16px; border-radius: var(--r2); margin-bottom: 18px; font-weight: 500; }
.note { background: var(--soft); padding: 12px 16px; border-radius: var(--r2); font-size: .9rem; color: var(--muted); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line2); background: #fff; color: var(--ink); border-radius: 8px; font: 600 .9rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn-round { width: 36px; height: 36px; padding: 0; border-radius: 999px; font-size: 1.3rem; line-height: 1; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 0; }
.linkbtn:hover { color: var(--terra); }
.calnav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--soft2); border-radius: 999px; padding: 3px; }
.seg a { padding: 7px 14px; text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 600; border-radius: 999px; }
.seg a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
label { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 5px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: .95rem; }
.check input { width: auto; margin: 0; accent-color: var(--ink); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }

/* cards & layout */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r3); padding: 24px; }
.card h2:not(:first-child) { margin-top: 24px; }
.card h2:first-of-type { margin-top: 0; }
.narrow { max-width: 520px; margin: 40px auto; }
.empty { text-align: center; padding: 48px; }
.twocol { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stack { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.span2 { grid-column: span 2; }
.formactions { grid-column: 1 / -1; margin-top: 14px; }
.inline { display: flex; gap: 8px; margin-top: 12px; }
.inline select { width: auto; }
.copy { margin-bottom: 10px; }
.copy input { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; background: var(--soft); }
.pill { padding: 6px 14px; border-radius: 999px; background: var(--terra-soft); color: var(--terra); font-weight: 600; font-size: .85rem; }
.pill-ok { background: var(--olive-soft); color: var(--olive); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { border: 1px solid var(--line); border-radius: var(--r3); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.stat-small { font-size: 1.15rem; padding: .3rem 0; }
.stat-l { font-size: .82rem; color: var(--muted); }
.stat-alarm { background: var(--terra); border-color: var(--terra); }
.stat-alarm .stat-n, .stat-alarm .stat-l { color: #fff; }
.alarm { background: var(--terra-soft); border: 1px solid #f3c3b8; padding: 12px 16px; border-radius: var(--r2); margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.alarm strong { color: var(--terra); }
.alarm span { background: #fff; padding: 0 8px; border-radius: var(--r1); }

/* bar colours (shared by both views) */
.bar { z-index: 1; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 10px; margin: 2px 2px; border-radius: 999px; text-decoration: none; font-size: .8rem; color: #fff; overflow: hidden; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.bar:hover { filter: brightness(1.06); box-shadow: var(--shadow); }
.bar-src { font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; opacity: .85; flex: 0 0 auto; }
.bar-label { overflow: hidden; text-overflow: ellipsis; flex: 1; font-weight: 600; }
.bar-n { font-size: .72rem; opacity: .85; }
.bar.cut-left { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.bar.cut-right { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.src-airbnb { background: #d6476a; }
.src-booking { background: #1f5fa8; }
.src-direct { background: var(--olive); }
.src-owner { background: #9a7330; }
.src-other { background: #5b5f7a; }
.src-block, .bar.is-block { background: repeating-linear-gradient(135deg, #f1f1f1 0 6px, #e4e4e4 6px 12px); color: var(--muted); box-shadow: none; }
.bar.is-block.src-booking { background: repeating-linear-gradient(135deg, #e9f0f9 0 6px, #d4e2f3 6px 12px); color: #1f5fa8; }
.bar.is-block.src-airbnb { background: repeating-linear-gradient(135deg, #fbe8ed 0 6px, #f5d2dc 6px 12px); color: #a8304f; }
.bar.is-conflict { background: var(--terra) !important; outline: 2px solid var(--terra); outline-offset: 2px; color: #fff !important; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .bar.is-conflict { animation: none; } }
.turn-tag { position: absolute; font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: #8a6a2a; background: #f8eed8; padding: 1px 5px; border-radius: var(--r1); z-index: 2; white-space: nowrap; }

/* month view (Airbnb-style) */
.monthbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.flatpick select { width: auto; min-width: 240px; font-weight: 600; border-radius: 999px; padding: 9px 36px 9px 16px; }
.months { position: relative; }
.dow-row { display: grid; grid-template-columns: repeat(7, 1fr); position: sticky; top: 72px; background: #fff; z-index: 5; border-bottom: 1px solid var(--line); padding: 10px 0; }
.dow-row span { text-align: left; padding-left: 12px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.month { margin: 28px 0 8px; }
.month-title { font-size: 1.35rem; margin: 0 0 12px; }
.week { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); grid-template-rows: 34px repeat(var(--lanes, 2), var(--lane)) 14px; position: relative; }
.day { grid-row: 1 / -1; border: 1px solid var(--line); margin: 0 -1px -1px 0; position: relative; background: #fff; cursor: pointer; transition: background .1s; }
.day:hover { background: var(--soft); }
.day.is-out { background: transparent; border-color: transparent; cursor: default; }
.day.is-out:hover { background: transparent; }
.dnum { position: absolute; top: 8px; left: 10px; font-weight: 600; font-size: .95rem; }
.day.is-past .dnum { color: var(--faint); text-decoration: line-through; }
.day.is-past { background: #fcfcfc; }
.day.is-today .dnum { background: var(--ink); color: #fff; border-radius: 999px; width: 28px; height: 28px; display: grid; place-items: center; top: 4px; left: 5px; }
.day.is-turnover::after { content: ""; position: absolute; left: 50%; top: 34px; bottom: 0; border-left: 2px dashed var(--sand); }
.day .turn-tag { top: 10px; right: 8px; }
.day.is-picked { background: var(--ink) !important; }
.day.is-picked .dnum { color: #fff; }
.day.is-range { background: var(--soft2); }
.week .bar { align-self: center; height: 26px; margin: 0 2px; }
.more { text-align: center; margin: 24px 0; }

/* timeline view (all flats) */
.cal { border: 1px solid var(--line); border-radius: var(--r3); overflow-x: auto; }
.cal-row { display: grid; grid-template-columns: var(--tpl); grid-template-rows: repeat(var(--lanes, 1), var(--lane)); row-gap: 6px; padding: 8px 0 20px; border-top: 1px solid var(--line); position: relative; min-width: calc(var(--namecol) + var(--days) * 36px); }
.cal-head { border-top: 0; padding: 0; grid-template-rows: auto; position: sticky; top: 0; background: #fff; z-index: 3; }
.cal-name { grid-column: 1; padding: 0 16px; display: flex; flex-direction: column; justify-content: center; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); position: sticky; left: 0; background: #fff; z-index: 2; margin: -8px 0 -20px; }
.cal-head .cal-name { margin: 0; }
.flat-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flat-meta { font-size: .78rem; color: var(--muted); }
.cal-name:hover .flat-name { text-decoration: underline; }
.cal-day { text-align: center; padding: 16px 0 8px; border-left: 1px solid var(--line); position: relative; display: flex; flex-direction: column; line-height: 1.2; }
.cal-day .dow { font-size: .7rem; color: var(--muted); font-weight: 500; }
.cal-day .dom { font-weight: 600; }
.cal-day .mon { position: absolute; top: 2px; left: 4px; font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.cal-day.is-today .dom { background: var(--ink); color: #fff; border-radius: 999px; width: 24px; height: 24px; display: grid; place-items: center; margin: 0 auto; }
.cal-cell { border-left: 1px solid var(--line); margin: -8px 0 -20px; position: relative; }
.cal-cell.is-past { background: #fcfcfc; }
.is-weekend { background: #fafafa; }
.cal-cell.is-today { box-shadow: inset 2px 0 0 var(--ink); }
.cal-cell.is-turnover::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--sand); }
.cal-cell .turn-tag { bottom: 3px; left: 50%; transform: translateX(-50%); }

.legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 24px; font-size: .82rem; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 6px; background: none !important; outline: 0 !important; animation: none !important; color: var(--muted) !important; }
.key::before { content: ""; width: 14px; height: 10px; border-radius: 999px; }
.key.src-airbnb::before { background: #d6476a; } .key.src-booking::before { background: #1f5fa8; }
.key.src-direct::before { background: var(--olive); } .key.src-owner::before { background: #9a7330; }
.key.src-other::before { background: #5b5f7a; } .key.src-block::before { background: repeating-linear-gradient(135deg, #e4e4e4 0 3px, #f4f4f4 3px 6px); }
.key.is-conflict::before { background: var(--terra); }
.key-turn::before { width: 0; height: 12px; border-left: 2px dashed var(--sand); border-radius: 0; }

.addstay summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.addstay[open] summary { margin-bottom: 16px; }

/* flats */
.flatgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.flatcard { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: var(--r3); padding: 18px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.flatcard:hover { box-shadow: var(--shadow); }
.flatcard.is-off { opacity: .6; }
.flatcard-arch { flex: 0 0 64px; height: 84px; border-radius: 999px 999px var(--r2) var(--r2); background: var(--sea-soft); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--sea-deep); }
.flatcard-body { flex: 1; min-width: 0; }
.flatcard h2 { margin: 0 0 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.tag { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--soft2); color: var(--muted); font-weight: 600; }
.tag-warn { background: var(--terra-soft); color: var(--terra); }
.tag-bad { background: var(--terra); color: #fff; }
.meter { height: 6px; border-radius: 999px; background: var(--soft2); overflow: hidden; margin-bottom: 4px; }
.meter span { display: block; height: 100%; background: var(--sand); }
.meter span.ok { background: var(--olive); }

.chanlist, .staylist { list-style: none; padding: 0; margin: 0 0 4px; }
.chanlist li, .staylist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chanlist li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chanlist .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staylist .when { font-weight: 600; min-width: 190px; }
.staylist .guest { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; flex: 0 0 10px; }

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.card .table { margin-top: 6px; }
section.card { margin-bottom: 24px; }

/* money */
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table.money tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; }
.table tr.is-future td { color: var(--faint); }
.sparkcell { width: 18%; }
.spark { display: block; height: 8px; border-radius: 999px; background: var(--sea); min-width: 0; }
pre.digest { white-space: pre-wrap; font: .9rem/1.5 ui-monospace, Menlo, monospace; margin: 0; }
.statement { max-width: 900px; margin: 0 auto; }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.st-logo { width: 170px; }
.st-meta { text-align: right; }
.st-meta h1 { font-size: 1.4rem; margin: 0 0 4px; }
.st-meta p { margin: 0; color: var(--muted); }
.st-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.st-kpis div { border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; font-size: .8rem; color: var(--muted); }
.st-kpis span { display: block; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.st-kpis .st-owner { background: var(--sea-deep); border-color: var(--sea-deep); color: #cfe0ea; }
.st-kpis .st-owner span { color: #fff; }
.st-sum { margin: 18px 0 14px auto; border-collapse: collapse; min-width: 380px; }
.st-sum td { padding: 6px 0 6px 24px; text-align: right; font-variant-numeric: tabular-nums; }
.st-sum td:first-child { text-align: left; padding-left: 0; color: var(--muted); }
.st-sum .st-line td { border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.st-sum .st-total td { border-top: 2px solid var(--ink); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
@media print {
  .topbar, .noprint, .flash { display: none !important; }
  .page { padding: 0; max-width: none; }
  .statement { border: 0; padding: 0; }
  body { font-size: 12px; }
}

/* owner portal */
.ownerflat { margin-bottom: 40px; }
.ownerflat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.ownerflat-head h2 { font-size: 1.5rem; margin: 0; }
.ownerflat-head p { margin: 2px 0 0; }
.stat-warn { border-color: #f3c3b8; background: var(--terra-soft); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.checklist li span { width: 18px; text-align: center; font-weight: 700; }
.checklist li.ok span { color: var(--olive); }
.checklist li.todo { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; }
.who-name { font-weight: 500; color: var(--muted) !important; text-decoration: none; }
.who-name:hover { color: var(--ink) !important; }
.day.is-readonly { cursor: default; }
.day.is-readonly:hover { background: #fff; }
.day.is-readonly.is-past:hover { background: #fcfcfc; }

/* leads */
.lead-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lead-head h2 { margin: 0; }
.lead-msg { background: var(--soft); border-radius: var(--r2); padding: 10px 14px; }
.lead-photos { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lead-photos img { width: 140px; height: 105px; object-fit: cover; border-radius: var(--r2); border: 1px solid var(--line); }
.lead-form { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-form select { width: auto; }
.lead-form input { flex: 1; min-width: 200px; }
.tag.lead-new { background: var(--sea); color: #fff; }
.tag.lead-signed { background: var(--olive); color: #fff; }
.tag.lead-lost { background: var(--soft2); color: var(--faint); }

/* public pages (owners site, booking pages): navy, Mediterranean blue, warm ivory, a little gold */
.pub {
  --navy: #0e2a47; --blue: #13579b; --ivory: #f7f2e8; --gold: #e2b33c; --gold-hi: #ecc45a; --hair: #d9dfe6; --hair-iv: #e4dccd;
  --body: #3e4f62; --display: "Newsreader", Georgia, "Times New Roman", serif;
  --gut: max(24px, calc((100vw - 1200px) / 2));
  /* older names still used by the booking pages */
  --brand-sea: var(--blue); --brand-deep: var(--navy); --brand-shallow: #eef3f8; --brand-sun: var(--gold); --brand-ground: var(--ivory);
  color: var(--navy); font-size: 1.0625rem; line-height: 1.6;
}
.pub h1, .pub h2, .pub h3, .pub h4 { color: var(--navy); text-wrap: balance; }
.pub a:focus-visible, .pub button:focus-visible, .pub input:focus-visible, .pub select:focus-visible, .pub textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* buttons */
.site-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 3px; font: 600 .95rem/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.site-btn--gold { background: var(--gold); color: var(--navy); }
.site-btn--gold:hover { background: var(--gold-hi); color: var(--navy); }
.site-btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.site-btn--line:hover { background: var(--navy); color: #fff; }
.site-btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.text-link { color: var(--blue); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: var(--navy); }

/* header */
.site-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 40px; height: 76px; padding: 0 var(--gut); background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-top.is-scrolled { border-bottom-color: var(--hair); }
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font: 500 1.6rem/1 var(--display); letter-spacing: -0.01em; margin-right: auto; }
.site-brand img { width: 42px; height: 42px; }
.nav-toggle { display: none; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--blue); color: var(--blue); }

/* hero: text on ivory, the real balcony photo filling the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100vh - 76px), 700px); background: var(--ivory); }
.hero-kicker { margin: 0 0 22px; font-size: .95rem; font-weight: 500; color: var(--blue); }
.hero-text { align-self: center; padding: 72px 56px 72px var(--gut); }
.hero h1 { font: 400 clamp(2.7rem, 4.5vw, 4.25rem)/1.04 var(--display); letter-spacing: -0.02em; margin: 0 0 28px; text-wrap: wrap; }
.hero-lead { font-size: 1.2rem; line-height: 1.6; color: var(--body); max-width: 29em; margin: 0 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; position: relative; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-photo img { animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { transform: scale(1.045); } }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); padding: 28px var(--gut); background: var(--navy); color: #fff; }
.trust > div { padding: 28px 32px 28px 0; }
.trust > div:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.14); }
.trust > div:not(:nth-child(3n+1)) { padding-left: 40px; }
.trust h2 { color: #fff; font: 600 1rem/1.3 var(--font); letter-spacing: 0; margin: 0 0 6px; }
.trust p { margin: 0; color: rgba(255,255,255,.74); font-size: .95rem; line-height: 1.5; }

/* sections */
.sec { padding: 112px var(--gut); }
.sec--ivory { background: var(--ivory); }
.sec--navy { background: var(--navy); color: #fff; }
.sec-head { max-width: 720px; margin: 0 0 60px; }
.sec-head h2, .proof h2, .contact h2 { font: 400 clamp(2.1rem, 3.8vw, 3.1rem)/1.1 var(--display); letter-spacing: -0.015em; margin: 0 0 18px; }
.sec-head p { font-size: 1.15rem; color: var(--body); margin: 0; }
.sec--navy .sec-head h2 { color: #fff; }
.sec--navy .sec-head p { color: rgba(255,255,255,.78); }

/* services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 80px 56px; }
.service figure { margin: 0 0 28px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ivory); }
.service figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service h3 { font: 500 1.8rem/1.2 var(--display); letter-spacing: -0.01em; margin: 0 0 14px; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { padding: 10px 0 0; color: var(--body); }
.service li + li { margin-top: 4px; }
.service li b { color: var(--navy); font-weight: 600; }

/* fees */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.plan { border-top: 1px solid var(--navy); padding: 30px 36px 34px; }
.plan--main { border-top: 3px solid var(--gold); padding-top: 28px; background: #fff; }
.plan h3 { font: 600 1.05rem/1.3 var(--font); margin: 0; display: flex; align-items: baseline; gap: 12px; }
.plan-note { font-weight: 500; font-size: .85rem; color: #8a6510; }
.plan-pct { font: 400 clamp(5rem, 10vw, 7.5rem)/1 var(--display); letter-spacing: -0.04em; margin: 14px 0 4px; color: var(--navy); }
.plan-pct span { font-size: .5em; letter-spacing: 0; margin-left: .04em; }
.plan-of { margin: 0 0 16px; color: var(--body); font-size: .95rem; }
.plan p:last-child { color: var(--body); margin: 0; }
.fees-small { margin: 36px 0 0; color: var(--body); font-size: .95rem; }
.offer { margin: 28px 0 0; padding: 20px 24px; background: #fff; border-left: 4px solid var(--gold); }
.offer p { margin: 0; }
.compare { margin: 72px 0 0; }
.fees-cta { margin: 36px 0 0; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 12px 15px 0; border-bottom: 1px solid var(--hair-iv); text-align: left; vertical-align: top; }
.compare thead th { font-size: .9rem; font-weight: 600; border-bottom: 1px solid var(--navy); }
.compare tbody th { font-weight: 400; color: var(--navy); }
.compare td, .compare thead th + th { width: 180px; }
.compare td { color: var(--body); font-size: .95rem; }
.compare .yes { color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.compare .yes::before { content: ""; width: 6px; height: 11px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.compare .no { color: #8794a3; }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin: 72px 0 0; }
.notes p { max-width: 36em; }
.notes h3 { font: 500 1.35rem/1.25 var(--display); margin: 0 0 10px; }
.notes p { color: var(--body); margin: 0; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: st; }
.steps li { counter-increment: st; border-top: 1px solid var(--navy); padding-top: 20px; }
.steps li::before { content: counter(st); display: block; font: 400 2.6rem/1 var(--display); color: var(--blue); margin-bottom: 18px; }
.steps h3 { font: 600 1.05rem/1.3 var(--font); margin: 0 0 8px; }
.steps p { color: var(--body); margin: 0; font-size: 1rem; }
.routes { margin: 96px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; padding: 40px; background: var(--ivory); }
.routes-title { grid-column: 1 / -1; font: 500 1.65rem/1.2 var(--display); margin: 0 0 30px; }
.route h4 { font: 600 1.05rem/1.3 var(--font); margin: 0 0 8px; }
.route p { color: var(--body); margin: 0; font-size: 1rem; }
.kit { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; margin: 96px 0 0; }
.kit figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory); }
.kit figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit h3 { font: 500 1.65rem/1.2 var(--display); margin: 0 0 12px; }
.kit p { color: var(--body); margin: 0; max-width: 34em; }

/* estimate */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; max-width: 1000px; }
.calc-in { display: grid; gap: 28px; align-content: start; }
.calc-in label { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; font-weight: 500; color: #fff; }
.calc-in output { font: 400 1.5rem/1 var(--display); color: var(--gold); }
.calc-in input[type=range] { width: 100%; accent-color: var(--gold); margin: -14px 0 0; }
.calc-seg { display: flex; flex-wrap: wrap; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; justify-self: start; }
.calc-seg a { padding: 11px 16px; color: rgba(255,255,255,.85); text-decoration: none; font-size: .92rem; font-weight: 500; }
.calc-seg a + a { border-left: 1px solid rgba(255,255,255,.3); }
.calc-seg a[aria-current] { background: #fff; color: var(--navy); }
.calc-out .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-variant-numeric: tabular-nums; }
.calc-out .row span { color: rgba(255,255,255,.75); }
.calc-out .row b { font-weight: 500; }
.calc-out .total { border-bottom: 0; border-top: 1px solid #fff; margin-top: 6px; padding-top: 18px; align-items: baseline; }
.calc-out .total span { color: #fff; font-weight: 600; }
.calc-out .total b { font: 400 2.4rem/1 var(--display); color: var(--gold); }
.calc-out .year { border-bottom: 0; }
.calc-note { font-size: .88rem; color: rgba(255,255,255,.62); margin: 18px 0 28px; }

/* proof */
.proof { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; padding: 104px var(--gut); background: var(--ivory); }
.proof-photos img { background: var(--ivory); }
.proof-photos { margin: 0; display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: end; }
.proof-photos img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.proof-photos img + img { aspect-ratio: 3 / 4; }
.proof-text p { color: var(--body); margin: 0 0 22px; }

/* contact */
.contact { display: grid; grid-template-columns: 4fr 6fr; gap: 72px; align-items: start; }
.contact-side p { color: var(--body); }
.contact-direct a { color: var(--blue); font-weight: 600; }
.contact-side figure { margin: 36px 0 0; aspect-ratio: 4 / 3; overflow: hidden; }
.contact-side figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.form-panel { background: #fff; padding: 40px; border-top: 4px solid var(--navy); }
.form-panel h3 { font: 500 1.65rem/1.2 var(--display); margin: 0 0 10px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.fields .wide { grid-column: 1 / -1; }
.fields label { display: grid; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.fields input:not([type=checkbox]):not([type=file]), .fields select, .fields textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--navy); background: #fff; border: 1px solid #b9c3cf; border-radius: 3px; padding: 12px 13px; }
.fields input:focus, .fields select:focus, .fields textarea:focus { border-color: var(--blue); outline: 2px solid rgba(19,87,155,.25); outline-offset: 0; }
.fields input[type=file] { font: 400 .92rem var(--font); }
.fields label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--body); }
.fields label.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.form-error { background: #fdecea; color: #8c1d0f; padding: 12px 14px; border-left: 3px solid #c13515; margin: 0 0 24px; }

/* footer */
.site-foot { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding: 56px var(--gut) 64px; background: var(--navy); color: rgba(255,255,255,.78); }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand b { display: block; color: #fff; font: 500 1.35rem/1.2 var(--display); }
.foot-brand span { font-size: .92rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; max-width: 560px; justify-content: flex-end; }
.site-foot nav a { color: #fff; text-decoration: none; font-size: .95rem; }
.site-foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* booking pages share the same header and footer look */
.pub-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 76px; padding: 0 var(--gut); position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--hair); z-index: 20; }
.pub-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font: 500 1.4rem/1 var(--display); }
.pub-brand b { font-weight: 500; }
.pub-top nav { display: flex; align-items: center; gap: 28px; }
.pub-top nav a:not(.btn) { text-decoration: none; color: var(--navy); font-weight: 500; font-size: .95rem; }
.pub-top nav a:not(.btn):hover { color: var(--blue); }
.pub .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 3px; }
.pub .btn-primary:hover { background: var(--navy); border-color: var(--navy); }
.pub-top .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.pub-top .btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--navy); }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 3px; }
.pub-sec { padding: 72px var(--gut); }
.pub-sec > h2 { font: 400 clamp(2rem, 3.6vw, 2.8rem)/1.1 var(--display); letter-spacing: -0.015em; margin: 0 0 12px; }
.pub-sub { color: var(--body); max-width: 640px; margin: 0 0 36px; }
.pub .card { border: 1px solid var(--hair); border-radius: 4px; background: #fff; box-shadow: none; }
.pub-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 32px var(--gut); background: var(--navy); color: rgba(255,255,255,.78); font-size: .92rem; }
.pub-foot a { color: #fff; }

/* the arch logo badge (login and install pages) */
.arch-badge { width: 100%; background: #fff; border-radius: 999px 999px 12px 12px; padding: 56px 20px 30px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.arch-badge img { width: 64px; height: 64px; }
.arch-badge span { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; color: #0b3a6b; line-height: 1; display: flex; flex-direction: column; }
.arch-badge small { font-size: .82rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #0e5aa7; margin-top: 6px; }
.login-badge { width: min(340px, 80%); }

@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
}
@media (max-width: 900px) {
  .site-top { gap: 16px; height: 68px; }
  .nav-toggle { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; background: none; border: 1.5px solid var(--navy); border-radius: 3px; color: var(--navy); font: 600 .9rem var(--font); cursor: pointer; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; background: #fff; border-bottom: 1px solid var(--hair); box-shadow: 0 12px 24px rgba(14,42,71,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 1rem; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-top { gap: 10px; }
  .site-top > .site-btn { padding: 0 12px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 52px var(--gut) 48px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .trust { grid-template-columns: 1fr 1fr; padding-top: 8px; padding-bottom: 8px; }
  .trust > div, .trust > div:not(:nth-child(3n+1)) { padding: 22px 20px 22px 0; border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .sec, .proof { padding-top: 76px; padding-bottom: 76px; }
  .services, .plans, .notes, .calc, .proof, .contact, .kit { grid-template-columns: 1fr; }
  .services { gap: 64px; }
  .plans, .notes { gap: 24px; }
  .plan { padding: 24px 22px 26px; }
  .routes { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .routes-title { margin-bottom: 0; }
  .calc { gap: 48px; }
  .proof, .contact { gap: 48px; }
  .contact-side figure { display: none; }
  .pub-top nav a:not(.btn) { display: none; }
  .pub-sec { padding-top: 52px; padding-bottom: 52px; }
}
@media (max-width: 560px) {
  .site-brand { font-size: 1.15rem; gap: 8px; white-space: nowrap; }
  .site-top > .site-btn, .nav-toggle { white-space: nowrap; font-size: .85rem; padding: 0 10px; min-height: 40px; }
  .site-brand img { width: 32px; height: 32px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .form-panel { padding: 26px 20px; }
  .compare td, .compare thead th + th { width: 96px; }
  .compare th, .compare td { padding-right: 8px; font-size: .9rem; }
  .hero-cta .site-btn { width: 100%; }
  .site-foot nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .bk-ph img { transition: none; } .site-btn, .site-top { transition: none; } }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-arch { background: #0e5aa7; display: grid; place-items: center; padding: 40px; }
.login-logo { width: min(340px, 75%); background: #fff; padding: 48px 40px 34px; border-radius: 999px 999px var(--r3) var(--r3); }
.login-card { align-self: center; justify-self: center; width: min(380px, 90%); display: grid; gap: 14px; border: 0; }
.login-card h1 { margin: 0; }

@media (max-width: 1000px) {
  .twocol { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .login { grid-template-columns: 1fr; }
  .login-arch { min-height: 200px; }
  :root { --namecol: 130px; }
}
@media (max-width: 640px) {
  .topbar { gap: 10px; padding: 0 14px; height: 60px; }
  .brand span { display: none; }
  .who span, .who-name { display: none; }
  .ownerflat-head { flex-direction: column; align-items: flex-start; }
  .mainnav { justify-content: flex-start; }
  .mainnav a[aria-current]::after { bottom: -9px; }
  .dow-row { top: 60px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px 12px; border-radius: var(--r2); }
  .stat-n { font-size: 1.3rem; }
  .stat-small { font-size: .9rem; padding: .2rem 0; }
  .stat-l { font-size: .72rem; }
  .flatpick select { min-width: 0; width: 100%; }
  .monthbar { flex-direction: column; align-items: stretch; }
  .page { padding: 16px; }
  .formgrid, .checks { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .week { grid-template-rows: 30px repeat(var(--lanes, 2), 24px) 8px; }
  .week .bar { height: 22px; padding: 0 6px; font-size: .7rem; }
  .bar-n { display: none; }
  .dnum { top: 5px; left: 6px; font-size: .82rem; }
  .day .turn-tag { display: none; }
  .week .bar-src { display: none; }
  .st-kpis { grid-template-columns: 1fr 1fr; }
  .st-sum { min-width: 0; width: 100%; }
  .card { padding: 16px; overflow-x: auto; }
}

/* listing chips on the calendar */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem; background: #fff; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; background: var(--sand); color: #fff; }
.chip .chk { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; display: inline-block; position: relative; }
.chip.on .chk::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip-wrap { display: inline-flex; align-items: center; gap: 2px; }
.chip-only { font-size: .78rem; color: var(--muted); padding: 6px 6px; text-decoration: none; }
.chip-only:hover { color: var(--ink); text-decoration: underline; }
.bar-src b { font-weight: 700; }

/* cleaning */
.ops-day { margin: 26px 0 10px; font-size: 1.05rem; }
.ops-day.is-today { color: var(--sea-deep); }
.jobgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.jobcard { display: block; border: 1px solid var(--line); border-radius: var(--r3); padding: 16px 18px; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
a.jobcard:hover { box-shadow: var(--shadow); }
.jobcard header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.jobcard h3 { margin: 0 0 2px; font-size: 1.05rem; }
.jobcard h3 a { text-decoration: none; }
.jobcard.st-done, .jobcard.st-checked { background: var(--soft); }
.jobcard.is-late { border-color: var(--terra); }
.jobassign { display: flex; gap: 8px; margin-top: 10px; }
.jobassign select { flex: 1; min-width: 0; }
.jobtag-todo { background: var(--soft2); color: var(--muted); }
.jobtag-started { background: var(--sea-soft); color: var(--sea-deep); }
.jobtag-done { background: var(--olive-soft); color: var(--olive); }
.jobtag-checked { background: var(--olive); color: #fff; }
.jobtag-cancelled { background: var(--soft2); color: var(--faint); text-decoration: line-through; }
.job-progress { font-size: 1rem; margin-bottom: 6px; }
.cl-sec { margin: 18px 0 6px; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cl { list-style: none; margin: 0; padding: 0; }
.cl li { border-bottom: 1px solid var(--line); }
.cl-item { display: flex; gap: 14px; align-items: center; padding: 12px 2px; cursor: pointer; font-size: 1rem; }
.cl-item input { width: 24px; height: 24px; flex: none; accent-color: var(--olive); }
.cl-item input:checked + span { color: var(--muted); text-decoration: line-through; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: .9rem; width: 100%; }
.stat-warn .stat-n { color: var(--terra); }
@media (max-width: 700px) {
  .jobgrid { grid-template-columns: minmax(0, 1fr); }
}
.job-when { font-size: .8rem; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.job-when b { color: var(--sea-deep); }
.jobcard.is-today { border-color: var(--sea); }

/* direct booking pages */
.bk { padding: 28px max(24px, calc((100% - 1160px) / 2)) 64px; }
.bk-preview { background: #fbeee7; color: #5a2814; text-align: center; padding: 10px 16px; font-size: .9rem; border-bottom: 1px solid #efcdb9; }
.bk-title h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); color: var(--brand-deep); margin-bottom: 4px; }
.bk-title p { color: var(--muted); margin-bottom: 18px; }
.bk-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: var(--r3); overflow: hidden; margin-bottom: 32px; }
.bk-gallery.g1 { grid-template-columns: 1fr; grid-template-rows: 420px; }
.bk-gallery.g2 { grid-template-columns: 1fr 1fr; grid-template-rows: 420px; }
.bk-gallery.g3 { grid-template-columns: 2fr 1fr; }
.bk-gallery.g1 .bk-ph.cover, .bk-gallery.g2 .bk-ph.cover { grid-row: auto; }
.bk-ph { display: block; width: 100%; height: 100%; border: 0; padding: 0; margin: 0; background: var(--soft2); cursor: zoom-in; overflow: hidden; }
.bk-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.bk-ph:hover img { transform: scale(1.03); }
.bk-ph.cover { grid-row: 1 / span 2; }
.bk-all { position: absolute; right: 14px; bottom: 14px; background: #fff; }
.bk-nophoto { height: 220px; border-radius: var(--r3); background: var(--brand-ground); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); margin-bottom: 32px; }
.bk-lightbox { width: min(1100px, 96vw); max-height: 92vh; border: 0; border-radius: var(--r3); padding: 0; }
.bk-lightbox::backdrop { background: rgba(0,0,0,.7); }
.bk-close { position: sticky; top: 10px; left: calc(100% - 90px); z-index: 2; background: #fff; margin: 10px; }
.bk-lb-list { display: grid; gap: 10px; padding: 0 14px 14px; }
.bk-lb-list img { width: 100%; border-radius: var(--r2); }
.bk-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.bk-info > p { color: #3d4a54; font-size: 1.02rem; }
.bk-info h2 { margin-top: 30px; color: var(--brand-deep); }
.bk-feat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.bk-feat li { padding-left: 26px; position: relative; }
.bk-feat li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 6px; height: 11px; border: solid var(--olive); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bk-know { padding-left: 18px; color: #3d4a54; }
.bk-cal { position: relative; border: 1px solid var(--line); border-radius: var(--r3); padding: 18px; }
.bk-calnav { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.bk-calnav .btn { pointer-events: auto; }
.bk-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.bk-month h3 { text-align: center; font-size: 1rem; margin: 6px 0 12px; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bk-grid .dw { text-align: center; font-size: .75rem; color: var(--muted); padding-bottom: 4px; }
.bk-grid .bkd { aspect-ratio: 1; border: 0; background: none; border-radius: 999px; font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; color: var(--ink); }
.bk-grid .bkd.is-free:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bk-grid .bkd.is-past { color: var(--faint); cursor: default; }
.bk-grid .bkd.is-busy { color: var(--faint); text-decoration: line-through; cursor: default; }
.bk-grid .bkd.can-out { color: var(--ink); text-decoration: none; cursor: pointer; }
.bk-grid .bkd.is-range { background: var(--sea-soft); border-radius: 0; }
.bk-grid .bkd.is-start, .bk-grid .bkd.is-end { background: var(--brand-deep); color: #fff; text-decoration: none; }
.bk-box { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--r3); padding: 22px; box-shadow: var(--shadow); background: #fff; }
.bk-price { font-size: 1.05rem; margin-bottom: 12px; }
.bk-price b { font-size: 1.5rem; color: var(--brand-deep); }
.bk-form { display: grid; gap: 12px; }
.bk-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.bk-form label.check { display: flex; font-weight: 400; }
.bk-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-quote { background: var(--soft); border-radius: var(--r2); padding: 12px 14px; display: grid; gap: 6px; }
.q-line { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.q-total { border-top: 1px solid var(--line2); padding-top: 8px; font-weight: 700; font-size: 1rem; }
.bk-send { width: 100%; justify-content: center; }
.bk-thanks h2 { color: var(--olive); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 1160px; margin: 0 auto; }
.bk-card { text-decoration: none; color: var(--ink); }
.bk-card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r3); overflow: hidden; background: var(--brand-ground); display: grid; place-items: center; margin-bottom: 10px; }
.bk-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-card-img img.ph-none { width: 64px; height: 64px; object-fit: contain; }
.bk-card-img .tag { position: absolute; top: 10px; left: 10px; }
.bk-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.bk-card p { margin: 0 0 2px; }
@media (max-width: 900px) {
  .bk-main { grid-template-columns: minmax(0, 1fr); }
  .bk-box { position: static; }
  .bk-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .bk-gallery.g1, .bk-gallery.g2 { grid-template-columns: 1fr; grid-template-rows: 260px; }
  .bk-gallery.g2 .bk-ph:not(.cover) { display: none; }
  .bk-ph.cover { grid-column: 1 / span 2; grid-row: auto; }
  .bk-gallery.g1 .bk-ph.cover, .bk-gallery.g2 .bk-ph.cover { grid-column: auto; }
  .bk-ph:nth-child(n+4) { display: none; }
}
@media (max-width: 700px) {
  .bk-months { grid-template-columns: 1fr; }
  .bk-feat { grid-template-columns: 1fr; }
}

/* requests inbox and listing admin */
.navbadge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--terra); color: #fff; font-size: .72rem; line-height: 18px; text-align: center; margin-left: 2px; }
.req { margin-bottom: 16px; }
.req-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.req-head h2 { margin-bottom: 2px; }
.req-total { font-size: 1.3rem; font-weight: 700; margin: 0; white-space: nowrap; }
.req-body blockquote { margin: 8px 0 12px; padding: 10px 14px; background: var(--soft); border-radius: var(--r2); color: #3d4a54; }
.req-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 14px; }
.req-decide { flex: 0 0 auto; }
.req-decide[open] { flex: 1 1 100%; }
.req-decide summary { list-style: none; display: inline-flex; }
.req-decide summary::-webkit-details-marker { display: none; }
.req-decide[open] summary { margin-bottom: 10px; }
.req-decide textarea { width: 100%; font: inherit; }
.req-decide label { display: grid; gap: 4px; font-weight: 600; font-size: .85rem; }
.listing-sec { margin-top: 24px; }
.monthprices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.monthprices label { font-size: .8rem; }
.monthprices input { width: 100%; }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.photo-admin figure { margin: 0; }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r1); display: block; }
.photo-admin figcaption { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; padding-top: 4px; }
@media (max-width: 700px) { .monthprices { grid-template-columns: repeat(3, 1fr); } }

/* onboarding */
.btn-sm { padding: 5px 10px; font-size: .8rem; }
.ob-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ob-col { background: var(--soft); border-radius: var(--r3); padding: 14px; display: grid; gap: 10px; }
.ob-col header h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.ob-col header p { margin: 2px 0 4px; }
.ob-letter { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 700; font-size: .9rem; color: #fff; background: var(--olive); }
.ob-b .ob-letter, .ob-badge.ob-b .ob-letter { background: var(--sea); }
.ob-c .ob-letter, .ob-badge.ob-c .ob-letter { background: var(--sand); }
.ob-empty { padding: 6px 2px; }
.ob-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; text-decoration: none; color: var(--ink); }
.ob-card:hover { box-shadow: var(--shadow); }
.ob-card.is-late { border-color: #f0b9ad; }
.ob-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ob-card p { margin: 2px 0; }
.ob-card .meter { margin: 8px 0 6px; }
.ob-next { color: var(--ink); }
.ob-who { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--soft2); color: var(--muted); margin-right: 4px; }
.who-owner { background: #fff1d6; color: #8a5a00; }
.who-mta { background: var(--sea-soft); color: var(--sea-deep); }
.who-both { background: #eef0ff; color: #3d4aa8; }
.ob-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--soft); }
.ob-layout { align-items: start; }
.ob-phase { font-size: .8rem; color: var(--muted); margin: 18px 0 6px; font-weight: 600; }
.ob-steps { list-style: none; margin: 0; padding: 0; }
.ob-steps li { border-bottom: 1px solid var(--line); }
.ob-step { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.ob-tick { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line2); background: #fff; cursor: pointer; margin-top: 2px; position: relative; }
.ob-tick:hover { border-color: var(--olive); }
.is-done .ob-tick { background: var(--olive); border-color: var(--olive); }
.is-done .ob-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ob-tick:disabled { cursor: not-allowed; opacity: .5; }
.ob-step-body { flex: 1; min-width: 0; }
.ob-step-title { margin: 0 0 2px; }
.is-done .ob-step-title { color: var(--muted); text-decoration: line-through; }
.is-locked .ob-step-title { color: var(--muted); }
.is-late .ob-step-title { color: var(--terra); }
.ob-note { display: flex; gap: 8px; margin-top: 4px; }
.ob-note input { flex: 1; min-width: 0; font-size: .85rem; padding: 4px 8px; }
.ob-steps li:not(:hover):not(:focus-within) .ob-note { display: none; }
.ob-steps li .ob-note input[value]:not([value=""]) { display: block; }
.ob-kit-total { text-align: right; display: grid; }
.ob-kit-total b { font-size: 1.6rem; }
.ob-kit .ob-kit-cat td { background: var(--soft); font-weight: 600; font-size: .8rem; color: var(--muted); }
.ob-qty { width: 70px; }
.ob-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ob-choice { display: flex; gap: 10px; border: 1px solid var(--line2); border-radius: var(--r2); padding: 14px; cursor: pointer; align-items: flex-start; }
.ob-choice:has(input:checked) { border-color: var(--sea); background: var(--sea-soft); }
.ob-choice span { display: grid; gap: 2px; }
.ob-choice small { color: var(--muted); }
.ob-newform { max-width: 820px; }
.ob-owner { margin-bottom: 20px; }
.ob-owner-todo { background: #fff8e6; border-radius: var(--r2); padding: 12px 14px; margin: 12px 0; }
.ob-owner-todo ul { margin: 6px 0 0; padding-left: 18px; }
.ob-owner-steps { padding-left: 18px; }
.ob-owner-steps .is-done { color: var(--muted); text-decoration: line-through; }
.table.stock input:not([type=checkbox]), .table.stock select { padding: 5px 7px; font-size: .85rem; }
.table.stock input[name^="name"], .stock-new input[name="new_name"] { width: 100%; min-width: 180px; }
.w-num { width: 74px; }
.w-cat { width: 130px; }
.nowrap { white-space: nowrap; }
.inline-label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 10px; }
@media (max-width: 960px) { .ob-board { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .ob-choose { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .compare .yes { font-size: 0; }
  .compare .yes::before { width: 7px; height: 13px; }
  .calc-seg { display: grid; grid-template-columns: repeat(3, 1fr); justify-self: stretch; }
  .calc-seg a { padding: 11px 6px; text-align: center; font-size: .85rem; }
}
