body { background: #f1eee8; }
.logo-m { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font: 500 19px var(--serif); flex: none; }
.logo-m.big { width: 56px; height: 56px; font-size: 30px; margin: 0 auto 12px; }

.login { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 20px; }
.login-card { background: var(--paper); border-radius: 18px; padding: 34px 28px; width: min(380px, 100%); display: grid; gap: 14px; text-align: center; }
.login-card h1 { font-size: 30px; letter-spacing: .08em; }
.login-card p { margin: -10px 0 6px; }
.login-card .field { text-align: left; }
.btn.block { width: 100%; }

.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.side-brand b { display: block; letter-spacing: .14em; font-size: 13px; }
.side-brand small { color: rgba(255,255,255,.5); }
#tabs { display: grid; gap: 4px; }
#tabs button { text-align: left; background: none; border: 0; color: rgba(255,255,255,.72); padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
#tabs button:hover { background: rgba(255,255,255,.06); color: #fff; }
#tabs button.on { background: rgba(201,169,110,.16); color: var(--gold-2); }
.badge { background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.side-foot { margin-top: auto; display: grid; gap: 8px; font-size: 14px; padding: 0 8px; }
.side-foot a, .linkish { color: rgba(255,255,255,.6); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: 14px; }
.side-foot a:hover, .linkish:hover { color: #fff; }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 10px; }
  #tabs { display: flex; overflow-x: auto; order: 3; width: 100%; }
  #tabs button { white-space: nowrap; padding: 8px 12px; gap: 6px; }
  .side-foot { display: none; }
}

.main { padding: 28px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.head h1 { font-size: 34px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-size: 13px; }
.stat b { display: block; font: 600 32px/1.2 var(--serif); color: var(--navy); }
.stat.hot { background: var(--navy); color: #fff; }
.stat.hot b { color: var(--gold-2); }
.stat.hot small { color: rgba(255,255,255,.6); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.box { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.box h2 { font-size: 22px; margin-bottom: 10px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: 14px; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters .input { max-width: 260px; padding: 8px 12px; font-size: 15px; margin-left: auto; }
.blist { display: grid; gap: 8px; }
.brow { background: #fff; border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: 1.4fr 1.3fr 1fr auto; gap: 12px; align-items: center; cursor: pointer; border: 1px solid transparent; text-align: left; width: 100%; font-size: 14.5px; }
.brow:hover { border-color: var(--gold); }
.brow b { display: block; font-size: 15.5px; }
.brow small { color: var(--muted); display: block; }
.brow .amt { font-weight: 600; text-align: right; }
@media (max-width: 700px) { .brow { grid-template-columns: 1fr auto; } .brow .hide-sm { display: none; } }
.mini { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; cursor: pointer; }
.mini:first-of-type { border-top: 0; }
.mini small { color: var(--muted); }

.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(520px, 100vw); background: var(--paper); box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer::backdrop { background: rgba(15,26,43,.45); }
#drawerBody { padding: 24px; display: grid; gap: 16px; }
.d-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.d-head h2 { font-size: 30px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14.5px; background: #fff; border-radius: 12px; padding: 14px 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.row-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.guidebox { background: #fff; border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; font-size: 14px; }
.guidebox code { word-break: break-all; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* calendar */
.cal-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.tl { display: grid; min-width: max-content; font-size: 12.5px; }
.tl .c { height: 44px; border-right: 1px solid #f0ece5; border-bottom: 1px solid #f0ece5; position: relative; }
.tl .uh { position: sticky; left: 0; z-index: 2; background: #fff; padding: 6px 12px; font-weight: 600; font-size: 13.5px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.tl .uh small { font-weight: 400; color: var(--muted); }
.tl .dh { text-align: center; padding-top: 4px; color: var(--muted); line-height: 1.25; }
.tl .dh b { display: block; color: var(--ink); font-size: 14px; }
.tl .we { background: #faf7f1; }
.tl .td { background: #fdf6e6; }
.bar { position: absolute; top: 7px; bottom: 7px; z-index: 1; border-radius: 6px; padding: 0 8px; color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 30px; cursor: pointer; border: 0; text-align: left; }
.bar.confirmed { background: var(--navy); }
.bar.completed { background: #6b7690; }
.bar.pending { background: var(--warn-bg); color: var(--warn); border: 1px dashed var(--warn); }
.bar.block { background: repeating-linear-gradient(135deg, #8d8578 0 6px, #9d958a 6px 12px); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin: 12px 0 18px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* units */
.ucard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; display: grid; gap: 16px; }
.ucard h2 { font-size: 26px; }
.ucard h3 { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 4px; }
.g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.ph { width: 128px; position: relative; }
.ph img { width: 128px; height: 96px; object-fit: cover; border-radius: 8px; }
.ph .pa { display: flex; justify-content: space-between; margin-top: 4px; }
.ph .pa button { background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--muted); }
.ph .pa button:hover { color: var(--ink); }
.ph .cover { position: absolute; top: 6px; left: 6px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.upload { width: 128px; height: 96px; border: 1.5px dashed var(--line); border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; }
.upload:hover { border-color: var(--gold); }
.wrow { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
@media (max-width: 600px) { .wrow { grid-template-columns: 1fr; } }
.ovr { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; cursor: pointer; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); }
.linkish.dark { color: var(--muted); text-align: center; font-size: 14px; }
.linkish.dark:hover { color: var(--ink); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.mailnote { font-size: 13px; color: var(--muted); }
.replace-confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 10px; }
.small { font-size: 13px; }
.linkform { align-items: center; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Stayflexi mode: bookings, calendar and rates are managed in Stayflexi */
.sf-mode [data-view="dash"], .sf-mode [data-view="bookings"], .sf-mode [data-view="calendar"], .sf-mode #csv, .sf-mode .rate-only { display: none !important; }

/* ---------- invoices & GST ---------- */
.tbl-wrap { overflow-x: auto; margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; background: #faf8f4; padding: 9px 10px; white-space: nowrap; }
.tbl td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tfoot td { font-weight: 600; background: #faf8f4; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .acts { white-space: nowrap; }
.tbl tr.void td { color: var(--muted); text-decoration: line-through; }
.tbl tr.void td.acts { text-decoration: none; }
.tbl.small-t { font-size: 14px; }
.tbl.small-t td { padding: 7px 4px; }
.b2b-row td { background: #faf8f4; }
.gold-l { color: var(--gold-ink) !important; font-weight: 600; }
.warn-card { border: 1px solid var(--warn); }
details.ucard summary { cursor: pointer; list-style: none; }
details.ucard summary::-webkit-details-marker { display: none; }
details.ucard summary::after { content: ' +'; color: var(--gold-ink); font-size: 22px; }
details.ucard[open] summary::after { content: ' –'; }
.cancel-confirm { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.box .tbl { margin-top: 4px; }
.gst-cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* ---------- channel manager ---------- */
.chan { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 1px 7px; border-radius: 99px; background: #eef1f7; color: #34507a; vertical-align: 1px; }
.pill.attn { background: #fde8e6; color: #a8322a; }
.attn-box { border: 1px solid #e7a59f; background: #fff8f7; margin-bottom: 18px; }
.attn-t { color: #a8322a; }
.attn-alert { margin: 12px 0; }
.bar.ob { background: repeating-linear-gradient(135deg, #c0392b 0 8px, #a8322a 8px 16px) !important; color: #fff !important; }
.movebox { margin: 14px 0; }
.movebox .input { max-width: 260px; }
.cm-prop .head h2 { margin: 0; }
.cm-state { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #bbb; }
.dot.ok { background: #2e8b57; } .dot.bad { background: #c0392b; } .dot.off { background: #bbb; }
.cm-map { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 10px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line); }
.cm-map:first-of-type { border-top: 0; }
@media (max-width: 720px) { .cm-map { grid-template-columns: 1fr; } }
.cm-setup ol { margin: 6px 0 0 18px; padding: 0; line-height: 1.7; }
.cm-setup code, .codeline { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #f4f1ea; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.logtbl td { font-size: 13px; }
.logtbl .bad td:first-child { box-shadow: inset 3px 0 0 #c0392b; }
.aio-rooms { font-size: 13px; margin-top: 10px; }
.aio-rooms code { cursor: pointer; }
.cm-providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.cm-providers .ucard { margin-bottom: 0; }
.cm-providers h2 { display: flex; gap: 8px; align-items: center; }
.cm-steps { margin: 6px 0 0 18px; padding: 0; line-height: 1.65; font-size: 14px; }
.cm-steps code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: #f4f1ea; padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.provider-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.prov { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 14px; cursor: pointer; background: #fff; }
.prov.on { border-color: var(--gold); background: #fbf6ea; font-weight: 600; }
.prov input { accent-color: var(--gold-ink); }
.zs-create { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--gold); border-radius: 10px; font-size: 14px; background: #fffdf8; }
.cm-providers { margin-bottom: 18px; }

/* ---------- Hostlane brand (design system: Hostlane by Myka Stays) ---------- */
.app h1, .app h2, .app h3, .onboard h1, .onboard h2 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.app h1 { font-size: 28px; line-height: 34px; }
.app h2 { font-size: 20px; line-height: 28px; }
.app h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.login-logo { width: 190px; margin: 0 auto 4px; }
.hl-mark { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.hl-word { font-family: var(--sans); font-weight: 700; font-size: 19px !important; letter-spacing: -0.02em !important; }
.hotel-sel { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 8px 10px; font-size: 14px; width: 100%; }
.hotel-sel option { color: var(--ink); }
.endorse { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 15px; margin-top: 6px; }
.lead { margin: -6px 0 18px; max-width: 72ch; }
.hotel-name { display: block; font-size: 14px; margin-top: 2px; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.roles-grid p { margin: 4px 0 0; }
.input.sm { padding: 6px 10px; font-size: 14px; width: auto; }
.ok-t { color: var(--ok); font-size: 14px; } .bad-t { color: var(--bad); font-size: 14px; }
textarea.mono-ish { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
pre.detail { white-space: pre-wrap; font-size: 12px; background: #f4f1ea; padding: 8px; border-radius: 8px; max-width: 520px; max-height: 240px; overflow: auto; }
details.prop-ed summary { cursor: pointer; list-style: none; }
details.prop-ed summary::-webkit-details-marker { display: none; }
.unit-ed, .add-unit { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.onboard { min-height: 100vh; background: var(--paper); padding: 40px 16px; }
.wizard { max-width: 760px; margin: 0 auto; text-align: center; }
.wizard .ucard { text-align: left; }
.wz-logo { width: 200px; margin: 0 auto 18px; }
.wz-unit { display: grid; grid-template-columns: 1.4fr 1fr .6fr .9fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) { .wz-unit { grid-template-columns: 1fr 1fr; } }
.stat b { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.side { overflow-y: auto; gap: 16px; }
#tabs { gap: 2px; }
#tabs button { padding: 8px 12px; font-size: 14.5px; }
.no-write [data-new], .no-write [data-st], .no-write [data-move], .no-write [data-resolve], .no-write #bEdit button, .no-write [data-noshow] { display: none !important; }
.no-rates [data-pane=units] form button, .no-rates [data-pane=units] [data-addov], .no-rates [data-pane=units] input[type=checkbox] { display: none !important; }

/* ---------- bill & payments ---------- */
.folio { margin: 16px 0; background: var(--card); border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); }
.folio-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.folio-head h3 { margin: 0; }
.folio-tbl td { padding: 7px 4px; font-size: 14px; }
.folio-tbl tr.sum td { font-weight: 600; border-top: 1px solid var(--line); }
.folio-tbl tr.sum.due td { font-size: 15px; }
.folio-tbl tr.pay td { color: var(--ok); }
.folio-tbl tr.void td { color: var(--muted); text-decoration: line-through; }
.folio-tbl tr.void td small { text-decoration: none; display: inline-block; }
.folio-acts { margin-top: 10px; flex-wrap: wrap; }
.folio-form { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.paylink { margin-top: 10px; background: #fbf6ea; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.paylink code { font-size: 13px; word-break: break-all; }
.due-t { color: var(--warn); font-weight: 600; } .paid-t { color: var(--ok); font-weight: 600; }
.amt small { display: block; }
.folio h3, .drawer h3 { font-family: var(--sans); font-weight: 600; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }

/* Front desk: guests & check-in, close the day */
.desk .g-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.desk .g-row:first-of-type { border-top: 0; }
.g-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; text-align: right; }
.gaps { margin: 8px 0 4px; padding: 8px 12px 8px 28px; background: #fdf3e2; border-radius: 8px; font-size: 13.5px; color: #8a5a12; }
.gaps.big { background: none; padding-left: 18px; color: inherit; font-size: 14.5px; }
.gaps li + li { margin-top: 4px; }
.due-t { color: var(--bad); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 .ucard { align-content: start; gap: 10px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.desk .g-row > div:first-child { flex: 1; min-width: 0; } .g-acts { max-width: 55%; }

/* Team & access */
.tm-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; margin-bottom: 18px; }
.tm-props .ucard { margin: 0; }
.tm-card { gap: 4px; align-content: start; }
.tm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.tm-head h2 { margin: 0; }
.tm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tm-who { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.tm-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold-2, #e8c98a); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.tm-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 13.5px; }
.role-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef0f4; color: #344; letter-spacing: .02em; }
.r-owner { background: var(--navy); color: #fff; } .r-manager { background: #e7ecf7; color: #23407a; } .r-frontdesk { background: #e6f4ee; color: #1f6b48; }
.r-accountant { background: #fbf1dc; color: #7a5413; } .r-operations { background: #efe9f8; color: #553089; } .r-housekeeping { background: #e9f3f7; color: #1e5f75; } .r-landlord { background: #fae8e3; color: #8a3a22; }
.tm-form { gap: 14px; border: 2px solid var(--gold); }
.role-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.role-opt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid; gap: 3px; background: #fff; }
.role-opt input { position: absolute; opacity: 0; pointer-events: none; }
.role-opt small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.role-opt.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: #f8f6f1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: 14px; background: #fff; display: inline-flex; gap: 6px; align-items: center; }
.chip-opt.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip-opt input { display: none; }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 18px; }
.perm { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 4px 0; cursor: pointer; }
.perm input { margin-top: 3px; }
.perm.off { color: var(--muted); cursor: default; }

/* Owner portal */
.own-month { min-width: 130px; text-align: center; }
.stmt { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.stmt td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.stmt tr.sub td { font-weight: 600; }
.stmt tr.tot td { font-weight: 700; font-size: 16px; border-bottom: 0; border-top: 2px solid var(--navy); }
.own-cal { overflow-x: auto; }
.own-cal-row { display: grid; grid-template-columns: 140px repeat(60, minmax(9px, 1fr)); gap: 2px; align-items: center; margin-bottom: 4px; }
.own-cal-row span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.own-cal-row i { height: 22px; border-radius: 3px; }
.own-cal-head i { height: auto; font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: visible; }
.s-b { background: var(--navy); } .s-o { background: var(--gold); } .s-x { background: #c9c3b8; } .s-f { background: #ece7de; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 10px; }
.legend i:first-child { margin-left: 0; }
@media print {
  body.printing-owner aside, body.printing-owner #tabs, body.printing-owner form, body.printing-owner .row-acts button { display: none !important; }
}
@media (max-width: 760px) { .tm-props { grid-template-columns: 1fr; } .tm-row { flex-direction: column; align-items: flex-start; } }
.tm-who { flex: 1; } .tm-acts { flex-wrap: nowrap; white-space: nowrap; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Billing */
.bill-banner { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; }
.bill-banner.trial { background: #f5efe2; color: #6b4f1d; }
.bill-banner.overdue { background: #fdf0dc; color: #7a4a0c; border: 1px solid #f0cf96; }
.bill-banner.paused { background: var(--bad-bg, #fbe9e7); color: var(--bad, #a3261b); border: 1px solid #efb9b2; }
.bill-banner .btn { flex: none; }
.bill-prop { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.bill-prop:first-of-type { border-top: 0; }
.bill-prop > span:nth-of-type(1) { flex: 1; }
.bill-prop input { width: 18px; height: 18px; }
