/*
 * Property Offer Engine v6.0 UI Foundation
 * Single visual language for public site, CRM, rentals, finance, company settings,
 * platform admin, authentication, portals and legacy advanced workspace.
 * Loaded after legacy CSS to consolidate the product without changing business logic.
 */

:root{
  --poe-green-950:#05291f;
  --poe-green-900:#07392c;
  --poe-green-800:#0a4a38;
  --poe-green-700:#0d6b4d;
  --poe-green-600:#16805d;
  --poe-green-100:#e8f4ee;
  --poe-yellow:#ffd85a;
  --poe-yellow-strong:#f4c93b;
  --poe-yellow-soft:#fff7d5;
  --poe-canvas:#f4f7f5;
  --poe-surface:#ffffff;
  --poe-surface-2:#f9fbfa;
  --poe-ink:#14241d;
  --poe-muted:#66766f;
  --poe-muted-2:#87948f;
  --poe-line:#dce7e1;
  --poe-line-strong:#cbdad2;
  --poe-danger:#b42318;
  --poe-danger-bg:#fff0ee;
  --poe-warning:#8a5a00;
  --poe-warning-bg:#fff7df;
  --poe-success:#117a50;
  --poe-success-bg:#eaf7f0;
  --poe-info:#2563a9;
  --poe-info-bg:#eef5ff;
  --poe-shadow-xs:0 1px 2px rgba(5,41,31,.04);
  --poe-shadow-sm:0 8px 24px rgba(5,41,31,.06);
  --poe-shadow-md:0 20px 54px rgba(5,41,31,.12);
  --poe-radius-sm:10px;
  --poe-radius:14px;
  --poe-radius-lg:20px;
  --poe-sidebar:276px;
  --poe-topbar:72px;

  /* Compatibility aliases */
  --ink:var(--poe-ink);
  --muted:var(--poe-muted);
  --line:var(--poe-line);
  --canvas:var(--poe-canvas);
  --surface:var(--poe-surface);
  --brand:var(--poe-green-700);
  --brand-2:var(--poe-green-800);
  --accent:var(--poe-yellow);
  --accent-ink:var(--poe-green-950);
  --green:var(--poe-success);
  --orange:var(--poe-warning);
  --red:var(--poe-danger);
  --blue:var(--poe-info);
  --shadow:var(--poe-shadow-md);
  --shadow-sm:var(--poe-shadow-sm);
  --radius:var(--poe-radius);
  --sidebar:var(--poe-sidebar);
  --admin-sidebar:var(--poe-sidebar);
}

