:root {
  --inmo-ink: #183d37;
  --inmo-green: #246c57;
  --inmo-green-dark: #195344;
  --inmo-sage: #8b9790;
  --inmo-apricot: #d6a476;
  --inmo-blush: #faf2f1;
  --inmo-canvas: #f3f5f2;
  --inmo-line: #e5eae5;
  --inmo-muted: #52655e;
  --bs-primary: var(--inmo-green);
  --bs-link-color: var(--inmo-green);
  --bs-link-hover-color: var(--inmo-green-dark);
}

html { scroll-behavior: smooth; }
body { color: var(--inmo-ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.app-authenticated { background: linear-gradient(135deg, #eee6dd, #d9e8dc); padding: 20px; }
body.app-guest { background: linear-gradient(135deg, #f5e7e2, #dce9df); min-height: 100vh; padding: 24px; }
.skip-link { position: fixed; z-index: 1300; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--inmo-ink); font-weight: 700; }
.skip-link:focus { transform: none; outline: 3px solid var(--inmo-green); }
.form-error-summary:focus { outline: 3px solid var(--inmo-green); outline-offset: 2px; }
a { color: var(--inmo-green); text-decoration: none; }
a:hover { color: var(--inmo-green-dark); text-decoration: underline; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav-icon { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-frame { display: grid; grid-template-columns: 248px minmax(0, 1fr); max-width: 1620px; min-height: calc(100vh - 40px); margin: 0 auto; overflow: clip; background: var(--inmo-canvas); border: 1px solid rgba(255,255,255,.75); border-radius: 26px; box-shadow: 0 24px 70px rgba(30, 69, 54, .14); }
.app-sidebar { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 42px); position: sticky; top: 0; overflow-y: auto; background: #fdfafa; border-right: 1px solid #f0ede9; padding: 20px 13px 17px; scrollbar-width: none; }
.app-sidebar::-webkit-scrollbar { display: none; }
.sidebar-brand { display: flex; align-items: center; justify-content: center; min-height: 132px; margin: 0 7px 10px; border-radius: 17px; background: var(--inmo-blush); }
.sidebar-brand img { display: block; max-width: 100%; height: 126px; width: auto; object-fit: contain; }
.sidebar-context { margin: 0 8px 20px; padding: 13px 12px; border: 1px solid #e8e8e2; background: #fff; border-radius: 13px; }
.sidebar-context span, .nav-group-title, .topbar-eyebrow { display: block; color: #52665c; font-size: .75rem; font-weight: 800; letter-spacing: .07em; }
.sidebar-close { display: none; }
.sidebar-context strong { display: block; margin-top: 4px; font-size: .87rem; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.sidebar-context small { display: block; margin-top: 2px; color: var(--inmo-muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.sidebar-menu { display: grid; align-content: start; gap: 17px; }
.nav-group-title { margin: 0 13px 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 39px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: #5e716a; font-size: .87rem; font-weight: 550; line-height: 1.2; text-align: left; cursor: pointer; }
.nav-item:hover { background: #f4f1ed; color: var(--inmo-ink); text-decoration: none; }
.nav-item.active { background: #f5e8dd; color: #8b5135; font-weight: 700; }
.nav-item:focus-visible, .menu-toggle:focus-visible, .sidebar-backdrop:focus-visible { outline: 3px solid var(--inmo-apricot); outline-offset: 2px; }
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid #ecece6; }
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 100%; }
.app-topbar { position: relative; z-index: 30; display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 20px; padding: 15px 30px; overflow: visible; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--inmo-line); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-left > div { min-width: 0; }
.topbar-left strong { display: block; max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.topbar-right { color: #546960; font-size: .83rem; }
.topbar-date { margin-right: 8px; color: var(--inmo-muted); }
.user-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e2eee6; color: var(--inmo-green-dark); font-weight: 800; }
.user-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: relative; z-index: 31; }
.user-menu summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; border-radius: 10px; padding: 3px 5px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::marker { content: ""; }
.user-menu summary:hover, .user-menu[open] summary { background: #f1f6f1; }
.user-menu summary:focus-visible { outline: 3px solid var(--inmo-apricot); outline-offset: 2px; }
.user-menu-caret { font-size: 1.15rem; line-height: 1; }
.user-menu-panel { position: absolute; z-index: 1200; right: 0; top: calc(100% + 8px); width: max-content; min-width: 210px; max-width: min(90vw, 320px); padding: 9px; border: 1px solid var(--inmo-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(24,61,55,.2); }
.user-menu-email { margin: 0 4px 7px; padding: 6px 7px 9px; border-bottom: 1px solid var(--inmo-line); color: var(--inmo-muted); overflow-wrap: anywhere; }
.user-menu-panel form { margin: 0; }
.menu-toggle { display: none; place-items: center; width: 38px; height: 38px; border: 1px solid var(--inmo-line); border-radius: 9px; background: #fff; color: var(--inmo-ink); }
.sidebar-backdrop { display: none; }
.app-content { flex: 1; width: min(100%, 1370px); margin: 0 auto; padding: 30px 32px 44px; }
.site-footer { padding: 16px 30px; border-top: 1px solid var(--inmo-line); background: rgba(255,255,255,.76); color: #62776b; font-size: .82rem; font-weight: 600; text-align: center; }
.app-content > a:first-child { display: inline-block; margin-bottom: 14px; color: var(--inmo-muted); font-size: .9rem; }
.app-content > a:first-child:hover { color: var(--inmo-green); }
.app-content h1, .guest-content h1 { font-weight: 720; letter-spacing: -.035em; }
.app-content h2, .app-content h3 { letter-spacing: -.025em; }
.text-secondary { color: var(--inmo-muted) !important; }
.app-content .bg-white.border.rounded-3, .guest-content .bg-white.border.rounded-3 { border-color: var(--inmo-line) !important; border-radius: 17px !important; box-shadow: 0 5px 18px rgba(34, 65, 49, .035); }
.app-content section.bg-white.border.rounded-3 { scroll-margin-top: 20px; }
.app-content section.bg-white.border.rounded-3 + section.bg-white.border.rounded-3 { margin-top: 2px; }
.app-content .table { --bs-table-bg: transparent; color: var(--inmo-ink); }
.app-content .table > :not(caption) > * > * { padding: 13px 11px; border-bottom-color: var(--inmo-line); vertical-align: middle; }
.app-content .table th { color: #64776e; font-size: .76rem; font-weight: 720; }
.app-content .table tbody tr:last-child td { border-bottom: 0; }
.form-control, .form-select { border-color: #dce5de; background-color: #fcfdfc; border-radius: 10px; min-height: 39px; }
.form-control:focus, .form-select:focus { border-color: #7ca990; box-shadow: 0 0 0 .2rem rgba(36,108,87,.12); }
.person-search { position: relative; }
.person-search-results { position: absolute; z-index: 100; top: calc(100% + 4px); width: 100%; max-height: 240px; overflow-y: auto; border: 1px solid var(--inmo-line); border-radius: 10px; background: #fff; box-shadow: 0 12px 26px rgba(24,61,55,.16); }
.person-search-results[hidden] { display: none; }
.person-search-option { display: block; width: 100%; padding: 10px 12px; border: 0; background: #fff; color: var(--inmo-ink); text-align: left; }
.person-search-option:hover, .person-search-option.active { background: #eaf4ed; }
.person-search-message { padding: 10px 12px; color: var(--inmo-muted); }
.btn { border-radius: 9px; font-weight: 620; }
.btn-primary { --bs-btn-bg: var(--inmo-green); --bs-btn-border-color: var(--inmo-green); --bs-btn-hover-bg: var(--inmo-green-dark); --bs-btn-hover-border-color: var(--inmo-green-dark); --bs-btn-active-bg: var(--inmo-green-dark); --bs-btn-active-border-color: var(--inmo-green-dark); --bs-btn-disabled-bg: var(--inmo-green); --bs-btn-disabled-border-color: var(--inmo-green); }
.btn-outline-primary { --bs-btn-color: var(--inmo-green); --bs-btn-border-color: var(--inmo-green); --bs-btn-hover-bg: var(--inmo-green); --bs-btn-hover-border-color: var(--inmo-green); --bs-btn-active-bg: var(--inmo-green-dark); }
.list-group-item { border-color: var(--inmo-line); color: var(--inmo-ink); }
.list-group-item-action:hover { background: #f4f8f3; color: var(--inmo-green-dark); }
.alert { border-radius: 12px; }

.calendar-shell { overflow: hidden; border: 1px solid var(--inmo-line); border-radius: 17px; background: #fff; box-shadow: 0 5px 18px rgba(34,65,49,.035); }
.calendar-view-switch { display: none; gap: 8px; margin-bottom: 12px; }
[data-calendar-panel][hidden], .calendar-repeat-dependent[hidden] { display: none !important; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--inmo-line); }
.calendar-scroll { overflow-x: auto; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 690px; }
.calendar-weekday { padding: 10px 8px; border-bottom: 1px solid var(--inmo-line); color: var(--inmo-muted); background: #f8faf7; font-size: .75rem; font-weight: 750; text-align: center; }
.calendar-day { min-height: 116px; padding: 8px; border-right: 1px solid var(--inmo-line); border-bottom: 1px solid var(--inmo-line); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day-muted { background: #f8faf8; color: #9ba9a0; }
.calendar-day-today { background: #f2f8f0; }
.calendar-day-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: .78rem; font-weight: 750; }
.calendar-day-heading a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; font-size: 1.1rem; }
.calendar-day-heading a:hover { background: #e2eee6; text-decoration: none; }
.calendar-event { display: block; margin: 3px 0; padding: 5px 6px; overflow: hidden; border-radius: 6px; background: #e5f1e8; color: #205c49; font-size: .7rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event:hover { color: #174d3c; text-decoration: none; background: #d7e9dc; }
.calendar-event-reservation { background: #f8e9d9; color: #89562d; }
.calendar-event-assembly { background: #e4eaf9; color: #3f598e; }
.calendar-event-maintenance { background: #f6e5e2; color: #92584f; }
.calendar-weekday-options > div { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.calendar-weekday-options > div > div { min-width: 95px; }
.calendar-weekday-options input { margin-right: 5px; }

.setup-return { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; padding: 10px 14px; border: 1px solid #cfe4d4; border-radius: 10px; background: #edf6ef; color: #405c4c; font-size: .86rem; font-weight: 650; }
.setup-back { display: inline-block; margin-bottom: 20px; color: var(--inmo-muted); font-size: .88rem; }
.setup-shell { display: grid; grid-template-columns: minmax(270px, 315px) minmax(0, 1fr); align-items: start; gap: 22px; max-width: 1120px; }
.setup-rail { padding: 28px 25px; border: 1px solid #e1e9e0; border-radius: 22px; background: linear-gradient(160deg, #f0f6f0 0%, #fff 58%, #fbf5ed 100%); box-shadow: 0 10px 30px rgba(34,65,49,.055); }
.setup-rail-icon, .setup-card-icon { display: inline-grid; place-items: center; width: 49px; height: 49px; border-radius: 15px; background: var(--inmo-green); color: #fff; }
.setup-rail-icon .nav-icon, .setup-card-icon .nav-icon { width: 25px; height: 25px; }
.setup-rail-eyebrow { margin: 22px 0 6px; color: var(--inmo-green); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.setup-rail h2 { margin: 0 0 8px; font-size: 1.34rem; line-height: 1.22; overflow-wrap: anywhere; }
.setup-rail-intro { margin: 0; color: #667a6e; font-size: .85rem; line-height: 1.48; }
.setup-progress { margin: 26px 0 0; padding: 0; list-style: none; }
.setup-progress-row { position: relative; padding-bottom: 7px; }
.setup-progress-row:not(:last-child)::after { position: absolute; top: 56px; bottom: -6px; left: 30px; z-index: 0; width: 2px; background: #dce5dd; content: ""; }
.setup-progress-row.is-done:not(:last-child)::after { background: #51aa78; }
.setup-progress-item { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; min-height: 75px; padding: 9px 8px; border: 1px solid transparent; border-radius: 13px; color: var(--inmo-ink); line-height: 1.2; }
a.setup-progress-item:hover { border-color: #b7d5bd; background: #f5faf5; color: var(--inmo-ink); text-decoration: none; }
.setup-progress-row.is-current .setup-progress-item { border-color: #c7dfcd; background: #eaf4ed; }
.setup-progress-number { display: inline-grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border: 2px solid #cfd9d1; border-radius: 50%; background: #fff; color: #86968b; font-size: .94rem; font-weight: 800; }
.setup-progress-row.is-done .setup-progress-number { border-color: var(--inmo-green); background: var(--inmo-green); color: #fff; font-size: 1.25rem; }
.setup-progress-row.is-current .setup-progress-number { border-color: var(--inmo-green); box-shadow: 0 0 0 4px #d6e9db; color: var(--inmo-green-dark); }
.setup-progress-row.is-skipped .setup-progress-number { border-color: #d7ac80; background: #fffaf4; color: #986a3e; }
.setup-progress-copy { display: flex; flex-direction: column; align-items: flex-start; padding-top: 2px; min-width: 0; }
.setup-progress-step { color: var(--inmo-muted); font-size: .64rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.setup-progress-copy strong { margin-top: 4px; font-size: .91rem; line-height: 1.22; }
.setup-progress-row.is-pending .setup-progress-copy strong { color: #8a9990; }
.setup-progress-status { margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: #f0f2ef; color: #738178; font-size: .67rem; font-style: normal; font-weight: 700; }
.setup-progress-row.is-done .setup-progress-status { background: #e4f2e7; color: #287252; }
.setup-progress-row.is-current .setup-progress-status { background: #d6e9db; color: var(--inmo-green-dark); }
.setup-progress-row.is-skipped .setup-progress-status { background: #f8e9d9; color: #946539; }
.setup-rail-note { margin: 17px 0 0; padding-top: 15px; border-top: 1px solid #e4eae3; color: var(--inmo-muted); font-size: .76rem; line-height: 1.45; }
.setup-stage { min-width: 0; }
.setup-card { min-height: 580px; padding: clamp(25px, 3.3vw, 40px); border: 1px solid var(--inmo-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(34,65,49,.055); }
.setup-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.setup-kicker, .setup-section-label { color: var(--inmo-green); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.setup-current-pill, .setup-required { padding: 5px 11px; border-radius: 999px; background: #e5f1e8; color: var(--inmo-green-dark); font-size: .72rem; font-weight: 750; }
.setup-required { background: #faedde; color: #8e6035; }
.setup-card-icon { width: 53px; height: 53px; margin-bottom: 20px; background: #e5f1e8; color: var(--inmo-green); }
.setup-card h1 { margin: 7px 0 12px; font-size: clamp(1.55rem, 2.8vw, 2rem); }
.setup-card > p.text-secondary { max-width: 670px; line-height: 1.55; }
.setup-form { max-width: 630px; margin-top: 28px; }
.setup-form .form-label { font-weight: 650; }
.setup-fact { display: inline-flex; align-items: baseline; gap: 5px; margin: 8px 0 24px; padding: 9px 13px; border-radius: 9px; background: #f2f6f1; color: #526a5e; font-size: .86rem; }
.setup-fact strong { color: var(--inmo-ink); font-size: 1rem; }
.setup-links, .setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.setup-actions { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--inmo-line); }
.setup-actions form { margin: 0; }
.setup-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 25px; }
.setup-review-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 15px; border: 1px solid var(--inmo-line); border-radius: 11px; background: #fbfdfb; }
.setup-review-grid strong { font-size: 1.38rem; }
.setup-review-grid span { color: var(--inmo-muted); font-size: .78rem; }

.dashboard-hero { position: relative; display: flex; align-items: center; min-height: 160px; margin-bottom: 22px; padding: 22px 28px; overflow: hidden; border-radius: 18px; background: linear-gradient(105deg, #ad7549 0%, #687957 47%, #246b55 100%); color: #fff; }
.dashboard-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(39,60,39,.09), transparent 70%); pointer-events: none; }
.dashboard-hero > div:first-child { position: relative; z-index: 1; max-width: 650px; }
.dashboard-hero .eyebrow { display: inline-block; margin-bottom: 7px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.dashboard-hero h1 { color: #fff; margin: 0 0 8px; font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
.dashboard-hero p { max-width: 570px; margin: 0 0 18px; color: #f9fffb; line-height: 1.45; }
.dashboard-hero .btn { background: #fff; border-color: #fff; color: var(--inmo-green-dark); }
.dashboard-hero .btn:hover { background: #f9f2e9; border-color: #f9f2e9; }
.hero-skyline { display: flex; align-items: flex-end; gap: 10px; position: absolute; right: 50px; bottom: -3px; height: 160px; transform: skewY(-7deg); opacity: .52; }
.hero-skyline span { display: block; width: 38px; border: 2px solid #fff; border-bottom: 0; border-radius: 5px 5px 0 0; background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(255,255,255,.1)); box-shadow: 9px -7px 0 rgba(18,85,61,.32); }
.hero-skyline span:nth-child(1) { height: 80px; }.hero-skyline span:nth-child(2) { height: 130px; }.hero-skyline span:nth-child(3) { height: 103px; }.hero-skyline span:nth-child(4) { height: 145px; }.hero-skyline span:nth-child(5) { height: 67px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.report-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.receivables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card { min-height: 132px; padding: 17px 18px; border: 1px solid var(--inmo-line); border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(34,65,49,.035); }
.metric-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 13px; border-radius: 50%; background: #e7f0e8; color: var(--inmo-green); }
.metric-icon.warm { background: #f9e9d9; color: #b67445; }
.metric-icon.soft { background: #e9ebea; color: #62776b; }
.metric-card span.label { display: block; color: var(--inmo-muted); font-size: .79rem; }
.metric-card strong { display: block; margin-top: 3px; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
.metric-card-link { color: var(--inmo-ink); }
.metric-card-link:hover { color: var(--inmo-ink); border-color: #91b29b; text-decoration: none; box-shadow: 0 8px 22px rgba(34,65,49,.10); }
.metric-card-link small { display: inline-block; margin-top: 12px; color: var(--inmo-green-dark); font-weight: 700; }
.metric-card-link:focus-visible { outline: 3px solid var(--inmo-green); outline-offset: 2px; }
.dashboard-section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0 14px; }
.dashboard-section-title h2 { margin: 0; font-size: 1.1rem; font-weight: 730; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.quick-link { display: flex; flex-direction: column; gap: 7px; min-height: 126px; padding: 18px; border: 1px solid var(--inmo-line); border-radius: 15px; background: #fff; color: var(--inmo-ink); transition: transform .15s, box-shadow .15s; }
.quick-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(34,65,49,.09); text-decoration: none; }
.quick-link .nav-icon { width: 23px; height: 23px; color: var(--inmo-green); }
.quick-link strong { font-size: .92rem; }.quick-link small { color: var(--inmo-muted); line-height: 1.35; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.overview-grid > section { margin-bottom: 0 !important; }
.overview-grid .span-full { grid-column: 1 / -1; }
.unit-tile { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--inmo-line); border-radius: 11px; background: #fbfdfb; color: var(--inmo-ink); font-weight: 650; }
.unit-tile:hover { border-color: #a2c3ad; background: #f4f9f4; text-decoration: none; }
.unit-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.unit-balance-grid > section { margin-bottom: 20px !important; }

.guest-frame { display: flex; flex-direction: column; max-width: 1080px; min-height: calc(100vh - 48px); margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 25px; background: rgba(255,255,255,.76); box-shadow: 0 24px 70px rgba(30,69,54,.12); }
.guest-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 92px; padding: 6px 36px; background: #fff; border-bottom: 1px solid var(--inmo-line); }
.guest-brand { display: flex; align-items: center; gap: 6px; color: var(--inmo-ink); font-weight: 800; letter-spacing: .08em; }
.guest-brand:hover { text-decoration: none; color: var(--inmo-ink); }
.guest-brand img { width: 90px; height: 75px; object-fit: contain; }
.guest-content { flex: 1; padding: clamp(24px, 5vw, 60px); }

/* Public landing page */
.landing-page.app-guest { padding: 0; background: #f9f7f1; }
.landing-page .guest-frame { max-width: none; min-height: 100vh; border: 0; border-radius: 0; background: #f9f7f1; box-shadow: none; }
.landing-page .guest-header { position: relative; z-index: 2; min-height: 84px; padding: 12px max(32px, calc((100vw - 1280px) / 2)); border-bottom: 1px solid #e7e7de; background: #f9f7f1; }
.landing-page .guest-brand { gap: 10px; font-size: .93rem; letter-spacing: .06em; white-space: nowrap; }
.landing-page .guest-brand img { width: 58px; height: 56px; }
.landing-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.landing-nav a { color: #33574a; font-size: .86rem; font-weight: 680; white-space: nowrap; }
.landing-nav a:hover { color: #123b2d; }
.landing-nav .landing-nav-request { color: #1e6046; text-decoration: underline; text-decoration-color: #a8c7ae; text-underline-offset: 5px; }
.landing-nav .landing-nav-login { display: inline-flex; align-items: center; gap: 20px; padding: 11px 18px; border: 1px solid #244d3c; border-radius: 100px; color: #1d4536; }
.landing-nav .landing-nav-login:hover { background: #244d3c; color: #fff; text-decoration: none; }
.landing-page .guest-content, .landing-page.app-authenticated .app-content { width: 100%; max-width: none; padding: 0; }
.landing-page .site-footer { background: #123d31; color: #bad4c3; border: 0; }
.landing { color: #173c30; overflow: clip; }
.landing :is(h1,h2,h3,p,figure) { margin-top: 0; }
.landing :is(h1,h2,h3) { letter-spacing: -.045em; }
.landing :is(h1,h2) em { color: #ad6d48; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.landing :is(a,summary):focus-visible, .landing-nav a:focus-visible { outline: 3px solid #b96e45; outline-offset: 4px; }
.landing section[id] { scroll-margin-top: 30px; }
.landing-overline, .landing-kicker, .landing-feature-number, .landing-base-label, .landing-addons-heading > span { color: #9a633e; font-size: .72rem; font-weight: 820; letter-spacing: .16em; text-transform: uppercase; }
.landing-kicker { display: inline-flex; align-items: center; gap: 10px; color: #2e7151; }
.landing-kicker-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #75ad6e; box-shadow: 0 0 0 5px #e3f0db; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; gap: clamp(36px, 5vw, 90px); min-height: 650px; max-width: 1440px; margin: 0 auto; padding: 76px clamp(30px, 5vw, 84px) 85px; }
.landing-hero-copy { max-width: 620px; }
.landing-hero h1 { max-width: 650px; margin: 27px 0 25px; font-size: clamp(3.2rem, 5.15vw, 5.7rem); font-weight: 760; line-height: 1.075; }
.landing-hero h1 em { white-space: normal; }
.landing-lead { max-width: 570px; color: #546a5c; font-size: clamp(1rem, 1.35vw, 1.17rem); line-height: 1.7; }
.landing-lead strong { color: #214e38; font-weight: 790; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 22px; margin-top: 30px; }
.landing-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 100px; font-size: .9rem; font-weight: 750; line-height: 1.2; }
.landing-button:hover { text-decoration: none; transform: translateY(-2px); }
.landing-button-primary { background: #1e6046; color: #fff; box-shadow: 0 12px 25px rgba(30,96,70,.18); }
.landing-button-primary:hover { background: #164834; color: #fff; }
.landing-button-text { padding-left: 8px; padding-right: 8px; color: #225840; }
.landing-button-text:hover { color: #143d2c; }
.landing-hero-note { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: #678071; font-size: .79rem; }
.landing-hero-note .nav-icon { width: 15px; height: 15px; }
.landing-product { position: relative; width: 100%; margin: 0; padding: 25px 0 0 20px; }
.landing-product::before { position: absolute; z-index: 0; top: -12px; right: -26px; bottom: 48px; left: 0; border-radius: 48% 45% 42% 48%; background: radial-gradient(circle at 40% 30%, #deeadc 0%, #e8e8d3 55%, #f3e6d6 100%); content: ''; }
.landing-product::after { position: absolute; z-index: 0; right: -18px; bottom: 69px; width: 125px; height: 125px; border: 1px solid rgba(144,118,78,.25); border-radius: 50%; content: ''; }
.landing-product-window { position: relative; z-index: 1; overflow: hidden; border: 9px solid #fff; border-radius: 24px; background: #fff; box-shadow: 0 30px 58px rgba(38,66,47,.19), 0 3px 10px rgba(38,66,47,.07); transform: rotate(-2deg); }
.landing-product-top { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid #e9eee8; color: #426854; font-size: .73rem; font-weight: 750; }
.landing-product-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #215e45; color: #fff; font-family: Georgia, serif; font-size: .78rem; }
.landing-product-dots { margin-left: auto; color: #a0aca1; letter-spacing: 3px; }
.landing-product-body { display: grid; grid-template-columns: 46px minmax(0,1fr); min-height: 348px; }
.landing-product-sidebar { display: grid; align-content: start; justify-items: center; gap: 20px; padding-top: 25px; background: #f4f7f1; }
.landing-product-sidebar span { width: 17px; height: 17px; border: 2px solid #a6bbaa; border-radius: 5px; }
.landing-product-sidebar span:first-child { border-color: #215e45; background: #d9e9da; }
.landing-product-main { min-width: 0; padding: 29px 26px; background: #fbfcf9; }
.landing-product-greeting small, .landing-product-greeting strong { display: block; }
.landing-product-greeting small { color: #779082; font-size: .67rem; font-weight: 700; }
.landing-product-greeting strong { margin-top: 4px; font-family: Georgia, serif; font-size: clamp(1.3rem, 1.9vw, 1.8rem); font-weight: 500; }
.landing-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 27px; }
.landing-product-grid > div { min-width: 0; padding: 13px 10px; border: 1px solid #e8ece5; border-radius: 10px; background: #fff; }
.landing-product-grid .nav-icon { display: block; width: 21px; height: 21px; margin-bottom: 18px; color: #438362; }
.landing-product-grid strong, .landing-product-grid span { display: block; overflow-wrap: anywhere; }
.landing-product-grid strong { font-size: .69rem; }
.landing-product-grid span { margin-top: 3px; color: #839388; font-size: .59rem; }
.landing-product-activity { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; min-height: 90px; margin-top: 10px; padding: 15px 16px; border: 1px solid #e8ece5; border-radius: 10px; background: #fff; }
.landing-product-activity span, .landing-product-activity strong { display: block; }
.landing-product-activity span { color: #819286; font-size: .63rem; }
.landing-product-activity strong { margin-top: 5px; font-size: .7rem; }
.landing-product-bars { display: flex !important; align-items: flex-end; gap: 4px; height: 48px; }
.landing-product-bars i { display: block; width: 9px; height: 35%; border-radius: 4px 4px 0 0; background: #dce9d9; }
.landing-product-bars i:nth-child(2), .landing-product-bars i:nth-child(5) { height: 67%; }
.landing-product-bars i:nth-child(3), .landing-product-bars i:nth-child(7) { height: 90%; background: #87b994; }
.landing-product-bars i:nth-child(4) { height: 52%; }
.landing-product-bars i:nth-child(6) { height: 77%; }
.landing-product figcaption { position: relative; z-index: 1; margin-top: 25px; color: #7e8c7f; font-size: .7rem; text-align: center; }
.landing-promise { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; max-width: 1200px; margin: 0 auto; padding: 29px 0; border-top: 1px solid #e3e5db; border-bottom: 1px solid #e3e5db; }
.landing-promise > div { display: flex; align-items: center; gap: 16px; padding: 3px 32px; }
.landing-promise > div + div { border-left: 1px solid #dddcd0; }
.landing-promise strong { color: #286047; font-family: Georgia, serif; font-size: clamp(1.8rem, 2.6vw, 2.7rem); font-weight: 500; white-space: nowrap; }
.landing-promise span { max-width: 170px; color: #586c5d; font-size: .82rem; line-height: 1.4; }
.landing-section { max-width: 1280px; margin: 0 auto; padding: clamp(80px, 9vw, 140px) 40px; }
.landing-section-heading { max-width: 780px; margin-bottom: 42px; }
.landing-section h2, .landing-plan h2, .landing-future h2, .landing-final h2 { margin: 15px 0 20px; font-size: clamp(2.6rem, 4.1vw, 4.3rem); font-weight: 750; line-height: 1.12; }
.landing-section-heading p { max-width: 670px; color: #5e7163; font-size: 1.04rem; line-height: 1.72; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.landing-feature { min-height: 305px; padding: 31px 29px; border: 1px solid #e2e7dc; border-radius: 18px; background: #fff; box-shadow: 0 12px 26px rgba(32,76,52,.035); }
.landing-feature-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 30px; border-radius: 13px; background: #e9f1e7; color: #256246; }
.landing-feature-icon .nav-icon { width: 25px; height: 25px; }
.landing-feature:nth-child(2) .landing-feature-icon { background: #f7ece1; color: #9a6a45; }
.landing-feature:nth-child(3) .landing-feature-icon { background: #e9ece3; color: #607960; }
.landing-feature-number { color: #829182; font-size: .64rem; }
.landing-feature h3 { margin: 10px 0 12px; font-size: 1.37rem; font-weight: 750; }
.landing-feature p { margin-bottom: 0; color: #647466; font-size: .9rem; line-height: 1.65; }
.landing-plan { padding: clamp(75px, 8vw, 116px) max(40px, calc((100vw - 1200px) / 2)); background: #173e31; color: #fff; }
.landing-plan .landing-overline { color: #bbd5af; }
.landing-plan h2 { margin-bottom: 0; color: #fff; }
.landing-plan h2 em { color: #e9c5a2; }
.landing-plan-top { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: end; margin-bottom: 43px; }
.landing-plan-top > p { max-width: 420px; margin-bottom: 7px; color: #c9dccd; font-size: 1rem; line-height: 1.75; }
.landing-plan-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.landing-base-card { position: relative; display: flex; flex-direction: column; min-height: 375px; padding: 34px; overflow: hidden; border-radius: 18px; background: #ecf1e7; color: #193f31; }
.landing-base-label { color: #347156; font-size: .65rem; }
.landing-base-symbol { position: absolute; top: 18px; right: 30px; color: #b7cbb4; font-size: 5.5rem; line-height: 1; }
.landing-base-card h3 { position: relative; max-width: 290px; margin: 45px 0 14px; font-family: Georgia, serif; font-size: clamp(1.8rem, 2.7vw, 2.7rem); font-weight: 500; line-height: 1.15; }
.landing-base-card > p { position: relative; max-width: 380px; color: #536b59; font-size: .93rem; line-height: 1.65; }
.landing-base-limit { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 19px; border-top: 1px solid #cbd9c9; }
.landing-base-limit strong { font-size: 1.05rem; }.landing-base-limit span { color: #5c7664; font-size: .8rem; }
.landing-addons { padding: 33px; border: 1px solid #4f7561; border-radius: 18px; }
.landing-addons-heading > span { color: #b9d5af; font-size: .65rem; }
.landing-addons-heading p { max-width: 440px; margin: 13px 0 22px; color: #e3efe5; font-family: Georgia, serif; font-size: 1.52rem; line-height: 1.3; }
.landing-addon-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.landing-addon-grid > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-content: center; min-height: 83px; padding: 13px; border: 1px solid #527362; border-radius: 10px; background: #234c3b; }
.landing-addon-grid .nav-icon { grid-row: 1 / 3; align-self: center; color: #c8d9b9; }
.landing-addon-grid strong { font-size: .79rem; }.landing-addon-grid span { margin-top: 3px; color: #b8cdbd; font-size: .68rem; }
.landing-plan-disclaimer { margin: 15px 0 0; color: #b7cbbb; font-size: .72rem; line-height: 1.5; }
.landing-plan-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 17px; color: #e9f3e6; font-size: .84rem; font-weight: 750; text-decoration: underline; text-decoration-color: #93b49a; text-underline-offset: 5px; }
.landing-plan-link:hover { color: #fff; }
.landing-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 120px); align-items: start; }
.landing-detail-copy { position: sticky; top: 35px; }
.landing-detail-copy h2 { max-width: 510px; }.landing-detail-copy > p { max-width: 480px; color: #5d7163; line-height: 1.75; }
.landing-inline-link { display: inline-flex; align-items: center; gap: 20px; margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid #275c44; font-weight: 760; }
.landing-detail-list > div { display: flex; gap: 22px; padding: 29px 0; border-bottom: 1px solid #dce4d9; }
.landing-detail-list > div:first-child { padding-top: 6px; }
.landing-detail-step { color: #ab774f; font-family: Georgia, serif; font-size: 1.25rem; }
.landing-detail-list h3 { margin: 0 0 10px; font-size: 1.19rem; font-weight: 740; }
.landing-detail-list p { max-width: 430px; margin: 0; color: #607264; font-size: .92rem; line-height: 1.67; }
.landing-future { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; padding: 67px max(40px, calc((100vw - 1200px) / 2)); background: #e9eee4; }
.landing-future h2 { max-width: 520px; margin-bottom: 0; font-size: clamp(2.3rem, 3.3vw, 3.7rem); }
.landing-future p { max-width: 520px; margin: 0; color: #526c5a; line-height: 1.75; }
.landing-faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.landing-faq h2 { font-size: clamp(2.3rem, 3.4vw, 3.7rem); }
.landing-faq-list { border-top: 1px solid #d9e2d7; }
.landing-faq-list details { border-bottom: 1px solid #d9e2d7; }
.landing-faq-list summary { position: relative; padding: 23px 44px 23px 0; font-size: 1rem; font-weight: 730; cursor: pointer; list-style: none; }
.landing-faq-list summary::-webkit-details-marker { display: none; }
.landing-faq-list summary::after { position: absolute; right: 4px; top: 21px; color: #4e805d; content: '+'; font-size: 1.4rem; font-weight: 400; }
.landing-faq-list details[open] summary::after { content: '−'; }
.landing-faq-list p { max-width: 600px; margin: -2px 0 23px; color: #5d7163; font-size: .91rem; line-height: 1.68; }
.landing-final { padding: clamp(76px, 9vw, 120px) 30px; background: #123d31; color: #fff; text-align: center; }
.landing-final .landing-overline { color: #b8d3ac; }
.landing-final h2 { max-width: 800px; margin: 17px auto; color: #fff; }
.landing-final h2 em { color: #e9c5a2; }
.landing-final > p { max-width: 550px; margin: 0 auto; color: #d0e0d1; line-height: 1.7; }
.landing-final .landing-actions { justify-content: center; }
.landing-button-light { background: #f3e9d9; color: #214735; }.landing-button-light:hover { background: #fff; color: #214735; }
.landing-button-outline { border-color: #779984; color: #edf7ec; }.landing-button-outline:hover { border-color: #edf7ec; color: #fff; }
.landing-final small { display: block; margin-top: 26px; color: #acc7b4; font-size: .76rem; }
.inquiry-page { display: grid; grid-template-areas: 'intro card' 'steps card'; grid-template-columns: .9fr 1.1fr; grid-template-rows: auto 1fr; align-items: start; column-gap: clamp(32px, 5vw, 80px); max-width: 1050px; margin: 0 auto; }
.inquiry-back { display: inline-block; margin-bottom: 54px; color: #4e705b; font-size: .82rem; font-weight: 700; }
.inquiry-intro { grid-area: intro; padding-top: 7px; }
.inquiry-intro .landing-overline, .inquiry-success .landing-overline { display: block; }
.inquiry-intro h1 { margin: 17px 0 22px; font-size: clamp(2.6rem, 4.2vw, 4rem); line-height: 1.1; }
.inquiry-intro h1 em { color: #ad6d48; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.inquiry-intro > p { max-width: 430px; color: #5c7164; font-size: .98rem; line-height: 1.72; }
.inquiry-steps { grid-area: steps; margin-top: 35px; border-top: 1px solid #dfe7df; }
.inquiry-steps > div { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid #dfe7df; }
.inquiry-steps span { color: #a77551; font-family: Georgia, serif; font-size: 1.1rem; }
.inquiry-steps p { margin: 0; color: #46634f; font-size: .86rem; line-height: 1.5; }
.inquiry-card { grid-area: card; padding: clamp(28px, 3vw, 44px); border: 1px solid #dfe7dc; border-radius: 20px; background: #fff; box-shadow: 0 22px 55px rgba(31,76,48,.08); }
.inquiry-card-heading > span { color: #397455; font-size: .7rem; font-weight: 820; letter-spacing: .15em; text-transform: uppercase; }
.inquiry-card h2 { margin: 12px 0 9px; font-size: clamp(1.7rem, 2.3vw, 2.35rem); font-weight: 750; letter-spacing: -.04em; }
.inquiry-card-heading p { margin-bottom: 27px; color: #697c6f; font-size: .85rem; line-height: 1.5; }
.inquiry-form .form-label { color: #2b4d39; font-size: .84rem; font-weight: 720 !important; }
.inquiry-form .form-control { min-height: 47px; border-color: #d8e3d8; background: #fbfdfa; }
.inquiry-form textarea.form-control { min-height: 130px; resize: vertical; }
.inquiry-form .form-control:focus { border-color: #40865b; box-shadow: 0 0 0 3px rgba(64,134,91,.15); }
.inquiry-submit { width: 100%; margin-top: 8px; cursor: pointer; }
.inquiry-login { margin: 24px 0 0; color: #667a6b; font-size: .84rem; text-align: center; }
.inquiry-login a { font-weight: 750; }
.inquiry-success { max-width: 630px; margin: 30px auto 50px; padding: clamp(38px, 5vw, 70px); border: 1px solid #dce6da; border-radius: 22px; background: #fff; box-shadow: 0 16px 44px rgba(31,76,48,.07); text-align: center; }
.inquiry-success-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 29px; border-radius: 50%; background: #e6f3e6; color: #267448; font-size: 2rem; }
.inquiry-success h1 { margin: 13px 0 18px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.inquiry-success p { margin: 0 auto 25px; color: #5f7465; line-height: 1.7; }
@media (max-width: 1050px) {
  .landing-hero { gap: 25px; padding-left: 35px; padding-right: 35px; }
  .landing-hero h1 { font-size: clamp(2.9rem, 5vw, 4.3rem); }
  .landing-plan { padding-left: 35px; padding-right: 35px; }
  .landing-future { padding-left: 35px; padding-right: 35px; }
  .landing-promise { margin-left: 35px; margin-right: 35px; }
}
@media (max-width: 800px) {
  .landing-page .guest-header { padding: 10px 25px; }
  .landing-nav { gap: 15px; }.landing-nav a:nth-child(3) { display: none; }
  .landing-hero { grid-template-columns: 1fr; min-height: 0; padding: 65px 35px 70px; }
  .landing-hero-copy { max-width: 680px; }.landing-hero h1 { font-size: clamp(3.2rem, 8vw, 5rem); }
  .landing-product { max-width: 580px; margin: 25px auto 0; }
  .landing-promise { grid-template-columns: 1fr 1fr 1fr; }
  .landing-promise > div { display: block; padding: 0 16px; }.landing-promise strong, .landing-promise span { display: block; }.landing-promise span { margin-top: 4px; }
  .landing-feature-grid { grid-template-columns: 1fr; }.landing-feature { min-height: 0; }
  .landing-plan-top, .landing-plan-layout, .landing-detail, .landing-future, .landing-faq { grid-template-columns: 1fr; gap: 30px; }
  .landing-detail-copy { position: static; }
  .landing-future p { max-width: 680px; }
  .inquiry-page { grid-template-areas: 'intro' 'card' 'steps'; grid-template-columns: 1fr; gap: 28px; }
  .inquiry-back { margin-bottom: 28px; }
  .inquiry-steps { margin-top: 0; }
}
@media (max-width: 600px) {
  .landing-page .guest-header { min-height: 72px; padding: 8px 18px; }
  .landing-page .guest-brand img { width: 45px; height: 45px; }.landing-page .guest-brand span { display: inline; font-size: .77rem; }
  .landing-nav > a:not(.landing-nav-login) { display: none; }
  .landing-nav .landing-nav-login { padding: 9px 12px; gap: 8px; font-size: .78rem; }
  .landing-hero { padding: 58px 22px 57px; }
  .landing-kicker { font-size: .63rem; }
  .landing-hero h1 { margin-top: 22px; font-size: clamp(2.65rem, 10.8vw, 3.8rem); }
  .landing-hero h1 em { white-space: normal; }
  .landing-actions { align-items: stretch; }.landing-hero .landing-button-primary { width: 100%; }
  .landing-product { padding-left: 7px; }.landing-product-window { border-width: 6px; }
  .landing-product-main { padding: 18px 12px; }.landing-product-grid { gap: 4px; }.landing-product-grid > div { padding: 8px 6px; }
  .landing-product-grid .nav-icon { width: 17px; height: 17px; margin-bottom: 9px; }
  .landing-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-product-grid strong { font-size: .68rem; }.landing-product-grid span { font-size: .58rem; }
  .landing-product-bars { display: none !important; }
  .landing-promise { grid-template-columns: 1fr; gap: 18px; margin: 0 22px; padding: 26px 0; }
  .landing-promise > div { display: flex; gap: 15px; padding: 0; }.landing-promise > div + div { padding-top: 18px; border-top: 1px solid #dddcd0; border-left: 0; }
  .landing-promise strong { width: 110px; font-size: 2rem; }.landing-promise span { max-width: none; margin: 0; }
  .landing-section { padding: 76px 22px; }.landing-section h2, .landing-plan h2, .landing-final h2 { font-size: clamp(2.35rem, 9.2vw, 3.1rem); }
  .landing-feature { padding: 26px; }.landing-plan { padding: 75px 22px; }.landing-base-card, .landing-addons { padding: 26px; }
  .landing-addon-grid { grid-template-columns: 1fr; }.landing-future { padding: 62px 22px; }
  .landing-detail-list > div { gap: 15px; }.landing-final { padding: 75px 22px; }
}
@media (prefers-reduced-motion: reduce) { .landing-button:hover { transform: none; } }

@media (max-width: 1150px) {
  .app-frame { grid-template-columns: 220px minmax(0, 1fr); }
  .app-content { padding: 25px 24px 36px; }
  .metric-grid, .report-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cashflow-grid .metric-card:last-child { grid-column: 1 / -1; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-shell { grid-template-columns: minmax(235px, 285px) minmax(0, 1fr); gap: 16px; }
  .setup-rail { padding: 24px 19px; }
  .setup-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.app-authenticated { padding: 0; }
  .app-frame { display: block; min-height: 100vh; border: 0; border-radius: 0; }
  .app-sidebar { position: fixed; z-index: 1100; top: 0; left: 0; width: 260px; height: 100dvh; max-height: none; box-shadow: 16px 0 40px rgba(20,48,38,.12); transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s ease; }
  .menu-open .app-sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-close { display: grid; place-items: center; align-self: flex-end; width: 40px; height: 40px; margin: 0 2px 4px; border: 1px solid var(--inmo-line); border-radius: 9px; background: #fff; color: var(--inmo-ink); font-size: 1.5rem; line-height: 1; }
  .sidebar-backdrop { display: none; position: fixed; z-index: 1090; inset: 0; width: 100%; border: 0; background: rgba(21,46,38,.45); }
  .menu-open .sidebar-backdrop { display: block; }
  .menu-toggle { display: inline-grid; }
  .app-topbar { padding: 12px 20px; min-height: 70px; }
  .topbar-date { display: none; }
}
@media (max-width: 860px) {
  .setup-shell { grid-template-columns: 1fr; }
  .setup-rail { padding: 24px; }
  .setup-rail-intro { max-width: 580px; }
  .setup-progress { display: flex; gap: 8px; overflow-x: auto; margin-top: 20px; padding-bottom: 7px; scroll-snap-type: x proximity; }
  .setup-progress-row { flex: 0 0 174px; padding: 0; scroll-snap-align: start; }
  .setup-progress-row:not(:last-child)::after { top: 28px; right: -10px; bottom: auto; left: auto; width: 12px; height: 2px; }
  .setup-progress-item { min-height: 89px; padding: 8px; }
  .setup-progress-number { flex-basis: 35px; width: 35px; height: 35px; }
  .setup-progress-copy strong { font-size: .82rem; }
  .setup-rail-note { margin-top: 10px; }
  .setup-card { min-height: 0; }
}
@media (max-width: 650px) {
  .payment-allocation-table thead { display: none; }
  .payment-allocation-table tbody, .payment-allocation-table tr, .payment-allocation-table td { display: block; width: 100%; }
  .payment-allocation-table tr { margin-bottom: 12px; padding: 10px; border: 1px solid var(--inmo-line); border-radius: 10px; }
  .payment-allocation-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0 !important; border: 0 !important; overflow-wrap: anywhere; }
  .payment-allocation-table td::before { content: attr(data-label); flex: 0 0 38%; color: var(--inmo-muted); font-size: .82rem; font-weight: 700; }
  .payment-allocation-table td:has(input) { display: block; }
  .payment-allocation-table td:has(input)::before { display: block; margin-bottom: 4px; }
  .unit-balance-grid { grid-template-columns: 1fr; }
  .calendar-view-switch { display: flex; }
  .calendar-view-switch [aria-pressed="true"] { background: var(--inmo-green); color: #fff; }
  .app-content { padding: 20px 15px 32px; }
  .app-topbar { padding: 10px 15px; }
  .topbar-right .user-email { display: none; }
  .topbar-left strong { max-width: 50vw; }
  .dashboard-hero { min-height: 0; padding: 20px; }
  .hero-skyline { right: -55px; opacity: .22; }
  .metric-grid, .report-metric-grid, .quick-grid, .overview-grid { grid-template-columns: 1fr; }
  .overview-grid .span-full { grid-column: auto; }
  .guest-frame { min-height: 100vh; border-radius: 0; }
  body.app-guest { padding: 0; }
  .guest-header { padding: 8px 16px; }
  .guest-brand img { width: 68px; height: 56px; }
  .guest-brand span { display: none; }
  .guest-content { padding: 22px 16px; }
  .setup-rail { padding: 21px 18px; }
  .setup-progress-row { flex-basis: 156px; }
  .setup-progress-item { gap: 7px; }
  .setup-progress-number { flex-basis: 32px; width: 32px; height: 32px; }
  .setup-progress-copy strong { font-size: .77rem; }
  .setup-progress-status { font-size: .64rem; }
  .setup-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-actions .btn, .setup-links .btn { width: 100%; }
  .setup-actions form { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-sidebar, .quick-link { transition: none; }
}
@media print {
  body.app-authenticated { padding: 0; background: #fff; }
  .app-frame { display: block; border: 0; box-shadow: none; }
  .app-sidebar, .app-topbar, .sidebar-backdrop { display: none !important; }
  .app-content { width: 100%; max-width: none; padding: 0; }
}
