/* Shared OnePay admin system: four-pixel rhythm, compact data, quiet surfaces. */
:root{
 --admin-primary:#2563eb;--admin-ink:#18263b;--admin-muted:#526176;--admin-line:#dfe5ee;
 --ink:var(--admin-ink);--muted:var(--admin-muted);--green:var(--admin-primary);--green-dark:#1d4ed8;
 --line:var(--admin-line);--canvas:#f4f6f9;--surface:#fff;--soft:#f8fafc;--radius:10px;--shadow:none;
 --admin-accent-soft:#eaf1ff;--admin-positive:#047857;--admin-positive-soft:#ecfdf5;--admin-positive-line:#bce4d4;
 --admin-row-height:56px;--admin-settings-width:760px;
 --admin-gap:24px;--admin-inset:24px;--admin-control:40px;--admin-cell-inset:10px;--admin-control-border:#bcc8d7;
 --admin-sequence-width:64px;--admin-row-action-size:32px;
 --admin-actions-width:92px;--admin-single-action-width:60px;--admin-operator-actions-width:220px;
 --cloud-blue:var(--admin-primary);--cloud-ink:var(--admin-ink);--cloud-muted:var(--admin-muted);--cloud-line:var(--admin-line);
}
body,.cloud-body{background:var(--canvas);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5}
[hidden]{display:none!important}
button,.cloud-body button{min-height:var(--admin-control);padding:8px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;box-shadow:none;cursor:pointer;transition:background .12s,border-color .12s,color .12s}
button:hover,.cloud-body button:hover{background:#f1f5f9;border-color:#b9c6d7}
button:disabled,.cloud-body button:disabled{opacity:.45;cursor:default}
.primary,.cloud-body .cloud-primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:none}
.primary:hover,.cloud-body .cloud-primary:hover{background:var(--green-dark);border-color:var(--green-dark);color:#fff}
:is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:3px}
input,select,textarea,.cloud-body input{border:1px solid var(--admin-control-border);border-radius:7px;color:var(--ink);font-size:13px;background:#fff;box-shadow:none}
input,select,.cloud-body input{min-height:var(--admin-control);height:var(--admin-control);padding:8px 12px}
input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #2563eb18}
input[type=checkbox],input[type=radio]{min-height:16px;height:16px;width:16px;accent-color:var(--green)}
label,.cloud-body label{font-size:12px;color:var(--muted);font-weight:500}
label input,label select{margin-top:8px}
p,.hint,.sub,.cloud-note,.cloud-body small{color:var(--muted)}
h1,.portal-heading h1,.user-page-heading h1,.operator-heading h1,.account-settings-heading h1{font-size:24px;line-height:32px;font-weight:650;letter-spacing:-.4px;margin:0;color:var(--ink)}
h2{font-size:17px}h3{font-size:14px}
.ui-icon,.admin-icon{display:inline-block;width:16px;height:16px;vertical-align:-3px;flex-shrink:0;stroke-width:1.8}
.has-admin-icon{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.shell>.app-sidebar{background:#fff;border-color:var(--line)}
.sidebar-brand{height:80px;color:var(--ink);font-size:20px}
.cloud-brand .brand-symbol{display:block;flex-shrink:0;border-radius:7px}
.sidebar-nav button{min-height:40px;font-size:13px;color:var(--muted);border-radius:7px}
.sidebar-nav :is(.sidebar-group-title,[data-target="home"]){font-size:15px;font-weight:700}
.sidebar-nav a.sidebar-child{display:flex;align-items:center;gap:11px;padding:11px 13px 11px 26px;min-height:41px;border-radius:7px;color:#8995a9;font-size:12px;line-height:1.65;text-decoration:none}
.sidebar-nav a.sidebar-child .admin-icon{width:15px;height:15px}
.sidebar-nav a.sidebar-child:hover{background:#edf3ff;color:var(--green)}
.sidebar-nav .assistant-nav-icon{display:block;width:15px;height:15px;flex-shrink:0;border-radius:4px}
.sidebar-nav .platform-nav-icon{display:block;width:17px;height:17px;flex-shrink:0;border-radius:4px}
#paypalTablePage .user-page-heading{margin-bottom:var(--admin-gap)}
.paypal-empty{display:grid;place-items:center;min-height:160px;color:var(--muted)}

.sidebar-nav [aria-selected=true]{color:var(--green-dark);background:var(--admin-accent-soft)}
.sidebar-footer{border-color:var(--line);color:var(--muted)}
.sidebar-footnote{display:none}
.shell>main,.shell>main.summary-page{padding:var(--admin-gap) var(--admin-inset) 32px}
.shell>main:has(>.cloud-session-bar){padding-top:16px}
.cloud-session-bar{height:32px;min-height:32px;margin:0 0 16px;gap:16px;color:var(--muted)}
.cloud-session-bar>span{color:var(--muted)}
.cloud-session-bar button{min-height:32px}
.table-top,.operator-heading,.account-settings-heading,.dashboard-title{min-height:40px;margin:0 0 var(--admin-gap);gap:16px;align-items:center}
.user-page-heading p,.account-settings-heading p,.operator-heading p,.dashboard-title p,.summary-page-heading p,.portal-heading p{display:none}
.actions,.operator-heading-actions,.summary-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.panel,.cloud-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:none}
.list-filterbar{
 display:flex;
 align-items:center;
 flex-wrap:wrap;
 gap:12px;
 padding:16px var(--admin-inset);
}
.list-time-filters,.list-toolbar-actions{display:flex;align-items:center;gap:8px}
.list-time-filters{max-width:100%;flex-wrap:wrap}
.list-sort{width:126px}
.list-scope{width:106px}
.list-date-range{
 display:grid;
 grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;
 align-items:center;
 width:260px;
 max-width:100%;
 min-width:0;
 height:var(--admin-control);
 border:1px solid var(--admin-control-border);
 border-radius:7px;
 background:var(--surface);
}
.list-date-range input{
 width:100%;
 min-width:0;
 height:calc(var(--admin-control) - 2px);
 min-height:0;
 margin:0;
 padding:6px 8px;
 border:0;
 background:transparent;
 box-shadow:none;
 font-variant-numeric:tabular-nums;
}
.list-date-range input:focus-visible{outline-offset:-2px}
.list-date-range:focus-within{border-color:var(--green)}
.list-date-range span{color:var(--muted);font-size:12px;padding-inline:2px}
.list-date-range button{
 display:grid;place-items:center;width:24px;height:28px;min-height:0;
 margin-inline-end:3px;padding:0;border:0;background:transparent;color:var(--muted);
}
.list-date-range button:hover{background:var(--soft);color:var(--ink)}
.list-date-range button:disabled{display:none}
.list-date-range button .admin-icon{width:14px;height:14px}
@media(hover:hover) and (pointer:fine){
 #dateFrom::-webkit-calendar-picker-indicator{opacity:0}
 #dateFrom:is(:hover,:focus)::-webkit-calendar-picker-indicator{opacity:1}
}
.list-filterbar .list-search{flex:1 1 212px;min-width:0;max-width:420px}
.list-search input{width:100%;padding-left:38px}
.list-toolbar-actions{flex-wrap:wrap;margin-left:auto}
.list-toolbar-actions button{white-space:nowrap}
.list-filterbar .error{flex-basis:100%;margin:0}
.email-keyword{display:flex;align-items:center;gap:8px;flex:0 1 250px;white-space:nowrap}
.email-keyword input{flex:1 1 0;min-width:0;margin:0}
.pool-record{line-height:1.35}
.pool-record-status{margin-top:2px}
.pool-record-status .usage-badge{padding-block:1px}
.success-status-legend{position:relative;font-size:13px;color:var(--ink)}
.success-status-legend>summary{
 display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;
 padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);
}
.success-status-legend>summary::-webkit-details-marker{display:none}
.success-status-legend>summary::after{content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-top:-3px}
.success-status-legend[open]>summary::after{transform:rotate(225deg);margin-top:3px}
.success-status-legend ul,.status-filter-options{
 position:absolute;z-index:2;inset-inline-end:0;min-width:176px;margin:6px 0 0;padding:10px;
 display:grid;gap:8px;list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:8px;
}
.success-status-legend li{display:flex;align-items:center;gap:6px;white-space:nowrap}
.success-filters{display:flex;align-items:center;gap:8px}
.success-filters select{width:104px}
.status-filter>summary{height:var(--admin-control);min-width:78px;justify-content:space-between;border-color:var(--admin-control-border)}
.status-filter-options{inset-inline-start:0;inset-inline-end:auto;gap:4px;padding:8px}
.status-filter-options small{padding:0 6px;color:var(--muted);white-space:nowrap}
.status-filter-options label{
 display:flex;align-items:center;gap:7px;min-height:32px;margin:0;padding:4px 6px;border-radius:6px;
 color:var(--ink);cursor:pointer;white-space:nowrap;
}
.status-filter-options label:hover,.status-filter-options label:focus-within{background:var(--soft)}
.status-filter-options input{width:14px;height:14px;min-height:0;margin:0;accent-color:var(--green)}
.shell>main .panel>.tablewrap>table :is(.col-success-status,.col-device-environment,.col-upstream-number){padding-inline:6px}
.shell>main .panel>.tablewrap>table :is(.col-device-environment,.col-upstream-number){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.success-status-group{display:flex;align-items:center;flex-wrap:wrap;gap:3px}
.success-status-badge,button.success-status-badge{
 display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:none;
 min-height:20px;padding:3px 4px;border:0;border-radius:6px;color:var(--badge-tint);
 background:color-mix(in srgb,var(--badge-tint) 10%,white);
 font-size:11px;font-weight:700;line-height:14px;font-variant-numeric:tabular-nums;white-space:nowrap;
}
.success-status-badge .admin-icon{width:12px;height:12px;stroke-width:2}
.profile-balance-amount{font-size:32px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.25;color:var(--ink,#17243c)}
.success-status-badge[data-status=email]{--badge-tint:#2e5ce0}
.success-status-badge[data-status=promotion]{--badge-tint:#af52de}
.success-status-badge[data-status=dd]{--badge-tint:#34c759}
.success-status-badge[data-status=extra_reward]{width:24px;background:center / 24px 12px no-repeat url("extra-reward-50.png")}
.success-status-badge[data-status=reward]{--badge-tint:#854d0d}
button.success-status-badge:hover{background:color-mix(in srgb,var(--badge-tint) 18%,white)}
#successRewardInfo{width:min(360px,calc(100vw - 32px))}
.summary-page-heading{padding:24px var(--admin-inset);gap:16px;align-items:center}
.summary-page-heading h1{font-size:24px}
.summary-status-tabs{
 display:inline-flex;
 align-items:center;
 gap:2px;
 padding:3px;
 border:1px solid var(--line);
 border-radius:8px;
 background:var(--soft);
}
.summary-status-tabs button{
 min-height:calc(var(--admin-control) - 8px);
 padding:4px 12px;
 border:0;
 border-radius:5px;
 background:transparent;
 color:var(--muted);
 white-space:nowrap;
}
.summary-status-tabs button:hover,.summary-status-tabs button[aria-selected=true]{
 background:var(--admin-accent-soft);
 color:var(--green-dark);
}
.summary-status-tabs button[aria-selected=true]{font-weight:650}
.list-select-filter{display:inline-flex;align-items:center;gap:8px;margin:0;max-width:100%;color:var(--muted);white-space:nowrap}
.list-select-filter[hidden]{display:none}
.list-select-filter select{width:156px;max-width:100%;min-width:0;margin:0;text-overflow:ellipsis}
.list-select-filter .list-scope{width:106px}
.shell>main .panel>.tablewrap>table{table-layout:fixed;min-width:1080px;width:100%}
.shell>main .onepay-result-list>.tablewrap>table{min-width:1280px}
.shell>main .onepay-result-list>.tablewrap>table:has(.col-upstream-number){min-width:1356px}
.shell>main .panel>.tablewrap>table th,.shell>main .panel>.tablewrap>table td{padding:8px var(--admin-cell-inset);height:var(--admin-row-height);border-color:#e8edf3;font-size:13px;color:var(--ink);vertical-align:middle}
.shell>main .panel>.tablewrap>table th{height:44px;color:var(--muted);background:var(--soft);font-size:12px;font-weight:600;text-align:left}
.shell>main .panel>.tablewrap>table td{white-space:normal;overflow-wrap:anywhere;text-align:left}
.shell>main .panel>.tablewrap>table :is(.col-mark,.col-number,.col-metric),.portal-table .col-number{
 white-space:nowrap;
 text-align:center;
 font-variant-numeric:tabular-nums;
}
.shell>main .panel>.tablewrap>table .col-number:first-child,.portal-table .col-number:first-child{text-align:left}
.shell>main .panel>.tablewrap>table :is(.col-phone,.col-time),.portal-table .col-time{
 font-variant-numeric:tabular-nums;
 font-size:12px;
 text-align:left;
}
.shell>main .panel>.tablewrap>table .col-phone{white-space:nowrap}
#emailAssetsPage .email-asset-secret+.textbtn{padding-inline:3px}
#emailAssetsPage{max-width:1100px}
#emailAssetsPage .panel>.tablewrap>table{min-width:1080px}
#emailAssetsPage .email-assets-heading{flex-wrap:wrap;gap:12px}
.email-asset-stats,.email-asset-stats>div{display:flex;align-items:center;gap:8px}
.email-asset-stats{flex-wrap:wrap;margin:0;color:var(--muted);font-size:12px}
.email-asset-stats dd{margin:0;color:var(--ink);font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
.email-asset-stats .email-asset-unused{padding:2px 10px;border-radius:7px;background:var(--admin-accent-soft);color:var(--green-dark)}
.email-asset-stats .email-asset-unused dd{color:inherit;font-size:22px;font-weight:750}
#emailAssetsPage .email-client-id{margin:0;padding-inline:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
#emailClientIdDialog{width:min(440px,calc(100vw - 32px))}
#emailClientIdValue{white-space:pre-wrap;overflow-wrap:anywhere}
.portal-table .col-number{width:var(--admin-sequence-width);padding-inline:var(--admin-cell-inset)}
.portal-table .col-time{width:108px;padding-inline:var(--admin-cell-inset)}
.sequence-sort,.cloud-body .sequence-sort{
 display:inline-flex;
 align-items:center;
 gap:4px;
 min-height:24px;
 padding:0;
 color:inherit;
 background:transparent;
 border:0;
 font:inherit;
 white-space:nowrap;
}
.sequence-sort:hover,.cloud-body .sequence-sort:hover{background:transparent;color:var(--green-dark)}
[aria-sort=ascending] .sequence-sort,[aria-sort=descending] .sequence-sort{color:var(--green-dark)}
.sequence-sort .admin-icon{width:12px;height:12px}
.shell>main .panel>.tablewrap>table .col-notes{min-width:200px;max-width:none;text-align:left}
.note-cell-content{display:flex;align-items:center;gap:8px;min-width:0}
.note-preview{
 display:-webkit-box;
 min-width:0;
 overflow:hidden;
 white-space:pre-wrap;
 overflow-wrap:anywhere;
 line-height:1.65;
 -webkit-box-orient:vertical;
 -webkit-line-clamp:2;
}
.note-cell-content .note-preview{flex:1}
.note-empty{color:var(--muted)}
.textbtn,.cloud-body .cloud-text{color:var(--green-dark);border:0;border-radius:5px;min-height:32px;padding:5px 6px;box-shadow:none;background:transparent;font-size:12px}
.textbtn:hover,.cloud-body .cloud-text:hover{background:#eaf1ff;color:var(--green-dark)}
.col-actions{white-space:nowrap!important}.col-actions .textbtn{padding:5px}
.row-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}
.row-action,.cloud-body .row-action,.col-actions .icon-action{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 flex:none;
 gap:6px;
 width:var(--admin-row-action-size);
 min-width:var(--admin-row-action-size);
 height:var(--admin-row-action-size);
 min-height:var(--admin-row-action-size);
 padding:0;
 border:0;
 border-radius:6px;
 background:transparent;
 color:var(--muted);
 cursor:pointer;
}
.row-action:not(:disabled):hover,.cloud-body .row-action:not(:disabled):hover,.col-actions .icon-action:hover,
.operator-more[open]>summary{background:var(--admin-accent-soft);color:var(--green-dark)}
.row-action:disabled{cursor:default}
.row-action.row-action-danger{color:#b42318}
.row-action.row-action-danger:not(:disabled):hover{background:#fff0ef}
.row-action.row-action-text{width:auto;padding-inline:6px;font-size:12px}
.usage-badge{font-size:12px;white-space:nowrap;border-radius:6px}
.panel-footer,.admin-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;min-height:64px;padding:12px var(--admin-inset);margin:0;border-top:1px solid var(--line);color:var(--muted);font-size:12px;background:#fff}
.panel-footer{padding-inline-start:var(--admin-cell-inset)}
.people-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto;font-size:12px;font-variant-numeric:tabular-nums}
.people-pagination label{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}
.people-pagination select,.cloud-body .people-pagination select{width:88px;min-height:32px;height:32px;margin:0;padding:4px 8px}
.people-pagination button,.cloud-body .people-pagination button{height:32px;min-height:32px;white-space:nowrap;padding:5px 10px;font-size:12px}
.people-pagination [aria-live]{min-width:58px;text-align:center}
.account-settings-tabs{display:flex;flex-wrap:wrap;width:100%;max-width:var(--admin-settings-width);gap:0;margin:0 0 16px;border-bottom:1px solid var(--line)}
.account-settings-tabs button{min-height:44px;min-width:108px;padding:10px 16px;background:transparent;color:var(--muted);border:0;border-bottom:2px solid transparent;border-radius:0}
.account-settings-tabs [aria-selected=true]{color:var(--green-dark);border-bottom-color:var(--green)}
.account-settings-card{width:100%;max-width:var(--admin-settings-width);padding:24px var(--admin-inset)}
.account-settings-card h2{font-size:17px;color:var(--ink);margin:0 0 20px}.account-settings-card h3{color:var(--ink);margin:24px 0 12px}
.account-settings-form{max-width:520px}.account-settings-form>label{margin:0 0 20px}
.account-settings-card>.hint{margin:0 0 20px;max-width:64ch}
.account-settings-form small{font-size:12px;color:var(--muted)}
.account-download-options{max-width:760px;gap:16px;margin:0 0 24px}.account-download-options>div{background:var(--soft);border-color:var(--line);padding:20px}
.account-settings-card-title{margin-bottom:20px}.account-settings-card-title h2{margin:0}
.operator-panel-head{align-items:center;justify-content:space-between}
.operator-panel-head>button{margin-inline-start:auto}
.operator-overview{display:flex;flex-wrap:wrap;gap:10px 20px;margin:0}
.operator-overview>div{display:flex;align-items:baseline;gap:7px}
.operator-overview>div+div{padding-inline-start:20px;border-inline-start:1px solid var(--line)}
.operator-overview dt{font-size:12px;color:var(--muted)}
.operator-overview dd{margin:0;font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}
.shell>main .panel>.tablewrap>table.operator-table{min-width:1000px}
.shell>main .panel>.tablewrap>table.operator-table .col-actions{padding-inline:6px}
.operator-table .row-actions{position:relative;gap:4px}
.operator-table .row-actions>.row-action-text,.operator-more>.row-action-text{min-width:0;padding-inline:0;color:var(--green-dark)}
.operator-table .row-actions:has(.operator-more[open]){padding-bottom:calc(var(--admin-row-action-size) + 6px)}
.operator-more>summary{list-style:none}
.operator-more>summary::-webkit-details-marker{display:none}
.operator-more:not([open])>.row-menu{display:none}
.row-menu{
 position:absolute;
 inset-inline-end:0;
 top:calc(var(--admin-row-action-size) + 4px);
 display:flex;
 gap:4px;
 padding:0 2px;
 border:1px solid var(--line);
 border-radius:6px;
 background:var(--surface);
}
.shell>main .panel>.tablewrap>table.operator-table .col-status{text-align:center}
.col-status .usage-badge{margin:0}
.operator-status{display:inline-flex;padding:4px 8px;border:1px solid var(--line);border-radius:6px;font-size:12px;font-weight:600}
.operator-status.active{background:var(--admin-positive-soft);color:var(--admin-positive);border-color:var(--admin-positive-line)}
.operator-status.inactive{background:var(--soft);color:var(--muted)}
.phone-expiry{white-space:nowrap;font-variant-numeric:tabular-nums}
.dashboard-metrics{gap:16px;margin-bottom:24px}.dashboard-metric{min-height:156px;border:1px solid var(--line);border-radius:10px;padding:20px 24px;box-shadow:none}
.metric-primary,.metric-today:hover{background:var(--green-dark);border-color:var(--green-dark)}.metric-secondary{background:#fff}.metric-secondary:hover{background:var(--soft)}
.dashboard-daily,.dashboard-monthly{margin-top:24px}.dashboard-section-head{padding:20px var(--admin-inset)}.dashboard-section-head h2{font-size:17px}.dashboard-section-head p{display:none}
.dashboard-footnote{padding:12px var(--admin-inset);color:var(--muted);font-size:12px}.dashboard-local{color:var(--muted)}
.modalhead,.portal-dialog-head{padding:20px 24px}.modalhead h2{font-size:19px}.modalbody,.portal-dialog-body{padding:24px}.modalfooter,.portal-dialog-footer{padding:16px 24px;background:var(--soft);gap:8px}
.modalhead>button,.dialog-close,.cloud-body .cloud-close{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--muted)}
.cloud-body .portal-page{max-width:none;margin:24px auto 40px;padding:0 32px}.cloud-body .account-page{max-width:1240px}.cloud-brand{height:80px;padding:20px 32px;font-size:20px;border-bottom:1px solid var(--line);background:#fff;color:var(--ink)}.cloud-mark{display:flex;color:var(--green)}.cloud-brand-sub{color:var(--muted)}
.portal-heading{margin:24px 0;min-height:40px}.portal-table th{background:var(--soft);color:var(--muted);font-weight:600}.portal-table th,.portal-table td{height:56px;padding:12px 20px}.account-card{padding:24px}.account-card h2{margin:0 0 20px}
.portal-page>.cloud-note{display:none}.portal-page .cloud-back{color:var(--green-dark)}
.cloud-body .workspace-stats{margin-bottom:24px}.workspace-stats-head{padding:20px 24px}.workspace-stats-head p{display:none}
@media(max-width:1100px){:root{--admin-inset:20px}.cloud-body .portal-page{padding:0 24px}}
@media(max-width:850px){:root{--admin-inset:16px;--admin-gap:20px}.shell>main,.shell>main.summary-page{margin-left:0;width:100%;padding:16px 16px 28px}.cloud-session-bar{height:auto;min-height:32px;margin-bottom:16px}.actions{width:auto}.people-pagination{gap:6px}.table-top{flex-wrap:wrap}.account-settings-tabs button{flex:1;min-width:90px;padding:10px 8px}.operator-heading{flex-wrap:wrap}.operator-heading-actions{width:100%}.cloud-brand{padding:20px}.cloud-body .portal-page{padding:0 16px}.cloud-session-bar a,.cloud-session-bar button{min-height:32px}.summary-page-heading{flex-wrap:wrap}.summary-page-heading h1{font-size:22px}.modalhead,.modalbody{padding:20px}.panel-footer{gap:12px}}
@media(max-width:480px){.panel-footer>span{width:100%}.people-pagination{width:100%;justify-content:flex-end}.operator-overview{gap:8px 12px}.operator-overview>div+div{padding-inline-start:12px}.table-top h1,.account-settings-heading h1{font-size:22px}.actions button{min-height:40px}.account-settings-card{padding:20px 16px}}
@media(pointer:coarse){button,.cloud-body button,.people-pagination button,.textbtn{min-height:44px}.people-pagination select{min-height:44px;height:44px}}
@media(pointer:coarse){
 :root{--admin-row-action-size:44px;--admin-actions-width:116px;--admin-single-action-width:68px;--admin-operator-actions-width:268px}
 .operator-table .row-actions>.row-action-text,.operator-more>.row-action-text{min-width:44px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.table-clock{display:block;font-size:12px;line-height:1.35;color:var(--muted)}
.dashboard-footnote summary{cursor:pointer;color:var(--muted)}.dashboard-footnote p{margin:12px 0 0;max-width:80ch}

.tablewrap,.portal-table-scroll{position:relative;max-width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

main>.summary-page-heading{padding:0;min-height:40px;margin:0 0 var(--admin-gap);display:flex;justify-content:space-between;align-items:center}
.account-settings-heading{display:flex;align-items:center}
.table-top>.account-settings-heading{margin:0;min-height:0}

.summary-page .referral-count{width:auto;min-width:32px;height:32px;min-height:32px;padding:4px 8px;display:inline-flex;flex-direction:row;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink)}
.summary-page .referral-count:hover{background:var(--admin-accent-soft);color:var(--green-dark)}
.summary-page .referral-count>span{font-size:13px;line-height:20px}.summary-page .referral-count small{display:none}
.summary-page .summary-code{min-width:0;padding:0;border:0;background:transparent;color:var(--ink);text-align:left}
.summary-page .summary-related-code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.summary-page .failure-stepper{width:84px;height:32px;min-height:32px;display:inline-flex;gap:0;overflow:hidden;border:1px solid var(--line);border-radius:6px}
.summary-page .failure-stepper button{width:26px;min-width:26px;min-height:30px;height:30px;padding:0;border:0;border-radius:0;font-size:17px}
.summary-page .failure-stepper output{width:30px;min-width:30px;text-align:center;line-height:30px;color:var(--ink);border-color:var(--line);font-size:13px}
.summary-page .link-toggle{width:60px;min-width:0;min-height:32px;height:32px;padding:5px 6px;font-size:12px;display:inline-flex;justify-content:center;align-items:center}
.summary-page .link-toggle::before,.summary-page .link-toggle::after{display:none}
.summary-page .link-toggle.on{background:var(--admin-positive-soft);color:var(--admin-positive);border-color:var(--admin-positive-line)}
.summary-page .link-toggle.off{background:var(--soft);color:var(--muted);border-color:var(--line)}
.summary-link-content{display:flex;align-items:center;gap:8px;min-width:0;width:100%}.summary-link-short{min-width:0;flex:1;max-width:none;font-size:12px}
.summary-page .summary-copy{min-width:28px;width:28px;height:30px;min-height:30px;padding:5px;flex:none;justify-content:center}
.summary-copy span{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}

@media(max-width:600px){
 .list-time-filters{width:100%}
 .status-filter-options{inset-inline-start:auto;inset-inline-end:0}
 .list-filterbar .list-search{flex-basis:100%}
 .list-toolbar-actions{width:100%;margin-left:0}
 .email-keyword{flex:1 1 100%}
}
@media(pointer:coarse){
 .list-filterbar{--admin-control:44px}
 .list-date-range button{width:32px;height:42px}
}

#detail{margin:4dvh auto auto;max-height:min(92dvh,1080px)}
#detail .modalhead{min-height:56px;padding:10px 18px;gap:8px}
#detail .modalhead h2{font-size:17px;line-height:1.35}
#detail .profile-header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
#detail .profile-header-actions>button{height:34px;min-height:34px;padding:0 10px}
#detail .profile-header-actions>.dialog-close{width:34px;padding:0}
#detail .profile-save-alert{padding:8px 16px;color:#9f332b;background:#fff3f2;font-size:13px;overflow-wrap:anywhere}
#detail .detail-workspace{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#detail .profile-main-pane{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#detail #form{margin:0}
#detail #detailBody{padding:0 18px 8px}
#detail .profile-summary{background:var(--soft);padding:8px 18px;margin:0 -18px;border-bottom:1px solid var(--line)}
#detail .profile-section{margin:0;padding:9px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}
#detail .profile-section h3{margin:0 0 3px;font-size:13px;color:var(--ink)}
#detail .profile-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 14px;align-items:center}
#detail .profile-summary{grid-template-columns:minmax(0,min(66%,460px)) minmax(0,1fr)}
#detail .profile-identity{grid-template-columns:minmax(0,1.6fr) minmax(0,1.25fr) minmax(0,1fr)}
#detail .profile-contact{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.4fr) minmax(0,1.5fr)}
#detail .profile-address{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,.55fr) minmax(0,.65fr)}
#detail .profile-promotion{grid-template-columns:repeat(2,minmax(0,1fr))}
#detail .profile-payment{grid-template-columns:repeat(5,minmax(0,1fr))}
#detail .profile-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;min-height:32px;min-width:0;margin:0}
#detail .profile-field[hidden]{display:none}
#detail .profile-label{margin:0;color:var(--muted);font-size:12px;line-height:1.4;font-weight:500;white-space:nowrap}
#detail .profile-value{margin:0;color:var(--ink);font-size:13px;line-height:1.45;min-width:0;overflow-wrap:anywhere}
#detail .profile-name-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#detail .profile-value :is(input:not([type=radio],[type=hidden]),select){width:100%;min-width:0;height:32px;min-height:32px;margin:0;padding:4px 6px;font-size:13px}
#detail .profile-value select{padding-right:22px}
#detail textarea{width:100%;min-height:48px;height:auto;margin:0;padding:6px 8px;font:inherit;resize:vertical}
#detail .profile-summary-note{grid-column:1/-1;min-width:0}
#detail .profile-summary>.profile-field:first-child,#detail .profile-summary-note>.profile-field{grid-template-columns:4em minmax(0,1fr)}
#detail .profile-summary-note .profile-value,#detail [data-profile-section="notes"] .profile-value{white-space:pre-wrap}
#detail .profile-payment .profile-field{grid-template-columns:minmax(0,1fr);align-content:center;gap:2px;min-height:50px}
#detail .payment-input-row{margin:0}
#detail .textbtn{min-height:24px;height:auto;padding:2px 4px;font-size:12px;white-space:normal}
#detail .account-mark-options{gap:4px}
#detail .account-mark-options label{gap:4px;padding:2px 6px;min-height:26px;margin:0;border-radius:6px;white-space:nowrap}
#detail .account-mark-options input{width:16px;height:16px;min-height:16px;padding:0;accent-color:var(--green)}
#detail .profile-summary .account-mark-dot{vertical-align:middle}
#detail .profile-summary select{max-width:150px}
#detail .profile-referrals{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;font-size:13px}
#detail .profile-referrals details{margin:0;min-width:0;max-width:100%}
#detail .profile-referrals details[open]{flex-basis:100%}
#detail .profile-referrals summary{margin:0;color:var(--green-dark);cursor:pointer}
#detail .profile-referrals details[open]>summary{margin-bottom:8px}
#detail .profile-referrals .tablewrap{overflow-x:auto}
#detail #referrerHint{grid-column:1/-1;margin:0}
#detail #referrerHint:empty{display:none}
#detail #paymentLoading{margin:2px 0 0}
#detail #ddRewardStatus{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;color:var(--muted);font-size:13px}
#detail #ddRewardStatus>button{height:32px;min-height:32px;padding:0 8px}
#detail .profile-footer-meta{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;min-height:38px;margin:0;color:var(--muted);font-size:12px}
#detail .profile-delete{color:#9f332b}

@media(max-width:850px){
 #detail .profile-contact{grid-template-columns:repeat(2,minmax(0,1fr))}
 #detail .profile-payment{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
 #detail .modalhead{padding-inline:12px}
 #detail .modalhead h2{font-size:15px}
 #detail #detailBody{padding-inline:12px}
 #detail .profile-summary{padding-inline:12px;margin-inline:-12px}
 #detail .profile-row{gap:4px 8px;align-items:start}
 #detail .profile-field{grid-template-columns:minmax(0,1fr);align-content:start;gap:2px;min-height:40px}
 #detail .profile-label{white-space:normal}
 #detail .profile-summary{grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);align-items:start}
 #detail .profile-summary>.profile-field{grid-template-columns:minmax(0,1fr);min-height:28px}
 #detail .profile-summary>.profile-field:first-child{grid-template-columns:minmax(0,1fr)}
 #detail .profile-summary-note>.profile-field{grid-template-columns:auto minmax(0,1fr);align-items:center}
 #detail .profile-identity{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)}
 #detail .profile-name-inputs{grid-template-columns:minmax(0,1fr)}
 #detail .profile-address{grid-template-columns:minmax(0,1.25fr) minmax(0,.55fr) minmax(0,.65fr)}
 #detail .profile-address>.profile-field:first-child{grid-column:1/-1}
 #detail .profile-payment{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
 #detail{margin-top:12px;max-height:calc(100dvh - 24px)}
}
@media(pointer:coarse){
 #detail .profile-header-actions>button,#detail .textbtn,#detail .account-mark-options label,#detail #ddRewardStatus>button{min-height:44px}
 #detail .profile-header-actions>.dialog-close{width:44px}
 #detail .profile-value :is(input:not([type=radio],[type=hidden]),select){min-height:44px;font-size:16px}
}

.claims-tools label input,.claims-form label :is(input,select,textarea) { margin-top:0; }
.claims-form textarea { padding:8px 12px; }

/* Keep the activity table within the workspace, including beside the expanded sidebar. */
#claimsPage { container: claims / inline-size; }
#tableTabs :is([data-target="__claims_overview__"], .claims-activity-group > .sidebar-child) { font-size:12px; font-weight:500; }
#tableTabs .claims-activity-group > button > span:not(.nav-chevron) { min-width:0; overflow-wrap:anywhere; }
#tableTabs .claims-activity-group > .sidebar-submenu { margin:2px 0 4px 16px; }
.claims-table { width:100%; table-layout:fixed; white-space:normal; }
.claims-table th,.claims-table td { height:auto; padding:8px 7px; }
.claims-table th { font-size:12px; background:var(--soft); color:var(--muted); }
.claims-table td { font-size:13px; overflow-wrap:anywhere; }
.claims-table tbody tr:last-child td { border-bottom:0; }
.claim-field-label { display:none; }
.claims-table .claim-col-name .textbtn { max-width:100%; padding:3px 0; font-size:inherit; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.claims-table .claim-col-content .claim-field-value { white-space:pre-wrap; }
.claims-table .claim-col-website { width:52px; }
.claims-table .claim-col-amount { width:74px; }
.claims-table .claim-col-method { width:64px; }
.claims-table .claim-col-date { width:88px; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.claims-table .claim-col-count { width:48px; padding-inline:4px; text-align:center; font-variant-numeric:tabular-nums; }
.claims-table .claim-col-status { width:56px; padding-inline:4px; text-align:center; }
.claims-table .claim-col-phone { width:112px; }
.claims-table .claim-col-state { width:52px; }
.claims-table .claim-col-zip { width:66px; }
.claims-table .claim-col-select { width:45px; text-align:center; }
.claims-table .claim-col-actions { width:88px; }
.claims-table[data-view="activities"] .claim-col-actions { width:calc(var(--admin-row-action-size) * 3 + 20px); }
.claims-table .row-actions { gap:3px; }
.claims-tools { max-width:100%; }
.claims-tools label { max-width:100%; min-width:0; }
.claims-tools input { max-width:100%; min-width:0; }

@container claims (640px <= width < 850px) {
 .claims-table th,.claims-table td { padding-inline:5px; }
 .claims-table .claim-col-website { width:44px; }
 .claims-table .claim-col-method,.claims-table .claim-col-count,.claims-table .claim-col-status { width:44px; }
 .claims-table .claim-col-count,.claims-table .claim-col-status { padding-inline:4px; }
 .claims-table .claim-col-amount { width:60px; }
 .claims-table .claim-col-date { width:76px; }
 .claims-table .claim-col-phone { width:96px; }
 .claims-table .claim-col-state { width:42px; }
 .claims-table .claim-col-zip { width:56px; }
}
@container claims (width < 640px) {
 .claims-table,.claims-table tbody { display:block; }
 .claims-table thead { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .claims-table tbody tr { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px 12px; padding:12px 14px; }
 .claims-table tbody tr + tr { border-top:1px solid var(--line); }
 .claims-table tbody td[class] { width:auto; min-width:0; padding:0; border:0; text-align:left; grid-column:span 2; }
 .claims-table tbody td:is(.claim-col-name,.claim-col-content,.claim-col-actions) { grid-column:1/-1; }
 .claims-table tbody td.claim-col-email { grid-column:span 4; }
 .claims-table .claim-col-name { font-weight:650; }
 .claims-table .claim-col-name .claim-field-label,.claims-table .claim-col-actions .claim-field-label { display:none; }
 .claim-field-label { display:block; font-size:12px; color:var(--muted); }
 .claims-table[data-view="available"] td.claim-col-select { grid-column:span 1; align-self:center; }
 .claims-table[data-view="available"] .claim-col-select .claim-field-label { display:none; }
 .claims-table[data-view="available"] td.claim-col-name { grid-column:span 5; }
}
@container claims (width < 420px) {
 .claims-table tbody td:is(.claim-col-email,.claim-col-phone,.claim-col-date,.claim-col-city) { grid-column:span 3; }
}

#profileSync{margin:0 0 16px;padding:10px 14px;border:1px solid #cddbf6;border-radius:8px;background:#eff5ff;color:#29497d}
#profileSyncProgress{margin:0;color:inherit}
#profileSyncErrors{margin:0;padding:0;list-style:none}
#profileSyncErrors li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;color:#9f332b;overflow-wrap:anywhere}
#profileSyncErrors li+li,#profileSyncProgress:not([hidden])+#profileSyncErrors{margin-top:8px}
.profile-sync-actions{display:flex;flex-wrap:wrap;gap:8px}

#replacePlatformEmailDialog{width:min(520px,calc(100vw - 24px))}
#replacePlatformEmailCurrent{overflow-wrap:anywhere}
#replacePlatformEmailForm input{width:100%}
.email-retired{display:inline-block;padding:2px 6px;border-radius:5px;background:#fff0ef;color:#9f332b;font-weight:600}

/* Device recovery in One Assistant settings. */
.device-recovery-page .recovery-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 362px; gap: 18px; align-items: start; }
.device-recovery-page .recovery-queue { overflow: hidden; }
.device-recovery-page .queue-toolbar { display: flex; align-items: center; gap: 8px; padding: 13px 15px; }
.device-recovery-page .queue-toolbar button { min-height: 34px; padding: 5px 12px; border-color: transparent; }
.device-recovery-page .queue-toolbar button[aria-pressed="true"] { background: var(--admin-accent-soft); color: var(--green-dark); font-weight: 700; }
.device-recovery-page .queue-toolbar span { margin-left: 3px; font-variant-numeric: tabular-nums; }
.device-recovery-page .table-scroll { overflow-x: auto; }
.device-recovery-page table { width: 100%; min-width: 548px; border-collapse: collapse; text-align: left; white-space: nowrap; }
.device-recovery-page th, .device-recovery-page td { padding: 12px 15px; border-top: 1px solid var(--line); }
.device-recovery-page th { font-size: 12px; font-weight: 650; background: var(--soft); color: var(--muted); }
.device-recovery-page td { height: 58px; font-size: 13px; }
.device-recovery-page tr[data-selected="true"] { background: #f3f7ff; }
.device-recovery-page td:first-child { font-size: 15px; font-weight: 750; }
.device-recovery-page td:last-child button { min-height: 31px; padding: 4px 10px; }
.device-recovery-page .badge { background: #fff5de; color: #805400; padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.device-recovery-page .badge[data-state="approved"] { background: var(--admin-positive-soft); color: var(--admin-positive); }
.device-recovery-page .badge[data-state="rejected"] { background: #feecee; color: #a62939; }
.device-recovery-page .recovery-review { overflow: hidden; }
.device-recovery-page .review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.device-recovery-page .review-heading h2 { margin: 0; }
.device-recovery-page #recovery-review-body { padding: 16px 18px 18px; }
.device-recovery-page .recovery-prefix { display: grid; gap: 3px; margin-bottom: 14px; }
.device-recovery-page .recovery-prefix span, .device-recovery-page dt, .device-recovery-page .metrics span { color: var(--muted); font-size: 12px; }
.device-recovery-page .recovery-prefix strong { font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.device-recovery-page .metadata { display: grid; gap: 8px; margin: 0; }
.device-recovery-page .metadata div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.device-recovery-page dd { margin: 0; font-size: 13px; font-weight: 600; text-align: right; }
.device-recovery-page .details { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.device-recovery-page .details h3 { margin: 0 0 9px; }
.device-recovery-page .metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.device-recovery-page .metrics div { display: grid; gap: 1px; padding: 9px 11px; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; }
.device-recovery-page .metrics strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.device-recovery-page .next dd { font-variant-numeric: tabular-nums; }
.device-recovery-page .notice { margin: 16px 0 12px; padding: 10px 11px; border-radius: 7px; background: var(--admin-accent-soft); color: #334b73; font-size: 12px; }
.device-recovery-page .action-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.device-recovery-page .empty-row, .device-recovery-page .empty-review { padding: 22px 16px; color: var(--muted); text-align: center; font-weight: 400; }
.device-recovery-page .recovery-result { color: var(--admin-positive); }
#recovery-confirmation { width: min(420px,calc(100vw - 30px)); padding: 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
#recovery-confirmation::backdrop { background: #27375566; }
#recovery-confirmation h2 { margin: 0; }
#recovery-confirmation p { margin: 12px 0 18px; }
#recovery-confirmation { position: fixed; inset: 0; margin: auto; height: max-content; max-height: 90vh; }
#recovery-confirmation .action-row { display: flex; justify-content: flex-end; gap: 8px; }
.device-recovery-page .recovery-result.is-error { color: #a62939; }
.device-recovery-page .recovery-workspace .table-scroll { overflow-x: auto; }
@media (max-width: 1240px) {
 .device-recovery-page .recovery-workspace { grid-template-columns: 1fr; }
}
