:root {
  color-scheme: light;
  --background: #f8f7f4;
  --surface: #ffffff;
  --surface-soft: #f4f2ee;
  --surface-hover: #f1efeb;
  --text: #292724;
  --muted: #7d7973;
  --muted-2: #aaa49c;
  --border: #e9e5df;
  --border-strong: #dbd6ce;
  --primary: oklch(0.55 0.1 145);
  --primary-strong: oklch(0.48 0.1 145);
  --primary-soft: oklch(0.95 0.025 145);
  --teal: #2e9c8f;
  --teal-soft: #e8f6f3;
  --amber: #d99a2b;
  --amber-soft: #fff6df;
  --red: #d65353;
  --red-soft: #fdecec;
  --blue: #4e7ecf;
  --blue-soft: #edf3fd;
  --sidebar-width: 260px;
  --shadow-sm: 0 1px 2px rgba(42, 35, 27, 0.04);
  --shadow-md: 0 12px 35px rgba(54, 46, 36, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #171715;
  --surface: #201f1d;
  --surface-soft: #292725;
  --surface-hover: #302e2b;
  --text: #f3f0eb;
  --muted: #aaa59d;
  --muted-2: #77726c;
  --border: #36332f;
  --border-strong: #4a4640;
  --primary-soft: oklch(0.28 0.04 145);
  --teal-soft: #19322f;
  --amber-soft: #382f1b;
  --red-soft: #3a2222;
  --blue-soft: #202c3f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--background); color: var(--text); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--background); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width);
  display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border);
  transition: transform 220ms ease;
}

