@font-face { font-family: Montserrat; src: url("../fonts/montserrat-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: Montserrat; src: url("../fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Montserrat; src: url("../fonts/montserrat-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Montserrat; src: url("../fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --black: #000;
  --ink: #141414;
  --muted: #5e5a54;
  --paper: #fafafa;
  --sand: #f3f0ea;
  --line: rgba(0,0,0,.12);
  --gold: #c89d52;
  --gold-deep: #9a7631;
  --gold-soft: #f3e7c8;
  --white: #fff;
  --danger: #8d2f2f;
  --ok: #1f6a45;
  --side: 248px;
  --shadow: 0 18px 50px rgba(0,0,0,.08);
  --sans: Montserrat, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); font-weight: 400; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2 { font-weight: 500; letter-spacing: -0.02em; margin: 0 0 .4rem; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.05rem; }
p { margin: 0 0 .7rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 20; }

.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100%; }
.side { background: #000; color: #f7f4ee; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #fff; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand strong { display: block; letter-spacing: .14em; font-weight: 500; font-size: .78rem; text-transform: uppercase; }
.brand small { display: block; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-size: .62rem; }
.brand-mark, .avatar { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); letter-spacing: .08em; font-size: .72rem; }
.side-kicker { margin: 0; color: #cfc6b6; letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #efeae2; padding: 10px 12px; border-left: 2px solid transparent; font-size: .92rem; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav a.is-on, .nav a:hover { background: rgba(255,255,255,.04); border-left-color: var(--gold); color: #fff; }
.account-side { display: none; }
.side-user { margin-top: auto; display: flex; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid rgba(200,157,82,.35); }
.side-user strong { display: block; font-weight: 500; }
.side-user small { color: #cfc6b6; }

.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: #fafafa; position: sticky; top: 0; z-index: 5; }
.top-note { margin: 0; color: var(--muted); font-size: .82rem; flex: 1; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: #000; color: #fff; border: 0; min-height: 40px; padding: 0 12px; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.content { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.banner { background: var(--gold-soft); border: 1px solid rgba(154,118,49,.35); padding: 10px 14px; margin: 0; }
.flash { padding: 10px 12px; margin: 0 0 10px; border: 1px solid var(--line); background: #fff; }
.flash-err { border-color: #8d2f2f; background: #fdecec; color: #6b1c1c; font-weight: 600; }
.flash-ok { border-color: rgba(31,106,69,.45); background: #f3f8f5; color: #1a4d32; }
.flash-ok { position: fixed; top: 16px; right: 16px; z-index: 80; min-width: 220px; max-width: min(360px, calc(100vw - 24px)); margin: 0; box-shadow: var(--shadow); }
.drawer-error { margin: 0 0 14px; }
.bar.just-saved { outline: 2px solid var(--gold, #c89d52); box-shadow: 0 0 0 4px rgba(200,157,82,.4); }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-size: .72rem; margin: 0 0 .35rem; }
.eyebrow a { color: var(--gold-deep); }
.fine, .hint { color: var(--muted); font-size: .82rem; }
.note { background: var(--sand); padding: 12px 14px; border-left: 3px solid var(--gold); }
.warn { background: #fff8ee; border: 1px solid rgba(154,118,49,.45); padding: 12px 14px; }
.panel { background: #fff; border: 1px solid var(--line); padding: 18px; }
.narrow { max-width: 640px; }
.page { display: flex; flex-direction: column; gap: 14px; }
.page-head, .cal-toolbar, .feed header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack.tight { margin-top: 12px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.split-page { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 16px; align-items: start; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; letter-spacing: .04em; }
input, select, textarea { background: #fff; border: 1px solid var(--line); padding: 10px 12px; min-height: 44px; width: 100%; }
textarea { min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid transparent; text-decoration: none; cursor: pointer; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; font-weight: 500; }
.btn-gold { background: linear-gradient(135deg, #dbbb6b, #c89d52 40%, #e8d17c); color: #000; }
.btn-dark { background: #111; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(141,47,47,.4); }
.check { flex-direction: row; align-items: center; gap: 8px; letter-spacing: 0; font-size: .92rem; }
.check input { width: auto; min-height: 0; }
.mono { font-family: ui-monospace, monospace; font-size: .82rem; letter-spacing: 0; }
.text-link { color: var(--gold-deep); text-decoration: none; font-size: .82rem; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: transparent; border: 0; min-width: 42px; min-height: 36px; cursor: pointer; }
.lang button.is-on { background: #000; color: #fff; }
.views { display: flex; gap: 0; border: 1px solid var(--line); width: fit-content; background: #fff; }
.views a { text-decoration: none; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; }
.views a.is-on { background: #111; color: #fff; }
.pager, .row-actions, .inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 0; }
.stats li, .stats a { background: #fff; border: 1px solid var(--line); padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.stats span { color: var(--ink); font-size: 1.4rem; letter-spacing: 0; text-transform: none; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.key { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; }
.key::before { content: ""; width: 18px; height: 10px; border-radius: 99px; background: #111; }
.key.is-import::before { background: #1f6f66; }
.key.is-maint::before { background: #6a5678; }
.key.is-block::before { background: #e7e2d8; border: 1px dashed #8a8378; }

.cal-page { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cal-scroll { overflow: auto; border: 1px solid var(--line); background: #fff; max-height: calc(100vh - 280px); }
.cal-table { min-width: calc(250px + var(--days) * 78px); }
.cal-hrow, .cal-prow { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.cal-hrow { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line); }
.ph, .pc { position: sticky; left: 0; background: #fff; z-index: 5; border-right: 1px solid var(--line); }
.ph { z-index: 5; padding: 10px 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.days, .cells, .bars { display: grid; grid-template-columns: repeat(var(--days), minmax(78px, 1fr)); }
.dh, .cell { min-height: 52px; border-left: 1px solid rgba(0,0,0,.05); padding: 8px 6px; }
.dh { display: flex; flex-direction: column; align-items: center; font-size: .75rem; color: var(--muted); }
.dh strong { color: var(--ink); font-size: 1rem; font-weight: 500; }
.dh.is-weekend, .cell.is-weekend { background: #fbfaf7; }
.pc { display: flex; gap: 10px; padding: 10px; align-items: center; }
.pc img, .thumb-fallback { width: 48px; height: 48px; object-fit: cover; background: var(--sand); flex: none; }
.thumb-fallback, .pcard-fallback { display: grid; place-items: center; color: var(--gold-deep); }
.pc > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.pc a { font-weight: 500; text-decoration: none; }
.pc-name { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.pc-name > a:not(.pc-listing) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pc-listing { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; color: var(--gold-deep); }
.pc-listing:hover, .pc-listing:focus { color: var(--ink); }
.cal-account-filter { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.cal-account-filter-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cal-account-filter select { width: auto; min-width: 220px; min-height: 40px; }
.cal-prow[hidden],
.cal-prow.is-account-hidden { display: none !important; }
.demo-pill { display: inline-block; margin-top: 3px; padding: 0 6px; border: 1px solid var(--gold-deep); color: var(--gold-deep); letter-spacing: .12em; text-transform: uppercase; font-size: .62rem; font-weight: 500; font-style: normal; }
.pc small, .pc em { display: block; color: var(--muted); font-style: normal; font-size: .75rem; }
.sync-error { color: var(--danger); }
.sync-ok { color: var(--ok); }
.sync-stale, .sync-never { color: var(--gold-deep); }
.track { position: relative; min-height: calc(16px + var(--lanes) * 40px); }
.cells { position: absolute; inset: 0; }
.cell { display: block; }
.bars { position: absolute; left: 0; right: 0; top: 8px; grid-auto-rows: 36px; row-gap: 4px; column-gap: 0; pointer-events: none; }
.bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box; margin: 0; margin-left: calc(100% * var(--inset-start, 0) / var(--span, 1) + (var(--inset-start, 0) * 2px)); margin-right: calc(100% * var(--inset-end, 0) / var(--span, 1) + (var(--inset-end, 0) * 2px)); padding: 0 10px; height: 34px; border-radius: 8px; text-decoration: none; color: #fff; overflow: hidden; min-width: 0; container-type: inline-size; }
.bar > span:not(.bar-badge), .bar small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar small { opacity: .8; font-size: .72rem; }
.bar.is-direct { background: #161616; box-shadow: inset 3px 0 0 var(--gold); }
.bar.is-import { background: #1f6f66; }
.bar.is-maint { background: #6a5678; }
.bar.is-block { background: #ece7de; color: #2c2a26; border: 1px dashed #b3ab9e; }
.bar.is-stay { background: #3a4946; color: #fff; }
.bar.has-conflict { outline: 2px solid var(--danger); }
@container (max-width: 150px) { .bar small { display: none; } }
/* Keep the guest name on short one-night bars; tighten the badge so more of the name fits. */
@container (max-width: 140px) {
  .bar { padding: 0 5px; gap: 4px; }
  .bar > span:not(.bar-badge) { font-size: .7rem; }
}
.bar.continues-left { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.continues-right { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
.scrim-close { position: absolute; inset: 0; }
.drawer { position: absolute; top: 0; right: 0; width: min(440px, 100%); height: 100%; background: #fff; overflow: auto; padding: 22px; box-shadow: var(--shadow); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer-head a { color: var(--gold-deep); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; min-height: 100%; }
.pcard img, .pcard-fallback { aspect-ratio: 4/3; object-fit: cover; background: var(--sand); }
.pcard span { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.pcard small, .pcard em { color: var(--muted); font-style: normal; font-size: .8rem; }
.hero-photo { width: 100%; max-height: 220px; object-fit: cover; margin-bottom: 10px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filters label { min-width: 160px; }
.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.plain small { display: block; color: var(--muted); }
.feed { border-top: 1px solid var(--line); padding: 12px 0; }
.feed-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 8px; }
.feed-actions .btn { width: 100%; height: auto; min-height: 42px; white-space: normal; line-height: 1.3; padding: 8px 12px; }
.empty { color: var(--muted); }
.pager-pages { display: flex; gap: 12px; align-items: center; }

.auth-body { min-height: 100%; background: #000; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-panel { color: #f7f4ee; padding: 64px 48px; display: flex; flex-direction: column; justify-content: flex-end; background:
  radial-gradient(800px 400px at 20% 20%, rgba(200,157,82,.25), transparent 60%), #000; }
.auth-panel h1 { font-weight: 400; font-size: 3rem; letter-spacing: -.03em; }
.brand-lockup { display: flex; align-items: center; gap: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-size: .78rem; }
.brand-lockup img { height: 56px; width: auto; display: block; }
.auth-note { color: #d9d0c3; max-width: 36rem; }
.auth-card { background: var(--paper); padding: 48px 36px; display: flex; flex-direction: column; justify-content: center; }
.auth-card h2 { font-weight: 500; font-size: 1.6rem; }
.lang-auth { align-self: flex-end; margin-bottom: 18px; }

@media (max-width: 980px) {
  .split-page, .auth-shell, .stats { grid-template-columns: 1fr; }
  .auth-panel { min-height: 220px; padding: 28px 22px; }
  .auth-panel h1 { font-size: 2rem; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; transform: translateX(-105%); transition: transform .2s ease; width: 100%; max-width: 420px; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  body.nav-open .side { transform: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .top-note, .account-link { display: none; }
  .account-side { display: block; color: #f0de87; text-decoration: none; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; padding: 8px 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li, .stats a { padding: 8px 10px; }
  .stats span { font-size: 1.15rem; }
  .top-actions { margin-left: auto; }
  .cal-hrow, .cal-prow { grid-template-columns: 148px minmax(0, 1fr); }
  .cal-table { min-width: calc(148px + var(--days) * 64px); }
  .days, .cells, .bars { grid-template-columns: repeat(var(--days), minmax(64px, 1fr)); }
  .pc small { display: none; }
  .pc img, .thumb-fallback { width: 36px; height: 36px; }
  .pc a { font-size: .82rem; line-height: 1.25; }
  .content { padding: 14px; }
  .cal-scroll { max-height: calc(100vh - 230px); }
}
@media (prefers-reduced-motion: reduce) {
  .side { transition: none; }
}


.btn-new-direct { white-space: nowrap; font-weight: 600; box-shadow: 0 0 0 1px rgba(200,157,82,.35); }
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: space-between; align-items: flex-end; }
.toolbar-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.cal-jump { display: flex; gap: 8px; align-items: end; }
.cal-jump label { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-jump input[type=date] { min-height: 40px; width: auto; }
.cal-head { position: sticky; top: 0; z-index: 6; background: #fff; }
.cal-head .cal-hrow { position: static; }
.cal-months { border-bottom: 0; }
.cal-months .ph { border-bottom: 1px solid var(--line); }
.months { display: grid; grid-template-columns: repeat(var(--days), minmax(52px, 1fr)); }
.mh { padding: 6px 8px 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; border-left: 1px solid rgba(0,0,0,.08); white-space: nowrap; overflow: visible; min-height: 1.6em; }
.mh > span { position: sticky; left: 262px; display: inline-block; background: #fff; padding-right: 12px; }
.cal-table.is-timeline { min-width: calc(250px + var(--days) * 52px); }
.cal-table.is-timeline .days,
.cal-table.is-timeline .cells,
.cal-table.is-timeline .bars,
.cal-table.is-timeline .months { grid-template-columns: repeat(var(--days), minmax(52px, 1fr)); }
.cell-price { display: block; margin-top: 22px; font-size: .64rem; color: var(--muted); letter-spacing: .01em; text-align: center; pointer-events: none; white-space: nowrap; max-width: 100%; overflow: hidden; }
.dh { position: relative; }
.bar-badge { flex: none; width: 22px; height: 22px; border-radius: 99px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; }
.bar-badge img { width: 16px; height: 16px; display: block; object-fit: contain; }
.bar-badge.is-ag { background: var(--gold, #c89d52); }
.bar-badge.is-airbnb { background: #FF5A5F; }
.bar-badge.is-airbnb img { width: 22px; height: 22px; }
.cal-tip { position: fixed; z-index: 50; min-width: 220px; max-width: 300px; background: #111; color: #f7f4ee; padding: 12px 14px; box-shadow: var(--shadow); pointer-events: auto; font-size: .88rem; line-height: 1.4; }
.cal-tip[hidden] { display: none; }
.cal-tip strong { display: block; font-weight: 500; margin-bottom: 4px; }
.cal-tip .tip-meta { color: #d9d0c3; font-size: .8rem; }
.cal-tip a { color: var(--gold); }
.cal-tip p { margin: 2px 0; }
@media (max-width: 980px) {
  .cal-table.is-timeline { min-width: calc(148px + var(--days) * 48px); }
  .cal-table.is-timeline .days,
  .cal-table.is-timeline .cells,
  .cal-table.is-timeline .bars,
  .cal-table.is-timeline .months { grid-template-columns: repeat(var(--days), minmax(48px, 1fr)); }
  .btn-new-direct { width: 100%; text-align: center; }
  .mh > span { left: 156px; }
  .cell-price { font-size: .58rem; margin-top: 18px; }
}

.cal-table { position: relative; }
.cal-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #E0245E; pointer-events: none; transform: translateX(-50%); }
.cal-now-body { z-index: 4; }
.cal-head .cal-days { position: relative; }
.cal-now-head { z-index: 1; }
.cal-now-dot { position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #E0245E; transform: translateX(-50%); box-shadow: 0 0 0 2px #fff; }

fieldset.money-fields { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
input.money-balance { background: #f4f1ea; color: inherit; cursor: default; }

.bar-badge.is-letter { background: #1f3b4d; color: #fff; font-size: 10px; font-weight: 700; line-height: 22px; text-align: center; }

.bar-badge.is-other { background: #3b5a72; }
.bar-badge.is-other img { width: 13px; height: 13px; }

.invite-link-dialog { border: 1px solid var(--line); border-radius: 16px; padding: 24px; max-width: 560px; width: calc(100% - 32px); background: #fff; color: var(--ink); box-shadow: 0 16px 48px rgba(20,16,10,.18); }
.invite-link-dialog::backdrop { background: rgba(20,16,10,.45); }
.invite-link-dialog h2 { margin: 0 0 8px; }
.invite-link-dialog .fine { margin: 0 0 14px; }
.invite-link-field { margin: 0 0 16px; }
.invite-link-url { font-size: .82rem; letter-spacing: 0; word-break: break-all; }

/* Set-password page (invite link) */
.auth-setpass .auth-panel h1 { font-size: 2.4rem; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 36px; color: var(--ink); text-decoration: none; }
.lang a.is-on { background: #000; color: #fff; }
.setpass-form label small { display: block; margin-top: 4px; font-weight: 400; }
.input-locked, .input-locked:focus { background: var(--sand); color: var(--muted); border-style: dashed; cursor: not-allowed; outline: none; }
.setpass-invalid h2 { margin-bottom: 12px; }
.team-setpass summary { cursor: pointer; list-style: none; display: inline-block; }
.team-setpass summary::-webkit-details-marker { display: none; }
.team-setpass[open] { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.team-setpass form { display: grid; gap: 8px; margin-top: 8px; min-width: 220px; }
.team-setpass input { width: 100%; }
@media (max-width: 980px) {
  .auth-setpass .auth-shell { grid-template-rows: auto 1fr; }
  .auth-setpass .auth-panel { min-height: 0; padding: 22px 22px 18px; }
  .auth-setpass .auth-card { justify-content: flex-start; padding: 24px 22px 40px; }
  .auth-setpass .auth-panel h1 { font-size: 1.6rem; margin: 10px 0 4px; }
  .auth-setpass .auth-panel p:not(.brand-lockup) { font-size: .9rem; margin: 0; }
}

.access-groups { border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.access-groups legend { padding: 0 6px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.access-group-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.access-group-head .btn { min-height: 32px; padding: 0 10px; letter-spacing: .08em; }
.access-checks { display: flex; flex-direction: column; gap: 6px; }
.team-access { margin-top: 0; }
.team-access > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; }
.team-access > summary::-webkit-details-marker { display: none; }
.team-access[open] { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 260px; }
.team-access .access-groups { margin-top: 8px; }
.team-access label { display: block; }
.team-access label input[type=text], .team-access label input:not([type]), .team-access label input[type=email] { width: 100%; }

.clean-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.clean-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--paper, #fff); }
.clean-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.clean-card-head h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.clean-when { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.clean-label { margin: 0 0 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.clean-date { margin: 0; font-size: 1.05rem; font-weight: 600; }
.clean-time { margin: 2px 0 0; color: var(--muted); }
.clean-muted { font-weight: 500; color: var(--muted); }
.same-day-badge { display: inline-block; background: #1a1a1a; color: #f3c56b; border-radius: 999px; padding: 4px 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.clean-card.is-same-day { border-color: #c9a227; background: #fff8e6; box-shadow: 0 0 0 1px #c9a227; }
@media (max-width: 640px) {
  .clean-when { grid-template-columns: 1fr; gap: 10px; }
}

/* Finanzas dashboard */
.fin-asof { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.fin-page .note + .note { margin-top: 8px; }
.fin-filters { margin: 18px 0 24px; align-items: flex-start; }
.fin-houses { border: 1px solid var(--line); padding: 10px 12px; margin: 0; min-width: 280px; max-width: 640px; background: #fff; }
.fin-houses-label { margin: 8px 0 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fin-houses-label:first-child { margin-top: 0; }
.fin-check-row { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fin-check { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; letter-spacing: 0; text-transform: none; margin: 0; min-width: 0; }
.fin-check input { width: 16px; height: 16px; margin: 0; flex: none; }
.fin-other { margin-top: 8px; }
.fin-other summary { cursor: pointer; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fin-other .fin-check-row { margin-top: 6px; }
.fin-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 12px 0 18px; }
.fin-stats-compact span { font-size: 1.05rem; }
.fin-house { margin: 0 0 28px; }
.fin-house-head h3 { margin: 0 0 8px; font-size: 1.15rem; }
.fin-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fin-table th, .fin-table td { padding: 8px 10px; text-align: right; white-space: nowrap; }
.fin-table th:first-child, .fin-table td:first-child { text-align: left; }
.fin-draft-row { background: #fff8e6; }
.fin-badge { display: inline-block; margin-left: 6px; background: #1a1a1a; color: #f3c56b; border-radius: 999px; padding: 1px 8px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; vertical-align: middle; }
.fin-na { color: var(--muted); font-style: italic; }
.fin-vs { color: var(--muted); }
.fin-alerts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.fin-alert { border: 1px solid var(--line); border-left-width: 3px; padding: 10px 12px; background: #fff; }
.fin-alert-high { border-left-color: #9a2f2f; background: #fff5f5; }
.fin-alert-warn { border-left-color: var(--gold-deep); background: #fff8e6; }
.fin-alert-info { border-left-color: #555; }
.fin-rows { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
@media (max-width: 640px) {
  .fin-stats { grid-template-columns: 1fr 1fr; }
  .fin-filters { flex-direction: column; }
}

.fin-est { display: block; margin-top: 2px; font-size: .72rem; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; }
.fin-badge-est { background: #f3e7c8; color: #6a4f16; }
.fin-share-note { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.fin-partner-table { max-width: 520px; margin: 0 0 16px; }
.fin-house-head h4 { margin: 12px 0 4px; font-size: 1rem; }
.fin-alerts-priority { max-height: none; }
.fin-alert-priority { border-left-color: #9a2f2f; background: #fff5f5; }
