:root{--navy:#101f36;--navy2:#18385c;--blue:#2866aa;--sky:#eaf2fc;--bg:#f5f7fb;--text:#182940;--muted:#6c7b8f;--stroke:#dfe7ef;--white:#fff;--shadow:0 14px 38px rgba(17,44,78,.075);--shadow-sm:0 4px 15px rgba(17,44,78,.05);--radius:20px;--green:#17754c;--green-bg:#e7f7ee;--gold:#946020;--gold-bg:#fff4e1;--red:#b23547;--red-bg:#fcecef;color-scheme:light}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,"Arial",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{text-decoration:none;color:var(--blue)}a:hover{text-decoration:underline}svg{flex-shrink:0}.icon{display:inline-flex;align-items:center;justify-content:center;line-height:0}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:10px}.strong{font-weight:700}.t-monospace{font-variant-numeric:tabular-nums}h1,h2,h3,h4,p{margin-top:0}h1{font-size:27px;line-height:1.23;letter-spacing:-.7px;margin-bottom:8px}h2{font-size:21px;line-height:1.28;letter-spacing:-.42px;margin-bottom:8px}h3{font-size:16px;line-height:1.33;letter-spacing:-.25px;margin-bottom:6px}p{line-height:1.53;margin-bottom:12px}hr{border:0;border-top:1px solid var(--stroke);margin:14px 0}.flex{display:flex;align-items:center}.between{display:flex;justify-content:space-between;align-items:center;gap:12px}.stack{display:flex;flex-direction:column;gap:12px}.truncate{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.grow{flex:1;min-width:0}.relative{position:relative}.padtop{margin-top:16px}.m0{margin:0}.wfull{width:100%}.right{text-align:right}.center{text-align:center}.error{color:var(--red)}
.page-shell{min-height:100vh;padding:0 18px 95px}.content{max-width:1040px;margin:0 auto;padding:26px 0 24px}.topbar{height:76px;background:var(--navy);color:white;position:sticky;top:0;z-index:30;box-shadow:0 8px 26px rgba(0,0,0,.1)}.topbar-inner{height:100%;max-width:1090px;padding:0 18px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:14px}.brand{display:flex;align-items:center;gap:12px;color:white!important;text-decoration:none!important}.brand img{width:59px;height:53px;object-fit:contain;border-radius:7px}.brand-word{display:flex;flex-direction:column;gap:3px}.brand-word strong{font-size:15px;letter-spacing:.5px}.brand-word span{font-size:10px;letter-spacing:1.8px;color:#aebfd2;text-transform:uppercase}.brand-role{font-size:12px;font-weight:500;display:flex;align-items:center;gap:8px}.top-actions{display:flex;align-items:center;gap:10px}.top-actions button{min-width:38px}.brand-logo-only{width:72px;height:65px;object-fit:contain;border-radius:8px}
.surface{background:#fff;border:1px solid var(--stroke);box-shadow:var(--shadow-sm);border-radius:var(--radius)}.surface-header{padding:20px 22px 0}.surface-body{padding:22px}.card{padding:18px 20px;border-radius:18px;border:1px solid var(--stroke);background:white;box-shadow:var(--shadow-sm)}.panel{padding:24px;background:white;border:1px solid var(--stroke);border-radius:22px;box-shadow:var(--shadow)}.eyebrow{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;font-weight:800;color:var(--blue);margin-bottom:9px}.section-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:8px 0 18px}.section-intro p{margin:0;color:var(--muted);font-size:14px}.page-title{margin:0 0 3px;font-size:28px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;border:1px solid transparent;border-radius:12px;background:#fff;color:var(--navy);font-weight:650;padding:10px 16px;transition:transform .13s ease,background .15s ease,box-shadow .15s ease;text-decoration:none;line-height:1.2}.btn:hover{transform:translateY(-1px);text-decoration:none;box-shadow:0 8px 20px rgba(10,45,90,.12)}.btn-primary{background:linear-gradient(140deg,#214c7e,#0f2746);color:#fff;border-color:#173a61}.btn-primary:hover{background:linear-gradient(140deg,#2e669f,#14395f)}.btn-soft{background:#edf4fc;color:#214c7e;border-color:#d7e7f8}.btn-outline{background:white;border-color:#c8d5e3;color:var(--navy)}.btn-quiet{background:transparent;color:var(--muted)}.btn-danger{color:#a13345;border-color:#f6d6dd;background:#fff5f6}.btn-sm{min-height:34px;font-size:12px;padding:7px 10px;border-radius:10px}.btn-xs{min-height:30px;padding:5px 9px;font-size:11px;border-radius:9px}.btn-wide{width:100%}.icon-button{width:40px;height:40px;display:grid;place-items:center;padding:0;border-radius:11px;border:1px solid #d5e1eb;background:#fff;color:var(--navy)}.icon-button:hover{background:var(--sky)}.btnrow{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.back-link{display:inline-flex;align-items:center;gap:6px;color:#466480;font-size:13px;font-weight:600;margin-bottom:18px;border:0;background:none;padding:4px 0}.back-link:hover{color:var(--blue)}
.hero{position:relative;border-radius:25px;background:#132943;overflow:hidden;min-height:236px;display:flex;align-items:center;box-shadow:0 17px 42px rgba(15,38,67,.18);margin-bottom:22px}.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(92deg,rgba(14,32,55,.98) 0%,rgba(19,43,71,.94) 43%,rgba(17,46,74,.64) 72%,rgba(17,42,65,.06) 100%);z-index:1}.hero-art{position:absolute;inset:0;background-image:url('/assets/architecture.svg');background-position:center right;background-size:cover}.hero-body{position:relative;z-index:2;color:white;max-width:510px;padding:30px 36px}.hero-eyebrow{font-size:11px;color:#b7d9ff;letter-spacing:1.75px;font-weight:750;text-transform:uppercase;margin-bottom:12px}.hero h1{font-size:32px;font-weight:770;max-width:450px;margin-bottom:12px}.hero p{color:#dceafb;max-width:390px;font-size:13px;margin-bottom:18px}.hero .btn{background:#fff;color:var(--navy);border:1px solid #f0f5ff}.hero-plain{min-height:192px}.hero-plain h1{font-size:27px}.hero-plain .hero-body{padding-top:24px;padding-bottom:24px}.hero-trading .hero-art{background-image:url('/assets/trading.svg')}.hero-development .hero-art{background-image:url('/assets/development.svg')}.hero-architecture .hero-art{background-image:url('/assets/architecture.svg')}
.dashboard-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:16px;margin-bottom:22px}.dashboard-item{display:flex;align-items:center;gap:13px;padding:18px 17px;transition:transform .13s;background:white;border:1px solid var(--stroke);border-radius:16px;box-shadow:var(--shadow-sm);cursor:pointer}.dashboard-item:hover{transform:translateY(-2px);border-color:#bdd4ed}.dashboard-item h3{margin:0 0 4px}.dashboard-item p{margin:0;font-size:12px;color:var(--muted)}.glyph{width:42px;height:42px;display:grid;place-items:center;background:#e9f2fc;color:#275c94;border-radius:12px;flex-shrink:0}.glyph-lg{width:52px;height:52px}.heading-line{display:flex;align-items:center;justify-content:space-between;margin:30px 0 15px}.heading-line h2{margin:0;font-size:20px}.section-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.section-link{width:100%;border:1px solid var(--stroke);background:white;border-radius:16px;display:flex;gap:13px;align-items:center;text-align:left;padding:12px 15px;min-height:72px;color:var(--navy);box-shadow:var(--shadow-sm)}.section-link:hover{border-color:#b8d2ee;background:#fdfefe;transform:translateY(-1px)}.section-link .label{font-weight:670;line-height:1.3;flex:1}.section-link .chevron{opacity:.48}.section-link.special{background:#f7faff}.section-link.special .glyph{background:#e0ecfa}.category-title{font-size:12px;font-weight:770;color:#7890a9;letter-spacing:1.4px;text-transform:uppercase;grid-column:1/-1;margin:12px 0 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.stat{background:white;border:1px solid var(--stroke);border-radius:16px;padding:17px;box-shadow:var(--shadow-sm)}.stat .count{font-size:29px;line-height:1.1;font-weight:800;color:var(--navy);margin:9px 0 7px}.stat .title{font-size:12px;color:var(--muted);font-weight:620}.stat .glyph{width:35px;height:35px}.stat.blue{background:#edf5ff;border-color:#dbedff}.stat.green{background:#eff9f4;border-color:#d9efdf}.stat.amber{background:#fff9ef;border-color:#f8ebd0}.admin-sections-layout{grid-template-columns:minmax(260px,.95fr) minmax(0,1.5fr)}.split{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:18px}.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.form-wrap{max-width:650px;margin:auto}.form-section{padding:24px}.form-field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.form-field label,.form-label{font-size:12px;font-weight:750;color:var(--navy)}.form-field input,.form-field select,.form-field textarea,.form-field .file-input, .filter-input{border:1px solid #cedce9;border-radius:12px;padding:12px 13px;background:white;color:var(--text);outline:none;width:100%;min-height:44px;font-size:14px;transition:box-shadow .12s,border-color .12s}.form-field textarea{min-height:104px;resize:vertical;line-height:1.5}.form-field input:focus,.form-field textarea:focus,.form-field select:focus,.filter-input:focus{border-color:#518ac2;box-shadow:0 0 0 3px rgba(56,126,201,.1)}.form-field input::placeholder,.form-field textarea::placeholder{color:#96a5b5}.form-field input[readonly]{background:#f5f8fb;color:#64748b}.hint{font-size:12px;color:#748599}.required{color:#b35c5c}.info{display:flex;align-items:flex-start;gap:10px;border-radius:13px;padding:12px 13px;background:#edf5ff;color:#315d87;font-size:12px;line-height:1.45;margin-bottom:20px}.checkbox-row{display:flex;align-items:flex-start;gap:11px;font-size:12px;color:#5d6d80;line-height:1.5}.checkbox-row input{width:18px;height:18px;accent-color:var(--blue);flex-shrink:0;margin-top:2px}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:30px;padding:7px 12px;background:var(--sky);color:#2d6297;font-size:11px;font-weight:700;max-width:100%}.pill-green{background:var(--green-bg);color:var(--green)}.pill-amber{background:var(--gold-bg);color:var(--gold)}.pill-red{background:var(--red-bg);color:var(--red)}.pill-gray{background:#eef1f5;color:#5d6976}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}.section-content{line-height:1.65;color:#4a5d72}.section-content a{font-weight:650}.content-text{margin:0 0 15px}
.client-filter{display:flex;align-items:center;gap:10px;margin:16px 0}.client-filter .filter-input{flex:1}.client-filter select{height:44px;border:1px solid #cedce9;border-radius:12px;padding:8px 10px;max-width:215px;color:var(--text);background:white}.client-list{display:flex;flex-direction:column;gap:11px}.client-card{border:1px solid var(--stroke);background:white;border-radius:16px;padding:17px 19px;box-shadow:var(--shadow-sm)}.client-card:hover{border-color:#ccdae9}.client-card-main{display:flex;align-items:start;justify-content:space-between;gap:12px}.client-card strong{font-size:15px;line-height:1.3}.client-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 15px;color:var(--muted);font-size:12px;margin:11px 0 8px}.client-meta span{display:inline-flex;gap:5px;align-items:center}.client-notes{margin-top:12px;padding:10px 12px;border-radius:11px;background:#f5f8fc;color:#526479;font-size:12px;line-height:1.5;word-break:break-word}.client-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.status-pending{font-size:11px;color:#925514;background:#fff4df;padding:5px 8px;border-radius:20px;display:inline-flex;align-items:center;gap:4px}.empty{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:var(--muted);border:1px dashed #bfd1e2;border-radius:16px;background:#fbfdff;padding:20px}.empty h3{margin:0;color:var(--navy)}.empty p{margin:0;max-width:380px;font-size:12px}.list-row{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--stroke);border-radius:15px;background:#fff}.list-row p{margin:0;color:var(--muted);font-size:12px}.material-icon{width:44px;height:44px;background:#ecf3fc;display:grid;place-items:center;border-radius:12px;color:#316399}.list-row+.list-row{margin-top:10px}
.referral-card{border-radius:17px;border:1px solid var(--stroke);padding:17px;background:white;box-shadow:var(--shadow-sm)}.referral-card .ref-title{display:flex;align-items:center;gap:9px;margin-bottom:10px}.referral-thumb{width:60px;height:52px;object-fit:cover;border-radius:10px;background:#e8f1f9}.ref-url{font-size:12px;padding:12px;border-radius:10px;color:#3a5f86;background:#f5f9fd;overflow-wrap:anywhere;margin:12px 0}.resource-list{display:grid;gap:12px}.resource-card{padding:19px;border:1px solid var(--stroke);border-radius:17px;background:#fff;box-shadow:var(--shadow-sm)}.resource-card .resource-head{display:flex;gap:12px;align-items:flex-start}.resource-card h3{margin:0 0 4px}.resource-card p{font-size:12px;color:var(--muted)}.resource-card .btnrow{margin-top:16px}.profile-hero{display:flex;align-items:center;gap:16px}.profile-avatar{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;color:#fff;background:linear-gradient(130deg,#376fa8,#132d50);font-weight:750;font-size:19px}.contact-line{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--stroke)}.contact-line:last-of-type{border-bottom:none}.contact-line .icon{color:var(--blue)}
.bottomnav{position:fixed;bottom:0;left:0;right:0;z-index:25;min-height:74px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);box-shadow:0 -8px 28px rgba(17,48,80,.075);border-top:1px solid #dde6ee;padding:7px max(12px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom))}.bottomnav-inner{max-width:790px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:auto;gap:4px}.bottomnav button{border:0;display:flex;gap:3px;align-items:center;justify-content:center;flex-direction:column;background:transparent;color:#8190a2;padding:6px 4px;border-radius:12px;font-size:10px;font-weight:650;min-height:50px}.bottomnav button.active{background:#eaf2fc;color:#194977}.bottomnav button:hover{color:#164978}
.admin-tabs{display:flex;gap:8px;overflow:auto;margin:9px 0 22px;padding-bottom:3px}.admin-tabs button{white-space:nowrap;flex:0 0 auto;border-radius:11px;border:1px solid #d9e3ed;background:white;color:#4f657f;min-height:38px;padding:9px 13px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:7px}.admin-tabs button.selected{background:#1a3d66;color:#fff;border-color:#1a3d66}.admin-table{width:100%;border-collapse:collapse;font-size:12px}.admin-table th{text-align:left;color:#8391a4;font-size:11px;font-weight:730;padding:11px 10px;border-bottom:1px solid var(--stroke)}.admin-table td{padding:13px 10px;border-bottom:1px solid var(--stroke);vertical-align:top}.admin-table tr:last-child td{border-bottom:0}.admin-table .btn{white-space:nowrap}.table-wrap{overflow:auto}.admin-list{display:flex;flex-direction:column;gap:9px}.admin-row{border:1px solid var(--stroke);background:white;border-radius:14px;padding:13px 15px;display:flex;align-items:center;gap:12px}.admin-row:hover{border-color:#bfd2e6}.admin-row .title{font-size:13px;font-weight:750;margin-bottom:3px}.admin-row .desc{font-size:11px;color:var(--muted);line-height:1.5}.admin-row .btnrow{margin-left:auto}.admin-editor{background:#fff;border:1px solid var(--stroke);border-radius:21px;padding:23px;box-shadow:var(--shadow)}.builder-field{padding:13px;border:1px dashed #cbd9e6;border-radius:13px;margin:11px 0;background:#fafdff}.field-builder-line{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(130px,1.2fr) 95px 28px;gap:7px;margin-bottom:7px}.field-builder-line input,.field-builder-line select{width:100%;min-width:0;height:37px;border:1px solid #d5e0eb;border-radius:8px;padding:7px;background:white}.content-builder{display:grid;grid-template-columns:120px 1fr 30px;gap:8px;margin-bottom:8px}.content-builder input,.content-builder select{width:100%;min-width:0;border:1px solid #d5e0eb;border-radius:8px;padding:8px}.event-row{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--stroke)}.event-row:last-child{border:none}.event-dot{height:9px;width:9px;flex-shrink:0;border-radius:50%;background:#6ca4de;margin-top:5px}.event-row p{font-size:12px;color:var(--muted);margin:0}.manager-box{background:#f7fafe;border:1px solid #e1eaf4;border-radius:14px;padding:14px;margin:13px 0}
.overlay{position:fixed;inset:0;background:rgba(12,24,42,.62);display:flex;align-items:center;justify-content:center;z-index:100;padding:22px}.modal{background:#fff;border-radius:22px;max-width:560px;width:100%;max-height:min(91vh,850px);overflow-y:auto;box-shadow:0 23px 80px rgba(0,0,0,.25)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 12px;position:sticky;top:0;background:white;z-index:2;border-bottom:1px solid #eef1f5}.modal-head h2{font-size:19px;margin:0}.modal-body{padding:20px 22px 24px}.modal-close{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;border:0;background:#eef3f8;color:#43617e}.history-row{border-left:2px solid #a9c8e8;padding:0 0 14px 14px;margin-left:4px;font-size:12px}.history-row:last-child{padding-bottom:0}.toast{position:fixed;bottom:100px;right:20px;max-width:370px;z-index:200;box-shadow:0 14px 35px rgba(4,30,59,.2);padding:14px 17px;border-radius:13px;background:#143b61;color:#fff;font-size:13px;line-height:1.5}.toast.bad{background:#9c3447}.splash{display:flex;min-height:100vh;flex-direction:column;justify-content:center;align-items:center;color:var(--muted)}.splash img{width:145px;border-radius:15px;box-shadow:var(--shadow)}.splash p{margin-top:24px}.login{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 205px)}.login-card{width:min(100%,510px);padding:32px}.login-logo{display:block;width:109px;margin:0 0 18px;border-radius:12px}.auth-banner{border:1px solid #d6e5f4;background:#f0f6fe;padding:18px;border-radius:13px;line-height:1.6}.demo-banner{padding:9px 18px;background:#e3f0fd;color:#27567f;text-align:center;font-size:12px}.demo-banner a{font-weight:800;text-decoration:underline}.privacy-panel{max-width:690px;margin:30px auto}
@media(max-width:750px){.topbar{height:63px}.brand img{width:48px;height:43px}.brand-word strong{font-size:12px}.brand-word span{font-size:8px;letter-spacing:1.5px}.brand-role{font-size:10px}.topbar-inner{padding:0 14px}.page-shell{padding:0 12px 100px}.content{padding-top:17px}.dashboard-grid{grid-template-columns:1fr 1fr;gap:9px}.dashboard-item{padding:12px;gap:9px}.dashboard-item h3{font-size:13px}.dashboard-item p{font-size:10px}.glyph{width:35px;height:35px}.hero{min-height:217px;border-radius:20px}.hero-body{padding:24px 22px}.hero h1{font-size:25px}.hero p{font-size:12px}.section-list{grid-template-columns:1fr;gap:8px}.section-link{min-height:63px;padding:10px 13px}.section-intro{align-items:flex-start}.section-intro h1{font-size:24px}.stats-grid{gap:7px}.stat{padding:12px;border-radius:13px}.stat .count{font-size:24px}.stat .title{font-size:10px}.split,.two-cols,.admin-sections-layout{grid-template-columns:1fr}.panel,.form-section{padding:20px 17px}.card{padding:16px}.client-filter{flex-wrap:wrap}.client-filter select{max-width:none;flex:1;min-width:125px}.client-filter .filter-input{min-width:100%}.page-title{font-size:24px}.referral-card{padding:15px}.form-footer{flex-direction:column-reverse}.form-footer .btn{width:100%}.login-card{padding:22px}}
@media(max-width:390px){.brand-role{display:none}.hero h1{font-size:23px}.dashboard-grid{grid-template-columns:1fr 1fr}.dashboard-item{flex-wrap:wrap}.stats-grid{grid-template-columns:repeat(2,1fr)}.bottomnav button{font-size:9px}.field-builder-line{grid-template-columns:1fr 1fr}.field-builder-line>*:nth-child(3){grid-column:span 1}.content-builder{grid-template-columns:1fr 1fr 30px}.client-card-main{flex-wrap:wrap}}

/* v1.3: link editor first on narrow displays so admins need not scroll past a long catalog. */
@media(max-width:750px){.ref-admin-layout .ref-admin-editor-col{order:-1}.ref-admin-layout .ref-admin-list{order:1}.ref-admin-layout{gap:14px}}

/* v1.4: broker workspace and admin assignment UI */
.bottomnav-inner.broker-nav{grid-template-columns:repeat(3,minmax(0,1fr));max-width:540px}
.broker-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.broker-ticket{border-left:4px solid #265d94;padding-left:15px}
.broker-ticket:hover{border-color:#94b5d7;border-left-color:#265d94}
.ticket-number{font-size:10px;letter-spacing:.6px;text-transform:uppercase;font-weight:780;color:var(--blue);margin-bottom:7px}
.ticket-request{padding:12px 14px;border-radius:11px;background:#f4f7fc;color:#34475e;font-size:13px;line-height:1.5;margin:13px 0 0}
.private-note{display:flex;align-items:flex-start;gap:7px;margin-top:10px;padding:10px 12px;border:1px solid #e4dfe9;background:#f7f4fb;color:#63546e;border-radius:11px;font-size:12px;line-height:1.5}
.broker-info{margin:8px 0 14px}
.unassigned-alert{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #e9cfab;background:#fff7e8;color:#80591f;padding:13px 16px;border-radius:13px;font-size:13px;font-weight:700;margin-bottom:17px;box-shadow:var(--shadow-sm);text-align:left}
.unassigned-alert .icon:last-child{margin-left:auto}
@media(max-width:750px){
  .broker-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-row .btn{flex-shrink:0}
  .admin-list .admin-row{gap:9px}
  .broker-ticket{padding:14px}
}
@media(max-width:390px){.broker-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.broker-stats .stat{padding:10px 8px}.broker-stats .stat .count{font-size:23px}}

/* v1.5: combined staff directory and full administrative partner-request register */
.staff-requests-section{margin-top:28px;scroll-margin-top:95px}
.staff-section-title{margin-bottom:14px}
.staff-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.staff-metric{background:#fff;border:1px solid var(--stroke);border-radius:16px;padding:15px 17px;display:flex;flex-direction:column;gap:6px;box-shadow:var(--shadow-sm)}
.staff-metric span{color:var(--muted);font-size:12px;line-height:1.4}
.staff-metric strong{font-size:26px;font-weight:800;color:var(--navy);line-height:1}
.staff-metric-attention{background:#fff9ed;border-color:#efd9b5}
.staff-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(155px,1fr) minmax(150px,1fr);gap:12px;margin:16px 0}
.staff-filters label{display:flex;flex-direction:column;gap:7px;color:#445974;font-weight:700;font-size:12px;min-width:0}
.staff-filters input,.staff-filters select{width:100%;max-width:none;height:44px;background:#fff;border:1px solid #cedce9;border-radius:12px;padding:10px 11px;color:var(--text);font:inherit;font-size:13px}
.staff-filters input:focus,.staff-filters select:focus{outline:2px solid #9fc3ea;outline-offset:1px}
.staff-results-head{padding:4px 0 11px;gap:12px;flex-wrap:wrap}
.staff-results-head strong{font-size:12px;color:#576e8b}
.staff-table-wrap{border:1px solid var(--stroke);border-radius:16px;overflow-x:auto;box-shadow:var(--shadow-sm);background:#fff}
.staff-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:820px}
.staff-table th{background:#eef3f9;color:#506580;text-transform:uppercase;letter-spacing:.45px;font-size:10px;padding:14px 13px;white-space:nowrap}
.staff-table td{padding:14px 13px;border-top:1px solid #e9eef4;vertical-align:middle}
.staff-table tbody tr:hover{background:#f9fbfe}
.staff-ticket-id{font-size:11px;color:#6381a5;font-weight:650}
.staff-client{display:flex;flex-direction:column;gap:4px;min-width:134px}
.staff-owner{display:inline-flex;align-items:center;gap:5px;font-weight:750;font-size:12px;line-height:1.4}
.staff-owner.is-assigned{color:#205080}.staff-owner.is-unassigned{color:#9c6524}
.staff-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:130px}
.staff-actions .btn{white-space:nowrap;justify-content:center}
.staff-no-results{background:#fff;border:1px solid var(--stroke);border-radius:16px}
@media(max-width:750px){
  .staff-metrics{gap:8px}.staff-metric{padding:11px 10px}.staff-metric strong{font-size:23px}.staff-metric span{font-size:10px}
  .staff-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .staff-search-label{grid-column:1/-1}
  .staff-table-wrap{background:transparent;border:0;box-shadow:none;overflow:visible}
  .staff-table{min-width:0;display:block}.staff-table thead{display:none}.staff-table tbody{display:grid;gap:11px}
  .staff-table tr{display:grid;background:#fff;border:1px solid var(--stroke);border-radius:15px;padding:11px 13px;box-shadow:var(--shadow-sm);gap:8px}
  .staff-table td{display:flex;gap:7px;align-items:flex-start;justify-content:space-between;border:0;padding:0;min-width:0;overflow-wrap:anywhere;text-align:right}
  .staff-table td:before{content:attr(data-label);flex:0 0 103px;text-align:left;font-size:11px;color:var(--muted)}
  .staff-table td:first-child:before{display:none}.staff-table td:first-child{text-align:left;padding-bottom:10px;border-bottom:1px solid var(--stroke)}
  .staff-table td:nth-child(5){align-items:flex-start}
  .staff-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;min-width:0}
  .staff-actions .btn{padding:9px 11px;font-size:11px}
}
@media(max-width:390px){.staff-table td:before{flex-basis:90px}.staff-actions{gap:5px}}

/* v1.6: shared employee workspace and clear responsible-broker labels */
.employee-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.employee-list-controls{margin:17px 0 8px}
.employee-list-controls .client-filter{display:flex;align-items:center;gap:11px}
.employee-list-controls .filter-input{flex:1;min-width:220px}
.employee-list-controls select{width:245px;max-width:100%;height:46px;border:1px solid #ccdaea;border-radius:12px;background:#fff;padding:0 13px;color:#173353;font:inherit;font-weight:600;font-size:13px}
.employee-list-controls select:focus{outline:2px solid #94bae4;outline-offset:1px}
.employee-result-count{margin:5px 0 12px}
.employee-assignee{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin-top:12px;padding:8px 12px;border-radius:11px;background:#eef4fd;color:#214774;border:1px solid #d7e6f5;font-weight:750;font-size:12px;line-height:1.35}
.employee-unassigned{color:#805520;background:#fff7e9;border-color:#e8d6ba}
@media(max-width:750px){
  .employee-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .employee-list-controls .client-filter{flex-direction:column;align-items:stretch}
  .employee-list-controls .filter-input{min-width:0;width:100%}
  .employee-list-controls select{width:100%}
}

/* v1.9: partner onboarding / SMS verification */
.registration-login{padding:18px 0;align-items:flex-start;min-height:calc(100vh - 180px)}
.registration-card{width:min(100%,520px);padding:31px;box-shadow:0 15px 48px rgba(15,39,70,.09)}
.registration-card .auth-banner{display:flex;align-items:flex-start;gap:12px;line-height:1.6;margin:18px 0 6px}
.registration-card .demo-otp{display:block;color:#17476f;background:#e6f3ff;border-color:#a7cdef}
.registration-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:18px 0 22px}
.registration-steps span{border-radius:9px;background:#edf1f7;color:#71839c;text-align:center;padding:9px 5px;font-size:11px;font-weight:700}
.registration-steps .active{background:#d9e9fa;color:#174d83}
.registration-card input[name="code"]{text-align:center;font-size:25px;font-weight:750;letter-spacing:9px;height:58px;max-width:100%;font-variant-numeric:tabular-nums}
@media(max-width:600px){.registration-login{padding:6px 0}.registration-card{padding:22px 17px}.registration-steps span{font-size:10px}}
