.agent-directory-reference.agent-users-page{display:flex;flex-direction:column;gap:0;height:calc(100dvh - 210px);min-height:540px;background:#fff;border:1px solid #e5eaf3;border-radius:8px;overflow:hidden;color:#52647d}
html.agent-embedded-view .agent-directory-reference.agent-users-page{height:calc(100dvh - 38px);min-height:540px}
.agent-directory-reference button,.agent-directory-reference input,.agent-directory-reference select{font:inherit;font-size:12px}
.agent-directory-reference button{min-height:30px;padding:4px 14px;border:1px solid #dbe2ed;border-radius:3px;background:#fff;color:#506078;box-shadow:none;cursor:pointer}
.agent-directory-reference button:hover:not(:disabled){border-color:#409eff;color:#409eff;background:#f4f9ff}
.agent-directory-reference button:disabled{opacity:.45;cursor:not-allowed}
.agent-directory-reference .directory-primary{background:#409eff;color:white;border-color:#409eff}
.agent-directory-reference .directory-primary:hover:not(:disabled){background:#2789ee;color:white}
.agent-directory-reference .directory-gold{background:#f2a52b;color:white;border-color:#f2a52b}
.agent-directory-filters{display:flex;gap:8px;flex-wrap:wrap;padding:14px 14px 8px;align-items:center}
.agent-directory-filters>input{width:130px!important;min-width:0;flex:0 1 130px}
.agent-directory-reference input:not([type=checkbox]):not([type=radio]),.agent-directory-reference select{min-height:32px!important;padding:5px 10px!important;border:1px solid #d9e1ed;border-radius:4px;color:#52647d;background:white;box-sizing:border-box;max-width:100%}
.agent-directory-reference input::placeholder{color:#9aa8bb}
.agent-directory-filters>select,.agent-directory-filters>.suite-select{width:120px;min-width:120px}
.agent-directory-dates{display:flex;align-items:center;gap:8px;min-width:300px;flex:1}
.agent-directory-search-actions{display:flex;gap:8px;flex:none}
.agent-directory-dates>input,.agent-directory-dates>.suite-date-control{flex:1;min-width:0}
.agent-directory-tools{padding:0 14px 10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}
.agent-directory-tools strong{color:#ed9d24;font-size:16px}
.agent-directory-tools .directory-refresh{margin-left:auto}
.agent-directory-reference>.membership-order-message{padding:0 14px;margin:0;color:#db5a5a;font-size:12px}
.agent-directory-reference>.membership-order-message:empty{display:none}
.agent-directory-scroll{overflow:auto;flex:1;min-height:0}
.agent-directory-table{border-collapse:collapse;width:100%;min-width:1800px;table-layout:fixed;font-size:13px}
.agent-directory-table th,.agent-directory-table td{padding:14px 10px;text-align:center;border:0;border-bottom:1px solid #e7edf6;line-height:1.6;font-weight:400}
.agent-directory-table th{height:54px;background:#f5f7fa;color:#8795a6;font-weight:600;position:sticky;top:0;z-index:1}
.agent-directory-table td{height:64px;background:white;overflow-wrap:anywhere}
.agent-directory-table tr:hover td{background:#f8fbff}
.agent-directory-table th:first-child{width:34px}
.agent-directory-table th:nth-child(6),.agent-directory-table th:nth-child(12),.agent-directory-table th:nth-child(13){width:164px}
.agent-directory-table th:nth-child(14){width:160px}
.agent-directory-table th:last-child{width:158px;position:sticky;right:0;z-index:3}
.agent-directory-table td:last-child{position:sticky;right:0;box-shadow:-5px 0 10px rgba(37,65,102,.035)}
.agent-directory-table td.directory-actions:has(details[open]){z-index:4}
.agent-directory-table .directory-note{font-size:12px}
.agent-directory-reference .directory-switch{position:relative;display:inline-block;width:40px;height:21px;min-height:21px;padding:0;border:0;border-radius:20px;background:#dcdfe6;vertical-align:middle}
.agent-directory-reference .directory-switch::after{content:"";position:absolute;top:3px;left:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0001;transition:transform .15s}
.agent-directory-reference .directory-switch[aria-checked=true]{background:#409eff}
.agent-directory-reference .directory-switch[aria-checked=true]::after{transform:translateX(19px)}
.agent-directory-reference .directory-switch:hover:not(:disabled){background:#a5aebd}
.agent-directory-reference .directory-switch[aria-checked=true]:hover:not(:disabled){background:#268bea}
.agent-directory-table .directory-token{color:#8b6b19;font-variant-numeric:tabular-nums}
.directory-actions>button,.directory-actions details button{border:0!important;background:transparent!important;padding:3px 5px!important;color:#409eff!important;font-size:12px}
.directory-actions>button:disabled{color:#f56c6c!important}
.directory-actions details{display:inline-block;position:relative;font-size:12px}
.directory-actions summary{cursor:pointer;list-style:none;padding:3px}
.directory-actions details>div{position:absolute;right:0;top:100%;z-index:5;min-width:120px;background:white;border:1px solid #e1e7f0;border-radius:4px;box-shadow:0 5px 20px #25355b20;padding:5px}
.directory-actions details.open-up>div{top:auto;bottom:100%}
.directory-actions details button{display:block;width:100%;text-align:left}
.agent-directory-pagination{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:12px 16px;border-top:1px solid #e5eaf3;font-size:12px}
.agent-directory-pagination select{width:110px}
.agent-directory-pagination>.suite-select{width:110px;min-width:110px;flex:0 0 110px}
.agent-directory-pagination>span{white-space:nowrap}
.agent-directory-pagination button{min-width:30px;padding:4px 9px}
#agentDirectoryPages{display:flex;gap:5px}
.agent-directory-pagination button[aria-current=page]{background:#409eff;color:white;border-color:#409eff}
.agent-directory-policy{font-size:11px;color:#95a1b3;padding:0 16px 10px;margin:0}
.agent-directory-reference .agent-directory-dialog{width:600px;max-width:calc(100vw - 32px);max-height:calc(100vh - 36px);padding:20px 24px 16px;border:0;border-radius:5px;background:white;color:#606266;box-shadow:0 15px 60px #0003;overflow:auto}
.agent-directory-dialog::backdrop{background:rgba(0,0,0,.48)}
.agent-directory-dialog header{display:flex;justify-content:center;align-items:center;position:relative;margin-bottom:22px}
.agent-directory-dialog header h2{font-size:18px;font-weight:500;margin:0;color:#303133}
.agent-directory-dialog header button{position:absolute;right:-10px;top:-10px;border:0;background:transparent;font-size:22px;color:#909399;padding:0 8px}
.agent-directory-dialog form>label{display:grid;grid-template-columns:86px minmax(0,1fr);gap:12px;align-items:center;margin:0 0 17px;font-size:13px;font-weight:400}
.agent-directory-dialog form>label>span{text-align:right;color:#606266}
.agent-directory-dialog form>label b{color:#f56c6c;font-weight:400}
.agent-directory-dialog input,.agent-directory-dialog select{width:100%}
.agent-directory-dialog form>fieldset{border:0;display:flex;align-items:center;gap:22px;margin:0 0 17px;padding:0 0 0 98px;position:relative;font-size:13px}
.agent-directory-dialog legend{position:absolute;left:0;width:86px;text-align:right;top:4px}
.agent-directory-dialog fieldset label{display:flex;align-items:center;gap:6px}
.agent-directory-dialog input[type=radio]{width:14px;accent-color:#409eff}
.agent-directory-dialog footer{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}
.agent-directory-dialog footer button{min-height:32px}
.directory-dialog-hint{margin:0 0 0 98px;font-size:11px;color:#9aa4b2}
#agentDirectoryError{font-size:12px;color:#f56c6c;min-height:18px;margin:8px 0 0 98px}
.agent-directory-reference [hidden]{display:none!important}
@media(max-width:1000px){.agent-directory-reference.agent-users-page{min-height:calc(100vh - 90px)}.agent-directory-filters{gap:6px}.agent-directory-dates{flex-basis:100%}.agent-directory-table{font-size:12px}.agent-directory-tools{gap:6px}}
@media(max-width:620px){.agent-directory-dialog form>label{grid-template-columns:70px minmax(0,1fr)}.agent-directory-dialog form>fieldset{padding-left:82px}.agent-directory-dialog legend{width:70px}.directory-dialog-hint,#agentDirectoryError{margin-left:82px}.agent-directory-filters>input{width:calc(50% - 4px)}.agent-directory-pagination{flex-wrap:wrap}.agent-directory-reference .agent-directory-dialog{padding:18px 12px}.agent-directory-table th:last-child,.agent-directory-table td:last-child{position:static}}
@media(max-width:620px){.agent-directory-table td.directory-actions:has(details[open]){position:relative}}

/* Readable, scoped agent-directory controls; other workspaces keep their density. */
body .agent-directory-reference{font:14px/1.6 "Microsoft YaHei",system-ui,sans-serif;color:#43516b;border-radius:14px;box-shadow:0 4px 24px #25365d05}
body .agent-directory-reference :is(input,select,button,summary){font-size:14px!important;font-family:inherit}
body .agent-directory-reference button{min-height:38px;border-radius:8px;padding:7px 15px;transition:background .15s,border-color .15s,box-shadow .15s}
body .agent-directory-reference .directory-primary{background:linear-gradient(135deg,#7968ef,#6250d8);border-color:#6f5de2;box-shadow:0 3px 8px #6b58df20}
body .agent-directory-reference .directory-primary:hover:not(:disabled){background:#6150d3;color:#fff;border-color:#6150d3}
body .agent-directory-reference .directory-gold{background:#fff5df;color:#a46c12;border-color:#f0d69e}
body .agent-directory-reference input:not([type=checkbox]):not([type=radio]):not(.suite-date-native),body .agent-directory-reference .suite-select-trigger,body .agent-directory-reference .suite-date-trigger{min-height:40px!important;border:1px solid #dce1ed;border-radius:8px!important;background:#fff;padding:8px 12px!important;color:#43516b}
body .agent-directory-reference input:focus-visible{outline:0;border-color:#8a78ee;box-shadow:0 0 0 3px #7867ec15}
body .agent-directory-reference .suite-date-native{min-height:0!important;height:1px!important;padding:0!important}
body .agent-directory-reference .agent-directory-filters{padding:18px 18px 12px;gap:10px;background:linear-gradient(180deg,#fcfcff,#fff)}
body .agent-directory-reference .agent-directory-filters>input{width:148px!important;flex-basis:148px}
body .agent-directory-reference .agent-directory-filters>.suite-select{width:138px;min-width:138px}
body .agent-directory-reference .agent-directory-tools{padding:0 18px 16px;gap:10px;font-size:14px}
body .agent-directory-reference .agent-directory-tools strong{font-size:18px}
body .agent-directory-reference .agent-directory-table{min-width:1920px}
body .agent-directory-reference .agent-directory-table :is(td,th){font-size:14px!important;line-height:1.65;padding:16px 12px}
body .agent-directory-reference .agent-directory-table th{font-weight:600;color:#69768e;background:#f6f7fc;height:58px}
body .agent-directory-reference .agent-directory-table td{height:76px;color:#34445f}
body .agent-directory-reference .agent-directory-table .directory-note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .agent-directory-reference .agent-directory-table th:first-child{width:52px}
body .agent-directory-reference .agent-directory-table th:nth-child(6){width:180px}
body .agent-directory-reference .agent-directory-table tbody tr.is-selected td{background:#f2efff;border-bottom-color:#e6dffd}
body .agent-directory-reference .agent-directory-table tbody tr.is-selected td:first-child{box-shadow:inset 3px 0 #7968e9}
body .agent-directory-reference input[type=checkbox]{appearance:none;display:inline-grid;place-content:center;position:relative;width:20px;height:20px;min-width:20px;margin:0;border:1.5px solid #cbd3e2;border-radius:6px;background:#fff;vertical-align:middle;cursor:pointer;box-shadow:0 1px 3px #2636600a;transition:background .15s,border-color .15s}
body .agent-directory-reference input[type=checkbox]:checked,body .agent-directory-reference input[type=checkbox]:indeterminate{background:#7462e5;border-color:#7462e5;box-shadow:0 2px 5px #7462e52b}
body .agent-directory-reference input[type=checkbox]:checked::after{content:"";width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg)}
body .agent-directory-reference input[type=checkbox]:indeterminate::after{content:"";width:9px;height:2px;background:#fff;border-radius:1px}
body .agent-directory-reference input[type=checkbox]:focus-visible{outline:3px solid #cfc7fc;outline-offset:3px}
body .agent-directory-reference .directory-switch{width:42px;height:24px;min-height:24px;padding:0;border-radius:20px}
body .agent-directory-reference .directory-switch::after{width:18px;height:18px}
body .agent-directory-reference .directory-switch[aria-checked=true]{background:#7462e5}
body .agent-directory-reference .directory-switch[aria-checked=true]::after{transform:translateX(18px)}
body .agent-directory-reference .agent-directory-pagination{font-size:14px;padding:14px 18px;background:#fcfcff}
body .agent-directory-reference .agent-directory-pagination>.suite-select{width:128px;flex-basis:128px}
body .agent-directory-reference .agent-directory-policy{font-size:12px;color:#8190a5;padding:0 18px 12px;background:#fcfcff}
body .agent-directory-reference .agent-directory-dialog{width:680px;border-radius:18px;padding:28px 32px 24px;box-shadow:0 24px 80px #17133438;border:1px solid #ece9f8;background:linear-gradient(180deg,#faf9ff 0,#fff 130px)}
body .agent-directory-dialog::backdrop{background:#20213b66;backdrop-filter:blur(3px)}
body .agent-directory-dialog header{margin-bottom:28px;justify-content:flex-start;padding-bottom:20px;border-bottom:1px solid #eae7f4}
body .agent-directory-dialog header h2{font-size:22px;font-weight:650;color:#302b48}
body .agent-directory-dialog header button{font-size:24px!important;width:34px;height:34px;min-height:34px;right:-8px;top:-6px;padding:0;border-radius:50%;color:#8e94a7}
body .agent-directory-dialog form>label,body .agent-directory-dialog .directory-expiry-row{display:grid;grid-template-columns:108px minmax(0,1fr);gap:14px;align-items:center;margin-bottom:18px;font-size:15px;font-weight:400}
body .agent-directory-dialog form>label>span,body .agent-directory-dialog .directory-expiry-row>span{text-align:right;color:#586078}
body .agent-directory-dialog :is(input,button,select){font-size:15px!important}
body .agent-directory-dialog form>fieldset{padding-left:122px;gap:12px;min-height:44px;margin-bottom:18px;font-size:15px}
body .agent-directory-dialog legend{width:108px;top:11px;color:#586078}
body .agent-directory-dialog fieldset label{padding:9px 18px;min-width:108px;gap:9px;font-size:15px;border:1px solid #dfe3ed;border-radius:10px;background:#fff;cursor:pointer;color:#707a8f;transition:background .15s,border-color .15s}
body .agent-directory-dialog fieldset label:has(input:checked){background:#f1edff;border-color:#a596ee;color:#6451ce;box-shadow:0 2px 5px #7060dd0b}
body .agent-directory-dialog input[type=radio]{appearance:none;width:18px;height:18px;min-width:18px;margin:0;border:1.5px solid #c9cedd;border-radius:50%;background:#fff}
body .agent-directory-dialog input[type=radio]:checked{border:5px solid #7866e6;box-shadow:0 0 0 2px #fff}
body .agent-directory-dialog form>.directory-membership-terms{gap:6px;flex-wrap:wrap;margin-bottom:6px}
body .agent-directory-dialog .directory-membership-terms label{min-width:0;flex:1;padding:9px 7px;gap:5px;justify-content:center;white-space:nowrap}
body .agent-directory-dialog .directory-membership-terms:disabled label{opacity:.55;cursor:not-allowed}
body .agent-directory-dialog .directory-term-hint{margin:0 0 14px 122px;color:#8a829b;font-size:12px;line-height:1.7}
@media(max-width:740px){body .agent-directory-dialog .directory-term-hint{margin-left:110px}}
@media(max-width:500px){body .agent-directory-dialog .directory-term-hint{margin-left:0}body .agent-directory-dialog .directory-membership-terms label{flex:0 0 calc(33.333% - 4px)}}
body .agent-directory-dialog .directory-dialog-hint{font-size:12px;line-height:1.8;margin-left:122px;color:#9399ab}
body .agent-directory-dialog #agentDirectoryError{margin-left:122px;font-size:13px}
body .agent-directory-dialog footer{padding-top:18px;border-top:1px solid #eceef5;margin-top:18px}
body .agent-directory-dialog footer button{min-width:84px;height:40px}
.directory-expiry-controls{display:grid;grid-template-columns:minmax(130px,1fr) 88px 6px 88px;gap:6px;align-items:center;min-width:0}
.directory-time-separator{color:#9a91b5;text-align:center}
body .agent-directory-dialog .suite-date-portal{width:320px;padding:16px;border-radius:14px;border-color:#e4def5;box-shadow:0 14px 45px #3b2c7126;font-size:14px}
body .agent-directory-dialog .suite-date-heading input{min-height:32px!important;width:72px;padding:4px 6px!important;font-size:14px!important}
body .agent-directory-dialog .suite-date-heading input[data-month]{width:50px}
body .agent-directory-dialog .suite-date-heading button{min-height:32px;width:32px;padding:0;font-size:20px!important}
body .agent-directory-dialog .suite-date-grid button{height:36px;min-height:36px;padding:0;border-radius:9px;font-size:14px!important}
body .agent-directory-dialog .suite-date-week span{font-size:13px}
body .agent-directory-dialog .suite-date-footer button{font-size:14px!important}
body .agent-directory-dialog .suite-select-portal{font-size:14px;border-radius:12px;padding:6px}
body .agent-directory-dialog .suite-select-option{min-height:40px;font-size:14px!important}
@media(max-width:740px){body .agent-directory-reference .agent-directory-dialog{padding:22px 18px;width:calc(100vw - 24px)}body .agent-directory-dialog form>label,body .agent-directory-dialog .directory-expiry-row{grid-template-columns:100px minmax(0,1fr);gap:10px}body .agent-directory-dialog form>fieldset{padding-left:110px}body .agent-directory-dialog legend{width:100px}.directory-expiry-controls{grid-template-columns:minmax(0,1fr) 76px 4px 76px;gap:4px}body .agent-directory-dialog .directory-dialog-hint,body .agent-directory-dialog #agentDirectoryError{margin-left:110px}}
@media(max-width:500px){body .agent-directory-dialog form>label,body .agent-directory-dialog .directory-expiry-row{grid-template-columns:1fr;gap:6px}body .agent-directory-dialog form>label>span,body .agent-directory-dialog .directory-expiry-row>span{text-align:left}body .agent-directory-dialog form>fieldset{padding-left:0;padding-top:32px}body .agent-directory-dialog legend{width:auto;top:0}body .agent-directory-dialog .directory-dialog-hint,body .agent-directory-dialog #agentDirectoryError{margin-left:0}}
@media(prefers-reduced-motion:reduce){body .agent-directory-reference :is(button,input,label){transition:none}}
@media(max-height:820px) and (min-width:620px){body .agent-directory-reference .agent-directory-dialog{padding:20px 28px}body .agent-directory-dialog header{margin-bottom:16px;padding-bottom:14px}body .agent-directory-dialog form>label,body .agent-directory-dialog .directory-expiry-row,body .agent-directory-dialog form>fieldset{margin-bottom:12px}body .agent-directory-dialog footer{margin-top:10px;padding-top:12px}body .agent-directory-dialog #agentDirectoryError:empty{min-height:0;margin-top:0}}