*{box-sizing:border-box}
html{font-size:16px;overflow-x:hidden;scroll-behavior:smooth}
body{margin:0;color:var(--poe-ink);background:var(--poe-canvas);font:400 15px/1.55 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
a{color:inherit}
img{max-width:100%}
::selection{background:var(--poe-green-700);color:#fff}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid rgba(255,216,90,.7);outline-offset:2px}

/* Typography guard: no operational micro-text. */
:where(.app-page,.finance-module-page,.business-tools-page,.admin-page,.office-page,.login-page,.register-page,.install-page,.checkout-page) small{font-size:12px;line-height:1.45}
:where(.app-page,.finance-module-page,.business-tools-page,.admin-page,.office-page) th{font-size:12px;line-height:1.35}
.eyebrow,.business-kicker,.office-kicker,.landing-kicker{font-size:12px;line-height:1.3;letter-spacing:.1em;text-transform:uppercase;font-weight:800}
h1,h2,h3,h4{color:var(--poe-ink);letter-spacing:-.025em}

/* Buttons */
.btn,.office-btn,.admin-page button:not(.icon-button):not(.admin-menu-button),.business-form button:not(.text-button){min-height:44px;border-radius:11px;font-size:14px;font-weight:750;box-shadow:none;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid transparent;text-decoration:none;cursor:pointer}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:none}
.btn-primary,.office-btn.primary{background:var(--poe-green-700);border-color:var(--poe-green-700);color:#fff}
.btn-primary:hover,.office-btn.primary:hover{background:var(--poe-green-800);border-color:var(--poe-green-800)}
.btn-accent{background:var(--poe-yellow);border-color:var(--poe-yellow);color:var(--poe-green-950)}
.btn-accent:hover{background:var(--poe-yellow-strong);border-color:var(--poe-yellow-strong)}
.btn-soft,.office-btn:not(.primary){background:#fff;border-color:var(--poe-line);color:var(--poe-ink)}
.btn-soft:hover,.office-btn:not(.primary):hover{background:var(--poe-surface-2);border-color:var(--poe-line-strong)}
.btn-danger,.danger-button{background:var(--poe-danger);border-color:var(--poe-danger);color:#fff}
.btn-sm{min-height:36px;padding:7px 11px;font-size:13px;border-radius:9px}
.text-button{border:0;background:transparent;color:var(--poe-green-700);font-size:13px;font-weight:750;cursor:pointer}
.text-button:hover{text-decoration:underline;text-underline-offset:3px}
.text-button.danger{color:var(--poe-danger)}
.icon-button{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--poe-line);border-radius:11px;background:#fff;color:var(--poe-ink);cursor:pointer;transition:.16s ease}
.icon-button:hover{background:var(--poe-surface-2);border-color:var(--poe-line-strong)}

/* Forms */
input,select,textarea{width:100%;border:1px solid var(--poe-line-strong);border-radius:11px;background:#fff;color:var(--poe-ink);font-size:15px;box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
input,select{min-height:46px;padding:0 13px}
textarea{min-height:110px;padding:11px 13px;resize:vertical}
input::placeholder,textarea::placeholder{color:var(--poe-muted-2);opacity:1}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--poe-green-600);box-shadow:0 0 0 4px rgba(22,128,93,.1)}
input[disabled],select[disabled],textarea[disabled]{background:#f1f4f2;color:#7b8782;cursor:not-allowed}
label>span,.field>label,.business-form label>span,.admin-page label>span,.office-page label>span,.login-card label>span,.register-form label>span{display:block;margin:0 0 7px;color:#40554c;font-size:13px;font-weight:750}
.field-help,.install-note,.login-help{display:block;margin-top:6px;color:var(--poe-muted);font-size:12px;line-height:1.45}
.form-grid,.business-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.form-grid .full,.business-form-grid .full,.field.full{grid-column:1/-1}

/* Status / alerts */
.status-badge,.pill,.account-state,.tag{display:inline-flex;align-items:center;gap:6px;min-height:26px;padding:4px 9px;border-radius:999px;background:#eef3f0;color:#3f554c;font-size:12px;font-weight:750;text-transform:none;letter-spacing:0}
.form-alert,.business-alert,.admin-notice,.office-flash,.alert{padding:12px 14px;border:1px solid var(--poe-line);border-radius:11px;background:#fff;color:var(--poe-ink);font-size:13px;line-height:1.5}
.form-alert.success,.business-alert.success,.alert.success{border-color:#bde2cf;background:var(--poe-success-bg);color:#0d6440}
.form-alert.error,.business-alert.error,.alert.error{border-color:#edc6c2;background:var(--poe-danger-bg);color:#8e2f27}
.form-alert.warning,.business-alert.warning{border-color:#efdaa6;background:var(--poe-warning-bg);color:#745000}

/* Unified signed-in shell */
.app-page,.finance-module-page,.business-tools-page,.unified-module-page{background:var(--poe-canvas);color:var(--poe-ink)}
.app-page .sidebar,.unified-sidebar{position:fixed;inset:0 auto 0 0;width:var(--poe-sidebar);padding:20px 14px 18px;background:var(--poe-green-900);color:#fff;border:0;box-shadow:none;z-index:80;overflow-y:auto;overscroll-behavior:contain}
.app-page .brand,.workspace-brand,.unified-brand{display:flex;align-items:center;gap:11px;min-height:58px;padding:4px 9px 18px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.09)}
.app-page .brand strong,.workspace-brand strong{display:block;max-width:176px;color:#fff;font-size:15px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-page .brand span,.workspace-brand span{display:block;margin-top:2px;color:#a7c6bb;font-size:12px;line-height:1.25}
.agency-nav-logo{width:38px;height:38px;object-fit:contain;border-radius:9px;background:#fff;padding:3px}
.app-page .nav-label,.unified-sidebar .nav-label{margin:18px 11px 7px;color:#88ab9f;font-size:12px;font-weight:800;letter-spacing:.11em}
.app-page .nav,.unified-sidebar .nav{display:grid;gap:3px;margin:0}
.app-page .nav-item,.unified-sidebar .nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:45px;padding:9px 11px;border:0;border-radius:10px;background:transparent;color:#c4d8d1;font-size:14px;font-weight:650;text-align:left;text-decoration:none;cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}
.app-page .nav-item svg,.unified-sidebar .nav-item svg{width:19px;height:19px;flex:0 0 auto}
.app-page .nav-item:hover,.unified-sidebar .nav-item:hover{background:rgba(255,216,90,.1);color:var(--poe-yellow)}
.app-page .nav-item:hover svg,.unified-sidebar .nav-item:hover svg{color:var(--poe-yellow)}
.app-page .nav-item.active,.unified-sidebar .nav-item.active{background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 3px 0 0 var(--poe-yellow)}
.app-page .nav-item>b,.unified-sidebar .nav-item>b{margin-left:auto;min-width:23px;padding:2px 6px;border-radius:999px;background:rgba(255,255,255,.08);color:#d7e5df;font-size:12px;text-align:center}
.sidebar-footer,.unified-sidebar-footer{margin-top:20px;padding:15px 8px 0;border-top:1px solid rgba(255,255,255,.09)}
.app-page .policy-card{display:none}
.user-row{display:flex;align-items:center;gap:10px;min-width:0}
.user-row .avatar,.admin-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:50%;background:rgba(255,216,90,.14);color:var(--poe-yellow);font-size:13px;font-weight:850}
.user-row strong{display:block;color:#fff;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-row small{display:block;color:#9db9af;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-footer .icon-button{margin-left:auto;border-color:rgba(255,255,255,.1);background:transparent;color:#d2e1dc}
.sidebar-footer .icon-button:hover{background:rgba(255,216,90,.1);color:var(--poe-yellow)}
.sidebar-scrim{display:none;position:fixed;inset:0;border:0;background:rgba(2,27,20,.48);z-index:70}

.app-page .workspace,.unified-module-workspace,.unified-module-shell>.workspace{margin-left:var(--poe-sidebar);min-width:0}
.app-page .topbar,.unified-topbar{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:14px;min-height:var(--poe-topbar);padding:11px 28px;border-bottom:1px solid var(--poe-line);background:rgba(244,247,245,.94);backdrop-filter:blur(16px)}
.menu-button,.unified-menu-button{display:none}
.mobile-brand{display:none}
.global-search-shell{width:min(600px,52vw)}
.global-search-bar{display:flex;align-items:center;gap:8px}
.global-search{display:flex;align-items:center;gap:9px;width:100%;height:46px;padding:0 12px;border:1px solid var(--poe-line);border-radius:12px;background:#fff;box-shadow:var(--poe-shadow-xs)}
.global-search input{height:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none}
.global-search input:focus{box-shadow:none}
.global-search kbd{margin-left:auto;padding:3px 7px;border:1px solid var(--poe-line);border-radius:6px;background:#f6f8f7;color:var(--poe-muted);font-size:12px}
.unified-page-title{display:flex;flex-direction:column;min-width:0;margin-right:auto}
.unified-page-title strong{font-size:15px;line-height:1.2}
.unified-page-title span{margin-top:2px;color:var(--poe-muted);font-size:12px}
.unified-top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.notification-button{position:relative}
.subscription-banner{border:0;border-bottom:1px solid #ead99c;background:var(--poe-yellow-soft);color:#644b00}

.app-page .content,.unified-main,.finance-main,.settings-main,.deal-earnings-main{width:100%;max-width:1480px;margin:0 auto;padding:28px 30px 72px}

/* Overview-language page hero on every operational screen */
.app-page .page-heading,.module-page-head,.admin-overview-hero,.office-hero{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:0 0 20px;padding:24px 26px;border:0;border-radius:18px;background:var(--poe-green-800);color:#fff;overflow:hidden;box-shadow:none}
.app-page .page-heading:after,.module-page-head:after,.admin-overview-hero:after,.office-hero:after{content:"";position:absolute;right:-55px;bottom:-75px;width:190px;height:190px;border:34px solid rgba(255,216,90,.09);border-radius:50%;pointer-events:none}
.app-page .page-heading h1,.module-page-head h1,.admin-overview-hero h1,.office-hero h1{position:relative;z-index:1;margin:4px 0 5px;color:#fff;font-size:clamp(28px,3vw,38px);line-height:1.08;letter-spacing:-.035em}
.app-page .page-heading p,.module-page-head p,.admin-overview-hero p,.office-hero p{position:relative;z-index:1;max-width:760px;margin:0;color:#c7ddd5;font-size:14px;line-height:1.55}
.app-page .page-heading .eyebrow,.module-page-head .business-kicker,.admin-overview-hero .eyebrow,.office-hero .office-kicker{color:var(--poe-yellow)}
.app-page .page-heading>.btn,.app-page .heading-actions,.module-page-head>.btn,.module-page-head>div:last-child{position:relative;z-index:2}
.app-page .page-heading>.btn-primary,.module-page-head>.btn-primary,.module-page-head .btn-primary,.admin-overview-hero .btn-primary,.office-hero .office-btn.primary{background:var(--poe-yellow);border-color:var(--poe-yellow);color:var(--poe-green-950)}
.app-page .page-heading>.btn-primary:hover,.module-page-head .btn-primary:hover{background:var(--poe-yellow-strong);border-color:var(--poe-yellow-strong)}
.app-page .heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.app-page .heading-actions .btn-soft,.app-page .page-heading>.btn-soft,.module-page-head .btn-soft{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff}
.app-page .heading-actions .btn-soft:hover,.app-page .page-heading>.btn-soft:hover,.module-page-head .btn-soft:hover{background:rgba(255,255,255,.14)}
.app-page .live-state{display:none}

/* Tabs */
.context-tabs,.settings-tabs,.rental-context-tabs,.tab-group{display:flex;gap:4px;margin:0 0 18px;padding:4px;border:1px solid var(--poe-line);border-radius:12px;background:#fff;overflow:auto;scrollbar-width:none}
.context-tabs::-webkit-scrollbar,.settings-tabs::-webkit-scrollbar,.rental-context-tabs::-webkit-scrollbar{display:none}
.context-tabs a,.settings-tabs a,.rental-context-tabs a,.tab-group button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border:0;border-radius:9px;background:transparent;color:var(--poe-muted);font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap}
.context-tabs a:hover,.settings-tabs a:hover,.rental-context-tabs a:hover,.tab-group button:hover{background:var(--poe-surface-2);color:var(--poe-green-800)}
.context-tabs a.active,.settings-tabs a.active,.rental-context-tabs a.active,.tab-group button.active{background:var(--poe-green-700);color:#fff}

/* Cards / panels */
.panel,.table-panel,.business-card,.admin-panel,.office-panel,.query-card,.property-card,.community-card,.staff-access-card,.brand-control-card,.settings-location-card,.rules-card,.deal-form-card,.deal-ledger-card,.salary-ledger-card,.salary-settings-card,.recurring-income-card,.standalone-cost-card{border:1px solid var(--poe-line);border-radius:var(--poe-radius);background:#fff;box-shadow:var(--poe-shadow-xs)}
.panel-head,.admin-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;padding:16px 18px;border-bottom:1px solid var(--poe-line);background:#fff}
.panel-head h2,.admin-panel-head h2,.business-card>h2,.business-card>header h2{margin:0;color:var(--poe-ink);font-size:18px;line-height:1.2}
.panel-head p,.admin-panel-head p{margin:4px 0 0;color:var(--poe-muted);font-size:12px}
.panel-body{padding:16px 18px}
.business-card{padding:19px}
.business-grid,.finance-grid{display:grid;gap:14px}
.business-grid.two,.finance-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}

/* KPI cards */
.stats-grid,.finance-kpis,.metric-section-head+.finance-kpis,.finance-stat-grid,.earnings-stat-grid,.salary-summary-grid,.owner-balance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.stat-card,.finance-kpis>article,.finance-stat-grid>article,.earnings-stat-grid>article,.salary-summary-grid>article,.owner-balance-grid>article,.rental-stat,.metric{position:relative;min-height:118px;padding:18px;border:1px solid var(--poe-line);border-radius:var(--poe-radius);background:#fff;box-shadow:var(--poe-shadow-xs);overflow:hidden}
.stat-card:before,.finance-kpis>article:before,.finance-stat-grid>article:before,.earnings-stat-grid>article:before,.salary-summary-grid>article:before,.owner-balance-grid>article:before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:3px;background:var(--poe-green-700)}
.stat-card:nth-child(even):before,.finance-kpis>article:nth-child(even):before,.earnings-stat-grid>article:nth-child(even):before{background:var(--poe-yellow)}
.stat-card-top,.finance-kpis span,.finance-stat-grid span,.earnings-stat-grid span,.salary-summary-grid span,.owner-balance-grid span{color:var(--poe-muted);font-size:13px;font-weight:700}
.stat-value,.finance-kpis strong,.finance-stat-grid strong,.earnings-stat-grid strong,.salary-summary-grid strong,.owner-balance-grid strong{display:block;margin-top:13px;color:var(--poe-ink);font-size:28px;font-weight:800;line-height:1;letter-spacing:-.04em}
.stat-note,.finance-kpis small,.finance-stat-grid small,.earnings-stat-grid small{display:block;margin-top:7px;color:var(--poe-muted);font-size:12px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:14px}
.priority-item,.activity-item{display:flex;align-items:center;gap:11px;min-height:62px;padding:11px 0;border-bottom:1px solid #edf2ef}
.priority-item:last-child,.activity-item:last-child{border-bottom:0}
.priority-item strong,.activity-item strong{font-size:14px}.priority-item small,.activity-item small{font-size:12px;color:var(--poe-muted)}

/* CRM notices compact instead of command walls */
.security-command,.retention-banner,.property-policy,.privacy-card{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--poe-line);border-radius:12px;background:#fff;color:var(--poe-muted);box-shadow:none}
.security-command-copy{padding:0}.security-command-copy h2{margin:0 0 3px;font-size:14px}.security-command-copy p,.retention-banner p{margin:0;font-size:12px}.security-metrics{margin-left:auto}

/* Tables */
.table-panel,.table-scroll,.admin-table-wrap{max-width:100%;overflow:auto}
table,.account-table,.admin-table,.office-table{width:100%;border-collapse:separate;border-spacing:0}
.app-page table,.account-table,.admin-table,.office-table{min-width:760px}
th{padding:11px 13px;border-bottom:1px solid var(--poe-line);background:#f7faf8;color:#566b62;font-weight:800;text-align:left;text-transform:none;letter-spacing:0}
td{padding:13px;border-bottom:1px solid #edf2ef;color:#26372f;font-size:13px;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#fbfdfc}
.person{display:flex;align-items:center;gap:10px}.person strong{font-size:14px}.person small{color:var(--poe-muted)}
.row-actions,.inline-admin-actions,.settlement-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}

/* Cards for requirements / properties */
.card-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.query-card{padding:18px}.query-card h3{margin:0;font-size:18px}.record-id,.record-meta{font-size:12px;color:var(--poe-muted)}
.query-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.detail-cell{padding:11px;border:1px solid var(--poe-line);border-radius:10px;background:var(--poe-surface-2)}
.property-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.property-card{overflow:hidden}.property-media{height:190px;background:#edf3ef}.property-media img{width:100%;height:100%;object-fit:cover}.property-body{padding:16px}.property-body h3{margin:0 0 5px;font-size:17px}.property-location{color:var(--poe-muted);font-size:12px}.property-price{margin-top:10px;font-size:21px;font-weight:800}

/* Deal Exchange */
.community-hero{position:relative;margin-bottom:16px;padding:22px 24px;border-radius:18px;background:var(--poe-green-800);color:#fff;overflow:hidden}.community-hero h1{color:#fff;font-size:31px}.community-hero p{color:#c7ddd5}.community-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.community-hero-stats span{padding:10px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.06);color:#fff;font-size:12px}.community-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.38fr);gap:14px}.community-feed{display:grid;gap:12px}.community-card{padding:17px}.community-card h3{font-size:18px}.collaboration-desk{position:sticky;top:90px;height:max-content}.community-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}

/* Property management / finance / settings */
.finance-module-page .workspace,.business-tools-page .workspace{background:var(--poe-canvas)}
.finance-period,.metric-section-head,.balance-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}.metric-section-head h2,.balance-head h2{margin:0;font-size:18px}.metric-section-head p,.balance-head p{margin:3px 0 0;color:var(--poe-muted);font-size:12px}
.client-money{margin-top:8px}
.finance-action-list{display:grid;gap:8px}.finance-action-list a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--poe-line);border-radius:10px;text-decoration:none}.finance-action-list a:hover{border-color:var(--poe-line-strong);background:var(--poe-surface-2)}
.business-form{display:grid;gap:16px}.business-inline-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.business-inline-form>*{min-width:150px}.business-inline-form .btn{min-width:auto}
.entry-more{margin-top:4px;border:1px solid var(--poe-line);border-radius:11px;background:var(--poe-surface-2)}.entry-more summary{padding:11px 13px;color:var(--poe-green-700);font-size:13px;font-weight:750;cursor:pointer}.entry-more[open] summary{border-bottom:1px solid var(--poe-line)}.entry-more>.business-form-grid,.entry-more>.form-grid{padding:14px}
.money-direction{display:grid;grid-template-columns:1fr 1fr;gap:8px}.money-direction button{min-height:46px;border:1px solid var(--poe-line);border-radius:10px;background:#fff;color:var(--poe-muted);font-weight:800}.money-direction button.active.in{border-color:#b9deca;background:var(--poe-success-bg);color:var(--poe-success)}.money-direction button.active.out{border-color:#edc8c4;background:var(--poe-danger-bg);color:var(--poe-danger)}
.money-amount-field input{min-height:58px;font-size:24px;font-weight:800;letter-spacing:-.03em}
.account-state.money-in{background:var(--poe-success-bg);color:var(--poe-success)}.account-state.money-out{background:var(--poe-danger-bg);color:var(--poe-danger)}
.approval-inline{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.approval-inline .approve{background:var(--poe-green-700);color:#fff}.approval-inline .reject{background:#fff;color:var(--poe-danger);border:1px solid #e8c4c0}
.account-empty,.business-empty,.empty-state{padding:32px 18px;text-align:center;color:var(--poe-muted)}.business-empty h1,.empty-state h2{margin:0 0 8px;color:var(--poe-ink)}
.hierarchy-building,.standalone-cost-card,.settlement-pay-form,.salary-profile-list>article{border:1px solid var(--poe-line);border-radius:12px;background:#fff}
.property-cost-layout,.salary-layout,.ledger-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.7fr);gap:14px}

/* Repairs & costs */
.property-work-card{padding:16px;border:1px solid var(--poe-line);border-radius:12px;background:#fff}.property-work-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.property-work-card h3{margin:0;font-size:16px}.property-work-card p{color:var(--poe-muted);font-size:13px}.work-cost-table{margin-top:12px;border-top:1px solid var(--poe-line)}

/* Deals & earnings */
.deal-earnings-hero{margin-bottom:16px}.earning-explainer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}.earning-explainer-grid>article{padding:15px;border:1px solid var(--poe-line);border-radius:12px;background:#fff}.earning-explainer-grid h3{margin:5px 0;font-size:15px}.earning-explainer-grid p{margin:0;color:var(--poe-muted);font-size:12px}
.deal-list{display:grid;gap:10px}.deal-row{padding:15px;border:1px solid var(--poe-line);border-radius:12px;background:#fff}.deal-row-main{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center}.deal-service-label{font-size:12px;color:var(--poe-muted)}.deal-money{font-size:18px;font-weight:800}.deal-money.received{color:var(--poe-success)}.deal-splits{margin-top:12px;padding-top:12px;border-top:1px solid var(--poe-line)}

/* Settings and staff access */
.settings-main .business-grid{align-items:start}.brand-preview{display:flex;align-items:center;justify-content:center;min-height:120px;border:1px dashed var(--poe-line-strong);border-radius:12px;background:var(--poe-surface-2)}
.rule-grid{display:grid;gap:9px}.rule-toggle,.staff-rule,.check-row{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--poe-line);border-radius:10px;background:#fff}.rule-toggle:hover,.staff-rule:hover{border-color:var(--poe-line-strong);background:var(--poe-surface-2)}.rule-toggle input,.staff-rule input,.check-row input{width:18px;height:18px;min-height:18px;margin:2px 0 0;accent-color:var(--poe-green-700)}
.staff-access-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.staff-picker{display:grid;grid-template-columns:minmax(220px,.42fr) minmax(0,1fr);gap:14px}.selected-staff-card{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--poe-line);border-radius:12px;background:var(--poe-surface-2)}.staff-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--poe-green-100);color:var(--poe-green-800);font-weight:850}.permissions-heading{margin:18px 0 9px}.staff-permission-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.staff-permission-groups>section{padding:13px;border:1px solid var(--poe-line);border-radius:12px;background:var(--poe-surface-2)}.staff-access-footer{display:flex;justify-content:flex-end;margin-top:16px;padding-top:15px;border-top:1px solid var(--poe-line)}

/* Modals - one behavior everywhere */
.modal-backdrop{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(3,32,24,.52);backdrop-filter:blur(4px);overflow-y:auto;overscroll-behavior:contain}
.modal-backdrop.open,.modal-backdrop.active{display:flex}
.modal,.modal.small,.modal.wide{display:flex;flex-direction:column;width:min(760px,100%);max-height:min(860px,calc(100dvh - 48px));min-height:0;border:1px solid var(--poe-line);border-radius:18px;background:#fff;box-shadow:var(--poe-shadow-md);overflow:hidden}
.modal.small{width:min(540px,100%)}.modal.wide{width:min(980px,100%)}
.modal>form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;max-height:inherit;overflow:hidden}
.modal-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 19px;border-bottom:1px solid var(--poe-line);background:#fff}.modal-head h2{margin:0;font-size:20px}.modal-head p{margin:4px 0 0;color:var(--poe-muted);font-size:12px}
.modal-body{flex:1 1 auto;min-height:0;padding:18px 19px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.modal-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:70px;padding:11px 19px;border-top:1px solid var(--poe-line);background:#fff}

/* Platform Admin */
.admin-page{background:var(--poe-canvas);color:var(--poe-ink)}
.admin-page .admin-sidebar{position:fixed;inset:0 auto 0 0;width:var(--poe-sidebar);padding:20px 14px 18px;background:var(--poe-green-950);border:0;z-index:90;overflow-y:auto}
.admin-sidebar-brand{display:flex;align-items:center;gap:10px;padding:3px 8px 17px;border-bottom:1px solid rgba(255,255,255,.09);color:#fff}.admin-sidebar-brand strong{display:block;color:#fff;font-size:15px}.admin-sidebar-brand small{display:block;color:#91afa5;font-size:12px}
.admin-side-label{margin:18px 10px 6px;color:#769b8e;font-size:12px;font-weight:850;letter-spacing:.11em}
.admin-side-nav{display:grid;gap:3px}.admin-side-link{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 10px;border-radius:10px;color:#bdd1ca;font-size:13px;font-weight:700;text-decoration:none}.admin-side-link:hover{background:rgba(255,216,90,.09);color:var(--poe-yellow)}.admin-side-link.active{background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 3px 0 0 var(--poe-yellow)}
.admin-sidebar-footer{margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.09)}.admin-profile-card{display:flex;align-items:center;gap:10px}.admin-profile-card strong{color:#fff;font-size:13px}.admin-profile-card small{color:#91afa5;font-size:12px}.admin-website-link{color:#b7cbc4;font-size:12px}
.admin-main{margin-left:var(--poe-sidebar);min-width:0}.admin-mobile-header{display:none}.admin-commandbar{position:sticky;top:0;z-index:70;display:flex;align-items:center;gap:14px;min-height:72px;padding:11px 28px;border-bottom:1px solid var(--poe-line);background:rgba(244,247,245,.94);backdrop-filter:blur(16px)}.admin-route-title{margin-right:auto}.admin-route-title strong{font-size:15px}.admin-route-title small{display:block;color:var(--poe-muted);font-size:12px}.admin-global-search{width:min(520px,44vw)}
.admin-shell{max-width:1480px;margin:auto;padding:28px 30px 72px}.admin-heading{margin:0}.admin-overview-hero{align-items:center}.admin-plan-pulse{position:relative;z-index:2;padding:11px 13px;border:1px solid rgba(255,255,255,.16);border-radius:11px;background:rgba(255,255,255,.07);color:#fff}
.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.admin-stats article{min-height:112px;padding:17px;border:1px solid var(--poe-line);border-radius:var(--poe-radius);background:#fff}.admin-stats span{color:var(--poe-muted);font-size:12px;font-weight:700}.admin-stats strong{display:block;margin-top:11px;font-size:27px;letter-spacing:-.04em}.admin-stats small{color:var(--poe-muted)}
.admin-panel{margin-bottom:14px;overflow:hidden}.admin-entity-grid,.gateway-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px}.admin-entity-card,.admin-create-box{border:1px solid var(--poe-line);border-radius:12px;background:#fff;overflow:hidden}.admin-entity-card>summary,.admin-create-box>summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:14px;cursor:pointer}.admin-entity-card>summary:hover,.admin-create-box>summary:hover{background:var(--poe-surface-2)}
.admin-edit-form,.gateway-admin-form,.job-admin-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:16px;border-top:1px solid var(--poe-line);background:#fbfdfc}.admin-edit-form .span-2,.job-admin-form .span-2{grid-column:1/-1}.admin-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;grid-column:1/-1;padding-top:3px}
.admin-payment-list{display:grid;gap:11px;padding:15px}.admin-payment-list>article{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.35fr);gap:16px;padding:15px;border:1px solid var(--poe-line);border-radius:12px;background:#fff}.admin-table-wrap{border-top:1px solid var(--poe-line)}.admin-table{min-width:820px}.danger-zone,.admin-permanent-erase{padding:15px;border:1px solid #edc5c1;border-radius:12px;background:var(--poe-danger-bg)}

/* Legacy advanced workspace gets the same visual grammar */
.office-page{background:var(--poe-canvas);color:var(--poe-ink)}.office-sidebar{background:var(--poe-green-950);box-shadow:none}.office-brand,.office-company-chip,.office-sidebar-bottom{border-color:rgba(255,255,255,.09)}.office-nav a{border-radius:10px;color:#bfd2cb}.office-nav a:hover{background:rgba(255,216,90,.09);color:var(--poe-yellow)}.office-nav a.active{background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 3px 0 0 var(--poe-yellow)}.office-workspace{background:var(--poe-canvas)}.office-topbar{border-bottom:1px solid var(--poe-line);background:rgba(244,247,245,.94);box-shadow:none}.office-main{max-width:1480px;margin:auto;padding:28px 30px 72px}.office-panel{box-shadow:var(--poe-shadow-xs)}.office-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.office-metric-grid>article{border:1px solid var(--poe-line);border-radius:var(--poe-radius);background:#fff}.office-dialog{border:1px solid var(--poe-line);border-radius:18px;background:#fff;box-shadow:var(--poe-shadow-md)}

/* Authentication / onboarding */
.login-page,.admin-login-page,.install-page,.checkout-page{min-height:100dvh;background:var(--poe-canvas)}
.login-shell,.admin-login-shell{display:grid;grid-template-columns:minmax(360px,.85fr) minmax(480px,1.15fr);min-height:100dvh}.login-story,.admin-login-brand{display:flex;flex-direction:column;justify-content:space-between;padding:42px clamp(28px,5vw,72px);background:var(--poe-green-900);color:#fff}.login-story h1,.admin-login-brand h1{color:#fff;font-size:clamp(38px,5vw,60px);line-height:1.02}.login-story p,.admin-login-brand p{color:#bdd2ca}.login-brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none}.login-panel{display:grid;place-items:center;padding:32px}.login-card,.admin-login-card,.install-card{width:min(460px,100%);padding:30px;border:1px solid var(--poe-line);border-radius:20px;background:#fff;box-shadow:var(--poe-shadow-sm)}.login-card h2,.admin-login-card h2{margin:5px 0 8px;font-size:27px}.login-card>p,.admin-login-card>p{color:var(--poe-muted)}.login-card label{display:block;margin-top:14px}.login-submit{width:100%;margin-top:16px}.login-register{display:grid;gap:8px;margin-top:10px}.mobile-login-brand{display:none}
.register-page,.saas-public-page{background:var(--poe-canvas)}.public-nav{border-bottom:1px solid var(--poe-line);background:#fff}.register-layout{display:grid;grid-template-columns:minmax(310px,.72fr) minmax(520px,1.28fr);gap:28px;max-width:1240px;margin:auto;padding:38px 24px 70px}.register-intro{padding:22px 6px}.register-intro h1{font-size:clamp(38px,4vw,54px);line-height:1.04}.register-card{padding:24px;border:1px solid var(--poe-line);border-radius:20px;background:#fff;box-shadow:var(--poe-shadow-sm)}.register-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:16px 0 22px}.register-progress>span,.register-progress>button{min-height:38px;border-radius:9px}.register-progress .active{background:var(--poe-green-700);color:#fff}.register-step-head h2{font-size:22px}.gateway-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gateway-choice{border:1px solid var(--poe-line);border-radius:12px;background:#fff}.gateway-choice:has(input:checked){border-color:var(--poe-green-600);background:var(--poe-green-100)}
.install-shell,.checkout-shell{width:min(860px,calc(100% - 30px));margin:auto;padding:38px 0 70px}.install-card,.checkout-shell{background:#fff}.form-section{padding:17px;border:1px solid var(--poe-line);border-radius:12px;background:var(--poe-surface-2)}

/* Public marketing site */
.landing-page,.careers-page{background:#fff;color:var(--poe-ink)}.landing-header,.career-header{border-bottom:1px solid var(--poe-line);background:rgba(255,255,255,.94);backdrop-filter:blur(16px)}.landing-nav-links a,.career-nav a{font-size:14px;font-weight:650}.landing-hero{background:linear-gradient(180deg,#fff 0%,#f5f9f6 100%)}.landing-hero-copy h1{color:var(--poe-green-950);font-size:clamp(48px,5vw,72px);line-height:1.01}.landing-hero-copy h1 span{color:var(--poe-green-700)}.landing-hero-copy>p{font-size:17px;line-height:1.68}.workflow-card,.feature-card,.price-card,.career-job-card,.community-demo{border:1px solid var(--poe-line);box-shadow:var(--poe-shadow-xs)}.workflow-card.featured,.price-card.popular{border-color:#d7c675}.landing-section-heading h2,.career-section-head h2{color:var(--poe-green-950)}

/* Client property share page */
.property-share-page{background:var(--poe-canvas);font-size:15px}.property-share-page header{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px clamp(16px,4vw,52px);border-bottom:1px solid var(--poe-line);background:#fff}.property-share-page header strong{font-size:14px}.property-share-page header span{color:var(--poe-muted);font-size:12px}.property-share-page header a{margin-left:auto;color:var(--poe-green-700);font-size:13px;font-weight:750}.property-share-page .hero{padding:50px clamp(18px,5vw,70px);background:var(--poe-green-800);color:#fff}.property-share-page .hero h1{max-width:900px;margin:5px 0;color:#fff;font-size:clamp(36px,6vw,64px);line-height:1.02}.property-share-page .hero p{color:#c6ded5}.property-share-page .hero .eyebrow{color:var(--poe-yellow)}.property-share-page .price{display:block;margin-top:18px;color:var(--poe-yellow);font-size:clamp(28px,4vw,42px);font-weight:850}.property-share-page .wrap{max-width:1220px;margin:auto;padding:22px 18px 60px}.property-share-page .facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.property-share-page .facts>div,.property-share-page .panel{border:1px solid var(--poe-line);border-radius:14px;background:#fff}.property-share-page .facts>div{padding:15px}.property-share-page .facts small{color:var(--poe-muted);font-size:12px}.property-share-page .facts strong{display:block;margin-top:6px;font-size:18px}.property-share-page .story{display:grid;grid-template-columns:1.2fr .8fr;gap:12px;margin-top:12px}.property-share-page .panel{padding:20px}.property-share-page .gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.property-share-page .gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}.property-share-page .privacy{margin-top:14px;padding:13px 15px;border:1px solid var(--poe-line);border-radius:12px;background:#fff;color:var(--poe-muted)}

/* Rental portal */
.rental-portal-page{background:var(--poe-canvas);font-size:15px}.rental-portal-page .top{min-height:64px;border-bottom:1px solid var(--poe-line);background:#fff}.rental-portal-page .top strong{font-size:14px}.rental-portal-page .top span{color:var(--poe-muted);font-size:12px}.rental-portal-page .hero{padding:38px clamp(18px,4vw,54px) 25px;background:var(--poe-green-800);border:0;color:#fff}.rental-portal-page .hero small{color:var(--poe-yellow);font-size:12px}.rental-portal-page .hero h1{color:#fff;font-size:clamp(32px,5vw,48px)}.rental-portal-page .hero p{color:#c7ddd5}.rental-portal-page .metric,.rental-portal-page .panel{border:1px solid var(--poe-line);border-radius:14px;background:#fff;box-shadow:var(--poe-shadow-xs)}.rental-portal-page .metric small{font-size:12px;text-transform:none;letter-spacing:0}.rental-portal-page .metric strong{font-size:23px}.rental-portal-page th{font-size:12px;text-transform:none;letter-spacing:0}.rental-portal-page td{font-size:13px}.rental-portal-page .status{font-size:12px;text-transform:none}.rental-portal-page .btn.primary,.rental-portal-page .form button,.rental-portal-page .approval button{background:var(--poe-green-700);border-color:var(--poe-green-700)}

/* Empty / error pages */
.business-tool-shell.narrow,.checkout-shell{min-height:100dvh;display:grid;place-items:center;padding:24px}.business-tool-shell.narrow .business-empty{width:min(620px,100%);padding:32px;border:1px solid var(--poe-line);border-radius:18px;background:#fff;box-shadow:var(--poe-shadow-sm)}

/* Mobile */
@media(max-width:1199px){
  .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .staff-permission-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-stats,.stats-grid,.finance-kpis,.finance-stat-grid,.earnings-stat-grid,.salary-summary-grid,.owner-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:991px){
  .app-page .sidebar,.unified-sidebar,.admin-page .admin-sidebar,.office-sidebar{transform:translateX(-104%);transition:transform .2s ease}.app-page .sidebar.open,.unified-sidebar.open,.admin-page .admin-sidebar.open,.office-sidebar.open{transform:none}
  .app-page .workspace,.unified-module-workspace,.unified-module-shell>.workspace,.admin-main,.office-workspace{margin-left:0}
  .menu-button,.unified-menu-button,.admin-mobile-header,.office-menu{display:flex}
  .sidebar-scrim.open,.admin-sidebar-scrim.open,.office-scrim.open{display:block}
  .app-page .topbar,.unified-topbar,.admin-commandbar,.office-topbar{padding-inline:18px}
  .global-search-shell,.admin-global-search{width:min(520px,56vw)}
  .dashboard-grid,.community-layout,.property-cost-layout,.salary-layout,.ledger-layout,.staff-picker,.business-grid.two,.finance-grid.two{grid-template-columns:1fr}
  .collaboration-desk{position:static}
  .register-layout{grid-template-columns:1fr;max-width:780px}.register-intro{padding-bottom:0}
  .login-shell,.admin-login-shell{grid-template-columns:1fr}.login-story,.admin-login-brand{display:none}.login-panel{min-height:100dvh}
  .office-main,.admin-shell,.app-page .content,.unified-main,.finance-main,.settings-main,.deal-earnings-main{padding-inline:20px}
}

@media(max-width:767px){
  body{font-size:15px}
  .app-page .topbar,.unified-topbar,.admin-commandbar,.office-topbar{min-height:64px;padding:9px 12px}
  .global-search-shell{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;min-width:0;margin-right:auto}.mobile-brand strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agency-mobile-logo{width:30px;height:30px;object-fit:contain}
  .app-page .content,.unified-main,.finance-main,.settings-main,.deal-earnings-main,.admin-shell,.office-main{padding:16px 12px 84px}
  .app-page .page-heading,.module-page-head,.admin-overview-hero,.office-hero{align-items:stretch;flex-direction:column;gap:15px;padding:20px;border-radius:15px}.app-page .page-heading h1,.module-page-head h1,.admin-overview-hero h1,.office-hero h1{font-size:29px}.app-page .heading-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.app-page .page-heading>.btn,.module-page-head>.btn,.app-page .heading-actions .btn{width:100%}
  .context-tabs,.settings-tabs,.rental-context-tabs{margin-inline:-1px}
  .stats-grid,.finance-kpis,.finance-stat-grid,.earnings-stat-grid,.salary-summary-grid,.owner-balance-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-card,.finance-kpis>article,.finance-stat-grid>article,.earnings-stat-grid>article,.salary-summary-grid>article,.owner-balance-grid>article{min-height:104px;padding:14px}.stat-value,.finance-kpis strong,.finance-stat-grid strong,.earnings-stat-grid strong{font-size:24px}
  .card-grid.two,.property-grid,.earning-explainer-grid,.staff-permission-groups,.admin-entity-grid,.gateway-admin-grid{grid-template-columns:1fr}
  .query-details{grid-template-columns:1fr 1fr}.property-media{height:220px}
  .community-toolbar{align-items:stretch;flex-direction:column}.community-location-tools{width:100%}.community-hero{padding:19px}.community-hero h1{font-size:27px}
  .form-grid,.business-form-grid,.admin-edit-form,.gateway-admin-form,.job-admin-form{grid-template-columns:1fr}.form-grid .full,.business-form-grid .full,.admin-edit-form .span-2,.job-admin-form .span-2{grid-column:auto}
  .business-inline-form{align-items:stretch;flex-direction:column}.business-inline-form>*{width:100%;min-width:0}
  .deal-row-main{grid-template-columns:1fr}.deal-row-actions{width:100%}
  .admin-commandbar{position:relative;top:auto}.admin-route-title{display:none}.admin-global-search{width:100%}.admin-payment-list>article{grid-template-columns:1fr}.admin-payment-list form{padding-top:12px;border-top:1px solid var(--poe-line)}

  /* Mobile records: no page-wide horizontal scrolling. */
  .app-page .table-panel,.finance-module-page .table-scroll,.business-tools-page .table-scroll,.account-table-wrap{overflow:visible;border:0;background:transparent;box-shadow:none}
  .app-page .table-panel table,.finance-module-page .account-table,.business-tools-page .account-table{display:block;min-width:0}.app-page .table-panel thead,.finance-module-page .account-table thead,.business-tools-page .account-table thead{display:none}.app-page .table-panel tbody,.finance-module-page .account-table tbody,.business-tools-page .account-table tbody{display:grid;gap:10px}.app-page .table-panel tr,.finance-module-page .account-table tr,.business-tools-page .account-table tr{display:block;padding:6px 13px;border:1px solid var(--poe-line);border-radius:13px;background:#fff;box-shadow:var(--poe-shadow-xs)}.app-page .table-panel td,.finance-module-page .account-table td,.business-tools-page .account-table td{display:grid;grid-template-columns:minmax(100px,.38fr) minmax(0,.62fr);gap:10px;align-items:center;padding:10px 0;border:0;border-top:1px solid #edf2ef;text-align:right;font-size:13px}.app-page .table-panel td:first-child,.finance-module-page .account-table td:first-child,.business-tools-page .account-table td:first-child{border-top:0}.app-page .table-panel td:before,.finance-module-page .account-table td:before,.business-tools-page .account-table td:before{content:attr(data-label);color:var(--poe-muted);font-size:12px;font-weight:750;text-align:left}.app-page .table-panel td[data-label="Actions"],.finance-module-page .account-table td[data-label="Actions"],.business-tools-page .account-table td[data-label="Actions"]{display:block}.app-page .table-panel td[data-label="Actions"]:before,.finance-module-page .account-table td[data-label="Actions"]:before,.business-tools-page .account-table td[data-label="Actions"]:before{display:none}.row-actions{justify-content:flex-end}

  .modal-backdrop{align-items:stretch;padding:0;backdrop-filter:none}.modal,.modal.small,.modal.wide{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.modal>form{height:100%;max-height:100%}.modal-head{padding:15px 14px}.modal-body{padding:16px 14px calc(22px + env(safe-area-inset-bottom))}.modal-footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom))}.modal-footer .btn{flex:1;min-width:0}

  .register-layout{padding:20px 12px 52px}.register-card{padding:18px;border-radius:15px}.register-progress{grid-template-columns:repeat(4,minmax(0,1fr))}.gateway-picker{grid-template-columns:1fr}
  .login-panel{padding:0}.login-card,.admin-login-card{width:100%;min-height:100dvh;padding:28px 18px;border:0;border-radius:0;box-shadow:none}.mobile-login-brand{display:flex}
  .property-share-page .facts{grid-template-columns:1fr 1fr}.property-share-page .story{grid-template-columns:1fr}.property-share-page .gallery{grid-template-columns:1fr 1fr}
  .rental-portal-page .grid{grid-template-columns:1fr}.rental-portal-page .metrics{grid-template-columns:1fr 1fr}
}

@media(max-width:479px){
  .app-page .heading-actions{grid-template-columns:1fr}.stats-grid,.finance-kpis,.finance-stat-grid,.earnings-stat-grid,.salary-summary-grid,.owner-balance-grid{grid-template-columns:1fr}.query-details{grid-template-columns:1fr}.community-hero-stats{grid-template-columns:1fr}.money-direction{grid-template-columns:1fr}.property-share-page .facts,.property-share-page .gallery,.rental-portal-page .metrics{grid-template-columns:1fr}.modal-footer{display:grid;grid-template-columns:1fr 1fr}.admin-global-search{display:none}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.btn,.icon-button,.nav-item,.admin-side-link,.panel,.business-card,.modal{border:1px solid ButtonText}}

/* v6 automatic mobile-record table component. ui-v6.js supplies header labels. */
@media(max-width:767px){
  table[data-ui-responsive-table="1"]{display:block!important;min-width:0!important;width:100%!important}
  table[data-ui-responsive-table="1"] thead{display:none!important}
  table[data-ui-responsive-table="1"] tbody{display:grid!important;gap:10px!important;width:100%!important}
  table[data-ui-responsive-table="1"] tr{display:block!important;padding:6px 13px!important;border:1px solid var(--poe-line)!important;border-radius:13px!important;background:#fff!important;box-shadow:var(--poe-shadow-xs)!important}
  table[data-ui-responsive-table="1"] td{display:grid!important;grid-template-columns:minmax(100px,.38fr) minmax(0,.62fr)!important;gap:10px!important;align-items:center!important;padding:10px 0!important;border:0!important;border-top:1px solid #edf2ef!important;text-align:right!important;white-space:normal!important}
  table[data-ui-responsive-table="1"] td:first-child{border-top:0!important}
  table[data-ui-responsive-table="1"] td:before{content:attr(data-label);color:var(--poe-muted);font-size:12px;font-weight:750;text-align:left}
  table[data-ui-responsive-table="1"] td[data-label="Actions"],table[data-ui-responsive-table="1"] td[data-label="Action"]{display:block!important}
  table[data-ui-responsive-table="1"] td[data-label="Actions"]:before,table[data-ui-responsive-table="1"] td[data-label="Action"]:before{display:none}
  table[data-ui-responsive-table="1"] td[colspan]:before{display:none}
}


/* v6.0.2 — CRM action visibility + Won → Deal handoff */
.deal-handoff-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 18px;padding:18px 20px;border:1px solid #b8dcca;border-radius:15px;background:#edf8f2;color:#153e30}
.deal-handoff-banner strong{display:block;margin-bottom:4px;font-size:16px}
.deal-handoff-banner p{margin:0;color:#557267;font-size:13px;line-height:1.55}
.deal-handoff-banner .pill{flex:0 0 auto;background:#d7f0e2;color:#176044}
.deal-service-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}
.deal-service-option{display:block;min-height:108px;padding:14px 15px;border:1px solid var(--poe-line);border-radius:13px;background:#fff;color:var(--poe-ink);text-align:left;cursor:pointer}
.deal-service-option:hover{border-color:#9fcdb9;background:#f5fbf7}
.deal-service-option.active{border-color:var(--poe-green-700);box-shadow:0 0 0 2px rgba(13,107,77,.10);background:#eef8f3}
.deal-service-option span{display:block;margin-bottom:6px;color:var(--poe-green-700);font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.deal-service-option strong{display:block;font-size:15px}
.deal-service-option small{display:block;margin-top:6px;color:var(--poe-muted);font-size:12px;line-height:1.45}
.deal-profit-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 16px}
.deal-profit-preview>div{padding:12px 13px;border:1px solid var(--poe-line);border-radius:11px;background:var(--poe-surface-2)}
.deal-profit-preview span{display:block;color:var(--poe-muted);font-size:12px}
.deal-profit-preview strong{display:block;margin-top:5px;font-size:18px}
.deal-profit-preview .net{border-color:#b8dcca;background:#edf8f2}
@media(max-width:760px){
  .deal-handoff-banner{display:block}
  .deal-handoff-banner .pill{display:inline-flex;margin-top:10px}
  .deal-service-picker,.deal-profit-preview{grid-template-columns:1fr}
}

/* ================================================================
   v6.2.0 — Portfolio Management v2 + Commission Settlements
   ================================================================ */
.portfolio-v2 .module-page-head{margin-bottom:18px}
.portfolio-v2-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.portfolio-tree-card{margin-top:16px}
.portfolio-owner-tree{display:grid;gap:14px}
.owner-tree{border:1px solid var(--poe-border,#dce7e1);border-radius:18px;background:#fff;overflow:hidden}
.owner-tree-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:#f7faf8;border-bottom:1px solid var(--poe-border,#dce7e1)}
.owner-tree-head>div,.building-tree>div:first-child{display:grid;gap:3px}.owner-tree-head span,.building-tree span{font-size:12px;color:var(--poe-muted,#65736d)}
.building-tree{padding:14px 18px;border-bottom:1px solid #edf2ef}.building-tree:last-child{border-bottom:0}
.unit-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.unit-chip{display:grid;gap:1px;min-width:145px;padding:9px 11px;border:1px solid #dce7e1;border-radius:12px;background:#fff}.unit-chip small{font-size:12px;color:#65736d}.unit-chip.occupied{border-color:#bfe1d0;background:#f4fbf7}.unit-chip.vacant{border-style:dashed}
.account-empty.compact{padding:14px 18px;margin:0;background:transparent;border:0}
.directory-list,.unit-directory,.agreement-list{display:grid;gap:0}.directory-row,.unit-directory-row,.agreement-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:14px 2px;border-bottom:1px solid #e8efeb}.directory-row:last-child,.unit-directory-row:last-child,.agreement-row:last-child{border-bottom:0}.directory-row>span:first-child,.unit-directory-row>div:first-child,.agreement-row>div:first-child{display:grid;gap:3px}.directory-row small,.unit-directory-row small,.agreement-row small{font-size:12px;color:#65736d}.unit-directory-row>div:nth-child(2),.agreement-row>div:nth-child(2){display:grid;gap:3px;text-align:right}
.rent-initiator-card{position:sticky;top:86px;height:max-content}.checkbox-line{display:flex!important;align-items:center!important;gap:9px!important;min-height:44px}.checkbox-line input{width:18px!important;height:18px!important;margin:0!important}.checkbox-line span{margin:0!important}
.repair-cost-v2 .entry-more{margin-top:8px}.field-help{margin:0 0 12px;color:#65736d;font-size:12px;line-height:1.45}.approval-mini{display:grid;gap:6px;min-width:150px}.approval-mini>div{display:flex;gap:6px}.approval-mini button{min-height:34px}
.module-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.finance-kpis.balance-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1180px){.portfolio-v2-stats,.finance-kpis.balance-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.portfolio-v2-stats,.finance-kpis.balance-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-tree-head{align-items:flex-start}.directory-row,.unit-directory-row,.agreement-row{grid-template-columns:1fr;align-items:start}.unit-directory-row>div:nth-child(2),.agreement-row>div:nth-child(2){text-align:left}.rent-initiator-card{position:static}.unit-chip{min-width:calc(50% - 4px)}}
@media(max-width:520px){.portfolio-v2-stats,.finance-kpis.balance-kpis{grid-template-columns:1fr}.unit-chip{min-width:100%}.owner-tree-head{display:grid}.context-tabs.rental-context-tabs{overflow-x:auto;white-space:nowrap;scrollbar-width:none}}
.portfolio-v2 .subsection-head{margin:22px 0 10px;padding-top:18px;border-top:1px solid var(--poe-line,#dce7e1)}
.portfolio-v2 .subsection-head h3{margin:3px 0 0;font-size:16px;color:var(--poe-ink,#14241d)}
.portfolio-v2 .account-table.compact td,.portfolio-v2 .account-table.compact th{padding-top:10px;padding-bottom:10px}

/* v6.2.1 — compact status editing and printable slip actions */
.row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.btn-small{min-height:34px!important;padding:6px 10px!important;font-size:12px!important}.inline-status-editor{position:relative}.inline-status-editor>summary{cursor:pointer;list-style:none;min-height:34px;display:inline-flex;align-items:center;padding:6px 10px;border:1px solid var(--ds-line,#dce7e1);border-radius:9px;background:#fff;font-weight:750;font-size:12px;color:var(--ds-green,#0b674d)}.inline-status-editor>summary::-webkit-details-marker{display:none}.inline-status-editor[open]>summary{background:#f4faf7}.inline-status-editor form{position:absolute;right:0;z-index:20;top:calc(100% + 7px);width:min(310px,80vw);padding:12px;border:1px solid var(--ds-line,#dce7e1);border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(12,50,39,.14);display:grid;gap:8px}.inline-status-editor form select,.inline-status-editor form input{width:100%;min-height:40px;border:1px solid #cedbd4;border-radius:9px;padding:8px 10px;background:#fff;color:#14241d}.account-state.pending{background:#fff4d6;color:#835f00}.account-state.posted{background:#e7f6ee;color:#0e6748}@media(max-width:760px){.inline-status-editor form{position:fixed;left:12px;right:12px;bottom:12px;top:auto;width:auto;max-width:none;z-index:9999}.row-actions{align-items:stretch}.row-actions>.btn,.row-actions>details>summary{width:100%;justify-content:center}}

/* v6.2.2 — business authorization compliance */
.workspace-compliance-banner{margin:14px 24px 0;padding:14px 16px;border:1px solid #ead7a2;border-radius:16px;background:#fff8df;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#463918}
.workspace-compliance-banner>div{display:grid;gap:3px}.workspace-compliance-banner strong{font-size:14px}.workspace-compliance-banner span{font-size:13px;line-height:1.45;color:#6c5d31}.workspace-compliance-banner.status-hold,.workspace-compliance-banner.status-rejected{background:#fff2f0;border-color:#efc3bc;color:#7f261d}.workspace-compliance-banner.status-hold span,.workspace-compliance-banner.status-rejected span{color:#8d4a43}
.compliance-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.compliance-pill{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;font-size:12px;font-weight:800;background:#fff3c4;color:#715600;border:1px solid #ead47f;white-space:nowrap}.compliance-pill.status-verified{background:#e7f6ee;color:#176644;border-color:#c9e8d8}.compliance-pill.status-hold,.compliance-pill.status-rejected{background:#fff0ee;color:#a2382f;border-color:#efc8c3}
.compliance-document-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.compliance-document-summary>div{padding:12px;border:1px solid var(--poe-border,#dce7e1);border-radius:13px;background:#f8fbf9;display:grid;gap:4px}.compliance-document-summary span{font-size:12px;color:#65736d}.compliance-document-summary strong{font-size:13px;color:#14241d;overflow-wrap:anywhere}.compliance-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.compliance-flags{display:grid;gap:7px;margin:14px 0}.compliance-flags>strong{font-size:12px;text-transform:uppercase;letter-spacing:.06em}.compliance-flag{display:block;padding:9px 11px;border-radius:11px;background:#eef6f2;font-size:13px;color:#315c4c}.compliance-flag.warn{background:#fff4e5;color:#875019}.compliance-upload-form{margin-top:16px;padding-top:16px;border-top:1px solid var(--poe-border,#dce7e1)}
.admin-compliance-review{margin:14px 0;padding:14px;border:1px solid #dce7e1;border-radius:15px;background:#f8fbf9}.admin-compliance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.admin-compliance-head>div{display:grid;gap:3px}.admin-compliance-head strong{font-size:14px}.admin-compliance-head small{font-size:12px;color:#65736d}.admin-compliance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.admin-compliance-grid>div{display:grid;gap:4px;padding:10px;background:#fff;border:1px solid #e4ece8;border-radius:11px}.admin-compliance-grid small{font-size:12px;color:#6b7772}.admin-compliance-grid strong{font-size:12px;overflow-wrap:anywhere}.admin-compliance-flags{display:grid;gap:6px;margin:10px 0}.admin-compliance-flags span{padding:8px 10px;border-radius:9px;background:#edf6f2;font-size:12px}.admin-compliance-flags span.warn{background:#fff1e2;color:#8a4c17}.admin-compliance-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.admin-compliance-form label{display:grid;gap:6px}.admin-compliance-form label>span{font-size:12px;font-weight:700}.admin-compliance-form .full,.admin-compliance-form .admin-form-actions{grid-column:1/-1}.admin-compliance-hold{display:grid;gap:4px;margin-top:10px;padding:10px;border-radius:10px;background:#fff0ee;color:#8b352d}.admin-compliance-hold strong,.admin-compliance-hold span{font-size:12px}
@media(max-width:767px){.workspace-compliance-banner{margin:10px 12px 0;align-items:flex-start;flex-direction:column}.compliance-card header{flex-direction:column}.compliance-document-summary,.admin-compliance-grid,.admin-compliance-form{grid-template-columns:1fr}.admin-compliance-form .full,.admin-compliance-form .admin-form-actions{grid-column:auto}}

/* v6.2.4 — signup UI rebuild: calm, wide, application-style onboarding */
.register-page{background:#f5f8f6}
.register-page .public-nav{position:sticky;top:0;z-index:50;min-height:68px;padding:0 max(24px,calc((100vw - 1180px)/2));background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-bottom:1px solid #e2ebe6}
.register-page .register-layout{display:block;max-width:1180px;margin:0 auto;padding:46px 24px 80px}

.register-page .register-intro{position:static;display:grid;grid-template-columns:minmax(0,.82fr) minmax(620px,1.18fr);gap:40px;align-items:start;padding:0;margin:0 0 28px;background:transparent;color:var(--poe-ink);border:0;border-radius:0;box-shadow:none}
.register-page .register-intro-copy{padding:12px 0}
.register-page .register-intro .eyebrow{margin:0 0 10px;color:var(--poe-green-700);font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.register-page .register-intro h1{max-width:520px;margin:0;color:var(--poe-ink);font-size:clamp(38px,4vw,56px);line-height:1.02;letter-spacing:-.045em}
.register-page .register-intro-copy>p:not(.eyebrow){max-width:540px;margin:18px 0 0;color:var(--poe-muted);font-size:15px;line-height:1.7}
.register-page .trust-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.register-page .trust-list span{display:inline-flex;align-items:center;min-height:32px;padding:0 11px;border:1px solid #dce7e1;border-radius:999px;background:#fff;color:#3f5b4f;font-size:12px;font-weight:750}
.register-page .trust-list span:before{content:'✓';margin-right:7px;color:var(--poe-green-700);font-weight:900}

.register-page .register-plan-area{padding:18px;border:1px solid #dce7e1;border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(8,55,42,.06)}
.register-page .register-plan-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;padding:0 2px}
.register-page .register-plan-heading>div{display:grid;gap:2px}
.register-page .register-plan-heading strong{color:var(--poe-ink);font-size:15px}
.register-page .register-plan-heading span{color:var(--poe-muted);font-size:12px}
.register-page .register-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.register-page .register-plan{position:relative;width:100%;min-height:142px;padding:15px;text-align:left;border:1px solid #dce7e1;border-radius:15px;background:#fff;color:var(--poe-ink);box-shadow:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease}
.register-page .register-plan:hover{border-color:#8fb9a8;background:#fbfdfc;transform:translateY(-1px);box-shadow:0 8px 22px rgba(8,55,42,.06)}
.register-page .register-plan.selected{border:2px solid var(--poe-green-700);padding:14px;background:#f1f8f5;color:var(--poe-ink);box-shadow:0 0 0 3px rgba(13,107,77,.07)}
.register-page .register-plan.selected:after{content:'Selected';position:absolute;right:10px;top:10px;padding:4px 7px;border-radius:999px;background:var(--poe-green-700);color:#fff;font-size:12px;font-weight:850;letter-spacing:.02em}
.register-page .register-plan>span{display:block;padding-right:62px;color:#466157;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.register-page .register-plan>strong{display:flex;align-items:baseline;gap:4px;margin-top:7px;color:var(--poe-ink);font-size:22px;line-height:1.1;letter-spacing:-.025em}
.register-page .register-plan>strong small{font-size:12px;font-weight:700;color:var(--poe-muted)}
.register-page .register-plan ul{display:grid;gap:4px;margin:12px 0 0;padding:0;list-style:none;color:#5d7068;font-size:12px;line-height:1.35}
.register-page .register-plan li:before{content:'•';margin-right:6px;color:var(--poe-green-600)}
.register-page .payment-instructions{display:flex;align-items:flex-start;gap:10px;margin:12px 0 0;padding:10px 12px;border:0;border-radius:11px;background:#f6f8f7;color:var(--poe-muted)}
.register-page .payment-instructions strong{flex:0 0 auto;color:#385347;font-size:12px}.register-page .payment-instructions p{margin:0;color:#667970;font-size:12px;line-height:1.45}

.register-page .register-card{max-width:1040px;margin:0 auto;padding:0 38px;border:1px solid #dce7e1;border-radius:24px;background:#fff;box-shadow:0 18px 54px rgba(8,55,42,.065);overflow:hidden}
.register-page .register-card-head{padding:32px 0 26px;border-bottom:1px solid #e4ece8}
.register-page .register-card-head .eyebrow{margin:0 0 6px;color:var(--poe-green-700);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.register-page .register-card-head h2{margin:0;color:var(--poe-ink);font-size:30px;line-height:1.12;letter-spacing:-.03em}
.register-page .register-card-head p:last-child{max-width:720px;margin:9px 0 0;color:var(--poe-muted);font-size:14px;line-height:1.6}
.register-page .form-alert{margin:22px 0 0;border-radius:13px}
.register-page .registration-flow{display:block;margin:0}

.register-page .registration-section{display:grid;grid-template-columns:220px minmax(0,1fr);column-gap:36px;row-gap:18px;margin:0;padding:30px 0;border:0;border-bottom:1px solid #e5ece8;border-radius:0;background:transparent;box-shadow:none}
.register-page .registration-section:last-child{border-bottom:0}
.register-page .registration-section-head{display:block;margin:0;padding:2px 0 0;border:0}
.register-page .registration-section-head .eyebrow{margin:0 0 5px;color:var(--poe-green-700);font-size:12px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.register-page .registration-section-head h3{margin:0;color:var(--poe-ink);font-size:18px;line-height:1.25;letter-spacing:-.015em}
.register-page .registration-section-head p:last-child{margin:7px 0 0;color:var(--poe-muted);font-size:12px;line-height:1.55}
.register-page .registration-section-state{display:inline-flex;margin-top:12px;min-height:27px;align-items:center;padding:0 9px;border:1px solid #d8e7df;border-radius:999px;background:#f5faf7;color:var(--poe-green-700);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.register-page .registration-section>.form-grid{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 16px}
.register-page .registration-section>.form-grid label{gap:7px}
.register-page .registration-section>.form-grid label>span,.register-page .authorization-panel label>span{color:#3b5147;font-size:12px;font-weight:750}
.register-page .registration-section input,.register-page .registration-section select{min-height:48px;border:1px solid #cedbd4;border-radius:11px;background:#fff;font-size:14px;box-shadow:none}
.register-page .registration-section input:hover,.register-page .registration-section select:hover{border-color:#a8bfb4}
.register-page .registration-section input:focus,.register-page .registration-section select:focus{border-color:var(--poe-green-600);box-shadow:0 0 0 3px rgba(13,107,77,.10)}
.register-page .field-help{margin-top:0;color:#7b8b84;font-size:12px;line-height:1.4}

.register-page .authorization-panel{grid-column:2;margin:0;padding:18px;border:1px solid #d8e5df;border-radius:15px;background:#f8fbf9}
.register-page .authorization-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 4px}
.register-page .authorization-panel-head strong{font-size:14px;color:var(--poe-ink)}
.register-page .authorization-panel-head span{padding:4px 8px;border:1px solid #d6e5de;border-radius:999px;background:#fff;color:var(--poe-green-700);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}
.register-page .authorization-panel>p{margin:0 0 15px;color:var(--poe-muted);font-size:12px;line-height:1.55}
.register-page .authorization-panel .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.register-page .registration-upload{position:relative;display:grid;place-items:center;min-height:94px;padding:15px;border:1.5px dashed #b9cdc3;border-radius:12px;background:#fff;text-align:center;cursor:pointer;transition:border-color .16s ease,background .16s ease}
.register-page .registration-upload:hover{border-color:var(--poe-green-600);background:#fbfefc}
.register-page .registration-upload strong{font-size:12px;color:#395348}.register-page .registration-upload small{font-size:12px;color:#7a8a83;line-height:1.35}
.register-page .registration-upload input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.register-page .no-expiry-row{align-self:end;min-height:48px;margin:0;padding:9px 11px;border:1px solid #d6e1dc;border-radius:11px;background:#fff}
.register-page .no-expiry-row>span{display:grid;gap:1px}.register-page .no-expiry-row strong{font-size:12px}.register-page .no-expiry-row small{font-size:12px;color:#7a8b83}
.register-page .registration-info{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:14px 0 0;padding:11px 12px;border:1px solid #f1e3a8;border-radius:10px;background:#fff9df;color:#64551f;font-size:12px;line-height:1.45}
.register-page .registration-info strong{color:#54440e}.register-page .registration-info span{color:#73632c}

.register-page .gateway-picker{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;border:0}
.register-page .gateway-picker legend{margin:0 0 8px;color:#3b5147;font-size:12px;font-weight:750}
.register-page .gateway-choice{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;min-height:72px;padding:12px 13px;border:1px solid #d6e1dc;border-radius:12px;background:#fff;cursor:pointer}
.register-page .gateway-choice:has(input:checked){border-color:var(--poe-green-650);background:#f2f8f5;box-shadow:0 0 0 2px rgba(13,107,77,.06)}
.register-page .gateway-choice span{display:grid;gap:2px}.register-page .gateway-choice strong{font-size:13px}.register-page .gateway-choice small{font-size:12px;color:#7a8982;line-height:1.35}.register-page .gateway-choice b{font-size:12px;color:var(--poe-green-700);text-transform:uppercase;letter-spacing:.04em}
.register-page .manual-payment-fields{grid-column:2}.register-page .manual-payment-fields .form-grid{display:grid;grid-template-columns:1fr;gap:14px}
.register-page .registration-submit-bar{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 0;padding:18px 0 0;border-top:1px solid #e5ece8}
.register-page .registration-submit-bar div{display:grid;gap:3px}.register-page .registration-submit-bar strong{color:var(--poe-ink);font-size:13px}.register-page .registration-submit-bar span{color:var(--poe-muted);font-size:12px;line-height:1.4}
.register-page .registration-submit-bar .register-submit{min-width:190px;min-height:48px;border-radius:11px;background:var(--poe-green-700);color:#fff;font-size:13px;font-weight:800}
.register-page .registration-submit-bar .register-submit:hover{background:var(--poe-green-800);transform:none}
.register-page .registration-payment>.install-note{grid-column:2;margin:8px 0 0;color:#819088;font-size:12px;line-height:1.45}
.register-page .register-progress,.register-page .register-step-actions{display:none!important}

@media(max-width:1050px){
  .register-page .register-intro{grid-template-columns:1fr;gap:24px}
  .register-page .register-intro-copy{max-width:760px}
  .register-page .register-intro h1{max-width:760px}
  .register-page .register-plan-area{max-width:none}
}
@media(max-width:820px){
  .register-page .public-nav{padding:0 16px}
  .register-page .register-layout{padding:28px 16px 60px}
  .register-page .register-plans{grid-template-columns:1fr}
  .register-page .register-plan{min-height:auto}
  .register-page .register-card{padding:0 22px;border-radius:18px}
  .register-page .registration-section{grid-template-columns:1fr;gap:17px;padding:25px 0}
  .register-page .registration-section>.form-grid,.register-page .authorization-panel,.register-page .gateway-picker,.register-page .manual-payment-fields,.register-page .registration-submit-bar,.register-page .registration-payment>.install-note{grid-column:1}
  .register-page .registration-section-head{display:grid;grid-template-columns:1fr auto;column-gap:14px}
  .register-page .registration-section-head>div{grid-column:1}.register-page .registration-section-state{grid-column:2;grid-row:1;margin:0;align-self:start}
}
@media(max-width:560px){
  .register-page .register-layout{padding:22px 12px 46px}
  .register-page .register-intro h1{font-size:36px}
  .register-page .register-intro-copy>p:not(.eyebrow){font-size:14px}
  .register-page .register-plan-area{padding:12px;border-radius:16px}
  .register-page .register-card{padding:0 15px;border-radius:16px}
  .register-page .register-card-head{padding:24px 0 20px}.register-page .register-card-head h2{font-size:25px}
  .register-page .registration-section>.form-grid,.register-page .authorization-panel .form-grid{grid-template-columns:1fr}
  .register-page .authorization-panel{padding:14px}
  .register-page .gateway-picker{grid-template-columns:1fr}
  .register-page .registration-submit-bar{align-items:stretch;flex-direction:column}
  .register-page .registration-submit-bar .register-submit{width:100%}
  .register-page .registration-info{grid-template-columns:1fr}
}


/* v6.2.5 — Working / Completed lifecycle tabs */
.record-lifecycle-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:14px 0 18px}
.record-lifecycle-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #dce7e1;border-radius:13px;background:#eef4f1}
.record-lifecycle-tabs button,.record-lifecycle-tabs a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 13px;border:0;border-radius:9px;background:transparent;color:#526860;font:inherit;font-size:13px;font-weight:800;line-height:1;text-decoration:none;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.record-lifecycle-tabs button:hover,.record-lifecycle-tabs a:hover{background:#fff;color:#0a4a36}
.record-lifecycle-tabs button.active,.record-lifecycle-tabs a.active{background:#0d6b4d;color:#fff;box-shadow:0 1px 2px rgba(7,57,44,.14)}
.record-lifecycle-tabs b{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.8);color:#315c4c;font-size:12px;font-weight:850}
.record-lifecycle-tabs .active b{background:rgba(255,255,255,.18);color:#fff}
.server-lifecycle-tabs{margin:0 0 16px}
.record-lifecycle-bar>.filter-group{margin-left:auto}
.record-lifecycle-bar>span{color:#65736d;font-size:13px;font-weight:700}
@media(max-width:767px){.record-lifecycle-bar{align-items:stretch;flex-direction:column}.record-lifecycle-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.record-lifecycle-tabs button,.record-lifecycle-tabs a{width:100%}.record-lifecycle-bar>.filter-group{width:100%;margin-left:0}.record-lifecycle-bar>.filter-group select{width:100%}.server-lifecycle-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}}

/* ========================================================================== 
   v6.3.0 — brokerage models, dual settlements & fast signup
   ========================================================================== */
.deal-model-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}
.deal-model-choice{display:flex;align-items:flex-start;gap:11px;padding:15px 16px;border:1px solid var(--poe-line);border-radius:13px;background:#fff;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.deal-model-choice:hover{border-color:#b8cec3;background:#fbfdfc}.deal-model-choice.active{border-color:var(--poe-green-600);background:var(--poe-green-050);box-shadow:0 0 0 3px rgba(13,107,77,.07)}
.deal-model-choice input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--poe-green-700);flex:0 0 auto}.deal-model-choice strong,.deal-model-choice small{display:block}.deal-model-choice strong{color:var(--poe-ink);font-size:14px}.deal-model-choice small{margin-top:4px;color:var(--poe-muted);font-size:12px;line-height:1.45}
.agent-source-fields{padding:14px;border:1px solid #dce9e2;border-radius:12px;background:#f8fcfa}.agent-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.agent-source-fields>.field-help{margin:8px 0 0}
.company-source-split-fields{padding:13px;border:1px solid var(--poe-line);border-radius:12px;background:#fbfcfb}
.deal-model-badges{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:5px}.deal-model-badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:999px;background:#edf5f1;color:#176044;font-size:11px;font-weight:850;letter-spacing:.035em}.deal-model-badge.agent{background:#fff3c7;color:#6b4e00}.deal-model-badge.receiver{background:#f1f3f2;color:#52615a}
.deal-row.agent-sourced-deal{border-left:3px solid var(--poe-yellow)}.deal-row.company-sourced-deal{border-left:3px solid var(--poe-green-600)}.deal-money.share strong{color:var(--poe-green-800)}
.agent-brokerage-summary{background:#fbfdfc}.deal-split-row.receivable{border-left:3px solid var(--poe-yellow);padding-left:10px}
.commission-future-strip{display:flex;flex-wrap:wrap;gap:8px;margin:-4px 0 16px}.commission-future-strip>span{padding:8px 11px;border:1px solid var(--poe-line);border-radius:999px;background:#fff;color:var(--poe-muted);font-size:12px}.commission-future-strip b{color:var(--poe-ink)}
.commission-balance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.commission-dual-stats .reverse:before{background:var(--poe-yellow)!important}
@media(max-width:820px){.deal-model-picker,.agent-source-grid,.commission-balance-grid{grid-template-columns:1fr}.deal-model-choice{padding:14px}.earning-explainer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.earning-explainer-grid{grid-template-columns:1fr}.commission-future-strip{display:grid}.commission-future-strip>span{border-radius:10px}}

/* ========================================================================== 
   v6.3.1 — Deal Exchange Pro: masked collaboration, broadcasts & local areas
   ========================================================================== */
.community-feed-wide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.exchange-toolbar{align-items:center;gap:12px}.community-location-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.community-location-tools select{min-width:150px}.community-location-tools .inline-search{min-width:230px;flex:1 1 260px}
.exchange-info-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;color:var(--poe-muted);font-size:12px;font-weight:700}.exchange-info-row>span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--poe-line);border-radius:999px;background:#fff}.exchange-info-row svg{width:14px;height:14px}.exchange-info-row strong{color:var(--poe-ink)}
.community-hero-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.exchange-v631 .community-hero-stats{align-self:stretch}
.exchange-card{position:relative}.exchange-card-badges{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.exchange-type-label{margin:10px 0 3px;color:var(--poe-green-700);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.exchange-card .tag-list{margin-top:12px}.exchange-card.listing-completed{opacity:.9;border-style:dashed}
.exchange-response-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%;margin:14px 0 0;padding:0;border:1px solid var(--poe-line);border-radius:12px;background:#f8fbf9;overflow:hidden;cursor:pointer;text-align:left}.exchange-response-strip:hover{border-color:#b9d1c5;background:#f4faf7}.exchange-response-strip>span{display:grid;gap:2px;padding:10px 9px;border-right:1px solid var(--poe-line);color:var(--poe-muted);font-size:11px;font-weight:750}.exchange-response-strip>span:last-child{border-right:0}.exchange-response-strip b{color:var(--poe-ink);font-size:15px;line-height:1}
.duplicate-warning{display:flex;align-items:center;gap:7px;margin-top:10px;padding:8px 10px;border:1px solid #f0d88b;border-radius:10px;background:var(--poe-yellow-soft);color:#725400;font-size:12px;font-weight:800}.duplicate-warning svg{width:15px;height:15px;flex:0 0 auto}
.reveal-control{display:grid;gap:9px;margin:15px 0;padding:14px;border:1px solid #cfe2d8;border-radius:13px;background:#f6fbf8}.reveal-control>div{margin-bottom:2px}.reveal-control strong,.reveal-control small{display:block}.reveal-control small{margin-top:2px;color:var(--poe-muted)}.reveal-control label{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--poe-line);border-radius:9px;background:#fff;font-size:13px;font-weight:700}.reveal-control input{width:17px;height:17px;accent-color:var(--poe-green-700)}
.exchange-response-list{display:grid;gap:11px}.exchange-response-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;padding:14px;border:1px solid var(--poe-line);border-radius:13px;background:#fff}.exchange-response-person{display:flex;align-items:center;gap:10px}.exchange-response-person strong,.exchange-response-person small{display:block}.exchange-response-person small{color:var(--poe-muted)}.exchange-response-row>p{grid-column:1/-1;margin:0;color:var(--poe-muted)}.exchange-response-terms{grid-column:1;display:grid;gap:2px}.exchange-response-terms small{color:var(--poe-muted)}.exchange-response-row>.row-actions{grid-column:2;justify-content:flex-end;align-self:end}
.unlocked-details{display:grid;gap:14px}.unlocked-details .detail-facts{margin:0}.broadcast-requirement-form .listing-rule{margin-bottom:4px}
@media(max-width:1050px){.community-feed-wide{grid-template-columns:1fr}.community-location-tools{width:100%;margin-left:0}.community-location-tools select{flex:1 1 150px}}
@media(max-width:680px){.exchange-toolbar{align-items:stretch}.exchange-toolbar .tab-group{width:100%;overflow:auto;justify-content:flex-start}.community-location-tools{display:grid;grid-template-columns:1fr 1fr}.community-location-tools .inline-search{grid-column:1/-1;min-width:0}.exchange-info-row{display:grid;grid-template-columns:1fr 1fr}.exchange-info-row>span:first-child{grid-column:1/-1;border-radius:12px}.exchange-response-strip{grid-template-columns:1fr 1fr}.exchange-response-strip>span:nth-child(2){border-right:0}.exchange-response-strip>span:nth-child(-n+2){border-bottom:1px solid var(--poe-line)}.exchange-response-row{grid-template-columns:1fr}.exchange-response-row>.pill{justify-self:start}.exchange-response-terms,.exchange-response-row>.row-actions{grid-column:1}.exchange-response-row>.row-actions{justify-content:flex-start}.community-hero-actions .btn{width:100%}}

/* v6.3.2 — live plan sync */
.plan-live-sync-note{display:grid;gap:5px;padding:13px 14px;border:1px solid #cfe3da;border-radius:14px;background:#f4faf7;color:#38564b}
.plan-live-sync-note strong{font-size:13px;color:#123f32}
.plan-live-sync-note span{font-size:12px;line-height:1.5}
.plan-live-sync-note small{font-size:11px;line-height:1.45;color:#7a5a1d;background:#fff7df;border:1px solid #f0dda6;border-radius:9px;padding:8px 9px}
.register-page .register-plan>p{margin:8px 0 0;color:#6a7d75;font-size:11.5px;line-height:1.4;max-width:34ch}
.register-page .register-plan-badge{position:absolute;right:10px;bottom:10px;padding:4px 7px;border-radius:999px;background:#fff4c8;color:#72530a;font-size:10px;font-weight:900;font-style:normal;letter-spacing:.04em;text-transform:uppercase}
.register-page .register-plan.selected .register-plan-badge{display:none}

/* v6.3.3 — country-locked cities + self-add */
.city-not-listed-link{display:inline-flex;align-items:center;justify-content:flex-start;width:max-content;margin-top:7px;padding:0;border:0;background:transparent;color:var(--poe-green-700);font:inherit;font-size:12px;font-weight:800;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.city-not-listed-link:hover{color:var(--poe-green-900)}
.registration-city-add{padding:14px;border:1px solid #cfe2d8;border-radius:12px;background:#f7fbf9}
.registration-city-add[hidden],.inline-city-add[hidden]{display:none!important}
.city-add-copy{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.city-add-copy strong{font-size:13px;color:var(--poe-ink)}.city-add-copy span{font-size:12px;color:var(--poe-muted);text-align:right}
.city-add-grid,.inline-city-add-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.inline-city-add{margin-top:9px;padding:12px;border:1px solid #d6e5dd;border-radius:11px;background:#f8fbf9}
.inline-city-add>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.inline-city-add>div:first-child strong{font-size:13px}.inline-city-add>div:first-child span{font-size:12px;color:var(--poe-muted)}
.inline-city-add-grid input{min-height:40px;border:1px solid var(--poe-line);border-radius:9px;background:#fff;padding:0 10px;font:inherit;font-size:13px}
.inline-city-add-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:9px}.city-add-message{display:block;margin-top:7px}
.country-lock-display{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin:0 0 16px;border:1px solid #d7e5de;border-radius:12px;background:#f8fbf9}.country-lock-display>div{display:grid;gap:2px}.country-lock-display span:first-child{font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:var(--poe-muted)}.country-lock-display strong{font-size:16px;color:var(--poe-ink)}.country-lock-display small{font-size:12px;color:var(--poe-muted)}
.country-lock-badge{display:inline-flex!important;min-height:28px;align-items:center;padding:0 9px;border-radius:999px;background:#e7f3ec;color:var(--poe-green-800)!important;font-size:11px!important;font-weight:850!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap}
.city-self-add{margin-top:14px;border-top:1px solid var(--poe-line);padding-top:12px}.city-self-add>summary{cursor:pointer;color:var(--poe-green-700);font-size:13px;font-weight:800}.city-self-add[open]>summary{margin-bottom:12px}
@media(max-width:640px){.city-add-grid,.inline-city-add-grid{grid-template-columns:1fr}.city-add-copy,.inline-city-add>div:first-child,.country-lock-display{align-items:flex-start;flex-direction:column}.city-add-copy span,.inline-city-add>div:first-child span{text-align:left}}
