/* Shared product shell. Existing forms and business actions keep their IDs. */
#assistedShareDialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto}
#assistedShareDialog .dialog-card{display:grid;gap:16px}
#assistedShareDialog label{display:grid;gap:8px}
#assistedShareDialog .dialog-actions{display:flex;flex-wrap:wrap;gap:10px}
:root{--bg:#f4f7fc;--text:#152544;--muted:#586b87;--line:#e1e9f4;--dark:#0866ee;--ok:#087d52;--warn:#975b08;--bad:#ba3445}
body{line-height:1.5;background:var(--bg)}
button,input,textarea,select{font:inherit}
button{transition:background .15s,border-color .15s,box-shadow .15s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #307bed;outline-offset:3px}
.app-shell{max-width:1600px;padding:32px 38px 48px 270px;position:relative;min-height:100vh}
.sidebar-brand{position:fixed;top:0;left:0;width:230px;height:104px;padding:28px 24px;display:flex;align-items:center;gap:12px;background:#fff;z-index:20;border-right:1px solid var(--line)}
.sidebar-brand strong{font-size:24px;letter-spacing:-1px;color:#102c58}.sidebar-brand small{display:block;font-size:11px;color:var(--muted)}
.brand-mark{background:#0866ee;border-radius:12px;width:42px;height:42px;font-size:24px}
.module-nav{position:fixed;left:0;top:104px;bottom:0;width:230px;z-index:20;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:20px 14px;gap:8px;overflow:visible}
.module-tab{border:0;border-radius:10px;background:transparent;padding:14px;text-align:left;font-size:13px;color:#526887;white-space:normal;min-height:48px}
.module-tab.active{background:#eaf2ff;color:#075ed5;border:0;box-shadow:inset 3px 0 #0872ff}.module-tab:hover{background:#f0f5fd}.module-tab span{display:none}
.product-topbar{padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:24px;align-items:center}
.topbar h1{font-size:28px;line-height:1.25;letter-spacing:-.8px;margin:6px 0}.subtitle{font-size:13px;max-width:440px}
.eyebrow{font-size:10px;letter-spacing:.11em;color:#5c7294}
.account-area{gap:8px}.account-chip{border:0;background:transparent;padding:4px}.org-chip{min-width:0;border:0;background:transparent;padding:4px 8px}.org-chip small{display:none}
.avatar{background:#e8f1ff;color:#1555a1;border:0}.account-area>.btn{font-size:12px;padding:9px 11px}.account-chip small{font-size:11px}
.rental-nav{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:8px;overflow-x:auto;scrollbar-width:none}
.rental-nav button{font:inherit;white-space:nowrap;background:none;border:0;border-bottom:3px solid transparent;color:var(--muted);padding:10px 2px 14px;font-size:13px;font-weight:650;cursor:pointer;min-height:44px}
.rental-nav button[aria-current]{color:#0866ee;border-bottom-color:#0866ee}
.rental-view{min-width:0}.rental-view>.module-toolbar{margin:0 0 22px}.module-toolbar h2{font-size:22px;letter-spacing:-.5px}
.btn{border-radius:9px;font-size:13px;padding:11px 15px;min-height:42px;font-weight:650}.btn.primary{background:#0866ee;border-color:#0866ee;box-shadow:0 3px 7px #0866ee14}.btn.primary:hover{background:#0758cc}.btn.ghost{background:#fff}.btn.ghost:hover{border-color:#9abbeb;background:#f6f9ff}
.panel,.metric{border-radius:14px;box-shadow:0 3px 16px #193c6d03}.panel{padding:22px;margin-bottom:20px}.panel h2{font-size:17px;letter-spacing:-.3px}.panel p{font-size:13px;line-height:1.6}.panel-head{margin-bottom:20px}
.dashboard-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:24px}.metric{padding:18px 16px;position:relative;overflow:hidden;min-height:112px}.metric::before{content:'';display:block;width:24px;height:4px;background:#2b7df0;border-radius:4px;margin-bottom:10px}.metric:nth-child(2)::before{background:#e6a52b}.metric:nth-child(3)::before{background:#8d65d3}.metric:nth-child(4)::before{background:#19a978}.metric:nth-child(5)::before{background:#e77a5b}.metric span{font-size:12px}.metric strong{font-size:29px;line-height:1.2;color:#142e56}.metric.attention{border-color:var(--line)}
.today-panel{border-top:3px solid #2b7df0}.task-row{padding:15px 0}.task-icon{background:#eaf2ff;color:#075ed5}.task-copy strong{font-size:14px}.task-copy span{font-size:12px;line-height:1.6}
.automation-panel{background:#fbfdff}.sync-status{background:#f0f5fc;color:#526887;line-height:1.6}.overview-contracts{margin-bottom:10px}
.lease-grid{margin-top:20px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.lease-card{padding:20px;border-radius:12px;background:#fff}.lease-title h3{font-size:16px}.property{color:#526887}.amount{color:#153361;letter-spacing:-.6px}.monthly-strip{background:#f7faff;border-color:#e6edf8}.meta-box{background:#f6f9fe}.meta-box span{color:#5d7190;font-size:10px}.mini-check{font-size:11px}.status{font-size:11px}.status.ok{background:#e7f8ef}.status.wait{background:#fff4dc}.actions .btn{font-size:12px}.chip{color:#4f6585;font-size:11px}
.contract-search{display:grid;gap:7px;max-width:440px;font-size:12px;font-weight:650;color:#526887}.contract-search input{padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#f8faff;width:100%;color:var(--text)}
.auth-screen{background:linear-gradient(130deg,#eaf3ff,#f9fbff 60%,#eef0ff)}.auth-card{border-radius:20px;box-shadow:0 20px 70px #20487912}.auth-brand h1{color:#17345f}.auth-brand .eyebrow{color:#0866ee}
.skip-link{position:fixed;top:-90px;left:250px;z-index:100;background:#fff;padding:14px;color:#075ed5}.skip-link:focus{top:10px}
@media(min-width:1600px){.sidebar-brand,.module-nav{left:max(0px,calc((100vw - 1600px)/2))}}
@media(max-width:1150px){.app-shell{padding:26px 24px 40px 232px}.sidebar-brand,.module-nav{width:208px}.sidebar-brand{padding:24px 18px}.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.account-area .org-chip{display:none}.topbar h1{font-size:24px}.product-topbar{gap:20px}.account-area>#installAppBtn{display:none}}
@media(max-width:860px){.app-shell{padding:22px 20px 100px}.sidebar-brand{position:static;width:auto;height:auto;padding:0 0 22px;border:0;background:transparent}.sidebar-brand .brand-mark{width:34px;height:34px;font-size:20px}.sidebar-brand strong{font-size:22px}.sidebar-brand small{display:none}.module-nav{top:auto;bottom:0;left:0;right:0;width:100%;height:auto;min-height:68px;display:grid;grid-template-columns:repeat(3,1fr);padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:6px;border:0;border-top:1px solid var(--line);box-shadow:0 -4px 20px #16375b07}.module-tab{text-align:center;min-height:48px;font-size:12px;padding:10px 5px}.module-tab.active{box-shadow:none;background:#eaf2ff}.product-topbar{flex-direction:row;align-items:center;gap:12px;padding-bottom:20px;margin-bottom:18px}.account-area{display:flex}.account-chip>span:last-child{display:none}.account-area>#logoutBtn{font-size:11px;padding:8px}.subtitle{font-size:12px}.topbar h1{font-size:24px}.topbar-copy>.eyebrow{display:none}.rental-nav{gap:20px}.rental-nav button{font-size:12px}.lease-grid{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid .metric:last-child{grid-column:1/-1;min-height:84px}.metric{min-height:112px}.split-grid{grid-template-columns:1fr}.skip-link{left:12px}}
@media(max-width:480px){.app-shell{padding:18px 16px 105px}.sidebar-brand{padding-bottom:15px}.topbar h1{font-size:22px}.account-area{gap:3px}.avatar{width:32px;height:32px}.panel{padding:18px}.panel-head{gap:12px}.panel h2{font-size:17px}.dashboard-grid{gap:10px}.metric{padding:15px}.metric span{font-size:12px}.metric strong{font-size:27px}.module-toolbar{flex-direction:row;align-items:center}.module-toolbar .btn{width:auto;font-size:12px}.module-toolbar h2{font-size:20px}.task-row{grid-template-columns:30px minmax(0,1fr)}.task-row .btn{grid-column:2}.automation-panel .panel-head{flex-direction:column}.automation-panel .panel-actions{display:flex;gap:8px;width:100%}.automation-panel .panel-actions .btn{flex:1}.meta-grid{grid-template-columns:1fr 1fr}.meta-box{padding:10px}.meta-box strong{font-size:12px}.rental-nav{margin-right:-16px;padding-right:16px}.lease-card{padding:16px}.actions{grid-template-columns:1fr 1fr}.actions .btn:last-child{grid-column:auto}.panel-head p{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Contract detail and guided Express review. */
/* Keep long client forms usable with short windows and mobile keyboards. */
#clientDialog{width:min(740px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border-radius:18px;overflow:hidden;background:#fff}
#clientForm{display:flex;flex-direction:column;gap:0;padding:0;max-height:calc(100dvh - 32px);overflow:hidden}
#clientForm>.dialog-head{position:static;flex-shrink:0;margin:0;padding:20px 24px 16px;border-bottom:1px solid var(--line);align-items:flex-start}
#clientForm .dialog-head h2{font-size:23px;margin:4px 0;overflow-wrap:anywhere}
#clientForm .client-form-body{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 24px;display:grid;gap:16px;align-content:start;-webkit-overflow-scrolling:touch}
#clientForm .client-form-body:focus-visible{outline-offset:-3px}
#clientForm>.dialog-actions{position:static;flex-shrink:0;margin:0;padding:16px 24px;border-top:1px solid var(--line);background:#fff;display:flex;flex-direction:row;justify-content:flex-end;gap:10px}
#clientForm>.dialog-actions .btn{width:auto;min-width:120px}
#clientForm>.form-msg{flex-shrink:0;min-height:0;margin:0;padding:0 24px;color:var(--bad)}
#clientForm>.form-msg:not(:empty){padding:10px 24px}
#clientForm .advanced{min-width:0}#clientForm .advanced .row2{margin:12px 0}
@media(max-width:640px){#clientDialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:14px}#clientForm{max-height:calc(100dvh - 16px)}#clientForm>.dialog-head{padding:16px}#clientForm .dialog-head h2{font-size:20px}#clientForm .client-form-body{padding:16px}#clientForm>.dialog-actions{padding:12px 16px max(12px,env(safe-area-inset-bottom))}#clientForm>.dialog-actions .btn{flex:1;min-width:0}}
.expense-filter{display:grid;gap:6px;font-size:12px;font-weight:650;margin:0 0 18px;color:#526887}.expense-filter select{font:inherit;padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text)}#maintenanceSummary small{font-size:11px;color:#526887;display:block;margin-top:6px}
.unit-monthly{padding:16px;background:#f7faff;border:1px solid var(--line);border-radius:12px;margin:16px 0}.unit-monthly>.collection-heading>strong{font-size:13px;text-transform:capitalize}.unit-monthly .collection-amounts{margin:16px 0}.unit-monthly .collection-amounts strong{font-size:15px}.unit-monthly .btn{width:auto}.unit-actions{padding-top:4px}
.collections-filters select{font:inherit;border:1px solid var(--line);border-radius:9px;padding:12px;background:#f8fbff;min-width:0;width:100%;color:var(--text)}.building-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:20px 0}.building-card{display:grid;gap:6px;text-align:left;border:1px solid #cbdffb;background:#f5f9ff;border-radius:12px;padding:18px;color:#153361;cursor:pointer;font:inherit}.building-card strong{font-size:17px}.building-card span{font-size:12px;color:#526887}.building-card small{font-size:12px;color:#315b83;line-height:1.6}.building-card:hover{background:#eaf3ff;border-color:#4088eb}.unit-description{margin:20px 0}.unit-description>span{display:block;font-size:11px;color:#526887}.unit-description>strong{font-size:24px;color:#153361}.unit-description p{font-size:13px}.unit-actions{display:flex;gap:8px;flex-wrap:wrap}.unit-history{margin-top:18px}.unit-history p{margin:12px 0}.panel-actions{display:flex;gap:8px;flex-wrap:wrap}#unitForm>p,#closeLeaseForm>p{font-size:13px;line-height:1.6}
.collections-filters{display:grid;grid-template-columns:180px minmax(180px,1fr);gap:16px;margin-bottom:18px}.collections-filters label{display:grid;gap:6px;font-size:12px;font-weight:650;color:#526887}.collections-filters input{font:inherit;border:1px solid var(--line);border-radius:9px;padding:12px;background:#f8fbff;min-width:0;width:100%}.collections-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.collections-summary>div{background:#f0f6ff;border-radius:12px;padding:16px;min-width:0}.collections-summary span,.collection-amounts span{display:block;font-size:11px;color:#526887;margin-bottom:7px}.collections-summary strong{font-size:20px;color:#153361;overflow-wrap:anywhere}.collections-list{display:grid;gap:14px}.collection-card{border:1px solid var(--line);border-radius:12px;padding:20px}.collection-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.collection-heading h3{margin:0;font-size:17px}.collection-heading p{margin-top:4px}.collection-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}.collection-amounts strong{font-size:17px;color:#153361}.collection-card>.btn{min-width:150px}#collectionDialog{width:min(680px,calc(100vw - 20px))}#collectionDialog h3{font-size:15px}#collectionDialog .collections-summary{margin:0}#collectionDialog .collections-summary strong{font-size:17px}#collectionDialog .form p{font-size:12px;line-height:1.6;margin:0}#collectionFormMessage{color:#315b83;line-height:1.6}
@media(max-width:600px){.collections-filters{grid-template-columns:1fr}.collections-summary{grid-template-columns:1fr 1fr}.collections-summary>div:last-child{grid-column:1/-1}.collection-heading{flex-direction:column}.collection-amounts{grid-template-columns:1fr 1fr}.collection-amounts>div:last-child{grid-column:1/-1;padding:12px;background:#f5f9ff;border-radius:9px}.collection-card{padding:16px}.collection-card>.btn{width:100%}.collections-summary strong{font-size:18px}}
#ledgerDialog{width:min(960px,calc(100vw - 48px));max-height:92vh;overflow:auto;border-radius:20px;background:#fff;box-shadow:0 24px 90px #15254435}
#ledgerDialog .dialog-card{max-height:none;padding:26px;gap:22px}
#ledgerDialog .dialog-head{top:-26px;padding-top:10px;margin:0;background:#fff;align-items:flex-start}
#ledgerDialog .dialog-head h2{font-size:24px;letter-spacing:-.5px;color:#153361}
#ledgerSubtitle{font-size:12px;line-height:1.6;margin:5px 0 0;max-width:620px}
.ledger-overview{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:12px;background:#f0f6ff;border:1px solid #e0ecff;border-radius:14px;padding:18px}
.ledger-overview>div{display:grid;gap:6px;min-width:0}.ledger-overview span{font-size:11px;color:#526887}.ledger-overview strong{font-size:17px;color:#153361}.ledger-overview>div:first-child strong{font-size:24px;letter-spacing:-.5px}
.ledger-nav{margin:0}.ledger-section{min-width:0}.ledger-section h3{font-size:16px;margin:0 0 5px}.ledger-section p{font-size:12px;margin:0;color:var(--muted);line-height:1.6}.section-head{margin-bottom:18px}.check-grid{gap:12px}.check-card{background:#f9fbff;border-color:var(--line);min-height:76px;padding:14px}.check-card input{accent-color:#0866ee}.check-card strong{font-size:13px}.check-card small{font-size:11px}.check-grid>label.full-span{font-size:12px;color:#526887;display:grid;gap:7px}.check-grid textarea{font:inherit;border:1px solid var(--line);border-radius:10px;padding:12px;resize:vertical}.ledger-section .dialog-actions{position:static;padding:12px 0 0;background:transparent}.schedule-rule,.schedule-date{background:#f8fbff;padding:14px;min-width:160px}.schedule-date.next{background:#eaf3ff;border-color:#aecfff}.maintenance-form{background:#f8fbff;border:1px solid var(--line);border-radius:12px;padding:18px}.maintenance-list{margin-top:22px}
.invoice-steps{display:flex;list-style:none;margin:0 0 24px;padding:0;gap:12px}.invoice-steps li{display:flex;align-items:center;gap:8px;flex:1;font-size:12px;font-weight:650;color:#60738f;border-bottom:2px solid #e6edf7;padding-bottom:14px}.invoice-steps b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f0f4fa;color:#60738f;font-size:11px}.invoice-steps li[aria-current]{color:#0866ee;border-color:#0866ee}.invoice-steps li[aria-current] b{background:#0866ee;color:#fff}.invoice-steps li.complete{color:#087d52;border-color:#7ccead}.invoice-steps li.complete b{background:#e4f7ef;color:#087d52}
.express-hero{max-width:960px;width:100%}.express-hero .natural-command-callout{background:#f0f6ff;border-color:#dce9ff;padding:18px;margin-bottom:18px}.natural-command-callout strong{color:#173b70;font-size:17px}.natural-command-callout span{font-size:13px;line-height:1.6}.example-chips{margin-bottom:20px}.command-form{grid-template-columns:1fr;gap:16px}.command-form label{font-size:13px}.command-form textarea{padding:16px;font-size:15px;line-height:1.6;min-height:124px;background:#fbfdff;resize:vertical}.command-form textarea::placeholder{color:#64748b}.command-form .command-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.command-actions .muted{font-size:12px}.command-form details label{margin-top:12px}.legacy-format{margin-top:18px}.legacy-format summary,.command-form details summary{font-size:12px;color:#536b8d}.command-preview{border:1px solid #bfd7fc;background:#f8fbff;padding:22px;border-radius:14px;margin-top:24px}.preview-head h3{font-size:21px;color:#153361}.preview-grid{gap:12px;margin-top:18px}.preview-grid>div{padding:14px;border-color:#e1eaf7}.preview-grid span{font-size:10px;color:#526887}.preview-grid strong{font-size:14px}.preview-actions{padding-top:16px;border-top:1px solid var(--line);margin-top:20px}.preview-actions>.muted{font-size:12px;line-height:1.6;flex-basis:100%}.command-row{padding:18px 0;gap:18px}.command-row>.command-row-main+strong{color:#153361;font-size:18px}.command-row .muted{font-size:12px;line-height:1.6}.client-card{padding:18px;border-radius:12px}.client-data span{background:#f6f9ff;padding:12px}.client-data b{font-size:10px}
@media(max-width:640px){#ledgerDialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:94dvh;border-radius:16px}#ledgerDialog .dialog-card{padding:18px;gap:18px}#ledgerDialog .dialog-head{top:-18px;padding:12px 0}#ledgerDialog .dialog-head h2{font-size:21px}.ledger-overview{grid-template-columns:1fr 1fr;padding:14px;gap:15px}.ledger-overview>div:first-child{grid-column:1/-1}.ledger-overview strong{font-size:14px}.ledger-overview>div:first-child strong{font-size:26px}.ledger-nav{gap:18px;margin-right:-18px;padding-right:18px}.ledger-section .dialog-actions{flex-direction:row}.ledger-section .dialog-actions .btn{width:100%}.maintenance-form{padding:13px}.invoice-steps{gap:8px}.invoice-steps li{gap:6px;font-size:11px}.invoice-steps b{width:23px;height:23px}.express-hero .panel-head{flex-direction:column;gap:10px}.command-preview{padding:16px}.preview-head h3{font-size:19px}.command-form .command-actions{display:grid;gap:10px}.command-actions>.muted{text-align:center}.preview-grid{grid-template-columns:1fr 1fr}.preview-grid .wide{grid-column:1/-1}.preview-actions .btn{flex:1}.command-row{gap:10px}}
