/* Country flags (🇨🇦) on every platform, including Windows which has no flag emoji: this font covers only the flag letters. */
@font-face{font-family:"Twemoji Country Flags";src:url("fonts/TwemojiCountryFlags.woff2") format("woff2");unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0062-E0063,U+E0065,U+E0067,U+E006C,U+E006E,U+E0073-E0074,U+E0077,U+E007F;font-display:swap}
@import url('fonts.css');
:root{--primary:#6958e8;--primary-dark:#5545ca;--primary-soft:#eeebfd;--text:#27263e;--muted:#77768b;--border:#eeedf4;--bg:#f7f8fc;--card:#fff;--green:#278b6b;--radius:17px;--shadow:0 4px 24px #24234403;font-family:"Twemoji Country Flags",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8c7cf7;outline-offset:3px}svg{flex-shrink:0;vertical-align:middle}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.skip-link{position:fixed;top:-60px;left:20px;background:var(--primary);color:#fff;padding:12px;z-index:100}.skip-link:focus{top:8px}.boot{display:grid;place-content:center;min-height:100vh;text-align:center}.boot img{margin:auto}.boot p{color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:var(--card);border-right:1px solid var(--border);padding:32px 18px 18px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:10px;padding:0 13px;font-size:24px;font-weight:750;letter-spacing:-1.1px}.brand :is(img,.app-logo){width:35px;height:35px}.brand .brand-rent{font-weight:450}.workspace-switch{margin:35px 5px 27px;padding:12px 10px;background:#f8f8fc;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;gap:11px}.workspace-icon{display:grid;place-items:center;background:#f0ecfb;border:1px solid #e4ddf7;color:#6c58ab;border-radius:8px;width:35px;height:35px}.workspace-copy{flex:1}.workspace-copy strong{display:block;font-size:12px;font-weight:650}.workspace-copy small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.nav-label{font-size:9px;letter-spacing:1.8px;color:#9290a4;font-weight:650;padding:0 17px;margin:0 0 10px}.nav-item{height:44px;padding:0 14px;margin:4px 0;border-radius:8px;display:flex;align-items:center;gap:12px;font-size:12px;font-weight:500;color:#777589;transition:.15s}.nav-item:hover{background:var(--bg);color:var(--primary)}.nav-item.active{background:var(--primary-soft);color:var(--primary);font-weight:650}.nav-item .icon{width:18px;height:18px}.nav-item .count{margin-left:auto;background:#fff;color:var(--primary);min-width:23px;text-align:center;line-height:20px;border-radius:5px;font-size:10px}.nav-divider{height:1px;background:var(--border);margin:20px 14px}.sidebar-bottom{margin-top:auto;padding-top:22px}.plan-card{margin:0 5px 16px;padding:16px 14px;background:linear-gradient(135deg,#f5f2ff,#f1f0fc);border:1px solid #e9e4fc;border-radius:12px}.plan-card .plan-title{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650}.plan-card p{font-size:10px;line-height:1.7;color:var(--muted);margin:8px 0 12px}.plan-card .btn{width:100%;font-size:10px;min-height:32px;padding:8px}.sidebar-footer{display:flex;align-items:center;padding:12px 10px 0;border-top:1px solid var(--border);gap:9px}.avatar{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#f0e5d8;color:#8e7153;border-radius:50%;font-size:11px;font-weight:650}.avatar.purple{background:#ece7fb;color:#8271ba}.avatar.green{background:#e1f1e9;color:#4f9677}.avatar.blue{background:#e5edf8;color:#6689af}.avatar.rose{background:#f8e7ed;color:#b57788}.user-copy{flex:1}.user-copy strong{font-size:11px;display:block}.user-copy span{font-size:10px;color:var(--muted);display:block;margin-top:4px}.shell{margin-left:236px}.topbar{height:83px;border-bottom:1px solid var(--border);background:var(--card);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:20px}.breadcrumb{font-size:12px;display:flex;gap:11px;align-items:center}.breadcrumb .muted{color:#a5a3b4}.topbar-actions{display:flex;align-items:center;gap:20px}.searchbox{display:flex;align-items:center;gap:9px;width:246px;color:#a09dac;font-size:11px}.searchbox input{border:0;background:transparent;outline:none;min-width:0;width:100%;font-size:11px;color:var(--text)}.searchbox kbd{font-size:10px;background:var(--bg);border:1px solid var(--border);padding:3px;border-radius:4px;color:#aaa7b6;white-space:nowrap}.icon-btn{border:0;background:transparent;display:inline-flex;justify-content:center;align-items:center;width:34px;height:34px;border-radius:8px;color:#848093;position:relative}.icon-btn:hover{background:var(--primary-soft);color:var(--primary)}.notification-dot{width:5px;height:5px;border-radius:50%;background:#f1957c;position:absolute;top:5px;right:8px;border:1px solid #fff}.topbar-language{display:flex;align-items:center;gap:7px;border:0;background:transparent;font-size:11px;color:#737082;padding:8px}.topbar-separator{height:26px;width:1px;background:var(--border)}.mobile-toggle{display:none}.main{padding:30px 36px 22px;max-width:1610px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:27px}.page-heading h1{font-size:25px;font-weight:650;letter-spacing:-.7px;margin:0 0 8px;line-height:1.3}.page-heading p{color:var(--muted);font-size:11px;margin:0;line-height:1.6}.heading-actions{display:flex;gap:10px;align-items:center}.btn{border:1px solid var(--border);background:var(--primary-soft);border-radius:8px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;font-size:11px;font-weight:550;line-height:1.4;white-space:nowrap;transition:.15s}.btn:hover{border-color:var(--primary);background:var(--primary-soft)}.btn .icon{width:16px;height:16px}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 3px 6px #6958e815}.btn.primary:hover{background:var(--primary-dark)}.btn.danger{background:#fff0f1;border-color:#fcdde2;color:#b84560}.btn.small{padding:7px 11px;min-height:32px;font-size:10px}.btn.ghost{border-color:transparent;background:transparent;color:var(--primary);padding:7px 0}.hero{border-radius:var(--radius);background:linear-gradient(115deg,#f0ecff 0%,#eae7fd 52%,#e0eafa 100%);min-height:185px;padding:28px 30px;position:relative;overflow:hidden;margin-bottom:24px;display:flex;align-items:center}.hero-copy{position:relative;z-index:2}.eyebrow{display:flex;align-items:center;gap:6px;letter-spacing:1.4px;font-size:9px;font-weight:650;color:#8070b9;margin-bottom:13px}.eyebrow .icon{width:13px;height:13px}.hero h2{font-size:25px;font-weight:620;letter-spacing:-.8px;line-height:1.3;margin:0 0 9px;color:#373051}.hero p{color:#7d748f;font-size:11px;line-height:1.7;margin:0 0 17px}.hero .btn{background:var(--primary-soft);border:0;color:var(--text);min-height:33px;font-size:10px}.hero-art{position:absolute;right:0;bottom:-3px;width:41%;height:100%;opacity:.95}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.stat-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;min-height:139px;box-shadow:var(--shadow);transition:transform .18s}.stat-card:hover{transform:translateY(-2px)}.stat-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#777287;margin-bottom:13px}.stat-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#eeebff;color:#8d78e5}.stat-icon .icon{width:17px;height:17px}.stat-icon.orange{background:#fff1e7;color:#e5a276}.stat-icon.teal{background:#e9f5ef;color:#6cb39a}.stat-icon.blue{background:#eaf0fb;color:#87a0d2}.stat-value{font-size:28px;letter-spacing:-1px;font-weight:600;line-height:1;margin:0 0 12px}.stat-value small{font-size:13px;color:var(--muted);font-weight:400;letter-spacing:0}.stat-caption{font-size:9px;color:#928b9d;display:flex;gap:6px;align-items:center}.stat-caption .positive{color:#4b9a7d}.stat-caption .highlight{color:#ab834e}.stat-caption .icon{width:12px;height:12px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px;align-items:start}.panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 22px 0;margin-bottom:17px}.panel-head h2,.section-heading h2{font-size:13px;margin:0;font-weight:650;letter-spacing:-.1px}.panel-head p{font-size:10px;color:var(--muted);margin:5px 0 0}.panel-head .btn.ghost{font-size:10px}.panel-head .btn.ghost .icon{width:13px}.panel-body{padding:0 22px 20px}.chart-card{height:305px}.chart-summary{display:flex;align-items:center;gap:11px;margin:0 22px 0}.chart-summary strong{font-size:23px;font-weight:600;letter-spacing:-.7px}.chart-summary small{font-size:9px;color:#849384;background:#eef8f2;padding:4px 6px;border-radius:5px}.chart-legend{display:flex;gap:15px;margin-left:auto;color:var(--muted);font-size:9px}.legend-dot{width:7px;height:7px;border-radius:2px;display:inline-block;margin-right:5px;background:#8774e9}.legend-dot.pale{background:#e8e1fc}.chart-container{padding:4px 17px 0;height:211px}.chart-container svg{width:100%;height:100%}.task-card{min-height:305px}.task-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--border)}.task-row:last-child{border-bottom:0}.task-icon{width:35px;height:35px;border-radius:9px;display:grid;place-items:center;color:#a993d8;background:#f3eefd}.task-icon .icon{width:17px}.task-icon.amber{background:#fff4e6;color:#d5a166}.task-icon.coral{background:#fff0ec;color:#dba28b}.task-info{flex:1}.task-info strong{font-size:11px;font-weight:550;display:block}.task-info span{font-size:9px;color:var(--muted);display:block;margin-top:5px}.task-row>.icon{width:15px;color:#aca6b6}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:5px 7px;font-size:9px;font-weight:500;white-space:nowrap;color:#858093;background:#f1eff5}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.submitted{color:#6488b3;background:#edf4fc}.badge.under-review,.badge.pending,.badge.issued{color:#b28645;background:#fff5e5}.badge.approved,.badge.paid,.badge.available,.badge.confirmed{color:#3c9373;background:#eaf6ef}.badge.active,.badge.leased,.badge.completed,.badge.rented{color:#538e8a;background:#e9f5f3}.badge.rejected,.badge.overdue,.badge.disputed{color:#c0787d;background:#fceff0}.badge.manual,.badge.application-in-progress{color:#8d73bd;background:#f2edfa}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table th{background:#fbfbfd;color:#9a94a5;font-size:9px;font-weight:500;padding:12px 20px;border-block:1px solid var(--border);white-space:nowrap}.data-table td{padding:14px 20px;font-size:10px;border-bottom:1px solid var(--border);white-space:nowrap}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfbff}.person{display:flex;align-items:center;gap:9px}.person strong{display:block;font-size:10px;font-weight:550}.person small{display:block;color:#a19aa9;font-size:8px;margin-top:4px}.person .avatar{width:30px;height:30px;font-size:9px}.table-property{font-size:10px;font-weight:500}.table-property small{display:block;color:#a19aa9;font-size:8px;margin-top:4px}.table-action{border:1px solid var(--border);border-radius:6px;background:var(--primary-soft);color:var(--text);padding:6px 9px;font-size:9px}.messages-preview .message-row{display:flex;gap:11px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--border)}.messages-preview .message-row:last-child{border-bottom:0}.message-copy{min-width:0;flex:1}.message-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:1px 0 5px}.message-title strong{font-size:10px;font-weight:550}.message-title time{font-size:8px;color:#aba4b2}.message-copy p{font-size:9px;color:#9a93a2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;line-height:1.6}.unread-dot{width:5px;height:5px;border-radius:50%;background:var(--primary);margin-top:8px}.portfolio-section{margin-top:25px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-heading span{font-size:10px;color:var(--muted);font-weight:400;margin-left:8px}.property-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.property-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:transform .2s,box-shadow .2s;cursor:pointer;text-align:left;padding:0;display:block;width:100%}.property-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #3429660c}.property-photo{position:relative;height:165px;background:#e9e5ed}.property-photo img{width:100%;height:100%;object-fit:cover}.property-photo .badge{position:absolute;left:13px;top:13px;background:#fffc;backdrop-filter:blur(8px);padding:6px 9px}.property-photo .property-type{position:absolute;right:12px;bottom:12px;background:#27233170;color:#fff;border-radius:5px;padding:5px 8px;font-size:9px;backdrop-filter:blur(6px)}.property-info{padding:16px 17px}.property-info h3{font-size:12px;font-weight:600;margin:0 0 6px}.property-address{font-size:9px;color:#9a94a4;display:flex;gap:4px;align-items:center}.property-address .icon{width:12px;height:12px}.property-features{display:flex;gap:14px;margin:14px 0;padding-bottom:13px;border-bottom:1px solid var(--border);font-size:9px;color:#8d8599}.property-features>span{display:flex;align-items:center;gap:5px}.property-features .icon{width:13px;height:13px}.property-price{display:flex;justify-content:space-between;align-items:center}.property-price strong{color:#6e58b1;font-weight:600;font-size:15px;letter-spacing:-.2px}.property-price small{font-size:9px;color:#a69dac;font-weight:400;letter-spacing:0}.property-price>.icon{width:16px;color:#b5abba}.footer{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a39daa;border-top:1px solid var(--border);padding:20px 0 0;margin-top:28px}.footer span{display:flex;align-items:center;gap:5px}.footer .icon{width:11px;height:11px}.filters{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;flex-wrap:wrap}.filter-tabs{display:flex;gap:5px;flex-wrap:wrap}.filter-tab{border:1px solid transparent;background:transparent;color:var(--muted);padding:9px 13px;font-size:11px;border-radius:7px}.filter-tab.active{background:var(--card);color:var(--primary);border-color:#e4dff4;box-shadow:0 2px 4px #00000003}.filter-controls{display:flex;gap:8px}.filter-controls select{font-size:10px;padding:9px 12px;background:var(--card);border:1px solid var(--border);border-radius:7px;color:var(--muted)}.empty{text-align:center;padding:60px 20px;color:var(--muted)}.empty .icon{width:36px;height:36px;color:#b1a4dd;margin-bottom:15px}.empty h3{color:var(--text);font-weight:550;font-size:16px;margin:0 0 8px}.empty p{font-size:12px;line-height:1.7;margin:0 0 20px}.list-footer{font-size:10px;color:var(--muted);padding:17px 20px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:500}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid #e4dfed;background:var(--card);color:var(--text);border-radius:7px;padding:11px 12px;font-size:12px;min-height:40px}.field textarea{min-height:85px;resize:vertical}.field small{color:var(--muted);font-size:10px;font-weight:400;line-height:1.5}.form-section{font-size:13px;font-weight:600;border-bottom:1px solid var(--border);padding-bottom:12px;margin:26px 0 18px}.check-field{display:flex;align-items:flex-start;gap:9px;font-size:11px;color:var(--muted);line-height:1.7;margin:12px 0}.check-field input{margin-top:4px;accent-color:var(--primary)}dialog{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:20px;padding:0;width:min(600px,calc(100% - 32px));max-height:88vh;box-shadow:0 30px 100px #1e173d33}dialog::backdrop{background:#24203955;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--card);z-index:3}.modal-head h2{font-size:18px;font-weight:600;margin:0}.modal-body{padding:24px 26px}.modal-body p{font-size:12px;line-height:1.75;color:var(--muted)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.form-error{color:#ae445b;background:#fff0f2;font-size:12px;border-radius:8px;padding:12px;line-height:1.5;margin:0 0 16px}.form-error:empty{display:none}.notice{background:#f6f3fc;color:#8672a1;border:1px solid #eae2f5;padding:13px 15px;border-radius:9px;font-size:11px;line-height:1.7;margin:15px 0;display:flex;gap:10px;align-items:flex-start}.notice.warning{color:#9a7a45;background:#fff8eb;border-color:#f1e8d2}.notice .icon{width:16px;height:16px;margin-top:1px}.detail-hero{width:100%;height:240px;object-fit:cover;border-radius:10px}.detail-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:18px}.detail-heading h3{margin:0 0 6px;font-size:20px}.detail-heading strong{color:var(--primary);font-size:22px;white-space:nowrap}.detail-heading strong small{font-size:10px;font-weight:400;color:var(--muted)}.detail-values{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:var(--bg);padding:15px;border-radius:10px;margin:20px 0;font-size:11px}.detail-values small{display:block;color:var(--muted);font-size:9px;margin-bottom:6px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{padding:7px 10px;border:1px solid var(--border);border-radius:6px;font-size:10px;color:var(--muted)}.tabs{display:flex;overflow:auto;gap:24px;border-bottom:1px solid var(--border);margin-bottom:20px}.tab{border:0;background:transparent;padding:13px 0;color:var(--muted);font-size:12px;white-space:nowrap;border-bottom:2px solid transparent}.tab.active{color:var(--primary);border-color:var(--primary)}.application-layout{display:grid;grid-template-columns:1fr 300px;gap:22px}.application-content{padding:24px}.application-sidebar .panel{margin-bottom:18px}.summary-item{display:flex;justify-content:space-between;gap:15px;font-size:11px;margin:15px 0;color:var(--muted)}.summary-item strong{color:var(--text);font-weight:500;text-align:right}.summary-title{font-size:12px;font-weight:600;margin:20px 0 10px}.progress-track{height:5px;border-radius:5px;background:var(--border);overflow:hidden;margin:12px 0}.progress-track>span{display:block;height:100%;background:var(--primary);border-radius:5px}.sticky-actions{position:sticky;bottom:15px;background:var(--card);padding:17px 20px;border:1px solid var(--border);border-radius:12px;margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:10px;box-shadow:0 5px 30px #30245c12}.sticky-actions small{color:var(--muted);font-size:10px}.conversation-layout{display:grid;grid-template-columns:320px 1fr;min-height:580px;height:calc(100vh - 260px);overflow:hidden}.conversation-list{border-right:1px solid var(--border);overflow:auto}.conversation-list-header{padding:22px;font-size:13px;font-weight:600;border-bottom:1px solid var(--border)}.conversation-button{display:flex;align-items:flex-start;text-align:left;gap:12px;border:0;border-bottom:1px solid var(--border);padding:21px;background:var(--primary-soft);width:100%}.conversation-button.active{background:#f7f4ff}.conversation-button .message-title{display:block}.conversation-button .message-copy p{max-width:190px}.conversation-button .message-title time{display:block;margin-top:6px}.thread{display:flex;flex-direction:column;min-height:0}.thread-head{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid var(--border)}.thread-head strong{font-size:12px;display:block}.thread-head small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.thread-messages{padding:26px;flex:1;overflow:auto;display:flex;flex-direction:column;gap:18px}.bubble{max-width:80%;align-self:flex-start}.bubble.mine{align-self:flex-end}.bubble p{padding:13px 17px;border-radius:12px 12px 12px 0;background:var(--bg);font-size:12px;line-height:1.7;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.bubble.mine p{background:var(--primary-soft);color:#635190;border-radius:12px 12px 0 12px}.bubble small{display:block;font-size:9px;color:#a098ac;margin-top:6px}.bubble.mine small{text-align:right}.message-form{padding:18px 24px;border-top:1px solid var(--border);display:flex;gap:12px}.message-form input{border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:12px 14px;min-width:0;flex:1;font-size:12px}.utility-preview{background:#f6f3ff;padding:20px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;margin-top:20px}.utility-preview small{font-size:11px;color:#8d7fa8}.utility-preview strong{font-size:25px;color:var(--primary)}.document-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.document-card{padding:22px}.document-icon{width:44px;height:50px;background:#f2ecff;color:#9881c5;border-radius:9px;display:grid;place-items:center;margin-bottom:17px}.document-card h3{font-size:12px;overflow-wrap:anywhere}.document-card p{font-size:10px;color:var(--muted)}.settings-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.settings-panel{padding:25px}.settings-panel h2{font-size:15px;margin:0 0 23px}.settings-panel p{color:var(--muted);font-size:12px;line-height:1.8}.plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.pricing-card{padding:30px 24px;position:relative}.pricing-card.featured{border:1px solid #b7a8ee;background:linear-gradient(#faf8ff,#fff)}.pricing-card .eyebrow{margin:0 0 20px}.pricing-card h2{font-size:20px;font-weight:550;margin:0 0 10px}.pricing-card .price{font-size:35px;font-weight:600;letter-spacing:-1px;margin:20px 0}.pricing-card .price small{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}.pricing-card ul{list-style:none;padding:0;margin:24px 0}.pricing-card li{font-size:11px;color:var(--muted);margin:17px 0;display:flex;gap:8px;align-items:center}.pricing-card li .icon{width:15px;color:#8a74c1}.pricing-card .btn{width:100%}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:linear-gradient(135deg,#e9e2fe,#e2eef8);padding:50px;display:flex;flex-direction:column;justify-content:center}.login-art .brand{padding:0;position:absolute;top:45px}.login-art h1{font-size:48px;letter-spacing:-2px;line-height:1.2;max-width:500px;font-weight:600}.login-art p{font-size:15px;line-height:1.8;color:#8a7c9f;max-width:390px}.login-art svg.hero-house{width:90%;height:260px}.login-form{display:flex;align-items:center;justify-content:center;padding:40px;background:var(--card)}.login-inner{width:360px}.login-inner h2{font-size:27px;letter-spacing:-.8px;font-weight:600;margin-bottom:10px}.login-inner>p{font-size:12px;color:var(--muted);margin-bottom:28px}.login-inner .field{margin-bottom:18px}.login-inner .btn.primary{width:100%;margin-top:10px}.login-inner .login-switch{font-size:11px;color:var(--muted);text-align:center;margin-top:24px}.login-switch a{color:var(--primary)}.demo-access{border-top:1px solid var(--border);padding-top:22px;margin-top:28px}.demo-access>span{font-size:10px;color:var(--muted);display:block;text-align:center;margin-bottom:12px}.demo-access>div{display:flex;gap:10px}.demo-access .btn{flex:1}.public-header{background:var(--card);padding:25px 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.public-header nav{display:flex;gap:28px;align-items:center;font-size:12px}.public-main{padding:50px 6%;max-width:1400px;margin:auto}.public-main h1{font-size:38px;letter-spacing:-1px;font-weight:600}.public-main>p{color:var(--muted)}.public-main .property-grid{margin-top:30px}#toast{position:fixed;bottom:25px;left:auto;right:20px;transform:translateY(20px);padding:14px 20px;background:#373047;color:#fff;border-radius:10px;font-size:12px;box-shadow:0 10px 30px #0002;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}#toast.visible{opacity:1;transform:translateY(0)}.loading{height:250px;display:grid;place-items:center;color:var(--muted)}.loading:before{content:'';width:24px;height:24px;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.notification-item{padding:16px 0;border-bottom:1px solid var(--border)}.notification-item strong{font-size:12px}.notification-item p{font-size:11px;margin:5px 0}.notification-item time{font-size:9px;color:var(--muted)}.back-link{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;margin-bottom:20px}.receipt{text-align:center;padding:15px}.receipt .receipt-amount{font-size:36px;font-weight:600;color:var(--primary);margin:20px 0}.receipt .summary-item{padding:12px 0;border-bottom:1px solid var(--border)}.receipt>p{font-size:10px}.full-width{width:100%}.muted{color:var(--muted)}
@media(min-width:1450px){.main{padding-top:35px}.hero{min-height:200px}.property-photo{height:190px}.dashboard-grid{grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr)}.stat-card{padding:23px}.data-table td{padding-block:17px}}
@media(max-width:1180px){.sidebar{width:210px;padding-inline:12px}.shell{margin-left:210px}.main{padding:25px}.topbar{padding:0 25px}.searchbox{width:180px}.topbar-actions{gap:12px}.dashboard-grid{gap:17px;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr)}.stats-grid{gap:12px}.stat-card{padding:16px}.stat-top{font-size:10px}.data-table th,.data-table td{padding-inline:13px}.hero-art{width:40%;right:-30px}.hero h2{font-size:23px}.chart-legend{gap:8px}.conversation-layout{grid-template-columns:270px 1fr}.application-layout{grid-template-columns:1fr 260px}.property-features{gap:9px}.hero-copy p{max-width:380px}.property-photo{height:145px}}
@media(max-width:980px){.sidebar{width:185px}.shell{margin-left:185px}.brand{font-size:22px;padding-inline:7px}.brand :is(img,.app-logo){width:31px}.nav-item{font-size:11px;padding-inline:12px}.workspace-switch{padding:9px 6px}.workspace-copy strong{font-size:10px}.workspace-copy small{font-size:9px}.topbar-language,.searchbox kbd,.topbar-separator{display:none}.topbar-actions{gap:8px}.searchbox{width:150px}.main{padding:24px 20px}.topbar{padding:0 20px}.page-heading h1{font-size:22px}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-card{min-height:127px}.dashboard-grid{grid-template-columns:1fr}.task-card{min-height:0}.task-card .panel-body{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 20px 15px}.task-row{align-items:flex-start;border:0}.task-row>.icon{display:none}.task-icon{width:29px;height:29px}.task-info strong{font-size:10px;line-height:1.5}.task-info span{font-size:8px}.messages-preview .panel-body{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.messages-preview .message-row{border:0}.messages-preview .message-title time{display:none}.property-grid{grid-template-columns:repeat(2,1fr)}.portfolio-section .property-card:last-child{display:none}.hero-art{opacity:.5;right:-45px}.hero-copy{max-width:90%}.application-layout,.settings-layout{grid-template-columns:1fr}.application-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px}.conversation-layout{grid-template-columns:220px 1fr}.conversation-button{padding:16px 12px;gap:8px}.conversation-button .message-copy p{max-width:120px}.plan-grid{gap:12px}.pricing-card{padding:22px 16px}.document-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.sidebar{transform:translateX(-100%);width:235px;transition:transform .2s;box-shadow:10px 0 60px #27223922}.sidebar.open{transform:translateX(0)}.shell{margin-left:0}.mobile-toggle{display:inline-flex}.topbar{height:66px;padding:0 18px}.breadcrumb{gap:8px;font-size:11px}.topbar-actions{gap:6px}.searchbox{display:none}.topbar-actions .help-button{display:none}.main{padding:24px 18px}.page-heading{align-items:flex-start;margin-bottom:22px;gap:10px}.page-heading h1{font-size:22px;margin-bottom:7px}.page-heading p{font-size:10px;max-width:210px}.heading-actions .date-button{display:none}.heading-actions .btn{font-size:10px;padding:9px 11px}.hero{padding:24px;min-height:205px;margin-bottom:19px}.hero h2{font-size:22px;max-width:230px}.hero p{font-size:10px;max-width:220px}.hero-art{width:63%;right:-58px;opacity:.47}.eyebrow{font-size:8px}.stats-grid{gap:12px;margin-bottom:20px}.stat-card{padding:15px}.stat-top{font-size:10px;gap:6px;margin-bottom:10px}.stat-icon{width:27px;height:27px}.stat-value{font-size:26px;margin-bottom:10px}.stat-caption{font-size:8px}.stat-caption .icon{display:none}.panel-head{padding:19px 18px 0}.panel-head h2{font-size:12px}.panel-body{padding-inline:18px}.chart-summary{margin-inline:18px}.chart-summary strong{font-size:21px}.chart-summary small{font-size:8px}.chart-legend{font-size:8px;gap:6px}.chart-container{padding-inline:8px}.task-card .panel-body{display:block;padding-inline:18px}.task-row{border-bottom:1px solid var(--border);align-items:center;padding-block:12px}.task-row>.icon{display:block}.task-icon{width:33px;height:33px}.task-info strong{font-size:11px}.task-info span{font-size:9px}.messages-preview .panel-body{display:block}.messages-preview .message-row{border-bottom:1px solid var(--border)}.messages-preview .message-title time{display:block}.message-title strong{font-size:11px}.message-copy p{font-size:10px}.property-grid{grid-template-columns:1fr}.portfolio-section .property-card:last-child{display:block}.property-photo{height:190px}.property-info h3{font-size:14px}.property-address,.property-features{font-size:11px}.property-price strong{font-size:18px}.footer{font-size:8px}.footer span:last-child{display:none}.application-sidebar{grid-template-columns:1fr}.application-content{padding:18px}.form-grid{gap:16px;grid-template-columns:1fr}.field.full{grid-column:auto}.form-grid.two{grid-template-columns:1fr 1fr}.sticky-actions{flex-wrap:wrap;padding:13px}.sticky-actions small{width:100%}.conversation-layout{grid-template-columns:1fr;height:auto;min-height:600px}.conversation-list{max-height:190px;border-right:0;border-bottom:1px solid var(--border)}.conversation-list-header{display:none}.conversation-button{padding:13px 18px}.conversation-button .message-copy p{max-width:280px}.conversation-button .message-title time{display:none}.thread{height:480px}.thread-messages{padding:18px}.thread-head{padding:15px 18px}.message-form{padding:14px}.bubble{max-width:90%}.document-grid,.plan-grid{grid-template-columns:1fr}.login-layout{grid-template-columns:1fr}.login-art{display:none}.login-form{padding:35px 25px;min-height:100vh}.login-inner{max-width:360px;width:100%}.public-header{padding:20px}.public-header .brand{font-size:22px}.public-header nav{gap:12px;font-size:11px}.public-header nav a:first-child{display:none}.public-main{padding:30px 20px}.public-main h1{font-size:29px}.modal-head{padding:18px 20px}.modal-body{padding:20px}.detail-hero{height:185px}.detail-heading h3{font-size:17px}.detail-heading strong{font-size:19px}.filters{gap:10px}.filter-tab{font-size:10px;padding:8px 10px}#toast{left:auto;right:12px}.table-wrap .data-table{min-width:550px}.document-card{padding:20px}.plan-card{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-theme=dark]{--text:#e6e0f3;--muted:#a59ab5;--border:#363044;--bg:#1c1924;--card:#25212f;--primary-soft:#383046;--shadow:none}html[data-theme=dark] .workspace-switch,html[data-theme=dark] .data-table th{background:#2c2737}html[data-theme=dark] .data-table tbody tr:hover{background:#302a3d}html[data-theme=dark] .hero{background:linear-gradient(110deg,#39304f,#30374e)}html[data-theme=dark] .hero h2{color:#e5dafa}html[data-theme=dark] .hero p{color:#b7a8cb}html[data-theme=dark] .plan-card,html[data-theme=dark] .notice,html[data-theme=dark] .pricing-card.featured{background:#30283e;border-color:#453652;color:#b9a1d2}html[data-theme=dark] .table-action{background:var(--primary-soft);border-color:var(--text);color:var(--text)}html[data-theme=dark] .conversation-button.active{background:#382f47}html[data-theme=dark] .utility-preview{background:#352945}html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea{border-color:#514461}
@media print{.sidebar,.topbar,.main,dialog .modal-head,dialog .modal-actions,#toast{display:none!important}dialog{display:block!important;position:static;border:0;box-shadow:none;max-height:none;width:100%;margin:0}dialog::backdrop{background:white}body{background:white;color:#111}.modal-body{padding:0}.receipt{padding:20px}.receipt .summary-item{color:#111}a[href]:after{content:none}}
/* Keep navigation reachable on shorter laptop screens. */
.sidebar{overflow-y:auto;scrollbar-width:thin}.sidebar-bottom{flex-shrink:0}.sidebar nav{flex-shrink:0}
@media(max-width:720px){.sidebar:not(.open){visibility:hidden}.sidebar.open{visibility:visible}}
/* Language labels may be much longer than their English equivalents. */
.nav-item{min-height:44px;height:auto;padding-block:11px;line-height:1.5}
.nav-item>span:not(.count){min-width:0;overflow-wrap:anywhere}
.nav-item .count{flex-shrink:0;margin-left:0;margin-inline-start:auto}
.topbar-language{max-width:190px;min-width:0;flex-shrink:0}
.topbar-language bdi{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-language{display:flex;justify-content:flex-end;margin-bottom:18px}
.field select{max-width:100%;text-overflow:ellipsis}
html[dir=rtl] .sidebar{inset:0 0 0 auto;border-right:0;border-left:1px solid var(--border)}
html[dir=rtl] .shell{margin-left:0;margin-right:236px}
html[dir=rtl] .brand{direction:ltr;justify-content:flex-end}
html[dir=rtl] .hero-art{right:auto;left:0;transform:scaleX(-1)}
html[dir=rtl] .chart-legend{margin-left:0;margin-right:auto}
html[dir=rtl] .chart-container,html[dir=rtl] .receipt-amount{direction:ltr}
html[dir=rtl] .data-table,html[dir=rtl] .property-card,html[dir=rtl] .conversation-button{text-align:right}
html[dir=rtl] .conversation-list{border-right:0;border-left:1px solid var(--border)}
html[dir=rtl] .bubble.mine small{text-align:left}
html[dir=rtl] .icon-btn .notification-dot{right:auto;left:8px}
html[dir=rtl] .legend-dot{margin-right:0;margin-left:5px}
html[dir=rtl] #toast{left:auto;right:20px}
html[dir=rtl] .login-art .brand{align-self:flex-start}
@media(max-width:1180px){html[dir=rtl] .shell{margin-right:210px}}
@media(max-width:980px){html[dir=rtl] .shell{margin-right:185px}.topbar-language{display:flex;max-width:120px}.topbar-language>.icon:last-child{display:none}}
@media(max-width:720px){html[dir=rtl] .shell{margin-right:0}html[dir=rtl] .sidebar{transform:translateX(100%)}html[dir=rtl] .sidebar.open{transform:translateX(0)}html[dir=rtl] #toast{left:auto;right:12px}html[dir=rtl] .hero-art{left:-58px}html[dir=rtl] .conversation-list{border-left:0}.topbar-language{max-width:88px;padding:6px;gap:4px;font-size:10px}.topbar-language>.icon{width:15px}.breadcrumb{min-width:0}.breadcrumb>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.breadcrumb>.muted{display:none}.public-header nav{gap:6px}.public-header .brand{font-size:18px;gap:6px}.public-header .brand :is(img,.app-logo){width:27px}}
/* English content keeps its punctuation order while the surrounding shell mirrors. */
html[dir=rtl] main[lang=en] :is(h1,h2,h3,p,.stat-top,.stat-caption,.task-info,.summary-item){unicode-bidi:plaintext}
@media(max-width:720px){.public-header{display:grid;grid-template-columns:1fr;gap:12px}.public-header nav{width:100%;justify-content:space-between}.public-header nav a[href="#browse"]{display:none}.public-header nav .topbar-language{max-width:140px}}
/* The language list opens at its trigger without a modal or backdrop. */
.language-picker{position:relative;flex-shrink:0}
.language-menu{position:fixed;z-index:70;overflow-y:auto;overscroll-behavior:contain;padding:6px;background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 36px #27213a26;scrollbar-width:thin}
.language-menu[hidden]{display:none}
.language-option{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:48px;border:0;border-radius:7px;padding:9px 12px;text-align:left;direction:ltr;background:transparent;color:var(--text)}
.language-menu{scroll-padding-top:76px}
.language-option[data-value="en"]{position:sticky;top:0;z-index:1;background:var(--primary-soft);box-shadow:0 1px 0 var(--border)}
.language-option:hover,.language-option:focus-visible{background:var(--bg)}
.language-option[aria-checked=true]{background:var(--primary-soft);color:var(--primary)}
.language-option bdi{font-size:13px;line-height:1.6}
.language-option small{display:block;font-size:10px;color:var(--muted);margin-top:2px;text-align:start}
.language-option .icon{width:16px;height:16px}
.language-option:not([aria-checked=true])>.icon{display:none}
.language-option[aria-checked=true]>.icon{margin-inline-start:auto}
.language-menu[aria-busy=true]{opacity:.65;pointer-events:none}
.demo-access>.demo-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.demo-links .btn{min-width:0;white-space:normal;text-align:center;min-height:42px;padding:10px 8px}
.demo-links .btn:last-child:nth-child(odd){grid-column:1/-1}
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.account-picker{position:relative;flex-shrink:0}
.account-menu{position:fixed;z-index:70;overflow:auto;padding:7px;background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 36px #27213a26}
.account-menu[hidden]{display:none}
.account-menu-heading{display:flex;align-items:center;gap:10px;padding:12px 8px 16px;border-bottom:1px solid var(--border);margin-bottom:6px}
.account-menu-heading>div{min-width:0}.account-menu-heading strong{display:block;font-size:12px}.account-menu-heading small{display:block;font-size:10px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.account-option{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--text);font-size:12px;text-align:start}
.account-option:hover,.account-option:focus-visible{background:var(--primary-soft);color:var(--primary)}.account-option .icon{width:17px;height:17px}.account-signout{color:#b84560;border-top:1px solid var(--border);margin-top:5px}
.profile-photo-form{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-bottom:28px}.profile-photo-display .avatar{width:86px;height:86px;font-size:25px}.profile-photo-controls{flex:1;min-width:200px}.profile-photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.profile-photo-form .form-error{width:100%;margin:0}.profile-photo-controls input{padding:8px;font-size:11px}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.theme-option{border:1px solid var(--border);border-radius:10px;padding:10px;background:var(--primary-soft);color:var(--text);font-size:12px;min-height:90px}.theme-option[aria-pressed=true]{border-color:var(--primary);background:var(--primary-soft);box-shadow:0 0 0 1px var(--primary)}.theme-swatch{display:block;height:42px;border-radius:5px;margin-bottom:10px;border:1px solid #b7b0c1;background:linear-gradient(90deg,#fff 25%,#f1f0f5 25%)}.theme-swatch.dark{background:linear-gradient(90deg,#2c243a 25%,#191620 25%)}.theme-swatch.system{background:linear-gradient(90deg,#f1f0f5 50%,#25212f 50%)}
@media(max-width:720px){.profile-photo-form{align-items:flex-start}.profile-photo-controls{min-width:0;flex-basis:100%}}
.lease-modal-property{font-size:12px;font-weight:600;color:var(--muted);overflow-wrap:anywhere}
.lease-modal-head #modal-title{flex:0 0 auto}
/* Consistent decision colors for page actions and popup confirmation buttons. */
html :is([data-action="application-action"][data-value="approve"],#rental-approval-form button[type="submit"],button[form="rental-approval-form"],#approve-application-notes-form button[type="submit"],button[form="approve-application-notes-form"],#decision-form[data-action-name="approve"] button[type="submit"],body:has(#decision-form[data-action-name="approve"]) button[form="decision-form"],#rental-lease-decision-form[data-decision="approve"] button[type="submit"],body:has(#rental-lease-decision-form[data-decision="approve"]) button[form="rental-lease-decision-form"]){background:#21834c;border-color:#21834c;color:#fff}
html :is([data-action="application-action"][data-value="approve"],#rental-approval-form button[type="submit"],button[form="rental-approval-form"],#approve-application-notes-form button[type="submit"],button[form="approve-application-notes-form"],#decision-form[data-action-name="approve"] button[type="submit"],body:has(#decision-form[data-action-name="approve"]) button[form="decision-form"],#rental-lease-decision-form[data-decision="approve"] button[type="submit"],body:has(#rental-lease-decision-form[data-decision="approve"]) button[form="rental-lease-decision-form"]):hover{background:#196b3c;border-color:#196b3c;color:#fff}
html :is(#rental-lease-decision-form[data-decision="reject"] button[type="submit"],body:has(#rental-lease-decision-form[data-decision="reject"]) button[form="rental-lease-decision-form"]){background:#b42332;border-color:#b42332;color:#fff}
html :is(#rental-lease-decision-form[data-decision="reject"] button[type="submit"],body:has(#rental-lease-decision-form[data-decision="reject"]) button[form="rental-lease-decision-form"]):hover{background:#921c29;border-color:#921c29;color:#fff}
/* Grid approve/reject/withdraw icons are unfilled; the agreement popup keeps solid green/red buttons. */
/* Application view: Reject is solid red (the applications grid has no reject control). */
html .btn.danger[data-action="application-action"][data-value="reject"]{background:#b42332;border-color:#b42332;color:#fff}html .btn.danger[data-action="application-action"][data-value="reject"]:is(:hover,:focus-visible){background:#921c29;border-color:#921c29;color:#fff}
html .icon-btn[data-action="rental-lease-row-withdraw"]:is(*,:hover,:focus-visible){background:transparent;color:#b42332}
html :is(.icon-btn,.btn,.btn:not(.danger):not(.ghost):not(.chat-sound-button)):is([data-action="rental-lease-row-approve"]):is(*,:hover,:focus-visible){background:transparent;border-color:#21834c;color:#21834c}
html :is(.btn,.btn:not(.danger):not(.ghost):not(.chat-sound-button))[data-action="rental-lease-approve"]{background:#21834c;border-color:#21834c;color:#fff}html :is(.btn,.btn:not(.danger):not(.ghost):not(.chat-sound-button))[data-action="rental-lease-approve"]:is(:hover,:focus-visible){background:#196b3c;border-color:#196b3c;color:#fff}
html :is(.icon-btn,.btn,.btn:not(.danger):not(.ghost):not(.chat-sound-button)):is([data-action="rental-lease-row-reject"]):is(*,:hover,:focus-visible){background:transparent;border-color:#b42332;color:#b42332}
html :is(.btn,.btn:not(.danger):not(.ghost):not(.chat-sound-button))[data-action="rental-lease-reject"]{background:#b42332;border-color:#b42332;color:#fff}html :is(.btn,.btn:not(.danger):not(.ghost):not(.chat-sound-button))[data-action="rental-lease-reject"]:is(:hover,:focus-visible){background:#921c29;border-color:#921c29;color:#fff}
html body button.btn[data-action="rental-lease-reset"],html body button.btn[data-action="rental-lease-reset"]:hover{color:#e0b400}
.lease-detail-popup{width:min(780px,calc(100% - 32px))}
.lease-detail-popup.lease-signature-popup{width:min(900px,calc(100% - 32px))}
.lease-signature-popup .lease-signer-details{gap:12px}.lease-signature-popup .signature-section{margin-top:0}.lease-signature-popup .signature-heading h3{margin-top:0}
.lease-signature-popup :is(.field>span,.field label,#signature-help,#signature-status,.check-field){font-size:16px;line-height:1.5}
.lease-signature-popup :is(#signature-help,#signature-status,.check-field,.signature-tool-actions .icon-btn){color:var(--text)}.lease-signature-popup .check-field{display:flex;align-items:center;gap:10px}.lease-signature-popup .check-field input[type="checkbox"]{margin:0}
.lease-signature-popup .field input[name="signature"]{font-size:16px}
.lease-signature-popup .modal-head>.popup-error-summary{flex:1 1 240px;min-width:0;margin:0;padding:6px 10px;font-size:14px;line-height:1.4;max-height:64px;overflow:auto;cursor:pointer}.lease-signature-popup form .form-error{display:none}
.lease-signature-popup .modal-head .btn{min-height:40px;padding:10px 15px;font-size:11px;line-height:1.4;width:auto;flex-grow:0}
.lease-detail-popup:has(.lease-contact-status){width:min(1180px,calc(100% - 32px))}
.lease-detail-popup .lease-contact-table{border:1px solid var(--border);border-radius:10px}
.lease-detail-popup .lease-contact-status{min-width:1060px;width:100%;table-layout:auto;font-size:16px;line-height:1.5}
.lease-detail-popup .lease-contact-status th{font-size:15px;padding:12px 14px;white-space:normal}
.lease-detail-popup .lease-contact-status td{font-size:16px;padding:12px 14px;vertical-align:middle}
.lease-detail-popup .lease-contact-status :is(.badge,small){font-size:14px}
.supporting-document-list.lease-document-cards{grid-template-columns:repeat(auto-fill,minmax(112px,132px));gap:6px}
.lease-document-cards .supporting-document{min-height:0;padding:34px 6px 6px;gap:2px;justify-content:flex-start}
.lease-document-cards .supporting-document-name{display:none}
.lease-document-cards .supporting-document-type{position:absolute;top:10px;left:40px;right:8px;width:auto;min-height:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lease-document-cards .supporting-document-actions{position:absolute;inset:4px auto auto 4px;padding:0;opacity:1;pointer-events:auto}
.lease-document-cards .supporting-document-download{min-width:30px;min-height:30px;width:30px;height:30px;padding:5px}
html :is([data-action="application-action"][data-value="withdraw"],[data-action="rental-lease-withdraw"],button[form="rental-lease-withdraw-form"],#rental-lease-withdraw-form button[type="submit"],#decision-form[data-action-name="withdraw"] button[type="submit"],body:has(#decision-form[data-action-name="withdraw"]) button[form="decision-form"]){background:#b42332;border-color:#b42332;color:#fff}
html :is([data-action="application-action"][data-value="withdraw"],[data-action="rental-lease-withdraw"],button[form="rental-lease-withdraw-form"],#rental-lease-withdraw-form button[type="submit"],#decision-form[data-action-name="withdraw"] button[type="submit"],body:has(#decision-form[data-action-name="withdraw"]) button[form="decision-form"]):hover{background:#921c29;border-color:#921c29;color:#fff}
.lease-supporting-documents,.lease-contact-information{margin:24px 0;padding:18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card)}
.lease-signature-information,.lease-current-signature{margin:24px 0;padding:18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card)}
.lease-contact-information h3,.lease-signature-information h3,.lease-current-signature h3{margin-top:0;margin-bottom:12px}
.lease-party-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.lease-party-card{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}
.lease-party-card small{color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}.lease-party-card strong,.lease-party-card span{overflow-wrap:anywhere}.lease-signature-preview{max-width:100%;margin-top:4px}.lease-signature-preview .signature-preview{max-width:100%;height:auto}
@media(max-width:540px){.lease-party-grid{grid-template-columns:1fr}}
.lease-supporting-documents h3,.lease-contact-information h3{margin-top:0;margin-bottom:12px}
.lease-tenant-documents+.lease-tenant-documents{border-top:1px solid var(--border);margin-top:18px;padding-top:18px}
.lease-tenant-documents h4{margin:0 0 12px;font-size:12px}
.lease-document-list{display:flex;flex-wrap:wrap;gap:12px}
.lease-document{display:flex;align-items:center;gap:9px;max-width:240px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;background:var(--card);text-align:left}
.lease-document:hover{border-color:var(--primary);background:var(--primary-soft)}
.lease-document-icon{position:relative;display:grid;place-items:center;flex:0 0 34px;width:34px;height:38px;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:var(--primary)}
.lease-document-icon small{position:absolute;bottom:-4px;right:-5px;padding:2px 3px;border-radius:3px;background:var(--primary);color:#fff;font-size:7px;line-height:1}
.lease-document-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
/* Bright foregrounds throughout dark mode, including legacy fixed-color labels. */
html[data-theme=dark]{--text:#fff;--muted:#fff}
html[data-theme=dark] :is(.nav-label,.nav-item,.nav-item.active,.breadcrumb .muted,.searchbox,.searchbox kbd,.icon-btn,.topbar-language,.eyebrow,.hero h2,.hero p,.stat-top,.stat-caption,.stat-caption .positive,.stat-caption .highlight,.data-table th,.person small,.table-property small,.message-title time,.message-copy p,.property-address,.property-features,.property-price strong,.property-price small,.footer,.bubble.mine p,.bubble small,.utility-preview small,.utility-preview strong,.detail-heading strong,.receipt .receipt-amount,.btn.ghost,.filter-tab.active,.table-action,.plan-card,.notice,.pricing-card.featured,.language-option[aria-checked=true],.account-option:hover,.account-option:focus-visible,.account-signout,.login-switch a){color:#fff}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#fff;opacity:1}
html[data-theme=dark] .chart-container text{fill:#fff}
html[data-theme=dark] .hero .btn{background:var(--primary-soft);color:var(--text)}
html[data-theme=dark] .chart-summary small{background:#214839;color:#fff}
html[data-theme=dark] .avatar{background:#544436;color:#fff}
html[data-theme=dark] .avatar.purple{background:#493768}
html[data-theme=dark] .avatar.green{background:#244d3c}
html[data-theme=dark] .avatar.blue{background:#2c4264}
html[data-theme=dark] .avatar.rose{background:#643549}
html[data-theme=dark] .nav-item .count{background:#44375d;color:#fff}
html[data-theme=dark] .badge{background:#443b52;color:#fff}
html[data-theme=dark] .badge.submitted{background:#28415e}
html[data-theme=dark] :is(.badge.under-review,.badge.pending,.badge.issued){background:#59431f}
html[data-theme=dark] :is(.badge.approved,.badge.paid,.badge.available,.badge.confirmed){background:#21513d}
html[data-theme=dark] :is(.badge.active,.badge.leased,.badge.completed,.badge.rented){background:#23504d}
html[data-theme=dark] :is(.badge.rejected,.badge.overdue,.badge.disputed){background:#642e3a}
html[data-theme=dark] :is(.badge.manual,.badge.application-in-progress){background:#483465}
html[data-theme=dark] .property-photo .badge{background:#30283e;color:#fff}
html[data-theme=dark] :is(.btn.danger,.form-error){background:#642e3a;border-color:#884453;color:#fff}
html[data-theme=dark] .login-art{background:linear-gradient(135deg,#39304f,#30374e)}
html[data-theme=dark] .login-art p{color:#fff}
/* Use one consistent height for single-line form controls. */
:root{--form-control-height:36px}
.field input:not([type=file]):not([type=checkbox]):not([type=radio]),.field select{
 height:var(--form-control-height);
 min-height:var(--form-control-height);
 padding-block:0;
}

.sidebar-logout{width:100%;border:0;background:transparent;text-align:start;margin-top:4px;color:#b84560}
.sidebar-logout:hover{background:#fff0f1;color:#9f2945}
html[data-theme=dark] .sidebar-logout{color:#fff}
html[data-theme=dark] .sidebar-logout:hover{background:#642e3a;color:#fff}
/* Workspace palettes: status colors retain their existing meaning. */
[data-color=violet]{--primary:#6958e8;--primary-dark:#5545ca;--palette-soft:#eeebfd;--palette-dark:#383046;--hero-from:#f0ecff;--hero-to:#e0eafa;--hero-dark-from:#39304f;--hero-dark-to:#30374e}
[data-color=blue]{--primary:#2563eb;--primary-dark:#1d4ed8;--palette-soft:#eaf1ff;--palette-dark:#263951;--hero-from:#e8f0ff;--hero-to:#dff1fa;--hero-dark-from:#24334f;--hero-dark-to:#233e48}
[data-color=emerald]{--primary:#047857;--primary-dark:#065f46;--palette-soft:#e5f6ee;--palette-dark:#243f36;--hero-from:#e2f5eb;--hero-to:#e9f4db;--hero-dark-from:#203c33;--hero-dark-to:#34432c}
[data-color=teal]{--primary:#0f766e;--primary-dark:#115e59;--palette-soft:#e3f5f3;--palette-dark:#243f40;--hero-from:#def4f0;--hero-to:#e2f0fa;--hero-dark-from:#213d3b;--hero-dark-to:#29394c}
[data-color=rose]{--primary:#be185d;--primary-dark:#9d174d;--palette-soft:#fce9f1;--palette-dark:#452b3c;--hero-from:#fce6ee;--hero-to:#f7e8fa;--hero-dark-from:#462b38;--hero-dark-to:#3b2d49}
[data-color=amber]{--primary:#b45309;--primary-dark:#92400e;--palette-soft:#fff2df;--palette-dark:#433725;--hero-from:#fff0d9;--hero-to:#fbe7df;--hero-dark-from:#433522;--hero-dark-to:#483129}
[data-color=indigo]{--primary:#4338ca;--primary-dark:#3730a3;--palette-soft:#e9e9fd;--palette-dark:#2f2f4f;--hero-from:#ebebff;--hero-to:#e3e8fb;--hero-dark-from:#2e2f52;--hero-dark-to:#2a3350}
[data-color=sky]{--primary:#0369a1;--primary-dark:#075985;--palette-soft:#e3f2fb;--palette-dark:#233a4a;--hero-from:#e1f1fb;--hero-to:#e4f4f7;--hero-dark-from:#213a4b;--hero-dark-to:#22383f}
[data-color=cyan]{--primary:#0e7490;--primary-dark:#155e75;--palette-soft:#e1f4f8;--palette-dark:#22404a;--hero-from:#ddf3f7;--hero-to:#e6f6f1;--hero-dark-from:#1f3d47;--hero-dark-to:#213f3c}
[data-color=forest]{--primary:#15803d;--primary-dark:#166534;--palette-soft:#e5f5e9;--palette-dark:#26402d;--hero-from:#e2f4e6;--hero-to:#eef6dc;--hero-dark-from:#213d29;--hero-dark-to:#2c3d22}
[data-color=plum]{--primary:#7e22ce;--primary-dark:#6b21a8;--palette-soft:#f3e8fd;--palette-dark:#3b2c4a;--hero-from:#f2e6fd;--hero-to:#fae8f6;--hero-dark-from:#3a2950;--hero-dark-to:#432b47}
[data-color=crimson]{--primary:#b91c1c;--primary-dark:#991b1b;--palette-soft:#fde8e8;--palette-dark:#452a2a;--hero-from:#fde6e4;--hero-to:#fbeee0;--hero-dark-from:#462828;--hero-dark-to:#44322a}
html[data-color]{--primary-soft:var(--palette-soft);--bg:var(--palette-soft)}
html[data-color][data-theme=dark]{--primary-soft:var(--palette-dark);--bg:var(--palette-dark)}
html[data-color] .hero,html[data-color] .login-art{background:linear-gradient(115deg,var(--hero-from),var(--hero-to))}
html[data-color][data-theme=dark] .hero,html[data-color][data-theme=dark] .login-art{background:linear-gradient(115deg,var(--hero-dark-from),var(--hero-dark-to))}
html[data-color] :is(.plan-card,.utility-preview){background:var(--primary-soft)}
html[data-color] .legend-dot{background:var(--primary)}
html[data-color] .legend-dot.pale{background:var(--primary-soft)}
html[data-color] .theme-option[aria-pressed=true]{background:var(--primary-soft)}
html[data-color][data-theme=light] :is(.eyebrow,.property-price strong,.hero .btn,.table-action){color:var(--primary)}
html[data-color] :is(button,a,input,select,textarea):focus-visible{outline-color:var(--primary)}
.color-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.color-option{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 8px;border:1px solid var(--border);border-radius:10px;background:var(--primary-soft);color:var(--text);font-size:12px;min-height:87px}
.color-option[aria-pressed=true]{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary);background:var(--palette-soft)}
html[data-theme=dark] .color-option[aria-pressed=true]{background:var(--palette-dark)}
.color-swatch{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff}
.color-swatch .icon{width:18px;height:18px}
.signature-section{margin-top:20px}.signature-section>p{font-size:11px;line-height:1.7}.signature-required{font-size:10px;font-weight:500;margin-inline-start:8px;color:var(--muted)}
.lease-signature-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.lease-signer-details{display:grid;gap:20px}.lease-signature-form-grid .signature-section{margin-top:0}@media(max-width:720px){.lease-signature-form-grid{grid-template-columns:1fr}}
#signature-pad{display:block;width:100%;height:180px;border:1px solid #afa6bd;border-radius:10px;background:#fff;touch-action:none;cursor:crosshair}
#signature-pad[aria-invalid=true]{border:2px solid #bd3651}
.signature-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.signature-tools small{flex:1;min-width:180px;font-size:11px;line-height:1.6;color:var(--muted)}
.signature-tool-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap;margin-inline-start:auto}.signature-tool-actions .icon-btn{flex:0 0 auto;min-width:34px;min-height:34px;padding:0}
.signature-heading .signature-tool-actions :is(#signature-undo,#signature-clear){min-width:34px;min-height:34px;padding:0;font-size:inherit}
.signature-preview{display:block;width:100%;max-height:180px;border-radius:10px;border:1px solid var(--border);background:white}
.application-questions{display:grid;gap:6px;margin:16px 0}.application-questions .field{line-height:1.6}
.application-documents{display:grid;gap:12px;margin:18px 0}.document-help{font-size:11px;line-height:1.8}.document-upload-group{border:1px solid var(--border);border-radius:10px;padding:16px}.document-upload-title{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}.document-upload-group p{font-size:11px;line-height:1.7;color:var(--muted)}.document-upload-actions{display:flex;flex-wrap:wrap;gap:8px}.review-answer{font-size:12px;line-height:1.7;margin:16px 0}.review-answer p{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}

/* Household members retain individually scrollable, named application tabs. */
.household-add { margin: 16px 0; }
.household-add summary { width: fit-content; cursor: pointer; }
.household-add form { padding: 16px 0; }
.household-form-actions { display:flex; align-items:center; gap:10px; margin-top:14px; flex-wrap:wrap; }
.household-add p { font-size: 12px; line-height: 1.7; }
.application-content .tabs { overflow-x: auto; flex-wrap: nowrap; }
.application-content .tab { flex-shrink: 0; }

/* Keep each Yes/No pair beside its question, including on narrow screens. */
.application-question { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; color: var(--text); font-size: 12px; line-height: 1.6; }
.application-question-label { overflow-wrap: anywhere; }
.application-question-options { display: flex; align-items: center; gap: 12px; }
.application-question-options label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.application-question-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }

/* Apply the selected palette to the workspace frame in every appearance mode. */
html[data-color] :is(.topbar,.public-header,.sidebar,.footer,.sidebar-footer) {
 background:var(--frame-bg,var(--primary));
 color:var(--frame-text,#fff);
 border-color:var(--frame-border,#ffffff40);
}
html[data-color] .footer { padding:20px; border-radius:10px; gap:16px; }
html[data-color] .sidebar :is(.nav-label,.nav-item,.user-copy span,.workspace-copy small,.plan-card,.plan-card p),
html[data-color] :is(.topbar,.public-header) :is(.breadcrumb .muted,.searchbox,.searchbox input,.topbar-language,.icon-btn),
html[data-color] .footer .btn.ghost { color:var(--frame-text,#fff); }
html[data-color] .sidebar-footer .icon-btn { color:var(--frame-text,#fff); flex-shrink:0; }
html[data-color] .sidebar-footer .icon-btn:is(:hover,:focus-visible) { background:var(--primary-dark); color:#fff; }
html[data-color] .topbar .searchbox input::placeholder { color:var(--frame-text,#fff); opacity:1; }
html[data-color] .sidebar :is(.workspace-switch,.workspace-icon,.plan-card),
html[data-color] .topbar .searchbox kbd { background:#ffffff14; border-color:var(--frame-border,#ffffff40); color:var(--frame-text,#fff); }
html[data-color] .sidebar :is(.nav-item:hover,.nav-item.active),
html[data-color] :is(.topbar,.public-header) .icon-btn:hover { background:var(--primary-dark); color:#fff; }
html[data-color] .sidebar .nav-item.active { box-shadow:inset 3px 0 #fff; }
html[dir=rtl][data-color] .sidebar .nav-item.active { box-shadow:inset -3px 0 #fff; }
html[data-color] .sidebar .nav-item .count { background:#fff; color:var(--primary-dark); }
html[data-color] .sidebar .nav-divider,
html[data-color] .topbar .topbar-separator { background:var(--frame-border,#ffffff40); }
html[data-color] .sidebar .plan-card .btn,
html[data-color] .public-header .btn.primary { background:var(--primary-dark); border-color:#ffffff66; color:#fff; }
html[data-color] :is(.account-menu,.language-menu) { color:var(--text); }
html[data-color] :is(.topbar,.public-header,.sidebar,.footer) :is(button,a,input):focus-visible { outline-color:var(--frame-text,#fff); }
html[data-color] :is(.account-menu,.language-menu) :is(button,a):focus-visible { outline-color:var(--primary); }

.profile-gallery { margin-top:16px; padding:14px; border:1px solid var(--border); border-radius:12px; }
.profile-gallery[hidden] { display:none; }
.profile-gallery-toolbar { display:flex; justify-content:flex-end; direction:ltr; margin-bottom:8px; }
.profile-picture-categories { display:flex; flex-wrap:nowrap; gap:0; overflow-x:auto; border-bottom:1px solid var(--border); }
.profile-picture-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:10px; max-height:300px; overflow-y:auto; padding:5px; }
.profile-picture-choice { display:grid; place-items:center; min-width:0; padding:4px; border:2px solid transparent; border-radius:12px; background:var(--bg); }
.profile-picture-choice img { width:100%; max-width:80px; height:auto; aspect-ratio:1; object-fit:cover; border-radius:50%; }
.profile-picture-choice:hover,.profile-picture-choice[aria-pressed=true] { border-color:var(--primary); background:var(--primary-soft); }

.household-name-link { border:0; padding:4px 0; background:transparent; color:var(--text); font:inherit; text-align:start; text-decoration:underline; text-underline-offset:3px; }
.household-name-link:hover { color:var(--primary); }

.required-mark { color:#b42336; margin-inline-start:4px; font-weight:700; }
html[data-theme=dark] .required-mark { color:#fff; }
.required-help { color:var(--muted); font-size:11px; }

/* Four supporting-document categories share one desktop row. */
.application-documents { grid-template-columns:repeat(4,minmax(0,1fr)); }
.document-upload-group { min-width:0; padding:12px; display:flex; flex-direction:column; }
.document-upload-title { flex-direction:column; align-items:flex-start; }
.document-upload-title strong { overflow-wrap:anywhere; }
.document-upload-actions { margin-top:auto; }
.document-upload-actions .btn { width:100%; white-space:normal; text-align:start; overflow-wrap:anywhere; }
@media(max-width:900px) { .application-documents { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .application-documents { grid-template-columns:1fr; } }

/* Chat tab: attached to the right edge near the bottom; shown while the chat is closed or collapsed. */
.floating-chat-button { position:fixed; right:0; bottom:22px; z-index:55; width:48px; height:48px; display:grid; place-items:center; border:0; border-radius:10px 0 0 10px; background:var(--primary); color:#fff; box-shadow:-4px 4px 16px #0003; cursor:pointer; }
.floating-chat-button:hover { width:54px; }
.floating-chat { position:fixed; right:22px; bottom:90px; z-index:55; width:min(390px,calc(100vw - 24px)); height:min(520px,calc(100dvh - 110px)); display:flex; flex-direction:column; background:var(--card); color:var(--text); border:1px solid var(--border); border-radius:16px; box-shadow:0 8px 40px #0003; overflow:hidden; }
.floating-chat[hidden] { display:none; }
.floating-chat-heading { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:var(--primary); color:#fff; }
.floating-chat-heading .icon-btn { color:#fff; }
.floating-chat-contact { margin:12px 16px; }
.floating-chat .thread-messages { padding:16px; min-height:0; }
.floating-chat .message-form { padding:12px; }
.floating-chat .message-form .btn { flex-shrink:0; }
@media(max-width:480px) { .floating-chat { right:12px; } .floating-chat-button { bottom:16px; } }

/* Compact forms, with a persistent footer below the workspace. */
:root { --workspace-sidebar-width:236px; --workspace-footer-height:48px; }
.topbar { height:calc(var(--workspace-footer-height) + env(safe-area-inset-bottom, 0px)); }
.form-grid { gap:10px 14px; }
.field { gap:4px; }
.form-section { margin:18px 0 12px; padding-bottom:8px; }
.application-questions { gap:4px; margin:12px 0; }
/* Compact Yes/No rows in Your rental history and Employment & references. */
.application-questions { gap:0; margin:8px 0; }
.application-question { line-height:1.4; font-size:14px; }
.application-question-options label { font-size:14px; }
.application-question-options input { width:18px; height:18px; }
.application-question-options label { min-height:32px; }
.application-questions + .application-questions { margin-top:-8px; }
.application-questions > .field { margin-top:6px; }
.application-documents { gap:10px; margin:12px 0; }
.check-field { margin:8px 0; }
.settings-panel h2 { margin-bottom:16px; }
.profile-photo-form { gap:14px; margin-bottom:18px; }
.household-add form { padding:10px 0; }

.main { padding-bottom:calc(var(--active-footer-height,var(--workspace-footer-height)) + 80px); }
html[data-color] .footer {
 position:fixed; inset-inline-start:var(--workspace-sidebar-width); inset-inline-end:0; bottom:0;
 height:calc(var(--active-footer-height,var(--workspace-footer-height)) + env(safe-area-inset-bottom, 0px));
 margin:0; padding:8px 20px calc(8px + env(safe-area-inset-bottom, 0px));
 border-radius:0; gap:12px; z-index:25;
}
.footer > span { min-width:0; }
.sticky-actions { position:static; padding:12px 16px; margin-top:14px; }
.floating-chat-button { bottom:calc(var(--active-footer-height,var(--workspace-footer-height)) + env(safe-area-inset-bottom, 0px) + 12px); }
.floating-chat { bottom:calc(var(--active-footer-height,var(--workspace-footer-height)) + env(safe-area-inset-bottom, 0px) + 80px); height:min(520px,calc(100dvh - var(--active-footer-height,var(--workspace-footer-height)) - env(safe-area-inset-bottom, 0px) - 100px)); }
#toast { bottom:calc(var(--active-footer-height,var(--workspace-footer-height)) + env(safe-area-inset-bottom, 0px) + 14px); }
@media(max-width:980px) { :root { --workspace-sidebar-width:185px; } }
@media(max-width:720px) {
 :root { --workspace-sidebar-width:0px; }
 html[data-color] .footer { padding-inline:12px; gap:8px; }
}
html { scroll-padding-bottom:calc(var(--active-footer-height,var(--workspace-footer-height)) + 160px); }
.main :is(input,select,textarea,button,canvas) { scroll-margin-block:20px calc(var(--active-footer-height,var(--workspace-footer-height)) + 160px); }

/* Translated labels can be longer than their English equivalents. */
.page-heading > div,.stat-card,.hero-copy,.settings-panel,.application-content { min-width:0; }
.page-heading h1,.stat-top,.form-section,.summary-title { overflow-wrap:anywhere; }
.heading-actions { flex-wrap:wrap; }

.chat-sound-button { margin-inline-start:auto; margin-inline-end:8px; background:transparent; color:#fff; border-color:#ffffff80; }

/* Keep the account row aligned with the workspace footer while navigation scrolls. */
.sidebar { padding:0; overflow:hidden; }
.sidebar-scroll { flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; display:flex; flex-direction:column; padding:32px 18px 0; }
.sidebar-scroll > .brand,.sidebar-scroll > .workspace-switch { flex-shrink:0; }
.sidebar-footer { flex-shrink:0; height:calc(var(--workspace-footer-height) + env(safe-area-inset-bottom, 0px)); padding:0 28px env(safe-area-inset-bottom, 0px); }
.sidebar-footer .user-copy { min-width:0; }
.sidebar-footer .user-copy :is(strong,span) { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:1180px) { .sidebar-scroll { padding-inline:12px; } .sidebar-footer { padding-inline:22px; } }

button.profile-photo-display { border:2px solid var(--border); border-radius:50%; padding:3px; background:var(--bg); cursor:pointer; }
button.profile-photo-display:hover { border-color:var(--primary); }
button.profile-photo-display:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }

[data-color=black],[data-color=white] { --primary:#171717; --primary-dark:#000; --palette-soft:#eeeeee; --palette-dark:#343434; --hero-from:#f5f5f5; --hero-to:#ddd; --hero-dark-from:#252525; --hero-dark-to:#383838; }
html[data-color=white] { --frame-bg:#fff; --frame-text:#171717; --frame-border:#17171740; }
.color-option[data-color=white] .color-swatch { background:#fff; color:#171717; border:1px solid #777; }


html[data-color] .sidebar .nav-item.active { box-shadow:inset 3px 0 var(--frame-text,#fff); }
html[dir=rtl][data-color] .sidebar .nav-item.active { box-shadow:inset -3px 0 var(--frame-text,#fff); }

.custom-color-option { position:relative; cursor:pointer; margin:0; }
.custom-color-option input[type=color] { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.custom-color-option .color-swatch { border:1px solid #777; }
.custom-color-option[data-selected=true] { border-color:var(--primary); box-shadow:0 0 0 1px var(--primary); background:var(--primary-soft); }
.custom-color-option:focus-within { outline:3px solid var(--primary); outline-offset:3px; }
.custom-color-option:has(input:disabled) { opacity:.55; cursor:wait; }

/* Carry the chosen palette through the main workspace and its surfaces. */
html[data-color] .main {
 background:var(--bg);
 --card:color-mix(in srgb, var(--palette-soft) 30%, white);
 --border:color-mix(in srgb, var(--primary) 22%, #d0ced8);
}
html[data-color][data-theme=dark] .main {
 --card:color-mix(in srgb, var(--palette-dark) 65%, #25212f);
 --border:color-mix(in srgb, var(--primary) 20%, #81788e);
}

.app-logo { object-fit:contain; flex-shrink:0; }

/* Transparent branding stays legible without a surrounding tile. */
.brand .app-logo { width:46px; height:46px; border-radius:0; }
@media (min-width:721px) and (max-width:980px) {
 .sidebar .brand { gap:7px; padding-inline:0; font-size:20px; }
 .sidebar .brand .app-logo { width:38px; height:38px; }
}
@media (max-width:720px) {
 .public-header .brand .app-logo { width:36px; height:36px; }
}

/* Use the transparent artwork as a mask so the palette colors the complete mark. */
.app-logo {
 display:inline-block;
 width:var(--logo-size,46px);
 height:var(--logo-size,46px);
 background-color:var(--primary-dark);
 -webkit-mask:url('applyrent-transparent.png') center / contain no-repeat;
 mask:url('applyrent-transparent.png') center / contain no-repeat;
}
html[data-theme=dark] .app-logo { background-color:var(--palette-soft); }
html[data-color] :is(.sidebar,.public-header,.topbar) .app-logo {
 background-color:color-mix(in srgb,var(--frame-text,#fff) 88%,var(--primary) 12%);
}

.chat-unread-badge {
 position:absolute; top:-5px; right:-5px; min-width:22px; height:22px;
 padding:0 5px; display:grid; place-items:center; border:2px solid var(--card);
 border-radius:999px; background:#c62828; color:#fff; font-size:11px; font-weight:700;
}
.chat-unread-badge[hidden] { display:none; }

.chat-composer { flex-wrap:wrap; gap:8px; }
.chat-composer input[name=body] { flex:1; min-width:0; width:0; }
.chat-composer>.icon-btn { flex-shrink:0; }
.chat-composer input[hidden],.chat-file-selection[hidden] { display:none; }
.chat-file-selection { display:flex; align-items:center; gap:6px; width:100%; min-width:0; background:var(--primary-soft); padding:4px 8px; border-radius:8px; }
.chat-file-selection>span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.chat-attachment-help { width:100%; color:var(--muted); font-size:10px; }
.chat-attachment { display:flex; flex-direction:column; gap:6px; margin:4px 0 8px; padding:8px; border:1px solid currentColor; border-radius:8px; overflow-wrap:anywhere; }
.chat-attachment img { display:block; max-width:100%; width:220px; max-height:180px; object-fit:contain; border-radius:5px; }
.chat-attachment>span { min-width:0; font-size:12px; }
.chat-attachment small { display:block; }

.chat-tools { padding:6px 14px; flex-shrink:0; border-bottom:1px solid var(--border); }
.chat-pinned { display:flex; gap:6px; align-items:center; margin-top:6px; background:var(--primary-soft); border-radius:7px; }
.chat-pinned[hidden],.chat-reply-selection[hidden] { display:none; }
.chat-pin-jump { flex:1; min-width:0; text-align:start; border:0; background:transparent; padding:8px; }
.chat-pin-jump strong,.chat-pin-jump span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.chat-message-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:7px; }
.chat-message-actions button { border:0; background:transparent; color:inherit; padding:3px 0; font-size:10px; text-decoration:underline; }
.chat-reply-quote { display:block; width:100%; text-align:start; border:0; border-inline-start:3px solid currentColor; background:#8882; color:inherit; padding:7px; margin-bottom:7px; }
.chat-reply-quote strong,.chat-reply-quote span { display:block; font-size:11px; overflow-wrap:anywhere; }
.chat-reply-selection { display:flex; align-items:center; width:100%; background:var(--primary-soft); border-radius:7px; padding:4px 8px; }
.chat-reply-selection span { flex:1; font-size:11px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.chat-message-focus { outline:3px solid var(--primary); outline-offset:2px; }
.chat-attachment-gallery { display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }
.chat-attachment-gallery article { min-width:0; padding:10px; border:1px solid var(--border); border-radius:10px; }
.floating-chat .thread-messages,.thread>.thread-messages { min-height:0; }

/* Message controls are positioned from the signed-in reader's perspective. */
.thread-messages .bubble {
 position:relative; align-self:flex-start; max-width:min(80%,calc(100% - 42px));
 margin-left:0; margin-right:36px; padding:28px 12px 9px;
 background:var(--bg); border-radius:12px;
}
.thread-messages .bubble.mine {
 align-self:flex-end; margin-left:36px; margin-right:0; background:var(--primary-soft);
}
.thread-messages .bubble p,.thread-messages .bubble.mine p {
 background:transparent; padding:0; border-radius:0; color:var(--text);
}
.chat-side-reply { position:absolute; right:-36px; left:auto; top:calc(50% - 16px); width:32px; height:32px; color:var(--muted); }
.bubble.mine .chat-side-reply { left:-36px; right:auto; }
.chat-menu-toggle { position:absolute; top:0; right:2px; width:28px; height:28px; color:var(--muted); }
.chat-message-menu {
 position:fixed; inset:auto; margin:0; min-width:170px; padding:5px;
 background:var(--card); color:var(--text); border:1px solid var(--border); border-radius:10px;
 box-shadow:0 8px 30px #0003;
}
.chat-message-menu:popover-open { display:grid; }
.chat-message-menu button { display:flex; align-items:center; gap:10px; border:0; background:transparent; color:inherit; text-align:start; padding:10px; border-radius:6px; font-size:12px; }
.chat-message-menu button:hover,.chat-message-menu button:focus-visible { background:var(--primary-soft); }
.chat-message-menu .icon { width:17px; height:17px; }
.chat-select-toggle { position:absolute; top:4px; left:8px; width:20px; height:20px; display:grid; place-items:center; padding:0; border:1px solid var(--muted); border-radius:50%; background:var(--card); color:transparent; }
.chat-select-toggle[aria-checked=true] { color:#fff; background:var(--primary); border-color:var(--primary); }
.chat-select-toggle .icon { width:14px; height:14px; }
.chat-select-toggle[hidden],.chat-selection-bar[hidden] { display:none; }
.thread-messages .bubble.chat-selected { box-shadow:0 0 0 2px var(--primary); }
.chat-selection-bar { display:flex; align-items:center; gap:6px; margin-top:6px; padding:4px 8px; border-radius:8px; background:var(--primary-soft); }
.chat-selection-count { flex:1; font-size:12px; }

.chat-attachment-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.chat-attachment-toolbar label,.chat-attachment-pick { display:flex; align-items:center; gap:7px; font-size:12px; }
.chat-attachment-count { flex:1; min-width:75px; font-size:12px; }
.chat-attachment-pick { margin-bottom:8px; }
.chat-attachment-selection input[type=checkbox] { width:17px; height:17px; accent-color:var(--primary); }

.floating-chat-heading { padding-left:38px; flex-shrink:0; }
.floating-chat-heading .chat-resize-handle { position:absolute; top:3px; left:3px; width:30px; height:30px; cursor:nwse-resize; touch-action:none; }
.chat-resize-handle .icon { width:16px; height:16px; }
.floating-chat.chat-resizing { user-select:none; }

.chat-attachment { color:inherit; background:transparent; text-align:start; width:100%; }
button.chat-attachment { cursor:pointer; }
.chat-gallery-header-actions { display:flex; align-items:center; gap:3px; margin-inline-start:auto; flex-wrap:wrap; }
.chat-gallery-header-actions .icon-btn { flex-shrink:0; }
.chat-attachment-gallery article.attachment-selected { border-color:var(--primary); box-shadow:0 0 0 1px var(--primary); background:var(--primary-soft); }
#modal:has(.chat-attachment-selection) .modal-head { flex-wrap:wrap; gap:8px; }

.chat-attachment-tabs { display:flex; gap:6px; overflow-x:auto; margin-bottom:16px; border-bottom:1px solid var(--border); padding-bottom:8px; }
.chat-attachment-tabs button { flex-shrink:0; padding:9px 12px; border:0; border-radius:8px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.chat-attachment-tabs button[aria-selected="true"] { background:var(--primary-soft); color:var(--primary); font-weight:600; }
.chat-attachment-tabs button:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; }
.chat-attachment-gallery article[hidden],.chat-gallery-empty[hidden] { display:none; }

#modal:has(.chat-attachment-selection) { height:min(640px,88dvh); overflow:hidden; }
#modal:has(.chat-attachment-selection)[open] { display:flex; flex-direction:column; }
#modal:has(.chat-attachment-selection) .modal-head { flex-shrink:0; }
#modal:has(.chat-attachment-selection) .modal-body { flex:1; min-height:0; display:flex; overflow:hidden; }
.chat-attachment-selection { display:flex; flex-direction:column; min-height:0; width:100%; }
.chat-attachment-selection .chat-attachment-tabs,.chat-attachment-selection .chat-attachment-toolbar { flex-shrink:0; }
.chat-attachment-selection .chat-attachment-gallery { flex:1; min-height:0; overflow-y:auto; align-content:start; scrollbar-gutter:stable; }

.chat-video-preview { display:block; width:280px; max-width:100%; height:180px; object-fit:contain; background:#111; border-radius:5px; }
.chat-attachment-gallery .chat-video-preview { width:100%; margin:8px 0; }

.chat-attachment.chat-document-attachment { flex-direction:row; align-items:center; gap:12px; }
.chat-file-type { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; height:52px; color:var(--primary); background:var(--card); border-radius:6px; }
.chat-file-type .icon { width:34px; height:42px; }
.chat-file-type b { position:absolute; bottom:7px; left:2px; right:2px; border-radius:3px; padding:2px; background:var(--primary); color:#fff; font-size:9px; line-height:12px; text-align:center; letter-spacing:.3px; }
.chat-file-type-pdf { color:#b42318; }
.chat-file-type-pdf b { background:#b42318; }
.chat-file-type-word { color:#175cd3; }
.chat-file-type-word b { background:#175cd3; }
.chat-file-type-text { color:#475467; }
.chat-file-type-text b { background:#475467; }

.chat-file-type-excel { color:#157347; }
.chat-file-type-excel b { background:#157347; }

.property-options { margin:18px 0; padding:16px; border:1px solid var(--border); border-radius:12px; min-width:0; }
.property-options legend { font-weight:600; padding:0 6px; }
.property-owner-options{grid-column:1/-1;margin:4px 0 16px;padding:12px 14px;border:1px solid var(--border);border-radius:10px;min-width:0}.property-owner-options legend{padding:0 6px;font-weight:650}.property-owner-options>p{margin:2px 0 10px;font-size:11px}.property-owner-list{display:grid;grid-template-columns:repeat(2,minmax(0,280px));gap:12px}.property-owner-select{margin:0}.property-owner-select span{display:flex;gap:4px;align-items:baseline}.property-owner-select small{font-weight:400;color:var(--muted)}@media(max-width:540px){.property-owner-list{grid-template-columns:minmax(0,1fr)}}
.property-checks { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin:12px 0; }
.property-checks label { display:flex; align-items:center; gap:7px; font-size:12px; }
.property-custom-utilities { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.property-utility-tag { display:flex; align-items:center; gap:4px; background:var(--primary-soft); padding:4px 8px; border-radius:10px; max-width:100%; }
.property-utility-tag input { border:0; background:transparent; color:var(--text); width:150px; min-width:0; }
.property-media-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin:12px 0; }
.property-media-gallery img,.property-media-gallery video { display:block; width:100%; height:200px; object-fit:contain; border-radius:10px; background:var(--bg); }
.property-utility-summary { margin:16px 0; }
.property-upload-summary,.property-upload-status { overflow-wrap:anywhere; font-size:12px; }

.property-media-gallery figure { margin:0; min-width:0; }
.property-media-gallery figcaption { overflow-wrap:anywhere; font-size:12px; margin-top:6px; }
.property-media-gallery figcaption small { display:block; color:var(--muted); margin-top:3px; }

button.workspace-switch{width:100%;text-align:start;color:inherit;font:inherit;cursor:pointer}button.workspace-switch:disabled{cursor:default;opacity:1}.workspace-choice{margin-top:8px;justify-content:space-between}

/* Compact settings without hiding controls or trapping overflow. */
.main.settings-page{--form-control-height:34px;padding-top:16px;padding-bottom:calc(var(--active-footer-height,var(--workspace-footer-height)) + 14px)}
.settings-page .page-heading{margin-bottom:12px}
.settings-page .page-heading h1{margin-bottom:4px}
.settings-page .settings-layout{gap:14px;align-items:start}
.settings-page .settings-panel{padding:16px}
.settings-page .settings-panel h2{font-size:14px;margin:0 0 10px}
.settings-page .settings-panel p{margin:8px 0;font-size:11px;line-height:1.5}
.settings-page .settings-account{margin-top:14px}
.settings-page .profile-photo-form{gap:10px;margin-bottom:10px}
.settings-page .profile-photo-display .avatar{width:60px;height:60px;font-size:20px}
.settings-page .profile-photo-actions{gap:6px;margin-top:6px}
.profile-photo-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-bottom:10px}
.settings-panel .profile-photo-heading h2{margin:0;flex-shrink:0}
.profile-photo-heading small{flex:1 1 240px;color:var(--muted);font-size:10px;line-height:1.4}
.settings-page .form-grid{gap:8px 12px}
.settings-page .field{gap:3px}
.settings-page .field input,.settings-page .field select{min-height:34px;padding:7px 9px}
.settings-page .form-section{margin:12px 0 8px;padding-bottom:6px}
.settings-page .modal-actions{margin-top:10px}
.settings-page .btn{min-height:34px;padding:7px 11px}
.settings-page .color-options{gap:6px}
.settings-page .color-option{min-height:48px;padding:8px;gap:7px;flex-direction:row;font-size:11px}
.settings-page .color-swatch{width:24px;height:24px;flex-shrink:0}
.settings-page .summary-item{padding-block:8px}
@media(min-width:901px){.settings-page .settings-layout{grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr)}}
@media(max-width:600px){.main.settings-page{--form-control-height:40px}.settings-page .settings-panel{padding:14px}.settings-page .color-option{min-height:44px}.settings-page .btn{min-height:40px}.settings-page .field input,.settings-page .field select{min-height:40px}}

.workspace-name{display:flex;align-items:center;gap:10px}
.workspace-avatar{width:40px;height:40px;object-fit:cover;border-radius:9px;flex-shrink:0}
.workspace-fallback{display:inline-grid;place-items:center;background:var(--primary-soft);color:var(--primary)}
.workspace-icon .workspace-avatar{width:35px;height:35px}
.workspace-row-actions{display:flex;gap:5px;align-items:center;white-space:nowrap}
.workspace-row-actions .icon-btn{border:1px solid var(--border);color:var(--primary)}
.workspace-row-actions .workspace-danger{color:#b84560}
.workspace-create-members{display:flex;flex-wrap:wrap;gap:8px}
.workspace-image-preview .workspace-avatar{width:72px;height:72px}
#modal[open]:has(form[id^="workspace-"]){display:flex;flex-direction:column;overflow:hidden}
#modal:has(form[id^="workspace-"]) .modal-head{position:static;flex-shrink:0;gap:14px}
#modal:has(form[id^="workspace-"]) .modal-head h2{min-width:0;overflow-wrap:anywhere;line-height:1.35}
#modal:has(form[id^="workspace-"]) .modal-head .icon-btn{flex-shrink:0}
#modal:has(form[id^="workspace-"]) .modal-body{min-height:0;overflow:auto;flex:1}
#modal form[id^="workspace-"]{display:grid;gap:12px}
#modal form[id^="workspace-"] .modal-actions{margin-top:4px;flex-wrap:wrap}
#modal form[id^="workspace-"] p{margin:0}

/* Shared record-grid tools (not form, statistic, or layout grids). */
.grid-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.panel>.grid-toolbar{margin:0;padding:12px 16px;background:var(--primary-soft)}
.grid-toolbar label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text);min-width:0}
.grid-size{flex:0 1 auto}
.grid-toolbar input,.grid-toolbar select{min-height:36px;border:1px solid var(--border);border-radius:7px;padding:7px 9px;background:var(--card);color:var(--text);min-width:0}
.grid-toolbar select{width:74px}
.data-table.record-table .grid-column-filters th{padding:6px 8px;background:var(--card)}
.grid-column-filters input{box-sizing:border-box;width:100%;min-width:0;min-height:32px;border:1px solid var(--border);border-radius:6px;padding:5px 7px;background:var(--card);color:var(--text);font:inherit;font-size:12px}
.grid-column-filters input:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
.grid-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;font-size:12px;color:var(--muted)}
.panel>.grid-pagination{padding:12px 16px}
.grid-pagination nav{display:flex;align-items:center;gap:10px}
.grid-empty{padding:0}
.managed-grid[hidden],.table-wrap[hidden],.grid-empty[hidden]{display:none!important}
.managed-grid [data-grid-item][hidden]{display:none!important}
.managed-grid [data-grid-item]{transition:background .15s ease,box-shadow .15s ease}
.managed-grid tbody [data-grid-item].grid-row-selected>td{background:var(--primary-soft)}
.managed-grid tbody [data-grid-item].grid-row-selected>td:first-child{box-shadow:inset 3px 0 0 var(--primary)}
.managed-grid:not(.data-table) [data-grid-item].grid-row-selected{box-shadow:inset 0 0 0 2px var(--primary)}
.workspace-grid{width:100%;table-layout:fixed}
.table-wrap .data-table.workspace-grid{min-width:0}
.workspace-grid th,.workspace-grid td{white-space:normal;overflow-wrap:anywhere;padding:12px 8px}
.workspace-grid th:nth-child(1){width:18%}.workspace-grid th:nth-child(2){width:20%}.workspace-grid th:nth-child(3){width:13%}
.workspace-grid th:nth-child(4),.workspace-grid th:nth-child(5){width:8%}.workspace-grid th:nth-child(6){width:12%}.workspace-grid th:nth-child(7){width:21%}
.workspace-grid .workspace-name{align-items:center;gap:7px;min-width:0}.workspace-grid .workspace-name strong{min-width:0}
html .data-table.workspace-grid tbody tr.workspace-selected{background:var(--primary-soft);box-shadow:inset 3px 0 0 var(--primary)}
.workspace-grid .workspace-row-actions{flex-wrap:wrap;white-space:normal}
@media(max-width:720px){
.dashboard-page > .page-heading .date-button.btn { display:inline-flex; }
 .workspace-grid thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .workspace-grid thead:has(.grid-column-filters){position:static;width:auto;height:auto;overflow:visible;clip-path:none}
 .workspace-grid thead:has(.grid-column-filters) tr:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .workspace-grid thead tr.grid-column-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .workspace-grid thead tr.grid-column-filters th{display:block;width:auto;min-width:0;padding:4px}
 .workspace-grid,.workspace-grid tbody,.workspace-grid tr{display:block;width:100%}
 .workspace-grid tr{padding:12px;border-bottom:1px solid var(--border)}
 .workspace-grid td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;padding:6px 0;border:0}
 .workspace-grid td::before{content:attr(data-label);font-weight:600;color:var(--muted);font-size:11px}
 .workspace-grid td[colspan]{display:block}.workspace-grid td[colspan]::before{display:none}
 .grid-toolbar{gap:10px}.grid-toolbar label{flex-wrap:wrap}.grid-pagination{gap:8px}.grid-pagination nav{gap:6px}
}

/* Page controls and right-aligned record actions. */
.heading-actions>.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.page-heading:has(.heading-actions>.actions){flex-wrap:wrap}
.subscription-grid th:last-child,.subscription-grid td:last-child,.workspace-grid th:last-child,.workspace-grid td:last-child{text-align:right}
.subscription-row-actions,.workspace-grid .workspace-row-actions{display:flex;justify-content:flex-end;align-items:center;gap:5px}
.subscription-row-actions .icon-btn{flex-shrink:0;border:1px solid var(--border);color:var(--primary)}
.subscription-row-actions .subscription-danger{color:#b84560}
@media(max-width:720px){.workspace-grid td:last-child::before{text-align:left}}

/* Neutral action buttons use the same solid palette as primary actions. */
html :is(.btn:not(.danger):not(.ghost):not(.chat-sound-button),.table-action){background:var(--button-gradient,none) var(--primary)}
html :is(.btn:not(.danger):not(.ghost):not(.chat-sound-button),.table-action,.theme-option,.color-option){
 background-color:var(--primary);
 border-color:var(--primary);
 color:#fff;
}
html :is(.btn:not(.danger):not(.ghost):not(.chat-sound-button),.table-action):is(:hover,:focus-visible){background:var(--button-gradient,none) var(--primary-dark)}
html :is(.btn:not(.danger):not(.ghost):not(.chat-sound-button),.table-action,.theme-option,.color-option):is(:hover,:focus-visible){
 background-color:var(--primary-dark);
 border-color:var(--primary-dark);
 color:#fff;
}
html[data-theme=dark] :is(.hero .btn,.table-action),
html[data-color] .theme-option[aria-pressed=true],
html[data-theme=dark] .color-option[aria-pressed=true],
html .custom-color-option[data-selected=true]{background:var(--primary);color:#fff}

/* Keep text-button icons compact, including tabs and inline record actions. */
.button-label-icon{width:16px;height:16px;flex-shrink:0;vertical-align:middle}
[data-button-icon]{display:inline-flex;align-items:center;gap:6px}
:is(.table-action,.filter-tab,.tab,.household-name-link)>.button-label-icon{margin-inline-end:4px}
.chat-attachment-tabs button>.button-label-icon{margin-inline-end:5px}

/* Compact record rows consistently across all table grids. */
.data-table th,.data-table.workspace-grid th{padding-block:6px}
.data-table td,.data-table.workspace-grid td{padding-block:6px;vertical-align:middle}
.data-table .icon-btn{width:28px;height:28px}
.data-table .icon-btn .icon{width:16px;height:16px}
.data-table .btn{min-height:28px;padding:5px 9px}
.data-table .table-action{padding:5px 8px}
.data-table .person .avatar{width:28px;height:28px}
.data-table .workspace-avatar{width:30px;height:30px;border-radius:7px}
.data-table .person small,.data-table .table-property small{margin-top:2px}
@media(max-width:720px){
 .workspace-grid tr{padding-block:8px}
 .data-table.workspace-grid td{padding-block:4px}
}
@media(pointer:coarse){
 .data-table .icon-btn{width:36px;height:36px}
 .data-table .btn,.data-table .table-action{min-height:36px}
}

.workspace-member-actions,.workspace-create-members{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.workspace-new-member{display:grid;gap:12px}
.workspace-new-member[hidden],.workspace-existing-member[hidden]{display:none}
.field textarea{padding-block:8px;min-height:72px}
.field input[type=file]{padding-block:6px}

/* Compact themed popup headers; workspace actions remain visible above scrolling content. */
:is(#modal,.lease-detail-popup) .modal-head{padding:10px 16px;gap:10px;background:var(--primary-soft);color:var(--text)}
:is(#modal,.lease-detail-popup) .modal-head h2{margin:0;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
#modal[open].workspace-dialog{display:flex;flex-direction:column;overflow:hidden;width:min(540px,calc(100% - 32px))!important}
#modal.workspace-dialog .modal-head{position:static;flex-shrink:0;flex-wrap:wrap;gap:10px}
#modal.workspace-dialog .modal-body{min-height:0;overflow:auto}
.workspace-modal-title{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.workspace-modal-title .workspace-avatar{width:30px;height:30px}
.workspace-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-inline-start:auto}
#modal .workspace-header-actions .btn{min-height:30px;padding:6px 9px;font-size:10px}
.workspace-image-upload{display:flex;align-items:center;gap:14px;min-width:0}
.workspace-image-upload>.field{flex:1;min-width:0;margin:0}
.workspace-image-upload input{width:100%;min-width:0}
@media(max-width:600px){.workspace-header-actions{width:100%;justify-content:flex-start}#modal.workspace-dialog .modal-head{padding:10px 12px}.workspace-image-preview .workspace-avatar{width:50px;height:50px}}

/* Shared popup actions stay visible while the body scrolls. */
:is(#modal,.lease-detail-popup)[open]{display:flex;flex-direction:column;overflow:hidden}
:is(#modal,.lease-detail-popup) .modal-head{position:static;flex-shrink:0;flex-wrap:wrap;align-items:center}
:is(#modal,.lease-detail-popup) .modal-head h2{flex:1;min-width:0}
:is(#modal,.lease-detail-popup) .modal-body{min-height:0;overflow:auto;flex:1}
#modal .modal-header-actions{flex-wrap:wrap;max-width:100%}
#modal .modal-header-actions .btn{white-space:normal;text-align:center}
@media print{#modal .modal-header-actions{display:none}}

/* The post editor is a complete form, so keep it as one continuous popup instead
   of creating a second scrollbar inside the dialog. */
#modal:has(#post-form){max-height:none;overflow:visible}
#modal:has(#post-form) .modal-body{overflow:visible;flex:none}

.subscription-features{position:relative;margin-top:6px}
.subscription-features summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;min-height:var(--form-control-height);padding:7px 11px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:12px}
.subscription-features summary::-webkit-details-marker{display:none}
.subscription-features summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.subscription-features[open] summary{border-color:var(--primary)}
.subscription-feature-options{position:absolute;inset:calc(100% + 4px) 0 auto;z-index:5;max-height:230px;overflow:auto;padding:6px;background:var(--card);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 20px #0002}
.subscription-feature-options .check-field{display:flex;align-items:center;gap:9px;margin:0;padding:8px;border-radius:5px;cursor:pointer;font-size:12px}
.subscription-feature-options .check-field:hover{background:var(--primary-soft)}
.subscription-feature-options input{accent-color:var(--primary);flex-shrink:0}

.property-multiselect{position:relative;min-width:0}
.property-multiselect summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;min-height:var(--form-control-height);padding:7px 11px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:12px}
.property-multiselect summary::-webkit-details-marker{display:none}
.property-multiselect summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.property-selection-count{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.property-multiselect[open] summary{border-color:var(--primary)}
.property-multiselect .property-checks{display:flex;flex-direction:column;gap:0;position:absolute;inset:calc(100% + 4px) 0 auto;z-index:5;max-height:220px;overflow:auto;margin:0;padding:6px;background:var(--card);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 20px #0002}
.property-multiselect .property-checks label{display:flex;align-items:center;gap:9px;padding:8px;border-radius:5px;cursor:pointer;font-size:12px}
.property-multiselect .property-checks label:hover{background:var(--primary-soft)}
.property-multiselect input{accent-color:var(--primary)}

/* Property details use three columns when space permits. */
#modal:has(#property-form){width:min(960px,calc(100% - 32px))}
#property-form .property-editor-details>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#property-form .field{min-width:0}
#property-form .field.full{grid-column:1/-1}
@media(max-width:800px){#property-form .property-editor-details>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){#property-form .property-editor-details>.form-grid{grid-template-columns:minmax(0,1fr)}}

/* Match the property form's responsive three-column layout for plan details. */
#modal:has(#subscription-plan-form){width:min(960px,calc(100% - 32px))}
#subscription-plan-form>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#subscription-plan-form .field{min-width:0}
@media(max-width:800px){#subscription-plan-form>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){#subscription-plan-form>.form-grid{grid-template-columns:minmax(0,1fr)}}

/* Checkbox options must not inherit full-width text-input dimensions. */
.subscription-feature-options input[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;flex:0 0 16px;margin:0;padding:0;appearance:auto}
.subscription-feature-options .check-field{color:var(--text);min-width:0}
.subscription-feature-options .check-field>span{display:block;min-width:0;flex:1;margin:0;font-size:12px;font-weight:400;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:var(--text)}

#property-form .property-amenities-field .property-multiselect{margin-top:6px}

.property-utility-share-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:14px;align-items:end}
.property-utility-share-row>.field{margin:0;min-width:0}
.property-utility-share-row .property-multiselect{margin-top:6px}
@media(max-width:540px){.property-utility-share-row{grid-template-columns:minmax(0,1fr)}}
.property-multiselect .property-checks input[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;max-width:16px;flex:0 0 16px;margin:0;padding:0;appearance:auto}

/* Keep navigation and page actions visible as the document scrolls. */
:root{--page-topbar-height:calc(var(--workspace-footer-height) + env(safe-area-inset-bottom, 0px))}
.topbar{position:sticky;top:0;z-index:29;height:var(--page-topbar-height)}
.main>.page-heading{position:sticky;top:var(--page-topbar-height);z-index:24;background:var(--bg);padding-block:12px;border-bottom:1px solid var(--border)}
html{scroll-padding-top:calc(var(--page-topbar-height) + 120px)}
@media(max-width:720px){html{scroll-padding-top:calc(var(--page-topbar-height) + 180px)}}
@media print{.main>.page-heading{position:static}}

/* Compact workspace selection rows instead of large action buttons. */
#modal:has(.workspace-picker-list){width:min(520px,calc(100% - 32px))}
#modal:has(.workspace-picker-list) .modal-body{padding:10px 14px}
.workspace-picker-list{display:flex;flex-direction:column;gap:4px}
.workspace-picker-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:98px;padding:12px 20px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);text-align:center;cursor:pointer}
.workspace-picker-item:hover{background:var(--primary-soft);border-color:var(--border)}
.workspace-picker-item[aria-pressed=true]{background:var(--primary-soft);border-color:var(--primary)}
.workspace-picker-item .workspace-avatar{width:38px;height:38px;border-radius:9px;object-fit:cover;flex-shrink:0}
.workspace-picker-item .workspace-avatar .icon{width:22px;height:22px}
.workspace-picker-name{min-width:0;max-width:100%;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.workspace-picker-item[aria-pressed=true] .workspace-picker-name{font-weight:600}
.workspace-picker-check{position:absolute;top:10px;right:10px;display:flex;align-items:center;width:18px;color:var(--primary)}
.workspace-picker-check .icon{width:18px;height:18px}

/* Workspace picker: three compact choices per row on larger screens. */
#modal:has(.workspace-picker-list){width:min(540px,calc(100% - 32px))}
.workspace-picker-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.workspace-picker-item{min-width:0;height:100%;border-color:var(--border)}
@media(max-width:540px){.workspace-picker-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:340px){.workspace-picker-list{grid-template-columns:minmax(0,1fr)}}

.grid-toolbar[hidden],.grid-pagination[hidden],.grid-toolbar .grid-size[hidden]{display:none}

/* Dashboard: quieter surfaces, clearer hierarchy, and concise previews. */
.dashboard-page{--dashboard-surface:color-mix(in srgb,var(--card) 94%,var(--primary) 6%);max-width:1520px}
.dashboard-page>.page-heading{margin-bottom:20px}
.dashboard-page .page-heading h1{font-size:26px;letter-spacing:-.8px}
.dashboard-page .dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:0;padding:18px 22px;margin-bottom:24px;background:var(--dashboard-surface);border:1px solid var(--border);border-radius:14px}
.dashboard-page .dashboard-welcome h2{font-size:17px;line-height:1.4;margin:4px 0 0;letter-spacing:-.2px;color:var(--text)}
.dashboard-kicker{font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase}
.dashboard-page .dashboard-welcome .btn{background:transparent;color:var(--primary);box-shadow:none}
.dashboard-page .stats-grid{gap:16px;margin-bottom:28px}
.dashboard-page .stat-card{padding:20px;min-height:135px;border-radius:14px;box-shadow:none}
.dashboard-page .stat-top{margin-bottom:14px;color:var(--muted);font-size:11px}
.dashboard-page .stat-icon{width:28px;height:28px;background:var(--primary-soft);color:var(--primary);border-radius:8px}
.dashboard-page .stat-value{font-size:30px;line-height:1.2;margin-bottom:10px;font-variant-numeric:tabular-nums}
.dashboard-page .stat-caption{font-size:10px;line-height:1.5;flex-wrap:wrap}
.dashboard-page .dashboard-grid{gap:24px;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr)}
.dashboard-page .panel{border-radius:14px;box-shadow:none}
.dashboard-page .panel-head{padding:20px 22px 0;margin-bottom:18px}
.dashboard-page .panel-head h2,.dashboard-page .section-heading h2{font-size:14px;font-weight:600}
.dashboard-page :is(.dashboard-applications,.dashboard-properties) .panel-head h2{background-color:transparent;color:var(--primary);font-size:26px;font-weight:700;letter-spacing:-.7px;line-height:1.25}
.dashboard-page .dashboard-applications .data-table tbody tr:last-child td{border-bottom:1px solid var(--border)}
.dashboard-page .panel-head .badge{margin-inline-start:6px}
.dashboard-page .chart-container{height:220px}
.dashboard-page .task-card .panel-body{display:block;padding:0 22px 12px}
.dashboard-page .task-row{padding:17px 0;align-items:center;border-bottom:1px solid var(--border)}
.dashboard-page .task-row:last-child{border-bottom:0}
.dashboard-page .task-info strong{line-height:1.5}
.dashboard-page .task-info span{line-height:1.6}
.dashboard-caught-up{display:flex;align-items:center;gap:12px;padding:22px 0;color:var(--muted);font-size:12px;font-weight:400}
.dashboard-caught-up>.icon{color:var(--green);width:26px;height:26px}
.dashboard-page .messages-preview .panel-body{display:block}
.dashboard-page .message-row{padding-block:16px}
.dashboard-page .data-table td{padding-block:6px}
.dashboard-page .portfolio-section{margin-top:30px}
.dashboard-page .property-grid{gap:20px}
.dashboard-page .property-card{border-radius:14px;box-shadow:none}
.dashboard-page .property-photo{height:175px}
.dashboard-page .portfolio-section .property-card:last-child{display:block}
.dashboard-page .section-heading{gap:12px;flex-wrap:wrap}
.dashboard-page .empty{padding:40px 20px}
@media(max-width:600px){.dashboard-page .dashboard-applications .panel-head h2{font-size:20px}}
@media(max-width:1100px){.dashboard-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-page .dashboard-grid{grid-template-columns:1fr}.dashboard-page .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dashboard-page .dashboard-welcome{padding:16px;flex-wrap:wrap}.dashboard-page .page-heading{flex-wrap:wrap}.dashboard-page .page-heading h1{font-size:22px}.dashboard-page .stats-grid{gap:10px}.dashboard-page .stat-card{padding:14px;min-height:128px}.dashboard-page .stat-value{font-size:24px}.dashboard-page .stat-top{font-size:10px}.dashboard-page .property-grid{grid-template-columns:1fr}.dashboard-page .dashboard-grid{gap:18px}.dashboard-page .panel-head{padding-inline:16px}}
.dashboard-page .chart-card{height:auto;padding-bottom:16px}
@media(max-width:720px){.sidebar:not(.open){visibility:hidden}}

/* Let short pages fit naturally; long content keeps normal document scrolling. */
.main{padding-bottom:calc(var(--active-footer-height,var(--workspace-footer-height)) + env(safe-area-inset-bottom,0px) + 18px)}
.main:not(.dashboard-page):not(.settings-page){padding-top:16px}
.main:not(.dashboard-page)>.page-heading{padding-block:8px;margin-bottom:16px}
.main:not(.dashboard-page) .page-heading h1{margin-bottom:5px}
.main:not(.dashboard-page) .empty{padding:30px 20px}
.main:not(.dashboard-page) .empty .icon{margin-bottom:10px}
.main:not(.dashboard-page) .empty p:last-child{margin-bottom:0}
.grid-toolbar{margin-block:8px;gap:10px}
.grid-pagination{padding-block:8px}
.panel>.grid-pagination{padding-block:8px}
.list-footer{padding-block:11px}
:is(#modal,.lease-detail-popup) .modal-body{padding:16px 20px}
:is(#modal,.lease-detail-popup) .modal-body>p:first-child,#modal .modal-body form>p:first-child{margin-top:0}
:is(#modal,.lease-detail-popup) .modal-body>p:last-child,#modal .modal-body form>p:last-child{margin-bottom:0}
#modal:has(.chat-attachment-selection) .modal-body{padding:0}
@media(max-width:600px){:is(#modal,.lease-detail-popup) .modal-body{padding:14px 16px}#modal:has(.chat-attachment-selection) .modal-body{padding:0}}

/* Workspace overview with an integrated chart and six balanced summary cards. */
.dashboard-page .dashboard-banner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:28px;padding:20px 24px;background:linear-gradient(115deg,var(--hero-from),var(--primary-soft) 45%,var(--hero-to));align-items:center;margin-bottom:18px}
html[data-theme=dark] .dashboard-page .dashboard-banner{background:linear-gradient(115deg,var(--hero-dark-from),var(--primary-soft) 45%,var(--hero-dark-to))}
.dashboard-banner-copy{min-width:0}
.dashboard-page .dashboard-banner-copy h2{font-size:24px;margin:10px 0 18px;overflow-wrap:anywhere}
.dashboard-page .dashboard-banner-chart{background:transparent;min-width:0;width:100%;max-width:560px;justify-self:end}
.dashboard-page .dashboard-banner-chart .dashboard-chart-title{margin:0 0 6px;font-size:13px;line-height:1.3;font-weight:600;color:var(--text);text-align:center}
.dashboard-page .dashboard-banner-chart .panel-head{padding:0;margin:0 0 8px}
.dashboard-page .dashboard-banner-chart .panel-head h2{font-size:13px}
.dashboard-page .dashboard-banner-chart .chart-summary{margin:0 0 6px;gap:10px;flex-wrap:wrap}
.dashboard-page .dashboard-banner-chart .chart-summary strong{font-size:22px}
.dashboard-page .dashboard-banner-chart .chart-container{height:145px;padding:0}
.dashboard-page .dashboard-six-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:20px;align-items:stretch}
.dashboard-page .dashboard-six-cards>.stat-card,.dashboard-page .dashboard-six-cards>.dashboard-mini-card{height:132px;min-height:0;padding:13px;border-radius:12px;overflow:hidden}
.dashboard-page .dashboard-six-cards .stat-top{font-size:10px;gap:6px;min-height:28px;margin-bottom:9px}
.dashboard-page .dashboard-six-cards .stat-icon{width:24px;height:24px;flex-shrink:0}
.dashboard-page .dashboard-six-cards .stat-value{font-size:clamp(18px,1.6vw,25px);margin-bottom:7px;overflow-wrap:anywhere}
.dashboard-page .dashboard-six-cards .stat-caption{font-size:9px;gap:3px}
.dashboard-mini-content{display:flex;flex-direction:column;gap:7px;max-height:68px;overflow:auto;font-size:10px;line-height:1.4}
.dashboard-mini-content>a{display:flex;align-items:center;justify-content:space-between;gap:5px}
.dashboard-mini-content>a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.dashboard-mini-content .icon{width:13px;height:13px}
.dashboard-mini-content a:hover{color:var(--primary)}
.dashboard-bottom-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.dashboard-bottom-row>.panel{height:330px;display:flex;flex-direction:column}
.dashboard-page .dashboard-bottom-row .panel-head{flex-shrink:0;margin-bottom:12px;padding:16px 18px 0}
.dashboard-panel-content{min-height:0;overflow:auto;flex:1}
.dashboard-property-list{padding:0 14px 10px}
.dashboard-property-item{display:flex;align-items:center;gap:12px;width:100%;padding:10px 0;border:0;border-bottom:1px solid var(--border);background:transparent;text-align:start;color:var(--text)}
.dashboard-property-item:last-child{border:0}
.dashboard-property-item:hover{background:var(--primary-soft)}
.dashboard-property-item img{width:64px;height:48px;border-radius:8px;object-fit:cover;flex-shrink:0}
.dashboard-property-copy{flex:1;min-width:0}
.dashboard-property-copy strong,.dashboard-property-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-property-copy strong{font-size:11px;font-weight:600}
.dashboard-property-copy small{font-size:9px;color:var(--muted);margin-top:5px}
.dashboard-property-price{font-size:12px;font-weight:600;color:var(--primary);white-space:nowrap}
.dashboard-property-price small{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:5px}
.dashboard-property-item>.icon{width:14px}
@media(max-width:1100px){.dashboard-page .dashboard-six-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-bottom-row{grid-template-columns:1fr}}
@media(max-width:600px){.dashboard-page .dashboard-banner{grid-template-columns:1fr;padding:16px;gap:18px}.dashboard-page .dashboard-banner-copy h2{font-size:20px;margin-block:6px 10px}.dashboard-page .dashboard-six-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-property-item{gap:8px}.dashboard-property-item img{width:46px;height:42px}.dashboard-property-price{font-size:10px}}
html[data-color] .dashboard-page .dashboard-banner{background:linear-gradient(115deg,color-mix(in srgb,var(--primary) 24%,var(--card)),color-mix(in srgb,#efaa9c 24%,var(--card)) 48%,color-mix(in srgb,#40c9cc 27%,var(--card)))}
html[data-color][data-theme=dark] .dashboard-page .dashboard-banner{background:linear-gradient(115deg,color-mix(in srgb,var(--primary) 35%,var(--card)),color-mix(in srgb,#9c4267 24%,var(--card)) 48%,color-mix(in srgb,#167d86 32%,var(--card)))}

/* Compact navigation so common laptop heights fit the complete menu. */
.sidebar-scroll{padding-top:18px}
.sidebar .workspace-switch{margin:16px 0 14px;padding:9px 10px}
.sidebar .nav-item{min-height:34px;height:auto;padding-block:6px;margin-block:1px;gap:10px;line-height:1.4}
.sidebar .nav-label{margin-bottom:6px}
.sidebar .nav-divider{margin-block:10px}
.sidebar-bottom{padding-top:10px}
.sidebar .plan-card{padding:10px 12px;margin-bottom:10px}
.sidebar .plan-card p{margin:5px 0 8px;line-height:1.4}
@media(max-height:800px){
 .sidebar-scroll{padding-top:12px}
 .sidebar .workspace-switch{margin-block:12px}
 .sidebar .nav-item{min-height:32px;padding-block:5px}
 .sidebar .plan-card p{display:none}
 .sidebar .plan-card .btn{margin-top:8px}
}

/* Compact overview banner with high-contrast graph labels. */
.dashboard-page .dashboard-banner{padding:12px 22px;gap:22px;min-height:0}
.dashboard-page .dashboard-banner-copy h2{font-size:18px;margin:4px 0 6px}
.dashboard-page .dashboard-banner-copy .btn{min-height:24px;padding-block:3px}
.dashboard-page .dashboard-banner-chart .chart-container{height:80px}
.dashboard-page .dashboard-banner-chart svg text{fill:var(--text);font-weight:600}
@media(max-width:600px){.dashboard-page .dashboard-banner{padding:14px 16px;gap:10px}.dashboard-page .dashboard-banner-chart .chart-container{height:80px}}

/* Compact payment totals without changing other summary cards. */
.payment-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.payment-summary .stat-card{min-height:0;padding:12px 16px}
.payment-summary .stat-top{margin-bottom:6px;gap:8px}
.payment-summary .stat-icon{width:25px;height:25px}
.payment-summary .stat-icon .icon{width:15px;height:15px}
.payment-summary .stat-value{font-size:24px;line-height:1.2;margin-bottom:5px;overflow-wrap:anywhere}
.payment-summary .stat-caption{line-height:1.4}
@media(max-width:600px){.payment-summary{grid-template-columns:1fr;gap:10px}.payment-summary .stat-card{padding:10px 14px}}

/* Fit the dashboard overview into standard laptop viewports. */
@media(min-width:1101px){
 .main.dashboard-page{padding-top:12px;padding-bottom:calc(var(--active-footer-height,var(--workspace-footer-height)) + env(safe-area-inset-bottom,0px) + 10px)}
 .dashboard-page>.page-heading{padding-block:6px;margin-bottom:12px}
 .dashboard-page .page-heading h1{font-size:23px;margin-bottom:4px}
 .dashboard-page .dashboard-banner{padding:10px 18px;margin-bottom:12px}
 .dashboard-page .dashboard-six-cards{gap:10px;margin-bottom:12px}
 .dashboard-page .dashboard-six-cards>.stat-card,.dashboard-page .dashboard-six-cards>.dashboard-mini-card{height:116px;padding:10px 12px}
 .dashboard-page .dashboard-six-cards .stat-top{margin-bottom:6px}
 .dashboard-bottom-row{gap:14px}
 .dashboard-bottom-row>.panel{height:clamp(180px,calc(100dvh - 440px),300px)}
 .dashboard-page .dashboard-bottom-row .panel-head{padding:12px 14px 0;margin-bottom:8px}
.dashboard-page .dashboard-bottom-row .data-table td{padding-block:6px}
 .dashboard-property-item{padding-block:8px}
}

/* Keep authenticated pages within the viewport; scroll only their content. */
.shell>.main{height:calc(100dvh - var(--page-topbar-height) - var(--active-footer-height,var(--workspace-footer-height)) - env(safe-area-inset-bottom,0px));min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:12px;padding-bottom:12px}
.shell>.main>.page-heading{position:static;flex-shrink:0;margin-bottom:12px;padding-block:6px}
.page-content{min-height:0;min-width:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:8px;scroll-padding-block:12px}
.page-content :is(input,select,textarea,button,canvas){scroll-margin-block:12px}
@media(max-width:720px){.shell>.main{padding-top:10px;padding-bottom:10px}.shell>.main>.page-heading{margin-bottom:10px}}
@media print{.shell>.main{height:auto;display:block;overflow:visible}.page-content{overflow:visible;height:auto}}

/* Non-production environment marker; reduced-motion users get a steady label. */
.environment-label{font-size:12px;font-weight:800;color:var(--text);animation:environment-blink 1.8s ease-in-out infinite}
.environment-footer{text-align:center;margin-top:24px;padding:16px 0;border-top:1px solid var(--border)}
.footer>.environment-label{text-align:center;color:inherit}
@keyframes environment-blink{0%,100%{opacity:1}50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.environment-label{animation:none}}

.auth-recovery-link{text-align:end;margin:10px 0 18px}.auth-recovery-link a{color:var(--primary);font-weight:600}.login-captcha{margin:18px 0;padding:14px;border:1px solid var(--border);border-radius:10px}.login-captcha[hidden]{display:none}.captcha-image-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.captcha-image-row img{max-width:100%;height:auto;border-radius:6px}.login-captcha .field{margin-top:12px}.login-captcha small{color:var(--muted)}.form-success:not(:empty){padding:12px;border:1px solid var(--border);border-radius:8px;color:var(--text)}

/* Keep copyright, help and the environment together on one line. */
:root{--active-footer-height:48px}
html[data-color] .footer{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;white-space:nowrap;height:calc(var(--active-footer-height) + env(safe-area-inset-bottom,0px))}
html[data-color] .footer>.footer-links{display:flex;align-items:center;gap:8px;text-align:end;flex-shrink:0}
.footer .environment-label{line-height:20px;color:inherit}
.footer .btn.ghost{min-height:30px;padding:3px 0;white-space:nowrap}
@media(max-width:1100px){.footer .footer-extra,.footer>.footer-workspace{display:none}}
@media(max-width:720px){
 html[data-color] .footer{padding-inline:12px;font-size:10px;gap:8px}
 .footer .btn.ghost{font-size:10px}
 .footer .environment-label{font-size:10px}
 html[data-color] .footer>.footer-links{display:flex;gap:6px}
}
/* The dashboard application action is a text link, including hover/dark themes. */
html .dashboard-page .dashboard-banner-copy .btn.ghost,
html[data-theme=dark] .dashboard-page .dashboard-banner-copy .btn.ghost:is(:hover,:focus-visible){background:transparent;border-color:transparent;box-shadow:none;color:var(--text)}

.property-media-gallery figure { position:relative; }
.property-media-remove { position:absolute; top:8px; right:8px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #ffffff50; border-radius:50%; background:#242033df; color:#fff; box-shadow:0 2px 8px #0003; opacity:0; pointer-events:none; transition:opacity .15s ease,background .15s ease; }
.property-media-gallery figure:hover .property-media-remove,
.property-media-gallery figure:focus-within .property-media-remove { opacity:1; pointer-events:auto; }
.property-media-remove:hover { background:#b42335; }
@media(hover:none),(pointer:coarse){.property-media-remove{opacity:1;pointer-events:auto}}

/* A consistent calendar for every date field, including fields inside dialogs. */
.date-input { display:flex; position:relative; align-items:center; width:100%; min-width:0; }
.field .date-input input { width:100%; min-width:0; padding-inline-end:48px; }
.date-input input::-webkit-calendar-picker-indicator { display:none; }
.date-trigger { position:absolute; inset-inline-end:7px; display:grid; place-items:center; width:34px; height:34px; border:0; border-radius:9px; background:var(--primary-soft); color:var(--primary); }
.date-trigger svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.date-input:has(input:disabled) .date-trigger,.date-input:has(input[readonly]) .date-trigger { display:none; }
.date-picker { position:fixed; inset:auto; margin:0; padding:16px; width:336px; max-width:calc(100vw - 16px); max-height:calc(100dvh - 16px); overflow:auto; z-index:10000; border:1px solid var(--border); border-radius:18px; background:var(--card); color:var(--text); box-shadow:0 16px 56px #17132b30; }
.date-picker-heading { display:grid; grid-template-columns:32px minmax(0,1fr) 76px 32px; gap:5px; align-items:center; }
.date-picker button { border:0; background:transparent; border-radius:9px; font:inherit; color:var(--text); }
.date-picker-heading>button { height:36px; font-size:25px; }
.date-picker .date-month,.date-picker .date-year { padding:6px 3px; height:36px; width:100%; min-width:0; color:var(--text); background:var(--bg); border:1px solid var(--border); border-radius:8px; font:inherit; font-weight:600; }
.date-picker-caption { font-size:12px; color:var(--muted); margin:14px 0 8px; }
.date-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
.date-weekday { text-align:center; padding:6px 0; font-size:10px; font-weight:600; color:var(--muted); overflow:hidden; }
.date-grid button { height:37px; font-size:13px; }
.date-picker button:hover:not(:disabled) { background:var(--primary-soft); color:var(--primary); }
.date-grid button.is-today { box-shadow:inset 0 0 0 1px var(--primary); color:var(--primary); font-weight:700; }
.date-grid button[aria-pressed=true],.date-grid button[aria-pressed=true]:hover { background:var(--button-gradient,none) var(--primary); color:#fff; font-weight:700; }
.date-picker button:disabled { opacity:.3; }
.date-picker-footer { display:flex; gap:6px; border-top:1px solid var(--border); margin-top:14px; padding-top:10px; }
.date-picker-footer button { padding:9px 10px; font-size:12px; font-weight:600; color:var(--primary); }
.date-picker-footer button:last-child { margin-inline-start:auto; color:var(--muted); }

/* Keep progress notifications above open modal dialogs. */
#toast[popover]{margin:0;top:auto;border:0;width:max-content}

.table-wrap:has(> .dropdown-grid){overflow:visible}
.table-wrap .dropdown-grid{min-width:0;table-layout:fixed;width:100%}
.dropdown-grid th,.dropdown-grid td{white-space:normal;overflow-wrap:anywhere}
.dropdown-grid th:first-child,.dropdown-grid td:first-child{white-space:nowrap!important;overflow-wrap:normal;word-break:normal}
.dropdown-grid th:nth-child(1){width:32%}
.dropdown-grid th:nth-child(2){width:18%}
.dropdown-grid th:nth-child(3){width:20%}
.dropdown-grid th:nth-child(4){width:8%}
.dropdown-grid th:nth-child(5){width:10%}
.dropdown-grid th:nth-child(6){width:12%}
@media(max-width:720px){
 .dropdown-grid thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .dropdown-grid,.dropdown-grid tbody,.dropdown-grid tr{display:block;width:100%}
 .dropdown-grid tr{padding:12px;border-bottom:1px solid var(--border)}
 .data-table.dropdown-grid td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;padding:6px 0;border:0}
 .dropdown-grid td::before{content:attr(data-label);font-weight:600;color:var(--muted);font-size:11px}
 .dropdown-grid td[colspan]{display:block}.dropdown-grid td[colspan]::before{display:none}
}

/* Account role sits above the sidebar wordmark in every color theme. */
.sidebar-brand-name{position:relative;display:inline-block}
.sidebar .sidebar-role-badge{position:absolute;inset-block-start:-9px;inset-inline-end:-19px;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#6d28d9;color:#fff;font-size:11px;font-weight:750;line-height:1;letter-spacing:0;vertical-align:baseline}

/* Record columns share the full table width; actions stay at the right edge. */
.table-wrap .data-table.record-table{width:100%;table-layout:fixed}
.data-table.record-table th,.data-table.record-table td{white-space:normal;overflow-wrap:anywhere}
.data-table.record-table .person,.data-table.record-table .table-property{min-width:0}
.data-table.record-table .record-actions{text-align:right}
.data-table.record-table .record-actions>:is(.actions,.workspace-row-actions,.subscription-row-actions){justify-content:flex-end;flex-wrap:wrap}
.data-table.record-table .record-actions .table-action{white-space:normal;text-align:center}
.data-table.record-table .record-actions::before{text-align:left}
.data-table.team-grid .team-member-name,.data-table.team-grid .team-member-email{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
@media(min-width:721px){.table-wrap .data-table.record-table{min-width:0}}

.dashboard-page .rent-chart-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font-size:11px;line-height:1.4;color:var(--text)}
.rent-chart-legend span{display:inline-flex;align-items:center;gap:6px}
.rent-chart-legend i{display:inline-block;width:24px;height:9px;border-radius:3px;flex-shrink:0}
.rent-legend-collected{background:linear-gradient(90deg,#7c3aed 0% 16.67%,#0284c7 16.67% 33.33%,#0d9488 33.33% 50%,#d97706 50% 66.67%,#e11d48 66.67% 83.33%,#4f46e5 83.33% 100%)}
.rent-legend-due{background:linear-gradient(90deg,#c4b5fd 0% 16.67%,#7dd3fc 16.67% 33.33%,#5eead4 33.33% 50%,#fcd34d 50% 66.67%,#fda4af 66.67% 83.33%,#a5b4fc 83.33% 100%)}


.property-rent-details{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.property-availability{font-size:12px;line-height:1.5;color:var(--muted)}
.property-availability b{font-weight:600;color:var(--text)}
.property-preview-owners{font-size:12px;line-height:1.5;color:var(--muted)}
.property-preview-owners b{font-weight:600;color:var(--text)}
.modal-actions .property-preview-owners{margin-right:auto;align-self:center}
.property-detail-information .detail-values>.property-detail-owners{display:flex;flex-basis:100%;align-items:baseline;gap:8px;margin-top:2px}
.property-detail-owners small{font-size:13px;color:var(--muted)}

/* Shared record-table surface, matching the Properties grid. */
.workspace-panel{border-color:color-mix(in srgb,var(--text) 20%,var(--card));}
.data-table.record-table th{font-weight:600;color:var(--text);padding:6px 10px;background:var(--primary-soft)}
.data-table.record-table td{padding:6px 10px;background:var(--card)}
.data-table.record-table th+th,.data-table.record-table td+td{border-left:1px solid var(--border)}
.panel:has(> .table-wrap > .subscription-grid)>.panel-head{margin-bottom:0}
.panel:has(> .table-wrap > .subscription-grid)>.grid-toolbar{margin:0;padding:12px 16px;background:var(--primary-soft)}
.workspace-panel .workspace-grid tr.workspace-selected td:first-child{box-shadow:inset 3px 0 0 var(--primary)}
.data-table.record-table tbody tr:hover td{background:var(--primary-soft)}
/* The Properties-group table has many columns; keep metadata and actions readable. */
.table-wrap .data-table.workspace-grid{min-width:1250px;table-layout:auto;width:100%}
.workspace-grid th:nth-child(7),.workspace-grid td:nth-child(7){width:145px;min-width:145px}
.workspace-grid th:nth-child(8),.workspace-grid td:nth-child(8){width:190px;min-width:190px}
.workspace-grid th:nth-child(9),.workspace-grid td:nth-child(9){width:190px;min-width:190px}
.workspace-grid th[data-grid-metadata] .grid-sort-button{white-space:nowrap}
.data-table.record-table thead tr:first-child th:last-child,.data-table.record-table td.record-actions{white-space:nowrap;width:max-content;min-width:max-content}
.data-table.record-table td.record-actions>:is(.actions,.workspace-row-actions,.subscription-row-actions){display:flex;flex-wrap:nowrap!important;white-space:nowrap;min-width:max-content}
.data-table.record-table td.record-actions :is(.icon-btn,.table-action){flex:0 0 auto;white-space:nowrap}
.data-table.record-table thead th,.data-table.record-table thead th .grid-sort-button{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.data-table.record-table thead th .grid-sort-button{max-width:none;flex-wrap:nowrap}
.user-subscriptions-panel .subscription-grid thead th:nth-child(4){min-width:175px;white-space:normal;overflow-wrap:anywhere}
.user-subscriptions-panel .subscription-grid thead th:nth-child(4) .grid-sort-button{max-width:100%;white-space:normal;flex-wrap:wrap}
.status-value-link{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:9px;padding:8px 12px;background:#e9f5ef;color:#4b9180;font:inherit;font-weight:600;white-space:nowrap;cursor:pointer}
.status-value-link:hover{filter:brightness(.97)}
.status-value-link.is-inactive{background:#f2f1f6;color:var(--muted)}
.status-value-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:currentColor;opacity:.8}
.sidebar .nav-item[data-action="communication"]{width:100%;border:0;background:transparent;text-align:start;font-family:inherit;font-size:12px;font-weight:500;cursor:pointer}
.workspace-grid-summary{padding:11px 16px;border-top:1px solid var(--border);background:var(--card);font-size:12px;color:var(--muted)}
.grid-sort-button{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:inherit;text-align:left;cursor:pointer}.grid-sort-indicator{color:var(--primary);font-size:.9em;min-width:1em;text-align:center}.grid-sort-button:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:3px}
/* Grid headings keep their text and sorting interaction without decorative arrows. */
.data-table thead th::before,.data-table thead th::after,.grid-sort-button::before,.grid-sort-button::after{content:none!important;display:none!important}
.data-table thead th>svg,.data-table thead th>.icon,.grid-sort-button>svg,.grid-sort-button>.icon{display:none!important}
.grid-sort-button{direction:ltr}
.grid-sort-indicator{display:inline-block!important;content:normal!important}
.workspace-owner-list{display:flex;flex-direction:column;gap:5px;align-items:flex-start}.workspace-owner-chip{display:flex;align-items:center;gap:6px;max-width:100%}.workspace-owner-chip .icon-btn{width:26px;height:26px;flex:none}
.workspace-help{font-size:12px;line-height:1.6}
@media(max-width:720px){
 .workspace-panel .workspace-grid td{padding:6px 0;background:transparent}
 .workspace-panel .workspace-grid td+td{border-left:0}
 .workspace-panel .workspace-grid tr.workspace-selected td:first-child{box-shadow:none}
}

.contact-footer-link{border:0;background:transparent;color:var(--primary);padding:4px 0;font:inherit;white-space:nowrap;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.contact-public-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-inline:20px}
.contact-public-footer .contact-footer-link{margin-inline-start:auto}
.contact-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:24px}
.contact-details{font-size:13px;line-height:1.7;overflow-wrap:anywhere}

.contact-details address{font-style:normal}
#contact-form{display:grid;gap:12px}
@media(max-width:600px){.contact-layout{grid-template-columns:minmax(0,1fr);gap:12px}.footer .footer-workspace{display:none}.footer .contact-footer-link{font-size:10px}}

#property-form [data-media-key] { cursor:grab; }
.property-media-moves { position:absolute; bottom:8px; right:8px; display:flex; gap:4px; }
.property-media-moves button { border:0; border-radius:6px; background:#242033df; color:white; padding:6px 10px; cursor:pointer; }
.property-media-moves button { display:inline-flex; align-items:center; justify-content:center; padding:6px 8px; }
.property-media-moves button .icon { width:16px; height:16px; }
.property-media-moves button:disabled { opacity:.4; cursor:default; }
.property-thumbnail-label { position:absolute; top:8px; left:8px; background:#242033df; color:white; border-radius:6px; padding:4px 8px; font-size:12px; pointer-events:none; }

.property-media-gallery img, img.detail-hero { cursor:zoom-in; }
dialog.photo-viewer { width:calc(100vw - 32px); max-width:1400px; height:calc(100dvh - 32px); max-height:100dvh; padding:0; border:1px solid var(--border); border-radius:16px; background:var(--card); color:var(--text); overflow:hidden; }
dialog.photo-viewer[open] { display:flex; flex-direction:column; }
.photo-viewer::backdrop { background:#111c; }
.photo-viewer-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; flex-wrap:wrap; border-bottom:1px solid var(--border); }
.photo-viewer-controls { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.photo-viewer-controls button { padding:8px 12px; border:1px solid var(--border); border-radius:8px; background:var(--bg); color:inherit; cursor:pointer; }
.photo-viewer-controls output { min-width:45px; text-align:center; font-size:13px; }
.photo-viewer-viewport { flex:1; min-height:0; overflow:auto; padding:16px; background:#171923; }
.photo-viewer-viewport img { display:block; max-width:none; max-height:none; margin:auto; object-fit:contain; }
.photo-viewer-error { padding:12px; }
.photo-viewer-viewport.is-pannable { cursor:grab; touch-action:none; user-select:none; }
.photo-viewer-viewport.is-panning { cursor:grabbing; }

/* Property editor: media on the left, listing details on the right. */
#modal:has(#property-form) { width:min(1240px,calc(100% - 32px)); }
.property-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,4fr); gap:24px; align-items:start; }
.property-editor-layout > * { min-width:0; }
.property-editor-layout .property-media-panel { margin:0; padding:12px; }
.property-media-panel .field { min-width:0; }
.property-media-panel input[type="file"] { width:100%; min-width:0; padding:8px 0; font-size:11px; }
.property-media-panel p,.property-media-panel .property-upload-summary { font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.property-media-panel .property-media-gallery { grid-template-columns:minmax(0,1fr); gap:10px; }
.property-media-panel .property-media-gallery img,.property-media-panel .property-media-gallery video { height:150px; }
.property-editor-details > p:first-child { margin-top:0; }
@media(max-width:800px){
 .property-editor-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
 .property-media-panel .property-media-gallery { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); }
}

/* Let the dialog scroll as one surface so the property details panel does not. */
@media(min-width:801px){
 #modal:has(#property-form) { height:calc(100dvh - 48px); }
 #modal:has(#property-form) .modal-body { overflow-y:auto; }
 #property-form { min-width:0; }
 #property-form .property-editor-layout { min-height:auto; grid-template-rows:none; align-items:start; overflow:visible; }
 #property-form .property-media-panel,
 #property-form .property-editor-details { min-height:auto; overflow:visible; }
#property-form .property-editor-details { padding-inline:8px; padding-bottom:12px; }
}

/* Property preview mirrors the editor's media/details split. */
#modal:has(.property-detail-layout) { width:min(1480px,calc(100% - 32px))!important; height:calc(100dvh - 48px); }
#modal:has(.property-detail-layout) .modal-body { display:flex; overflow:hidden; }
.property-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,4fr); grid-template-rows:minmax(0,1fr); gap:24px; flex:1; min-width:0; min-height:0; }
.property-detail-media,.property-detail-information { min-width:0; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain; scrollbar-gutter:stable; padding-right:8px; }
.property-detail-media .property-media-gallery { grid-template-columns:minmax(0,1fr); margin:0; }
.property-detail-media .property-media-gallery img,.property-detail-media .property-media-gallery video { height:150px; }
.property-detail-information .detail-hero { width:100%; height:320px; object-fit:contain; object-position:center top; background:var(--bg); }
.property-detail-information .detail-values { display:flex; flex-wrap:wrap; gap:20px; }
@media(max-width:800px){
 #modal:has(.property-detail-layout) { height:auto; }
 #modal:has(.property-detail-layout) .modal-body { display:block; overflow:auto; }
 .property-detail-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; gap:20px; }
 .property-detail-media,.property-detail-information { overflow:visible; padding-right:0; scrollbar-gutter:auto; }
 .property-detail-media .property-media-gallery { grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }
 .property-detail-information .detail-hero { height:220px; }
}

.property-detail-media img[data-property-preview] { cursor:pointer; }
.property-detail-media img.is-selected { outline:3px solid var(--primary); outline-offset:-3px; }
.property-detail-information .detail-heading { flex-wrap:wrap; }
.property-detail-information .detail-heading > div { min-width:0; }
.property-detail-information .property-address { white-space:normal; overflow:visible; overflow-wrap:anywhere; }
.property-detail-section { margin:20px 0; overflow-wrap:anywhere; }
.property-detail-section h4 { margin:0 0 10px; font-size:14px; }
.property-detail-section .property-full-description { white-space:pre-wrap; overflow:visible; max-height:none; line-height:1.7; }
.property-detail-information { padding-bottom:24px; }
.property-detail-information .chips { flex-wrap:wrap; overflow:visible; }

.property-detail-title { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.property-detail-title h3 { margin:0; }
.property-detail-inline { display:flex; align-items:baseline; gap:8px 12px; flex-wrap:wrap; }
.property-detail-inline h4,.property-detail-inline p,.property-detail-inline .chips { margin:0; }
.property-detail-inline h4 { flex-shrink:0; }
.property-detail-inline .chips { display:contents; }
.property-detail-inline .property-utility-bills { color:var(--muted); }

#modal:has(.help-center){width:min(1160px,calc(100% - 32px))!important;height:calc(100dvh - 48px)}
#modal:has(.help-center) .modal-body{display:flex;overflow:hidden}
.help-center{display:flex;flex-direction:column;min-height:0;min-width:0;width:100%}
.help-tools{display:flex;gap:16px;align-items:end}.help-tools>.field:first-child{flex:1}.help-tools .field{margin:0;min-width:0}
.help-note,.help-updated{font-size:12px;color:var(--muted);margin:10px 0}.help-role-label{font-size:13px}
.help-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:20px;flex:1;min-height:0}
.help-topics,.help-article{overflow:auto;min-height:0;min-width:0;overscroll-behavior:contain;padding:0 10px 12px 0}
.help-topics button{display:block;width:100%;text-align:start;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:12px;margin-bottom:8px;cursor:pointer}
.help-topics button[aria-current=true]{border-color:var(--primary);background:var(--primary-soft)}
.help-topics button span{display:block;margin-top:6px;font-size:12px;color:var(--muted)}
.help-article h3{margin-top:0}.help-article p{line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.help-question{color:var(--primary);font-weight:600}
.help-table-wrap{overflow:auto}.help-article table{width:100%;border-collapse:collapse;font-size:13px}.help-article th,.help-article td{padding:10px;text-align:start;border:1px solid var(--border);vertical-align:top}
.help-topic-navigation{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.help-topic-navigation button{white-space:normal;text-align:start}
@media(max-width:700px){.help-tools{align-items:stretch;flex-direction:column;gap:8px}.help-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(80px,30%) minmax(0,1fr);gap:12px}.help-topics button{padding:8px}.help-center .notice{font-size:11px;padding:8px}.help-note{margin:6px 0}}

/* Role guide stays beside the Help Center title; screenshots keep their aspect ratio. */
#modal:has(.help-center) .modal-head{justify-content:flex-start;gap:16px;flex-wrap:wrap}
#modal:has(.help-center) .modal-head>h2{flex:0 0 auto}
#modal:has(.help-center) .modal-head>.icon-btn{margin:0;flex-shrink:0}
.help-header-guide{min-width:0;margin-inline-start:auto}.help-header-guide .field{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;margin:0;font-size:12px;white-space:nowrap}
.help-header-guide select{width:auto;max-width:200px;padding:7px 28px 7px 10px}
.help-header-guide .help-role-label{margin:0;font-weight:600;color:var(--primary)}
.help-figure{margin:20px 0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--bg)}
.help-figure a{display:block;cursor:zoom-in}.help-figure img{display:block;width:100%;height:auto}
.help-figure figcaption{padding:10px 12px;font-size:12px;color:var(--muted);line-height:1.5}
@media(max-width:700px){#modal:has(.help-center) .modal-head{gap:8px}.help-header-guide .field{gap:4px}.help-header-guide select{max-width:150px}}

.ask-ai-button{gap:6px;white-space:nowrap}.topbar .ask-ai-button{padding:8px 10px;font-size:12px}.ask-ai-button .icon{flex-shrink:0}

/* Keep help and contact readable against the selected frame palette. */
html[data-color] .topbar .ask-ai-button,
html[data-color] .footer .contact-footer-link { color:var(--frame-text,#fff); }
.topbar-actions .ask-ai-button { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; }
.topbar .ask-ai-button:hover,.footer .contact-footer-link:hover { background:var(--frame-border,#ffffff26); }
.footer .contact-footer-link { display:inline-flex; flex-shrink:0; align-items:center; min-height:30px; }
@media(max-width:720px){
 .topbar-actions .help-button { display:inline-flex; padding:6px; font-size:11px; }
 .topbar .breadcrumb > span,.topbar .breadcrumb > .icon,.topbar-separator { display:none; }
 .topbar-actions { min-width:0; flex:1; justify-content:flex-end; }
 .topbar .ask-ai-button .icon { width:17px; height:17px; }
 .topbar .ask-ai-button span { max-width:100px; white-space:normal; }
 .footer > span:first-child { flex:1; overflow:hidden; text-overflow:ellipsis; }
}

/* Readable grid type without changing column order or pagination. */
.data-table.record-table { font-size:14px; line-height:1.5; }
.data-table.record-table th { font-size:13px; }
.data-table.record-table td { font-size:14px; }
.data-table.record-table :is(.person strong,.table-property strong) { font-size:14px; }
.data-table.record-table :is(small,.badge,.person small,.table-property small),.grid-toolbar,.grid-pagination { font-size:12px; }
.startup-error { max-width:720px; margin:10vh auto; padding:24px; text-align:center; }
.startup-error>img { display:block; margin:0 auto 12px; object-fit:contain; }
.startup-error .empty { padding:20px; }

#modal[open].workspace-dialog:has(#workspace-form) { width:min(1120px,calc(100% - 32px))!important; }
#modal:has(#workspace-form) .workspace-modal-title { flex:1 0 auto; }
#modal:has(#workspace-form) #modal-title { white-space:nowrap; overflow-wrap:normal; flex:none; }
#modal:has(#workspace-form) .modal-header-actions .btn { white-space:nowrap; }
@media(max-width:600px){
 #modal:has(#workspace-form) .workspace-modal-title { flex-basis:100%; }
 #modal:has(#workspace-form) .modal-header-actions { justify-content:flex-start; margin-inline-start:0; }
}
.country-filter { min-width:180px; margin:0; }
.country-filter select { max-width:280px; }
.posts-filters .country-filter { display:flex; flex-direction:row; align-items:center; gap:10px; min-width:0; max-width:100%; }
.posts-filters .country-filter > span { flex-shrink:0; }
.posts-filters .country-filter select { width:220px; min-width:0; }
.property-detail-section .panel-head { padding:0 0 12px; }
#modal .modal-header-actions .popup-cancel { order:100; margin-inline-start:auto; }

.property-filter-controls { display:flex; align-items:flex-end; gap:12px; margin-inline-start:auto; flex-wrap:wrap; }
.property-filter-controls .field { margin:0; min-width:180px; }
.rentalunit-filter-controls .field { display:flex; flex-direction:row; align-items:center; gap:10px; min-width:0; max-width:100%; }
.rentalunit-filter-controls .field > span { flex-shrink:0; }
.property-filter-controls.rentalunit-filter-controls select { width:220px; min-width:0; }
.property-filter-controls select { width:100%; min-height:44px; padding:11px 12px; border:1px solid var(--border); border-radius:9px; background:var(--card); color:var(--text); font:inherit; }

.dropdown-heading-controls .country-filter { width:280px; max-width:100%; }
.dropdown-heading-controls > .btn { min-height:44px; white-space:nowrap; }

html[data-custom-colors] body { background:var(--custom-page); }
html[data-custom-colors] #main > .page-content { --text:var(--custom-text); color:var(--custom-text); }
html[data-custom-colors] :is(.topbar,.public-header) { background:var(--custom-header); --frame-bg:var(--custom-header); --frame-text:var(--custom-header-text); color:var(--custom-header-text); }
html[data-custom-colors] :is(.sidebar,.sidebar-footer) { background:var(--custom-sidebar); --frame-bg:var(--custom-sidebar); --frame-text:var(--custom-sidebar-text); color:var(--custom-sidebar-text); }
html[data-custom-colors] .footer { background:var(--custom-footer); --frame-bg:var(--custom-footer); --frame-text:var(--custom-footer-text); color:var(--custom-footer-text); }
/* Match the shared action-button selectors so preset and hover rules cannot override custom colors. */
html[data-custom-colors] :is(.btn:not(.danger):not(.ghost):not(.chat-sound-button),.table-action,.theme-option,.color-option),
html[data-custom-colors] :is(.btn:not(.danger):not(.ghost):not(.chat-sound-button),.table-action,.theme-option,.color-option):is(:hover,:focus-visible) {
 background:var(--custom-button);
 border-color:var(--custom-button);
 color:var(--custom-button-text);
}
#custom-colors-form input[type=color] { width:100%; height:44px; padding:4px; cursor:pointer; }

/* Keep the 3px focus outline and 3px offset inside the scrolling page. */
.page-content > .filters { padding-inline:8px; }
.page-content > .filters .filter-controls { max-width:100%; }

.post-property-preview { display:flex; align-items:center; gap:16px; margin:16px 0 24px; }
.post-property-preview img { width:100px; height:76px; object-fit:contain; background:#eef0f5; border-radius:10px; flex-shrink:0; }
.post-property-address { margin:0; overflow-wrap:anywhere; }
dialog .btn { min-height:44px; font-size:14px; padding:11px 18px; }
dialog .icon-btn { min-width:44px; min-height:44px; }
#modal .modal-header-actions { flex-wrap:wrap; gap:10px; }
#modal .modal-header-actions .btn { font-size:14px; min-height:44px; white-space:normal; }
@media(max-width:600px){
 #modal .modal-head { flex-wrap:wrap; }
 #modal .modal-header-actions { flex-basis:100%; }
 .post-property-preview img { width:80px; height:64px; }
}

.property-card .property-info { font-size:14px; }
.heading-actions .date-button.btn { display:inline-flex; min-height:0; padding:0; border:0; background:transparent; box-shadow:none; color:var(--muted); font-size:12px; font-weight:500; }
.heading-actions .date-button.btn:hover { border-color:transparent; background:transparent; color:var(--primary); }
.heading-actions .date-button.btn .icon { display:none; }
.dashboard-page .page-heading h1 { color:var(--primary); }
.dashboard-page .page-heading .dashboard-date { all:unset; display:inline-block; color:var(--primary); cursor:pointer; font:inherit; }
.dashboard-page .page-heading .dashboard-date:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.dashboard-page .page-heading .dashboard-date-static { cursor:default; }
.property-grid .property-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;background:#eef0f5}
.property-card .property-info h3 { font-size:17px; }
.property-card .property-address,.property-card .property-features { font-size:14px; line-height:1.5; }
.property-card .property-features { flex-wrap:wrap; gap:10px 16px; color:var(--muted); }
.property-card .property-features .icon { width:17px; height:17px; }
.property-features .preview-amenities { display:block; overflow-wrap:anywhere; }
.property-detail-information { font-size:15px; line-height:1.6; }
.property-detail-information .property-address,.property-detail-information .detail-values { font-size:15px; }
.property-detail-information .detail-values small { font-size:13px; }
.property-detail-information .detail-values > div { min-width:110px; max-width:100%; }
.property-detail-information .detail-values .preview-amenities { flex:1 1 220px; overflow-wrap:anywhere; }
.property-detail-information .property-detail-section h4 { font-size:16px; }

.property-name-location { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.property-name-location > span { font-size:14px; font-weight:400; }
.property-detail-title .property-name-location { flex:1; margin:0; }
.property-detail-information .detail-heading > div:first-child { min-width:0; flex:1; }
.property-features .preview-parking-lease,.detail-values .preview-parking-lease { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.preview-parking-lease > span { display:inline-flex; align-items:center; gap:6px; }
.property-features .preview-amenities,.detail-values .preview-amenities { display:flex; flex-wrap:wrap; gap:6px; }
.property-features .preview-amenities .chip,.detail-values .preview-amenities .chip { font-size:13px; line-height:1.4; }

.property-rental-summary { display:flex; align-items:center; gap:16px; flex-wrap:nowrap; white-space:nowrap; overflow-x:auto; padding-block:6px; }
.property-rental-summary > * { flex-shrink:0; }
.property-rental-summary > strong { font-size:20px; color:var(--primary); }
.property-rental-summary > strong small { font-size:13px; font-weight:400; }
.property-detail-information .detail-values .property-amenities-utilities { display:flex; align-items:flex-start; gap:20px; flex:1 1 100%; flex-wrap:wrap; }
.property-amenities-utilities .preview-amenities { min-width:0; }
.detail-values > .property-utility-summary { display:flex; align-items:center; flex:1 1 100%; flex-wrap:wrap; gap:10px; margin:0; }
.detail-values > .property-utility-summary > small { margin:0; white-space:nowrap; }
.property-utility-value { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.property-utility-summary .property-utility-bills { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.property-card .chip,.property-detail-information .chip { background:color-mix(in srgb,var(--primary) 18%,var(--card)); border-color:color-mix(in srgb,var(--primary) 32%,var(--border)); color:var(--text); font-size:13px; line-height:1.4; }


.property-detail-information .property-preview-heading { display:flex; flex-wrap:nowrap; align-items:center; gap:16px; overflow-x:auto; }
.property-preview-heading .property-detail-title { flex:1 1 auto; min-width:150px; margin:0; }
.property-preview-heading .property-rental-summary { flex:0 0 auto; overflow:visible; }

.property-card .chip,.property-detail-information .chip { border-radius:999px; }

.property-detail-information .property-name-location > span { font-size:16px; }
.property-detail-information .property-rental-summary .property-availability { font-size:15px; }
.property-detail-information .property-rental-summary .property-preview-owners { font-size:15px; }
.property-detail-information .property-rental-summary .badge { font-size:14px; padding:6px 12px; }

/* Title-case English action labels without changing translated text or record names. */
html[lang="en"] :is(.btn,.table-action,.modal-header-actions .icon-btn) { text-transform:capitalize; }

.public-main .browse-toolbar { display:flex; align-items:center; gap:16px; }
.public-header nav .country-filter { min-width:0; flex-shrink:1; }
.public-header nav .country-filter select { width:200px; max-width:100%; min-height:36px; padding-block:7px; }
@media(max-width:720px){ .public-header nav { flex-wrap:wrap; row-gap:10px; } .public-header nav .country-filter select { width:150px; } }
.browse-toolbar .country-filter { margin-inline-start:auto; display:flex; align-items:center; gap:10px; min-width:0; }
.browse-toolbar .country-filter select { width:220px; max-width:100%; }
@media(max-width:600px){ .public-main .browse-toolbar { flex-wrap:wrap; } .browse-toolbar .country-filter select { width:180px; } }

.subscription-customer-preview { margin-top:20px; }
.subscription-customer-preview .pricing-card { min-width:0; }
.subscription-preview-plans { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); gap:18px; }

.supporting-documents-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 14px}.supporting-documents-heading .form-section{margin:0}/* Compact attachment tiles shared by the applicant form and upload dialog. */
.supporting-document-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,148px));gap:10px}
.supporting-document{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:6px;padding:10px;border:1px solid var(--border);background:var(--card);border-radius:10px;min-width:0;min-height:130px;text-align:center}
.supporting-document-type{font-size:12px;font-weight:600;line-height:1.35;min-height:32px;overflow-wrap:anywhere;width:100%}
.supporting-document-format{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted)}
.supporting-document-format>.icon{width:28px;height:28px}.supporting-document-format small{font-size:10px}
.supporting-document-name{font-size:12px;line-height:1.4;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supporting-document-actions{position:absolute;inset-inline:4px;bottom:32px;display:flex;justify-content:center;gap:4px;padding:3px;background:var(--card);border-radius:8px;opacity:0;pointer-events:none}
.supporting-document:hover .supporting-document-actions,.supporting-document:focus-within .supporting-document-actions{opacity:1;pointer-events:auto}
@media(hover:none){.supporting-document-actions{position:static;opacity:1;pointer-events:auto;padding:0}}


button.supporting-document-format { border:0; background:transparent; padding:2px; cursor:zoom-in; }
.supporting-document-thumbnail { width:64px; height:48px; object-fit:contain; border-radius:4px; background:var(--bg); }
.supporting-document-actions { position:static; opacity:1; pointer-events:auto; padding:0; }

/* Applicant tabs identify documents by type; keep filenames out of the compact card. */
.application-content :is(#application-form,.application-readonly) .supporting-document { padding-top:38px; }
.application-content :is(#application-form,.application-readonly) .supporting-document-type { position:absolute; inset:11px 8px auto 42px; min-height:0; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.application-content :is(#application-form,.application-readonly) .supporting-document-name { display:none; }
.application-content :is(#application-form,.application-readonly) .supporting-document-download { position:absolute; inset:5px auto auto 5px; z-index:1; }

.signature-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.signature-heading .signature-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.signature-heading .signature-actions .icon-btn{min-width:34px;min-height:34px;padding:0;font-size:inherit}
.signature-heading .form-section { margin:0; min-width:0; }
.signature-upload-control { position:relative; flex-shrink:0; cursor:pointer; margin-inline-start:auto; }
.signature-upload-control input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.signature-upload-control:focus-within { outline:3px solid var(--primary); outline-offset:3px; }
.signature-heading :is(#signature-undo,#signature-clear) { flex-shrink:0; }
.signature-heading #signature-status { margin-inline-start:auto; font-size:11px; line-height:1.4; color:var(--muted); }
.signature-heading :is(.signature-upload-control,#signature-undo,#signature-clear) { min-width:132px; min-height:38px; padding:10px 14px; font-size:11px; justify-content:center; }
.signature-workspace { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; align-items:stretch; }
.signature-workspace[data-split=true] { grid-template-columns:repeat(2,minmax(0,1fr)); }
#signature-upload-preview:empty { display:none; }
#signature-upload-preview { min-width:0; height:180px; }
#signature-upload-preview .signature-preview { width:100%; height:180px; object-fit:contain; }
.signature-workspace #signature-pad { min-width:0; width:100%; }

.signature-workspace[data-split=true] #signature-upload-preview:empty { display:block; border:1px dashed var(--border); border-radius:10px; background:var(--bg); }

.navigable-error { cursor:pointer; scroll-margin-block:80px; }
.navigable-error:focus-visible { outline:2px solid currentColor; outline-offset:4px; border-radius:4px; }

.application-review-section { border:1px solid var(--border); border-radius:14px; padding:18px; margin:16px 0; background:var(--card); }
.application-review-section>.form-section,.application-review-section>.summary-title { margin-top:0; color:var(--text); font-weight:700; }
.applicant-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 18px; }
.applicant-detail-grid .summary-item { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:0; margin:0; }
.applicant-detail-grid strong { overflow-wrap:anywhere; }
.application-review-section .review-answer { display:flex; justify-content:space-between; align-items:baseline; gap:16px; margin:10px 0; }
.application-review-section .review-answer strong { flex:1; }
.application-review-section .review-answer p { margin:0; max-width:50%; overflow-wrap:anywhere; color:var(--text); }
.declaration-label { display:inline-flex; align-items:flex-start; gap:7px; }
.declaration-label input[type=checkbox] { width:16px; height:16px; margin:1px 0 0; flex:0 0 auto; accent-color:var(--primary); opacity:1; }
.consent-review .summary-item>span { color:var(--text); font-weight:700; }
.application-export-actions { display:flex; gap:8px; flex-wrap:wrap; }
@media(max-width:600px){.applicant-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }}

/* Editable applicant details use the same three-column layout for every household tab. */
#application-form .application-form-section > .form-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
#application-form .application-form-section > .form-grid > .field { min-width:0; }
@media(max-width:800px){#application-form .application-form-section > .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:540px){#application-form .application-form-section > .form-grid { grid-template-columns:minmax(0,1fr); }}

#application-form .application-form-section { border:1px solid var(--border); border-radius:14px; padding:16px; margin:14px 0; min-width:0; background:var(--card); }
#application-form .application-form-section > :is(.summary-title,.form-section) { margin-top:0; }
#application-form .application-form-section .supporting-documents-heading { margin-top:0; }
.application-export-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
.application-export-actions > .btn { width:100%; min-width:0; min-height:44px; height:100%; justify-content:center; white-space:normal; text-align:center; }

/* Stronger boundaries for controls, dialogs, and sections in every palette. */
html[data-theme=light] { --border:color-mix(in srgb,var(--primary) 22%,#d0ced8); }
html[data-theme=dark] { --border:color-mix(in srgb,var(--primary) 20%,#81788e); }
html[data-theme] .field :is(input,select,textarea):not(:focus):not([aria-invalid=true]) { border-color:var(--border); }

.household-rental-summary .applicant-detail-grid>div { min-width:0; }
.household-rental-summary small,.household-rental-summary strong { display:block; overflow-wrap:anywhere; }
.household-rental-summary small { color:var(--muted); margin-bottom:6px; }

/* Full-width application editor with progress and actions in the page heading. */
.application-layout.application-layout-wide { grid-template-columns:minmax(0,1fr); width:100%; }
.page-heading.application-heading { display:block; }
.application-heading-top,.application-heading-bottom { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.application-heading-top h1 { margin:0; }
.application-heading-progress { display:flex; align-items:center; flex:1; gap:12px; min-width:260px; font-size:12px; }
.application-heading-progress .progress-track { flex:1; min-width:100px; max-width:240px; margin:0; }
.application-heading-progress>span { white-space:nowrap; }
.application-heading-property { color:var(--muted); margin:8px 0 12px; }
.application-heading-rental { display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; }
.application-heading-rental .application-heading-property,
.application-heading-rental .application-rental-availability { margin:8px 0 12px; }
.application-heading-rental .application-rental-availability { color:var(--muted); }
.application-heading-tenancy-notice { color:var(--muted); }
.application-member-progress,.application-heading-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.application-member-progress { flex:1; }
.application-member-progress .btn { gap:8px; }
.application-heading-actions .btn { min-width:170px; min-height:42px; justify-content:center; }
.application-layout-wide .applicant-detail-grid,
.application-layout-wide #application-form .application-form-section > .form-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media(max-width:1000px){
 .application-layout-wide .applicant-detail-grid,
 .application-layout-wide #application-form .application-form-section > .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .application-heading-progress { flex-basis:100%; }
}
@media(max-width:540px){
 .application-layout-wide .applicant-detail-grid,
 .application-layout-wide #application-form .application-form-section > .form-grid { grid-template-columns:minmax(0,1fr); }
 .application-heading-progress { gap:6px; min-width:0; flex-wrap:wrap; }
 .application-heading-actions { width:100%; }
 .application-heading-actions .btn { flex:1; min-width:140px; }
}

/* Keep status, progress and available actions together on a single heading row. */
.application-heading .application-heading-top { flex-wrap:nowrap; gap:10px; overflow-x:auto; padding:4px 2px; }
.application-heading .application-heading-top h1 { flex-shrink:0; font-size:22px; white-space:nowrap; }
.application-heading .application-heading-top>.badge { flex-shrink:0; }
.application-heading .application-heading-progress { flex:1 0 270px; flex-wrap:nowrap; gap:8px; min-width:270px; }
.application-heading .application-heading-progress>strong { white-space:nowrap; }
.application-heading .application-heading-progress .progress-track { min-width:60px; }
.application-heading .application-heading-actions { flex:0 0 auto; width:auto; flex-wrap:nowrap; }
.application-heading .application-heading-actions .btn { flex:0 0 auto; min-width:150px; white-space:nowrap; }

.application-content .tab .application-member-status { display:inline-flex; flex-shrink:0; margin-inline-start:6px; }
.application-heading .application-export-icon { flex-shrink:0; width:36px; height:36px; }

#household-form fieldset { border:0; padding:0; margin:12px 0 0; min-width:0; }
#household-form fieldset[hidden] { display:none; }

.rental-history-heading { display:flex; align-items:center; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; margin-bottom:14px; }
.rental-history-heading .form-section { margin:0; flex-shrink:0; }
.rental-history-heading .check-field { margin:0; flex:1; justify-content:flex-end; }
@media(max-width:700px){.rental-history-heading .check-field { flex-basis:100%; justify-content:flex-start; }}

.application-layout-wide .application-readonly .applicant-detail-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media(max-width:1000px){.application-layout-wide .application-readonly .applicant-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:540px){.application-layout-wide .application-readonly .applicant-detail-grid { grid-template-columns:1fr; }}
/* Rental approvals, agreement signatures and compact notifications. */
.notification-item{display:flex;align-items:center;gap:12px;white-space:nowrap;min-width:0;padding:14px 0;border-bottom:1px solid var(--border)}
.notification-item strong{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.notification-item .notification-body{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.notification-item time{flex-shrink:0;font-size:11px}
.rental-applicant{border:1px solid var(--border);border-radius:16px;padding:20px;margin:16px 0}.verification{border:0;padding:8px 0;margin:8px 0}.verification label{display:inline-flex;align-items:center;gap:6px;margin-right:24px}.verification legend{font-weight:600}.lease-text{white-space:pre-wrap;line-height:1.8;padding:20px 0;overflow-wrap:anywhere}.rental-tabs{position:sticky;top:0;z-index:6;display:flex;align-items:center;min-width:0;padding-block:8px;background:var(--card);border-bottom:1px solid var(--border)}.rental-tabs>.tabs{flex:1;min-width:0;overflow:auto;flex-wrap:nowrap}.rental-tabs .tab{flex-shrink:0}.rental-tabs>.icon-btn{flex-shrink:0}.rental-applicant .signature-preview{max-width:300px}
/* The panel normally clips its contents, which prevents sticky positioning.
   Application tabs are the exception: keep this header visible while its form scrolls. */
.application-content { overflow:visible; }

/* Popup controls match the Settings delegation button. */
#modal .btn,#modal .modal-header-actions .btn,#modal .workspace-header-actions .btn{min-height:40px;padding:10px 15px;font-size:11px;line-height:1.4;width:auto;flex-grow:0}
:is(#modal,.lease-detail-popup) .icon-btn{min-width:40px;min-height:40px}
:is(#modal,.lease-detail-popup) .lease-document-cards .supporting-document-download{min-width:30px;min-height:30px}
[data-invoice-select],#invoice-select-all{width:16px;height:16px;accent-color:var(--primary)}


/* Consistent approval sections, with readable layouts on smaller screens. */
.approval-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;align-items:start;margin:16px 0}
.approval-grid>*{min-width:0;overflow-wrap:anywhere}
.approval-grid p{margin:6px 0}.approval-grid input:not([type=radio]):not([type=checkbox]){min-width:0;max-width:100%}
.approval-grid .verification{min-inline-size:0;margin:0}.approval-grid .verification label{margin-right:12px}
@media(max-width:1100px){.approval-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.approval-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.approval-grid{grid-template-columns:minmax(0,1fr)}}

.settings-page .settings-layout{align-items:stretch}
.settings-side{display:flex;flex-direction:column;min-width:0}
.settings-side .settings-account{flex:1}
.settings-payments{grid-column:1/-1}
.payment-settings-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:start}
.payment-settings-grid .field{min-width:0}.payment-settings-grid input,.payment-settings-grid select{min-width:0;width:100%}
.rental-tabs{border-bottom:0!important;padding-bottom:0;margin-bottom:16px}.rental-tabs>.tabs{margin-bottom:0}.rental-tabs>button[hidden]{display:none}
.rental-tabs .tab{color:var(--text)}.rental-tabs .tab.active{color:var(--primary)}
.approval-documents{display:grid;gap:12px;margin:16px 0}
.approval-document-row{display:flex;align-items:center;gap:24px;min-width:0}
.approval-document-row>a{flex:1;min-width:0;overflow-wrap:anywhere}
.approval-document-row .verification{margin:0;min-inline-size:0}
.approval-tag-section{margin-top:16px}.approval-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.approval-tags .chip{background:var(--primary-soft);color:var(--text);border:1px solid var(--border)}
.confirmation-choice{display:flex;align-items:center;gap:16px;min-inline-size:0}
.confirmation-choice legend{float:left;margin-right:16px;font-weight:400}
.confirmation-choice>div{display:flex;flex-shrink:0}.confirmation-choice label{white-space:nowrap}
@media(max-width:1100px){.payment-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.payment-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.confirmation-choice{display:block}.confirmation-choice legend{float:none;margin-bottom:10px}}
@media(max-width:480px){.payment-settings-grid{grid-template-columns:minmax(0,1fr)}.approval-document-row{gap:12px}}
html[data-theme=dark] .rental-tabs .tab.active{color:var(--text);border-color:var(--text)}
.approval-document-row .verification{display:flex;align-items:center;gap:10px;padding:0}
.approval-document-row .verification legend{float:left;margin-right:10px}
.approval-document-row .verification label{margin:0;white-space:nowrap}
.approval-confirmation>div{display:flex;align-items:center;gap:16px}
.approval-confirmation>div p{margin:0}

.settings-page .profile-photo-picker{display:flex;align-items:center;gap:8px;max-width:320px}
.settings-page .profile-photo-picker input{min-width:0;width:100%;flex:1}
.settings-page .profile-photo-picker .icon-btn{flex-shrink:0}
.settings-page .profile-photo-controls{min-width:0}

.approval-tag-row{display:flex;align-items:flex-start;gap:32px}.approval-tag-row>div{flex:1;min-width:0}
.approval-document-link{flex:1;min-width:0;border:0;background:none;color:inherit;text-align:left;padding:0;overflow-wrap:anywhere;text-decoration:underline}
@media(max-width:480px){.approval-tag-row{gap:16px}}

/* Compact approval details without changing applicant forms or other sections. */
:is(#rental-approval-form,#rental-approval-review) .application-review-section{padding:14px;margin:10px 0}
:is(#rental-approval-form,#rental-approval-review) h3{margin:0 0 10px}
:is(#rental-approval-form,#rental-approval-review) h4{margin:12px 0 6px}
:is(#rental-approval-form,#rental-approval-review) .rental-applicant>h3{display:inline-block;margin-right:12px}
:is(#rental-approval-form,#rental-approval-review) .applicant-verify-all{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:600}
:is(#rental-approval-form,#rental-approval-review) .approval-top-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
:is(#rental-approval-form,#rental-approval-review) .approval-top-sections>.application-review-section{margin:0}
:is(#rental-approval-form,#rental-approval-review) .approval-top-sections>.application-review-section:first-child{grid-column:1/-1}
:is(#rental-approval-form,#rental-approval-review) .approval-rental-details>.approval-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
:is(#rental-approval-form,#rental-approval-review) .approval-rental-details>.approval-grid>div:nth-child(5){grid-column:6}
:is(#rental-approval-form,#rental-approval-review) .approval-rental-details>.approval-grid>div:nth-child(9){grid-column:4}
/* Key deposit proof (after approval) lines up under Rental available from. */
#rental-approval-review .approval-rental-details>.approval-grid>div:nth-child(10){grid-column:6}
:is(#rental-approval-form,#rental-approval-review) .approval-deposit-section .approval-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
:is(#rental-approval-form,#rental-approval-review) .approval-deposit-section .field{width:100%}
:is(#rental-approval-form,#rental-approval-review) .approval-top-sections h3{display:inline-block;margin-right:12px}
:is(#rental-approval-form,#rental-approval-review) .tenant-verify-all{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:12px;font-weight:600}
@media(max-width:620px){:is(#rental-approval-form,#rental-approval-review) .approval-top-sections{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){:is(#rental-approval-form,#rental-approval-review) .approval-deposit-section .approval-grid{grid-template-columns:minmax(0,1fr)}}
:is(#rental-approval-form,#rental-approval-review) .rental-applicant>h4:has(+.approval-grid){display:inline-block;margin-right:16px;vertical-align:middle}
:is(#rental-approval-form,#rental-approval-review) .rental-applicant>h4:has(+.approval-grid)+.approval-grid{display:inline-flex;width:auto;vertical-align:middle;gap:16px;margin:12px 0 6px}
:is(#rental-approval-form,#rental-approval-review) .approval-verification{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:14px;font-weight:600;color:var(--text)}
/* After approval the verification checkboxes are read-only but keep full contrast. */
#rental-approval-review .approval-verification input:disabled{opacity:1;cursor:default;accent-color:var(--primary)}
#rental-approval-review .approval-confirmed{display:flex;margin:8px 0 0}
:is(#rental-approval-form,#rental-approval-review) .approval-grid{row-gap:10px;column-gap:16px;margin:8px 0}
:is(#rental-approval-form,#rental-approval-review) .approval-grid p{margin:3px 0;line-height:1.4}
:is(#rental-approval-form,#rental-approval-review) .approval-grid .verification{padding:3px 0}
:is(#rental-approval-form,#rental-approval-review) .approval-documents{gap:8px;margin:8px 0}
:is(#rental-approval-form,#rental-approval-review) .approval-documents.supporting-document-list{align-items:start}
:is(#rental-approval-form,#rental-approval-review) .approval-documents-heading{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:12px 0 6px}
:is(#rental-approval-form,#rental-approval-review) .approval-documents-heading h4{margin:0}
:is(#rental-approval-form,#rental-approval-review) .approval-documents-heading .check-field{margin:0;font-size:12px;font-weight:600}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card{min-width:0}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card{position:relative}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card>.approval-verification{position:absolute;inset:8px 8px auto auto;z-index:1;margin:0;padding:3px 5px;background:var(--card);border-radius:5px;font-size:11px}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .supporting-document{padding-top:38px}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .supporting-document-type{position:absolute;top:10px;left:42px;right:42px;min-height:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.approval-document-card .supporting-document-type{position:absolute!important;top:10px!important;left:42px!important;right:42px!important;min-height:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:left!important}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .supporting-document-name{display:none}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .supporting-document-actions{position:absolute;inset:5px auto auto 5px;z-index:1}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .verification{margin:8px 0 0;padding:0;min-inline-size:0}
/* Download icon, document heading and checkbox share one 30px row at the top of the card. */
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .supporting-document-actions{inset:6px auto auto 6px}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .supporting-document-download{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;min-height:30px;padding:5px}
.approval-document-card .supporting-document-type{top:6px!important;height:30px;line-height:30px!important}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card>.approval-verification{inset:6px 6px auto auto;height:30px;display:flex;align-items:center;padding:0 5px}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card>.approval-verification input{margin:0}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .verification legend{margin-bottom:4px}
:is(#rental-approval-form,#rental-approval-review) .approval-document-card .verification label{display:block;margin:2px 0}
:is(#rental-approval-form,#rental-approval-review) .approval-tag-section{margin-top:8px}
:is(#rental-approval-form,#rental-approval-review) .approval-tags{gap:6px;margin-top:5px}

.html-agreement-frame{width:100%;height:65vh;min-height:420px;border:1px solid var(--border);background:white;border-radius:8px}
#modal:has(.template-mapping-layout),#modal:has(#html-template-form),#modal:has(.html-agreement-frame){width:min(1400px,96vw);max-width:96vw}
#modal:has(#html-template-form[data-id=""]){width:min(680px,calc(100% - 32px))}
#modal:has(#html-template-form:not([data-id=""])){width:min(960px,calc(100% - 32px))}
#html-template-form .lease-template-edit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.template-mapping-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}
.template-mapping-sources{display:grid;grid-template-columns:1fr;gap:10px}
.template-mapping-sources .field{min-width:0}
/* Source field picker: field names under sticky section headings, with Frequently Used first. */
.template-source-toggle{width:100%;min-height:40px;padding:11px 32px 11px 12px;border:1px solid #e4dfed;border-radius:7px;background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377768b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;color:var(--text);font-size:12px;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
html[data-theme=dark] .template-source-toggle{border-color:#514461}
.template-source-list{position:relative;max-height:320px;overflow:auto;margin-top:4px;border:1px solid var(--border);border-radius:7px;background:var(--card)}
.template-source-heading{position:sticky;top:0;z-index:1;padding:6px 10px;background:var(--bg);border-bottom:1px solid var(--border);font-size:11px;font-weight:700;color:var(--muted)}
.template-source-option{display:block;width:100%;padding:6px 10px 6px 16px;border:0;background:none;color:var(--text);font-size:12px;text-align:start;cursor:pointer}
.template-source-option:is(:hover,:focus-visible){background:var(--primary-soft);outline:none}
.template-source-option[aria-selected="true"]{color:var(--primary);font-weight:600}
@keyframes template-control-flash{from{box-shadow:0 0 0 3px var(--primary)}to{box-shadow:0 0 0 3px transparent}}
.template-control-flash{animation:template-control-flash 1.2s ease-out}
#modal:has(.workspace-members-table){width:min(1150px,95vw);max-width:95vw}
.workspace-members-table{min-width:850px}.workspace-members-table td:nth-child(2){white-space:nowrap}
.properties-page .data-table{min-width:1000px}.properties-page .data-table td{white-space:nowrap}
@media(max-width:850px){.template-mapping-layout{grid-template-columns:1fr}.html-agreement-frame{height:55vh}}
@media(max-width:800px){#html-template-form .lease-template-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){#html-template-form .lease-template-edit-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep the name fields in their parent form grid. */
.person-name-fields { display:contents; }

/* Property details need room for the members table. */
#modal[open].workspace-dialog:has(.workspace-members-table) { width:min(1100px,calc(100% - 32px))!important; }

/* Shared layout for property and Team member popups. */
#modal[open].workspace-dialog:has(#workspace-member-form) { width:min(1040px,calc(100% - 32px))!important; }
#modal #workspace-member-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
#workspace-member-form .workspace-new-member:not([hidden]),
#workspace-member-form .workspace-existing-member:not([hidden]) { display:contents; }
#workspace-member-form .field { min-width:0; }
#workspace-member-form > p,
#workspace-member-form > .form-error,
#workspace-member-form > .modal-actions,
#workspace-member-form .workspace-existing-member > small { grid-column:1 / -1; }
@media(max-width:720px) {
 #modal #workspace-member-form { grid-template-columns:minmax(0,1fr); }
}

.member-address-fields { display:contents; }

.application-tab-person { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.application-content .tab .application-tab-person .application-member-status { margin-inline-start:0; }
.application-tab-name { display:flex; align-items:center; gap:6px; }

#modal[open].workspace-dialog:has(#team-user-form[data-remove="false"]) { width:min(1040px,calc(100% - 32px))!important; }
#modal #team-user-form[data-remove="false"] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:start; }
#team-user-form[data-remove="false"] .field { min-width:0; }
#team-user-form[data-remove="false"] > p,
#team-user-form[data-remove="false"] > .form-error,
#team-user-form[data-remove="false"] > .modal-actions { grid-column:1 / -1; }
@media(max-width:720px) {
 #modal #team-user-form[data-remove="false"] { grid-template-columns:minmax(0,1fr); }
}

.payment-settings-heading{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:20px}
.payment-settings-heading h2{margin:0}
.payment-settings-heading form{display:flex;align-items:center;gap:24px;flex-wrap:wrap;flex:1;min-width:0}
.payment-settings-heading form .form-error{flex-basis:100%}
.payment-settings-heading input[type=email]{width:260px;max-width:100%;min-width:0}
.payment-settings-heading .field{display:flex;flex-direction:row;align-items:center;gap:12px;margin:0;min-width:0}
.payment-settings-heading .field > span{white-space:nowrap}
.payment-settings-heading .field > select{width:auto;min-width:120px}

/* Shared dropdowns: options sit outside the control, with room to scroll. */
@supports (appearance:base-select) {
 select:not([multiple]):not([size]),select[size="1"]:not([multiple]),
 select:not([multiple]):not([size])::picker(select),select[size="1"]:not([multiple])::picker(select){appearance:base-select}
 select::picker(select){
  position:fixed;position-area:none;position-try-fallbacks:none;
  inset:auto;top:var(--select-top,anchor(bottom));bottom:var(--select-bottom,auto);left:var(--select-left,anchor(left));
  width:var(--select-width,anchor-size(width));
  inline-size:var(--select-width,anchor-size(width));min-inline-size:0;max-inline-size:var(--select-width,anchor-size(width));box-sizing:border-box;
  max-height:var(--select-height,320px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  margin:0;padding:5px;border:1px solid var(--border);border-radius:8px;
  background:var(--card);color:var(--text);box-shadow:0 8px 24px #0003;font:inherit;
 }
 select option{box-sizing:border-box;min-width:0;max-width:100%;padding:8px 10px;min-height:34px;white-space:normal;overflow-wrap:anywhere;border-radius:5px;cursor:pointer}
 select option:hover,select option:focus-visible,select option:checked{background:var(--primary-soft);color:var(--text)}
 select option:disabled{opacity:.5;cursor:default}
 select:not([multiple]):not([size]):not([hidden]),select[size="1"]:not([multiple]):not([hidden]){display:inline-flex;align-items:center;justify-content:space-between;column-gap:8px}
 select::picker-icon{content:"";display:block;width:14px;height:12px;background:currentColor;color:var(--text);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M3 1h18c2.4 0 3.7 2.6 2.2 4.5L14 18c-1 1.4-3 1.4-4 0L.8 5.5C-.7 3.6.6 1 3 1Z'/%3E%3C/svg%3E") center/contain no-repeat;margin-inline-start:auto;margin-inline-end:2px;flex-shrink:0}
}
.property-multiselect[open] .property-checks{
 position:fixed;inset:auto;left:var(--select-left);top:var(--select-top);bottom:var(--select-bottom);
 width:var(--select-width);min-width:0;max-width:var(--select-width);max-height:var(--select-height,320px);box-sizing:border-box;margin:0;overflow-x:hidden;
 overscroll-behavior:contain;z-index:10000;
}

.property-multiselect .property-checks label{min-width:0;white-space:normal;overflow-wrap:anywhere}

#post-form > .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#post-form > .form-grid > .field{min-width:0}
@media(max-width:800px){#post-form > .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){#post-form > .form-grid{grid-template-columns:minmax(0,1fr)}}
#processing-indicator{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgb(0 0 0 / .12);color:var(--text);z-index:2147483647;display:grid;place-items:center;cursor:progress}
#processing-indicator[hidden]{display:none}
.processing-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 30px;border-radius:14px;background:var(--card);box-shadow:0 8px 32px #0003;font-size:14px}
.processing-spinner{width:42px;height:42px;border:4px solid var(--primary-soft);border-top-color:var(--primary);border-radius:50%;animation:processing-spin .75s linear infinite}
@keyframes processing-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.processing-spinner{animation:none}}


#modal .modal-body .form-error{display:none}
#modal > .popup-error-summary{flex-shrink:0;margin:12px 24px 0;max-height:120px;overflow:auto;cursor:pointer}

#post-form > .form-grid > .field:has(input[name="title"]){grid-column:1 / -1}

/* Profile picture drafts are previewed inside a modal before being saved. */
.profile-picture-dialog{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border);border-radius:16px;background:var(--card);color:var(--text);overflow:hidden}
.profile-picture-dialog[open]{display:flex;flex-direction:column}
.profile-picture-dialog::backdrop{background:#1119}
.profile-picker-header{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--border)}
.profile-picker-header h2{font-size:16px;margin:0;flex:1}
.profile-picker-header .icon-btn{flex-shrink:0}
.profile-picker-body{padding:20px;overflow:auto;min-height:0}
.profile-picker-body>.field{margin-bottom:8px}
.profile-picker-body>small{color:var(--muted)}
.profile-picker-preview{display:grid;place-items:center;min-height:160px;margin:16px 0;padding:12px;background:var(--bg);border-radius:12px}
.profile-picker-preview img{width:160px;height:160px;object-fit:cover;border-radius:50%}
.profile-picker-preview img[hidden],.profile-picker-preview p[hidden]{display:none}
.profile-picture-tab{flex:1 0 auto;min-height:44px;padding:12px 16px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap}
.profile-picture-tab:hover{color:var(--primary);background:var(--primary-soft)}
.profile-picture-tab[aria-selected=true]{color:var(--primary);border-bottom-color:var(--primary);font-weight:650}
.profile-picture-tab:focus-visible{outline:2px solid var(--primary);outline-offset:-4px}
.profile-picture-dialog .form-error:empty{display:none}
@media(max-width:520px){.profile-picker-header{gap:8px;padding:12px;flex-wrap:wrap}.profile-picker-header h2{flex-basis:100%}.profile-picker-header .primary{margin-left:auto}.profile-picker-body{padding:14px}.profile-picker-preview img{width:120px;height:120px}}

.payment-secret-control{position:relative;min-width:0}
#paypal-client-secret{min-width:0;width:100%;box-sizing:border-box;padding-right:48px}
.payment-secret-control .icon-btn{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:32px;padding:0;border:0;background:transparent;color:var(--muted)}
.payment-secret-control .icon-btn:hover{color:var(--primary)}
.payment-secret-control .icon-btn:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}

/* Keep Settings compact while allowing overflow on small screens and at zoom. */
.settings-page .settings-layout{gap:10px}
.settings-page .settings-panel{padding:12px}
.settings-page .settings-panel h2{margin-bottom:7px}
.settings-page .settings-panel p{margin:5px 0}
.settings-page .profile-photo-heading{margin-bottom:6px}
.settings-page .profile-photo-heading h2{margin:0}
.settings-page .profile-photo-form{margin-bottom:6px}
.settings-page .profile-photo-display .avatar{width:48px;height:48px;font-size:18px}
.settings-page .field{margin-bottom:0}
.settings-page .form-grid{gap:6px 10px}
.show-column-filter-setting{align-self:end;min-height:var(--form-control-height,38px);display:flex;align-items:center;gap:8px}
.settings-page .form-section{margin:8px 0 5px;padding-bottom:4px}
.settings-page .settings-account{margin-top:10px}
.settings-page .color-option{min-height:38px;padding:6px;gap:5px}
.settings-page .payment-settings-heading{gap:16px;margin-bottom:6px}
.settings-page .payment-settings-heading h2{margin:0}
.settings-page .payment-settings-heading form{gap:8px 16px}
.settings-page .payment-settings-grid{gap:10px}
.settings-page .payment-secret-saved{font-size:10px;margin-bottom:0}
@media(min-width:1101px){
 .shell>.main.settings-page{--form-control-height:32px;padding-top:8px;padding-bottom:8px}
 .shell>.main.settings-page>.page-heading{margin-bottom:8px;padding-block:2px}
 .settings-page #profile-form>.form-grid:first-child{grid-template-columns:repeat(3,minmax(0,1fr))}
 .settings-page .field input,.settings-page .field select{min-height:32px;padding-block:5px}
 .settings-page .page-content{padding-bottom:0}
}
@media(max-width:600px){.settings-page .color-option{min-height:44px}}

/* Theme choices preview the resulting page background, including when hovered. */
#main.settings-page .color-option[data-color]{background:var(--palette-soft);color:#27263e;border-color:var(--primary)}
#main.settings-page .color-option[data-preview-theme=dark]{background:var(--palette-dark);color:#e6e0f3}
#main.settings-page .custom-color-option{background:var(--custom-page,var(--bg));color:var(--custom-text,var(--text));border-color:var(--border)}
#main.settings-page .color-option[aria-pressed=true],#main.settings-page .custom-color-option[data-selected=true]{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary)}

/* Popup dismissal stays a consistent, compact X control. */
:is(#modal,.lease-detail-popup) .modal-head>.popup-dismiss,.photo-viewer-controls .popup-dismiss,.date-picker-footer .popup-dismiss{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted)}
:is(#modal,.lease-detail-popup) .modal-head>.popup-dismiss:hover,.photo-viewer-controls .popup-dismiss:hover,.date-picker-footer .popup-dismiss:hover{background:var(--primary-soft);color:var(--primary)}

/* Center the Properties grid's unit, member and invitation counts. */
.workspace-grid tbody td:nth-child(4),
.workspace-grid tbody td:nth-child(5),
.workspace-grid tbody td:nth-child(6){text-align:center}
.workspace-grid tbody td:nth-child(4)::before,
.workspace-grid tbody td:nth-child(5)::before,
.workspace-grid tbody td:nth-child(6)::before{text-align:start}

/* Invitation address fields share two columns where the screen has room. */
.login-inner:has(#activate-household-form:is([data-purpose="team"],[data-purpose="tenant"])) {
  width:100%;
  max-width:620px;
}
#activate-household-form:is([data-purpose="team"],[data-purpose="tenant"]) .member-address-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:16px;
}
#activate-household-form:is([data-purpose="team"],[data-purpose="tenant"]) .member-address-fields .field { min-width:0; }
@media(max-width:640px) {
  #activate-household-form:is([data-purpose="team"],[data-purpose="tenant"]) .member-address-fields { grid-template-columns:minmax(0,1fr); }
}

.photo-viewer-stage { position:relative; display:flex; flex:1; min-height:0; }
.photo-viewer-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:1; width:44px; height:52px; border:1px solid #ffffff80; border-radius:10px; background:#171923d9; color:#fff; font-size:26px; cursor:pointer; }
.photo-viewer-previous { left:12px; }
.photo-viewer-next { right:12px; }
.photo-viewer-arrow[hidden] { display:none; }
.photo-viewer-arrow:disabled { opacity:.3; cursor:default; }
#modal:has(#tenant-invite-form) { width:min(820px,calc(100vw - 32px)); max-width:820px; }
#tenant-invite-form .property-invite-new { grid-template-columns:repeat(2,minmax(0,1fr)); }
#tenant-invite-form .property-invite-new[hidden] { display:none; }
#tenant-invite-form .field { min-width:0; }
@media(max-width:540px) { #tenant-invite-form .property-invite-new { grid-template-columns:minmax(0,1fr); } }

#household-form { grid-template-columns:repeat(4,minmax(0,1fr)); }
#household-form .household-new-fields .field { min-width:0; }
@media(max-width:900px) { #household-form { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { #household-form { grid-template-columns:minmax(0,1fr); } }

.household-add > summary { display:flex; align-items:center; gap:16px; width:100%; }
.household-add > summary > .btn { flex-shrink:0; }
.household-add-help { font-size:12px; line-height:1.7; color:var(--muted); }
#household-form { display:grid; gap:14px; }
#household-form > .field { min-width:0; margin:0; }
#household-form .household-new-fields:not([hidden]),#household-form .household-new-fields > .form-grid { display:contents; }
#household-form > .form-error,#household-form > .household-form-actions { grid-column:1 / -1; }
#household-form .household-existing-fields:not([hidden]) { display:contents; }
#household-form .household-existing-fields > .field { min-width:0; margin:0; }
#household-form .household-existing-fields > p { grid-column:1 / -1; margin:0; }
@media(max-width:540px) { .household-add > summary { align-items:flex-start; flex-direction:column; gap:8px; } }

.applicant-test-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }

.login-inner:has(#activate-household-form[data-purpose="household"]) { width:100%; max-width:860px; }
#activate-household-form[data-purpose="household"] .member-address-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:16px; }
#activate-household-form[data-purpose="household"] .member-address-fields .field { min-width:0; }
@media(max-width:900px) { #activate-household-form[data-purpose="household"] .member-address-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { #activate-household-form[data-purpose="household"] .member-address-fields { grid-template-columns:minmax(0,1fr); } }
#activate-household-form[data-purpose="household"] > .field:has(input[name="password"],input[data-invitation-email]) { width:auto; min-width:0; }
@media(max-width:900px) { #activate-household-form[data-purpose="household"] > .field:has(input[name="password"],input[data-invitation-email]) { width:auto; } }
@media(max-width:540px) { #activate-household-form[data-purpose="household"] > .field:has(input[name="password"],input[data-invitation-email]) { width:auto; } }

#activate-household-form[data-purpose="household"] { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:16px; }
#activate-household-form[data-purpose="household"] > :is(p,.member-address-fields,.form-error,button) { grid-column:1 / -1; }

.settings-page .settings-address-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){.settings-page .settings-address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.settings-page .settings-address-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px) { #activate-household-form[data-purpose="household"] { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { #activate-household-form[data-purpose="household"] { grid-template-columns:minmax(0,1fr); } }
/* Every checkbox uses the larger 22px size; :is() lifts this above the older per-section 16–17px rules. */
html :is(body,.subscription-feature-options,.property-multiselect .property-checks,.declaration-label,.chat-attachment-selection) input[type=checkbox]{width:22px;height:22px;min-width:22px;min-height:22px;max-width:22px;flex:0 0 22px;vertical-align:middle;accent-color:var(--primary)}
/* Settings errors are mirrored into the page header, so the in-form copies stay hidden. */
.page-heading .heading-actions>.popup-error-summary{margin:0;padding:8px 12px;font-size:14px;line-height:1.4;max-width:min(520px,100%);max-height:80px;overflow:auto;cursor:pointer}
.settings-layout .form-error:not(.popup-error-summary){display:none}
/* Radios match the 22px checkboxes. */
html body input[type=radio]{width:22px;height:22px;min-width:22px;min-height:22px;max-width:22px;flex:0 0 22px;margin:0 6px 0 0;vertical-align:middle;accent-color:var(--primary)}
/* Phone and tablet layout. */
@media(max-width:1100px){
 /* Record grids scroll sideways instead of squeezing every column; the minimum width follows the column count. */
 .table-wrap .data-table.record-table:has(thead tr:first-child>:nth-child(4)){min-width:560px}
 .table-wrap .data-table.record-table:has(thead tr:first-child>:nth-child(6)){min-width:760px}
 .table-wrap .data-table.record-table:has(thead tr:first-child>:nth-child(8)){min-width:980px}
 .table-wrap .data-table.record-table:has(thead tr:first-child>:nth-child(10)){min-width:1180px}
 .data-table.record-table th,.data-table.record-table td{overflow-wrap:break-word;word-break:normal}
 .table-wrap{-webkit-overflow-scrolling:touch}
}
@media(max-width:720px){
 /* The Properties-group grid becomes stacked cards on phones, so it must not keep its desktop width. */
 .table-wrap .data-table.workspace-grid{min-width:0;width:100%}
 .workspace-grid thead tr.grid-column-filters :is(input,select){width:100%;min-width:0;box-sizing:border-box}
 /* Popup close stays in the top-right corner when header actions wrap. */
 :is(#modal,.lease-detail-popup) .modal-head{position:relative;padding-right:56px}
 :is(#modal,.lease-detail-popup) .modal-head>:is(.popup-dismiss,[data-action="close"]){position:absolute;top:8px;right:8px;margin:0}
 :is(#modal,.lease-detail-popup) .modal-head .btn{min-height:40px}
 .page-heading{flex-wrap:wrap;gap:12px}
 .page-heading .heading-actions{flex-wrap:wrap;justify-content:flex-start}
}

/* Profile & settings popup: wide two-column layout, Save changes and errors pinned in the header. */
.lease-detail-popup.settings-popup{width:min(1180px,calc(100% - 32px))}
.settings-popup .modal-head{justify-content:flex-end}
.settings-popup .modal-head h2{margin-right:auto}
.settings-popup .modal-head>.btn{min-height:40px;padding:10px 15px;width:auto;flex-grow:0}
.settings-popup .modal-head>.popup-error-summary{flex:1 1 240px;min-width:0;margin:0;padding:6px 10px;font-size:14px;line-height:1.4;max-height:64px;overflow:auto;cursor:pointer}
.settings-popup .settings-layout{margin:0}
@media (max-width:720px){.lease-detail-popup.settings-popup{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.lease-detail-popup.settings-popup .modal-head{display:grid;grid-template-columns:1fr auto;gap:8px}.lease-detail-popup.settings-popup .modal-head h2{grid-column:1;grid-row:1;margin:0}.lease-detail-popup.settings-popup .modal-head .popup-dismiss{grid-column:2;grid-row:1}.lease-detail-popup.settings-popup .modal-head>.btn{grid-column:1/-1;grid-row:2;width:100%}.lease-detail-popup.settings-popup .modal-head>.popup-error-summary{grid-column:1/-1;grid-row:3}}

/* Account popups (Profile, Application Theme, Payment, Delegation, Change Password, Other Settings). */
.lease-detail-popup.account-popup:is(.account-popup-password,.account-popup-settings,.account-popup-delegation){width:min(900px,calc(100% - 32px))}
.account-popup .modal-head h2{display:flex;align-items:center;gap:8px}
.account-popup .modal-head h2 .icon{width:20px;height:20px;flex:none}
.account-popup .account-layout{display:grid;gap:14px;min-width:0}
.account-popup .account-layout>.panel{margin:0;min-width:0}
.account-popup .account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:start}
.account-popup .account-grid>.field,.account-popup .account-grid>.check-field{min-width:0}
.account-popup .settings-address-grid{margin-top:12px}
.account-popup .account-color-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.account-popup .settings-payments .payment-settings-heading{display:block}
.account-popup .settings-payments .payment-settings-heading form,.account-popup .payment-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:start}
.account-popup .settings-payments .payment-settings-heading h2{margin-bottom:10px}
.account-popup .settings-payments .payment-settings-heading .form-error{grid-column:1/-1}
.account-popup .show-column-filter-setting{align-self:center;min-height:44px}
.account-popup .delegation-grid{width:100%}
.account-popup .delegation-grid .actions{display:flex;gap:6px;justify-content:flex-start}
.account-option .icon{width:18px;height:18px;flex:none}
#modal #account-delegation-form .account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:1024px){.account-popup .account-grid,.account-popup .settings-payments .payment-settings-heading form,.account-popup .payment-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.account-popup .account-grid,.account-popup .settings-payments .payment-settings-heading form,.account-popup .payment-settings-grid,#modal #account-delegation-form .account-grid{grid-template-columns:minmax(0,1fr)}.account-popup .account-color-options{grid-template-columns:repeat(2,minmax(0,1fr))}.lease-detail-popup.account-popup:is(.account-popup-password,.account-popup-settings,.account-popup-delegation){width:calc(100% - 16px)}}

/* Tablet header: longer translations (French, Tamil, Russian…) must not push the account button off-screen. */
@media (min-width:721px) and (max-width:1100px){
 .topbar{min-width:0}
 .topbar .breadcrumb{min-width:0;overflow:hidden;flex:1 1 auto}
 .topbar .breadcrumb>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 .topbar-actions{min-width:0;flex:0 1 auto;gap:8px}
 .topbar-actions .searchbox{min-width:0;flex:1 1 110px;max-width:190px}
 .topbar-actions .searchbox input{min-width:0;width:100%}
 .topbar-actions .searchbox kbd,.topbar-actions .topbar-separator{display:none}
 .topbar-actions .ask-ai-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .topbar-language bdi{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .topbar-actions>*{flex-shrink:0}
 .topbar-actions>.searchbox{flex-shrink:1}
}
.account-popup .settings-payments .payment-settings-heading .field{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:auto;max-width:none}
.account-popup .settings-payments .payment-settings-heading .field>span{white-space:normal}
.account-popup .settings-payments .payment-settings-heading .field :is(select,input){width:100%;max-width:none}

/* Popup errors: one line directly under the header (also shown as a toast); inline copies are hidden. */
dialog > .popup-error-summary{flex-shrink:0;margin:10px 20px 0;padding:8px 12px;font-size:14px;line-height:1.4;max-height:96px;overflow:auto;cursor:pointer}
dialog .modal-body .form-error:not(.popup-error-summary),dialog form .form-error:not(.popup-error-summary){display:none}
/* Delete actions in any popup use a solid red button. */
dialog .btn.danger,dialog .btn.danger-solid,.btn.danger-solid{background:#b42332;border-color:#b42332;color:#fff}
dialog .btn.danger:is(:hover,:focus-visible),.btn.danger-solid:is(:hover,:focus-visible){background:#921c29;border-color:#921c29;color:#fff}
dialog .icon-btn[data-action$="-delete"]:not(:disabled){background:#b42332;border-color:#b42332;color:#fff}
dialog .icon-btn[data-action$="-delete"]:not(:disabled):is(:hover,:focus-visible){background:#921c29;color:#fff}
/* Profile picture remove: red trash icon without a filled background. */
dialog .icon-btn[data-action="remove-photo"]:not(:disabled){background:transparent;border-color:transparent;color:#b42332}
dialog .icon-btn[data-action="remove-photo"]:not(:disabled):is(:hover,:focus-visible){background:transparent;border-color:transparent;color:#921c29}
/* Application Theme: swatches at half size in a narrower popup. */
.lease-detail-popup.account-popup-theme{width:min(620px,calc(100% - 32px))}
.account-popup-theme .account-color-options{gap:8px}
.account-popup-theme .color-option{min-height:0;height:auto;padding:8px 6px;gap:4px;font-size:12px}
.account-popup-theme .color-option .color-swatch{width:18px;height:18px;min-height:0}
.account-popup-theme .color-option .icon{width:14px;height:14px}

/* Compact listings on Rental Unit and Posts (the public #browse page keeps its card size). */
.main .property-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.main .property-grid .property-photo{height:130px}
:is(.main,#modal) .property-card .property-info{padding:11px 13px;font-size:12px}
:is(.main,#modal) .property-card .property-info h3{font-size:14px;margin-bottom:4px}
:is(.main,#modal) .property-card .property-name-location>span{font-size:12px}
:is(.main,#modal) .property-card .property-features{margin:8px 0;padding-bottom:9px;gap:6px 12px;font-size:12px}
:is(.main,#modal) .property-card .property-features .icon{width:14px;height:14px}
:is(.main,#modal) .property-card .property-features .preview-parking-lease{gap:10px}
:is(.main,#modal) .property-card .property-price strong{font-size:14px}
:is(.main,#modal) .property-card .property-price>span{font-size:11px}
/* Amenities and Utility bill sharing chips on cards and listing details (Rental Unit, Browse, Posts). */
.property-card .chip,.property-detail-information .chip,.property-features .preview-amenities .chip,.detail-values .preview-amenities .chip{font-size:11px;line-height:1.3;padding:2px 8px}
.property-features .preview-amenities,.detail-values .preview-amenities,.property-utility-summary .property-utility-bills{gap:4px}

/* Listing preview (Rental Unit, Posts, Browse): photos fill their frame, centred, and the popup is more compact. */
#modal:has(.property-detail-layout){width:min(1180px,calc(100% - 32px))!important}
@media(min-width:801px){#modal:has(.property-detail-layout){height:calc(100dvh - 64px)}.property-detail-layout{grid-template-columns:minmax(0,1fr) minmax(0,5fr);gap:16px}}
.property-detail-information .detail-hero{height:260px;object-fit:cover;object-position:center center}
.property-detail-media .property-media-gallery{gap:8px}
.property-detail-media .property-media-gallery img,.property-detail-media .property-media-gallery video{height:96px;object-fit:cover;object-position:center center}
.property-detail-information{font-size:13px;line-height:1.5}
.property-detail-information .property-address,.property-detail-information .detail-values{font-size:13px}
.property-detail-information .detail-values small{font-size:11px}
.property-detail-information .property-detail-section h4{font-size:14px}
.property-detail-information .property-name-location{font-size:18px}
.property-detail-information .property-name-location>span{font-size:13px}
.property-detail-information .property-rental-summary{gap:12px;font-size:12px}
.property-detail-information .property-rental-summary>strong{font-size:16px}
.property-detail-information .property-rental-summary>strong small{font-size:11px}
/* Tighter line spacing in the details block. */
.property-detail-information .detail-values{gap:8px 18px;padding:12px 14px;margin:12px 0;line-height:1.35}
.property-detail-information .detail-values small{margin-bottom:2px}
.property-detail-information .detail-values p{margin:0}
.property-detail-information .detail-values .property-amenities-utilities{gap:8px 18px}
.property-detail-information .property-detail-section{margin:12px 0}
.property-detail-information .property-detail-section h4{margin-bottom:6px}
/* Title, address, available-from date, status and price share one 12px size. */
.property-detail-information .property-preview-heading,.property-detail-information .property-preview-heading :is(h3,span,strong,small,b,.badge){font-size:12px!important}
/* The blue title and price stand out at 14px. */
.property-detail-information .property-preview-heading :is(.property-name-location>strong,.property-rental-summary>strong){font-size:14px!important}
@media(max-width:850px){.property-detail-information .detail-hero{height:200px}.property-detail-media .property-media-gallery img,.property-detail-media .property-media-gallery video{height:84px}}

/* Properties view popup: Members and Rental Unit use the same panel grid as Applications and Leases. */
.workspace-view-grid{margin:14px 0}
.workspace-view-grid .panel-head h2{font-size:15px;margin:0}
.workspace-view-grid .panel-head{padding-block:10px}
/* Empty Members/Rental Unit panels should not consume the full popup height. */
#modal .workspace-view-grid:has(.grid-empty,.empty),#modal .workspace-view-grid:has(tbody:empty){max-height:50vh;min-height:0;overflow:auto}
/* Half-height empty state for Members / Rental Unit with no records. */
#modal .workspace-view-grid .empty{padding:12px 16px!important}
#modal .workspace-view-grid .empty .icon{width:22px;height:22px;margin-bottom:4px!important}
#modal .workspace-view-grid .empty h3{font-size:13px;margin:0 0 3px}
#modal .workspace-view-grid .empty p{font-size:11px;line-height:1.5;margin:0!important}
#modal .workspace-view-grid .grid-empty:not([hidden])~.grid-pagination{display:none}
/* Compact rows: tighter cell padding, smaller avatar, badge and action buttons. */
#modal .workspace-view-grid .data-table :is(th,td){padding-block:5px!important;line-height:1.3}
#modal .workspace-view-grid .data-table .avatar{width:24px;height:24px;min-width:24px;font-size:9px}
#modal .workspace-view-grid .data-table .stat-icon{width:24px;height:24px}
#modal .workspace-view-grid .data-table .person{gap:8px}
#modal .workspace-view-grid .data-table .badge{padding-block:2px}
#modal .workspace-view-grid .data-table .icon-btn{min-width:28px;min-height:28px;width:28px;height:28px;padding:5px}

/* Site-wide: text beside a checkbox or radio is centred on it. Flex labels centre their items;
   inline labels rely on vertical-align. Label display types are left unchanged. */
html body input:is([type=checkbox],[type=radio]){vertical-align:middle}
html body .check-field,html body label:has(> input:is([type=checkbox],[type=radio])){align-items:center}
html body :is(.check-field,label) > input:is([type=checkbox],[type=radio]){margin-top:0;margin-bottom:0}

/* Billing plans grid: compact rows and smaller status tags. */
.subscription-plan-grid :is(th,td){padding-block:6px!important;line-height:1.3}
:is(.subscription-plan-grid,.user-subscription-grid) .badge{padding:2px 7px;font-size:10px;line-height:1.3}
:is(.subscription-plan-grid,.user-subscription-grid) .badge:before{width:3px;height:3px}
:is(.subscription-plan-grid,.user-subscription-grid) .status-value-link{gap:5px;padding:2px 8px;border-radius:6px;font-size:10px;line-height:1.4}
:is(.subscription-plan-grid,.user-subscription-grid) .status-value-dot{width:5px;height:5px;flex-basis:5px}
:is(.subscription-plan-grid,.user-subscription-grid) .numeric-cell{text-align:right}
.subscription-plan-grid .icon-btn{min-width:28px;min-height:28px;width:28px;height:28px;padding:5px}

/* Lease template Import mapping popup (opens above the View popup); uses the shared popup and grid styles. */
.template-mapping-import-dialog{width:min(980px,calc(100% - 32px))}
.template-mapping-import-dialog .modal-header-actions{display:flex;gap:10px;align-items:center}
.template-mapping-import-dialog .modal-body>p{margin:0 0 12px}
/* File names stay on one line; the File name column takes the spare width and the grid scrolls sideways if needed. */
.template-mapping-import-dialog .table-wrap .data-table.template-mapping-import-table{table-layout:auto;width:100%}
.template-mapping-import-dialog .template-mapping-import-table :is(th,td):first-child{white-space:nowrap!important;overflow-wrap:normal;width:100%;min-width:360px}
.template-mapping-import-dialog .template-mapping-import-table :is(th,td):not(:first-child){white-space:nowrap;width:1%}
/* Compact Import mapping rows, matching the Properties view popup grids. */
.template-mapping-import-dialog .template-mapping-import-table :is(th,td){padding-block:5px!important;line-height:1.3}
.template-mapping-import-dialog .template-mapping-import-table .icon-btn{min-width:28px;min-height:28px;width:28px;height:28px;padding:5px}
.template-mapping-import-dialog .template-mapping-import-table .icon-btn .icon{width:16px;height:16px}

/* Split dropdown button (Team page): main action plus an arrow that opens the other actions. */
.split-button{position:relative;display:inline-flex;align-items:stretch}
.split-button>.btn:first-child{border-top-right-radius:0;border-bottom-right-radius:0}
.split-button>.split-button-toggle{border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid #ffffff55;padding-inline:10px;min-width:38px}
.split-button-toggle[aria-expanded="true"] .icon{transform:rotate(180deg)}
.split-button-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:40;min-width:100%;width:max-content;max-width:min(320px,90vw);background:var(--card);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 32px #2420391f;padding:6px;display:flex;flex-direction:column;gap:2px}
.split-button-menu[hidden]{display:none}
.split-button-item{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:var(--text);text-align:left;padding:10px 12px;border-radius:7px;font-size:12px;font-weight:500;white-space:nowrap}
.split-button-item .icon{width:16px;height:16px;color:var(--muted)}
.split-button-item:hover,.split-button-item:focus-visible{background:var(--primary-soft);color:var(--primary);outline:none}
.split-button-item:hover .icon,.split-button-item:focus-visible .icon{color:var(--primary)}


/* Upload progress card: current file, position and percentage (replaces the plain "Processing…" card while uploading). */
#processing-indicator.is-uploading>.processing-card:not(.processing-upload){display:none}
.processing-card.processing-upload{flex-direction:row;align-items:center;gap:16px;width:min(420px,calc(100vw - 32px));padding:20px 22px}
.processing-upload-copy{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.processing-upload-title{font-size:14px;font-weight:600}
.processing-upload-file{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.processing-upload-file:empty{display:none}
.processing-upload-bar{display:block;height:6px;border-radius:6px;background:var(--primary-soft);overflow:hidden}
.processing-upload-bar>span{display:block;height:100%;width:0;border-radius:6px;background:var(--primary);transition:width .2s ease}
.processing-upload-percent{font-size:15px;font-weight:650;color:var(--primary);min-width:44px;text-align:right;font-variant-numeric:tabular-nums}

/* Rental Units and Posts: inactive records use red text; active records keep their colours. */
.property-card.is-inactive .property-info,.property-card.is-inactive .property-info *{color:#c62828!important}
html[data-theme=dark] .property-card.is-inactive .property-info,html[data-theme=dark] .property-card.is-inactive .property-info *{color:#ff8a80!important}

/* Rental Units and Posts: status tabs, country and sort sit in the heading, before the Add button. */
.page-heading:has(.rentalunit-heading-filters){flex-wrap:wrap}
.page-heading .heading-actions:has(.rentalunit-heading-filters){flex-wrap:wrap;justify-content:flex-end;gap:12px;flex:1 1 auto;min-width:0}
.heading-actions .filters.rentalunit-heading-filters{margin:0;flex-wrap:wrap;justify-content:flex-end;gap:12px}
.heading-actions .rentalunit-heading-filters .filter-controls{flex-wrap:wrap;gap:10px;align-items:center}
@media(max-width:900px){.page-heading .heading-actions:has(.rentalunit-heading-filters),.heading-actions .filters.rentalunit-heading-filters{justify-content:flex-start;width:100%}}

/* Properties screen: one compact card per Properties group, matching the Rental Units cards. */
.workspace-card-grid .workspace-card{cursor:pointer;display:flex;flex-direction:column}
.workspace-card-grid .workspace-card:focus-visible{outline:3px solid #8c7cf7;outline-offset:3px}
.workspace-card-grid .workspace-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #3429660c}
.workspace-card-grid .workspace-card.workspace-selected{background:var(--card);box-shadow:0 0 0 2px var(--primary),0 8px 24px #3429660c}
.workspace-card .property-photo{height:120px}
.workspace-card .property-info{display:flex;flex-direction:column;gap:6px;flex:1;padding:12px 14px}
.workspace-card .property-info h3{margin:0;font-size:13px}
.workspace-card .workspace-card-description{margin:0;font-size:11px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.workspace-card .property-features{margin:2px 0 0;padding:0 0 8px;gap:10px;flex-wrap:wrap;row-gap:4px;font-size:10px}
.workspace-card .property-features .icon{width:13px;height:13px}
.workspace-card .workspace-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;flex-wrap:wrap}
.workspace-card .workspace-owner-list{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:4px;font-size:10px;min-width:0;flex:1}
.workspace-card .workspace-owner-chip{display:inline-flex;align-items:center;gap:3px;padding:3px 7px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-weight:500;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.workspace-card .workspace-owner-chip .icon-btn{width:18px;height:18px;min-width:18px;min-height:18px;padding:2px;border:0}
.workspace-card .workspace-owner-chip .icon-btn .icon{width:12px;height:12px}
.workspace-card .workspace-row-actions{display:flex;gap:4px;flex-wrap:nowrap}
.workspace-card .workspace-row-actions .icon-btn{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:5px!important}
.workspace-card .workspace-row-actions .icon-btn .icon{width:15px;height:15px}
/* Dashboard recent activity (application → lease → invoice → payment). */
.recent-activity-table{width:100%;border-collapse:collapse;font-size:13px}
.recent-activity-table th{background:var(--primary-soft);color:var(--text);font-weight:600;text-align:left;padding:10px 14px;border:1px solid var(--border)}
.recent-activity-table td{padding:10px 14px;border:1px solid var(--border);white-space:nowrap}
.recent-activity-cell{cursor:pointer;color:var(--text);font-weight:500}
.recent-activity-cell:hover,.recent-activity-cell:focus-visible{background:var(--primary-soft);color:var(--primary);outline:none}
.recent-activity-cell.is-alert,.recent-activity-cell.is-alert:hover{color:#c62828}
html[data-theme=dark] .recent-activity-cell.is-alert{color:#ff8a80}
/* Create invoice popup: three-column field layout. */
#modal:has(#rental-invoice-form){width:min(900px,calc(100% - 32px))}
#rental-invoice-form .invoice-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:start}
#rental-invoice-form .invoice-form-grid>h3{grid-column:1/-1;margin:0}
#rental-invoice-form .invoice-form-grid .field{margin:0;min-width:0}
#rental-invoice-form section.invoice-form-grid{margin-top:12px;padding:10px 14px 12px;gap:8px 16px}
#rental-invoice-form section.invoice-form-grid>h3{font-size:14px;line-height:1.3}
@media(max-width:700px){#rental-invoice-form .invoice-form-grid{grid-template-columns:1fr}}

#rental-invoice-form p:has(#rental-invoice-total),#rental-invoice-total{font-size:14px;color:var(--text)}
#rental-invoice-form .invoice-top-row{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){#rental-invoice-form .invoice-top-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#rental-invoice-form .invoice-top-row{grid-template-columns:1fr}}
#rental-invoice-form .invoice-form-grid .field small{display:block;margin-top:4px;font-size:11px}
/* Invoice view popup: three-column label/value layout. */
#modal:has(.invoice-view){width:min(1300px,calc(100% - 32px))}
.invoice-view-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px}
.invoice-view-grid .summary-item{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;min-width:0;min-height:0;padding:0;text-align:left}
.invoice-view-grid .summary-item>strong{text-align:left;margin:0}
.invoice-view-grid .summary-item>span{font-size:11px;color:var(--muted)}
.invoice-view-grid .summary-item>strong{font-size:14px;color:var(--text);overflow-wrap:anywhere}
.invoice-view-grid .field{margin:0;min-width:0}
.invoice-view-section{margin-top:12px;padding:10px 14px 12px}
.invoice-view-section h4{margin:0 0 8px;font-size:14px}
form.invoice-view-section{padding:10px 0 0}
@media(max-width:700px){.invoice-view-grid{grid-template-columns:1fr}}
.invoice-view-lines{margin-top:10px}
.invoice-lines-table{width:100%;border-collapse:collapse;font-size:13px}
.invoice-lines-table th{background:var(--primary-soft);color:var(--text);font-weight:600;text-align:left;padding:6px 12px;border:1px solid var(--border)}
.invoice-lines-table td{padding:5px 12px;border:1px solid var(--border);color:var(--text)}
.invoice-lines-table .num{text-align:right;white-space:nowrap}
.invoices-table .num{text-align:right;white-space:nowrap}
.invoice-lines-table tfoot th{font-size:14px}
#modal:has(.invoice-view) .modal-body{padding-top:12px}
.invoice-view>.invoice-view-grid .summary-item{gap:2px}
.invoice-view>.invoice-view-grid .summary-item>strong .badge{margin:0}
.invoice-view-grid .summary-item{margin:0!important;border:0;background:none;box-shadow:none}
/* #invoices grid: keep every column on one line (the table scrolls sideways if needed). */
.table-wrap .data-table.record-table.invoices-table{table-layout:auto;width:100%}
.data-table.invoices-table :is(th,td),.data-table.record-table.invoices-table :is(th,td){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
/* Interac e-Transfer payment popup. */
#modal:has(.interac-pay){width:min(820px,calc(100% - 32px))}
.interac-pay-details{margin:10px 0;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--primary-soft)}
.interac-pay-details strong{display:inline-flex;align-items:center;gap:6px}
.interac-pay-details .icon-btn{width:28px;height:28px;min-width:28px}
.interac-steps{margin:8px 0 12px 18px;padding:0;font-size:13px;line-height:1.6;color:var(--text)}
.interac-evidence small{display:block;margin-top:4px;font-size:11px}
.invoice-view-grid .summary-item a{display:inline-flex;align-items:center;gap:4px}
.invoice-view-subhead{margin:14px 0 6px;font-size:14px}
.invoice-balance-due{color:#c62828}
html[data-theme=dark] .invoice-balance-due{color:#ff8a80}
.payment-method-choice{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:0 0 10px}
.payment-method-option{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--text);cursor:pointer}
.payment-method-option input{width:18px;height:18px;accent-color:var(--primary)}
.payment-method-due{margin-left:auto;font-size:13px;color:var(--muted)}
.payment-method-due strong{color:var(--text)}
.interac-pay :is([data-method-only],[data-method-not])[hidden]{display:none!important}
.interac-pay .invoice-view-grid>div:empty{display:none}
.interac-note-row{margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){.interac-note-row{grid-template-columns:1fr}}

/* Create / edit invoice: two-field top row and the editable bill-lines grid. */
#rental-invoice-form .invoice-top-row-2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:700px){#rental-invoice-form .invoice-top-row-2{grid-template-columns:1fr}}
.invoice-lines-editor{margin-top:12px}
.invoice-lines-editor td{vertical-align:middle}
.invoice-lines-editor select,.invoice-lines-editor input[type=number]{width:100%;min-width:90px;padding:6px 8px;border:1px solid #e4dfed;border-radius:7px;background:var(--card);color:var(--text);font-size:13px;min-height:34px}
.invoice-lines-editor input[type=number]{text-align:right}
.invoice-lines-editor input[readonly]{background:var(--bg);color:var(--muted)}
.invoice-lines-editor .invoice-line-file input[type=file]{max-width:210px;font-size:12px}
.invoice-lines-editor .invoice-line-file small{display:block;font-size:11px;overflow-wrap:anywhere}
.invoice-lines-editor .invoice-line-new td{background:var(--primary-soft)}
.invoice-lines-editor .actions{justify-content:flex-end;flex-wrap:nowrap}
.invoice-lines-editor tfoot th{font-size:14px}
/* Bill Type and Attach Bill columns share the same, wider width. */
.invoice-lines-editor .invoice-lines-table{table-layout:fixed}
.invoice-lines-editor .invoice-lines-table :is(th,td):nth-child(1),.invoice-lines-editor .invoice-lines-table :is(th,td):nth-child(5){width:24%}
.invoice-lines-editor .invoice-lines-table :is(th,td):nth-child(2),.invoice-lines-editor .invoice-lines-table :is(th,td):nth-child(4){width:14%}
.invoice-lines-editor .invoice-lines-table :is(th,td):nth-child(3){width:10%}
.invoice-lines-editor .invoice-lines-table :is(th,td):nth-child(6){width:14%}
.invoice-lines-editor .invoice-lines-table tfoot :is(th,td){width:auto}
.invoice-lines-editor .invoice-lines-table td{overflow-wrap:anywhere}
.invoice-lines-editor select{min-width:0}
.invoice-lines-editor .invoice-line-file input[type=file]{max-width:100%}
dialog.bill-type-dialog{width:min(460px,calc(100% - 32px))}
dialog.bill-type-dialog .modal-head{position:static}
.bill-type-help{margin:6px 0 0;font-size:12px}

/* Inputs always fit inside their grid cell (no overlap into the next column). */
.invoice-lines-editor select,.invoice-lines-editor input[type=number]{min-width:0;max-width:100%;box-sizing:border-box}
.invoice-lines-editor input[type=number]{-moz-appearance:textfield;appearance:textfield;padding-inline:8px}
.invoice-lines-editor input[type=number]::-webkit-inner-spin-button,.invoice-lines-editor input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.invoice-lines-editor .invoice-lines-table :is(th,td):nth-child(3){width:12%}
.invoice-lines-editor .invoice-lines-table :is(th,td):nth-child(6){width:12%}
.invoice-lines-editor .invoice-lines-table td{overflow:hidden}
.invoice-lines-editor .invoice-lines-table{min-width:760px}
.invoice-lines-editor .invoice-lines-table :is(th,td){padding:6px 10px}
.invoice-lines-editor .invoice-lines-table th{white-space:nowrap}
/* Invoice document (view popup): banner, parties, lines, totals, payment information. Uses the theme colours. */
#modal:has(.invoice-doc){width:min(1300px,calc(100% - 32px));max-width:calc(100% - 32px)}
.invoice-doc{position:relative;background:#fff;color:#2b2b38;border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:14px;font-size:13px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.invoice-doc-banner{position:relative;height:150px;padding:34px 32px 0;color:#fff}
.invoice-doc-wave{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.invoice-doc-wave path{fill:var(--primary-dark)}
.invoice-doc-wave .invoice-doc-wave-light{fill:#ffffff2e}
.invoice-doc-banner h1,.invoice-doc-no{position:relative;z-index:1;margin:0}
.invoice-doc-banner h1{font-size:40px;letter-spacing:4px;font-weight:800;line-height:1}
.invoice-doc-no{position:absolute;right:32px;top:44px;font-weight:700;font-size:14px;letter-spacing:.5px}
.invoice-doc-parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:6px 32px 0}
.invoice-doc-parties h2{margin:0 0 6px;font-size:18px;color:#3d3c4a}
.invoice-doc-parties p{margin:0 0 3px;color:#5f5e6e;line-height:1.45;overflow-wrap:anywhere}
.invoice-doc-from{text-align:right}
.invoice-doc-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;padding:16px 32px 0;color:#5f5e6e}
.invoice-doc-meta p{margin:0;display:inline-flex;align-items:center;gap:6px}
.invoice-doc-table{width:calc(100% - 64px);margin:14px 32px 0;border-collapse:collapse}
.invoice-doc-table th{background:var(--primary-dark);color:#fff;font-weight:600;padding:9px 12px;text-align:left}
.invoice-doc-table td{padding:8px 12px;border:1px solid #d9d8e2;color:#3d3c4a}
.invoice-doc-table .num{text-align:right;white-space:nowrap}
.invoice-doc-bill{display:inline-flex;vertical-align:middle;margin-left:4px;color:var(--primary)}
.invoice-doc-bill .icon{width:15px;height:15px}
.invoice-doc-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:14px 32px 0}
.modal-body .invoice-doc .invoice-doc-disclaimer{margin:6px 0 0;color:#c62828;font-weight:700;font-size:16px;line-height:1.4}
.invoice-doc-totals{width:min(340px,100%);margin:0 0 0 auto;flex:none}
.invoice-doc-subtotal,.invoice-doc-sumline{display:flex;justify-content:space-between;padding:8px 14px}
.invoice-doc-subtotal{background:var(--primary-dark);color:#fff;font-size:14px}
.invoice-doc-sumline{border-bottom:1px solid #e4e3ec;color:#3d3c4a}
.invoice-doc-sumline.is-due strong{color:#c62828}
.invoice-doc-note{padding:16px 32px 0}
.invoice-doc-note h3,.invoice-doc-pay h3{margin:0 0 6px;font-size:14px;color:#3d3c4a}
.invoice-doc-note p{margin:0;color:#5f5e6e;line-height:1.5;border-bottom:1px solid #d9d8e2;padding-bottom:6px}
.invoice-doc-footer{display:grid;grid-template-columns:1.3fr 1fr;align-items:end;gap:20px;padding:18px 32px 26px}
.invoice-doc-pay dl{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;margin:0}
.invoice-doc-pay dt{font-weight:700;color:#3d3c4a}
.invoice-doc-pay dt small{font-weight:500;color:var(--primary)}
.invoice-doc-pay dd{margin:0;color:#5f5e6e;overflow-wrap:anywhere}
.invoice-doc-thanks{margin:0;text-align:center;font-size:34px;font-weight:600;color:var(--primary-dark);letter-spacing:.5px}
@media(max-width:700px){.invoice-doc-parties,.invoice-doc-footer{grid-template-columns:1fr}.invoice-doc-from{text-align:left}.invoice-doc-banner h1{font-size:30px}.invoice-doc-no{position:relative;right:auto;top:auto;margin-top:8px}.invoice-doc-table{width:calc(100% - 32px);margin-inline:16px}.invoice-doc-parties,.invoice-doc-meta,.invoice-doc-note,.invoice-doc-footer{padding-inline:16px}.invoice-doc-summary{flex-direction:column-reverse;margin-inline:16px}.invoice-doc-totals{width:100%}}
/* The invoice view popup must not be printed: printing the page while it is open prints nothing. */
@media print{body:has(#modal[open] .invoice-view){visibility:hidden!important}body:has(#modal[open] .invoice-view) *{visibility:hidden!important}}
.modal-body .invoice-doc p{font-size:13px;line-height:1.45;color:#5f5e6e}
.modal-body .invoice-doc .invoice-doc-no{color:#fff;font-size:15px;font-weight:700;line-height:1.2}
.modal-body .invoice-doc .invoice-doc-thanks{font-size:34px;line-height:1.1;font-weight:600;color:var(--primary-dark)}
.modal-body .invoice-doc .invoice-doc-parties p{font-size:13.5px}
/* Banner: "{Month} Invoice" + payment status on the left, invoice number + date on the right. */
.invoice-doc-banner{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.invoice-doc-title,.invoice-doc-ref{position:relative;z-index:1}
.modal-body .invoice-doc .invoice-doc-banner h1{font-size:30px;letter-spacing:1px;line-height:1.1;margin:0;white-space:nowrap}
@media(max-width:700px){.modal-body .invoice-doc .invoice-doc-banner h1{white-space:normal}}
.modal-body .invoice-doc .invoice-doc-status{margin:8px 0 0}
.invoice-doc-status .badge{background:#ffffffe6;color:var(--primary-dark);font-weight:600}
.invoice-doc-ref{text-align:right;padding-top:0}
.invoice-doc-brand{position:relative;z-index:1;display:flex;align-items:center;gap:14px}
.invoice-doc-logo{width:56px;height:56px;flex:none;padding:6px;border-radius:12px;background:#fff;box-shadow:0 2px 8px #0000002e}
.invoice-doc-site{position:absolute;top:12px;right:32px;z-index:1;color:#fff;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.modal-body .invoice-doc .invoice-doc-ref .invoice-doc-no{position:static;margin:0;line-height:33px;white-space:nowrap}
.modal-body .invoice-doc .invoice-doc-date{margin:-4px 0 0;color:#ffffffde;font-size:13px}
.invoice-doc-parties{padding-top:14px}
@media(max-width:700px){.invoice-doc-banner{flex-direction:column;gap:6px}.invoice-doc-ref{text-align:left}.invoice-doc-site{right:16px}.modal-body .invoice-doc .invoice-doc-ref .invoice-doc-no{line-height:1.2;white-space:normal}}
/* Email preview confirmation popup (opens on top of the current screen). */
dialog.email-preview-dialog{width:min(780px,calc(100% - 32px));max-height:92vh}
dialog.email-preview-dialog .modal-head{position:static}
.email-preview-meta{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0 0 12px;font-size:13px}
.email-preview-meta dt{font-weight:700;color:var(--text)}
.email-preview-meta dd{margin:0;color:var(--muted);overflow-wrap:anywhere}
.email-preview-frame{display:block;width:100%;height:min(62vh,640px);border:1px solid var(--border);border-radius:10px;background:#f3f5fa}
.payment-pay-summary{margin:0 0 12px;font-size:13px}
.payment-pay-summary .payment-method-due{margin-left:0}
.interac-pay-wrap .notice{margin:4px 0 12px}
/* With Cash (no evidence field) the note takes the full row. */
.interac-note-row:has(.interac-evidence[hidden]){grid-template-columns:1fr}
/* Payments grid in the Make Payment popup: plain trash icon (no filled background), red on hover. */
dialog .payment-history .icon-btn[data-action$="-delete"]:not(:disabled){background:transparent;border-color:transparent;color:var(--muted)}
dialog .payment-history .icon-btn[data-action$="-delete"]:not(:disabled):is(:hover,:focus-visible){background:#fff0f1;border-color:transparent;color:#b42332}
/* Make Payment popup is wide enough to show the whole Payments grid without scrolling. */
#modal:has(.interac-pay-wrap){width:min(1080px,calc(100% - 32px))}
.payment-history :is(th,td){white-space:nowrap}
.payment-history td:nth-child(5){white-space:normal}
.payment-history .badge{white-space:nowrap}
.payment-history td.payment-comment,.invoice-lines-table td.payment-comment{white-space:normal;min-width:140px;max-width:260px;overflow-wrap:anywhere}
dialog.payment-confirm-dialog{width:min(480px,calc(100% - 32px))}
/* Owner / agent view of the Payments grid has more columns: wider popup, compact cells. */
#modal:has(.interac-pay-wrap){width:min(1320px,calc(100% - 32px));max-width:calc(100% - 32px)}
.payment-history :is(th,td){padding:7px 9px;font-size:13px}
.payment-history td.payment-comment{min-width:120px;max-width:200px}
.payment-history td:nth-child(5){min-width:90px}
.payment-history .actions{gap:2px}
.payment-history .icon-btn{width:30px;height:30px;min-width:30px}
/* Let text columns wrap so the whole grid (incl. Actions) fits ~1100px screens; amounts/status/actions stay on one line. */
.payment-history :is(th,td){white-space:normal}
.payment-history th,.payment-history td.num,.payment-history .badge,.payment-history td:last-child{white-space:nowrap}
.payment-history td:first-child{min-width:84px}
.payment-history td:nth-child(2){min-width:80px}
.payment-history td:nth-child(4){max-width:150px;overflow-wrap:anywhere}
.payment-history td.payment-comment{min-width:100px;max-width:170px}
.payment-history .badge{font-size:10px;padding:3px 7px}
/* Loading screen: full-colour ApplyRent logo, larger. */
.boot .boot-logo{display:block;width:160px;height:160px;object-fit:contain;margin:0 auto 6px}
@media(max-width:480px){.boot .boot-logo{width:120px;height:120px}}
.invoice-lines-table tfoot th{background:var(--primary-soft);font-weight:700}
/* Profile popup: profile picture and signature side by side. */
.account-picture-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:24px;align-items:start}
.account-signature #signature-pad,.account-signature #signature-upload-preview,.account-signature #signature-upload-preview .signature-preview{height:140px;max-height:140px}
.account-signature #signature-upload-preview .signature-preview{box-sizing:border-box}
.account-signature .signature-upload-control{margin-inline-start:0}
@media(max-width:860px){.account-picture-split{grid-template-columns:1fr}}
/* Rental Units, Posts, Properties and Browse cards: ten records fit on one screen, and previous / next share the records-per-page line. */
.grid-toolbar.grid-toolbar-pager{align-items:center;flex-wrap:nowrap}
.grid-toolbar-pager>.grid-pagination{padding:0;margin-inline-start:auto;gap:16px}
:is(.main,.public-main) .property-grid.compact-cards{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
@media(min-width:1100px){:is(.main,.public-main) .property-grid.compact-cards{grid-template-columns:repeat(5,minmax(0,1fr))}}
:is(.main,.public-main) .property-grid.compact-cards .property-photo{height:96px}
:is(.main,.public-main,#modal) .compact-cards .property-card .property-info{padding:7px 10px}
:is(.main,.public-main,#modal) .compact-cards .property-card .property-info h3{font-size:13px;margin-bottom:2px}
:is(.main,.public-main,#modal) .compact-cards .property-card .property-features{margin:4px 0;padding-bottom:5px;gap:3px 10px;font-size:11px}
:is(.main,.public-main,#modal) .compact-cards .property-card .property-features .icon{width:13px;height:13px}
:is(.main,.public-main,#modal) .compact-cards .property-features .preview-amenities{flex-wrap:nowrap;overflow:hidden;max-width:100%}
:is(.main,.public-main,#modal) .compact-cards .property-features .preview-amenities .chip{flex:0 0 auto;white-space:nowrap}
:is(.main,.public-main,#modal) .compact-cards .property-card .property-price strong{font-size:13px}
:is(.main,.public-main,#modal) .compact-cards .workspace-card .workspace-card-footer{margin-top:4px}
@media(max-width:600px){.grid-toolbar.grid-toolbar-pager{flex-wrap:wrap}.grid-toolbar-pager>.grid-pagination{margin-inline-start:0}}
.public-main .compact-cards .property-card .property-info{font-size:12px}
.public-main .compact-cards .property-card .property-name-location>span{font-size:12px}
.public-main .compact-cards .property-card .property-price>span{font-size:11px}
.public-main .compact-cards .property-card .property-features .preview-parking-lease{gap:10px}
/* Browse: records per page and the pager sit to the right of the heading. */
.browse-heading{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.browse-grid-controls{margin-inline-start:auto}
.browse-grid-controls .grid-toolbar{margin:0;gap:24px}
/* Browse: tagline beside the logo, a tight heading block and the full page width for the cards. */
.browse-brand{display:flex;align-items:center;gap:18px;min-width:0}
.browse-brand .browse-tagline{margin:0;white-space:nowrap}
/* Beats the theme rules that colour every .eyebrow with the primary colour. */
html[data-theme] .public-header .eyebrow.browse-tagline,html[data-color][data-theme] .public-header .eyebrow.browse-tagline{color:var(--frame-text,#fff)}
.public-header.browse-header{padding-block:16px;padding-inline:24px}
.public-main.browse-main{max-width:none;padding:18px 24px 24px}
.browse-main .browse-heading h1{margin:0;line-height:1.15}
.browse-main>p{margin:4px 0 14px}
@media(min-width:1600px){.public-main .property-grid.compact-cards{gap:14px}.public-main .property-grid.compact-cards .property-photo{height:130px}}
@media(max-width:720px){.browse-brand{flex-wrap:wrap;gap:4px 12px}.public-main.browse-main{padding:16px}}
.browse-grid-controls .browse-toolbar .country-filter{margin:0;order:-1}
.public-header .browse-search{width:300px;max-width:100%}
@media(max-width:720px){.public-header .browse-search{width:100%}}
html[data-color] .public-header .browse-search input::placeholder{color:var(--frame-text,#fff);opacity:.8}
/* Browse: the DEMO / Contact us footer stays at the bottom of the window. */
.browse-main .contact-public-footer{position:fixed;inset-inline:0;bottom:0;z-index:20;margin:0;padding:10px 24px;background:var(--bg);border-top:1px solid var(--border)}
.public-main.browse-main{padding-bottom:calc(var(--active-footer-height) + env(safe-area-inset-bottom,0px) + 16px)}
/* Browse: the header is as tall as the signed-in pages' header, and the footer is theirs, spanning the full width. */
@media(min-width:721px){.public-header.browse-header{height:var(--page-topbar-height);padding-block:0}.public-header.browse-header nav{flex-wrap:nowrap}}
html[data-color] .footer.public-footer{inset-inline-start:0}
/* Browse fills the window: two rows of cards share the height between the heading and the fixed footer; photos take the extra height. */
@media(min-width:721px){
#app:has(> .browse-main){display:flex;flex-direction:column;height:100dvh}
#app:has(> .browse-main)>.public-header{flex:none}
.public-main.browse-main{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;width:100%;box-sizing:border-box}
.browse-main>.property-grid.compact-cards{flex:1 1 0;min-height:440px;grid-auto-rows:calc((100% - 14px)/2);row-gap:14px}
.browse-main .compact-cards .property-card{display:flex;flex-direction:column;height:100%}
.browse-main .compact-cards .property-card .property-photo{flex:1 1 auto;position:relative;height:auto;min-height:96px}
.browse-main .compact-cards .property-card .property-photo img{position:absolute;inset:0;width:100%;height:100%}
.browse-main .compact-cards .property-card .property-info{flex:none}
}
.contact-footer-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none}.contact-footer-link>span{text-decoration:underline;text-underline-offset:3px}
/* Listing preview (Rental Unit, Posts, Browse): photo mosaic, price and key facts, sections, and a side panel. */
#modal:has(.listing-layout){width:min(1280px,calc(100% - 32px))!important;height:calc(100dvh - 48px)}
#modal:has(.listing-layout) .modal-body{display:block;overflow:auto}
.property-detail-layout.listing-layout{display:block}
.listing-mosaic{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,2fr);gap:8px;height:clamp(240px,42vh,430px);margin-bottom:16px}
.listing-mosaic.is-single{grid-template-columns:1fr}
.listing-mosaic img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:10px;cursor:pointer;background:#eef0f5}
.listing-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;min-height:0}
.listing-thumb{position:relative;min-height:0}
.listing-thumb img.is-selected{outline:3px solid var(--primary);outline-offset:-3px}
.listing-more{position:absolute;inset-inline-end:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:0;border-radius:8px;background:#000000b3;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.listing-more .icon{width:16px;height:16px}
.listing-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.listing-main,.listing-side{display:grid;gap:12px;min-width:0;align-content:start}
.listing-side{position:sticky;top:0}
.listing-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px 18px;margin:0}
.listing-card h4{margin:0 0 10px;font-size:16px;font-weight:600;color:var(--text)}
.listing-price{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.listing-rent{margin-top:8px;font-size:30px;font-weight:700;line-height:1.1;color:var(--primary)}
.listing-rent small{font-size:14px;font-weight:500;color:var(--muted)}
.listing-deposit{margin-top:2px;font-size:13px;color:var(--muted)}
.listing-title{margin:10px 0 2px;font-size:17px;font-weight:600}
.listing-address{margin:0;font-size:14px}
.listing-available{display:flex;align-items:center;gap:6px;margin:8px 0 0;font-size:13px;color:var(--muted)}
.listing-available .icon{width:15px;height:15px}
.listing-keyfacts{display:flex;gap:22px}
.listing-keyfacts>span{display:grid;justify-items:center;gap:2px;font-size:15px}
.listing-keyfacts .icon{width:22px;height:22px;color:var(--muted)}
.listing-keyfacts small{font-size:11px;color:var(--muted)}
.listing-summary{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px 20px}
.listing-summary small{display:block;font-size:12px;font-weight:600;color:var(--text)}
.listing-summary span{font-size:13px;color:var(--muted)}
.listing-utility{margin:0 0 8px;font-size:13px}
.listing-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.listing-videos video{width:100%;border-radius:8px}
.listing-action-buttons{display:grid;gap:8px}
.listing-action-buttons .btn{width:100%;justify-content:center}
.listing-layout :is(.property-detail-media,.property-detail-information){overflow:visible;padding-right:0;scrollbar-gutter:auto}
.listing-actions form{display:grid;gap:10px}
.listing-owner-list{display:grid;gap:10px}
.listing-owner-list .person small{display:block;font-size:11px;color:var(--muted)}
@media(max-width:860px){.listing-body{grid-template-columns:1fr}.listing-side{position:static}.listing-mosaic{grid-template-columns:1fr;height:auto}.listing-mosaic>.listing-hero{height:240px}.listing-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none}.listing-thumb img{height:72px}}
.listing-mosaic .property-media-gallery{display:none!important}
.listing-layout>.listing-body{margin-top:16px}
.listing-mosaic{grid-template-rows:minmax(0,1fr);overflow:hidden}
.listing-mosaic>*,.listing-thumb{min-height:0;min-width:0;overflow:hidden;border-radius:10px}
.listing-mosaic img:focus:not(:focus-visible){outline:none}
@media(max-width:860px){.listing-mosaic{grid-template-rows:240px auto;overflow:visible}}
/* Listing photo gallery (opened from a listing preview): thumbnails left, photos stacked right, click for full screen. */
dialog.listing-gallery{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--card);color:var(--text)}
dialog.listing-gallery::backdrop{background:#0009}
dialog.listing-gallery[open]{display:flex;flex-direction:column}
.gallery-bar{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid var(--border);flex:none}
.gallery-heading{display:flex;align-items:center;gap:10px;min-width:0;flex:1;font-size:15px}
.gallery-heading>.icon{width:20px;height:20px;color:var(--primary);flex:none}
.gallery-heading strong{font-size:17px;white-space:nowrap}
.gallery-heading span{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.gallery-price{padding-inline-start:12px;border-inline-start:1px solid var(--border);color:var(--primary);white-space:nowrap}
.gallery-bar .icon-btn{color:var(--text)}
.gallery-body{position:relative;display:grid;grid-template-columns:minmax(220px,26%) minmax(0,1fr);flex:1;min-height:0}
/* Thumbnails keep a fixed 4:3 box (padding hack, not aspect-ratio) so Safari never squeezes the rows to fit the panel height. */
.gallery-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;gap:8px;align-content:start;padding:14px;overflow-y:auto;min-height:0;border-inline-end:1px solid var(--border)}
.gallery-thumb{position:relative;display:block;width:100%;height:auto;min-height:0;padding:0;border:3px solid transparent;border-radius:8px;background:#eef0f5;overflow:hidden;cursor:pointer;box-sizing:border-box}
.gallery-thumb::before{content:"";display:block;padding-top:75%}
.gallery-thumb img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.gallery-thumb.is-active{border-color:var(--primary)}
.gallery-stage{overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;background:var(--bg);outline:none}
.gallery-photo{display:flex;align-items:center;justify-content:center;height:100%;margin:0;padding:12px 24px;box-sizing:border-box;scroll-snap-align:start}
.gallery-photo img{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:6px;cursor:zoom-in;background:#eef0f5}
.gallery-count{position:absolute;bottom:18px;left:calc(max(220px,26%) + (100% - max(220px,26%))/2);transform:translateX(-50%);padding:4px 12px;border-radius:999px;background:#000000a6;color:#fff;font-size:13px;font-weight:600;pointer-events:none}
.gallery-photo img:fullscreen{width:100vw;height:100vh;max-width:none;max-height:none;object-fit:contain;background:#000;border-radius:0;cursor:zoom-out}
@media(max-width:720px){.gallery-body{grid-template-columns:1fr}.gallery-thumbs{display:none}.gallery-count{left:50%}.gallery-heading span,.gallery-price{display:none}}
.gallery-full{display:none}
.gallery-full:fullscreen{display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;background:#000;cursor:zoom-out}
.gallery-full:fullscreen>img{max-width:100vw;max-height:100vh;object-fit:contain}
.gallery-full-step{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:52px;height:52px;border:0;border-radius:50%;background:#ffffff26;color:#fff;cursor:pointer}
.gallery-full-step[data-full-step="-1"]{left:24px}.gallery-full-step[data-full-step="1"]{right:24px}
.gallery-full-step:hover{background:#ffffff47}.gallery-full-step:disabled{opacity:.25;cursor:default}
.gallery-full-step .icon{width:28px;height:28px}
.gallery-full-count{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);padding:4px 12px;border-radius:999px;background:#ffffff26;color:#fff;font-size:14px;font-weight:600}
/* Properties cards: actions sit on the photo's top-right corner, the photo fills the card's spare height, owners wrap in a line. */
.workspace-card-grid .workspace-card{position:relative}
.workspace-card-grid .workspace-card .workspace-row-actions{position:absolute;top:10px;inset-inline-end:10px;z-index:2;gap:6px}
.workspace-card-grid .workspace-card .workspace-row-actions .icon-btn{background:#ffffffeb;border:0;box-shadow:0 2px 8px #0000002e;color:var(--primary)}
.workspace-card-grid .workspace-card .workspace-row-actions .icon-btn:is(:hover,:focus-visible){background:#fff}
.workspace-card-grid .workspace-card .workspace-row-actions .workspace-danger{color:#b84560}
.workspace-card-grid.compact-cards .workspace-card .property-photo{flex:1 1 auto;height:auto;min-height:150px;position:relative}
.workspace-card-grid.compact-cards .workspace-card .property-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.workspace-card-grid .workspace-card .property-info{flex:none}
.workspace-card-grid .workspace-card .workspace-owner-list{flex:1 1 100%}
@media(max-width:600px){.dashboard-page .dashboard-properties .panel-head h2{font-size:20px}}
/* Dashboard Recent(s) and Your properties: panels grow with their rows, so neither scrolls; long numbers wrap inside the table. */
.dashboard-bottom-row>.panel{height:auto!important}
.dashboard-bottom-row .dashboard-panel-content{overflow:visible}
.dashboard-applications .recent-activity-table{table-layout:fixed}
.dashboard-applications .recent-activity-table :is(th,td){white-space:normal;overflow-wrap:anywhere;padding:9px 10px}
.sidebar .nav-item>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sidebar .nav-item>.count{flex:none;margin-inline-start:auto}
.filter-tab .filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin-inline-start:6px;padding:0 5px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:10px;font-weight:700;line-height:1}
.filter-tab.active .filter-count{background:var(--primary);color:#fff}
.sidebar .nav-item>.count{overflow:visible;min-width:auto;text-overflow:clip}
/* Invoice view: "Record payment on behalf" is a bordered section like the others, with its four fields on one row. */
form.invoice-record-payment{padding:20px;margin:16px 0}
.invoice-view-grid.invoice-view-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.invoice-view-grid.invoice-view-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.invoice-view-grid.invoice-view-grid-4{grid-template-columns:1fr}}
/* Left panel counts (Applications, Lease Agreements, Invoice): a raised superscript badge right after the label. */
.sidebar .nav-item>span:not(.count){flex:0 1 auto}
.sidebar .nav-item>.count{align-self:flex-start;margin:0 0 0 -6px;margin-inline-start:-6px;transform:translateY(-3px);min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:999px;font-size:10px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 1px 3px #0000002e}
/* Fixed record grids (Applications, Team, Invoices, Leases, Lease templates, Billing, User subscriptions, Dropdowns):
   controls on the right, sticky column headers, rows scroll inside the grid and never sideways. */
.grid-toolbar.grid-toolbar-right{justify-content:flex-end;gap:24px}
.grid-toolbar.grid-toolbar-right>.grid-pagination{margin-inline-start:0}
.table-wrap.grid-fixed-scroll{overflow-x:hidden!important;overflow-y:auto;overscroll-behavior:contain}
.grid-fixed-scroll>table{width:100%!important;min-width:0!important}
.grid-fixed-scroll>table>thead{position:sticky;top:0;z-index:3;background:var(--card)}
.grid-fixed-scroll>table>thead th{background:var(--card)}
.grid-fixed-scroll>table>thead>tr:first-child th{background:var(--primary-soft)}
.grid-fixed-scroll>table :is(th,td){white-space:normal!important;overflow-wrap:anywhere}
.grid-fixed-scroll>table th .grid-sort-button{white-space:normal;text-align:start}
.grid-fixed-scroll .data-table.record-table td.record-actions>:is(.actions,.workspace-row-actions,.subscription-row-actions){flex-wrap:wrap!important;min-width:0!important;white-space:normal!important}
.grid-fixed-scroll .grid-column-filter{min-width:0;width:100%}
/* Invoices grid: unpaid statuses stand out in red. */
.invoices-table .badge:is(.pending-payment,.partially-paid){color:#c62828;background:#fdecec}
html[data-theme=dark] .invoices-table .badge:is(.pending-payment,.partially-paid){color:#ff8a80;background:#4a1f24}
.data-table td.lease-term,.grid-fixed-scroll>table td.lease-term{white-space:nowrap!important;overflow-wrap:normal}
.data-table th.lease-term{width:215px}
/* Lease agreements grid: status colours follow the applications grid; monthly rent is right-aligned. */
.leases-table .num{text-align:right!important;white-space:nowrap}
.leases-table .badge.pending-approval{color:#6488b3;background:#edf4fc}
.leases-table .badge:is(.under-review,.awaiting-acceptance){color:#b28645;background:#fff5e5}
.leases-table .badge:is(.completed,.active){color:#3c9373;background:#eaf6ef}
.leases-table .badge:is(.rejected,.terminated){color:#c0787d;background:#fceff0}
.leases-table .badge:is(.expired,.draft){color:#77768b;background:#f1f0f5}
html[data-theme=dark] .leases-table .badge.pending-approval{background:#28415e}
html[data-theme=dark] .leases-table .badge:is(.under-review,.awaiting-acceptance){background:#59431f}
html[data-theme=dark] .leases-table .badge:is(.completed,.active){background:#21513d}
html[data-theme=dark] .leases-table .badge:is(.rejected,.terminated){background:#642e3a}
/* Properties cards: one fixed layout; several owners open from a dropdown. */
.workspace-card-grid .workspace-card .property-features{flex-wrap:nowrap;white-space:nowrap;overflow:hidden}
.workspace-owner-menu{position:relative}
.workspace-owner-menu>summary{list-style:none;cursor:pointer;gap:5px}
.workspace-owner-menu>summary::-webkit-details-marker{display:none}
.workspace-owner-menu>summary b{font-weight:700}
.workspace-owner-menu>summary .icon{width:12px;height:12px;transition:transform .15s}
.workspace-owner-menu[open]>summary .icon{transform:rotate(180deg)}
.workspace-owner-popover{position:absolute;bottom:calc(100% + 6px);left:0;z-index:5;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:200px;max-height:220px;overflow-y:auto;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--card);box-shadow:0 10px 30px #2a225033}
.workspace-card-grid .workspace-card{overflow:visible}
.workspace-card-grid .workspace-card .property-photo{border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;overflow:hidden}
/* Rental Unit and Posts: compact Country and Sort by dropdowns without visible labels. */
.listing-controls{display:flex;align-items:center;gap:10px;margin-inline-start:auto;flex-wrap:wrap}
.listing-controls .field{display:block;margin:0;min-width:0}
.listing-controls .field>span{display:none}
.listing-controls select,.property-filter-controls.listing-controls select,.posts-filters .listing-controls .country-filter select{width:170px;min-width:0;height:36px;min-height:36px;padding:0 12px;font-size:12px;border-radius:7px}
.workspace-view-tabs{margin:14px 0 12px}
.workspace-view-tabs .tab{display:inline-flex;align-items:center;gap:2px;font-size:14px;font-weight:600}
.workspace-view-grid[hidden]{display:none}
.listing-tabs{margin:0 0 14px}
.listing-tabs .tab{display:inline-flex;align-items:center;gap:2px;font-size:14px;font-weight:600}
.listing-tab-panel[hidden]{display:none}
.listing-header-actions{margin-inline-start:auto;margin-inline-end:8px}
/* Rental Unit / Posts cards and dashboard panels fill the page height (extra height set by grids.js). */
.main .property-grid.compact-cards:not(.workspace-card-grid) .property-photo{height:calc(96px + var(--fill-extra,0px))}
/* The chat button can sit over those sections; it steps aside while the pointer is on them. */
.floating-chat-button{transition:opacity .15s}
/* Dashboard Recent(s): seven compact rows fit without scrolling. */
.dashboard-applications .recent-activity-table{font-size:12px}
.dashboard-applications .recent-activity-table :is(th,td){padding:6px 9px;line-height:1.35}
/* Dashboard "Your properties": thumbnail cards with the post count as a superscript badge; a click opens the post. */
.dashboard-property-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;padding:2px 18px 14px}
.dashboard-property-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:0;border:0;background:none;text-align:start;color:var(--text);cursor:pointer}
.dashboard-property-card strong{font-size:12px;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-property-card:is(:hover,:focus-visible) strong{color:var(--primary)}
.dashboard-property-thumb{position:relative;display:block;aspect-ratio:4/3;border-radius:10px;overflow:visible}
.dashboard-property-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px;background:#eef0f5;transition:transform .15s}
.dashboard-property-card:hover .dashboard-property-thumb img{transform:scale(1.03)}
.dashboard-post-count{position:absolute;top:-7px;inset-inline-end:-7px;min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;border-radius:999px;background:var(--primary);color:#fff;font-size:11px;font-weight:700;line-height:20px;text-align:center;box-shadow:0 2px 6px #0000003a}
.dashboard-property-cards{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px 12px}
.dashboard-property-thumb{aspect-ratio:auto;height:72px}
.dashboard-property-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:700px){.dashboard-property-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.dashboard-applications .recent-activity-table td:nth-child(3){white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.dashboard-applications .recent-activity-table{table-layout:auto}
.dashboard-applications .recent-activity-table :is(th,td):not(:nth-child(4)){white-space:nowrap!important;overflow-wrap:normal}
.floating-chat-button.is-stepped-aside{opacity:0;pointer-events:none}
.listing-posts-panel{padding:0;overflow:hidden}
.listing-posts-panel>.grid-toolbar{margin:0;padding:12px 16px;background:var(--primary-soft)}
.listing-owner-group{display:grid;gap:2px;margin-top:4px;padding-top:10px;border-top:1px solid var(--border)}
.listing-owner-group small{font-size:11px;color:var(--muted)}
.listing-owner-group strong{font-size:13px}
.listing-owner-contact{display:grid;gap:8px;margin-top:6px}
.listing-owner-contact .btn{width:100%;justify-content:center}
dialog.listing-contact-dialog{width:min(560px,calc(100% - 32px));padding:22px;border:0;border-radius:16px;background:var(--card);color:var(--text);box-shadow:0 20px 60px #0004}
dialog.listing-contact-dialog::backdrop{background:#0006}
.listing-contact-dialog h3{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.listing-contact-dialog textarea{width:100%;box-sizing:border-box;font:inherit;line-height:1.5}
.listing-contact-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
/* Rental Unit and Posts cards: the Properties group name on the photo's top-right corner. */
.property-photo .property-group-tag{position:absolute;top:10px;inset-inline-end:10px;z-index:2;display:inline-flex;align-items:center;gap:4px;max-width:55%;padding:3px 8px;border-radius:999px;background:#ffffffe6;color:var(--primary);font-size:10px;font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 4px #0000002e}
.property-photo .property-group-tag .icon{width:11px;height:11px;flex:none}
.table-wrap.grid-fixed-scroll>.data-table.record-table.invoices-table :is(th,td):is(:nth-child(1),:nth-child(2),:nth-child(6)){white-space:normal!important;overflow-wrap:anywhere!important}
.listing-header-contact{display:flex;gap:8px;margin-inline-start:auto;margin-inline-end:8px}
.listing-header-contact+.listing-header-actions{margin-inline-start:0}
.posts-filters:has(.posts-grid-controls){display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.posts-grid-controls{flex:1;min-width:0}
.posts-grid-controls .grid-toolbar{margin:0}
.posts-filters .posts-grid-controls+.listing-controls{margin-inline-start:0}
/* Pages with status tabs (Applications, Leases, Rental Unit, Posts, Invoice): the tabs and buttons share the heading's line on wide screens. */
@media(min-width:1101px){
.page-heading:has(.rentalunit-heading-filters){flex-wrap:nowrap;align-items:center}
.page-heading:has(.rentalunit-heading-filters)>div:first-child{flex:0 1 auto;min-width:180px}
.page-heading .heading-actions:has(.rentalunit-heading-filters){flex-wrap:nowrap;gap:10px}
.heading-actions .filters.rentalunit-heading-filters{flex-wrap:nowrap;gap:8px}
.heading-actions .rentalunit-heading-filters .filter-tabs{flex-wrap:nowrap;gap:2px}
.heading-actions .rentalunit-heading-filters .filter-tab{padding:7px 8px;white-space:nowrap}
.heading-actions .rentalunit-heading-filters .filter-tab>.button-label-icon{display:none}
.heading-actions:has(.rentalunit-heading-filters)>.btn{white-space:nowrap;flex:none}
}
.page-heading:has(.posts-heading-controls){align-items:center;flex-wrap:nowrap}
.page-heading:has(.posts-heading-controls)>div:first-child{flex:0 1 auto;min-width:200px}
.heading-actions:has(.posts-heading-controls){flex:1 1 auto;min-width:0;justify-content:flex-end}
.posts-heading-controls{margin:0;flex-wrap:nowrap;justify-content:flex-end}
.posts-heading-controls .posts-grid-controls{flex:0 1 auto}
.posts-heading-controls .grid-toolbar{gap:14px;flex-wrap:nowrap}
.posts-heading-controls .grid-pagination{gap:10px}
@media(max-width:1100px){.page-heading:has(.posts-heading-controls){flex-wrap:wrap}.posts-heading-controls{flex-wrap:wrap;justify-content:flex-start}}
/* Status filter dropdown (Applications, Leases, Invoice) and the heading's records-per-page / pager slot. */
.filter-menu{position:relative}
.filter-menu>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;max-width:240px}
.filter-menu>summary::-webkit-details-marker{display:none}
.filter-menu-label{overflow:hidden;text-overflow:ellipsis;min-width:0}
.filter-menu>summary>.icon:last-child{width:14px;height:14px;transition:transform .15s}
.filter-menu[open]>summary>.icon:last-child{transform:rotate(180deg)}
.filter-menu-list{position:absolute;top:calc(100% + 6px);inset-inline-end:0;z-index:30;display:grid;gap:2px;min-width:240px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--card);box-shadow:0 12px 32px #2a225033}
.filter-menu-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:0;border-radius:8px;background:none;color:var(--text);font:inherit;font-size:12px;text-align:start;cursor:pointer}
.filter-menu-item:hover{background:var(--primary-soft)}
.filter-menu-item.active{color:var(--primary);font-weight:600}
.filter-menu-item .filter-count{margin-inline-start:auto}
.filter-menu-check{display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid var(--border);border-radius:4px;font-size:11px;color:#fff;flex:none}
.filter-menu-item.active .filter-menu-check{background:var(--primary);border-color:var(--primary)}
.heading-grid-controls:empty{display:none}
.heading-grid-controls .grid-toolbar{margin:0;padding:0;background:none;gap:12px;flex-wrap:nowrap}
.heading-grid-controls .grid-toolbar .grid-size{white-space:nowrap}
.heading-grid-controls .grid-pagination{gap:8px;flex-wrap:nowrap;white-space:nowrap}
.heading-grid-controls .grid-range{white-space:nowrap}
.grid-column-filters[hidden]{display:none}
/* Posts (tenant): keep the controls on the heading line. */
.page-heading .filters.posts-filters.posts-heading-controls{flex-wrap:nowrap}
.page-heading:has(.posts-heading-controls) h1{white-space:nowrap}
/* In heading slots the records-per-page dropdown keeps only its accessible name, to save width. */
.heading-grid-controls .grid-size,.posts-heading-controls .grid-size{font-size:0;gap:0}
.heading-grid-controls .grid-size select,.posts-heading-controls .grid-size select{font-size:12px;width:64px}
.posts-heading-controls .listing-controls{flex-wrap:nowrap}
.posts-heading-controls .listing-controls select{width:150px}
/* Loved posts: heart toggles. */
.love-toggle{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;cursor:pointer;color:var(--muted);transition:transform .12s,color .12s}
.love-toggle .icon{width:18px;height:18px;fill:none}
.love-toggle:hover{transform:scale(1.1)}
.love-toggle.is-loved,.love-filter.is-loved{color:#e0245e}
.love-toggle.is-loved .icon,.love-filter.is-loved .icon{fill:currentColor}
.property-photo .love-toggle.love-card{position:absolute;left:10px;bottom:10px;z-index:3;background:#ffffffe6;box-shadow:0 1px 4px #0000002e}
.listing-header-contact .love-toggle,.love-toggle.love-header{width:40px;height:40px;border:1px solid var(--border);background:var(--card)}
.love-toggle.love-header{margin-inline-end:8px}
.gallery-bar .love-toggle.love-gallery{width:36px;height:36px}
html[data-color] .topbar .love-filter.is-loved{color:#ffb3c8}
/* Hearts: no background badge; larger; red when loved (including the header filter). */
.love-toggle,.property-photo .love-toggle.love-card,.listing-header-contact .love-toggle,.love-toggle.love-header,.gallery-bar .love-toggle.love-gallery{background:none!important;border:0!important;box-shadow:none!important}
.property-photo .love-toggle.love-card{left:8px;bottom:8px;width:36px;height:36px;color:#fff;filter:drop-shadow(0 1px 2px #000000a6)}
.property-photo .love-toggle.love-card .icon{width:28px;height:28px;stroke-width:2.2}
.love-toggle.love-header{width:44px;height:44px}
.love-toggle.love-header .icon{width:30px;height:30px}
.gallery-bar .love-toggle.love-gallery{width:42px;height:42px}
.gallery-bar .love-toggle.love-gallery .icon{width:28px;height:28px}
.love-toggle.is-loved,.property-photo .love-toggle.love-card.is-loved{color:#e0245e}
.topbar .love-filter{background:none!important}
.topbar .love-filter .icon{width:22px;height:22px}
.topbar .love-filter.is-loved,html[data-color] .topbar .love-filter.is-loved{color:#ff1f4b}
.topbar .love-filter.is-loved .icon{fill:currentColor;filter:drop-shadow(0 0 1px #fff)}
/* Card carousel (Browse, Posts, Rental Unit, Properties): side arrows and page dots. */
.card-carousel{position:relative;padding-inline:56px}
.carousel-arrow{position:absolute;top:50%;z-index:4;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--card);color:var(--text);box-shadow:0 2px 8px #0000001f;transform:translateY(-50%);cursor:pointer}
.carousel-prev{left:0}.carousel-next{right:0}
.carousel-arrow:hover:not(:disabled){color:var(--primary);border-color:var(--primary)}
.carousel-arrow:disabled{opacity:.35;cursor:default}
.carousel-arrow[hidden],.carousel-dots[hidden]{display:none}
.carousel-arrow .icon{width:22px;height:22px}
.carousel-dots{display:flex;justify-content:center;gap:10px;margin-top:10px}
.carousel-dot{width:12px;height:12px;padding:0;border:1.5px solid var(--muted);border-radius:50%;background:transparent;cursor:pointer}
.carousel-dot.is-active{background:var(--primary);border-color:var(--primary)}
.property-grid.compact-cards.is-centered{grid-template-columns:repeat(var(--card-count),calc((100% - 40px)/5))!important;justify-content:center}
@media(max-width:1100px){.property-grid.compact-cards.is-centered{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important}}
@media(max-width:600px){.card-carousel{padding-inline:0}.carousel-arrow{top:auto;bottom:-52px;transform:none}.carousel-prev{left:8px}.carousel-next{right:8px}}
/* Browse: the carousel takes the page height and its two card rows share it. */
@media(min-width:721px){
.browse-main>.card-carousel{flex:1 1 0;min-height:440px;display:flex;flex-direction:column}
.browse-main>.card-carousel>.property-grid.compact-cards{flex:1 1 0;min-height:0;grid-auto-rows:calc((100% - 14px)/2);row-gap:14px}
.browse-main>.carousel-dots{margin:8px 0 0}
}
/* A page with fewer than 6 cards sits in the middle of the space above the footer. */
#main .card-carousel{display:flex;flex-direction:column;justify-content:center}
#main .card-carousel>.property-grid{width:100%}
@media(min-width:721px){.browse-main>.card-carousel{justify-content:center}.browse-main>.card-carousel>.property-grid.compact-cards.is-centered{flex:0 0 calc(50% - 7px);grid-auto-rows:100%}}
/* Application and lease cards. */
.record-card{cursor:pointer}
.property-photo .record-card-actions{position:absolute;right:8px;bottom:8px;z-index:3;display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 16px)}
.record-card-actions .icon-btn{width:30px;height:30px;padding:5px;border:0;border-radius:8px;background:#ffffffeb;box-shadow:0 1px 4px #0000002e;color:var(--primary)}
.record-card-actions .icon-btn.danger{color:#c62828}
.record-card-actions .icon-btn .icon{width:16px;height:16px}
.record-sort{display:flex;align-items:center;gap:6px}
.record-sort select{width:170px;height:36px;min-height:36px;padding:0 12px;font-size:12px;border-radius:7px}
.record-sort .listing-sort>span{display:none}
.record-sort-dir{height:36px;padding:0 10px;white-space:nowrap}
.record-sort-dir:disabled{opacity:.45}
.record-card-actions .icon-btn,.record-card-actions .icon-btn:is(:hover,:focus-visible){background:#fff!important;opacity:1!important}
.record-card-actions .icon-btn:hover{box-shadow:0 0 0 2px var(--primary)}
.record-card .record-card-meta{flex-basis:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:11px}
.record-card .property-price{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:nowrap}
.record-card .property-price>strong{flex:none;white-space:nowrap}
.record-card .property-price>span{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:end}
.record-card .property-price>span{font-size:10px;letter-spacing:-.1px}
.record-card .property-price>strong{font-size:13px}
/* Sort by menu with ↑ / ↓ per option; larger status badges on application and lease cards. */
.record-sort-menu>summary{min-width:170px;justify-content:space-between;background:var(--card);color:var(--text);border:1px solid var(--border)}
.record-sort-arrow{color:var(--primary);font-size:14px}
.record-sort-item{display:flex;align-items:center;gap:2px;border-radius:8px}
.record-sort-item .filter-menu-item{flex:1}
.record-sort-item.active>.filter-menu-item{color:var(--primary);font-weight:600}
.record-sort-dir-btn{width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:7px;background:none;color:var(--muted);font-size:15px;font-weight:700;cursor:pointer}
.record-sort-dir-btn:hover{background:var(--primary-soft);color:var(--primary)}
.record-sort-dir-btn.is-active{background:var(--button-gradient,none) var(--primary);color:#fff}
.record-card .property-photo>.badge{font-size:12px;padding:5px 11px}
html .page-heading .record-sort-menu>summary.btn{background:var(--button-gradient,none) var(--primary)!important;color:#fff!important;border:1px solid var(--primary)!important;box-shadow:none;font-weight:500;text-transform:none}
.record-sort-menu>summary>.icon{color:#fff}
.record-card.tone-attention{border:2px solid #d93636!important;box-shadow:0 0 0 1px #d9363633}
.record-card.tone-approved{border:2px solid #2f9e6b!important;box-shadow:0 0 0 1px #2f9e6b33}
/* Team cards (profile picture, details below, actions on the picture) and the cards / list toggle. */
.team-view-toggle{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--card)}
.team-view-toggle .team-view-btn{width:32px;height:32px;border:0;border-radius:7px;color:var(--muted)}
.team-view-toggle .team-view-btn.is-active{background:var(--button-gradient,none) var(--primary);color:#fff}
.team-card .property-photo img{object-fit:cover;object-position:center 30%}
.team-card .property-features{display:grid;gap:3px}
.team-card .team-card-line{display:flex;align-items:center;gap:5px;min-width:0}
.team-card .team-card-line>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-card .record-card-actions .btn{height:30px;padding:0 8px;font-size:11px}
.team-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
/* Dashboard Recent(s): cards with the step's icon, number and status. */
.recent-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:4px 18px 16px}
.recent-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:12px 8px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--text);cursor:pointer;transition:transform .12s,box-shadow .12s}
.recent-card:is(:hover,:focus-visible){transform:translateY(-2px);box-shadow:0 6px 18px #2a225026;border-color:var(--primary)}
.recent-card img{width:72px;height:72px;object-fit:contain}
.recent-card strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}
.recent-card small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.recent-card small.is-alert{color:#c62828}
@media(max-width:700px){.recent-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.recent-card strong{white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:10px;line-height:1.3;overflow:visible}
.view-pref-toggle{width:max-content}
.view-pref-option{display:grid;place-items:center;width:40px;height:36px;border-radius:7px;color:var(--muted);cursor:pointer}
.view-pref-option input{position:absolute;opacity:0;pointer-events:none}
.view-pref-option.is-active{background:var(--button-gradient,none) var(--primary);color:#fff}
.view-pref-option:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}
.view-pref-option .icon{width:18px;height:18px}
/* Recent(s) cards stay compact so the dashboard fits shorter windows. */
.recent-cards{gap:10px;padding-bottom:12px}
.recent-card{padding:8px 6px;gap:4px}
.recent-card img{width:56px;height:56px}
/* Bottom pill pager for record pages (same line as the chat button). */
.page-pill{position:fixed;left:50%;bottom:calc(var(--active-footer-height,var(--workspace-footer-height,0px)) + env(safe-area-inset-bottom,0px) + 18px);transform:translateX(-50%);z-index:54;display:flex;align-items:center;gap:10px;padding:5px;border:2px solid var(--border);border-radius:999px;background:var(--card);box-shadow:0 4px 18px #0002;color:var(--text)}
.page-pill[hidden]{display:none}
@media(min-width:721px){.page-pill{left:calc(50% + 118px)}}
.page-pill-arrow{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--primary);color:#fff;cursor:pointer}
.page-pill-arrow:disabled{background:#cfcfd6;cursor:default}
.page-pill-arrow .icon{width:20px;height:20px}
.page-pill-select select{height:34px;min-height:34px;padding:0 26px 0 10px;border:0;background-color:transparent;font-size:15px;font-weight:600;color:var(--text)}
.page-pill-total{font-size:15px;padding-inline-end:6px;white-space:nowrap}
#main:has(> .page-pill:not([hidden])){padding-bottom:78px}
/* Card carousels with more than 5 pages show the pill in place of the dots, under the cards. */
.page-pill.is-inline{position:static;left:auto;transform:none;margin:0 auto}
.carousel-dots.is-pill{margin-top:8px}
/* On phones the side arrows sit on the pager line; the pill has its own arrows. */
@media(max-width:600px){.card-carousel:has(+ .carousel-dots.is-pill) .carousel-arrow{display:none}}

/* Share by email: bottom-right of post cards, next to the heart in the post view and gallery. */
.share-toggle{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;color:var(--muted);flex:none}
.share-toggle:hover,.share-toggle:focus-visible{color:var(--primary)}
.property-price .share-toggle.share-card{width:30px;height:30px;margin-inline-start:auto}
.property-price .share-toggle.share-card .icon{width:20px;height:20px}
.share-toggle.share-header{width:44px;height:44px;margin-inline-end:8px;color:var(--text)}
.share-toggle.share-header .icon{width:26px;height:26px}
.gallery-bar .share-toggle.share-gallery{width:42px;height:42px;color:inherit}
.gallery-bar .share-toggle.share-gallery .icon{width:24px;height:24px}
.share-photo{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:0}
.share-photo img{width:96px;height:64px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}
.share-photo figcaption{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}
.share-photo figcaption .icon{width:16px;height:16px}
/* Request a showing: a card above the owner card in the post view, and its form popup. */
.listing-showing{display:grid;gap:12px;text-align:center}
.listing-showing p{margin:0;font-size:15px}
.listing-showing .btn{width:100%;justify-content:center;border-radius:999px;min-height:44px}
.showing-to{grid-column:1/-1;display:flex;align-items:center;gap:12px}
.showing-to>div{display:grid;gap:2px}
.showing-note{display:grid;justify-items:end;gap:2px;margin:0;font-size:13px;color:var(--muted)}
.required-mark{color:var(--danger,#d92d20);font-weight:600}
.header-form-popup form>.showing-full{grid-column:1/-1}
.header-form-popup .showing-method{display:flex;flex-wrap:wrap;gap:8px 24px;border:0;padding:0;margin:0}
.showing-method legend{padding:0;margin-bottom:6px;width:100%}
.showing-method label{display:flex;align-items:center;gap:6px;font-weight:400}
.showing-method input[type=radio],.showing-help .check input{width:16px;height:16px;min-height:0;flex:none}
.showing-count{text-align:end}
.showing-help{display:grid;gap:10px}
.showing-help .check{display:flex;align-items:flex-start;gap:8px;font-weight:400}
.showing-help .check input{margin-top:3px}
.showing-slots{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-inline-start:24px}
.showing-slots[hidden]{display:none}
.showing-slot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;flex:1 1 100%}
.showing-slot .field{margin:0}
.showing-slot input,.showing-slot select{min-width:0}
.showing-trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
/* Form popups (share, contact owner) follow the standard popup: themed header with the action and close button. */
.lease-detail-popup.header-form-popup{width:min(560px,calc(100% - 32px))}
.header-form-popup .modal-head h2{display:flex;align-items:center;gap:8px}
.header-form-popup .modal-head .btn{min-height:34px}
.header-form-popup form{display:grid;gap:12px}
.header-form-popup .field{margin:0}
.header-form-popup .field small{display:block;margin-top:4px}
.header-form-popup textarea{width:100%;box-sizing:border-box;font:inherit;line-height:1.5}
.header-form-popup input[readonly]{background:var(--bg);color:var(--muted)}
.header-form-popup .form-error:empty{display:none}

/* Applications / leases filtered to one post or rental unit from its menu. */
.record-scope-chip{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:2px 4px 2px 10px;border:1px solid var(--primary);border-radius:999px;background:var(--primary-soft);color:var(--text);font-size:12px;max-width:340px}
.record-scope-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.record-scope-chip>.icon{width:15px;height:15px;color:var(--primary);flex:none}
.record-scope-chip .icon-btn{min-width:26px;min-height:26px;width:26px;height:26px;border:0;background:none}
.record-scope-chip .icon-btn .icon{width:14px;height:14px}
.listing-post-cards{grid-template-columns:repeat(auto-fill,minmax(250px,280px));margin:0}
/* Properties / Rental Unit filter menus sit on one line with the country and sort controls. */
.heading-actions .rentalunit-heading-filters .listing-controls:has(.pick-filter-menu){flex-wrap:nowrap}
.listing-controls .pick-filter-menu>summary{height:36px;min-height:36px;max-width:200px;font-size:12px}
@media(max-width:900px){.heading-actions .rentalunit-heading-filters .listing-controls:has(.pick-filter-menu){flex-wrap:wrap}}
.heading-actions .rentalunit-heading-filters .listing-controls:has(.pick-filter-menu) select{width:132px}
.heading-actions .rentalunit-heading-filters .listing-controls .pick-filter-menu>summary{max-width:170px}
/* Searchable Rental Unit / Properties menus: wider, one line per option, search box beside "All". */
.pick-filter-menu.is-searchable .filter-menu-list{min-width:320px;max-width:min(360px,calc(100vw - 32px))}
.pick-filter-all{display:flex;align-items:center;gap:6px;padding-bottom:4px;margin-bottom:2px;border-bottom:1px solid var(--border)}
.pick-filter-all>.filter-menu-item{flex:none;white-space:nowrap}
.pick-filter-all input{flex:1;min-width:0;height:30px;padding:0 10px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--text);font:inherit;font-size:12px}
.pick-filter-items{display:grid;gap:2px;max-height:320px;overflow-y:auto}
.pick-filter-menu.is-searchable .filter-menu-item{white-space:nowrap}
.pick-filter-name{overflow:hidden;text-overflow:ellipsis}
.pick-filter-none{margin:6px 10px;font-size:12px}
@media(min-width:901px){.page-heading:has(.listing-controls .pick-filter-menu)>.heading-actions{flex:0 0 auto;max-width:calc(100% - 200px)}}
.pick-filter-items>[hidden]{display:none!important}
.pick-filter-all input{flex:0 0 50%;width:50%;margin-inline-start:auto}

/* Rental Unit / Properties menus: only as wide as the names need; the search box follows "All (n)". */
.pick-filter-menu.is-searchable .filter-menu-list{min-width:0;width:max-content;max-width:min(320px,calc(100vw - 32px))}
.pick-filter-all input{flex:1 1 0;width:auto;min-width:90px;margin-inline-start:0}
/* Country and Sort controls everywhere use the same themed button style as the filter menus. */
:is(.country-filter,.listing-sort) select{appearance:none;-webkit-appearance:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/14px,var(--button-gradient,none) var(--primary);color:#fff;border:1px solid var(--primary);font-weight:600;padding-inline-end:30px;cursor:pointer}
:is(.country-filter,.listing-sort) select:hover{background-color:var(--primary-dark)}
:is(.country-filter,.listing-sort) select:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
:is(.country-filter,.listing-sort) select option{background:var(--card);color:var(--text)}
html .page-heading .record-sort-menu>summary.btn:hover{background:var(--button-gradient,none) var(--primary-dark)!important}
.record-sort-menu>summary .record-sort-arrow{color:#fff}
:is(.country-filter,.listing-sort) select::picker-icon{display:none}
:is(.country-filter,.listing-sort) select{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.heading-actions .rentalunit-heading-filters .listing-controls:has(.pick-filter-menu) .listing-sort select{width:140px}


/* Every popup is the size of the post view popup: up to 1280px wide and the height of the screen, shrinking with the
   window and filling the screen on phones. Popup forms flow into as many columns as fit (5 wide, then 4, 3, 2, 1);
   text areas, notes and sections keep the full width. */
:is(#modal,dialog.lease-detail-popup,dialog.bill-type-dialog,dialog.email-preview-dialog,dialog.profile-picture-dialog,dialog.listing-contact-dialog)[open]{width:min(1280px,calc(100% - 32px))!important;max-width:none!important;height:calc(100dvh - 48px);max-height:calc(100dvh - 48px)!important;box-sizing:border-box}
:is(dialog.bill-type-dialog,dialog.email-preview-dialog,dialog.profile-picture-dialog,dialog.listing-contact-dialog)[open]{overflow:auto}
#modal[open]:has(#post-form){overflow:auto}
@media(max-width:600px){:is(#modal,dialog.lease-detail-popup,dialog.bill-type-dialog,dialog.email-preview-dialog,dialog.profile-picture-dialog,dialog.listing-contact-dialog)[open]{width:calc(100% - 16px)!important;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)!important}}
:is(#modal,dialog.lease-detail-popup) .form-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important}
:is(#modal,dialog.lease-detail-popup) .form-grid>:not(.field),:is(#modal,dialog.lease-detail-popup) .form-grid>.field:is(.full,:has(textarea)){grid-column:1/-1}
.header-form-popup form{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.header-form-popup form>:is(.field:has(textarea),p,.form-error){grid-column:1/-1}
@media(max-width:600px){:is(#modal,dialog.lease-detail-popup) .form-grid{grid-template-columns:minmax(0,1fr)!important}}
.property-card[role="button"]{cursor:pointer;text-align:start}
/* Phones: data tables keep readable columns and scroll sideways (like Invoices) instead of squeezing every column to
   the screen width, which broke words letter by letter. Desktop layouts are unchanged. */
@media(max-width:720px){
 .table-wrap:has(> .data-table){overflow-x:auto;-webkit-overflow-scrolling:touch}
 .table-wrap .data-table.record-table,.table-wrap .data-table.workspace-grid,.table-wrap .data-table.managed-grid{table-layout:auto!important;width:max-content!important;min-width:100%!important}
 .table-wrap .data-table:is(.record-table,.workspace-grid,.managed-grid) :is(th,td){white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;min-width:110px;max-width:240px}
 .table-wrap .data-table:is(.record-table,.workspace-grid,.managed-grid) thead th{white-space:nowrap!important}
 .table-wrap .data-table:is(.record-table,.workspace-grid,.managed-grid) :is(th,td):has(.badge,.team-member-name,.team-member-email){white-space:nowrap!important;max-width:none}
 .table-wrap .data-table:is(.record-table,.workspace-grid,.managed-grid) td:last-child{min-width:0;white-space:nowrap!important;max-width:none}
 .table-wrap .data-table :is(input,select)[data-grid-filter],.table-wrap .data-table thead input{min-width:90px}
 .data-table.team-grid :is(.team-member-name,.team-member-email){overflow-wrap:normal;word-break:normal}
}
/* Seed account picker on the sign-in page (SEEDACCOUNT=1): the rental unit filter's searchable menu at full width. */
.seed-account-field{display:grid;gap:6px}
.seed-account-menu{width:100%}
html[lang] .seed-account-menu>summary.btn{width:100%;max-width:none;justify-content:flex-start;text-transform:none;background:var(--card);color:var(--text);border:1px solid var(--border);font-weight:500}
.seed-account-menu>summary .filter-menu-label{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick-filter-menu.is-searchable.seed-account-menu .filter-menu-list{left:0;right:0;width:100%;min-width:0;max-width:none}
.seed-account-menu .filter-menu-item{justify-content:space-between;gap:10px}
.seed-account-menu .filter-menu-item .filter-count{flex:none}
/* Seed account rows: the full name on the left and the user type on the right, normal text with even spacing. */
.seed-account-menu .pick-filter-items{gap:2px;grid-auto-rows:auto}
.seed-account-menu .filter-menu-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:8px 12px;line-height:1.3;font-size:13px;font-weight:400}
.seed-account-menu .filter-menu-item .seed-account-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left}
.seed-account-menu .filter-menu-item .filter-count{flex:none;margin-inline-start:auto;font-weight:400;color:var(--muted)}
/* Browse and Posts cards: rent and "Refund. deposit: amount" on one line (narrow cards drop the word "deposit");
   the share button sits on the photo beside the heart. */
.property-card{container-type:inline-size}
.property-card .property-price{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:nowrap}
.property-card .property-price>strong,.property-card .property-price>.post-deposit{white-space:nowrap}
.property-card .property-price>.post-deposit{min-width:0;text-align:end}
@container (max-width:230px){.property-card .post-deposit .deposit-word{display:none}}
.property-photo .share-toggle.share-photo{position:absolute;left:48px;bottom:10px;z-index:3;width:32px;height:32px;background:var(--button-gradient,none) var(--primary);color:#fff;box-shadow:0 1px 4px #00000040}
.property-photo .share-toggle.share-photo:hover{background:var(--primary-dark,var(--primary))}
.property-photo .share-toggle.share-photo .icon{width:17px;height:17px}
.property-photo:not(:has(.love-card)) .share-toggle.share-photo{left:10px}

/* Other Settings: Show Column Filter sits beside Landing Page; the cards / list toggles share the next line. */
:is(#modal,dialog.lease-detail-popup) #account-other-form .form-grid>.show-column-filter-setting{grid-column:auto;align-self:end;min-height:0;height:var(--form-control-height,38px);margin:0}
#account-other-form .view-pref-row{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:16px 40px}
#account-other-form .view-pref-row .view-pref{flex:none}
/* Posts and Rental Unit cards: the divider and price row sit at the same place on every card in a row,
   however many lines the facts and amenities take. Properties cards keep their stats and footer at the bottom. */
:is(.main,#modal) .compact-cards .property-card:not(.workspace-card){display:flex;flex-direction:column}
:is(.main,#modal) .compact-cards .property-card:not(.workspace-card)>.property-photo{flex:none}
:is(.main,#modal) .compact-cards .property-card:not(.workspace-card)>.property-info{flex:1 1 auto;display:flex;flex-direction:column}
:is(.main,#modal) .compact-cards .property-card:not(.workspace-card) .property-price{margin-top:auto}
.workspace-card .property-info>.property-features{margin-top:auto}
.workspace-card .property-info>.workspace-card-footer{margin-top:0}
/* Card heart: the same round theme-colour button as share; a loved post turns red with a filled heart. */
.property-photo .love-toggle.love-card{left:10px;bottom:10px;width:32px;height:32px;background:var(--button-gradient,none) var(--primary)!important;color:#fff;box-shadow:0 1px 4px #00000040!important;filter:none}
.property-photo .love-toggle.love-card:hover{background:var(--primary-dark,var(--primary))!important;transform:none}
.property-photo .love-toggle.love-card .icon{width:17px;height:17px;stroke-width:2.2}
.property-photo .love-toggle.love-card.is-loved{background:#e0245e!important;color:#fff}
.property-photo .love-toggle.love-card.is-loved .icon{fill:currentColor}
.property-photo .share-toggle.share-photo{left:50px}
.property-photo:not(:has(.love-card)) .share-toggle.share-photo{left:10px}
/* #browse search options: a panel fixed on the left under the header; the results move right while it is open.
   Collapsed, it is a slim strip with the expand button. Dropdown lists open inline so the panel's scrolling never clips them. */
.browse-filters{position:fixed;top:var(--browse-top,72px);left:0;bottom:calc(var(--active-footer-height) + env(safe-area-inset-bottom,0px));z-index:40;width:290px;display:flex;flex-direction:column;background:var(--card);border-right:1px solid var(--border);box-shadow:4px 0 18px #2423440d;transition:width .18s}
.browse-filters-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 12px 10px 16px;border-bottom:1px solid var(--border)}
.browse-filters-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:15px}
.browse-filters-head h2 .icon{width:18px;height:18px;color:var(--primary)}
.browse-filters-count{background:var(--primary);color:#fff;border-radius:999px;padding:1px 7px;font-size:11px}
.browse-filters-form{flex:1;min-height:0;display:flex;flex-direction:column}
.browse-filters-body{flex:1;min-height:0;overflow-y:auto;padding:12px 16px;display:flex;flex-direction:column;gap:10px}
.browse-filters-body .field{margin:0;gap:4px}
.browse-filters-body .field>span{font-size:12px;font-weight:600}
.browse-filters-body input{width:100%;box-sizing:border-box}
.browse-filters .browse-filter-menu{width:100%}
html[lang] .browse-filters .browse-filter-menu>summary.btn{min-height:38px;padding:0 12px;border-radius:10px;width:100%;max-width:none;justify-content:space-between;text-transform:none;background:var(--card);color:var(--text);border:1px solid var(--border);font-weight:400}
.browse-filters .browse-filter-menu>summary .filter-menu-label{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.browse-filters .pick-filter-menu.is-searchable .filter-menu-list{position:static;width:100%;min-width:0;max-width:none;margin-top:4px;box-shadow:none}
.browse-filters .pick-filter-items{max-height:200px}
.browse-filters .filter-menu-item{min-height:32px}
.browse-filters-actions{display:flex;gap:8px;padding:12px 16px;border-top:1px solid var(--border)}
.browse-filters-actions .btn{flex:1;justify-content:center}
html[lang] .browse-filters-actions .btn:not(.primary){background:var(--card);color:var(--text);border:1px solid var(--border)}
html[lang] .browse-filters-actions .btn:not(.primary):hover{border-color:var(--primary);color:var(--primary)}
.browse-filters.is-collapsed{width:48px}
.browse-filters.is-collapsed .browse-filters-head{flex-direction:column;padding:10px 6px;border-bottom:0}
.browse-filters.is-collapsed .browse-filters-head h2>span:not(.browse-filters-count){display:none}
.browse-filters.is-collapsed .browse-filters-head h2{flex-direction:column}
.browse-filters.is-collapsed .browse-filters-form{display:none}
.public-main.browse-main.has-browse-filters{padding-left:72px}
.public-main.browse-main.has-browse-filters.browse-filters-open{padding-left:314px}
@media(max-width:720px){
 .browse-filters:not(.is-collapsed){width:min(320px,88vw);box-shadow:8px 0 32px #24234433}
 .public-main.browse-main.has-browse-filters,.public-main.browse-main.has-browse-filters.browse-filters-open{padding-left:60px}
}

/* Main menu collapse (desktop): a 76px strip of icons; the round button on the edge collapses / expands it. Phones keep the slide-out menu. */
.sidebar-collapse-toggle{position:absolute;top:36px;right:-14px;z-index:31;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--card);color:var(--text);box-shadow:0 2px 8px #0000001f;cursor:pointer;transition:transform .18s}
.sidebar-collapse-toggle:hover{color:var(--primary);border-color:var(--primary)}
.sidebar-collapse-toggle .icon{width:16px;height:16px}
@media(max-width:720px){.sidebar-collapse-toggle{display:none}}
@media(min-width:721px){
 html.sidebar-collapsed{--workspace-sidebar-width:76px}
 html.sidebar-collapsed .sidebar{width:76px;padding-inline:10px}
 html.sidebar-collapsed .shell{margin-left:76px}
 html[dir=rtl].sidebar-collapsed .shell{margin-left:0;margin-right:76px}
 html.sidebar-collapsed .sidebar-collapse-toggle{transform:rotate(180deg)}
 html.sidebar-collapsed .page-pill{left:calc(50% + 38px)}
 html.sidebar-collapsed .sidebar .brand{justify-content:center}
 html.sidebar-collapsed .sidebar :is(.sidebar-brand-name,.nav-label,.workspace-copy,.plan-card,.user-copy,.nav-divider){display:none}
 /* The Properties picker needs its name and menu, so it is left out of the collapsed menu. */
 html.sidebar-collapsed .sidebar .workspace-switch{display:none}
 html.sidebar-collapsed .sidebar .nav-item{position:relative;justify-content:center;width:46px;min-height:42px;height:42px;margin:4px auto;padding:0;gap:0;border-radius:12px}
 html.sidebar-collapsed .sidebar .nav-item .icon{width:20px;height:20px}
 html[data-color].sidebar-collapsed .sidebar .nav-item.active{box-shadow:none}
 html.sidebar-collapsed .sidebar .nav-item>span:not(.count){display:none}
 html.sidebar-collapsed .sidebar .nav-item .count{position:absolute;top:1px;right:auto;left:calc(50% + 3px);margin:0;min-width:16px;height:16px;padding:0 4px;font-size:9px;line-height:16px}
 html.sidebar-collapsed .sidebar .sidebar-footer{flex-direction:column;justify-content:center;gap:8px;padding-inline:0}
}

.dashboard-post-count[data-unit-posts]{cursor:pointer;transition:transform .12s}
.dashboard-post-count[data-unit-posts]:hover,.dashboard-post-count[data-unit-posts]:focus-visible{transform:scale(1.12);outline:2px solid #fff;outline-offset:1px}

/* Choose property: photo cards like the dashboard's Recent Posts (picture on top, name below); the current one is outlined with a check. */
/* Same size as the post view popup. */
#modal[open]:has(.workspace-picker-list){width:min(1280px,calc(100% - 32px))!important;height:calc(100dvh - 48px)!important;max-height:none}
@media(max-width:720px){#modal[open]:has(.workspace-picker-list){width:calc(100% - 16px)!important;height:calc(100dvh - 16px)!important}}
#modal:has(.workspace-picker-list) .modal-body{padding:14px 18px;overflow-y:auto}
#modal .workspace-picker-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px}
#modal .workspace-picker-item{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;min-height:0;height:auto;padding:6px 6px 10px;border:1px solid transparent;border-radius:12px;background:none;text-align:start;color:var(--text);cursor:pointer}
#modal .workspace-picker-item:hover{background:var(--primary-soft);border-color:var(--border)}
#modal .workspace-picker-item[aria-pressed=true]{background:var(--primary-soft);border-color:var(--primary)}
.workspace-picker-thumb{position:relative;display:block;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:#eef0f5}
.workspace-picker-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .15s}
#modal .workspace-picker-item:hover .workspace-picker-thumb img{transform:scale(1.03)}
.workspace-picker-fallback{display:grid;place-items:center;width:100%;height:100%;background:var(--primary-soft);color:var(--primary)}
.workspace-picker-fallback .icon{width:34px;height:34px}
#modal .workspace-picker-check{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--primary);color:#fff;box-shadow:0 1px 4px #00000040}
#modal .workspace-picker-check .icon{width:15px;height:15px}
#modal .workspace-picker-name{padding:0 4px;font-size:13px;font-weight:600;line-height:1.3;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
@media(max-width:540px){#modal .workspace-picker-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

/* Choose property paging: the #posts carousel controls inside the popup. */
#modal .workspace-picker-carousel{position:relative;padding-inline:56px}
#modal .workspace-picker-carousel .carousel-arrow{top:50%;transform:translateY(-50%)}
#modal .workspace-picker-item[hidden]{display:none!important}
#modal .workspace-picker-pages{margin-top:14px}
@media(max-width:600px){#modal .workspace-picker-carousel{padding-inline:0}#modal .workspace-picker-carousel .carousel-arrow{display:none}}
/* #browse search options: open, the panel uses the page background (labels in the text colour);
   collapsed, the strip takes the header colour. Dropdown buttons are white boxes; hovered or open they turn the darker shade with white text. */
.browse-filters{background:var(--bg)}
html[data-color] .browse-filters.is-collapsed{background:var(--frame-bg,var(--primary));border-right-color:var(--frame-border,#ffffff40)}
html[data-custom-colors] .browse-filters.is-collapsed{background:var(--custom-header);--frame-text:var(--custom-header-text)}
html[data-color] .browse-filters.is-collapsed :is(.browse-filters-head h2 .icon,.browse-filters-toggle){color:var(--frame-text,#fff)}
html[data-color] .browse-filters.is-collapsed .browse-filters-toggle:is(:hover,:focus-visible){background:var(--primary-dark);color:#fff}
html[data-color] .browse-filters.is-collapsed .browse-filters-count{background:#fff;color:var(--primary-dark)}
html[lang] .browse-filters .browse-filter-menu>summary.btn:is(:hover,:focus-visible),html[lang] .browse-filters .browse-filter-menu[open]>summary.btn{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff}
html[lang] .browse-filters .browse-filter-menu>summary.btn:is(:hover,:focus-visible) :is(.filter-menu-label,.icon),html[lang] .browse-filters .browse-filter-menu[open]>summary.btn :is(.filter-menu-label,.icon){color:#fff}

/* Same widths as the main menu: 236px (210px under 1180px, 185px under 980px); collapsed 76px like the collapsed menu. */
.browse-filters{width:236px}
.browse-filters.is-collapsed{width:76px}
.public-main.browse-main.has-browse-filters{padding-left:100px}
.public-main.browse-main.has-browse-filters.browse-filters-open{padding-left:260px}
@media(max-width:1180px){.browse-filters:not(.is-collapsed){width:210px}.public-main.browse-main.has-browse-filters.browse-filters-open{padding-left:234px}}
@media(max-width:980px){.browse-filters:not(.is-collapsed){width:185px}.public-main.browse-main.has-browse-filters.browse-filters-open{padding-left:209px}}
@media(max-width:720px){.browse-filters:not(.is-collapsed){width:236px}.browse-filters.is-collapsed{width:48px}.public-main.browse-main.has-browse-filters,.public-main.browse-main.has-browse-filters.browse-filters-open{padding-left:60px}}
/* Collapsed menu: the scroll area and footer span the strip (no side padding or offsets) so tiles, badges and sign-out are not clipped. */
@media(min-width:721px){
 html.sidebar-collapsed .sidebar{padding-inline:0}
 html.sidebar-collapsed .sidebar .sidebar-scroll{width:100%;margin-inline:0;padding-inline:0;overflow-x:hidden;box-sizing:border-box}
 html.sidebar-collapsed .sidebar .sidebar-scroll nav{display:flex;flex-direction:column;align-items:center;width:100%}
 html.sidebar-collapsed .sidebar .brand{margin-inline:auto;padding:0}
 html.sidebar-collapsed .sidebar .sidebar-footer{width:100%;margin-inline:0;padding-inline:0;box-sizing:border-box;align-items:center}
}
/* The collapse button sits on the menu's edge; the menu must not scroll sideways to reveal it (that hid part of the icons). */
@media(min-width:721px){.sidebar{overflow:visible}}
/* Collapsed menu footer: avatar and sign-out side by side, sized to fit the 76px strip within the footer row. */
@media(min-width:721px){
 html.sidebar-collapsed .sidebar .sidebar-footer{flex-direction:row;justify-content:center;gap:4px}
 html.sidebar-collapsed .sidebar .sidebar-footer .avatar{width:30px;height:30px;min-width:30px;font-size:11px}
 html.sidebar-collapsed .sidebar .sidebar-footer .icon-btn{width:30px;height:30px;min-width:30px;padding:0}
}

/* Posts search in the main menu: a search icon beside Posts opens the search options over the menu (hidden when collapsed). */
.sidebar .nav-row{position:relative;display:flex;align-items:center}
.sidebar .nav-row>.nav-item{flex:1;min-width:0;padding-inline-end:40px}
.nav-search-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer}
.nav-search-toggle .icon{width:16px;height:16px}
html[data-color] .sidebar .nav-search-toggle{color:var(--frame-text,#fff)}
.sidebar .nav-search-toggle:is(:hover,:focus-visible),.sidebar .nav-search-toggle.is-active{background:var(--button-gradient,none) var(--primary-dark);color:#fff}
html.sidebar-collapsed .sidebar .nav-search-toggle{display:none}
html.sidebar-collapsed .sidebar .nav-row{justify-content:center;width:100%}
html.sidebar-collapsed .sidebar .nav-row>.nav-item{flex:none;padding-inline-end:0}
.sidebar .sidebar-search{position:absolute;inset:0;z-index:35;width:auto;top:0;bottom:0;border-right:0;box-shadow:none}
html.sidebar-collapsed .sidebar .sidebar-search{display:none}

/* Search panels: title and field labels in the header colour (the menu's white text would vanish on the light panel). */
.browse-filters:not(.is-collapsed) :is(.browse-filters-head h2,.browse-filters-head h2 .icon,.browse-filters-body .field>span){color:var(--frame-bg,var(--primary))}
html[data-custom-colors] .browse-filters:not(.is-collapsed) :is(.browse-filters-head h2,.browse-filters-head h2 .icon,.browse-filters-body .field>span){color:var(--custom-header)}
.sidebar .sidebar-search{color:var(--text)}
.sidebar .sidebar-search .browse-filters-toggle{color:var(--frame-bg,var(--primary))}
/* Search options dropdowns never scroll sideways: the search box shrinks beside "All" and long names end with "…" (full name on hover). */
.browse-filters .filter-menu-list,.browse-filters .pick-filter-items{overflow-x:hidden;box-sizing:border-box;max-width:100%}
.browse-filters .pick-filter-all{display:flex;align-items:center;gap:6px;min-width:0}
.browse-filters .pick-filter-all>.filter-menu-item{flex:none;width:auto}
.browse-filters .pick-filter-all>input{flex:1 1 auto;width:auto;min-width:0}
.browse-filters .pick-filter-items .filter-menu-item{width:100%;min-width:0;box-sizing:border-box}
.browse-filters .pick-filter-items .pick-filter-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
.browse-filters .pick-filter-items .filter-count{flex:none}
/* The list search box keeps the compact height of the "All" row so it stays above the divider. */
/* Beats the shared .field input:not(...) control height, since these lists sit inside a field. */
.browse-filters .field .pick-filter-all>input[type=search]:not([type=file]):not([type=checkbox]){height:30px;min-height:30px;padding:0 10px;font-size:12px;line-height:30px;box-sizing:border-box;border-radius:7px}
.browse-filters .field .pick-filter-all>input[type=search]:focus-visible{outline-offset:-2px}
.browse-filters .pick-filter-all>.filter-menu-item{min-height:30px;height:30px;padding-block:0}

.browse-filters .browse-active-only{display:flex;align-items:center;gap:8px;min-height:32px;font-size:13px;font-weight:600;color:var(--frame-bg,var(--primary));cursor:pointer}
.browse-filters .browse-active-only input{width:18px;height:18px;margin:0;accent-color:var(--primary)}
/* White header theme: the header colour is white, so panel headings use the header's text colour instead. */
html[data-color=white] .browse-filters:not(.is-collapsed) :is(.browse-filters-head h2,.browse-filters-head h2 .icon,.browse-filters-body .field>span,.browse-active-only),
html[data-color=white] .sidebar .sidebar-search .browse-filters-toggle{color:var(--frame-text,#171717)}
/* Condensed top of the search panels: tighter header, no extra margin around "Show Active Only", smaller gap to the first field. */
.browse-filters .browse-filters-head{padding:8px 10px 8px 16px}
.browse-filters .browse-filters-body{padding-top:8px;gap:8px}
.browse-filters .browse-active-only{min-height:24px;margin:0}
/* Posts / Rental Unit / Browse cards: the divider belongs to the price row, so it always sits right above the rent line. */
:is(.main,.public-main,#modal) .compact-cards .property-card:not(.workspace-card) .property-features{border-bottom:0;padding-bottom:0;margin-bottom:6px}
:is(.main,.public-main,#modal) .compact-cards .property-card:not(.workspace-card) .property-price{border-top:1px solid var(--border);padding-top:6px}

/* Confirmation-sized popups fit their content (see fitPopup in app.js) rather than the full post-view size. */
:is(#modal,dialog)[open].popup-fit{width:min(600px,calc(100% - 32px))!important;height:fit-content!important;max-height:calc(100dvh - 48px)!important}
:is(#modal,dialog)[open].popup-fit .modal-body{flex:none;height:auto}

/* Status columns centred (User Subscription, Billing plans). */
.subscription-grid :is(th,td).status-cell{text-align:center}
.subscription-grid td.status-cell .badge{margin-inline:auto}
/* Search panels: Cancel keeps white text on its hover (darker) background. */
html[lang] .browse-filters-actions .btn:not(.primary):is(:hover,:focus-visible){background:var(--primary-dark);border-color:var(--primary-dark);color:#fff}
html[lang] .browse-filters-actions .btn:not(.primary):is(:hover,:focus-visible) .icon{color:#fff}

/* User Subscription: the shortened email stays on one line. */
.user-subscription-grid td[title]{white-space:nowrap}

/* Properties view with member / rental unit cards: the full popup size, like the other card popups. */
#modal[open].workspace-dialog:has(.workspace-view-tabs){width:min(1280px,calc(100% - 32px))!important;height:calc(100dvh - 48px)}
@media(max-width:720px){#modal[open].workspace-dialog:has(.workspace-view-tabs){width:calc(100% - 16px)!important;height:calc(100dvh - 16px)}}
#modal .workspace-view-cards{padding:4px 0}
#modal #workspace-tab-units:has(.property-grid){border:0;background:none;padding:0;box-shadow:none}
/* Properties view tabs: the same compact card grid as #rentalunit and #team (5 across, short photos). */
#modal .property-grid.compact-cards[data-modal-carousel]{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
@media(min-width:1100px){#modal .property-grid.compact-cards[data-modal-carousel]{grid-template-columns:repeat(5,minmax(0,1fr))}}
#modal .property-grid.compact-cards[data-modal-carousel] .property-photo{height:96px}
/* Page pill: the page number never wraps (two or three digits fit); slightly smaller text. */
.page-pill .page-pill-select{display:inline-flex;flex:none}
.page-pill .page-pill-select select{width:auto;min-width:4.2em;max-width:none;padding:0 24px 0 10px;font-size:13px;white-space:nowrap;text-overflow:clip;overflow:visible;box-sizing:border-box}
.page-pill .page-pill-total{font-size:13px}

/* Register: two-column form (one column on phones); the address group's fields join the grid. */
.login-form:has(#register-form) .login-inner{max-width:680px}
#register-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start}
#register-form :is(.member-address-fields,.person-name-fields){display:contents}
#register-form>:is(.form-error,button[type=submit]){grid-column:1/-1}
#register-form .field{margin:0;min-width:0}
@media(max-width:600px){#register-form{grid-template-columns:minmax(0,1fr)}}
.login-notice{display:flex;align-items:flex-start;gap:8px;margin:0 0 14px;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.45}
/* Page pill (every page, including #browse): the same look in every browser — no native select sizing, a fixed
   width that fits three-digit page numbers on one line, and an explicit line height. */
.page-pill .page-pill-select,.page-pill .page-pill-total{white-space:nowrap}
.page-pill .page-pill-select select{-webkit-appearance:none;appearance:none;width:5.4em;min-width:5.4em;height:34px;line-height:34px;padding:0 22px 0 12px;font-size:13px;white-space:nowrap;text-overflow:clip;overflow:hidden}
.page-pill .page-pill-select{position:relative;color:var(--text)}
.page-pill .page-pill-select::after{content:'';position:absolute;right:8px;top:50%;margin-top:-2px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentColor;pointer-events:none}
/* Page pill total ("of 120"): smaller text so three-digit totals fit on one line. */
.page-pill .page-pill-total{font-size:12px;white-space:nowrap;padding-inline:2px 6px}

/* #browse: the current search in words, before the country choice (one line when it fits, at most two). */
.browse-grid-controls{display:flex;align-items:center;gap:14px;min-width:0;max-width:min(980px,100%)}
.browse-summary{margin:0;min-width:0;max-width:640px;font-size:14px;font-weight:600;line-height:1.35;color:var(--text);text-align:end;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:720px){.browse-grid-controls{flex-wrap:wrap;justify-content:flex-start}.browse-summary{text-align:start;max-width:100%}}

/* While a search panel covers the menu, the menu's collapse button is hidden; it returns when the panel closes. */
.sidebar.has-posts-search .sidebar-collapse-toggle{display:none}

/* Request a showing: compact 4-column form (2 on tablets, 1 on phones) with the unit and its owners / agents on top. */
.header-form-popup form.showing-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}
.header-form-popup form.showing-form>.showing-full,.header-form-popup form.showing-form>.showing-unit{grid-column:1/-1}
.header-form-popup form.showing-form>.showing-half{grid-column:span 2}
.showing-form .field{margin:0;gap:3px}
.showing-unit{display:flex;align-items:center;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.showing-unit>img{width:96px;height:64px;object-fit:cover;border-radius:10px;flex:none;background:#eef0f5}
.showing-unit>div{display:grid;gap:2px;min-width:0;flex:1}
.showing-unit strong{font-size:15px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.showing-unit small{color:var(--muted);font-size:12px}
.showing-people{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:12px;margin-top:2px}
.showing-required{align-self:flex-start;font-size:12px;color:var(--muted);white-space:nowrap}
.header-form-popup .showing-form .showing-method{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px}
.showing-form .showing-method legend{float:left;width:auto;margin:0 8px 0 0;padding:0}
.showing-form textarea[name=message]{min-height:0;resize:vertical}
.showing-form .showing-help{gap:6px}
.showing-form .showing-slots{margin-inline-start:24px;flex-wrap:nowrap}
.showing-form .showing-slot{flex:1 1 0;min-width:0}
@media(max-width:900px){.header-form-popup form.showing-form{grid-template-columns:repeat(2,minmax(0,1fr))}.showing-form .showing-slots{flex-wrap:wrap}.showing-form .showing-slot{flex:1 1 100%}}
@media(max-width:560px){.header-form-popup form.showing-form{grid-template-columns:minmax(0,1fr)}.header-form-popup form.showing-form>.showing-half{grid-column:1/-1}}

/* Request a showing: contact method label and options on one line; the popup is only as tall as the form. */
.header-form-popup form.showing-form .showing-method{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 20px;margin:2px 0}
.showing-form .showing-method-label{font-size:13px;font-weight:600}
.showing-form .showing-method label{display:inline-flex;align-items:center;gap:6px;font-weight:400}
:is(#modal,dialog)[open]:has(.showing-form){height:fit-content!important;max-height:calc(100dvh - 48px)!important}

/* Touring card: Request a showing, and a Chat with Owner icon while an owner is online. */
.listing-showing-actions{display:flex;align-items:center;gap:8px}
.listing-showing-actions>.btn{flex:1;justify-content:center}
.listing-showing-chat{position:relative;flex:none;width:42px;height:42px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--primary)}
.listing-showing-chat:hover{background:var(--button-gradient,none) var(--primary);color:#fff}
.listing-showing-chat .online-dot{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:#22a06b;box-shadow:0 0 0 2px var(--card)}
/* Register: the form fills its half of the screen and is condensed so it fits without scrolling on common laptop screens. */
.login-form:has(#register-form){padding:20px 40px;align-items:flex-start}
.login-inner:has(#register-form){width:100%;max-width:880px}
.login-inner:has(#register-form) .auth-language{margin-bottom:4px}
.login-inner:has(#register-form) .back-link{margin-bottom:8px}
.login-inner:has(#register-form) h2{margin:4px 0 4px}
.login-inner:has(#register-form)>p{margin-bottom:12px}
#register-form{gap:8px 16px}
#register-form .field{margin:0;gap:3px}
#register-form .field>span{font-size:12px}
#register-form .field :is(input,select){height:38px;min-height:38px;padding-block:0}
#register-form>button[type=submit]{margin-top:6px}
.login-inner:has(#register-form) .login-switch{margin-top:10px}
/* Properties view: the Members / Rental Unit tabs use the whole popup (no 520px cap, no inner scrollbar); cards page with the carousel. */
#modal:has(.workspace-view-tabs) .modal-body{display:flex;flex-direction:column}
#modal:has(.workspace-view-tabs) .workspace-view-grid{max-height:none;overflow:visible;flex:1 1 auto}
#modal:has(.workspace-view-tabs) .workspace-view-grid[hidden]{display:none}
#modal:has(.workspace-view-tabs) .workspace-view-grid .card-carousel{min-height:100%}
/* Properties view tabs: cards keep the same shape as on #rentalunit and #team (rows do not stretch to fill the popup), page dots underneath. */
#modal:has(.workspace-view-tabs) .workspace-view-grid:not([hidden]){display:flex;flex-direction:column;min-height:0}
#modal:has(.workspace-view-tabs) .workspace-view-grid .card-carousel{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
#modal:has(.workspace-view-tabs) .workspace-view-grid .property-grid.compact-cards[data-modal-carousel]{flex:none;grid-auto-rows:auto;align-content:start;align-items:start}
#modal:has(.workspace-view-tabs) .workspace-view-grid .property-grid.compact-cards[data-modal-carousel] .property-card{height:auto;display:flex;flex-direction:column}
#modal:has(.workspace-view-tabs) .workspace-view-grid .property-grid.compact-cards[data-modal-carousel] .property-photo{flex:none;height:170px;min-height:0;position:relative}
#modal:has(.workspace-view-tabs) .workspace-view-grid .property-grid.compact-cards[data-modal-carousel] .team-card .property-photo{height:141px}
#modal:has(.workspace-view-tabs) .workspace-view-grid .property-grid.compact-cards[data-modal-carousel] .property-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#modal:has(.workspace-view-tabs) .workspace-view-grid .property-grid.compact-cards[data-modal-carousel] .property-info{flex:none}
#modal:has(.workspace-view-tabs) .workspace-view-grid .carousel-dots{flex:none;margin-top:auto}
/* Lease agreement popups: the agreement fills the popup body (no fixed 65vh box), the signing note stays below it. */
#modal:has(.modal-body>.html-agreement-frame) .modal-body{display:flex;flex-direction:column}
#modal .modal-body>.html-agreement-frame{flex:1 1 auto;height:auto;min-height:420px}
#modal .modal-body>.html-agreement-frame~*{flex:none}

/* Application header: the rental unit line uses the header text colour. */
.application-heading-property{color:var(--text)}
/* Card photo chips: the status chip has the same background as the Properties chip. */
.property-photo .badge{background:#ffffffe6;backdrop-filter:none}
html[data-theme=dark] .property-photo :is(.badge,.property-group-tag){background:#30283ee6}

/* Team heading: the actions stay on the heading's line in every language — the description wraps and long
   button labels end with an ellipsis instead of the toolbar dropping below the title. */
@media(min-width:901px){
.page-heading:has(.heading-actions>.actions.team-heading-actions){flex-wrap:nowrap}
.page-heading:has(.team-heading-actions)>div:first-child{flex:0 1 auto;min-width:180px}
.page-heading>.heading-actions:has(>.team-heading-actions){flex:0 1 auto;min-width:0;max-width:none;justify-content:flex-end;flex-wrap:nowrap}
.page-heading>.heading-actions:has(>.team-heading-actions)>:not(.team-heading-actions){flex:0 0 auto}
.heading-actions>.actions.team-heading-actions{min-width:0;flex-wrap:nowrap}
.team-heading-actions>*{flex:0 1 auto;min-width:0}
.team-heading-actions>.filter-menu>summary{max-width:100%}
.team-heading-actions>.split-button{min-width:0;flex-shrink:8}
.team-heading-actions .split-button>.btn:first-child{min-width:0;overflow:hidden}
.team-heading-actions .split-button-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
}
/* Touring card: Request a showing (+ Chat when the owner is online) together span exactly the Sign in to apply
   width, in the same primary button style. */
.listing-showing .listing-showing-actions{display:flex;gap:8px;width:100%}
:is(#modal,body) .listing-showing .listing-showing-actions>.btn{flex:1 1 0;width:auto;max-width:none;min-width:0;min-height:40px;border-radius:8px}
.listing-showing .listing-showing-chat{flex:0 0 40px;width:40px;height:40px;border:0;border-radius:8px;background:var(--button-gradient,none) var(--primary);color:#fff}
.listing-showing .listing-showing-chat:hover{background:var(--button-gradient,none) var(--primary);color:#fff;filter:brightness(1.08)}
.listing-showing .listing-showing-chat .online-dot{box-shadow:0 0 0 2px var(--primary)}

/* Card chat icon (owner online): the same round theme-colour button as share, just after it. */
.property-photo .chat-toggle.chat-photo{position:absolute;left:90px;bottom:10px;z-index:3;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background:var(--button-gradient,none) var(--primary);color:#fff;box-shadow:0 1px 4px #00000040}
.property-photo:not(:has(.love-card)) .chat-toggle.chat-photo{left:50px}
.property-photo .chat-toggle.chat-photo:hover{background:var(--primary-dark,var(--primary))}
.property-photo .chat-toggle.chat-photo .icon{width:17px;height:17px}
.property-photo .chat-toggle.chat-photo .online-dot{position:absolute;top:0;right:0;width:9px;height:9px;border-radius:50%;background:#22a06b;box-shadow:0 0 0 2px #fff}

/* Guest chat (signed-out visitor on Browse chatting with a listing's owner). */
.guest-chat{position:fixed;right:20px;bottom:20px;z-index:1200;width:min(380px,calc(100vw - 32px));max-height:min(560px,calc(100vh - 40px));display:flex;flex-direction:column;background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 50px #1d17404d;overflow:hidden}
.guest-chat-heading{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--primary);color:#fff}
.guest-chat-heading>div{flex:1;min-width:0;display:grid}
.guest-chat-heading strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guest-chat-heading small{font-size:11px;opacity:.85}
.guest-chat-heading small.is-online::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#3ddc84;margin-inline-end:5px}
.guest-chat-heading .icon-btn{color:#fff;background:transparent;border:0}
.guest-chat-avatar{width:32px;height:32px;border-radius:50%;background:#ffffff2e;display:inline-flex;align-items:center;justify-content:center;flex:none}
.guest-chat-avatar .icon{width:17px;height:17px}
.guest-chat-intro{display:grid;gap:10px;padding:14px;overflow:auto}
.guest-chat-intro p{margin:0;font-size:12px}
.guest-chat-intro .field{margin:0}
.guest-chat-intro .btn{justify-content:center}
.guest-chat-trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.guest-chat-messages{flex:1;min-height:220px;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:var(--bg)}
.guest-chat-message{max-width:82%;align-self:flex-start;display:grid;gap:3px}
.guest-chat-message>span{padding:8px 11px;border-radius:12px 12px 12px 4px;background:var(--card);border:1px solid var(--border);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.guest-chat-message.mine{align-self:flex-end}
.guest-chat-message.mine>span{background:var(--primary);color:#fff;border-color:var(--primary);border-radius:12px 12px 4px 12px}
.guest-chat-message small{font-size:10px;color:var(--muted)}
.guest-chat-message.mine small{text-align:end}
.guest-chat-empty{margin:auto;padding:14px;color:var(--muted);font-size:12px;text-align:center}
.guest-chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--border);background:var(--card)}
.guest-chat-form textarea{flex:1;resize:none;min-height:40px;max-height:120px;padding:9px 11px;border:1px solid var(--border);border-radius:10px;font:inherit;font-size:13px;background:var(--card);color:var(--text)}
.guest-chat-form .btn{flex:none;width:42px;padding:0;justify-content:center}

/* Guest chat: a taller window (the conversation gets most of the screen height). */
.guest-chat{height:min(720px,calc(100vh - 100px));max-height:none}
.guest-chat-intro{flex:1}
.guest-chat-intro textarea{min-height:190px}
.guest-chat-form textarea{max-height:180px}
.guest-chat-form textarea:not(:placeholder-shown){min-height:110px}

/* Chat dock: the chat is a right-side panel under the header (like Search options on the left) and collapses to a
   slim strip; the page content makes room for it. */
.chat-dock{position:fixed!important;left:auto!important;right:0!important;width:var(--chat-dock-width,var(--search-panel-width))!important;height:auto!important;max-height:none!important;border-radius:0!important;border:0!important;border-left:1px solid var(--border)!important;box-shadow:-4px 0 18px #2423440d!important;transition:width .18s;display:flex;flex-direction:column;overflow:hidden}
#floating-chat.chat-dock{top:var(--page-topbar-height,64px);bottom:calc(var(--active-footer-height,var(--workspace-footer-height,0px)) + env(safe-area-inset-bottom,0px))!important;z-index:28}
#guest-chat.chat-dock{top:var(--browse-top,72px);bottom:0!important;z-index:40}
.chat-dock .chat-resize-handle{display:none!important}
.chat-dock .chat-dock-toggle{color:#fff;background:transparent;border:0}
/* Collapsed docks hide completely; the chat tab on the right edge brings them back. */
.chat-dock.is-collapsed{display:none!important}
.chat-dock.is-collapsed>:not(:first-child){display:none!important}
.chat-dock.is-collapsed>:first-child{flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;padding:10px 6px;height:100%}
.chat-dock.is-collapsed>:first-child>:not(.chat-dock-toggle):not(.guest-chat-avatar):not([data-action=close-chat]):not([data-action=guest-chat-close]){display:none!important}
#floating-chat.chat-dock.is-collapsed .floating-chat-heading::after{content:'';order:-1;width:22px;height:22px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat}
.chat-dock.is-collapsed .chat-dock-toggle{order:-2}
html.chat-dock-open .floating-chat-button{display:none}
@media(min-width:721px){
 html.chat-dock-open .shell>.main{margin-right:var(--chat-dock-width,var(--search-panel-width))}
 html.chat-dock-open .public-main.browse-main{padding-right:calc(var(--chat-dock-width,var(--search-panel-width)) + 24px)}
}
@media(max-width:720px){.chat-dock:not(.is-collapsed){width:min(380px,100vw)!important;box-shadow:-8px 0 32px #24234433!important}}
.guest-chat-intro{align-content:start}
/* Chat dock resize: a grab strip on the panel's left edge. */
.chat-dock::before{content:'';position:absolute;left:0;top:0;bottom:0;width:8px;cursor:col-resize;z-index:6}
.chat-dock::after{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--primary);opacity:0;transition:opacity .15s;pointer-events:none;z-index:6}
.chat-dock.is-resizing::after{opacity:.6}
.chat-dock.is-collapsed::before{display:none}
html.chat-dock-resizing,html.chat-dock-resizing *{cursor:col-resize!important;user-select:none!important}
html.chat-dock-resizing .chat-dock{transition:none}
/* The chat dock uses the Search options widths (open and collapsed) unless the user has dragged it wider/narrower. */
:root{--search-panel-width:236px;--search-panel-collapsed:76px}
@media(max-width:1180px){:root{--search-panel-width:210px}}
@media(max-width:980px){:root{--search-panel-width:185px}}
@media(max-width:720px){:root{--search-panel-width:236px;--search-panel-collapsed:48px}}
/* Chat composers: a slimmer message box with the send button at the same height. */
#floating-chat-form input[name="body"]{height:36px;min-height:36px;padding-block:0;box-sizing:border-box}
#floating-chat-form :is([type=submit],.chat-attach-button){height:36px;min-height:36px}
#floating-chat-form [type=submit]{width:40px;padding:0;justify-content:center}
.guest-chat-form{align-items:flex-end}
.guest-chat-form textarea{height:36px;min-height:36px;padding:8px 11px;line-height:18px;box-sizing:border-box}
.guest-chat-form textarea:not(:placeholder-shown){height:auto;min-height:110px}
.guest-chat-form .btn{height:36px;min-height:36px;width:40px}

/* #browse: the collapsed search panel becomes a tab on the left edge just below the header (like the chat tab on the right). */
html[lang] .browse-filters.is-collapsed{top:calc(var(--browse-top,72px) + 16px);bottom:auto;width:48px;height:48px;border:0;border-radius:0 10px 10px 0;background:var(--primary);box-shadow:4px 4px 16px #0003;overflow:visible;transition:none}
html[lang] .browse-filters.is-collapsed .browse-filters-head{height:100%;padding:0;border:0;justify-content:center}
html[lang] .browse-filters.is-collapsed .browse-filters-head h2{position:absolute;top:-6px;right:-6px;pointer-events:none}
html[lang] .browse-filters.is-collapsed .browse-filters-head h2>:not(.browse-filters-count){display:none}
html[lang] .browse-filters.is-collapsed .browse-filters-toggle{width:100%;height:100%;border-radius:inherit;background:transparent;color:#fff}
html[lang] .browse-filters.is-collapsed .browse-filters-toggle:is(:hover,:focus-visible){background:var(--primary-dark);color:#fff}
html[lang] .browse-filters.is-collapsed .browse-filters-count{background:#fff;color:var(--primary-dark);box-shadow:0 1px 4px #0003}
html[lang] .public-main.browse-main.has-browse-filters:not(.browse-filters-open){padding-left:64px}

/* Guest chat: switch between conversations with different owners. */
.guest-chat-switch{display:grid;gap:4px;padding:8px 14px;border-bottom:1px solid var(--border);background:var(--card)}
.guest-chat-switch>span{font-size:11px;font-weight:600;color:var(--muted)}
.guest-chat-switch select{width:100%;min-height:34px;font-size:13px}

/* Dashboard Recent Posts: hint about the post count on each card. */
.dashboard-panel-hint{margin:0 0 8px;font-size:11px;color:var(--muted)}

/* #browse header: larger tagline, language, Sign in and Get started. */
html[lang] .browse-header .eyebrow.browse-tagline{font-size:12px}
html[lang] .browse-header nav{font-size:15px}
html[lang] .browse-header nav .topbar-language{font-size:14px}
html[lang] .browse-header nav .btn{font-size:15px}
@media(max-width:720px){html[lang] .browse-header .eyebrow.browse-tagline{font-size:10px}html[lang] .browse-header nav,html[lang] .browse-header nav .btn{font-size:13px}html[lang] .browse-header nav .topbar-language{font-size:12px}}

/* Footer: larger text (copyright, tagline, property name, Ask AI, environment, Contact us). */
html[lang] .footer,html[lang][data-color] .footer{font-size:13px}
html[lang] .footer :is(.btn.ghost,.environment-label,.contact-footer-link){font-size:13px}
html[lang] .footer .icon{width:15px;height:15px}
@media(max-width:720px){html[lang] .footer,html[lang][data-color] .footer,html[lang] .footer :is(.btn.ghost,.environment-label,.contact-footer-link){font-size:11px}}

/* Guest chat conversation list: owner online dot and new-message count. */
.guest-chat-dot{color:#a8a6b8;font-size:11px}
.guest-chat-dot.is-online{color:#2fbf71}
.guest-chat-new{display:inline-block;margin-inline-start:4px;padding:0 6px;border-radius:999px;background:#c62828;color:#fff;font-size:11px;font-weight:700;line-height:18px}
/* The closed list shows the chosen option through <selectedcontent> so its online dot keeps its colour. */
.guest-chat-switch select>button{display:flex;align-items:center;flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start}
.guest-chat-switch select>button>selectedcontent{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Lease view popup header: the lease number stays on one line; buttons wrap to the next line, right aligned. */
#modal .modal-head.lease-modal-head{flex-wrap:wrap;row-gap:8px}
#modal .modal-head.lease-modal-head #modal-title{flex:0 0 auto;min-width:auto;white-space:nowrap;overflow-wrap:normal}
#modal .modal-head.lease-modal-head .lease-modal-property{flex:0 1 auto;min-width:0;overflow-wrap:normal}
#modal .modal-head.lease-modal-head .modal-header-actions{margin-inline-start:auto;justify-content:flex-end}

/* Previous / next record in a view (record-nav.js): ‹ 3 of 25 › beside the title. */
.record-nav.page-pill.is-inline{display:inline-flex;flex:none;gap:6px;margin:0 0 0 auto;padding:3px;box-shadow:none}
.modal-head :is(.modal-header-actions,.workspace-header-actions)+.record-nav{margin-inline-start:8px}
.modal-head .record-nav+[data-action="close"],.modal-head .record-nav+.popup-dismiss{margin-inline-start:6px}
.record-nav .page-pill-arrow{width:32px;height:32px;flex:none}
.record-nav .page-pill-arrow:not(:disabled):is(:hover,:focus-visible){background:var(--primary-dark)}
.record-nav .page-pill-arrow .icon{width:17px;height:17px}
.record-nav-count{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}
.back-link+.record-nav{float:right;margin:0 0 10px 12px}

/* #posts heading while only loved posts are shown. */
.heading-loved{display:inline-flex;vertical-align:-2px;margin-inline-end:8px;color:#e0245e}
.heading-loved .icon{width:22px;height:22px;fill:currentColor;stroke:currentColor}

/* Searchable dropdown list (select-search.js) for dropdowns with more than 10 choices. */
.select-search{position:fixed;z-index:3000;display:flex;flex-direction:column;min-height:120px;background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #0003;overflow:hidden;font-size:13px}
.select-search-box{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid var(--border)}
.select-search-box input{flex:1;min-width:0;height:34px;padding:0 10px;border:1px solid var(--border);border-radius:7px;background:var(--card);color:var(--text);font:inherit}
.select-search-count{flex:none;font-size:11px;color:var(--muted)}
.select-search-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:5px}
.select-search-option{padding:8px 10px;border-radius:5px;cursor:pointer;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.select-search-option.is-active{background:var(--primary-soft)}
.select-search-option.is-selected{font-weight:600;color:var(--primary)}
.select-search-option.is-disabled{opacity:.5;cursor:default}
.select-search-group{padding:8px 10px 4px;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.select-search-none{margin:0;padding:12px;color:var(--muted);text-align:center}

/* Dropdowns: the chosen value stays on one line (cut off when longer than the control); the open list shows choices in full. */
select:not([multiple]):not([size]),select[size="1"]:not([multiple]){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
select option{white-space:normal}
.browse-filters .pick-filter-items .pick-filter-name,.pick-filter-items .pick-filter-name,.filter-menu-list .filter-menu-item{white-space:normal;overflow-wrap:anywhere;text-overflow:clip}

/* Multi-column forms: when one field's label wraps, every field in that row keeps its control on the same line
   (labels sit on top of their controls; the controls line up at the bottom of the row). */
:is(form,.modal-body) .field:not(.full):not(.check-field)>:first-child{margin-top:auto}

/* Lease view popup: wider, so the lease number, unit, status and the right-aligned buttons fit on one line; smaller buttons. */
/* The lease view uses the shared popup size, the same as Contact Information & Status. */
#modal .modal-head.lease-modal-head .modal-header-actions{margin-inline-start:auto;display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
#modal .modal-head.lease-modal-head :is(.icon-btn,.btn.small){min-height:32px;height:32px;padding:0 8px}
#modal .modal-head.lease-modal-head .btn.small.lease-signature-step{width:36px;justify-content:center}
#modal .modal-head.lease-modal-head .btn.small .icon{width:16px;height:16px}
/* Lease header in two tidy rows: (1) number, unit, status ... record navigation, close; (2) all actions on one line, right aligned. */
#modal .modal-head.lease-modal-head{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:8px}
#modal .modal-head.lease-modal-head .modal-header-actions{margin:0;justify-content:flex-end;flex-wrap:nowrap;gap:6px}
#modal .modal-head.lease-modal-head .modal-header-actions .btn{min-height:34px;height:34px;padding:0 12px;font-size:13px;white-space:nowrap;flex:none}
#modal .modal-head.lease-modal-head .modal-header-actions .btn .icon{width:16px;height:16px}
#modal .modal-head.lease-modal-head .record-nav .page-pill-select select{font-size:13px}
@media(max-width:720px){#modal .modal-head.lease-modal-head .modal-header-actions{flex-wrap:wrap}}
/* Record navigation in view headers: compact pill (‹ 1 ▾ of 558 ›). */
#modal .record-nav.page-pill.is-inline,#app .record-nav.page-pill.is-inline{gap:2px;padding:2px;border-width:1px;box-shadow:none}
.record-nav .page-pill-arrow,#modal .modal-head .record-nav .page-pill-arrow{width:26px;height:26px;min-height:26px}
.record-nav .page-pill-arrow .icon{width:14px;height:14px}
.record-nav.page-pill .page-pill-select select,#modal .modal-head .record-nav .page-pill-select select{width:auto;min-width:0;height:26px;min-height:26px;line-height:26px;padding:0 16px 0 6px;font-size:12px;font-weight:600}
.record-nav.page-pill .page-pill-select::after{right:4px;border-left-width:4px;border-right-width:4px;border-top-width:5px}
.record-nav.page-pill .page-pill-total{font-size:12px;padding-inline:0 4px}
/* View headers with record navigation (record-nav.js): one line — title … icons and buttons, navigation, close — when it fits;
   otherwise the navigation and close stay on the title line and the icons and buttons move to a right-aligned second line. */
#modal .modal-head.has-record-nav{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:8px}
#modal .modal-head.has-record-nav>*{flex-shrink:0}
#modal .modal-head.has-record-nav>.head-action.head-push{margin-inline-start:auto}
#modal .modal-head.has-record-nav>.record-nav{margin-inline-start:auto}
#modal .modal-head.has-record-nav>.head-action~.record-nav{margin-inline-start:4px}
#modal .modal-head.has-record-nav>.head-break{display:none}
#modal .modal-head.has-record-nav.is-stacked>.head-title{order:0}
#modal .modal-head.has-record-nav.is-stacked>.record-nav{order:1;margin-inline-start:auto}
#modal .modal-head.has-record-nav.is-stacked>:is([data-action="close"],.popup-dismiss){order:2}
#modal .modal-head.has-record-nav.is-stacked>.head-break{display:block;order:3;flex-basis:100%;height:0}
#modal .modal-head.has-record-nav.is-stacked>.head-action{order:4}
#modal .modal-head.has-record-nav.is-stacked>#modal-title,#modal .modal-head.has-record-nav.is-stacked>.workspace-modal-title{flex-shrink:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* #dashboard: tighter spacing between sections so the page fits without a vertical scroll on a laptop screen. */
.dashboard-page>.page-heading{margin-bottom:10px}
.main.dashboard-page>.page-heading{padding-block:6px}
.dashboard-page .dashboard-welcome.dashboard-banner{margin-bottom:12px;padding:12px 20px;gap:20px}
.dashboard-page .dashboard-banner-copy h2{margin:6px 0 10px}
.dashboard-page .dashboard-banner-chart .chart-container{height:118px}
.dashboard-page .stats-grid{gap:12px;margin-bottom:12px}
.dashboard-page .stats-grid .panel{padding-block:12px}
.dashboard-bottom-row{gap:12px}
.dashboard-bottom-row>.panel{height:300px}
.dashboard-page .dashboard-bottom-row .panel-head{margin-bottom:6px;padding-top:12px}
.dashboard-page .dashboard-panel-hint{margin-bottom:4px}
/* Lease signature up / down buttons: no taller than the record navigation pill. */
#modal .modal-head.lease-modal-head .modal-header-actions .btn.small.lease-signature-step{height:28px;min-height:28px;width:32px;padding:0;border-radius:8px}
#modal .modal-head.lease-modal-head .modal-header-actions .btn.small.lease-signature-step .icon{width:14px;height:14px}
/* Page pager (‹ 1 ▾ of 7 ›) on list pages: compact, matching the record navigation in view headers. */
html .page-pill{gap:2px;padding:2px;border-width:1px;box-shadow:0 2px 10px #0001}
html .page-pill .page-pill-arrow{width:28px;height:28px;min-height:28px}
html .page-pill .page-pill-arrow .icon{width:15px;height:15px}
html .page-pill .page-pill-select select{width:auto;min-width:3.2em;height:28px;min-height:28px;line-height:28px;padding:0 18px 0 8px;font-size:12px;font-weight:600}
html .page-pill .page-pill-select::after{right:5px;border-left-width:4px;border-right-width:4px;border-top-width:5px}
html .page-pill .page-pill-total{font-size:12px;padding-inline:0 4px}
#main:has(> .page-pill:not([hidden])){padding-bottom:56px}

/* Signed-in chat message box: multi-line like the #browse guest chat — one line when empty, taller once you type
   (Enter sends, Shift+Enter adds a line). */
.chat-composer{align-items:flex-end}
.chat-composer textarea[name=body]{flex:1;min-width:0;width:0;resize:none;height:36px;min-height:36px;max-height:180px;padding:8px 12px;line-height:18px;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);font:inherit;font-size:13px;overflow-y:auto}
.chat-composer textarea[name=body]:not(:placeholder-shown){height:auto;min-height:110px}

/* ---- Gradient themes ---------------------------------------------------------------------------------------
   Every colour theme paints the header, footer, left panel and primary buttons with a gradient (--grad-from → --grad-to).
   Solid themes use two shades of their colour; the gradient themes blend two colours. Black, White and custom colours stay flat. */
[data-color=violet]{--grad-from:#7c6cf0;--grad-to:#4f46e5}
[data-color=blue]{--grad-from:#3b82f6;--grad-to:#1e40af}
[data-color=emerald]{--grad-from:#059669;--grad-to:#065f46}
[data-color=teal]{--grad-from:#14b8a6;--grad-to:#0f766e}
[data-color=rose]{--grad-from:#e11d74;--grad-to:#9d174d}
[data-color=amber]{--grad-from:#d97706;--grad-to:#92400e}
[data-color=indigo]{--grad-from:#6366f1;--grad-to:#3730a3}
[data-color=sky]{--grad-from:#0284c7;--grad-to:#075985}
[data-color=cyan]{--grad-from:#0891b2;--grad-to:#155e75}
[data-color=forest]{--grad-from:#22a04b;--grad-to:#166534}
[data-color=plum]{--grad-from:#9333ea;--grad-to:#6b21a8}
[data-color=crimson]{--grad-from:#dc2626;--grad-to:#991b1b}
[data-color=sunset]{--primary:#c2410c;--primary-dark:#9a3412;--palette-soft:#fff0e8;--palette-dark:#45302a;--hero-from:#ffeadf;--hero-to:#fde4ee;--hero-dark-from:#47302a;--hero-dark-to:#45293a;--grad-from:#f97316;--grad-to:#db2777}
[data-color=ocean]{--primary:#2563eb;--primary-dark:#1e40af;--palette-soft:#e8f0ff;--palette-dark:#25324f;--hero-from:#e0f2fe;--hero-to:#e8e7ff;--hero-dark-from:#1f3a50;--hero-dark-to:#2c2c52;--grad-from:#0ea5e9;--grad-to:#4f46e5}
[data-color=aurora]{--primary:#047857;--primary-dark:#065f46;--palette-soft:#e4f6ef;--palette-dark:#223e3b;--hero-from:#dcfce7;--hero-to:#dbeafe;--hero-dark-from:#1e3d33;--hero-dark-to:#23364d;--grad-from:#10b981;--grad-to:#3b82f6}
[data-color=berry]{--primary:#9333ea;--primary-dark:#7e22ce;--palette-soft:#f5e9fe;--palette-dark:#3c2a4b;--hero-from:#f3e8ff;--hero-to:#fce7f3;--hero-dark-from:#3b2950;--hero-dark-to:#482a40;--grad-from:#9333ea;--grad-to:#db2777}
[data-color=midnight]{--primary:#4338ca;--primary-dark:#312e81;--palette-soft:#e9eafc;--palette-dark:#2a2b48;--hero-from:#e0e7ff;--hero-to:#ede9fe;--hero-dark-from:#1f2a4d;--hero-dark-to:#2e2852;--grad-from:#1e3a8a;--grad-to:#7c3aed}
[data-color=peach]{--primary:#be123c;--primary-dark:#9f1239;--palette-soft:#ffeef0;--palette-dark:#46292f;--hero-from:#ffe4e6;--hero-to:#fef3c7;--hero-dark-from:#472a31;--hero-dark-to:#45382a;--grad-from:#fb7185;--grad-to:#f59e0b}
[data-color=lagoon]{--primary:#0e7490;--primary-dark:#155e75;--palette-soft:#e2f5f7;--palette-dark:#213e45;--hero-from:#cffafe;--hero-to:#d1fae5;--hero-dark-from:#1d3d47;--hero-dark-to:#1f3f34;--grad-from:#06b6d4;--grad-to:#10b981}
[data-color=royal]{--primary:#6d28d9;--primary-dark:#5b21b6;--palette-soft:#f1eafe;--palette-dark:#36294b;--hero-from:#ede9fe;--hero-to:#fae8ff;--hero-dark-from:#2f2952;--hero-dark-to:#45284c;--grad-from:#4338ca;--grad-to:#c026d3}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]){--frame-gradient:linear-gradient(90deg,var(--grad-from,var(--primary)),var(--grad-to,var(--primary-dark)));--frame-gradient-vertical:linear-gradient(180deg,var(--grad-from,var(--primary)),var(--grad-to,var(--primary-dark)));--button-gradient:linear-gradient(135deg,var(--grad-from,var(--primary)),var(--grad-to,var(--primary-dark)))}
html[data-color] :is(.topbar,.public-header,.footer){background:var(--frame-gradient,var(--frame-bg,var(--primary)))}
html[data-color] :is(.sidebar,.sidebar-footer){background:var(--frame-gradient-vertical,var(--frame-bg,var(--primary)))}
/* Gradient themes: the sidebar, header and footer are slices of one gradient across the window, so they meet
   without a seam (the sidebar's bottom and the footer's left end are the same colour). */
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(.sidebar,.topbar,.public-header,.footer,.floating-chat-heading){background:linear-gradient(135deg,var(--grad-from,var(--primary)),var(--grad-to,var(--primary-dark))) fixed}
html[data-color] .sidebar-footer{background:transparent}
html[data-color] :is(.btn.primary:not(:disabled),button.primary:not(:disabled),.page-pill-arrow:not(:disabled),.floating-chat-button){background-image:var(--button-gradient,none);border-color:transparent}
html[data-color] :is(.btn.primary,button.primary):is(:hover,:focus-visible){background-image:var(--button-gradient,none);filter:brightness(1.08)}
html[data-custom-colors] :is(.topbar,.public-header){background:var(--custom-header)}
html[data-custom-colors] :is(.sidebar,.sidebar-footer){background:var(--custom-sidebar)}
html[data-custom-colors] .footer{background:var(--custom-footer)}
/* The chat panel's title bar matches the page header. */
html[data-custom-colors] .floating-chat-heading{background:var(--custom-header);color:var(--custom-header-text)}
html[data-custom-colors] .floating-chat-heading .icon-btn{color:var(--custom-header-text)}

/* Application Theme popup: preview cards grouped as Gradient themes and Solid colours. */
.theme-chooser form{display:grid;gap:10px}
.theme-group-title{margin:4px 0 0;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.theme-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:10px}
.theme-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:6px 6px 8px;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--text);cursor:pointer;text-align:start;font:inherit;transition:transform .12s,box-shadow .12s}
.theme-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px #0000001a}
.theme-card:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.theme-card[aria-pressed=true],.theme-card.custom-color-option[data-selected=true]{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary)}
.theme-preview{position:relative;display:block;height:62px;border-radius:8px;overflow:hidden;background:#f4f4f8;border:1px solid #0000000d}
.theme-preview-top{position:absolute;inset:0 0 auto 0;height:13px;background:linear-gradient(90deg,var(--from),var(--to))}
.theme-preview-side{position:absolute;left:0;top:13px;bottom:0;width:22px;background:linear-gradient(180deg,var(--from),var(--to))}
.theme-preview-body{position:absolute;left:28px;right:6px;top:19px;bottom:6px;display:flex;flex-direction:column;gap:4px}
.theme-preview-body i{display:block;height:5px;border-radius:3px;background:#d9d8e3}
.theme-preview-body i+i{width:70%}
.theme-preview-body b{display:block;width:34px;height:10px;margin-top:auto;border-radius:5px;background:linear-gradient(135deg,var(--from),var(--to))}
.theme-card.is-light :is(.theme-preview-top,.theme-preview-side){background:#fff;border:1px solid #d9d8e3}
.theme-card.is-light .theme-preview-body b{background:#171717}
.theme-preview-custom{display:grid;place-items:center;background:conic-gradient(from 90deg,#f97316,#db2777,#7c3aed,#0ea5e9,#10b981,#f59e0b,#f97316);color:#fff}
.theme-preview-custom .icon{width:22px;height:22px;filter:drop-shadow(0 1px 2px #0006)}
.theme-card-name{font-size:12px;font-weight:600;padding-inline:2px}
.theme-card-check{position:absolute;top:10px;right:10px;width:20px;height:20px;display:none;place-items:center;border-radius:50%;background:#fff;color:var(--primary);box-shadow:0 1px 4px #0003}
.theme-card-check .icon{width:13px;height:13px}
.theme-card[aria-pressed=true] .theme-card-check,.theme-card.custom-color-option[data-selected=true] .theme-card-check{display:grid}
html[data-theme=dark] .theme-preview{background:#2a2838}
html[data-theme=dark] .theme-preview-body i{background:#4a4760}
/* #dashboard Recent Posts: the hint sits beside the heading. */
.dashboard-properties .panel-head{flex-wrap:wrap;column-gap:12px}
.dashboard-properties .panel-head h2{flex:none}
.dashboard-properties .panel-head .dashboard-panel-hint{flex:1 1 200px;min-width:0;margin:0;align-self:center}
.dashboard-properties .panel-head .btn.ghost{margin-inline-start:auto}
/* Dropdown lists: choices in regular weight (the check mark shows what is chosen). */
html[lang] :is(.filter-menu-list,.pick-filter-items,.select-search-list) :is(.filter-menu-item,.filter-menu-item *,.pick-filter-name,.select-search-option),
html[lang] .filter-menu-item.active,html[lang] .record-sort-item.active>.filter-menu-item,html[lang] .select-search-option.is-selected,
html[lang] select option{font-weight:400}
/* An open (or hovered) dropdown button uses the theme gradient instead of a flat colour. */
html[lang][data-color] :is(.filter-menu,.browse-filter-menu,.pick-filter-menu)[open]>summary.btn,
html[lang][data-color] .browse-filters .browse-filter-menu>summary.btn:is(:hover,:focus-visible){background-color:var(--primary-dark);background-image:var(--button-gradient,none);border-color:transparent;color:#fff}
html[lang][data-color] :is(.filter-menu,.browse-filter-menu,.pick-filter-menu)[open]>summary.btn :is(.filter-menu-label,.icon,.filter-count){color:#fff}
/* Rent receipt popup: signature pad when the owner has no profile signature. */
.receipt-signature{display:grid;gap:8px;margin-bottom:12px}
.receipt-signature p{margin:0;font-size:13px}

.rent-receipt-preview{margin:0 0 16px}.rent-receipt-preview img{display:block;width:100%;height:auto;background:#fff;border:1px solid var(--border);border-radius:8px}.rent-receipt-preview figcaption{margin-top:6px;font-size:12px;color:var(--muted)}

/* Receipt popup: 25% wider than the 600px compact popup, with two header rows. */
#modal[open]:has(.rent-receipt-preview){width:min(750px,calc(100% - 32px))!important}
#modal[open]:has(.rent-receipt-preview) .modal-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:16px}
#modal[open]:has(.rent-receipt-preview) .modal-head #modal-title{grid-column:1/-1;grid-row:1;order:0;margin:0;text-align:left;white-space:nowrap;overflow-wrap:normal;min-width:0}
#modal[open]:has(.rent-receipt-preview) .modal-header-actions{grid-column:1;grid-row:2;order:0;justify-self:end;justify-content:flex-end;margin:0;flex-wrap:wrap}
#modal[open]:has(.rent-receipt-preview) .modal-header-actions .btn{white-space:nowrap}
#modal[open]:has(.rent-receipt-preview) .modal-head>.record-nav{grid-column:2;grid-row:2;order:0;justify-self:end;margin:0}
#modal[open]:has(.rent-receipt-preview) .modal-head:not(:has(.record-nav)) .modal-header-actions{grid-column:1/3}
#modal[open]:has(.rent-receipt-preview) .modal-head>:is(.popup-dismiss,[data-action="close"]){position:static;grid-column:3;grid-row:2;order:0;margin:0;justify-self:end}
#modal[open]:has(.rent-receipt-preview) .modal-head>.head-break{display:none}
@media(max-width:600px){
 #modal[open]:has(.rent-receipt-preview){width:calc(100% - 16px)!important}
 #modal[open]:has(.rent-receipt-preview) .modal-head #modal-title{white-space:normal;overflow-wrap:anywhere}
 #modal[open]:has(.rent-receipt-preview) .modal-header-actions{grid-column:1/3}
 #modal[open]:has(.rent-receipt-preview) .modal-head>.record-nav{grid-column:1/-1;grid-row:3}
}

/* The sidebar's logo and name sit within the header's height, level with the top bar. */
@media(min-width:721px){
 .sidebar .sidebar-scroll{padding-top:0}
 .sidebar .sidebar-scroll>.brand{height:var(--page-topbar-height);font-size:22px}
 .sidebar .sidebar-scroll>.brand .app-logo{width:34px;height:34px}
 .sidebar-collapse-toggle{top:calc(var(--page-topbar-height) - 14px)}
}

/* Chat dock: no hide arrow (the X closes the chat). */
.chat-dock>:first-child>.chat-dock-toggle{display:none!important}
/* Resize grip: three dots in the middle of the open chat's left border (drag the border to resize it). */
.chat-dock::before{background:radial-gradient(circle,var(--muted) 1.6px,transparent 2.2px) 50% calc(50% - 8px)/8px 8px no-repeat,radial-gradient(circle,var(--muted) 1.6px,transparent 2.2px) 50% 50%/8px 8px no-repeat,radial-gradient(circle,var(--muted) 1.6px,transparent 2.2px) 50% calc(50% + 8px)/8px 8px no-repeat}
.chat-dock:hover::before{background:radial-gradient(circle,var(--primary) 1.6px,transparent 2.2px) 50% calc(50% - 8px)/8px 8px no-repeat,radial-gradient(circle,var(--primary) 1.6px,transparent 2.2px) 50% 50%/8px 8px no-repeat,radial-gradient(circle,var(--primary) 1.6px,transparent 2.2px) 50% calc(50% + 8px)/8px 8px no-repeat}


/* Gradient themes: popup title bars use the theme gradient with white text and icons, like the page header. */
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(#modal,dialog) .modal-head{background:var(--frame-gradient);color:#fff;border-bottom-color:transparent}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(#modal,dialog) .modal-head :is(h2,h3,#modal-title,.workspace-modal-title,.lease-modal-property,.muted,small,.icon-btn,.popup-dismiss){color:#fff}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(#modal,dialog) .modal-head :is(.icon-btn,.popup-dismiss){background:transparent;border-color:transparent}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(#modal,dialog) .modal-head :is(.icon-btn,.popup-dismiss):is(:hover,:focus-visible){background:#ffffff2e;color:#fff}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(#modal,dialog) .modal-head .btn:not(.danger):not(.ghost){border-color:#ffffff8c}

/* Lease view header: the lease number large on the left, the address as a heading after it, then the status; the split
   action button, pager and close sit on the right of the same line. */
#modal .modal-head.lease-modal-head #modal-title{font-size:22px;font-weight:700;line-height:1.2}
#modal .modal-head.lease-modal-head h3.lease-modal-property{flex:0 1 auto;min-width:0;margin:0;font-size:16px;font-weight:600;line-height:1.3;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#modal .modal-head.lease-modal-head .lease-action-menu>.btn{min-height:34px;height:34px;font-size:13px}
#modal .lease-action-menu>.btn.primary:is([data-action="rental-lease-approve"],[data-action="rental-lease-reject"]){background:var(--button-gradient,none) var(--primary);border-color:var(--primary)}
#modal .lease-action-menu .split-button-menu .split-button-item[data-action="rental-lease-reject"]{color:#b42332}
@media(min-width:721px){
 #modal .modal-head.lease-modal-head{flex-wrap:nowrap}
 #modal .modal-head.lease-modal-head.has-record-nav>h3.lease-modal-property{flex-shrink:1}
 #modal .modal-head.lease-modal-head.has-record-nav>.head-break{display:none!important}
}

/* Card photos: the status badge and the property name share one pill style (shape, height, type and position). */
:is(.property-card,.record-card) .property-photo>:is(.badge,.property-group-tag){top:10px;display:inline-flex;align-items:center;gap:5px;height:26px;min-height:26px;padding:0 11px;border-radius:999px;font-size:12px;font-weight:600;line-height:1;background:#ffffffe6;backdrop-filter:none;box-shadow:0 1px 3px #0000001f}
:is(.property-card,.record-card) .property-photo>.badge{left:10px}
:is(.property-card,.record-card) .property-photo>.property-group-tag .icon{width:13px;height:13px}
html[data-theme=dark] :is(.property-card,.record-card) .property-photo>:is(.badge,.property-group-tag){background:#30283ee6}

/* Listing photo gallery: 86% of the window (75% plus 15%), centred (Full screen still opens the full-window viewer). */
@media(min-width:721px){dialog.listing-gallery{width:86.25vw;height:86.25dvh;margin:auto;border-radius:16px;overflow:hidden;box-shadow:0 30px 100px #1e173d55}}
/* Gradient popup title bars: the heart and share icons are white too (a loved heart stays red). */
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(#modal,dialog) .modal-head :is(.love-toggle:not(.is-loved),.share-toggle){color:#fff}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(#modal,dialog) .modal-head :is(.love-toggle,.share-toggle):is(:hover,:focus-visible){background:#ffffff2e}

/* Gradient themes: every popup has a 2px border in the theme gradient (the popup keeps its own background inside it). */
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) dialog[open]{border:2px solid transparent!important;background:linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(135deg,var(--grad-from,var(--primary)),var(--grad-to,var(--primary-dark))) border-box!important}


/* MULTIVIEW: footer switch (phone / tablet / desktop) and the device preview over the page. */
.multiview-switch{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--frame-border,#ffffff40);border-radius:999px;flex:none}
.multiview-btn{display:inline-grid;place-items:center;width:28px;height:24px;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer;opacity:.8}
.multiview-btn .icon{width:15px;height:15px}
.multiview-btn:is(:hover,:focus-visible){opacity:1;background:#ffffff26}
.multiview-btn.is-active{opacity:1;background:#fff;color:var(--primary-dark)}
.environment-footer .multiview-switch,.contact-public-footer .multiview-switch{margin-inline-end:10px;border-color:var(--border)}
.multiview-stage{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;background:#14111fe6;backdrop-filter:blur(4px)}
.multiview-bar{display:flex;align-items:center;justify-content:center;gap:16px;height:52px;flex:none;color:#fff;font-size:13px;font-weight:600}
.multiview-bar .multiview-switch{border-color:#ffffff55}
.multiview-room{position:relative;flex:1;min-height:0;display:grid;place-items:center;overflow:hidden}
.multiview-device{position:absolute;left:50%;top:50%;border:10px solid #0b0a12;border-radius:34px;background:#fff;box-shadow:0 30px 80px #0008;overflow:hidden;transform-origin:center center}
.multiview-device iframe{display:block;width:100%;height:100%;border:0}
@media(max-width:720px){.multiview-switch{display:none}}

/* A split button with nothing in its drop-down is a plain button with all four corners rounded. */
.split-button>.btn:only-child,.lease-action-single{border-radius:8px!important}

/* Move-In Inspection popup. */
.move-in-form{display:grid;gap:16px}
.move-in-section{display:grid;align-content:start;gap:10px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
.move-in-section>h3{margin:0;font-size:15px}
.move-in-checks{display:grid;gap:8px;align-content:start}
.move-in-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.move-in-photo{margin:0;display:grid;gap:4px}
.move-in-photo img{width:100%;height:100px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}
.move-in-signatures{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.move-in-signature{display:grid;gap:8px;align-content:start;padding:12px;border:1px dashed var(--border);border-radius:10px}
.move-in-signature h3{margin:0;font-size:13px;color:var(--muted)}
.move-in-signed{display:grid;gap:2px}
.move-in-signed img{max-width:220px;max-height:70px;object-fit:contain;background:#fff;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.badge.inspection-pending{color:#a16207;background:#fef6e0}
.badge.inspection-completed{color:#6d28d9;background:#f1ebfe}
html[data-theme=dark] .badge.inspection-pending{color:#fde68a;background:#4a3a12}
html[data-theme=dark] .badge.inspection-completed{color:#ddd6fe;background:#3b2a5c}
.move-in-drawing{width:220px;height:66px;background:#fff;border-radius:6px}
/* Move-In Inspection layout: deposit and rent received side by side, both months on one line, photo previews like the Rental Unit form. */
.move-in-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.move-in-row>.move-in-section .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.move-in-rent{display:grid;gap:10px}
.move-in-checks{display:flex;flex-wrap:wrap;gap:8px 24px}
.move-in-checks .check-field{margin:0}
.move-in-gallery{margin:0;grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.move-in-gallery:empty{display:none}
.move-in-gallery figure.is-removed img{opacity:.35}
.move-in-gallery figure.is-removed .property-media-remove{background:#b42335;opacity:1}
.move-in-removing{color:#b42335!important}
@media(max-width:900px){.move-in-row,.move-in-row>.move-in-section .form-grid{grid-template-columns:1fr}}
/* Rent received: each month's tick box with its amount underneath, the two months side by side. */
.move-in-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
.move-in-month{display:grid;gap:6px;align-content:start}
.move-in-month .field{margin:0}
/* Move-In Inspection: the line under the header (address, status, recorded) reads at body size; the removal note
   only shows on a photo marked for removal (the gallery's caption style would otherwise show it). */
dialog.move-in-popup p.move-in-summary{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:16px!important;color:var(--text)!important}
dialog.move-in-popup p.move-in-summary .badge{font-size:14px!important;padding:4px 10px}
.move-in-gallery figcaption small.move-in-removing[hidden]{display:none!important}
/* Rental unit / post view: owner contact buttons in the Property owner card. */
.listing-owner-contact{display:flex;justify-content:center;gap:4%;margin-top:12px;width:100%}
.listing-owner-contact .btn{flex:0 0 98%;width:98%!important;max-width:none!important;min-width:0;justify-content:center}
.listing-owner-contact.has-chat .btn{flex-basis:48%;width:48%!important}
.listing-owner-contact .btn[hidden]{display:none}
/* Heart and share in the view popup header sit close together. */
#modal .modal-head :is(.love-toggle.love-header,.share-toggle.share-header){width:36px;height:36px;margin:0}
#modal .modal-head .love-toggle.love-header+.share-toggle.share-header,#modal .modal-head .share-toggle.share-header+.love-toggle.love-header{margin-inline-start:-6px}
/* Move-In Inspection header: title and lease number, then the address and status. */
dialog.move-in-popup .modal-head{gap:12px;flex-wrap:wrap}
dialog.move-in-popup .modal-head h2{flex:0 0 auto!important}
dialog.move-in-popup .modal-head .move-in-head-address{flex:0 1 auto;min-width:0;font-size:16px;font-weight:600;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
dialog.move-in-popup .modal-head .badge{flex:none;font-size:13px;margin-inline-end:auto}
/* Read-only inspection: no file pickers or required marks, just what was recorded. */
.move-in-form input[type=file]:disabled{display:none}
.move-in-form:has(input[name="deposit_amount"]:disabled) .field :is(.required,.required-mark,abbr,[aria-hidden="true"]):not(svg){display:none}
/* Owner status switch on rental unit / post cards and in their view popup (same pill as the status badge). */
.status-switch{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 11px 0 6px;border-radius:999px;background:#ffffffe6;color:#6b6780;font-size:12px;font-weight:600;line-height:1;cursor:pointer;box-shadow:0 1px 3px #0000001f;user-select:none}
.status-switch:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.status-switch-track{position:relative;width:28px;height:16px;border-radius:999px;background:#c9c6d6;transition:background .15s;flex:none}
.status-switch-knob{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:left .15s}
.status-switch.is-on{color:#2f7d6b}
.status-switch.is-on .status-switch-track{background:#2f9e7f}
.status-switch.is-on .status-switch-knob{left:14px}
.status-switch[data-busy]{opacity:.6;pointer-events:none}
:is(.property-card,.record-card) .property-photo>.status-switch{position:absolute;top:10px;left:10px;z-index:3}
html[data-theme=dark] .status-switch{background:#30283ee6;color:#d8d3e6}

.move-in-gallery img{cursor:zoom-in}
.record-card .invoice-card-month{color:#d92d20;font-weight:800}
html[data-theme="dark"] .record-card .invoice-card-month{color:#ff6b5e}
.page-heading .heading-actions:has(> a[href*="export/payments"]){flex-wrap:wrap;justify-content:flex-end;row-gap:8px}
/* Page toolbars (Rental Unit, Posts, Applications, Leases, Invoice): every filter, sort and action is a theme-coloured
   icon; a click opens the same dropdown. A filter that is narrowing the list shows its count as a badge. */
.record-sort-summary .sort-icon{display:none}
.icon-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;min-width:0}
.icon-toolbar .listing-controls,.icon-toolbar .filter-controls{display:contents}
html .page-heading .icon-toolbar .filter-menu>summary.btn,html .icon-toolbar .filter-menu>summary.btn,html .icon-toolbar .tool-icon{position:relative;display:inline-grid;place-items:center;width:38px;height:38px;min-width:38px;max-width:38px;padding:0;border:1px solid var(--border)!important;border-radius:10px;background:var(--card)!important;color:var(--primary)!important;box-shadow:none}
html .icon-toolbar .filter-menu>summary.btn:is(:hover,:focus-visible),html .icon-toolbar .tool-icon:is(:hover,:focus-visible),html .icon-toolbar .filter-menu[open]>summary.btn{background:var(--primary-soft)!important;border-color:var(--primary)!important}
html .icon-toolbar .filter-menu.is-filtered>summary.btn{border-color:var(--primary)!important}
.icon-toolbar .filter-menu>summary>*{display:none}
.icon-toolbar .filter-menu>summary>.icon:first-child,.icon-toolbar .record-sort-summary .sort-icon{display:block;width:18px;height:18px;transform:none}
.icon-toolbar .tool-icon .icon{width:18px;height:18px}
.icon-toolbar .filter-menu.is-filtered>summary>.filter-count{display:grid;place-items:center;position:absolute;top:-7px;inset-inline-end:-7px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--button-gradient,none) var(--primary);color:#fff;font-size:10px;font-weight:700;line-height:1}
.icon-toolbar .filter-menu-list{max-height:min(420px,70vh);overflow:auto}
.icon-toolbar .team-view-toggle{flex:none}
@media (max-width:760px){.page-heading .heading-actions:has(>.icon-toolbar){width:100%;justify-content:flex-end}.icon-toolbar{justify-content:flex-end;flex-wrap:nowrap;width:100%;gap:4px}html .page-heading .icon-toolbar .filter-menu>summary.btn,html .icon-toolbar .filter-menu>summary.btn,html .icon-toolbar .tool-icon{width:34px;height:34px;min-width:34px;max-width:34px;border-radius:9px}.icon-toolbar .team-view-toggle .team-view-btn{width:28px;height:28px}.icon-toolbar .team-view-toggle{margin-inline-start:2px}.icon-toolbar .filter-menu-list{position:fixed;top:auto;inset-inline:16px;min-width:0;max-width:none}}
html .page-heading .icon-toolbar .record-sort-menu>summary.btn :is(.icon,.sort-icon){color:var(--primary)!important;stroke:currentColor!important}
/* Phone header: hamburger, then the ApplyRent logo and name; Ask AI becomes "?"; language, loved posts and notifications are hidden. */
.mobile-brand,.ask-ai-mark{display:none}
@media(max-width:720px){
 .topbar .breadcrumb>:not(.mobile-toggle):not(.mobile-brand){display:none}
 .mobile-brand{display:inline-flex;align-items:center;gap:7px;color:#fff;font-weight:800;font-size:17px;text-decoration:none;white-space:nowrap;min-width:0}
 .mobile-brand img,.mobile-brand svg{width:30px;height:30px;flex:none;object-fit:contain}
 .topbar-actions :is(.language-picker,.love-filter,[data-action="notifications"],.topbar-separator){display:none!important}
 html .topbar-actions .help-button{display:inline-grid!important;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;background:#ffffff26!important;border:1px solid #ffffff59!important;color:#fff!important}
 .topbar-actions .help-button>:not(.ask-ai-mark){display:none}
 .topbar-actions .help-button .ask-ai-mark{display:block;font-size:18px;font-weight:800;line-height:1}
}
@media(max-width:900px){.page-heading .heading-actions:has(>.icon-toolbar){width:100%;justify-content:flex-end!important}.page-heading .heading-actions .filters.icon-toolbar{width:100%;flex-wrap:nowrap!important;justify-content:flex-end!important}}
@media(max-width:760px){.page-heading .heading-actions .filters.icon-toolbar{gap:4px!important}}
html[lang][data-color] .icon-toolbar .filter-menu>summary.btn .icon,html[lang] .icon-toolbar .filter-menu>summary.btn .icon{color:var(--primary)!important;stroke:currentColor!important}
html .page-heading .icon-toolbar .filter-menu>summary.btn,html .icon-toolbar .tool-icon{justify-content:center!important;align-content:center!important;place-items:center!important}
/* Phone / tablet listing popups: a plain vertical stack, so every card takes exactly its own height and none can overlap the next. */
@media(max-width:860px){.listing-body{display:flex;flex-direction:column;gap:12px}.listing-main,.listing-side{display:flex;flex-direction:column;gap:12px}.listing-main>.listing-card,.listing-side>.listing-card{flex:none;height:auto}}
@media(max-width:860px){.listing-body>.listing-main,.listing-body>.listing-side{width:100%;min-width:0;max-width:100%;align-self:stretch}.listing-main>.listing-card,.listing-side>.listing-card{min-width:0;max-width:100%}}
#modal .modal-head.has-record-nav.is-stacked>.head-action{margin-inline:auto 0;justify-content:flex-end}
@media(max-width:620px){:is(#rental-approval-form,#rental-approval-review) .approval-grid,:is(#rental-approval-form,#rental-approval-review) .approval-rental-details>.approval-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}:is(#rental-approval-form,#rental-approval-review) .approval-grid>div{grid-column:auto!important;min-width:0;overflow-wrap:break-word;word-break:normal}.approval-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.approval-grid>*{overflow-wrap:break-word}}
/* Dashboard heading: the date and the + icon stay on the greeting's line, also on phones. */
.dashboard-toolbar{flex-wrap:nowrap;gap:10px}
@media(max-width:900px){.page-heading:has(.dashboard-toolbar){flex-wrap:nowrap!important;align-items:flex-start}.page-heading:has(.dashboard-toolbar)>div:first-child{flex:1 1 auto;min-width:0}.page-heading .heading-actions:has(>.dashboard-toolbar){width:auto!important;flex:none}.page-heading .heading-actions .filters.icon-toolbar.dashboard-toolbar,.page-heading .heading-actions>.dashboard-toolbar{width:auto}}
@media(max-width:720px){.dashboard-toolbar{gap:6px}.dashboard-toolbar .dashboard-date{font-size:12px;padding:0;white-space:nowrap}.page-heading:has(.dashboard-toolbar) h1{font-size:20px}}

/* Photo popups (listing gallery, photo viewer): the title bar matches the other popup headers. */
:is(.gallery-bar,.photo-viewer-toolbar){background:var(--primary-soft);color:var(--text)}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(.gallery-bar,.photo-viewer-toolbar){background:var(--frame-gradient);color:#fff;border-bottom-color:transparent}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(.gallery-bar,.photo-viewer-toolbar) :is(.icon,.icon-btn,.popup-dismiss,strong,span,.gallery-price,.love-toggle:not(.is-loved),.share-toggle){color:#fff}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) .gallery-price{border-inline-start-color:#ffffff66}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(.gallery-bar,.photo-viewer-toolbar) :is(.icon-btn,.popup-dismiss,.love-toggle,.share-toggle){background:transparent;border-color:transparent}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) :is(.gallery-bar,.photo-viewer-toolbar) :is(.icon-btn,.popup-dismiss,.love-toggle,.share-toggle):is(:hover,:focus-visible){background:#ffffff2e;color:#fff}
html[data-color]:not([data-color=black]):not([data-color=white]):not([data-custom-colors]) .photo-viewer-controls button:not(.popup-dismiss){background:#ffffff1f;border-color:#ffffff66;color:#fff}

/* Phones: popup header rows reach the right edge (only the first row leaves room for the close button in the corner). */
@media(max-width:720px){
 :is(#modal,.lease-detail-popup) .modal-head{padding-right:16px}
 :is(#modal,.lease-detail-popup) .modal-head:is(:not(.has-record-nav),.lease-modal-head)>:first-child{margin-inline-end:44px}
 :is(#modal,.lease-detail-popup) .modal-head.has-record-nav:not(.lease-modal-head)>.record-nav{margin-inline-end:44px}
 :is(#modal,.lease-detail-popup) .modal-head>:is(.head-action,.workspace-header-actions,.listing-header-actions,.modal-header-actions){margin-inline-start:auto;justify-content:flex-end}
}
/* Icon toolbar split button (#team): + icon and a separate ⋯ menu icon. */
.icon-toolbar .split-button.tool-split{gap:6px;flex:none}
.icon-toolbar .tool-split>.split-button-toggle[aria-expanded="true"] .icon{transform:none}
.icon-toolbar .tool-split>.split-button-toggle .icon{stroke-width:3.4}
@media(max-width:760px){.icon-toolbar .split-button.tool-split{gap:4px}}
/* Signed-in search panels (the search icon beside Posts and other menu items) take the menu's colour-theme background,
   with title, labels and close button in the menu's text colour. Fields stay white boxes. */
html[data-color] .sidebar .sidebar-search{background:inherit;color:var(--frame-text,#fff)}
html[data-color] .sidebar .sidebar-search :is(.browse-filters-head,.browse-filters-actions){border-color:var(--frame-border,#ffffff40)}
html[data-color] .sidebar .sidebar-search:not(.is-collapsed) :is(.browse-filters-head h2,.browse-filters-head h2 .icon,.browse-filters-body .field>span,.browse-active-only,.browse-filters-toggle){color:var(--frame-text,#fff)}
html[data-color] .sidebar .sidebar-search .browse-active-only input{accent-color:var(--frame-text,#fff)}
/* Profile menu (avatar in the header): the header's colour-theme background, text and lines in the header's text colour. */
html[data-color] .account-menu{background:var(--frame-gradient-vertical,var(--frame-bg,var(--primary)));border-color:var(--frame-border,#ffffff40);color:var(--frame-text,#fff)}
html[data-color] .account-menu :is(.account-menu-heading,.account-signout){border-color:var(--frame-border,#ffffff40)}
html[data-color] .account-menu :is(.account-option,.account-menu-heading small,.account-signout){color:var(--frame-text,#fff)}
html[data-color] .account-menu .account-menu-heading small{opacity:.8}
html[data-color] .account-menu .account-option:is(:hover,:focus-visible){background:color-mix(in srgb,var(--frame-text,#fff) 16%,transparent);color:var(--frame-text,#fff)}
html[data-color] .account-menu :is(button,a):focus-visible{outline-color:var(--frame-text,#fff)}
/* Dropdown buttons (filters, sort, country, split buttons in popups) and icon buttons take the colour theme:
   the theme background (gradient themes use their gradient) with the theme's text colour on icons and labels.
   Hovered or open, they darken a little. Signed-in pages, the left menu and popups only. */
html[data-color]{--ctl-bg:var(--frame-bg,var(--primary));--ctl-img:var(--button-gradient,none);--ctl-text:var(--frame-text,#fff);--ctl-border:var(--frame-border,#ffffff59)}
html[data-custom-colors]{--ctl-bg:var(--custom-header);--ctl-img:none;--ctl-text:var(--custom-header-text);--ctl-border:color-mix(in srgb,var(--custom-header-text) 30%,transparent)}
html[data-custom-colors] .sidebar{--ctl-bg:var(--custom-sidebar);--ctl-text:var(--custom-sidebar-text);--ctl-border:color-mix(in srgb,var(--custom-sidebar-text) 35%,transparent)}
html[lang][data-color] :is(.shell,.sidebar,dialog,.browse-filters) :is(.filter-menu>summary.btn,.tool-icon,.split-button>.btn,.split-button>.split-button-toggle){background-color:var(--ctl-bg)!important;background-image:var(--ctl-img)!important;color:var(--ctl-text)!important;border-color:var(--ctl-border)!important}
html[lang][data-color] :is(.shell,.sidebar,dialog,.browse-filters) :is(.filter-menu>summary.btn,.tool-icon,.split-button>.btn,.split-button>.split-button-toggle) :is(.icon,.filter-menu-label,.sort-icon){color:var(--ctl-text)!important;stroke:currentColor!important}
html[lang][data-color] :is(.shell,.sidebar,dialog,.browse-filters) :is(.filter-menu>summary.btn,.tool-icon,.split-button>.btn,.split-button>.split-button-toggle):is(:hover,:focus-visible,[aria-expanded="true"]),
html[lang][data-color] :is(.shell,.sidebar,dialog,.browse-filters) .filter-menu[open]>summary.btn{box-shadow:inset 0 0 0 100px #00000026!important}
html[lang][data-color] :is(.shell,.sidebar,dialog,.browse-filters) :is(.filter-menu>summary.btn,.tool-icon) .filter-count{background:var(--ctl-text)!important;color:var(--ctl-bg)!important;border-color:var(--ctl-bg)!important}
/* Phones: dropdown buttons in popups show as icons only (the name stays as the button's accessible label). */
@media(max-width:720px){
 :is(#modal,dialog) .split-button>.btn:first-child{font-size:0;gap:0;min-width:42px;padding-inline:11px;justify-content:center}
 :is(#modal,dialog) .split-button>.btn:first-child .icon{width:18px;height:18px;margin:0}
 :is(#modal,dialog) .split-button>.btn:first-child>:not(.icon){display:none}
}
/* Black and White themes have no colour fade (the page may still carry the previous theme's gradient). */
html:is([data-color=black],[data-color=white]):not([data-custom-colors]){--ctl-img:none}
html[data-color=black]:not([data-custom-colors]){--ctl-bg:#171717}
/* #browse search options (left side): open, the panel takes the colour-theme background (top to bottom fade), with the
   title, labels and buttons in the theme's text colour; typing boxes stay white. */
html[data-color] .browse-filters:not(.sidebar-search):not(.is-collapsed){background:var(--frame-gradient-vertical,var(--frame-bg,var(--primary)));color:var(--frame-text,#fff);border-right-color:var(--frame-border,#ffffff40)}
html[data-color] .browse-filters:not(.sidebar-search) :is(.browse-filters-head,.browse-filters-actions){border-color:var(--frame-border,#ffffff40)}
html[data-color] .browse-filters:not(.sidebar-search):not(.is-collapsed) :is(.browse-filters-head h2,.browse-filters-head h2 .icon,.browse-filters-body .field>span,.browse-active-only,.browse-filters-toggle,.browse-filters-body legend,.browse-filters-body .check-field){color:var(--frame-text,#fff)}
html[data-color] .browse-filters:not(.sidebar-search).is-collapsed{background:var(--frame-gradient-vertical,var(--frame-bg,var(--primary)))}
/* Dashboard "Activity today" popup: compact grid of large icons, today's count shown as a badge on each icon. */
#modal[open]:has(.dashboard-activity-list){width:fit-content!important;max-width:calc(100% - 32px)!important;height:fit-content!important;max-height:calc(100dvh - 48px)!important}
#modal:has(.dashboard-activity-list) .modal-body{flex:none;height:auto}
#modal:has(.dashboard-activity-list) .modal-body>h3{margin:0 0 2px}
#modal:has(.dashboard-activity-list) .modal-body>p.muted{margin:0 0 14px}
.dashboard-activity-list{display:grid;grid-template-columns:repeat(3,104px);gap:10px;justify-content:center}
.activity-tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px 10px;border:1px solid var(--border);border-radius:14px;background:var(--card);text-align:center}
.activity-tile-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--primary-soft);color:var(--primary)}
.activity-tile-icon .icon{width:28px;height:28px}
.activity-count{position:absolute;top:-6px;right:-10px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--muted);color:#fff;font-size:12px;font-weight:700;line-height:22px;text-align:center;box-shadow:0 0 0 2px var(--card)}
.activity-tile.has-activity .activity-count{background:var(--primary)}
.activity-tile-label{font-size:12px;font-weight:600;color:var(--text);line-height:1.25}
@media(max-width:400px){.dashboard-activity-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
#modal:has(.dashboard-activity-list) .modal-head :is(.modal-header-actions,.record-nav){display:none}
/* Open filter-menu lists float in the top layer (select-position.js): fixed to the button, kept inside the window. */
details.filter-menu.menu-floating>.filter-menu-list:popover-open{position:fixed;inset:auto;left:var(--menu-left);top:var(--menu-top);bottom:var(--menu-bottom);width:var(--menu-width);min-width:0;max-width:calc(100vw - 16px);max-height:var(--menu-height,420px);margin:0;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;color:var(--text);z-index:10000;box-shadow:0 12px 32px #2a225033}
details.filter-menu.menu-floating>.filter-menu-list:popover-open>*{flex-shrink:0}
details.filter-menu.menu-floating>.filter-menu-list:popover-open:not(:has(.pick-filter-items)){overflow-y:auto;overscroll-behavior:contain}
details.filter-menu.menu-floating>.filter-menu-list:popover-open>.pick-filter-items{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
/* Open dropdown lists (and the language menu) use the header background of the chosen theme, like the profile menu. */
html[data-color] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search),html[data-color] select::picker(select){background:var(--frame-gradient-vertical,var(--frame-bg,var(--primary)));border-color:var(--frame-border,#ffffff40);color:var(--frame-text,#fff)}
html[data-color] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search) :is(.filter-menu-item,.filter-menu-item.active,.pick-filter-name,.filter-count,label,.select-search-option,.select-search-group,.select-search-none,.language-option,.language-option[aria-checked=true],.muted,p),html[data-color] select option{color:var(--frame-text,#fff)}
html[data-color] .language-menu .language-option small{color:color-mix(in srgb,var(--frame-text,#fff) 75%,transparent)}
html[data-color] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search) :is(.filter-menu-item,label,.select-search-option,.language-option):is(:hover,:focus-visible),html[data-color] .select-search-option.is-active,html[data-color] select option:is(:hover,:focus-visible),html[data-color] .filter-menu-list :is(.filter-menu-item.active,.record-sort-item.active>.filter-menu-item){background:color-mix(in srgb,var(--frame-text,#fff) 16%,transparent);color:var(--frame-text,#fff)}
html[data-color] .language-menu :is(.language-option[aria-checked=true],.language-option[data-value="en"]),html[data-color] select option:checked,html[data-color] .select-search-option.is-selected{background:color-mix(in srgb,var(--frame-text,#fff) 22%,transparent);color:var(--frame-text,#fff);box-shadow:none}
html[data-color] .language-menu .language-option[data-value="en"]:not([aria-checked=true]){background:var(--frame-gradient-vertical,var(--frame-bg,var(--primary)))}
html[data-color] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search) :is(.filter-menu-check,input[type=checkbox]){border-color:var(--frame-text,#fff);accent-color:var(--frame-text,#fff)}
html[data-color] .filter-menu-list .filter-menu-item.active .filter-menu-check{background:var(--frame-text,#fff);border-color:var(--frame-text,#fff);color:var(--frame-bg,var(--primary))}
html[data-color] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search) :is(.pick-filter-all,.select-search-box){border-color:var(--frame-border,#ffffff40)}
html[data-color] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search) input:is([type=search],[type=text]),html[data-color] .select-search-box input{background:var(--card);color:var(--text);border-color:var(--frame-border,#ffffff40)}
html[data-color] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search){scrollbar-color:color-mix(in srgb,var(--frame-text,#fff) 45%,transparent) transparent}
details.filter-menu.menu-floating>.filter-menu-list:popover-open{scrollbar-gutter:stable}
/* Notifications side panel (header bell): slides in from the right and hides itself. */
.notification-panel{position:fixed;top:8px;bottom:8px;right:8px;z-index:2500;display:flex;flex-direction:column;width:min(400px,calc(100vw - 16px));background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:0 16px 48px #1d183340;transform:translateX(calc(100% + 24px));opacity:0;transition:transform .22s ease,opacity .22s ease;overflow:hidden}
.notification-panel.is-open{transform:none;opacity:1}
@media (prefers-reduced-motion:reduce){.notification-panel{transition:none}}
.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 8px}
.notification-panel-head h2{margin:0;font-size:22px;font-weight:700}
.notification-tabs{display:flex;gap:8px;padding:4px 18px 10px}
.notification-tabs button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border:0;border-radius:17px;background:none;color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.notification-tabs button:hover{background:var(--primary-soft)}
.notification-tabs button[aria-selected=true]{background:var(--primary-soft);color:var(--primary)}
.notification-tabs .filter-count{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--primary);color:#fff;font-size:11px;line-height:18px;text-align:center}
.notification-panel-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 8px 12px}
.notification-group{margin:10px 10px 4px;font-size:14px;font-weight:700}
.notification-entry{display:flex;align-items:center;gap:12px;padding:10px;border-radius:10px;color:var(--text);text-decoration:none}
.notification-entry:hover,.notification-entry:focus-visible{background:var(--primary-soft);outline:none}
.notification-entry-icon{flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--button-gradient,none) var(--primary);color:#fff}
.notification-entry-icon .icon{width:22px;height:22px}
.notification-entry-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.35}
.notification-entry-text strong{font-weight:600;overflow-wrap:anywhere}
.notification-entry-body{color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.notification-entry time{font-size:12px;color:var(--muted)}
.notification-entry.is-unread time{color:var(--primary);font-weight:600}
.notification-entry.is-unread .notification-entry-text strong{font-weight:700}
.notification-unread-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--primary)}
.notification-panel-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:48px 16px;text-align:center}
.notification-panel-empty .icon{width:36px;height:36px;color:var(--primary)}
html[dir=rtl] .notification-panel{right:auto;left:8px;transform:translateX(calc(-100% - 24px))}
html[dir=rtl] .notification-panel.is-open{transform:none}
html[data-theme=dark] .notification-tabs button[aria-selected=true]{color:#fff}
html[data-custom-colors] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search),html[data-custom-colors] select::picker(select){--frame-bg:var(--custom-header);--frame-text:var(--custom-header-text);--frame-border:color-mix(in srgb,var(--custom-header-text) 25%,transparent)}
a.activity-tile{color:var(--text);text-decoration:none;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
a.activity-tile:hover,a.activity-tile:focus-visible{border-color:var(--primary);background:var(--primary-soft);outline:none;transform:translateY(-1px)}
a.activity-tile:focus-visible{box-shadow:0 0 0 2px var(--primary)}

/* More themes: 5 solid colours (two shades each) and 2 gradient themes. */
[data-color=slate]{--primary:#475569;--primary-dark:#334155;--palette-soft:#eef1f5;--palette-dark:#2c333d;--hero-from:#eef2f7;--hero-to:#e7ecf2;--hero-dark-from:#283039;--hero-dark-to:#2a2f3a;--grad-from:#64748b;--grad-to:#334155}
[data-color=navy]{--primary:#1e40af;--primary-dark:#1e3a8a;--palette-soft:#e6ecfb;--palette-dark:#222d4a;--hero-from:#e3eafc;--hero-to:#e6e9f7;--hero-dark-from:#1f2a48;--hero-dark-to:#232848;--grad-from:#1e40af;--grad-to:#172554}
[data-color=olive]{--primary:#4d7c0f;--primary-dark:#3f6212;--palette-soft:#eef5e1;--palette-dark:#2f3b22;--hero-from:#edf6dc;--hero-to:#f2f5df;--hero-dark-from:#2c3a1f;--hero-dark-to:#343a22;--grad-from:#65a30d;--grad-to:#3f6212}
[data-color=coffee]{--primary:#7c4f31;--primary-dark:#5b3a24;--palette-soft:#f6eee8;--palette-dark:#3e3129;--hero-from:#f7ede4;--hero-to:#f3ece6;--hero-dark-from:#3d3027;--hero-dark-to:#3a2f2b;--grad-from:#9a6a4a;--grad-to:#5b3a24}
[data-color=magenta]{--primary:#a21caf;--primary-dark:#86198f;--palette-soft:#fbe8fd;--palette-dark:#432a46;--hero-from:#fbe7fd;--hero-to:#f6e8fb;--hero-dark-from:#452a48;--hero-dark-to:#3d2a4a;--grad-from:#c026d3;--grad-to:#86198f}
[data-color=ember]{--primary:#b91c1c;--primary-dark:#991b1b;--palette-soft:#fdebe8;--palette-dark:#462b28;--hero-from:#fee2e2;--hero-to:#ffedd5;--hero-dark-from:#472828;--hero-dark-to:#47322a;--grad-from:#dc2626;--grad-to:#f97316}
[data-color=citrus]{--primary:#4d7c0f;--primary-dark:#3f6212;--palette-soft:#ecf6e4;--palette-dark:#26402f;--hero-from:#ecfccb;--hero-to:#ccfbf1;--hero-dark-from:#2c3d22;--hero-dark-to:#1f3d3a;--grad-from:#65a30d;--grad-to:#0f766e}
/* Custom colours with the Gradient switch on: each area fades from its colour to a deeper shade (--custom-*-to). */
html[data-custom-colors][data-custom-gradient] :is(.topbar,.public-header,.footer){background:linear-gradient(90deg,var(--custom-header),var(--custom-header-to))}
html[data-custom-colors][data-custom-gradient] .footer{background:linear-gradient(90deg,var(--custom-footer),var(--custom-footer-to))}
html[data-custom-colors][data-custom-gradient] :is(.sidebar){background:linear-gradient(180deg,var(--custom-sidebar),var(--custom-sidebar-to))}
html[data-custom-colors][data-custom-gradient] .sidebar-footer{background:transparent}
html[data-custom-colors][data-custom-gradient] :is(.floating-chat-heading,.browse-filters.is-collapsed){background:linear-gradient(135deg,var(--custom-header),var(--custom-header-to))}
html[data-custom-colors][data-custom-gradient] :is(.btn:not(.danger):not(.ghost):not(.chat-sound-button),.table-action,.theme-option,.color-option),
html[data-custom-colors][data-custom-gradient] :is(.btn:not(.danger):not(.ghost):not(.chat-sound-button),.table-action,.theme-option,.color-option):is(:hover,:focus-visible){background:linear-gradient(135deg,var(--custom-button),var(--custom-button-to));border-color:transparent}
html[data-custom-colors][data-custom-gradient]{--ctl-img:linear-gradient(135deg,var(--custom-header),var(--custom-header-to))}
html[data-custom-colors][data-custom-gradient] .sidebar{--ctl-img:linear-gradient(135deg,var(--custom-sidebar),var(--custom-sidebar-to))}
html[data-custom-colors][data-custom-gradient] :is(.language-menu,.filter-menu-list,.property-multiselect .property-checks,.select-search){--frame-gradient-vertical:linear-gradient(180deg,var(--custom-header),var(--custom-header-to))}
/* Custom colours popup: Gradient switch and a small preview. */
.custom-gradient-toggle{display:flex;align-items:center;gap:12px;margin:4px 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:12px;cursor:pointer}
.custom-gradient-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.custom-gradient-track{position:relative;flex:none;width:42px;height:24px;border-radius:12px;background:#c9c6d6;transition:background .15s}
.custom-gradient-track span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:left .15s}
.custom-gradient-toggle input:checked+.custom-gradient-track{background:var(--primary)}
.custom-gradient-toggle input:checked+.custom-gradient-track span{left:21px}
.custom-gradient-toggle input:focus-visible+.custom-gradient-track{outline:2px solid var(--primary);outline-offset:2px}
.custom-gradient-text{display:flex;flex-direction:column;gap:2px}
.custom-gradient-text small{color:var(--muted);font-size:12px}
.custom-gradient-preview{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;margin:0 0 14px}
.custom-gradient-preview span{height:28px;border-radius:8px;border:1px solid var(--border)}
html[data-color] details.filter-menu.menu-floating>.filter-menu-list:popover-open{color:var(--frame-text,#fff)}
/* Application Yes/No questions: a switch before the question text (the Yes/No radios stay underneath, visually hidden). */
.application-question.has-toggle{grid-template-columns:auto minmax(0,1fr);justify-content:start;gap:14px;min-height:40px}
.application-question.has-toggle .application-question-options{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0}
.question-toggle{position:relative;display:inline-flex;align-items:center;flex:none;width:64px;height:30px;padding:0;border:1px solid transparent;border-radius:15px;background:#c9c6d6;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s}
.question-toggle-knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:left .15s}
.question-toggle-text{position:absolute;inset:0;display:flex;align-items:center;padding:0 9px;justify-content:flex-end;pointer-events:none}
.question-toggle[data-state=yes]{background:var(--button-gradient,none) var(--primary)}
.question-toggle[data-state=yes] .question-toggle-knob{left:37px}
.question-toggle[data-state=yes] .question-toggle-text{justify-content:flex-start}
.question-toggle[data-state=no]{background:#8f8aa3}
.question-toggle[data-state=unset]{background:transparent;border:1.5px dashed var(--muted)}
.question-toggle[data-state=unset] .question-toggle-knob{left:20px;background:var(--muted);box-shadow:none;opacity:.55}
.question-toggle:focus-visible,.application-question.has-toggle:has(input:focus-visible) .question-toggle{outline:2px solid var(--primary);outline-offset:2px}
.question-toggle:disabled{opacity:.55;cursor:default}
html[data-theme=dark] .question-toggle[data-state=no]{background:#5d5870}
.application-question.has-toggle:has(input:user-invalid) .question-toggle,.application-question.has-toggle.is-invalid .question-toggle{border-color:#c62828}
@media (prefers-reduced-motion:reduce){.question-toggle,.question-toggle-knob{transition:none}}
.application-question.has-toggle{position:relative}
.application-question.has-toggle:has(input:disabled) .question-toggle{opacity:.55;cursor:default}
/* Application view: Yes/No answers as a read-only switch before the question. */
.application-review-section .review-answer.has-toggle{justify-content:flex-start;align-items:center;gap:14px}
.application-review-section .review-answer.has-toggle strong{flex:1;min-width:0}
.question-toggle.is-static{cursor:default}
/* Document cards: the heading sits between the download icon and the right edge (left/right insets), so it must not
   also take the card's full width - long names like "Employment Letter" end with "…" inside the border. */
.application-content :is(#application-form,.application-readonly) .supporting-document-type,.approval-document-card .supporting-document-type{width:auto!important;max-width:none;box-sizing:border-box}

/* Password fields: leave out the flag font so Safari masks with normal dots, not the flag font's striped placeholder glyph. */
input[type="password"]{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:.08em}

/* A page with no records shows only the + (add) button above the empty box. */
.icon-toolbar.no-records>:not(.keep-on-empty){display:none!important}

/* Rental Unit photos: ? icon after the file picker opens the upload limits in a bubble over the form. */
.property-upload-row { position:relative; display:flex; align-items:flex-end; gap:8px; }
.property-upload-row .field { flex:1; }
.property-upload-help-btn { flex:none; margin-bottom:6px; }
.property-upload-help { position:absolute; z-index:30; top:calc(100% + 6px); left:0; right:0; margin:0; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:var(--card); color:var(--text); box-shadow:0 12px 32px rgba(15,23,42,.22); font-size:13px; line-height:1.5; }
.property-upload-help[hidden] { display:none; }
/* Paper forms (#applications / #leases): one box per tenant in the Upload signed application popup. */
.paper-upload-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;align-items:start}.paper-upload-top .field.full{grid-column:auto}
.paper-people{margin:6px 0 4px;border:1px solid var(--border);border-radius:10px;background:var(--card)}
/* Same look as the #applications / #leases list grids (.data-table.record-table), so it follows the colour theme. */
.paper-people-table{width:100%;min-width:820px;border-collapse:collapse;text-align:left;font-size:14px;line-height:1.5}
.paper-people-table th{font-weight:600;font-size:13px;color:var(--text);background:var(--primary-soft);padding:6px 10px;border-bottom:1px solid var(--border);white-space:nowrap;text-align:start}
.paper-people-table td{font-size:14px;padding:6px 10px;background:var(--card);border-bottom:1px solid var(--border);vertical-align:middle}
.paper-people-table :is(th,td)+:is(th,td){border-left:1px solid var(--border)}
.paper-people-table tr:last-child td{border-bottom:0}.paper-people-table tbody tr:not(.paper-add-row):hover td{background:var(--primary-soft)}
.paper-people-table :is(input,select){width:100%;min-width:0;border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:7px;padding:6px 9px;font-size:13px;min-height:34px}
.paper-people-table select:disabled{background:transparent;border-color:transparent;color:var(--text);opacity:1;appearance:none;-webkit-appearance:none;padding-inline:0;cursor:default}
.paper-people-table .paper-cell-text{display:block;overflow-wrap:anywhere}.paper-people-table td:first-child{width:210px;max-width:210px}.paper-people-table td:first-child select{max-width:200px;text-overflow:ellipsis}
.paper-people-table .paper-grid-actions{width:1%;white-space:nowrap;text-align:end}.paper-grid-actions .icon-btn{vertical-align:middle}.paper-main-badge{margin-top:4px}
.paper-people-table tr.is-editing td{background:var(--primary-soft)}
.paper-people-table .paper-add-row td{background:var(--bg)}
@media(max-width:560px){.paper-upload-top{grid-template-columns:minmax(0,1fr)}}
.paper-person{border:1px solid var(--border);border-radius:10px;padding:8px 12px 12px;margin:10px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;min-width:0}
.paper-person legend{font-weight:600;padding:0 6px}
.paper-person .field.full{grid-column:1/-1}
@media(max-width:560px){.paper-person{grid-template-columns:minmax(0,1fr)}}

/* Listing popup: rental unit location map, and the bigger map popup. */
.listing-map-open{position:relative;display:block;width:100%;height:190px;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--bg);cursor:zoom-in}
.listing-map-open iframe{width:100%;height:100%;border:0;pointer-events:none;display:block}
.listing-map-hint{position:absolute;right:8px;bottom:8px;display:inline-flex;align-items:center;gap:5px;background:#fffffff0;color:var(--text);border-radius:6px;padding:5px 8px;font-size:10px;box-shadow:0 2px 8px #0002}.listing-map-hint .icon{width:13px;height:13px}
.listing-map-open:hover .listing-map-hint,.listing-map-open:focus-visible .listing-map-hint{background:var(--primary);color:#fff}
.listing-map-address{display:flex;gap:6px;align-items:flex-start;font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.5}.listing-map-address .icon{width:14px;height:14px;margin-top:1px}
dialog.map-viewer{width:min(1100px,calc(100% - 32px));height:min(780px,calc(100vh - 48px));max-height:none;padding:0;display:flex;flex-direction:column;overflow:hidden}
dialog.map-viewer:not([open]){display:none}
.map-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border)}.map-viewer-head h2{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;margin:0;min-width:0;overflow-wrap:anywhere}
dialog.map-viewer iframe{flex:1;width:100%;border:0}
/* Applications made from a signed paper form: the PDF preview tab. */
.application-pdf-preview{display:grid;gap:12px}
.application-pdf-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.application-pdf-preview-head .summary-title{margin:0}
.application-pdf-preview iframe{width:100%;height:min(78vh,1000px);min-height:420px;border:1px solid var(--border);border-radius:10px;background:var(--card)}
/* Approve tab of an application made from a signed paper form: ticks and the confirmation are Yes/No switches. */
:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;flex:0 0 64px;width:64px;height:30px;min-width:64px;max-width:64px;min-height:30px;margin:0;accent-color:auto;border-radius:15px;background:#8f8aa3;cursor:pointer;transition:background .15s;vertical-align:middle}
:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]::before{content:"";position:absolute;top:4px;left:4px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:left .15s}
:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]::after{content:"No";position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end;padding:0 9px;color:#fff;font-size:12px;font-weight:700}
:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]:checked{background:var(--button-gradient,none) var(--primary)}
:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]:checked::before{left:38px}
:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]:checked::after{content:"Yes";justify-content:flex-start}
:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]:disabled{opacity:.6;cursor:default}
:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
html[data-theme=dark] :is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]:not(:checked){background:#5d5870}
.approval-toggles .check-field{display:flex;align-items:center;gap:10px}
.approval-toggles .confirmation-choice{display:flex;align-items:center;justify-content:space-between;gap:16px}
.approval-confirm-switch{display:inline-flex;flex:none;margin-left:auto}
.approval-toggles .confirmation-choice>div[hidden]{display:none}
.approval-proof-on-file{display:flex;align-items:center;gap:8px;margin-top:6px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--text)}
.approval-proof-file{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none}
.approval-proof-file img{width:48px;height:36px;object-fit:cover;border-radius:6px;border:1px solid var(--border);flex:0 0 auto}
.approval-proof-file>.icon{width:28px;height:28px;color:var(--primary);flex:0 0 auto}
.approval-proof-file>span{display:flex;flex-direction:column;min-width:0}
.approval-proof-file strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.approval-proof-file small{font-size:11px;color:var(--muted)}
.approval-proof-file:hover strong{text-decoration:underline}
.approval-proof-on-file .btn.small{white-space:nowrap}
/* Document cards: a smaller switch in the bottom corner so the document name stays readable. */
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-document-card>.approval-verification{inset:auto 6px 6px auto;height:auto;padding:2px;background:transparent}
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-document-card input[type=checkbox]{flex-basis:46px;width:46px;min-width:46px;max-width:46px;height:22px;min-height:22px}
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-document-card input[type=checkbox]::before{top:3px;left:3px;width:16px;height:16px}
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-document-card input[type=checkbox]:checked::before{left:27px}
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-document-card input[type=checkbox]::after{font-size:10px;padding:0 6px}
@media (prefers-reduced-motion:reduce){:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox],:is(#rental-approval-form,#rental-approval-review).approval-toggles input[type=checkbox]::before{transition:none}}
/* Upload signed application: Post + PDF (40%) and Key Deposit & Proof side by side in rounded sections. */
.paper-upload-sections{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:16px;margin-bottom:14px}
.paper-upload-section{display:grid;gap:10px;align-content:start;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:var(--card)}
.paper-upload-section .field{margin:0}
.paper-upload-section .form-section{margin:0}
.paper-upload-section .paper-file-note:empty{display:none}
.paper-deposit{grid-template-columns:repeat(2,minmax(0,1fr))}
.paper-deposit .form-section{grid-column:1/-1}
@media(max-width:760px){.paper-upload-sections,.paper-deposit{grid-template-columns:1fr}}
.paper-tenants-note:empty{display:none}
.paper-docs-button{position:relative}
.paper-docs-count{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--primary);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center}
.paper-docs-dialog[open]{display:flex;flex-direction:column}
.paper-docs-dialog .modal-body{flex:1;min-height:0;overflow:auto}
.paper-docs-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.paper-docs-fields .field{margin:0}
.paper-docs-fields .field>span{display:block;min-height:20px}
@media(max-width:600px){.paper-docs-fields{grid-template-columns:1fr}}
.paper-docs-files{margin-top:12px}
.paper-docs-empty{margin:0}
/* Attachment icon in the Upload signed application grid: a diagonal paperclip in the colour theme. */
.paper-docs-button{color:var(--primary)}
.paper-docs-button .paper-clip-icon{transform:rotate(45deg);stroke:var(--primary);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;fill:none}
.paper-docs-button:hover .paper-clip-icon{stroke:var(--primary-dark,var(--primary))}
/* Row and card action icons (edit, view, download, delete …) follow the selected colour theme. Icons with their own status colour (approve green, reject/withdraw red, red workspace/subscription delete) keep it. */
html{--action-icon:var(--primary)}
html[data-custom-colors]{--action-icon:var(--custom-button,var(--primary))}
html[data-theme=dark]{--action-icon:color-mix(in srgb,var(--primary) 60%,#fff)}
html[data-theme=dark][data-custom-colors]{--action-icon:color-mix(in srgb,var(--custom-button,var(--primary)) 60%,#fff)}
html[data-color=black]{--action-icon:var(--text)}
html :where(td,.actions,.record-card-actions,.paper-grid-actions,.supporting-document-actions,.household-form-actions,.workspace-member-actions) .icon-btn:not(:where(.workspace-danger,.subscription-danger,.popup-dismiss)){color:var(--action-icon)}
html[data-theme=dark] body :where(td,.actions,.record-card-actions,.paper-grid-actions,.supporting-document-actions,.household-form-actions,.workspace-member-actions) .icon-btn.icon-btn:not(:where(.workspace-danger,.subscription-danger,.popup-dismiss,.record-card-actions .danger,[data-action*=approve],[data-action*=reject],[data-action*=withdraw],dialog [data-action$="-delete"],dialog [data-action=remove-photo])){color:var(--action-icon)}
:where(td,.actions,.record-card-actions,.paper-grid-actions,.supporting-document-actions,.household-form-actions,.workspace-member-actions) .icon-btn:not(:where(.workspace-danger,.subscription-danger,.popup-dismiss)):is(:hover,:focus-visible){background:var(--primary-soft)}
/* Approve tab: one tidy card per tenant (header, details, verification tiles, documents). */
:is(#rental-approval-form,#rental-approval-review) .approval-applicant{padding:0;overflow:hidden;background:var(--card)}
.approval-applicant-head{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--primary) 6%,var(--card))}
.approval-applicant-head .avatar{flex:0 0 auto}
.approval-applicant-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
:is(#rental-approval-form,#rental-approval-review) .approval-applicant-title h3{display:block;margin:0;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.approval-applicant-title small{color:var(--muted);font-size:12px}
:is(#rental-approval-form,#rental-approval-review) .approval-applicant .applicant-verify-all{display:inline-flex;align-items:center;gap:10px;margin:0;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.approval-applicant-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 24px;margin:0;padding:16px 20px}
.approval-applicant-details>div{min-width:0}
.approval-applicant-details dt{font-size:12px;color:var(--muted);margin:0}
.approval-applicant-details dd{margin:3px 0 0;font-size:14px;font-weight:500;overflow-wrap:anywhere}
.approval-applicant-block{padding:14px 20px 16px;border-top:1px solid var(--border)}
:is(#rental-approval-form,#rental-approval-review) .approval-applicant-block h4{margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
:is(#rental-approval-form,#rental-approval-review) .approval-applicant .approval-documents-heading{justify-content:space-between;margin:0 0 10px}
:is(#rental-approval-form,#rental-approval-review) .approval-applicant .approval-documents-heading h4{margin:0}
.approval-check-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}
@media(max-width:900px){.approval-applicant-details{grid-template-columns:repeat(3,minmax(0,1fr))}}
:is(#rental-approval-form,#rental-approval-review) .approval-check{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:10px 14px;border:1px solid var(--border);border-radius:10px;background:var(--card);font-size:14px;font-weight:500}
:is(#rental-approval-form,#rental-approval-review) .approval-check:has(input:checked){border-color:color-mix(in srgb,var(--primary) 45%,var(--border));background:color-mix(in srgb,var(--primary) 5%,var(--card))}
:is(#rental-approval-form,#rental-approval-review) .approval-applicant .approval-documents{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));margin:0}
/* Smaller, consistent Yes/No switches inside tenant cards. */
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-applicant input[type=checkbox]{flex-basis:46px;width:46px;min-width:46px;max-width:46px;height:22px;min-height:22px}
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-applicant input[type=checkbox]::before{top:3px;left:3px;width:16px;height:16px}
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-applicant input[type=checkbox]:checked::before{left:27px}
:is(#rental-approval-form,#rental-approval-review).approval-toggles .approval-applicant input[type=checkbox]::after{font-size:10px;padding:0 6px}
@media(max-width:620px){.approval-applicant-head,.approval-applicant-details,.approval-applicant-block{padding-left:14px;padding-right:14px}.approval-applicant-head{flex-wrap:wrap}.approval-applicant-head .applicant-verify-all{flex-basis:100%;justify-content:space-between}.approval-applicant-details{grid-template-columns:repeat(2,minmax(0,1fr))}.approval-check-list{grid-template-columns:minmax(0,1fr)}:is(#rental-approval-form,#rental-approval-review) .approval-applicant .approval-documents-heading{flex-wrap:wrap;gap:8px}:is(#rental-approval-form,#rental-approval-review) .approval-applicant .approval-documents-heading .applicant-verify-all{flex-basis:100%;justify-content:space-between}:is(#rental-approval-form,#rental-approval-review) .approval-applicant .approval-documents{grid-template-columns:minmax(0,1fr)}}
:is(#rental-approval-form,#rental-approval-review) .approval-deposit-section .approval-grid>label:has(.approval-proof-on-file){grid-column:1/-1}
.move-in-form .move-in-proof{margin-top:4px}
.approval-proof-file small:empty{display:none}
/* PDF previews drawn by assets/pdf-preview.js: each page fills the box width; the box scrolls. */
.pdf-preview{height:min(78vh,1000px);min-height:420px;overflow:auto;border:1px solid var(--border);border-radius:10px;background:color-mix(in srgb,var(--muted) 18%,var(--card));padding:12px}
.pdf-preview-pages{display:grid;gap:12px;justify-items:center;width:max-content;min-width:100%}
.pdf-preview-page{display:block;max-width:none;height:auto;background:#fff;border-radius:4px;box-shadow:0 1px 4px #0003}
.pdf-preview-status{margin:0;padding:12px}
.pdf-preview.is-fallback{padding:0;overflow:hidden}
.pdf-preview.is-fallback iframe{width:100%;height:100%;border:0}
.application-pdf-preview-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pdf-zoom-controls{display:inline-flex;align-items:center;gap:4px}
.pdf-zoom-label{min-width:60px;padding:5px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--text);font-size:12px;font-weight:600;line-height:1.2;font-family:inherit;cursor:pointer;text-align:center}
.pdf-zoom-label:hover{border-color:var(--primary);color:var(--primary)}
.btn.success-solid{background:#21834c;border-color:#21834c;color:#fff}
.btn.success-solid:is(:hover,:focus-visible){background:#196b3c;border-color:#196b3c;color:#fff}
.lease-view-tabs{margin:0 0 14px}
.lease-view-panel[hidden]{display:none}
/* Lease popup header: the action buttons sit at the right, just before the X; on phones they show as icons only
   (the button text stays as its accessible name). */
#modal .modal-head.lease-modal-head .modal-header-actions{margin-inline-start:auto}
@media(max-width:720px){
 #modal .modal-head.lease-modal-head .modal-header-actions{flex-wrap:nowrap;gap:4px}
 #modal .modal-head.lease-modal-head .modal-header-actions .btn:not(.lease-signature-step){font-size:0;gap:0;width:36px;min-width:36px;height:34px;padding:0;justify-content:center}
 #modal .modal-head.lease-modal-head .modal-header-actions .btn:not(.lease-signature-step) .icon{width:18px;height:18px;margin:0}
 #modal .modal-head.lease-modal-head .modal-header-actions .btn:not(.lease-signature-step)>:not(.icon){display:none}
}
/* Tenant Contacts & Signing Info tab: same look as the Applications / Lease agreements grids (rounded frame,
   theme-coloured heading, lightly tinted rows, column lines); scrolls sideways on narrow screens. */
.lease-view-panel .lease-contact-table{border:1px solid var(--border);border-radius:10px;overflow:auto;background:var(--card)}
.lease-view-panel .lease-contact-status{width:100%;min-width:900px;border-collapse:collapse}
.lease-view-panel .lease-contact-status tbody td{background:color-mix(in srgb,var(--primary-soft) 35%,var(--card))}
.lease-view-panel .lease-contact-status tbody tr:hover>td{background:var(--primary-soft)}
.lease-view-panel .lease-contact-status :is(th,td)+:is(th,td){border-left:1px solid var(--border)}
.lease-view-panel .lease-contact-status td:nth-child(3){overflow-wrap:break-word;word-break:normal}
.lease-view-panel .lease-contact-status tr:last-child>td{border-bottom:0}
/* Lease popup header on phones: two lines - the lease number (with the X), then the title, status and action icons. */
@media(max-width:720px){
 #modal .modal-head.lease-modal-head{flex-wrap:wrap;column-gap:8px}
 #modal .modal-head.lease-modal-head #modal-title{flex:0 0 calc(100% - 48px)}
 #modal .modal-head.lease-modal-head h3.lease-modal-property{flex:1 1 0;min-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #modal .modal-head.lease-modal-head>.badge{flex:none;font-size:11px}
 #modal .modal-head.lease-modal-head .modal-header-actions{flex:0 0 auto;width:auto;margin-inline-start:auto}
}

/* Super Admin delete icon on rental unit and post cards (above the type tag, bottom right of the photo). */
.property-photo .card-delete{position:absolute;right:10px;bottom:42px;z-index:3;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#dc2626;color:#fff;box-shadow:0 1px 4px #00000040;cursor:pointer}
.property-photo .card-delete:hover,.property-photo .card-delete:focus-visible{background:#b91c1c;outline:2px solid #fff;outline-offset:1px}
.property-photo .card-delete .icon{width:17px;height:17px}
/* Post popup header: Edit Post and (Super Admin) Delete Post side by side; Delete Post is red. */
.listing-header-actions:has([data-action="delete-post"]){display:flex;gap:8px;align-items:center}
#modal .modal-head .listing-header-actions .btn.danger-solid{background:#dc2626;border-color:#ffffffa6;color:#fff}
#modal .modal-head .listing-header-actions .btn.danger-solid:is(:hover,:focus-visible){background:#b91c1c}
/* Add property member: "Member option" uses the searchable filter drop-down (same look as the seed account picker). */
.workspace-member-picker{display:grid;gap:6px}
.workspace-member-menu{width:100%}
html[lang] .workspace-member-menu>summary.btn{width:100%;max-width:none;justify-content:flex-start;text-transform:none;background:var(--card);color:var(--text);border:1px solid var(--border);font-weight:500}
.workspace-member-menu>summary .filter-menu-label{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick-filter-menu.is-searchable.workspace-member-menu .filter-menu-list{left:0;right:0;width:100%;min-width:0;max-width:none}
.workspace-member-menu .pick-filter-items{gap:2px;grid-auto-rows:auto}
.workspace-member-menu .filter-menu-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:8px 12px;line-height:1.3;font-size:13px;font-weight:400;text-transform:none}
.workspace-member-menu .filter-menu-item .seed-account-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.workspace-member-menu .filter-menu-item .filter-count{flex:none;margin-inline-start:auto;font-weight:400;color:var(--muted);text-transform:none}
/* An existing member's details are shown read-only. */
.workspace-new-member.is-existing-member :is(input,select,textarea){background:var(--bg);color:var(--muted);cursor:not-allowed}
.workspace-new-member .field[hidden]{display:none!important}
#workspace-member-form.has-existing-member :is([name=first_name],[name=last_name]){background:var(--bg);color:var(--muted);cursor:not-allowed}
/* The Member option button looks like the other form fields, also while open or focused; no count badge. */
html[lang] #workspace-member-form .workspace-member-menu>summary.btn,html[lang] #workspace-member-form .workspace-member-menu[open]>summary.btn,html[lang] #workspace-member-form .workspace-member-menu>summary.btn:is(:hover,:focus,:focus-visible){background:var(--card)!important;background-image:none!important;color:var(--text)!important;border:1px solid var(--border)!important;box-shadow:none;min-height:36px;font-size:13px}
#workspace-member-form .workspace-member-menu>summary .filter-count{display:none!important}
#workspace-member-form .workspace-member-menu>summary .icon{color:var(--muted)}
#workspace-member-form .workspace-member-menu>summary :is(.filter-menu-label,.icon,svg){color:var(--text)!important;stroke:currentColor}
#workspace-member-form .workspace-member-picker,#workspace-member-form .workspace-member-menu{min-width:0;max-width:100%}
html[lang] #workspace-member-form .workspace-member-menu>summary.btn{box-sizing:border-box;max-width:100%!important;width:100%!important;padding-inline:12px}
/* The Super Admin bin sits in the bottom-left icon row: after heart and share (and chat) on post cards, first on rental unit cards. */
.property-photo .card-delete{right:auto;left:10px;bottom:10px}
.property-photo:has(.share-photo) .card-delete{left:90px}
.property-photo:has(.share-photo):has(.chat-photo) .card-delete{left:130px}
.property-photo:not(:has(.share-photo)):has(.love-card) .card-delete{left:50px}
/* Post cards: the type tag sits on the same line as the heart / share / bin icons (centred on them), shortened on narrow cards. */
.property-photo:has(.share-photo) .property-type{bottom:16px;max-width:calc(100% - 92px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.property-photo:has(.share-photo):has(.card-delete) .property-type{max-width:calc(100% - 140px)}
.property-photo:has(.share-photo):has(.card-delete):has(.chat-photo) .property-type{max-width:calc(100% - 180px)}

/* Card action icons (Properties, Rental Unit, Team, Applications, Leases, Invoices): a row of round icons at the bottom left of the photo, like the heart / share icons on post cards; delete icons are red. */
html body .property-photo :is(.record-card-actions,.card-photo-actions){position:absolute;left:10px;right:auto;bottom:10px;z-index:3;display:flex;flex-wrap:wrap-reverse;gap:8px;align-items:center;justify-content:flex-start;max-width:calc(100% - 20px)}
html body .property-photo :is(.record-card-actions,.card-photo-actions) .icon-btn{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;display:inline-grid;place-items:center;border:0;border-radius:50%!important;background:var(--button-gradient,none) var(--primary)!important;color:#fff!important;box-shadow:0 1px 4px #00000040!important;opacity:1!important;cursor:pointer}
html body .property-photo :is(.record-card-actions,.card-photo-actions) .icon-btn .icon{width:17px;height:17px;color:#fff!important;stroke:currentColor}
html body .property-photo :is(.record-card-actions,.card-photo-actions) .icon-btn:is(.danger,.workspace-danger,.subscription-danger){background:#dc2626!important}
html body .property-photo :is(.record-card-actions,.card-photo-actions) .icon-btn:is(:hover,:focus-visible){filter:brightness(.9);outline:2px solid #fff;outline-offset:1px}
html body .property-photo :is(.record-card-actions,.card-photo-actions) .icon-btn:disabled{opacity:.55!important;cursor:not-allowed;filter:none}
html body .property-photo :is(.record-card-actions,.card-photo-actions) .btn{height:32px;border-radius:16px}
/* Rental unit / record cards: the type tag sits on the icon row line, shortened so it never covers the icons. */
.property-photo:has(.card-photo-actions .icon-btn) .property-type{bottom:16px;max-width:calc(100% - 64px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.property-photo:has(.card-photo-actions .icon-btn:nth-child(2)) .property-type{max-width:calc(100% - 104px)}
.property-photo:has(.card-photo-actions .icon-btn:nth-child(3)) .property-type{max-width:calc(100% - 144px)}
.property-photo:has(.card-photo-actions .icon-btn){container-type:inline-size}
@container (max-width:200px){.property-photo:has(.card-photo-actions .icon-btn:nth-child(3)) .property-type{display:none}}
/* Application view: icons (tabs, PDF export, back link) use the colour theme. */
html body #main :is(.application-export-icon,.back-link) .icon,html body #main :is(.tab[data-action="app-tab"],.application-tab-name) .icon,html body #main .application-export-icon>svg,html body #main .tab[data-action="app-tab"]>svg,html body #main .application-tab-name>svg,html body #main .back-link>svg{color:var(--action-icon,var(--primary))!important;stroke:currentColor}
/* Lease popup header: Download PDF is a PDF icon (white on the coloured header). */
#modal .modal-head .icon-btn.lease-pdf-icon{width:40px;height:40px;min-width:40px;padding:0;display:inline-grid;place-items:center;border:1px solid #ffffff8c;border-radius:10px;background:#ffffff1f;color:#fff}
#modal .modal-head .icon-btn.lease-pdf-icon:is(:hover,:focus-visible){background:#ffffff38}
#modal .modal-head .icon-btn.lease-pdf-icon .icon{width:20px;height:20px;color:#fff}

/* Card icon rows: delete is always the last icon, and all icons stay on one line - with 4 or more icons the gap and circles shrink to fit the photo width. */
html body .property-photo:has(:is(.record-card-actions,.card-photo-actions) .icon-btn){container-type:inline-size}
html body .property-photo :is(.record-card-actions,.card-photo-actions){flex-wrap:nowrap;gap:6px}
html body .property-photo :is(.record-card-actions,.card-photo-actions) .icon-btn:is(.danger,.workspace-danger,.subscription-danger){order:9}
html body .property-photo :is(.record-card-actions,.card-photo-actions):has(> .icon-btn:nth-child(4)) .icon-btn{width:min(32px,calc((100cqw - 20px - 3*6px) / 4));height:min(32px,calc((100cqw - 20px - 3*6px) / 4));min-width:0;min-height:0}
html body .property-photo :is(.record-card-actions,.card-photo-actions):has(> .icon-btn:nth-child(5)) .icon-btn{width:min(32px,calc((100cqw - 20px - 4*6px) / 5));height:min(32px,calc((100cqw - 20px - 4*6px) / 5));min-width:0;min-height:0}
html body .property-photo :is(.record-card-actions,.card-photo-actions):has(> .icon-btn:nth-child(6)) .icon-btn{width:min(32px,calc((100cqw - 20px - 5*6px) / 6));height:min(32px,calc((100cqw - 20px - 5*6px) / 6));min-width:0;min-height:0}
html body .property-photo :is(.record-card-actions,.card-photo-actions):has(> .icon-btn:nth-child(7)) .icon-btn{width:min(32px,calc((100cqw - 20px - 6*6px) / 7));height:min(32px,calc((100cqw - 20px - 6*6px) / 7));min-width:0;min-height:0}
html body .property-photo :is(.record-card-actions,.card-photo-actions):has(> .icon-btn:nth-child(8)) .icon-btn{width:min(32px,calc((100cqw - 20px - 7*6px) / 8));height:min(32px,calc((100cqw - 20px - 7*6px) / 8));min-width:0;min-height:0}
html body .property-photo :is(.record-card-actions,.card-photo-actions) .icon-btn .icon{width:min(17px,55%);height:min(17px,55%)}

/* "Manual" tag (application / lease made from an uploaded signed paper form): top right of the card photo, styled like the rental unit type tag. */
.property-photo .record-manual-tag{position:absolute;right:12px;top:13px;background:#27233170;color:#fff;border-radius:5px;padding:5px 8px;font-size:10px;font-weight:600;line-height:1.2;backdrop-filter:blur(6px);pointer-events:auto;z-index:2}
@container (max-width:260px){.property-photo .record-manual-tag{top:44px}}

/* Location card and bigger map: nearby places buttons (Address, Schools, Grocery stores, Bus stops, Doctors). */
.listing-map-nearby{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.listing-map-near{border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:999px;padding:4px 10px;font-size:11px;line-height:1.4;cursor:pointer}
.listing-map-near:hover{border-color:var(--primary);color:var(--primary)}
.listing-map-near.active{background:var(--primary);border-color:var(--primary);color:#fff}
dialog.map-viewer .listing-map-nearby{margin:0;padding:10px 16px;border-bottom:1px solid var(--border)}

/* #team "Assigned properties" popup: each Properties group with its rental units. */
.team-properties-person{margin:0 0 12px;color:var(--muted)}
.team-properties-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.team-properties-list>li{border:1px solid var(--border);border-radius:10px;padding:10px 12px}
.team-properties-list strong{display:flex;align-items:center;gap:6px}
.team-properties-list ul{list-style:none;margin:8px 0 0;padding:0 0 0 22px;display:grid;gap:4px}
.team-properties-list ul li{display:flex;align-items:center;gap:6px;font-size:13px}
.team-properties-list .icon{width:15px;height:15px;color:var(--primary)}
.team-properties-list p{margin:6px 0 0 22px;font-size:12px}
