/* Workspace design system. Print/deed measurements remain in styles.css. */
.portal-shell{--brand:#116b63;--brand2:#102d33;--accent:#117465;--line:#e3e9ec;--bg:#f5f7f8;--ink:#182e39;--muted:#6e7f89;--shadow:0 6px 22px rgba(22,47,58,.05);font-size:14px;background:var(--bg)}
.portal-shell .sidebar{width:244px;background:#102b34;color:#dce8ec;border-right:1px solid #173945}
.portal-shell .sidebar-brand{padding:25px 20px 19px;border-color:rgba(255,255,255,.08)}
.portal-shell .sidebar-brand .brand-mark{height:36px;width:36px;border-radius:11px;background:#90d8c3;color:#123d39;box-shadow:none}
.portal-shell .brand h1{font-size:14px;letter-spacing:-.2px;font-weight:700;color:#f4faf9}
.portal-shell .brand p{font-size:10px;font-weight:400;color:#91aeb8;margin-top:4px}
.portal-shell .nav{padding:12px;gap:15px}
.nav-group-label{margin:0 12px 6px;font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:1.3px;color:#7899a6}
.portal-shell .nav-btn{border-radius:8px;padding:9px 12px;color:#bbced6;font-size:12px;font-weight:500;gap:11px;min-height:39px}
.portal-shell .nav-btn:hover{background:#193d47;color:white}
.portal-shell .nav-btn.active{background:#244b51;color:#a7eddb;box-shadow:inset 3px 0 #8ed6c4}
.nav-icon{display:inline-grid;place-items:center;width:19px;font-size:16px;font-weight:500;opacity:.9}
.nav-indicator{width:6px;height:6px;border-radius:50%;background:#e4b25b;margin-left:auto}
.portal-shell .sidebar-foot{padding:14px 16px;border-color:rgba(255,255,255,.08)}
.workspace-user{display:flex;gap:10px;align-items:center;min-width:0;margin-bottom:10px}.user-avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#33525c;color:#e1f1ec;font-size:12px}.workspace-user div{min-width:0}.workspace-user strong{display:block;font-size:11px;font-weight:600}.workspace-user div>span{display:block;overflow:hidden;text-overflow:ellipsis;font-size:9px;color:#94acb7;margin-top:2px}.portal-shell .sidebar-foot .btn{color:#a9c1cb;padding:5px 0;font-weight:500}
.portal-shell .admin-main{margin-left:244px}.portal-shell .admin-top{padding:18px 30px;min-height:91px;background:rgba(255,255,255,.96);border-color:var(--line);gap:20px}.page-heading{display:flex;align-items:center;gap:12px}.breadcrumb{font-size:10px;color:#8a979f;margin-bottom:5px}.breadcrumb span{margin:0 8px;color:#c7d2d7}.portal-shell .admin-top h1{font-size:22px;font-weight:650;line-height:1.3;letter-spacing:-.65px}.portal-shell .admin-content{max-width:1600px;padding:26px 30px 36px;margin:auto;background:transparent}.workspace-footer{display:flex;justify-content:space-between;padding:0 30px 18px;color:#99a6ad;font-size:10px}.workspace-footer span{font-size:9px}.sidebar-scrim{display:none}
.portal-shell .btn{font-size:12px;font-weight:600;padding:10px 14px;border-radius:8px;box-shadow:none;min-height:38px;transition:background .15s}.portal-shell .btn:hover{transform:none}.portal-shell .btn-sm{font-size:11px;padding:8px 11px;min-height:34px}.portal-shell .btn-primary{background:#116b63;color:white}.portal-shell .btn-success{background:#116b63}.portal-shell .btn-light{background:#fff;color:#445b67;border-color:#dfe6e9}.portal-shell .btn-light:hover{background:#f6f9fa}.portal-shell .toolbar-right{gap:7px}.portal-shell .btn-icon{padding:0;width:38px}.portal-shell .page-intro{align-items:center;margin-bottom:22px}.portal-shell .page-title-secondary{display:none}.eyebrow{margin:0 0 6px;font-size:9px!important;font-weight:600!important;letter-spacing:1.1px;text-transform:uppercase;color:#7b8d98}.page-intro .muted{margin:0;line-height:1.7}.page-intro>div>p:not(.eyebrow){font-size:12px}.portal-shell .page-intro .eyebrow{display:none}
.portfolio-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid #e2e9ec;border-radius:12px;background:#fff;margin-bottom:25px;padding:21px 0;box-shadow:0 2px 8px rgba(20,45,53,.015)}.portfolio-summary>div{padding:0 23px;border-right:1px solid #e9edef}.portfolio-summary>div:last-child{border:0}.portfolio-summary span{font-size:11px;color:#7c8c96;display:block;margin-bottom:8px}.portfolio-summary strong{font-size:25px;line-height:1;font-weight:600;letter-spacing:-.6px;color:#193943}.portfolio-summary small{font-size:10px;color:#8b999f;font-weight:400;letter-spacing:0}
.portfolio-search{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.search-field{position:relative;width:min(390px,100%);display:flex;align-items:center}.search-field>span{position:absolute;left:13px;color:#8a9ca5;font-size:22px}.search-field .input{padding-left:38px}.portal-shell .input,.portal-shell .select{border-radius:8px;font-size:12px;min-height:40px;border-color:#dce4e8}.portal-shell .input:focus,.portal-shell .select:focus{border-color:#299588;box-shadow:0 0 0 3px #e3f1ee}
.property-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:19px;align-items:stretch}.property-card{border:1px solid #e1e8eb;border-radius:12px;background:#fff;padding:22px;display:flex;flex-direction:column;min-width:0;box-shadow:0 3px 12px rgba(15,44,54,.025);transition:border-color .15s,box-shadow .15s}.property-card:hover{border-color:#aecdc6;box-shadow:0 6px 18px rgba(15,44,54,.05)}.property-card[hidden]{display:none}.property-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.property-code{font-size:11px;font-weight:650;letter-spacing:1px;background:#edf5f3;color:#39796c;border:1px solid #e0efea;min-width:45px;height:42px;padding:0 10px;display:grid;place-items:center;border-radius:9px}.property-card h3{font-size:17px;line-height:1.4;font-weight:650;letter-spacing:-.3px;margin:0 0 7px;color:#203a46}.property-address{font-size:11px;line-height:1.8;min-height:40px;color:#81919a;margin:0 0 20px}.property-unit-stats{display:flex;gap:16px;padding-bottom:17px;border-bottom:1px solid #edf1f3;color:#84939b;font-size:10px}.property-unit-stats strong{color:#395460;font-size:13px;font-weight:600;margin-right:3px}.property-owner-summary{padding:18px 0;flex:1;min-height:86px}.owner-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.owner-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:6px;background:#edf5f2;color:#356f60;border:1px solid #e0eee7;font-size:10px;line-height:1.4;font-weight:500}.owner-chip small{font-size:8px;color:#739d8e;border-left:1px solid #c3dcd1;padding-left:5px}.unassigned-label{font-size:11px;color:#a37e41;line-height:1.6}.property-card-actions{display:flex;gap:8px;padding-top:15px;border-top:1px solid #edf1f3}.property-card-actions .btn:first-child{flex:1}
.unit-filters{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(130px,1fr)) auto;gap:10px;margin-bottom:19px}.table-caption{display:flex;justify-content:space-between;align-items:center;color:#6e848e;font-size:11px;margin:0 1px 10px;gap:12px}.portal-shell .table-wrap{border-radius:10px;border-color:#e0e7eb;box-shadow:none}.portal-shell .data-table{min-width:660px}.portal-shell .data-table th{font-size:9px;font-weight:600;letter-spacing:.7px;padding:13px 17px;background:#fafcfc;color:#85969f;border-bottom:1px solid #e7edef}.portal-shell .data-table td{font-size:12px;padding:16px 17px;border-top:1px solid #edf1f3;color:#415d6b}.portal-shell .data-table td strong{font-weight:600;color:#284652}.portal-shell .data-table tr:hover td{background:#fbfdfc}.portal-shell .data-table tr[hidden]{display:none}.cell-subtitle{display:block;font-size:10px;color:#93a1a8;margin-top:5px;line-height:1.7}.portal-shell .tag{font-size:8px;letter-spacing:.2px;font-weight:600;padding:4px 7px;border-radius:5px}.portal-shell .tag-slate{color:#81919a;background:#f0f4f5}.portal-shell .tag-green{background:#e9f4ee;color:#388567}.portal-shell .metric{border-radius:11px;box-shadow:none;padding:21px}.portal-shell .metric-value{font-size:25px;font-weight:600;letter-spacing:-.7px}.portal-shell .metric-label{font-size:10px;font-weight:500}.portal-shell .metric-sub{font-size:10px}.portal-shell .card{border-color:#e0e7eb;box-shadow:none;border-radius:11px}.portal-shell .section-head h3{font-size:14px;font-weight:600}.portal-shell .section-head p{font-size:11px}.portal-shell .empty{font-size:12px;border:1px dashed #dce5e9;font-weight:400;border-radius:10px;padding:35px}
.workspace-welcome{background:#e9f2ee;border:1px solid #dbe9e2;border-radius:12px;padding:26px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.workspace-welcome h2{font-size:24px;letter-spacing:-.7px;font-weight:600;margin:0 0 8px;color:#254b43}.workspace-welcome p:not(.eyebrow){font-size:11px;line-height:1.8;color:#739086;margin:0}.welcome-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
/* Organized edit panels */
.organized-form{display:flex;flex-direction:column;gap:22px}.form-section{min-width:0;margin:0;border:0;border-bottom:1px solid #edf1f3;padding:0 0 21px}.form-section:last-child{border-bottom:0;padding-bottom:0}.form-section legend{font-size:12px;font-weight:650;color:#35525e;margin-bottom:16px;padding:0}.form-section .field label{font-size:11px;font-weight:500;color:#687e88}.field-description{font-size:10px;line-height:1.8;color:#8a9ba4;margin:2px 0 8px}.owner-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 15px;max-height:220px;overflow:auto}.owner-choice{display:flex;align-items:center;gap:10px;border:1px solid #e1e8eb;border-radius:8px;padding:11px 13px;cursor:pointer;background:#fafcfc}.owner-choice:has(input:checked){border-color:#72ad9f;background:#edf6f2}.owner-choice input{accent-color:#15776b;width:16px;height:16px}.owner-choice strong{font-size:11px;font-weight:550;color:#3d5c67}.owner-choice small{display:block;color:#97a6ae;font-size:9px;margin-top:4px}.signing-label{display:grid;gap:7px}.ownership-summary{margin-top:6px}.ownership-widget>.select{margin-bottom:5px}
#modalRoot .modal:has(#propertyForm),#modalRoot .modal:has(#ownerForm){max-width:820px}#modalRoot .modal:has(#unitForm){max-width:940px}#modalRoot .modal:has(.organized-form){border-radius:14px}#modalRoot .modal:has(.organized-form) .modal-head{padding:19px 26px}#modalRoot .modal:has(.organized-form) .modal-head h2{font-size:16px;font-weight:650;color:#294956}#modalRoot .modal:has(.organized-form) .modal-body{padding:24px 26px}#modalRoot .organized-form .input,#modalRoot .organized-form .select,#modalRoot .organized-form .textarea{font-size:12px;padding:11px 12px;border-radius:8px;border-color:#dce5e9;min-height:43px}#modalRoot .organized-form .textarea{min-height:80px}#modalRoot .organized-form .input:focus,#modalRoot .organized-form .select:focus,#modalRoot .organized-form .textarea:focus{border-color:#62a999;box-shadow:0 0 0 3px #e6f3ee}#modalRoot form:has(.organized-form)>.form-actions{position:sticky;bottom:-24px;background:#fff;margin-top:16px;padding:16px 0 6px;z-index:3}#modalRoot form:has(.organized-form)>.form-actions .btn{font-size:12px;font-weight:600;border-radius:8px}#modalRoot form:has(.organized-form)>.form-actions .btn-primary{background:#116b63}
.login-shell{background:radial-gradient(ellipse at top left,#dceee8,transparent 55%),#f3f6f6}.login-card{border:1px solid #dfe8e6;border-radius:18px;padding:38px!important;box-shadow:0 15px 55px rgba(25,65,56,.07)}.login-card .brand-mark{background:#116b63;box-shadow:none;border-radius:12px}.login-card h1{font-size:25px;font-weight:600;letter-spacing:-.7px;line-height:1.4}.login-card>p{font-size:12px;line-height:1.8;color:#8b9b9e}.login-card>.eyebrow{margin-top:28px;color:#5a9185}.login-card .btn-primary{background:#116b63;font-weight:600}.login-card .field label{font-weight:500}.login-footnote{text-align:center;font-size:10px!important;margin:24px 0 0}.login-feedback{background:#fff1ed;border:1px solid #f1d6ce;border-radius:8px;padding:11px 13px;margin:14px 0;color:#a75f4a;font-size:12px}.btn:focus-visible,a:focus-visible{outline:2px solid #439e8c;outline-offset:3px}
body.dark-mode .portal-shell{--bg:#132730;--ink:#dbe9ed;--muted:#92a8b2;--line:#314750;background:var(--bg)}body.dark-mode .portal-shell .admin-top,body.dark-mode .portal-shell .property-card,body.dark-mode .portal-shell .portfolio-summary,body.dark-mode .portal-shell .table-wrap,body.dark-mode .portal-shell .card{background:#1b333e;border-color:#304b57}body.dark-mode .portal-shell h1,body.dark-mode .portal-shell h3,body.dark-mode .portal-shell strong,body.dark-mode .portal-shell td{color:#d9e9ed}body.dark-mode .portal-shell .data-table th,body.dark-mode .portal-shell .data-table tr:hover td{background:#213c47}body.dark-mode .portal-shell .data-table td{border-color:#2a4652}body.dark-mode .portal-shell .workspace-welcome{background:#21443e;border-color:#31574f}body.dark-mode .portal-shell .workspace-welcome h2{color:#bde4d7}body.dark-mode .portal-shell .btn-light{background:#28444e;color:#d8e8ed;border-color:#3c5863}body.dark-mode .portal-shell .input,body.dark-mode .portal-shell .select{background:#1c3540;color:#dcebee;border-color:#3c5662}body.dark-mode .portal-shell .property-unit-stats,body.dark-mode .portal-shell .property-card-actions{border-color:#304b57}
@media(min-width:1500px){.property-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1150px){.portal-shell .sidebar{width:220px}.portal-shell .admin-main{margin-left:220px}.portal-shell .admin-content{padding:22px}.portal-shell .admin-top{padding:17px 22px}.unit-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-welcome{align-items:flex-start;flex-direction:column}.welcome-actions{flex-shrink:1}}
@media(max-width:900px){.portal-shell .sidebar{transform:translateX(-100%);width:244px;transition:transform .2s}.portal-shell .sidebar.open{transform:translateX(0)}.portal-shell .sidebar.open+.sidebar-scrim{display:block;position:fixed;inset:0;border:0;background:rgba(13,30,39,.45);z-index:35}.portal-shell .admin-main{margin-left:0}.portal-shell .mobile-menu{display:inline-flex}.portal-shell .admin-top{padding:15px 18px}.portal-shell .admin-top h1{font-size:20px}.portal-shell .admin-content{padding:20px 18px}.portal-shell .admin-top .toolbar-right{width:auto}.portfolio-summary>div{padding:0 16px}.property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.portal-shell .admin-top{align-items:flex-start;gap:12px;flex-wrap:wrap}.portal-shell .admin-top .toolbar-right{width:100%;padding-left:50px;flex-wrap:nowrap;overflow:auto}.portal-shell .admin-top .toolbar-right .btn{font-size:10px;white-space:nowrap;padding:7px 10px}.portfolio-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.portfolio-summary>div{padding:18px}.portfolio-summary>div:nth-child(2){border-right:0}.portfolio-summary>div:nth-child(-n+2){border-bottom:1px solid #edf1f3}.portfolio-summary strong{font-size:22px}.property-grid{grid-template-columns:1fr}.unit-filters{grid-template-columns:1fr 1fr;gap:8px}.unit-filters #unitSearch{grid-column:1/-1}.unit-filters .input,.unit-filters .select{font-size:11px}.unit-filters .btn{min-height:40px}.table-caption{align-items:flex-start}.table-caption>.tiny{max-width:48%;text-align:right}.owner-choice-list{grid-template-columns:1fr}.property-card{padding:20px}.workspace-welcome{padding:22px}.workspace-welcome h2{font-size:22px}.portal-shell .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-shell .metric{padding:16px}.portal-shell .metric-value{font-size:20px}.portal-shell .toolbar>.toolbar-right{width:auto}#modalRoot .modal:has(.organized-form) .modal-body{padding:18px}#modalRoot .modal:has(.organized-form) .modal-head{padding:16px 18px}.organized-form .form-grid{grid-template-columns:1fr}.organized-form .span-2{grid-column:auto}.login-card{padding:27px!important}.workspace-footer{padding-inline:18px}}
@media(prefers-reduced-motion:reduce){.portal-shell *{scroll-behavior:auto!important;transition:none!important}}
@media print{.workspace-footer,.sidebar-scrim{display:none!important}}
/* Resolve legacy color overrides only inside the workspace. */
.portal-shell .btn-primary,#modalRoot form:has(.organized-form)>.form-actions .btn-primary,.login-card .btn-primary{background:#116b63!important;border-color:#116b63!important;color:#fff!important}
.portal-shell .btn-primary:hover,#modalRoot form:has(.organized-form)>.form-actions .btn-primary:hover,.login-card .btn-primary:hover{background:#0b5952!important;border-color:#0b5952!important}
.portal-shell .btn-success{background:#116b63!important;border-color:#116b63!important}
.portal-shell .btn-light,.portal-shell .btn-ghost{border-color:#dfe6e9!important}
.portal-shell .sidebar-foot .btn-ghost{background:transparent!important;border:0!important;color:#b2c8d2!important;justify-content:flex-start}
.portal-shell .nav-btn.active{border-color:#8ed6c4!important}
.portal-shell .nav-btn.active::before{background:#8ed6c4!important}
.portal-shell .data-table th{background:#fafcfc!important;color:#85969f!important}
.portal-shell .nav{scrollbar-width:thin;scrollbar-color:#32535d transparent}
@media(min-width:901px){.portal-shell .mobile-menu{display:none}}
body.dark-mode .portal-shell .btn-light{background:#28444e!important;border-color:#3c5863!important;color:#d8e8ed!important}
body.dark-mode .portal-shell .data-table th{background:#213c47!important;color:#9ab2bc!important}
@media(max-width:900px){.portal-shell .sidebar:not(.open){visibility:hidden}.portal-shell .sidebar.open{visibility:visible}}
#modalRoot .btn-primary{background:#116b63!important;border-color:#116b63!important}
#modalRoot .btn-primary:hover{background:#0b5952!important;border-color:#0b5952!important}
.list-search-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:4px 0 15px}.owner-profile-search{margin-bottom:9px}.owner-choice[hidden]{display:none}
#modalRoot form:has(.organized-form)>.form-actions{bottom:0;padding:14px 0 12px}
@media print{body{overflow:visible!important}}

.email-center{margin-bottom:20px}.email-envelope{padding:16px;background:var(--surface-muted,#f4f7f6);border-radius:10px;margin:16px 0;overflow-wrap:anywhere}.email-envelope p{margin:6px 0;display:grid;grid-template-columns:65px 1fr;gap:10px}.email-envelope span{color:#62766e}.email-preview{width:100%;height:460px;border:1px solid #dce5df;border-radius:10px;background:#fff}

.email-attachment{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #cbded8;border-radius:10px;padding:14px;margin-bottom:14px;background:#f5fbf8}.email-attachment[hidden]{display:none}.email-attachment span{flex:1;overflow-wrap:anywhere;font-size:13px}

#testTenantEmail[hidden]{display:none}