.brand { height: 65px; display: flex; align-items: center; gap: 11px; padding: 0 17px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--primary); border-radius: 10px; box-shadow: 0 5px 14px oklch(0.55 0.1 145 / .22); }
.brand-mark svg { width: 18px; height: 18px; stroke-width: 2; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 14px; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.nav { flex: 1; overflow: auto; padding: 15px 12px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.nav-group + .nav-group { margin-top: 11px; }
.nav-group-title { width: 100%; padding: 7px 9px; color: var(--muted-2); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.nav-group-links { display: grid; gap: 2px; margin-top: 1px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 10px; border-radius: 9px; color: var(--muted); font-size: 15px; font-weight: 550; transition: 150ms ease; }
.nav-link svg { width: 17px; height: 17px; color: var(--muted-2); }
.nav-link > span:nth-child(2) { flex: 1; }
.nav-link:hover { background: var(--surface-soft); color: var(--text); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.nav-link.active svg { color: var(--primary); }
.nav-count { min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 700; }
.nav-count.accent { background: var(--primary-soft); color: var(--primary); }
.nav-count.warning { background: var(--amber-soft); color: var(--amber); }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.profile-card { width: 100%; display: flex; align-items: center; gap: 9px; padding: 7px; background: none; border: 0; border-radius: 9px; cursor: pointer; text-align: left; }
.profile-card:hover { background: var(--surface-soft); }
.avatar, .top-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #35302b; color: #fff; font-weight: 700; }
.avatar { width: 34px; height: 34px; font-size: 11px; }
.profile-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.profile-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-card > svg { width: 16px; color: var(--muted-2); }

.app-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 30; height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: color-mix(in srgb, var(--surface) 90%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.topbar-start, .topbar-actions { display: flex; align-items: center; }
.topbar-start { gap: 12px; }
.topbar-actions { gap: 9px; }
.context-label { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.context-label span { color: var(--muted); }
.context-label span::after { content: "/"; margin-left: 7px; color: var(--border-strong); }
.context-label strong { font-weight: 600; }
.icon-button { position: relative; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.icon-button:hover { background: var(--surface-soft); border-color: var(--border); }
.icon-button:focus { outline: none; }
.icon-button:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.icon-button svg { width: 17px; height: 17px; }
.mobile-menu { display: none; }
.search-trigger { height: 40px; min-width: 240px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; font-size: 14px; text-align: left; }
.search-trigger svg { width: 15px; height: 15px; }
.search-trigger span { flex: 1; }
kbd { padding: 3px 6px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 5px; box-shadow: var(--shadow-sm); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.today-label { padding: 0 8px; color: var(--muted); font-size: 14px; }
.has-indicator::after { content: ""; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: var(--primary); border: 2px solid var(--surface); border-radius: 50%; }
.top-avatar { width: 32px; height: 32px; margin-left: 2px; font-size: 10px; }
.top-avatar { border: 0; cursor: pointer; }
.top-avatar:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.account-menu { position: fixed; inset: 57px 26px auto auto; width: min(300px, calc(100vw - 28px)); margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); }
.account-menu-identity { display: flex; flex-direction: column; gap: 5px; padding: 12px; overflow-wrap: anywhere; }
.account-menu-identity strong { font-size: 14px; }
.account-menu-identity span { color: var(--muted); font-size: 13px; }
.account-menu-sign-out { width: 100%; justify-content: flex-start; margin-top: 4px; }
@media (max-width: 760px) {
  .topbar-actions .top-avatar { display: grid; width: 44px; height: 44px; }
  .account-menu { right: 14px; }
}
.notification-wrap { position: relative; }
.notification-popover { position: absolute; top: 46px; right: 0; width: 380px; padding: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); }
.popover-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px 10px; }
.popover-head strong { font-size: 16px; }
.popover-head span { color: var(--primary); font-size: 13px; font-weight: 700; }
.notification-popover > button { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: none; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }
.notification-popover > button:hover { background: var(--surface-soft); }
.notification-popover button span:last-child { display: flex; flex-direction: column; gap: 4px; }
.notification-popover button strong { font-size: 14px; }
.notification-popover button small { color: var(--muted); font-size: 13px; }
.notice-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; }
.notice-dot.primary { background: var(--primary); }.notice-dot.amber { background: var(--amber); }.notice-dot.teal { background: var(--teal); }

#app { padding: 28px 30px 44px; outline: none; }
.page { max-width: 1600px; margin: 0 auto; }
.page-head { min-height: 52px; margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-head h1 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.page-head p { margin: 9px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 650; transition: 150ms ease; }
.button svg { width: 15px; height: 15px; }
.button.primary { color: white; background: var(--primary); border-color: var(--primary); box-shadow: none; }
.button.primary:hover { background: var(--primary-strong); }
.button.secondary { background: var(--surface); }
.button.secondary:hover { background: var(--surface-soft); }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
form[aria-busy="true"] .button[data-turbo-submits-with]:disabled { cursor: wait; opacity: .8; }
form[aria-busy="true"] .button[data-turbo-submits-with]:disabled::before { content: ""; width: 1em; height: 1em; flex: 0 0 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: submit-spin .75s linear infinite; }
@keyframes submit-spin { to { transform: rotate(360deg); } }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.metric-card, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.metric-card { min-height: 146px; padding: 19px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-top { display: flex; align-items: flex-start; justify-content: space-between; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-icon.primary { color: var(--primary); background: var(--primary-soft); }.metric-icon.teal { color: var(--teal); background: var(--teal-soft); }.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.trend { display: inline-flex; align-items: center; gap: 3px; padding: 5px 8px; color: var(--teal); background: var(--teal-soft); border-radius: 6px; font-size: 13px; font-weight: 700; }
.trend.down { color: var(--red); background: var(--red-soft); }
.trend.down svg { transform: rotate(180deg); }
.trend svg { width: 11px; height: 11px; }
.metric-value { display: flex; align-items: baseline; gap: 7px; }
.metric-value strong { font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.metric-value span { color: var(--muted); font-size: 14px; }
.metric-label { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.35; letter-spacing: -.01em; white-space: nowrap; }

.dashboard-row { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, .95fr); gap: 14px; margin-bottom: 14px; }
.dashboard-row.secondary { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
.card { min-width: 0; overflow: hidden; }
.card-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 17px; border-bottom: 1px solid var(--border); }
.card-head.no-border { border-bottom: 0; padding-bottom: 8px; }
.card-title h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.card-title p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.card-body { padding: 17px; }
.card-body > :first-child { margin-top: 0; }
.card-body > :last-child { margin-bottom: 0; }
.template-placeholders { display: flex; flex-wrap: wrap; gap: 8px; }
.template-placeholders code { padding: 4px 6px; background: var(--surface-soft); border-radius: 4px; overflow-wrap: anywhere; }
.contract-template-editor lexxy-editor {
  --lexxy-color-canvas: var(--surface);
  --lexxy-color-ink: var(--text);
  --lexxy-color-ink-medium: var(--muted);
  --lexxy-color-ink-lighter: var(--border);
  --lexxy-color-ink-lightest: var(--surface-soft);
  --lexxy-color-ink-inverted: var(--surface);
  --lexxy-color-accent-dark: var(--primary);
  --lexxy-color-selected: var(--primary-soft);
  --lexxy-focus-ring-color: var(--primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  min-width: 0;
}
.contract-template-editor lexxy-editor[hidden] { display: none; }
.contract-template-editor .lexxy-editor__content { min-height: 360px; max-height: 65vh; overflow-y: auto; overflow-wrap: anywhere; }
.contract-template-editor lexxy-toolbar { flex-wrap: wrap; }
.contract-template-editor button[name="bold"] { font-weight: 800; }
.contract-template-editor button[name="italic"] { font-style: italic; }
.contract-template-editor button[name="underline"] { text-decoration: underline; }
.contract-template-editor button[name="strikethrough"] { text-decoration: line-through; }
.segmented { display: flex; padding: 3px; background: var(--surface-soft); border-radius: 7px; }
.segmented button { padding: 7px 10px; background: none; border: 0; border-radius: 5px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.chart-wrap { height: 285px; padding: 8px 15px 14px 10px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis { fill: var(--muted-2); font-size: 9px; stroke: none; }
.chart-area { fill: url(#revenueGradient); stroke: none; }
.chart-line { fill: none; stroke: var(--primary); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.chart-tooltip { filter: drop-shadow(0 4px 7px rgba(44,39,32,.15)); }

.occupancy-summary { padding: 17px 17px 13px; display: flex; align-items: flex-end; justify-content: space-between; }
.occupancy-summary strong { font-size: 32px; letter-spacing: -.05em; }
.occupancy-summary span { color: var(--muted); font-size: 14px; }
.occupancy-ring { width: 74px; height: 74px; }
.occupancy-ring circle { fill: none; stroke-width: 7; }
.occupancy-ring .ring-bg { stroke: var(--surface-soft); }.occupancy-ring .ring-value { stroke: var(--primary); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.occupancy-list { padding: 0 17px 17px; display: grid; gap: 15px; }
.progress-row-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.progress-row-head span:last-child { color: var(--muted); }
.progress-track { height: 6px; overflow: hidden; background: var(--surface-soft); border-radius: 999px; }
.progress-track i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.progress-track i.teal { background: var(--teal); }.progress-track i.blue { background: var(--blue); }.progress-track i.amber { background: var(--amber); }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 14px 18px; color: var(--muted-2); background: color-mix(in srgb, var(--surface-soft) 55%, transparent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 16px 18px; border-top: 1px solid var(--border); font-size: 15px; white-space: nowrap; }
.data-table tbody tr { transition: 120ms ease; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface-soft) 58%, transparent); }
.data-table .clickable-row { position: relative; }
.row-link::after { content: ""; position: absolute; inset: 0; }
.row-link:focus-visible { outline: none; }
.row-link:focus-visible::after { outline: 2px solid var(--primary); outline-offset: -2px; }
.clickable-row .mini-action { position: relative; z-index: 1; }
.cell-title { display: flex; align-items: center; gap: 9px; }
.cell-avatar { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: var(--primary); background: var(--primary-soft); border-radius: 9px; font-size: 13px; font-weight: 750; }
.cell-copy { display: flex; flex-direction: column; gap: 3px; }
.cell-copy strong { font-size: 15px; font-weight: 650; }.cell-copy small { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; font-size: 13px; font-weight: 700; }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.success { color: var(--teal); background: var(--teal-soft); }.pill.warning { color: var(--amber); background: var(--amber-soft); }.pill.danger { color: var(--red); background: var(--red-soft); }.pill.info { color: var(--blue); background: var(--blue-soft); }.pill.neutral { color: var(--muted); background: var(--surface-soft); }
.action-cell { width: 40px; text-align: right; }
.mini-action { width: 28px; height: 28px; display: inline-grid; place-items: center; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.mini-action:hover { background: var(--surface-soft); }.mini-action svg { width: 15px; color: var(--muted); }
.mini-action[aria-expanded="true"] { color: var(--primary); background: var(--primary-soft); }

.row-action-menu { position: fixed; z-index: 70; width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); }
.row-action-menu[hidden] { display: none; }
.row-action-menu button { width: 100%; min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 10px; color: var(--text); background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 550; text-align: left; }
.row-action-menu button:hover, .row-action-menu button:focus-visible { background: var(--surface-soft); outline: none; }
.row-action-menu button svg { width: 16px; height: 16px; color: var(--muted); }
.row-action-menu button.danger { color: var(--red); }
.row-action-menu button.danger svg { color: var(--red); }
.menu-separator { height: 1px; margin: 5px 4px; background: var(--border); }

.activity-list { padding: 4px 17px 17px; }
.activity-item { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; }
.activity-item + .activity-item { border-top: 1px solid var(--border); }
.activity-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.activity-icon svg { width: 14px; }.activity-icon.primary { color: var(--primary); background: var(--primary-soft); }.activity-icon.teal { color: var(--teal); background: var(--teal-soft); }.activity-icon.amber { color: var(--amber); background: var(--amber-soft); }
.activity-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.activity-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.activity-copy small, .activity-time { color: var(--muted); font-size: 12px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filter-set, .toolbar-end { display: flex; align-items: center; gap: 7px; }
.filter-button { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1; }
.filter-button:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border-strong); }
.filter-button.active, .filter-button.active:hover { color: var(--primary); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.table-search { width: 260px; height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.table-search svg { width: 16px; color: var(--muted); }.table-search input { min-width: 0; width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 14px; }

.unit-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.small-stat { padding: 14px 15px; display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.small-stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-soft); color: var(--muted); }.small-stat-icon svg { width: 15px; }
.small-stat-copy { display: flex; flex-direction: column; gap: 4px; }.small-stat-copy strong { font-size: 21px; }.small-stat-copy span { color: var(--muted); font-size: 13px; }

.report-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.bar-chart { height: 260px; padding: 18px; display: flex; align-items: flex-end; gap: 12px; }
.bar-column { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar-column i { width: min(34px, 75%); min-height: 5px; background: var(--primary); border-radius: 5px 5px 2px 2px; transition: height 500ms ease; }
.bar-column:nth-child(3n+2) i { background: var(--teal); }.bar-column span { color: var(--muted); font-size: 9px; }
.empty-state { min-height: 420px; display: grid; place-items: center; text-align: center; }
.empty-state > div { max-width: 330px; }.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--primary); background: var(--primary-soft); border-radius: 15px; }.empty-icon svg { width: 24px; height: 24px; }.empty-state h2 { margin: 0; font-size: 19px; }.empty-state p { margin: 9px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }

dialog { color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
dialog::backdrop { background: rgba(25,22,19,.42); backdrop-filter: blur(2px); }
.command-dialog { width: min(620px, calc(100vw - 28px)); margin-top: 14vh; padding: 0; border-radius: 13px; }
.command-search { height: 64px; display: flex; align-items: center; gap: 11px; padding: 0 17px; border-bottom: 1px solid var(--border); }.command-search svg { width: 20px; color: var(--muted); }.command-search input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 16px; }
.command-results { max-height: 430px; overflow: auto; padding: 9px; }
.command-section-label { padding: 11px 10px 7px; color: var(--muted-2); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.command-item { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 11px; background: none; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }.command-item:hover, .command-item:focus { background: var(--surface-soft); outline: 0; }.command-item svg { width: 19px; height: 19px; color: var(--muted); }.command-item span { flex: 1; font-size: 15px; }.command-item small { color: var(--muted); font-size: 13px; }
.entity-dialog { width: min(520px, calc(100vw - 28px)); padding: 0; border-radius: 13px; }
.entity-dialog form { margin: 0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 21px 22px 18px; border-bottom: 1px solid var(--border); }.dialog-head h2 { margin: 5px 0 0; font-size: 22px; }.eyebrow { color: var(--primary); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.entity-dialog .icon-button:focus { outline: none; }.entity-dialog .icon-button:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dialog-body { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }.form-field { display: grid; align-content: start; gap: 8px; }.form-field.full { grid-column: 1 / -1; }.form-field label { font-size: 14px; font-weight: 650; }.form-field input, .form-field select { width: 100%; height: 46px; padding: 0 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; font-size: 15px; }.form-field input:focus, .form-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; background: var(--surface-soft); border-top: 1px solid var(--border); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: #fff; background: #25221f; border-radius: 9px; box-shadow: var(--shadow-md); font-size: 11px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: 200ms ease; }.toast.show { transform: none; opacity: 1; }.toast svg { width: 15px; color: #7ed6ab; }
.mobile-overlay { display: none; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .unit-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-md); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .mobile-overlay { position: fixed; inset: 0; z-index: 35; display: block; background: rgba(20,18,16,.35); }
  .app-shell { margin-left: 0; }
  .mobile-menu { display: grid; }
  .dashboard-row, .dashboard-row.secondary, .report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { padding: 0 14px; }.context-label { display: none; }.search-trigger { min-width: 36px; width: 36px; padding: 0; justify-content: center; }.search-trigger span, .search-trigger kbd, .today-label, .top-avatar { display: none; }
  #app { padding: 20px 14px 35px; }
  .page-head { align-items: flex-start; }.page-head h1 { font-size: 28px; }.page-head p { font-size: 15px; line-height: 1.5; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 112px; }
  .toolbar { align-items: stretch; flex-direction: column; }.filter-set { overflow-x: auto; padding-bottom: 2px; }.filter-button { flex: 0 0 auto; }.toolbar-end { width: 100%; }.table-search { flex: 1; width: auto; }
  .unit-summary { grid-template-columns: 1fr; }
  .page-actions .button.secondary { display: none; }
  .dialog-body { grid-template-columns: 1fr; }.form-field.full { grid-column: auto; }
  .notification-popover { position: fixed; top: 58px; left: 14px; right: 14px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Rails-backed controls and detail pages */
.location-filter { display: flex; align-items: center; gap: 8px; }
.location-filter label { color: var(--muted); font-size: 13px; }
.location-filter select { max-width: 260px; height: 38px; padding: 0 34px 0 11px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.sign-out { width: 100%; margin-top: 5px; }
.flash { max-width: 1600px; margin: 0 auto 18px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--teal); background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--border)); border-radius: 9px; }
.flash.alert { color: var(--red); background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 24%, var(--border)); }
.flash svg { width: 17px; flex: 0 0 auto; }.flash span { flex: 1; }.flash button { padding: 0 4px; color: inherit; background: transparent; border: 0; cursor: pointer; font-size: 20px; }
.form-card { max-width: 820px; padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field textarea { width: 100%; min-height: 110px; padding: 12px 13px; resize: vertical; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; }
.form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field-hint { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.checkbox-field { display: flex; align-items: center; gap: 9px; padding-top: 28px; }.checkbox-field input { width: 18px; height: 18px; flex: 0 0 18px; }
.checkbox-field.full { grid-column: 1 / -1; padding-top: 0; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; padding-top: 7px; }
.error-summary { grid-column: 1 / -1; padding: 14px 16px; color: var(--red); background: var(--red-soft); border-radius: 9px; }.error-summary ul { margin: 7px 0 0; padding-left: 20px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 14px; }
.detail-card { padding: 22px; }.detail-card h2 { margin: 0 0 18px; font-size: 18px; }
.detail-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.detail-list div { min-width: 0; }.detail-list dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.renter-access-card > .auth-form + .form-field { margin-top: 24px; }
.renter-access-card > .form-field + .field-hint { margin-top: 10px; }
.renter-access-card > .detail-actions + .field-hint { margin-top: 12px; }
.button.danger { color: var(--red); background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 24%, var(--border)); }
.location-delete-form { display: flex; align-items: center; }
.location-view-link { margin-left: auto; }
.location-delete-link { padding: 0; border: 0; background: transparent; color: var(--red); font-size: 14px; font-weight: 650; cursor: pointer; }
.location-delete-link:hover { text-decoration: underline; }
.location-delete-link:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.toolbar-form { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }.toolbar-filters { display: flex; gap: 7px; }.toolbar-search { display: flex; gap: 7px; }
.toolbar-search .table-search { width: 290px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.settings-card { padding: 22px; }.settings-card h2 { margin: 0 0 8px; }.settings-card > p { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.settings-contract-card { display: flex; flex-direction: column; min-width: 0; }
.settings-contract-card > .button { align-self: flex-start; }
.contract-preview { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; flex: 1 1 0px; min-width: 0; min-height: 560px; margin-top: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.contract-preview-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.contract-preview-toolbar > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.contract-preview-toolbar svg { width: 16px; height: 16px; color: var(--muted); }
.contract-preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.contract-preview-actions .button { min-height: 32px; padding: 0 11px; font-size: 12px; }
.contract-preview-status { padding: 4px 7px; border: 1px solid var(--border-strong); border-radius: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
.contract-preview-scroll { min-height: 0; padding: 24px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.contract-preview-scroll:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.contract-preview-paper { min-height: 100%; padding: 30px 28px; color: #373a35; background: #fff; border: 1px solid #e4e3dd; box-shadow: 0 2px 4px #29272408, 0 8px 24px #2927240d; overflow-wrap: anywhere; }
.contract-preview-letterhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid #4b7053; color: #617064; font-size: 8px; }
.contract-preview-letterhead > span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.contract-preview-letterhead svg { flex: 0 0 auto; width: 15px; height: 15px; }
.contract-preview-letterhead > span:last-child { font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.contract-preview-title { margin: 26px 0; color: #28382c; font: 600 21px/1.3 Georgia, "Times New Roman", serif; }
.contract-preview-body { font: 11px/1.8 Georgia, "Times New Roman", serif; }
.contract-preview-body :is(h1, h2, h3, h4, h5, h6) { margin: 22px 0 10px; color: #334d39; font: 700 10px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .04em; }
.contract-preview-body > :first-child { margin-top: 0; }
.contract-preview-body p { margin: 0 0 13px; }
.contract-preview-body mark { padding: 1px 3px; color: #42604a; background: #edf3ed; border-radius: 3px; font: 9px/1.8 Inter, ui-sans-serif, system-ui, sans-serif; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.contract-preview-body :is(ul, ol) { padding-left: 20px; }
.contract-preview-body blockquote { margin: 14px 0; padding-left: 12px; border-left: 2px solid #b6c5b7; }
.contract-preview-body a { color: #42604a; text-decoration: underline; }
.contract-preview-body pre { white-space: pre-wrap; }
.contract-preview-body hr { margin: 20px 0; border: 0; border-top: 1px solid #dedfd9; }
.contract-preview-paper-footer { margin-top: 30px; padding-top: 12px; border-top: 1px solid #dedfd9; color: #7b8179; font-size: 8px; }
.contract-preview-hint { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 13px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; line-height: 1.5; }
.contract-preview-hint > span { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 3px; border: 1px solid #b6c5b7; border-radius: 2px; background: #edf3ed; }
@media (max-width: 680px) {
  .contract-preview-scroll { padding: 14px; }
  .contract-preview-paper { padding: 22px 18px; }
  .contract-preview-letterhead { flex-wrap: wrap; gap: 6px; }
  .contract-preview-title { font-size: 19px; }
}
.coming-soon { display: inline-flex; margin-bottom: 14px; padding: 6px 9px; color: var(--amber); background: var(--amber-soft); border-radius: 7px; font-size: 12px; font-weight: 700; }
.empty-inline { min-height: 170px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 28px; color: var(--muted); text-align: center; }
.empty-inline h2, .empty-inline p { margin: 0; }
.empty-inline h2 { color: var(--text); font-size: 20px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.location-card { padding: 20px; }.location-card-head { display: flex; align-items: flex-start; justify-content: space-between; }.location-card h2 { margin: 18px 0 7px; font-size: 20px; }.location-card > p { min-height: 40px; margin: 0; color: var(--muted); line-height: 1.5; }.location-stats { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }.location-stats strong { color: var(--text); font-size: 16px; }
.stack-list { display: grid; gap: 8px; }.stack-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--surface-soft); border-radius: 9px; }.stack-row:hover { background: var(--surface-hover); }.stack-row > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }.stack-row small { color: var(--muted); }.stack-row > svg { width: 16px; color: var(--muted); }
.notes-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }.notes-block > strong { font-size: 13px; }.notes-block p { color: var(--muted); line-height: 1.55; }
.section-card { margin-top: 14px; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 440px); grid-auto-rows: max-content; align-content: center; justify-content: center; gap: 18px; padding: 28px 16px; background: radial-gradient(circle at top left, var(--primary-soft), transparent 42%), var(--background); }
.auth-shell > .flash { width: 100%; margin: 0; }
.auth-card { width: min(440px, 100%); padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow-md); }.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; }.auth-brand .brand-mark { flex: 0 0 auto; }.auth-card h1 { margin: 0; font-size: 26px; }.auth-card > p { margin: 8px 0 24px; color: var(--muted); line-height: 1.5; }.auth-form { display: grid; gap: 16px; }.auth-form .button { width: 100%; }.auth-footer { margin: 20px 0 0; color: var(--muted); font-size: 14px; text-align: center; }.auth-footer a { color: var(--primary); font-weight: 650; }
.renter-password-option > .form-field { margin: 16px 0; }
.renter-login-card > .field-hint { margin: 20px 0 0; }
.signature-section { padding: 0 22px 22px; }.signature-section .card-head { margin: 0 -22px 20px; }
.signature-requirements { padding: 16px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 9px; }
.signature-requirements h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.signature-requirements h3 svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--amber); }
.signature-requirements p { margin: 8px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.signature-requirements ul { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 12px 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.signature-requirements a:not(.button) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .signature-requirements a:not(.button) { color: var(--text); text-decoration-color: var(--primary); }
.signature-requirements .button { margin-top: 4px; white-space: normal; text-align: center; }
.legal-details { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--border); }
.legal-details legend { padding: 0 8px 0 0; font-size: 16px; font-weight: 650; }
.legal-details > .field-hint { margin-bottom: 12px; }
.legal-details .signature-requirements { margin-bottom: 18px; }
.settings-card .form-actions { flex-wrap: wrap; }
#firma-contrato, #datos-legales, .legal-details input { scroll-margin-top: 90px; }
.legal-details input:target { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.draft-warning { margin: 0 0 18px; padding: 12px 14px; color: #805b10; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 30%, var(--border)); border-radius: 9px; font-size: 13px; line-height: 1.5; }
.contract-signing-card { max-width: 860px; }.contract-signing-card h2 { margin: 0 0 10px; }.section-divider { margin: 24px 0; border: 0; border-top: 1px solid var(--border); }
.owner-signature-form { margin-top: 20px; }.signature-pad { display: grid; gap: 8px; }.signature-pad > label { font-size: 14px; font-weight: 650; }
.signature-pad canvas { width: 100%; height: 170px; touch-action: none; background: #fff; border: 1px solid var(--border-strong); border-radius: 9px; cursor: crosshair; }
.signature-pad canvas:focus-visible { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.signature-pad-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.signature-pad-actions .button { min-height: 34px; padding: 0 9px; }
.signature-error { margin: 0; color: var(--red); font-size: 13px; }.signature-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 13px; line-height: 1.5; }
.signature-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }.signature-state-copy { margin-top: 22px; color: var(--muted); }
.signature-privacy-notice { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); font-size: 13px; line-height: 1.55; }
.signature-privacy-notice h3 { margin: 0 0 6px; font-size: 14px; }.signature-privacy-notice p { margin: 0; }.signature-privacy-notice .field-hint { margin-top: 7px; }
.signature-evidence-summary { margin-top: 16px; }.signature-evidence-summary code { overflow-wrap: anywhere; }.legal-hold-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; align-items: end; margin-top: 14px; }
@media (max-width: 700px) { .legal-hold-form { grid-template-columns: 1fr; } }
.auth-shell:has(.public-signature-card) { grid-template-columns: minmax(0, 720px); align-content: start; padding-top: 40px; }
.public-signature-card { width: min(720px, 100%); }.signature-summary { margin: 20px 0; }.signature-download { width: 100%; }
.otp-request { margin: 22px 0; padding: 16px; background: var(--surface-soft); border-radius: 10px; }.otp-request p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.public-signature-form { padding-top: 22px; border-top: 1px solid var(--border); }.signature-decline { width: 100%; margin-top: 14px; }

@media (max-width: 920px) {
  .detail-grid, .settings-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { gap: 8px; }
  .topbar-start { flex: 1; min-width: 0; gap: 8px; }
  .topbar-actions { flex-shrink: 0; }
  .topbar .icon-button { flex-shrink: 0; width: 44px; height: 44px; }
  .location-filter { flex: 1; min-width: 0; max-width: 260px; }
  .location-filter label { display: none; }
  .location-filter select { width: 100%; min-width: 0; max-width: none; height: 44px; padding: 0 8px 0 10px; font-size: 14px; text-overflow: ellipsis; }
  .location-filter select:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
  .page-head { flex-direction: column; }.page-actions { width: 100%; }.page-actions .button.primary { width: 100%; }
  .toolbar { overflow-x: auto; padding-bottom: 2px; }
  .toolbar-form { min-width: max-content; align-items: center; flex-direction: row; }
  .toolbar-filters { flex: 0 0 auto; }
  .toolbar-search { align-items: center; flex-direction: row; }
  .toolbar-search .table-search { width: 220px; }
  .form-grid, .detail-list { grid-template-columns: 1fr; }.form-actions { grid-column: auto; flex-direction: column-reverse; }.form-actions .button { width: 100%; }
  .location-grid { grid-template-columns: 1fr; }
  .public-signature-card { padding: 22px 18px; }.signature-pad canvas { height: 150px; }.signature-pad-actions { align-items: flex-start; flex-direction: column; }
}
.renter-shell { min-height: 100vh; max-width: 1100px; margin: auto; padding: 0 16px 32px; }
.renter-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.renter-topbar > .brand { height: auto; padding: 0; border: 0; }
.renter-topbar .brand-mark { flex-shrink: 0; }
.renter-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.renter-nav a { color: var(--primary-strong); font-weight: 650; }
[data-theme="dark"] .renter-nav a { color: var(--text); }
.renter-shell .page { padding: 24px 0; }
.renter-shell .detail-card { margin-bottom: 20px; }
.renter-shell .stack-row { flex-wrap: wrap; gap: 12px; }
.renter-shell .public-signature-card, .renter-shell > .auth-card { margin: 24px auto; }
.renter-code { letter-spacing: 0.35em; font-size: 24px; }
.onboarding-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 24px; }
.onboarding-step { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.onboarding-step strong, .onboarding-step small { display: block; }
.onboarding-step strong { font-size: 14px; }
.onboarding-step small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.onboarding-step-number { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-soft); font-weight: 700; }
.onboarding-step.is-complete .onboarding-step-number, .onboarding-step[aria-current="step"] .onboarding-step-number { background: var(--primary-soft); color: var(--primary-strong); }
.onboarding-step[aria-current="step"] { border-color: var(--primary); }
[data-theme="dark"] .onboarding-step .onboarding-step-number { color: var(--text); }
@media (max-width: 640px) {
  .onboarding-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .renter-shell .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .renter-shell .data-table, .renter-shell .data-table tbody { display: block; }
  .renter-shell .data-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--border); }
  .renter-shell .data-table td { display: block; border: 0; padding: 8px 6px; white-space: normal; overflow-wrap: anywhere; }
  .renter-shell .data-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
}

.administrator-list { grid-template-columns: 1fr; margin: 20px 0 32px; gap: 0; }
.administrator-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.administrator-list dt { overflow-wrap: anywhere; min-width: 0; text-transform: none; letter-spacing: normal; font-size: 15px; }
.administrator-list dd { display: grid; gap: 10px; }
.administrator-list .administrator-access { display: flex; align-items: center; gap: 12px; }
@media (max-width: 640px) {
  .administrator-list > div { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; max-width: 1600px; margin: 0 auto; }
.settings-sidebar { align-self: start; position: sticky; top: 90px; }
.settings-nav-title { margin: 0 0 12px; padding: 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.settings-navigation { display: grid; gap: 5px; }
.settings-nav-link { padding: 12px; border-radius: 9px; color: var(--muted); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.settings-nav-link:hover { background: var(--surface-soft); color: var(--text); }
.settings-nav-link.active { color: var(--primary); background: var(--primary-soft); }
.settings-nav-link:focus-visible, .settings-mobile-navigation > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.settings-content { min-width: 0; }
.stripe-settings-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.stripe-settings-heading h2 { margin: 0; }
.settings-card > .stripe-document-notice { margin-top: 16px; }
.settings-content .form-card { max-width: none; }
.settings-content .page > .card + .card { margin-top: 18px; }
.settings-mobile-navigation { display: none; }
@media (max-width: 920px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .settings-sidebar { display: none; }
  .settings-mobile-navigation { display: block; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
  .settings-mobile-navigation > summary { cursor: pointer; font-weight: 650; }
  .settings-mobile-navigation[open] > summary { margin-bottom: 12px; }
}
