:root {
  --bg: #f4f2ec; --card: #fff; --ink: #1c2422; --muted: #5f6b67; --line: #e3e0d7;
  --brand: #1f3a34; --brand-2: #2f6b55; --brand-soft: #e6efe9; --accent: #b58b3c;
  --green: #1e7a46; --green-bg: #e3f3e8; --amber: #8a5a00; --amber-bg: #fdf0d2; --red: #b42318; --red-bg: #fde7e4;
  --blue: #1d4f91; --blue-bg: #e4edfa; --teal: #0f6466; --teal-bg: #ddf1f0; --grey: #4b5552; --grey-bg: #eceae4;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 4px 14px rgba(20, 30, 28, .05);
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
body.noscroll { overflow: hidden; }
a { color: var(--brand-2); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.08rem; }
h3.sub { font-size: .9rem; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.center { text-align: center; }
.pre { white-space: pre-wrap; margin: 0; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.red-text { color: var(--red); }
:focus-visible { outline: 3px solid #7fb8a1; outline-offset: 2px; }
.ic { flex: none; }
.lock { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, #2f6b55 0%, #1f3a34 55%, #152923 100%); }
.lock-card { width: 100%; max-width: 360px; background: #fff; border-radius: 20px; padding: 32px 26px 26px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.lock-logo { border-radius: 14px; }
.lock-card h1 { margin: 14px 0 6px; font-size: 1.45rem; }
.lock-card p { margin: 0 0 18px; }
.lock-card input[type=password] { width: 100%; font-size: 1.1rem; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 12px; text-align: center; }
.lock-msg { color: var(--red); min-height: 1.4em; margin: 12px 0 0 !important; font-size: .92rem; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; background: var(--brand); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.05rem; letter-spacing: .01em; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.brand b { font-weight: 700; color: #d9c48f; }
.topbar-actions { display: flex; gap: 4px; }
.topbar .icon-btn { color: #fff; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h); color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; }
.nav a.on { color: var(--brand-2); }
.nav a.on svg { stroke-width: 2.4; }
main { max-width: 1180px; margin: 0 auto; padding: 18px 14px calc(var(--nav-h) + var(--safe-b) + 28px); outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.page-head p { margin: 4px 0 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; border: 1px solid rgba(0, 0, 0, .03); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head .total { font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #cfcabd; background: #fbfaf7; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.primary:hover { background: var(--brand); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #f1c3be; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .86rem; border-radius: 9px; }
.btn.block { width: 100%; min-height: 50px; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; text-decoration: none; }
.icon-btn:hover { background: var(--grey-bg); }
.icon-btn.flip svg { transform: scaleX(-1); }
.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--brand-2); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.light { color: #d9c48f; margin-left: 12px; }
.link { font-weight: 600; font-size: .9rem; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.grey { background: var(--grey-bg); color: var(--grey); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.teal { background: var(--teal-bg); color: var(--teal); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot.green { background: var(--green); } .dot.amber { background: #d99a1e; } .dot.red { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 10px; margin: 0 -14px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip.small { min-height: 34px; font-size: .84rem; padding: 0 12px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .count { opacity: .7; font-weight: 700; margin-left: 2px; }
.empty { text-align: center; padding: 34px 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border-top: 4px solid var(--line); min-width: 0; }
.stat.good { border-top-color: #7cc49b; } .stat.bad { border-top-color: var(--red); } .stat.warn { border-top-color: #e0a526; }
.stat-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-num { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-num small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.stat.bad .stat-num { color: var(--red); }
.stat-sub { font-size: .8rem; color: var(--muted); }
.dash-grid { display: grid; gap: 0 14px; }
.co-table { display: flex; flex-direction: column; }
.co-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.co-row.head { display: none; }
.co-row.head + .co-row { border-top: 0; }
.co-row .co-name { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.co-row [data-l]::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.co-row:hover .co-name strong { color: var(--brand-2); }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.list > .row:first-child { border-top: 0; }
.row-main { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; flex: 1; }
.row-main strong { overflow-wrap: anywhere; }
a.row-main:hover strong { color: var(--brand-2); }
.row-side { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.ok-line { margin: 4px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; min-height: 48px; padding: 0 14px 0 42px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.group { margin-bottom: 18px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 8px; gap: 8px; }
.prop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prop-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.prop-card:hover { box-shadow: 0 0 0 2px #cfe2d8, var(--shadow); }
.prop-card > .ic { color: #b0b6b3; }
.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.thumb.ph { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); }
.prop-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.prop-body strong { overflow-wrap: anywhere; }
.pad { padding: 6px 2px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; font-weight: 600; text-decoration: none; }
.prop-hero { padding: 0; overflow: hidden; }
.hero-img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.hero-body { padding: 16px; }
.hero-body p { margin: 4px 0 0; }
.hero-body .btn-row { margin-top: 12px; }
.eyebrow { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.hero-body h1 { margin-top: 3px; font-size: 1.35rem; overflow-wrap: anywhere; }
.facts { margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.facts .wide { grid-column: 1 / -1; }
.facts div { min-width: 0; }
.facts dt { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.past { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.past summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.arrears-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; }
.arrears-bar.bad { background: var(--red-bg); color: var(--red); }
.arrears-bar.good { background: var(--green-bg); color: var(--green); }
.arrears-bar strong { font-size: 1.1rem; }
.rent-list { list-style: none; margin: 0; padding: 0; }
.rent-list.collapsed .older { display: none; }
.rent-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.rent-list > .rent-row:first-child { border-top: 0; }
.rent-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink); cursor: pointer; }
.rent-main strong { overflow-wrap: anywhere; }
.rent-main:hover strong { color: var(--brand-2); }
.rent-side { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; max-width: 55%; }
.month-nav { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; margin-bottom: 12px; }
.cert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cert { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 11px; border: 1px solid var(--line); border-left: 5px solid var(--line); }
.cert.green { border-left-color: var(--green); } .cert.amber { border-left-color: #e0a526; background: #fffaf0; } .cert.red { border-left-color: var(--red); background: #fff7f6; }
.cert.missing { border-style: dashed; border-left-style: solid; border-left-color: #c9c4b6; }
.cert.old { opacity: .65; }
.cert-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
div.cert-main { cursor: default; }
.doc-link { flex-direction: row; align-items: center; gap: 10px; }
.doc-txt { display: flex; flex-direction: column; min-width: 0; }
.doc-txt strong { overflow-wrap: anywhere; }
.doc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-2); flex: none; }
.overlay { position: fixed; inset: 0; background: rgba(15, 22, 20, .45); z-index: 40; animation: fade .15s; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: up .2s ease-out; outline: none; }
.sheet form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-body { padding: 14px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.sheet-body > p { margin-top: 0; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: #fff; }
.form-err { flex-basis: 100%; color: var(--red); font-weight: 600; margin: 0; }
.form-err:empty { display: none; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }
.field.half { grid-column: span 1; }
.field label, .field legend { font-size: .86rem; font-weight: 650; color: #39433f; }
.req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.field input[type=file] { padding: 9px; font-size: .9rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-2); outline: none; box-shadow: 0 0 0 3px #d6e9df; }
.field textarea { resize: vertical; }
.help { margin: 0; font-size: .8rem; color: var(--muted); }
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money input { padding-left: 26px; }
.radios { border: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.radios legend { width: 100%; margin-bottom: 5px; padding: 0; }
.radio { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.radio input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--brand-2); }
.radio:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.field.check .radio { width: 100%; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px); opacity: 0; transition: .2s; background: #1c2422; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); font-weight: 600; font-size: .92rem; max-width: calc(100vw - 28px); display: flex; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts .wide { grid-column: 1 / -1; }
  .co-row { grid-template-columns: 1.7fr 1.1fr .8fr 1fr 1fr 1.1fr; align-items: center; }
  .co-row.head { display: grid; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 0; border-top: 0; }
  .co-row.head + .co-row { border-top: 1px solid var(--line); }
  .co-row .co-name { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 0; }
  .co-row [data-l]::before { display: none; }
}
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 40px)); max-height: 88vh; border-radius: 18px; animation: fade .15s; }
  .chips { margin: 0 0 6px; padding-left: 2px; padding-right: 2px; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  body { padding-left: 232px; }
  .topbar { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 22px 14px; }
  .topbar-actions { position: absolute; bottom: 18px; left: 14px; }
  .nav { position: fixed; z-index: 21; top: 84px; left: 0; bottom: auto; right: auto; width: 232px; flex-direction: column; background: transparent; border: 0; padding: 0 12px; gap: 2px; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 11px; font-size: .95rem; color: #c5d3cd; }
  .nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .nav a.on { background: rgba(255, 255, 255, .12); color: #fff; }
  main { padding: 28px 28px 40px; }
  .toast { bottom: 24px; }
  .dash-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .prop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .prop-list { grid-template-columns: 1fr 1fr; }
  .prop-hero { display: flex; }
  .prop-hero > a { flex: 0 0 300px; }
  .hero-img { height: 100%; max-height: 220px; }
}
@media (min-width: 1300px) { .prop-list { grid-template-columns: 1fr 1fr 1fr; } }

/* Tenants */
.nav .l-short { display: none; }
@media (max-width: 459px) { .nav .l-long { display: none; } .nav .l-short { display: inline; } .nav a { font-size: .68rem; } }
.ten-filters .chips { margin-bottom: 0; padding-bottom: 6px; gap: 6px; }
.ten-filters .chip { min-height: 32px; padding: 0 12px; font-size: .82rem; font-weight: 500; border: 1px solid var(--line); color: var(--muted); background: transparent; }
.ten-filters .chip.on { background: var(--brand-soft); border-color: transparent; color: var(--brand-2); font-weight: 600; }
.ten-filters .chip .count { font-weight: 500; }
.ten-filters { margin-bottom: 10px; }
.search.lite input { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.7); font-size: .95rem; }
.ten-group { margin: 18px 0 8px; }
.ten-co { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 4px 8px; }
.ten-co span { opacity: .7; font-weight: 500; margin-left: 4px; }
.ten-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.ten-row { border-top: 1px solid var(--line); min-width: 0; }
.ten-row:first-child { border-top: 0; }
.tr-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px 14px 16px; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-height: 60px; }
.tr-head:active { background: rgba(0,0,0,.03); }
.tr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-prop { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.tr-who { color: var(--muted); font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
.tr-chev { flex: none; color: var(--muted); display: flex; transition: transform .18s ease; transform: rotate(90deg); opacity: .7; }
.ten-row.open .tr-chev { transform: rotate(-90deg); }
.ten-row.open { background: #fbfcfb; }
.tr-body { padding: 0 16px 10px; }
.tr-badges { margin: 0 0 10px; }
.tc-addr { margin: 4px 0 10px; align-items: center; }
.tc-addr a { flex: 1; min-width: 0; display: flex; gap: 6px; align-items: flex-start; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.tc-addr a .ic { flex: none; margin-top: 2px; color: var(--muted); }
.tc-contact { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tc-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); font-weight: 600; font-size: .88rem; text-decoration: none; max-width: 100%; }
.tc-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tc-link .ic { flex: none; }
.tc-facts { gap: 12px 12px; margin-bottom: 4px; }
.tc-facts dd { font-size: .93rem; line-height: 1.35; }
.tc-facts .small, .ten-row .small { font-size: .8rem; }
.tr-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.tc-open { display: flex; align-items: center; gap: 2px; min-height: 40px; font-weight: 600; font-size: .88rem; color: var(--brand-2); text-decoration: none; }
@media (min-width: 900px) { .ten-list { max-width: 760px; } .tc-facts { grid-template-columns: 1fr 1fr 1fr; } }

@media print { .nav, .topbar, .btn, .icon-btn { display: none !important; } body { padding: 0; background: #fff; } }
.more-line { margin: 8px 0 0; }

.addr-line{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}
.addr-line strong{flex:1;min-width:0}
.copy-btn{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:4px;font:inherit;font-size:12px;font-weight:600;line-height:1;padding:0;width:32px;height:32px;border-radius:999px;border:1px solid rgba(0,0,0,.15);background:#fff;color:inherit;cursor:pointer;position:relative;z-index:1}
.copy-btn:active{transform:scale(.96)}

.tr-empty { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.empty-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--grey-bg); color: var(--grey); font-size: .78rem; font-weight: 600; letter-spacing: .01em; }
.empty-mkt { color: var(--muted); font-size: .85rem; }
.empty-row .tr-prop { color: var(--muted); }

/* ---------- To do ---------- */
.nav-ic { position: relative; display: inline-flex; }
.nav-badge { position: absolute; top: -5px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff; }
@media (min-width: 960px) { .nav-badge { box-shadow: none; top: -4px; } }
.td-wrap { max-width: 760px; }
.td-group { padding: 12px 14px 6px; }
.td-ghead { display: flex; align-items: center; gap: 9px; padding: 2px 0 8px; }
.td-ghead h2 { font-size: 1rem; }
.td-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }
.pr-urgent .td-dot { background: #d8473b; } .pr-important .td-dot { background: #d69a1f; } .pr-normal .td-dot { background: #4f7fc0; } .pr-later .td-dot { background: #a7aca8; }
.td-count { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--grey-bg); border-radius: 999px; padding: 1px 8px; }
.pr-urgent .td-ghead .td-count { background: var(--red-bg); color: var(--red); }
.pr-important .td-ghead .td-count { background: var(--amber-bg); color: var(--amber); }
.td-gadd { margin-left: auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.td-gadd:hover { background: var(--grey-bg); }
.td-list { margin: 0 -4px; }
.td-row { display: flex; align-items: flex-start; gap: 4px; border-top: 1px solid var(--line); padding: 4px 0; }
.td-list > .td-row:first-child { border-top: 0; }
.td-tick { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.td-tick svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; border: 2px solid #b9beb9; color: transparent; stroke-width: 3; transition: background .15s, border-color .15s, color .15s; }
.pr-urgent .td-tick svg { border-color: #e2928a; } .pr-important .td-tick svg { border-color: #e3bf73; }
.td-tick:hover svg { color: #b9beb9; }
.td-row.is-done .td-tick svg { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.td-main { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 12px 6px 12px 2px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; border-radius: 10px; }
.td-main:hover .td-title { color: var(--brand-2); }
.td-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.td-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .82rem; color: var(--muted); }
.td-meta .ic { vertical-align: -2px; margin-right: 3px; }
.td-prop { display: inline-flex; align-items: center; }
.td-due.soon { color: var(--amber); font-weight: 650; } .td-due.late { color: var(--red); font-weight: 700; }
.td-note { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-row.is-done .td-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.td-row.ticking { opacity: .55; transition: opacity .35s; }
.td-done { padding: 0; }
.td-done summary { display: flex; align-items: center; gap: 9px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 700; }
.td-done summary::-webkit-details-marker { display: none; }
.td-chev { margin-left: auto; color: var(--muted); display: inline-flex; transition: transform .15s; }
.td-done[open] .td-chev { transform: rotate(90deg); }
.td-done .td-list { padding: 0 14px 6px; margin: 0; border-top: 1px solid var(--line); }
.td-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.td-seg label { position: relative; }
.td-seg input { position: absolute; opacity: 0; pointer-events: none; }
.td-seg span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .86rem; font-weight: 650; cursor: pointer; background: #fff; }
.td-seg .td-dot { width: 8px; height: 8px; }
.td-seg input:checked + span { border-color: var(--brand-2); background: var(--brand-soft); color: var(--brand); }
.td-seg input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.td-prs { border: 0; padding: 0; }
@media (max-width: 380px) { .td-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Calendar (2026-11-02) */
.nav a[data-wide] { display: none; }
@media (min-width: 700px) { .nav a[data-wide] { display: flex; } }
.cal-head { align-items: center; }
.cal-head .cal-open { flex: none; }
.cal-card { padding: 6px 16px 10px; }
.cal-day { padding: 10px 0 6px; border-top: 1px solid var(--line); }
.cal-day:first-child { border-top: 0; }
.cal-date { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.cal-count { font-weight: 600; font-size: .78rem; color: var(--muted); }
.cal-day.is-today { background: var(--brand-soft); margin: 4px -10px 6px; padding: 10px 10px 8px; border-radius: 12px; border-top: 0; }
.cal-day.is-today + .cal-day { border-top: 0; }
.cal-day.is-today .cal-date { color: var(--brand-2); }
.cal-none { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cal-row { display: flex; gap: 10px; background: #faf9f6; border-radius: 10px; padding: 9px 11px 9px 0; min-width: 0; }
.is-today .cal-row { background: #fff; }
.cal-bar { flex: none; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, #64748b); }
.cal-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.cal-title { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.cal-meta { font-size: .8rem; color: var(--muted); }
.cal-meta b { color: var(--ink); font-weight: 600; }
.cal-note { font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-row.is-done .cal-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.cal-tick { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: var(--green); }
.cal-od .cal-row { background: var(--red-bg); }
.cal-warn { background: var(--amber-bg); }
.cal-warn p { margin: 0 0 8px; }
.cal-dash-od { margin: 0 0 8px; }
.cal-dash-od a { text-decoration: none; }
.card-head h2 .ic { vertical-align: -3px; margin-right: 4px; }
.center-row { justify-content: center; margin-bottom: 8px; }

/* 2026-11-02: Calendar page = the full Highpines Calendar in a frame, filling the space under the header and above the bottom bar */
.cal-wrap { position: fixed; z-index: 10; left: 0; right: 0; top: var(--cal-top, 60px); bottom: calc(var(--nav-h) + var(--safe-b)); background: var(--bg, #f4f2ee); }
.cal-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.cal-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted); font-weight: 600; }
.cal-msg[hidden] { display: none; }
body.cal-mode main { display: none; }
html:has(body.cal-mode), body.cal-mode { overflow: hidden; overscroll-behavior: none; }
@media (min-width: 960px) { .cal-wrap { top: 0; left: 232px; bottom: 0; } }

/* Utilities (2026-11-03) */
.util-facts { gap: 8px 14px; margin-bottom: 6px; }
.util-facts dd { font-size: .95rem; }
.u-unk { color: var(--muted); font-style: italic; font-size: .9rem; }
.u-pay { display: block; }
.util-upd { margin: 4px 0 0; }
.util-sec { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.util-sec summary { cursor: pointer; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.u-sec { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 8px; }
.u-sec span { opacity: .7; font-weight: 500; margin-left: 4px; }
.u-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.u-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.u-row.waiting { background: #fbfaf7; }
.u-link { display: flex; flex-direction: column; gap: 6px; padding: 11px 13px; color: inherit; text-decoration: none; }
.u-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.u-name { display: flex; flex-direction: column; min-width: 0; }
.u-name strong { overflow-wrap: anywhere; }
.u-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: .86rem; }
.u-cell { min-width: 0; overflow-wrap: anywhere; }
.u-cell.wide { grid-column: 1 / -1; }
.u-cell b { font-weight: 600; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.u-blank { color: var(--amber); font-weight: 700; }
@media (min-width: 900px) { .u-list { grid-template-columns: 1fr 1fr; } }

/* Repairs (2026-11-03) */
.rp-list { list-style: none; margin: 0; padding: 0; }
.rp-item { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.rp-list > .rp-item:first-child { border-top: 0; padding-top: 2px; }
.rp-main { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; border-radius: 8px; }
.rp-main:focus-visible { outline: 3px solid #7fb8a1; outline-offset: 2px; }
.rp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rp-top strong { overflow-wrap: anywhere; font-weight: 650; }
.rp-prop { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rp-det { color: #39433f; overflow-wrap: anywhere; }
.rp-item.fixed .rp-top strong { color: #39433f; font-weight: 600; }
.rp-who { display: flex; align-items: center; gap: 4px; color: var(--muted); flex-wrap: wrap; }
.rp-who a { font-weight: 600; }
.rp-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-thumb { width: 58px; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--grey-bg); cursor: zoom-in; flex: none; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-more { font-weight: 700; color: var(--muted); font-size: .9rem; }
.rp-none { margin: 0 0 6px; }
.rp-group { padding-top: 12px; padding-bottom: 6px; margin-bottom: 10px; }
.rp-gh { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); text-decoration: none; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.rp-gh .ic { color: var(--muted); }
.rp-totals .row { padding: 9px 0; }
.rp-totals p { margin: 8px 0 0; }
.flabel { font-size: .86rem; font-weight: 650; color: #39433f; }
.rp-edit-ph { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-edit-ph:empty { display: none; }
.rp-eph { position: relative; width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.rp-eph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-eph.gone img { opacity: .25; }
.rp-x { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(28, 36, 34, .75); color: #fff; font-size: .8rem; cursor: pointer; display: grid; place-items: center; }
.rp-add { align-self: flex-start; cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 13, .94); display: flex; align-items: center; justify-content: center; padding: calc(env(safe-area-inset-top, 0px) + 54px) 8px calc(var(--safe-b) + 20px); }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px 8px 16px; color: #fff; font-size: .92rem; }
.lb-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-top .icon-btn { color: #fff; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; cursor: pointer; }
.lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }

.rp-inv { display: flex; flex-direction: column; gap: 2px; }
.rp-inv a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.rp-invs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rp-invs:empty { display: none; }
.rp-invs li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.rp-invs li a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.rp-invs li.gone a { text-decoration: line-through; opacity: .45; }
.rp-x2 { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--grey-bg); color: var(--ink); cursor: pointer; }
.rp-totals p:first-child { margin-top: 0; }

/* Document maker (2026-11-03) */
.dm-types { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.dm-type { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.dm-type > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dm-type .ic { color: var(--muted); }
.dm-kind .linkbtn { font-size: .88rem; }
.dm-kind { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px 2px 12px; flex-direction: row-reverse; }
.dm-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.dm-checks p { margin: 0 0 6px; }
.dm-checks p:last-child { margin-bottom: 0; }
.dm-earliest { font-size: .95rem; }
.dm-warn { padding: 8px 10px; border-radius: 9px; font-size: .9rem; margin: 0 0 8px; }
.dm-warn.bad { background: var(--red-bg); color: var(--red); font-weight: 600; }
.dm-warn.soft { background: var(--amber-bg); color: var(--amber); }
.dm-warn.ok { background: var(--green-bg); color: var(--green); font-weight: 600; }
.dm-go p { margin: 8px 0 0; }
.dm-official { color: var(--amber); font-weight: 600; }

/* Repairs: paid tick + happy with the work (2026-11-03) */
.rp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.rp-chips .pill { font-size: .74rem; padding: 2px 8px; }
.rp-unhappy { color: var(--red); overflow-wrap: anywhere; }
.rp-paidbox { width: 100%; box-sizing: border-box; }
.rp-paidbox input:checked + span { color: var(--green); }
.rp-paidf { display: flex; flex-direction: column; gap: 5px; }
.rp-happy { border: 0; padding: 0; margin: 0; min-width: 0; }
.rp-happy legend { padding: 0; margin-bottom: 6px; font-size: .86rem; font-weight: 650; color: #39433f; }
.td-seg.rp-hseg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-hseg span { text-align: center; line-height: 1.2; font-size: .84rem; }
.rp-owed-tot { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rp-owed-tot strong { color: var(--amber); font-size: 1.05rem; }
.rp-owed p.muted { margin: 8px 0 0; }

/* inspection report: expired certificate flag (2026-11-03) */
.dm-exp { color: var(--red); font-weight: 600; }
.dm-exp:empty { display: none; }

/* Expenses (2026-11-04) */
.ex-filters { padding-top: 12px; padding-bottom: 12px; }
.td-seg.ex-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }
.ex-seg span { font-size: .84rem; min-height: 40px; }
.ex-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .ex-fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ex-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ex-f span { font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ex-f select { width: 100%; min-height: 40px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); min-width: 0; text-overflow: ellipsis; }
.ex-tot .ex-big { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ex-tot .ex-big span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.ex-tot .ex-big strong { font-size: 1.6rem; font-weight: 750; color: var(--brand); }
.ex-split { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 10px; color: var(--muted); font-size: .86rem; }
.ex-owe { color: var(--amber); font-weight: 650; }
.ex-tot .btn-row { margin: 0; }
.ex-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ex-table td { padding: 8px 0; border-top: 1px solid var(--line); }
.ex-table tbody tr:first-child td { border-top: 0; padding-top: 0; }
.ex-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.ex-table tfoot td { font-weight: 750; border-top: 1.5px solid var(--ink); }
.ex-amt { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-ptot { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.ex-ptot strong { color: var(--ink); font-size: 1rem; }
.ex-coauto { margin: -4px 0 0; grid-column: 1 / -1; }

/* New tenancy pack (2026-11-04) */
.pk-co { max-width: 420px; margin: 0 0 12px; }
.pk-co select { width: 100%; }
.pk-list { list-style: none; margin: 0; padding: 0; }
.pk-item { padding: 12px 0; border-top: 1px solid var(--line, #e6e6e6); display: flex; flex-direction: column; gap: 8px; }
.pk-item:first-child { border-top: 0; padding-top: 2px; }
.pk-t { display: flex; flex-direction: column; gap: 2px; }
.pk-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pk-btns .btn { white-space: nowrap; }
.pk-del { margin-left: -4px; }
.pk-all { margin: 14px 0 6px; }

/* Repairs & expenses (2026-11-05): type tags, type ticks, filter chips */
.tt{display:inline-block;font-size:11px;font-weight:600;line-height:1;padding:3px 7px;border-radius:999px;margin-right:6px;vertical-align:1px;white-space:nowrap}
.tt-rep{background:var(--blue-bg);color:var(--blue)}.tt-exp{background:var(--grey-bg);color:var(--grey)}.tt-ref{background:#f1e8f7;color:#6a3d86}.tt-mnt{background:var(--teal-bg);color:var(--teal)}.tt-oth{background:var(--amber-bg);color:var(--amber)}
.rp-chips .tt{margin-right:0}
.et-pick{border:0;padding:0;margin:0 0 4px;min-width:0}.et-pick legend{font-weight:600;font-size:14px;margin-bottom:8px;padding:0}
.et-row{display:flex;flex-wrap:wrap;gap:8px}
.et-opt{position:relative;cursor:pointer}
.et-opt input{position:absolute;opacity:0;pointer-events:none}
.et-opt span{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;font-size:14px;background:var(--card);color:var(--ink)}
.et-opt span::before{content:"";width:16px;height:16px;border:1.5px solid #a3aca8;border-radius:4px;box-sizing:border-box;flex:none;font-size:12px;line-height:13px;text-align:center;color:#fff}
.et-opt input:checked+span{border-color:var(--brand-2);background:var(--brand-soft);color:var(--brand);font-weight:600}
.et-opt input:checked+span::before{content:"\2713";background:var(--brand-2);border-color:var(--brand-2)}
.et-opt input:focus-visible+span{outline:2px solid var(--brand-2);outline-offset:2px}
.et-chips{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 10px}
.et-chip{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:5px 11px;font:inherit;font-size:13px;color:var(--ink);cursor:pointer}
.et-chip span{color:var(--muted);font-size:12px;margin-left:2px}
.et-chip.on{background:var(--brand);color:#fff;border-color:var(--brand)}.et-chip.on span{color:#cfe0d8}
