/* Staff workspace: scoped system controls and restrained Apple-inspired surfaces. */
.staff-workspace,.staff-dialog,.staff-panel{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202124;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
.staff-workspace{--staff-blue:#0066cc;--staff-line:#e4e6eb;--staff-muted:#626975;min-height:100dvh;background:#f5f5f7;line-height:1.45}
.staff-workspace *,.staff-dialog *{box-sizing:border-box}
.staff-workspace .panel{background:#fff;border:1px solid var(--staff-line);border-radius:18px;box-shadow:0 2px 8px #172b4d04,0 12px 26px #172b4d03}
.staff-workspace .pad{padding:20px}
.staff-workspace .button,.staff-dialog .button,.staff-panel .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid #d9dce2;border-radius:10px;background:#fff;background-image:none;color:#303640;box-shadow:0 1px 2px #20293805;font:500 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.01em;white-space:normal;text-align:center;cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s}
.staff-workspace .button:hover,.staff-dialog .button:hover,.staff-panel .button:hover{background:#f6f7f9;border-color:#bdc5ce;transform:none}
.staff-workspace .button.primary,.staff-dialog .button.primary,.staff-panel .button.primary{background:#0066cc;border-color:#0066cc;color:#fff;box-shadow:0 2px 4px #0066cc16}
.staff-workspace .button.primary:hover,.staff-dialog .button.primary:hover,.staff-panel .button.primary:hover{background:#0059b3;border-color:#0059b3}
.staff-workspace .button:disabled,.staff-dialog .button:disabled{opacity:.55;cursor:wait}
.staff-workspace button:focus-visible,.staff-dialog button:focus-visible,.staff-workspace a:focus-visible,.staff-dialog a:focus-visible{outline:3px solid #007aff;outline-offset:3px}
.staff-workspace [data-staff-action*="delete"],.staff-dialog [data-staff-action*="delete"],.staff-workspace [data-staff-action="reverse-transaction"]{color:#b4232d}
.staff-icon{display:block;width:17px;height:17px;flex:0 0 auto}
.staff-header{position:relative!important;display:flex;align-items:center;gap:24px;width:100%;min-height:72px;height:auto!important;padding:12px max(28px,calc((100vw - 1392px)/2));border:0;border-bottom:1px solid #e2e4e9;background:#fffffff2;backdrop-filter:blur(16px);z-index:5}
.staff-brand{display:flex;align-items:center;gap:10px;flex:0 0 auto;color:#202124;font-size:15px;font-weight:700;letter-spacing:.055em;text-decoration:none}
.staff-brand-mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid #d8e7f9;border-radius:10px;background:#edf5ff;color:#0066cc;font-size:22px;font-weight:600;letter-spacing:-.04em}
.staff-actor{display:grid;gap:1px;min-width:0;margin-right:auto;padding-left:22px;border-left:1px solid #e0e3e8}
.staff-actor strong{font-size:13px;font-weight:600;color:#242830}
.staff-actor>span{font-size:12px;color:#626975;overflow-wrap:anywhere}
.staff-language{display:flex;align-items:center;gap:2px;padding:3px;border:1px solid #e2e4e8;border-radius:10px;background:#f3f4f6}
.staff-header>.staff-language{display:flex;gap:2px;margin:0;flex:0 0 auto}
.staff-language button{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;padding:7px 9px;border:1px solid transparent;border-radius:7px;background:transparent;color:#5f6774;font:600 12px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.staff-language button[aria-pressed=true]{background:#fff;color:#0066cc;border-color:#dde1e7;box-shadow:0 1px 3px #2029380a}
.staff-header>.button{flex:0 0 auto;min-height:40px;background:transparent;border-color:#dde1e7;font-size:13px}
.staff-main{max-width:1448px;margin:0 auto;padding:28px}
.staff-workspace .staff-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px}
.staff-page-head h1{margin:0;color:#202124;font-size:29px;font-weight:670;line-height:1.2;letter-spacing:-.045em}
.staff-page-head p{margin:6px 0 0;color:#626975;font-size:14px;line-height:1.5}
.staff-page-head>.button-row{display:flex;gap:8px;margin:0;flex:0 0 auto}
.staff-workspace .staff-navigation{display:inline-flex;align-items:stretch;gap:3px;width:auto;max-width:100%;padding:4px;margin:0 0 18px;border:1px solid #e0e3e8;border-radius:12px;background:#e9ebef;overflow:auto}
.staff-navigation button{min-height:40px;padding:9px 18px;border:1px solid transparent;border-radius:8px;background:transparent;color:#606874;font:500 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap;cursor:pointer}
.staff-navigation button[aria-current=page]{background:#fff;border-color:#dce0e7;color:#202124;box-shadow:0 1px 4px #182c4a0a}
.staff-workspace .staff-pending-notice,.staff-dialog .staff-pending-notice{display:flex;align-items:center;gap:11px;margin:0 0 18px;padding:12px 15px;border:1px solid #dbe7f7;border-radius:12px;background:#f0f6fe;color:#466380;box-shadow:none}
.staff-pending-notice>.staff-icon{width:20px;height:20px;color:#0066cc}
.staff-pending-notice>div{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;min-width:0}
.staff-pending-notice strong{font-size:13px;font-weight:600;color:#245780}
.staff-pending-notice span{font-size:13px;line-height:1.4}
.staff-customer-grid{display:grid;grid-template-columns:280px minmax(0,1fr);align-items:start;gap:20px}
.staff-directory{position:sticky;top:20px;min-width:0}
.staff-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.staff-directory-heading h2{margin:0;font-size:16px;font-weight:650;letter-spacing:-.02em}
.staff-count{display:grid;place-items:center;min-width:25px;min-height:25px;padding:2px 7px;border-radius:7px;background:#f0f1f4;color:#5f6774;font-size:12px;font-weight:600}
.staff-directory .field{margin:0 0 10px}
.staff-directory .field label{display:block;margin-bottom:6px;font-size:12px;font-weight:500;color:#626975}
.staff-directory input[type=search]{width:100%;height:40px;padding:9px 12px;border:1px solid #dfe2e7;border-radius:9px;background:#f7f8fa;color:#202124;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.staff-selection-hint{margin:0 0 15px;color:#626975;font-size:12px;line-height:1.45}
#staff-customer-list{max-height:calc(100dvh - 300px);min-height:0;overflow:auto;scrollbar-gutter:stable}
.staff-customer-choice{display:block;width:100%;margin:0 0 8px;padding:12px;border:1px solid #e7e9ee;border-radius:12px;background:#fff;color:#202124;text-align:left;cursor:pointer;transition:border-color .15s,background-color .15s}
.staff-customer-choice:last-child{margin-bottom:0}
.staff-customer-choice:hover{background:#f7f9fc;border-color:#cdd9e8}
.staff-customer-choice.selected{background:#eef5ff;border-color:#accbf1;box-shadow:inset 3px 0 #0066cc}
.staff-customer-choice[aria-busy=true]{opacity:.7}
.staff-customer-row{display:flex;align-items:center;gap:10px;min-width:0}
.staff-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border:1px solid #e0e6ef;border-radius:50%;background:#edf0f5;color:#4c5d75;font:600 12px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-transform:uppercase}
.selected .staff-avatar{border-color:#c9def8;background:#dcecff;color:#0066cc}
.staff-customer-row-text{display:grid;gap:3px;min-width:0;flex:1}
.staff-customer-row-text strong{font-size:14px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.staff-customer-login{color:#657080;font:400 12px/1.3 ui-monospace,"SFMono-Regular",Consolas,monospace;overflow-wrap:anywhere}
.staff-customer-row>.staff-icon{width:12px;height:12px;color:#7b8795}
.staff-customer-row-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-top:10px}
.staff-status{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 7px;border-radius:6px;background:#f0f2f5;color:#566171;font-size:11px;font-weight:600;line-height:1.4}
.staff-status::before{content:"";width:5px;height:5px;flex:0 0 auto;border-radius:50%;background:currentColor}
.staff-status-active{background:#edf8f0;color:#276c43}
.staff-status-pending{background:#fff4df;color:#855b15}
.staff-status-suspended{background:#fff0f0;color:#ab3036}
.staff-customer-balance{color:#3d4855;font-size:12px;font-weight:500}
.staff-customer-open{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:9px;padding-top:8px;border-top:1px solid #e1e7ef;color:#0066cc;font-size:12px;font-weight:500}
.staff-customer-detail{min-width:0;padding:0;overflow:hidden}
.staff-record-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 22px 12px}
.staff-customer-identity{display:flex;align-items:center;gap:13px;min-width:0}
.staff-customer-identity>div{min-width:0}
.staff-avatar-large{width:47px;height:47px;font-size:17px;border-radius:14px;background:#eef3fa}
.staff-record-eyebrow{margin-bottom:4px;color:#687282;font-size:11px;font-weight:600;letter-spacing:.025em}
.staff-record-header h2{margin:0 0 7px;font-size:22px;font-weight:650;line-height:1.25;letter-spacing:-.035em;overflow-wrap:anywhere}
.staff-record-meta{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;color:#626975;font-size:12px}
.staff-record-meta strong{margin-left:4px;font-weight:500;color:#354356}
.staff-record-toolbar{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.staff-record-toolbar .button{font-size:13px}
.staff-record-toolbar [data-staff-action=edit-profile]{color:#0066cc;background:#f3f7fd;border-color:#d4e3f7}
.staff-record-secondary{display:flex;flex-wrap:wrap;gap:15px;padding:0 22px 14px;color:#727b88;font-size:11px}
.staff-workspace .staff-record-tabs{display:flex;flex-wrap:nowrap;gap:0;width:100%;margin:0;padding:0 12px;border:0;border-top:1px solid #eceef2;border-bottom:1px solid #e5e8ee;border-radius:0;background:#fff;overflow-x:auto;white-space:nowrap}
.staff-record-tabs>button{position:relative;flex:0 0 auto;min-height:45px;padding:12px 12px;border:0;background:transparent;color:#626975;font:500 13px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.staff-record-tabs>button[aria-current=page]{color:#0066cc}
.staff-record-tabs>button[aria-current=page]::after{position:absolute;right:12px;bottom:0;left:12px;height:2px;border-radius:3px;background:#0066cc;content:""}
.staff-record-content{min-width:0;padding:22px}
.staff-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.staff-section-head h2,.staff-section-head h3{margin:0;letter-spacing:-.02em}
.staff-section-head h2{font-size:20px;font-weight:650}
.staff-section-head h3{font-size:16px;font-weight:600}
.staff-section-head p{margin:6px 0 0;color:#626975;font-size:13px;line-height:1.5}
.staff-content-heading{align-items:center}
.staff-details{display:grid;gap:0;margin:16px 0 20px}
.staff-details>div{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);gap:18px;padding:12px 0;border-bottom:1px solid #e8eaef}
.staff-details dt{color:#626975;font-size:13px}
.staff-details dd{margin:0;color:#202124;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.staff-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;margin:0}
.staff-profile-grid>div{display:block;padding:15px 0}
.staff-profile-grid dt{margin-bottom:7px;font-size:12px}
.staff-profile-grid dd{font-size:14px;font-weight:500}
.staff-profile-grid .staff-profile-address{grid-column:1/-1}
.staff-account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:14px}
.staff-workspace .staff-account-card{padding:18px;border:1px solid #e2e6ed;border-radius:14px;background:#fcfdff;box-shadow:0 2px 4px #1f3a5c03}
.staff-account-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.staff-account-card-heading h4{margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.staff-currency{padding:3px 6px;border:1px solid #e3e7ee;border-radius:6px;color:#647184;font-size:10px;font-weight:600}
.staff-balance{display:block;margin:14px 0 18px;color:#202124;font-size:29px;font-weight:620;line-height:1.15;letter-spacing:-.04em;overflow-wrap:anywhere}
.staff-account-identifiers{display:grid;gap:10px;margin:0 0 16px}
.staff-account-identifiers dt{margin-bottom:4px;color:#6a7482;font-size:11px}
.staff-account-identifiers dd{margin:0;color:#455365;font:400 12px/1.45 ui-monospace,"SFMono-Regular",Consolas,monospace;overflow-wrap:anywhere}
.staff-workspace .button-row,.staff-dialog .button-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.staff-account-card-actions{padding-top:14px;border-top:1px solid #e6eaf0}
.staff-account-card-actions .button{flex:1 1 auto;font-size:12px}
.staff-action-group{margin-top:22px;padding-top:20px;border-top:1px solid #e6e9ee}
.staff-action-group h3{margin:0 0 14px;font-size:15px;font-weight:600}
.staff-payment-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
.staff-payment-actions .button{justify-content:flex-start;text-align:left}
.staff-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.staff-settings-group{min-width:0;padding:16px;border:1px solid #e4e7ed;border-radius:14px;background:#fcfcfd}
.staff-settings-group h3{margin:0 0 14px;color:#303948;font-size:14px;font-weight:650}
.staff-setting-row{padding:14px 0;border-top:1px solid #e6e9ef}
.staff-setting-row:last-child{padding-bottom:0}
.staff-setting-row>div>strong{font-size:13px;font-weight:500}
.staff-setting-row p{margin:4px 0 0;color:#626975;font-size:12px}
.staff-setting-row .button-row{margin-top:10px}
.staff-setting-row .button{font-size:12px}
.staff-services,.staff-proposals{display:grid;gap:14px}
.staff-workspace .staff-service{padding:18px;border:1px solid #e3e7ed;border-radius:14px;background:#fcfcfd}
.staff-service>.staff-section-head{align-items:center;margin-bottom:12px}
.staff-service>.staff-section-head h3{font-size:15px}
.staff-service-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-top:1px solid #e5e9ef}
.staff-service-row>div{min-width:0}
.staff-service-row strong{font-size:14px;font-weight:550;overflow-wrap:anywhere}
.staff-service-row p{margin:5px 0 0;color:#626975;font-size:12px;overflow-wrap:anywhere}
.staff-service-row .button{font-size:12px}
.staff-table-wrap{max-width:100%;overflow:auto;border:1px solid #e6e9ee;border-radius:12px;scrollbar-gutter:stable}
.staff-workspace .owner-table,.staff-panel .owner-table{width:100%;min-width:540px;border-collapse:collapse;font-size:14px}
.staff-workspace .owner-table th,.staff-panel .owner-table th{padding:12px 14px;background:#f7f8fa;color:#667181;font-size:12px;font-weight:500;text-align:left;border-bottom:1px solid #e5e9ef}
.staff-workspace .owner-table td,.staff-panel .owner-table td{padding:14px;border-bottom:1px solid #e9ecf0;font-size:14px;vertical-align:middle}
.staff-workspace .owner-table tr:last-child td{border-bottom:0}
.staff-table-wrap td small{display:block;margin-top:5px;color:#687282;font-size:12px;overflow-wrap:anywhere}
.staff-table-wrap .button{font-size:12px}
.staff-panel{min-width:0;padding:22px}
.staff-panel .summary-box{padding:18px;border:1px solid #e1e6ee;border-radius:14px;background:#fcfcfd}
.staff-panel .owner-pill{border-radius:7px;font-size:12px}
.staff-empty-state,.staff-workspace .empty{padding:18px;color:#626975;font-size:14px;text-align:center}
.staff-loading-status{margin:0 0 12px;color:#626975;font-size:13px}
.staff-workspace .staff-workspace-error{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin-bottom:16px;border:1px solid #f0d1d3;border-radius:12px;background:#fff6f6;font-size:14px}
.staff-dialog{width:min(680px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:26px;border:1px solid #dfe3e9;border-radius:20px;background:#fff;box-sizing:border-box;box-shadow:0 24px 90px #172b4d26;overflow:auto}
.staff-dialog::backdrop{background:#1b273c4d;backdrop-filter:blur(4px)}
.staff-dialog>button:first-child{float:right;margin:0 0 10px 14px;border-color:transparent;background:#f1f3f6;font-size:13px}
.staff-dialog h2{margin:4px 0 24px;padding-right:70px;color:#202124;font-size:24px;font-weight:650;line-height:1.25;letter-spacing:-.035em}
.staff-dialog .field{min-width:0;margin-bottom:18px}
.staff-dialog .field label,.staff-workspace .staff-panel .field label{display:block;margin-bottom:7px;color:#465160;font-size:13px;font-weight:500}
.staff-dialog input:not([type=checkbox]),.staff-dialog textarea,.staff-dialog select,.staff-panel select,.staff-panel input{width:100%;max-width:100%;min-height:44px;padding:11px 12px;border:1px solid #d8dde5;border-radius:10px;background:#fff;color:#202124;font:400 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 1px 2px #1c355504}
.staff-dialog input[readonly]{background:#f7f8fa;color:#5d6878;text-overflow:ellipsis}
.staff-dialog input:focus,.staff-dialog textarea:focus,.staff-dialog select:focus,.staff-directory input:focus,.staff-panel select:focus{outline:2px solid #007aff;outline-offset:2px}
.staff-dialog textarea{resize:vertical}
.staff-dialog fieldset{padding:16px;border:1px solid #e0e5ec;border-radius:12px;margin:20px 0}
.staff-dialog legend{padding:0 6px;color:#465160;font-size:13px;font-weight:600}
.staff-dialog #staff-customer-assignment{max-height:280px;overflow:auto}
.staff-checkbox{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 0;color:#3e4957;font-size:14px;overflow-wrap:anywhere}
.staff-checkbox input{width:19px;height:19px;flex:0 0 auto;accent-color:#0066cc}
.staff-dialog .button-row{margin-top:20px}
.staff-dialog .info{color:#465160;padding:14px;margin:16px 0;border-radius:12px;font-size:13px;line-height:1.5}
.staff-proposal-values{display:grid;gap:10px}
.staff-proposal-field{padding:14px;border:1px solid #e2e7ee;border-radius:12px;background:#f7f9fc}
.staff-proposal-field h3{margin:0 0 9px;font-size:13px;font-weight:600}
.staff-proposal-field small{color:#626975;font-size:12px}
.staff-proposal-field p{margin:6px 0 12px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.staff-identity-image{display:block;width:100%;max-height:65dvh;margin:18px 0;border:1px solid #e1e6ee;border-radius:12px;object-fit:contain}
.staff-chat-log{display:flex;flex-direction:column;gap:12px;max-height:460px;padding:14px;margin-bottom:20px;border:1px solid #e1e6ed;border-radius:14px;background:#f5f7fa;overflow:auto}
.staff-chat-message{align-self:flex-start;max-width:88%;padding:12px 15px;border:1px solid #e0e5ed;border-radius:14px;background:#fff}
.staff-chat-message.owner{align-self:flex-end;border-color:#d5e5fb;background:#edf5ff}
.staff-chat-message strong{font-size:12px;font-weight:600}
.staff-chat-message p{margin:7px 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.staff-chat-message time{color:#657082;font-size:11px}
.staff-workspace .form-error:empty,.staff-dialog .form-error:empty{display:none}
@media(min-width:1600px){.staff-main{padding-top:32px}}
@media(max-width:1100px){.staff-customer-grid{grid-template-columns:250px minmax(0,1fr);gap:16px}.staff-record-header{align-items:flex-start;flex-wrap:wrap}.staff-record-toolbar{padding-left:60px}.staff-settings-grid{grid-template-columns:1fr}.staff-main{padding:24px}.staff-header{padding-inline:24px}}
@media(max-width:800px){.staff-customer-grid{grid-template-columns:minmax(0,1fr)}.staff-directory{position:static}.staff-main{padding:20px 16px}.staff-workspace .staff-page-head{align-items:flex-start;gap:14px}.staff-page-head h1{font-size:26px}.staff-page-head>.button-row{flex-wrap:wrap;justify-content:flex-end}.staff-page-head .button{font-size:14px}.staff-header{padding:12px 16px;gap:16px}.staff-brand{font-size:14px}.staff-actor{padding-left:16px}.staff-header>.staff-language{margin-left:auto}#staff-customer-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:290px}.staff-customer-choice{margin:0}.staff-selection-hint{margin-bottom:12px}.staff-record-header{flex-wrap:nowrap;align-items:center}.staff-record-toolbar{padding:0}.staff-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.staff-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;min-height:0}.staff-brand{grid-column:1;grid-row:1;font-size:13px}.staff-brand-mark{width:30px;height:30px;border-radius:9px;font-size:20px}.staff-actor{grid-column:1;grid-row:2;margin:0;padding:0;border:0;gap:0}.staff-actor strong{font-size:12px}.staff-actor>span{font-size:11px}.staff-header>.button{grid-column:2;grid-row:1;min-height:44px;padding:8px 11px;font-size:12px}.staff-header>.staff-language{grid-column:2;grid-row:2;margin:0;padding:2px;gap:1px}.staff-language button{width:35px;min-width:35px;min-height:44px;padding:6px;font-size:11px}.staff-main{padding:18px 14px}.staff-workspace .staff-page-head{display:block;margin-bottom:16px}.staff-page-head h1{font-size:26px}.staff-page-head p{margin-top:5px;font-size:13px}.staff-page-head>.button-row{justify-content:flex-start;margin-top:14px}.staff-page-head [data-staff-action=new-customer]{flex:1}.staff-page-head [data-staff-action=refresh]{flex:0 0 auto}.staff-workspace .staff-navigation{display:flex;width:100%;padding:3px;gap:2px;margin-bottom:14px;border-radius:11px}.staff-navigation button{flex:1 1 0;min-width:0;min-height:44px;padding:8px 7px;font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:normal}.staff-workspace .staff-pending-notice,.staff-dialog .staff-pending-notice{align-items:flex-start;margin-bottom:14px;padding:11px 12px}.staff-pending-notice>div{display:block}.staff-pending-notice strong{display:block;font-size:12px}.staff-pending-notice span{display:block;margin-top:3px;font-size:12px}.staff-workspace .pad{padding:16px}.staff-directory-heading{margin-bottom:12px}.staff-directory .field label{font-size:12px}.staff-directory input[type=search]{height:44px;font-size:16px}.staff-selection-hint{font-size:12px}#staff-customer-list{grid-template-columns:1fr;max-height:260px;gap:8px}.staff-customer-choice{padding:11px 12px}.staff-customer-row-meta{margin-top:8px}.staff-customer-open{margin-top:7px;padding-top:7px;font-size:12px}.staff-record-header{display:block;padding:18px 16px 12px}.staff-avatar-large{width:43px;height:43px;font-size:16px}.staff-customer-identity{gap:11px}.staff-record-header h2{font-size:20px;margin-bottom:6px}.staff-record-meta{gap:6px 9px;font-size:11px}.staff-record-meta .staff-status{font-size:10px}.staff-record-toolbar{margin-top:15px;gap:8px}.staff-record-toolbar .button{flex:1;font-size:13px}.staff-record-secondary{padding:0 16px 12px;font-size:11px}.staff-workspace .staff-record-tabs{padding-inline:5px}.staff-record-tabs>button{min-height:44px;padding:11px;font-size:13px}.staff-record-content{padding:17px 16px}.staff-section-head{flex-wrap:wrap;gap:12px}.staff-content-heading{align-items:center}.staff-content-heading>.button{font-size:12px}.staff-profile-grid{grid-template-columns:1fr;column-gap:0}.staff-profile-grid .staff-profile-address{grid-column:auto}.staff-profile-grid>div{padding:13px 0}.staff-details>div{grid-template-columns:1fr;gap:6px}.staff-settings-grid{grid-template-columns:1fr;gap:12px}.staff-settings-group{padding:15px}.staff-setting-row .button{min-height:44px;font-size:13px}.staff-account-grid{grid-template-columns:minmax(0,1fr)}.staff-workspace .staff-account-card{padding:16px}.staff-account-card-actions .button{font-size:13px}.staff-payment-actions{grid-template-columns:1fr}.staff-payment-actions .button{min-height:44px;font-size:14px}.staff-service-row{display:block}.staff-service-row .button-row{margin-top:12px}.staff-service-row>.button{margin-top:12px}.staff-service-row .button{font-size:13px}.staff-chat-message{max-width:100%}.staff-chat-log{max-height:55dvh}.staff-panel{padding:17px}.staff-panel .staff-section-head h2{font-size:19px}.staff-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;border-radius:17px}.staff-dialog h2{margin-bottom:20px;font-size:22px}.staff-dialog input:not([type=checkbox]),.staff-dialog textarea,.staff-dialog select,.staff-panel select{font-size:16px}.staff-dialog .button-row .button{flex:1 1 145px;min-height:44px;font-size:14px}.staff-dialog>button:first-child{font-size:13px}.staff-dialog .staff-section-head{display:block}.staff-dialog .staff-service-row>.button{width:100%}.staff-workspace .staff-workspace-error{align-items:flex-start;flex-wrap:wrap}.staff-workspace .button-row .button,.staff-workspace .page-head .button{min-height:44px}.staff-workspace .staff-record-content .owner-table .button{font-size:13px}}
@media(prefers-reduced-motion:reduce){.staff-workspace *,.staff-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep the field visible when validation moves focus to it. */
#staff-change-form [aria-invalid="true"] { border-color: #b5473f; background-color: #fff8f7; outline: 3px solid #b5473f33; outline-offset: 2px; }

/* Shared admin/staff password recovery request list. */
.password-recovery-list{display:grid;gap:10px}.password-recovery-row{display:grid;grid-template-columns:minmax(150px,1.4fr) minmax(130px,1fr) auto auto;align-items:center;gap:14px;padding:15px;border:1px solid #e0e5ed;border-radius:11px;background:#fff}.password-recovery-row>div{min-width:0;overflow-wrap:anywhere}.password-recovery-row p{margin:5px 0 0;font-size:12px;color:#626975}.password-recovery-row time{display:block;margin-top:5px;font-size:13px}.password-recovery-row .button{min-height:44px;white-space:normal}.password-recovery-panel [role=alert]{margin:16px 0}.password-recovery-row .button:focus-visible{outline:3px solid #438bbb;outline-offset:3px}@media(max-width:720px){.password-recovery-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}.password-recovery-row .button{grid-column:1/-1;width:100%}.password-recovery-row>div:first-child{grid-column:1/-1}}

.staff-navigation .staff-count{display:inline-grid;min-width:20px;min-height:20px;margin-left:7px}.staff-navigation .staff-count[hidden]{display:none}

.staff-workflow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;margin:0 0 22px;padding:14px 16px;background:#fff;border:1px solid #e0e5ed;border-radius:12px}.staff-workflow li{display:grid;gap:5px}.staff-workflow strong{font-size:13px;color:#245780}.staff-workflow span,.staff-task-help{font-size:12px;color:#626975;line-height:1.5}.staff-review-comparison article{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0;border-bottom:1px solid #e0e5ed}.staff-review-comparison h3{grid-column:1/-1;margin:0;font-size:14px}.staff-review-comparison strong{font-size:12px;color:#626975}.staff-review-comparison p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;font-size:13px}@media(max-width:720px){.staff-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-review-comparison article{grid-template-columns:minmax(0,1fr)}}
