/* Staff control center — the user's Dashboard V18 reference, adapted to real Fraser work. */
:root{
  color-scheme:light;
  --canvas:#f1eef5;--surface:#ffffff;--raised:#eae5f1;
  --ink:#25222d;--muted:#6d657a;--line:#e5dfed;
  --blue:#624b94;--selected:#eee7fb;
  --danger:#a7334b;--success:#246a49;--warning:#8b5b16;
  --lilac:#c5b3e9;--pink:#ebc8e7;--sage:#cbe1d2;
  --chart-ink:#765ba9;--portal-gap:18px;
}
html{scrollbar-color:var(--scroll-thumb) #f1eef5;scrollbar-width:thin}
body{min-width:320px;background:var(--canvas);color:var(--ink)}
h1,h2,h3{text-wrap:balance}
p{max-width:75ch}
button{min-height:44px;border:1px solid var(--line);border-radius:999px;color:var(--ink);background:var(--surface);font-weight:500}
button:hover:not(:disabled){background:var(--soft);border-color:var(--line)}
button.primary{background:var(--primary);border-color:var(--primary);color:var(--surface)}
button.primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}
button.danger{background:var(--danger-soft);color:var(--danger);border-color:var(--line)}
button:disabled{opacity:.5}
a{color:var(--blue)}
a:hover{color:var(--blue)}
::selection{background:var(--selection);color:var(--selection-ink)}
:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
input,select,textarea{min-width:0;min-height:44px;background:var(--field);border-color:var(--line);border-radius:12px;color:var(--ink);caret-color:var(--blue)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input[type=checkbox]{accent-color:var(--blue)}
summary{cursor:pointer}
summary::marker{color:var(--muted);font-size:11px}
.skip-link{background:var(--primary);color:var(--surface);z-index:50}
.skip-link:hover{color:var(--surface)}
.preview-notice{margin:12px 30px 0 122px;padding:7px 14px;border-radius:10px;background:var(--selected);color:var(--muted);font-size:11px}
.control-header{min-height:84px;max-width:1680px;margin:0 30px 0 122px;padding:20px 0;gap:24px;border:0;flex-wrap:nowrap}
.control-brand{margin-right:auto;gap:18px}
.control-brand img{width:128px;height:auto;filter:brightness(0)}
.control-brand span{font-size:13px;font-weight:500;border-color:var(--line);padding-left:18px;color:var(--muted)}
.staff-account{gap:13px;color:var(--muted);font-size:12px;min-width:0}
.staff-account #staff-name{max-width:190px;overflow-wrap:anywhere}
.staff-account button{font-size:12px;padding:8px 13px;min-height:40px}
.control-header nav{position:fixed;inset:20px auto 20px 20px;width:76px;min-height:460px;margin:0;padding:25px 7px 16px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;background:var(--primary);border:1px solid var(--primary);border-radius:34px;z-index:20;overflow-y:auto;scrollbar-width:none}
.control-header nav::before{content:"";display:block;width:25px;height:25px;margin:0 0 14px;background:url('/assets/lythe-mark.svg') center/contain no-repeat}
.control-header nav button{width:60px;min-height:66px;margin:0;padding:9px 3px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;white-space:normal;border:0;border-radius:18px;background:transparent;color:var(--rail-text);font-size:10px;line-height:1.25;font-weight:500;text-align:center}
.control-header nav button:hover:not(:disabled){color:var(--surface);background:var(--rail-hover)}
.control-header nav button[aria-current=page]{background:var(--rail-selected);color:var(--rail-selected-ink)}
.control-header nav button .staff-icon{width:20px;height:20px;color:inherit}
#portal-main{max-width:1680px;margin:0 30px 0 122px;padding:8px 0 40px}
#portal-content{outline-offset:6px}
.surface-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px}
.surface-heading h1{font-size:28px;line-height:1.25;font-weight:600;letter-spacing:-.03em;margin:0 0 5px}
.surface-heading h1.icon-label{display:flex;gap:10px}
.surface-heading h1>.staff-icon{width:24px;height:24px;color:var(--icon)}
.surface-heading p{font-size:13px;color:var(--muted);margin:0}
.surface-actions{display:flex;flex-wrap:wrap;gap:8px}
.surface-actions button{font-size:12px}
.date-settings{flex:none;max-width:100%;font-size:12px;position:relative;z-index:4}
.date-settings>summary{min-height:42px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--surface);white-space:nowrap}
.date-settings>summary:hover{background:var(--soft);border-color:var(--line)}
.date-settings[open]{width:min(100%,480px)}
.date-settings[open]>summary{width:fit-content}
.date-popover{position:absolute;right:0;top:48px;width:480px;max-width:calc(100vw - 44px);padding:20px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:0 14px 36px #00000014}
.date-popover h2{font-size:14px;font-weight:550;line-height:1.4;margin:0 0 6px;letter-spacing:-.015em}
.date-popover .range-hint{font-size:12px;color:var(--muted);margin:0 0 16px}
.range-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}
.range-presets button{font-size:12px;padding:8px 9px;border-radius:10px;white-space:normal}
.range-presets button[aria-pressed=true]{background:var(--selected);border-color:var(--blue);color:var(--blue)}
.relative-range-form{display:grid;grid-template-columns:auto minmax(60px,1fr) minmax(90px,1fr) auto;gap:10px;align-items:center;margin:0 0 20px}
.relative-range-form label{font-size:12px;color:var(--ink);margin:0}
.relative-range-form input,.relative-range-form select{width:100%;margin:0;font-size:13px;padding:9px 10px}
.relative-range-form button{font-size:12px}
.date-settings .range-form{position:static;min-width:0;padding:18px 0 0;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
.range-form h2,.range-error{flex-basis:100%;grid-column:1/-1}
.range-error{color:var(--danger);font-size:12px;margin:0;line-height:1.5}
.range-error:empty{display:none}
.range-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.range-form label{font-size:12px;color:var(--muted);margin:0;flex:1;min-width:130px}
.range-form input{font-size:13px;margin-top:5px}
.range-form button{font-size:12px}
.overview-board{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(290px,1fr);align-items:start;gap:20px}
.overview-main,.overview-side{display:grid;gap:18px;min-width:0;align-content:start}
.overview-main{grid-template-columns:repeat(2,minmax(0,1fr))}
.team-banner{grid-column:1/-1;position:relative;overflow:hidden;min-height:164px;padding:25px 190px 24px 25px;border-radius:22px;background:linear-gradient(112deg,var(--banner-start) 0%,var(--banner-end) 100%);color:var(--banner-ink);isolation:isolate}
.team-banner h2{max-width:430px;margin:0 0 8px;font-size:26px;line-height:1.2;letter-spacing:-.035em;font-weight:600}
.team-banner p{max-width:48ch;margin:0 0 17px;font-size:12px;line-height:1.55;color:var(--banner-muted)}
.team-banner button{position:relative;z-index:2;min-height:36px;padding:7px 13px;background:var(--primary);color:var(--surface);border-color:var(--primary);font-size:11px;display:inline-flex;align-items:center;gap:7px}
.team-banner button:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}
.team-banner button .staff-icon{width:14px;height:14px}
.banner-art{position:absolute;right:-18px;top:-25px;width:215px;height:215px;z-index:-1;pointer-events:none}
.banner-art img{display:block;width:100%;height:100%;object-fit:contain}
.overview-summary{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0;padding:0;border:0}
.summary-value{min-width:0;min-height:118px;padding:18px 16px 16px;background:var(--surface);border-radius:18px}
.summary-value dt{font-size:11px;line-height:1.45;color:var(--muted);display:flex;align-items:center;gap:7px}
.summary-value dt>.staff-icon{width:15px;height:15px;color:var(--icon)}
.summary-value dd{margin:12px 0 0;font-size:30px;font-weight:550;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.summary-value dd small{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted)}
.data-section,.queue-card,.distribution-card,.throughput-card{min-width:0;background:var(--surface);border-radius:22px;padding:22px}
.data-section h2,.attention-section h2,.distribution-card h2,.throughput-card h2,.queue-card h2{font-size:16px;line-height:1.35;font-weight:600;letter-spacing:-.02em;margin:0 0 7px}
.data-section h3{font-size:14px;font-weight:550;line-height:1.4;margin:0 0 14px;letter-spacing:-.015em}
.data-section>p,.attention-section>p,.distribution-caption,.throughput-card>p,.queue-card>p{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 18px}
.overview-trend{grid-column:1/-1;margin:0;padding:22px 22px 15px}
.overview-trend h2{font-size:16px}
.trend-legend{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 16px;font-size:11px;color:var(--muted)}
.trend-legend span{display:flex;align-items:center;gap:6px}
.trend-legend i{width:7px;height:7px;border-radius:50%;background:var(--chart-primary)}
.trend-legend span:nth-child(2) i{background:var(--chart-secondary)}
.trend-bars{height:180px;display:flex;align-items:flex-end;gap:10px;border-bottom:1px solid var(--line);padding:12px 6px 0;overflow:hidden;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),var(--chart-grid) calc(25% - 1px),var(--chart-grid) 25%)}
.trend-day{flex:1;min-width:2px;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px}
.trend-bar{display:block;width:38%;max-width:29px;height:calc(var(--value)*1%);min-height:0;border-radius:7px 7px 0 0;background:var(--chart-primary);transform-origin:bottom;animation:control-bar-reveal .7s cubic-bezier(.22,1,.36,1) both}
.trend-bar.reports{background:var(--chart-secondary)}
.trend-axis{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:9px}
.trend-details{margin-top:12px;font-size:12px}
.trend-details summary{padding:9px 0;min-height:38px;width:fit-content;color:var(--blue)}
.trend-details table{margin-top:8px}
.numeric{text-align:right;font-variant-numeric:tabular-nums}
.data-section table{margin-top:10px}
.data-section th,.data-section td{padding:11px 9px}
.data-section th:first-child,.data-section td:first-child{padding-left:0}
.data-section td:first-child{min-width:120px}
.data-section .table-scroll{border-top:1px solid var(--line)}
.attention-section{margin:0;background:var(--surface);padding:22px;border-radius:22px}
.attention-section>p{margin-bottom:12px}
.attention-list{display:grid;gap:0}
.attention-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px 12px;padding:16px 0;border-bottom:1px solid var(--line)}
.attention-row:last-child{border:0;padding-bottom:0}
.attention-copy{display:flex;align-items:flex-start;gap:10px;min-width:0}
.attention-copy>.staff-icon{width:19px;height:19px;color:var(--icon);margin-top:1px}
.attention-copy>div{min-width:0}
.attention-copy h3{font-size:12px;line-height:1.4;font-weight:550;margin:0 0 3px}
.attention-copy p{font-size:10px;line-height:1.5;color:var(--muted);margin:0}
.attention-count{font-size:24px;font-weight:550;letter-spacing:-.04em;line-height:1.1;min-width:22px;text-align:right;font-variant-numeric:tabular-nums}
.attention-row button{grid-column:1/-1;justify-self:start;min-width:0;min-height:32px;padding:6px 10px;font-size:10px;margin-left:29px;border-color:var(--line);background:var(--soft);color:var(--blue);display:inline-flex;align-items:center;gap:6px}
.attention-row button:hover:not(:disabled){background:var(--selected);border-color:var(--line)}
.attention-row button>.staff-icon{width:13px;height:13px}
.queue-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.queue-dates{display:flex;gap:7px;align-items:center;justify-content:space-between}
.queue-dates>div,.queue-dates>span{flex:1;text-align:center;min-width:0;padding:8px 4px;border-radius:14px;font-size:10px;color:var(--muted)}
.queue-dates strong{display:block;font-size:13px;margin-top:6px;color:var(--ink)}
.queue-dates .is-today,.queue-dates [aria-current=date]{background:var(--primary);color:var(--rail-text)}
.queue-dates .is-today strong,.queue-dates [aria-current=date] strong{color:var(--surface)}
.distribution-card{position:relative}
.distribution-ring{width:154px;height:154px;display:block;margin:18px auto 15px;position:relative}
.distribution-ring svg{display:block;width:100%;height:100%;overflow:visible}
.distribution-ring circle{transition:stroke-dasharray .7s cubic-bezier(.22,1,.36,1)}
.distribution-total{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:32px;font-weight:550;letter-spacing:-.04em;line-height:1.1;font-variant-numeric:tabular-nums;pointer-events:none}
.distribution-total span,.distribution-total small{font-size:10px;font-weight:400;color:var(--muted);letter-spacing:0;margin-top:5px}
.distribution-legend{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.distribution-legend>li,.distribution-legend>div{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.distribution-legend i{width:7px;height:7px;border-radius:50%;flex:none;background:var(--segment,var(--chart-primary))}
.distribution-legend strong{margin-left:auto;color:var(--ink);font-size:12px;font-weight:550;font-variant-numeric:tabular-nums}
.distribution-caption{margin:16px 0 0;font-size:10px}
.throughput-values{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:18px 0}
.throughput-values>div{min-width:0}
.throughput-values strong{display:block;font-size:28px;line-height:1.1;font-weight:550;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.throughput-values span,.throughput-values small{font-size:10px;color:var(--muted);margin-top:5px;display:block}
.throughput-bar{display:flex;gap:4px;overflow:hidden;height:9px;border-radius:9px;background:var(--chart-track)}
.throughput-bar>span{height:100%;border-radius:9px;background:var(--segment,var(--chart-primary));min-width:0}
.overview-scope{font-size:11px;color:var(--muted);margin:16px 0 0}
.more-insights{border:0;margin-top:20px;background:var(--surface);border-radius:20px;padding:0 22px}
.more-insights>summary{padding:17px 0;min-height:54px;font-size:13px;color:var(--ink)}
.more-insights[open]>summary{margin-bottom:5px}
.insights-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:10px 0 18px}
.insights-grid .data-section{padding:0;border-radius:0;background:none}
.insights-grid .data-section h2{font-size:15px}
.coverage-details{border-top:1px solid var(--line);margin-top:16px}
.coverage-details>summary{padding:14px 0;min-height:46px;font-size:12px;color:var(--muted)}
.coverage-details[data-complete=false]>summary{color:var(--warning)}
.coverage{font-size:11px;line-height:1.6;color:var(--muted);padding:4px 0 15px;margin:0;overflow-wrap:anywhere}
.coverage p{margin:0 0 7px}
.coverage strong{color:var(--ink);font-weight:500}
.coverage time{white-space:normal}
.work-area{display:block;min-height:55vh;border:0}
.filter-panel{min-width:0;padding:20px 22px 0;background:var(--surface);border-radius:20px;margin-bottom:18px}
.filter-form{display:grid;gap:12px}
.filter-primary{display:grid;grid-template-columns:minmax(200px,1fr) minmax(160px,210px) auto auto;gap:14px;align-items:end;padding-bottom:2px}
.filter-form label{font-size:11px;color:var(--muted);margin:0;min-width:0}
.filter-form input,.filter-form select{font-size:13px;margin-top:6px;padding:10px 12px}
.filter-primary>.primary{min-width:100px;margin:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px}
.filter-primary>[data-clear-filters]{min-width:60px;font-size:12px}
.filter-form .filter-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}
.filter-advanced{border-top:1px solid var(--line)}
.filter-advanced>summary{padding:12px 0;min-height:44px;font-size:12px;color:var(--muted)}
.filter-extra{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:6px 0 24px}
.filter-extra>.filter-pair{grid-column:span 2}
.filter-extra .field-note,.filter-extra .filter-scope{grid-column:1/-1}
.filter-scope{color:var(--muted);font-size:11px;margin:0 0 16px}
.register-main{padding:20px 22px 2px;min-width:0;background:var(--surface);border-radius:22px}
.register-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;min-height:40px}
.register-toolbar p{font-size:12px;color:var(--muted);margin:0}
.register-toolbar button{font-size:11px;min-height:36px;padding:7px 12px}
.register-scroll{overflow:auto;min-width:0}
.register-table{font-size:13px;min-width:640px;border-collapse:separate;border-spacing:0}
.register-table th{background:var(--soft);font-size:11px;padding:12px 14px;color:var(--muted)}
.register-table th:first-child{border-radius:10px 0 0 10px}
.register-table th:last-child{border-radius:0 10px 10px 0}
.register-table td{padding:16px 14px;vertical-align:middle;white-space:normal;border-color:var(--line)}
.register-table td:first-child{min-width:190px;max-width:320px}
.register-table .record-link{display:inline-block;text-align:left;border:0;background:none;padding:0;min-height:42px;font-size:13px;line-height:1.5;color:var(--blue);border-radius:4px;text-decoration:underline;text-underline-offset:4px;font-weight:550;overflow-wrap:anywhere}
.register-table .record-link:hover{background:transparent;color:var(--blue)}
.register-table small{display:block;font-size:11px;color:var(--muted);overflow-wrap:anywhere;margin-top:3px}
.register-table .status{white-space:nowrap}
.register-table tbody tr:hover{background:var(--soft)}
.register-table tr[data-selected=true]{background:var(--selected)}
.register-table .row-meta{font-size:11px;color:var(--muted);white-space:nowrap}
.register-table time{white-space:nowrap}
.requested-age{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:4px 8px;border-radius:999px;font-weight:550;line-height:1.4;vertical-align:middle}
.requested-age::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.requested-age[data-age-band=green]{color:var(--success);background:var(--success-soft)}
.requested-age[data-age-band=yellow]{color:var(--warning);background:var(--warning-soft)}
.requested-age[data-age-band=red]{color:var(--danger);background:var(--danger-soft)}
.register-empty{padding:36px 0;border-block:1px solid var(--line)}
.register-empty h2{font-size:18px;margin:0 0 8px}
.register-empty p{color:var(--muted);font-size:13px;margin:0 0 18px}
.register-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:18px 0;font-size:11px;color:var(--muted)}
.register-pagination button{font-size:11px;min-height:36px}
.record-drawer{padding:0;margin:0;border:0;outline-offset:5px}
.record-drawer:empty{display:none}
.record-drawer .record-back{display:inline-flex;margin:0 0 16px;min-height:38px;font-size:12px;background:transparent;border-color:var(--line)}
.record-drawer .record-header{position:relative;display:flex;align-items:center;gap:22px;margin:0 0 18px;padding:28px;background:linear-gradient(108deg,var(--banner-start),var(--banner-end));border-radius:22px;min-height:116px}
.record-drawer .record-header h2{font-size:25px;line-height:1.2;letter-spacing:-.03em;margin:0 0 8px}
.record-drawer .record-header p{font-size:12px;color:var(--muted)}
.record-drawer>.record-section{padding:24px;background:var(--surface);border:0;border-radius:20px;margin-bottom:18px}
.record-drawer .record-section h3{font-size:15px;margin-bottom:18px}
.record-drawer form{max-width:850px}
.record-drawer .facts{max-width:none;gap:18px 30px}
.record-drawer .facts dt{font-size:11px;margin-bottom:6px}
.record-drawer .facts dd{font-size:13px}
.record-drawer .account-summary{margin:0 0 18px;padding:24px;background:var(--surface);border-radius:20px;grid-template-columns:repeat(3,minmax(0,1fr))}
.record-drawer>.tags{margin:0 0 18px}
.account-management{margin-top:18px}
.management-section,.account-references,.record-fold{border:0;background:var(--surface);border-radius:18px;margin-bottom:12px;padding:0 22px}
.management-section>summary,.account-references>summary,.record-fold>summary{min-height:55px;padding:16px 0;font-size:13px;font-weight:550}
.management-section[open]>summary,.account-references[open]>summary,.record-fold[open]>summary{margin-bottom:6px}
.management-section>div,.account-references>div,.record-fold-body{padding:2px 0 24px}
.management-section .record-section,.record-fold .record-section{padding:22px 0;border-top:1px solid var(--line);background:none;border-radius:0;margin:0}
.management-section .record-section:first-child,.record-fold .record-section:first-child{border-top:0;padding-top:0}
.management-section .record-section:last-child,.record-fold .record-section:last-child{padding-bottom:0}
.account-references dd{overflow-wrap:anywhere}
.account-references>div>.facts,.record-fold-body>.facts{padding:0}
.account-form{display:grid;gap:14px}
.account-form fieldset{display:grid;gap:14px;border:0;padding:0;margin:0;min-width:0}
.account-form>label,.account-form fieldset>label{margin:0;font-size:12px}
.account-form input,.account-form textarea,.account-form select{margin-top:6px}
.account-form .action-row{margin-top:4px}
.account-form .form-error:empty{display:none}
.account-form .form-error{margin:0}
.account-form fieldset:disabled{opacity:.65}
.account-form fieldset:disabled button{cursor:not-allowed}
.staff-note{padding:17px 0;border-bottom:1px solid var(--line);max-width:850px}
.staff-note:first-child{padding-top:0}
.staff-note p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 7px}
.staff-note>small{font-size:11px;color:var(--muted)}
.staff-note details{margin-top:7px}
.staff-note summary{min-height:42px;padding:10px 0;color:var(--blue);font-size:12px}
.note-command{margin-top:18px;border-top:1px solid var(--line);padding-top:18px}
.add-note{max-width:850px;margin-top:12px}
.add-note>summary{min-height:42px;padding:10px 0;color:var(--blue);font-size:12px}
.add-note[open]>summary{margin-bottom:7px}
.readonly-facts{margin-bottom:22px}
.tags{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);background:var(--selected);border-radius:99px;padding:5px 9px}
.tag>.staff-icon{width:12px;height:12px}
.data-empty{color:var(--muted);font-size:12px;padding:14px 0}
.pending-region{padding:32px 24px;color:var(--muted);min-height:200px;background:var(--surface);border-radius:22px}
.pending-region h2{font-size:17px;font-weight:500;color:var(--ink);margin:0 0 8px}
.pending-region p{font-size:13px}
.pending-lines{display:grid;gap:16px;margin-top:28px}
.pending-lines span{height:12px;background:var(--selected);width:85%;border-radius:6px}
.pending-lines span:nth-child(2){width:65%}
.pending-lines span:nth-child(3){width:74%}
.field-note{font-size:11px;color:var(--muted);margin:0;line-height:1.6}
.inline-warning{color:var(--warning);font-size:12px}
.publication-notice{font-size:12px;color:var(--muted);padding:15px 0;border-top:1px solid var(--line)}
.notice{background:var(--selected);color:var(--blue);border-radius:14px;font-size:12px}
.notice.warning{background:var(--warning-soft);color:var(--warning)}
.notice.error{background:var(--danger-soft);color:var(--danger)}
.mfa-notice{margin-bottom:20px}
.back-to-results{display:none}
.operation-error{padding:22px;background:var(--danger-soft);border-radius:18px;color:var(--danger)}
.operation-error p{margin:0 0 14px;font-size:13px}
.status{padding:5px 9px;background:var(--chart-track);color:var(--muted);border-radius:999px;font-size:10px;line-height:1.4}
.status::before{width:5px;height:5px}
.status[data-state=pending-review],.status[data-state=Queued],.status[data-state=draft]{color:var(--warning);background:var(--warning-soft)}
.status[data-state=approved],.status[data-state=Resolved],.status[data-state=published],.status[data-state=active]{color:var(--success);background:var(--success-soft)}
.status[data-state=rejected],.status[data-state=urgent],.status[data-state=Blocked],.status[data-state=suspended]{color:var(--danger);background:var(--danger-soft)}
.status[data-state=needs-information],.status[data-state="In progress"]{color:var(--blue);background:var(--selected)}
.document-list strong{font-size:13px}
.document-list small{font-size:11px}
.document-list li{border-color:var(--line)}
.document-list strong.icon-label{display:flex;gap:8px}
.document-list a{display:inline-flex;align-items:center;gap:7px;font-size:12px}
.document-list a>.staff-icon{width:15px;height:15px}
#toast:not(:empty){background:var(--primary);color:var(--surface);border-radius:14px;box-shadow:0 8px 30px #0000001f}
.staff-icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle;pointer-events:none}
.icon-label{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;max-width:100%;min-width:0}
.icon-label>span{min-width:0}
.icon-label>.staff-icon{color:var(--icon)}
#signout,.record-back,[data-refresh]{display:inline-flex;align-items:center;justify-content:center;gap:7px}
#signout .staff-icon{width:15px;height:15px;color:inherit}
.facts dt>.staff-icon,.field-label>.staff-icon{width:14px;height:14px}
.field-label{gap:6px}
summary .icon-label{gap:7px}
summary .staff-icon{width:16px;height:16px}
.record-drawer h3>.staff-icon{width:18px;height:18px}
button[data-busy=true]>.staff-icon{display:none}
.register-main[data-detail-open=true]{padding:0;background:transparent;border-radius:0}
.register-main[data-detail-open=true]>.register-toolbar,.register-main[data-detail-open=true]>.register-pagination,.register-main[data-detail-open=true]>.register-message,.register-main[data-detail-open=true]>#register-results,.register-main[data-detail-open=true]>#register-coverage,.work-area[data-detail-open=true]>.filter-panel{display:none}
.register-main[data-detail-open=true]>.record-drawer{margin:0;border:0;padding:0}
@media(min-width:1800px){.control-header,#portal-main{margin-left:auto;margin-right:auto;width:calc(100% - 200px);max-width:1640px}.control-header nav{left:max(20px,calc((100vw - 1800px)/2 + 20px))}.preview-notice{margin-left:auto;margin-right:auto;max-width:1640px;width:calc(100% - 200px)}}
@media(max-width:1240px){.overview-board{grid-template-columns:minmax(0,1.8fr) minmax(278px,1fr);gap:16px}.overview-main,.overview-side{gap:16px}.overview-summary{gap:10px}.summary-value{padding:17px 13px}.summary-value dt{font-size:10px;gap:5px}.summary-value dd{font-size:28px}.team-banner{padding-right:150px}.team-banner h2{font-size:23px}.banner-art{width:190px;height:190px;top:-6px;right:-20px}.attention-section,.distribution-card,.throughput-card,.queue-card{padding:20px}}
@media(max-width:1050px){.control-header,#portal-main{margin-left:114px;margin-right:22px}.preview-notice{margin-left:114px;margin-right:22px}.control-brand span{display:none}.overview-board{grid-template-columns:minmax(0,1fr)}.overview-side{grid-template-columns:repeat(2,minmax(0,1fr))}.attention-section{grid-column:1/-1}.attention-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.attention-row{padding:13px 0 0;border:0;border-right:1px solid var(--line);padding-right:14px}.attention-row:last-child{border:0;padding-right:0}.attention-row button{margin-left:0;font-size:10px}.attention-copy{gap:8px}.attention-copy>.staff-icon{width:17px;height:17px}.attention-count{font-size:22px}.summary-value dt{font-size:11px}.team-banner{padding-right:180px}.team-banner h2{font-size:25px}.banner-art{width:215px;height:215px;top:-25px;right:-18px}.filter-extra{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-extra>.filter-pair{grid-column:auto}.record-drawer .account-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.preview-notice{margin:10px 14px 0;padding:7px 10px;font-size:10px}.control-header{position:relative;flex-wrap:wrap;min-height:0;margin:0;padding:17px 16px 0;gap:15px 12px}.control-brand img{width:118px}.control-brand span{display:none}.staff-account{margin-left:auto;gap:8px;font-size:10px}.staff-account #staff-name{max-width:112px}.staff-account button{min-height:38px;padding:7px 10px;font-size:10px}.control-header nav{position:static;inset:auto;width:100%;min-height:0;max-height:none;order:3;flex-basis:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:5px;margin:0;padding:6px;border:0;border-radius:19px;background:var(--primary);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--muted) var(--primary)}.control-header nav::before{display:none}.control-header nav button{width:auto;flex:0 0 auto;min-height:44px;padding:9px 12px;display:flex;flex-direction:row;gap:6px;border-radius:13px;white-space:nowrap;font-size:11px;line-height:1.3}.control-header nav button .staff-icon{width:17px;height:17px}.control-header nav button[aria-current=page]{background:var(--rail-selected)}.control-header nav button span{white-space:nowrap}#portal-main{margin:0;padding:24px 16px 32px}.surface-heading{align-items:flex-start;flex-wrap:wrap;gap:15px;margin-bottom:18px}.surface-heading h1{font-size:25px}.surface-heading h1>.staff-icon{width:21px;height:21px}.surface-heading p{font-size:12px}.date-settings{font-size:11px}.date-settings>summary{min-height:40px;padding:9px 12px}.date-settings[open]{width:100%}.date-settings .date-popover{position:static;width:100%;max-width:none;margin-top:12px;padding:18px;box-shadow:none}.date-settings .range-form{width:100%}.date-popover .range-form label{flex-basis:calc(50% - 6px)}.date-popover .range-form .primary{width:100%}.relative-range-form input,.relative-range-form select{font-size:16px}.range-presets{gap:7px}.range-presets button{font-size:11px;padding-inline:6px}.relative-range-form{gap:8px;grid-template-columns:auto minmax(55px,1fr) minmax(86px,1fr) auto}.date-settings .range-form label{min-width:100px}.range-form input{font-size:16px}.overview-board{gap:16px}.overview-main,.overview-side{gap:14px}.team-banner{min-height:170px;padding:22px 112px 22px 22px;border-radius:20px}.team-banner h2{font-size:23px;max-width:340px}.team-banner p{font-size:11px;max-width:37ch}.banner-art{right:-38px;top:-2px;width:170px;height:170px}.overview-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.summary-value{min-height:110px;padding:17px}.summary-value dt{font-size:11px}.summary-value dd{font-size:31px;margin-top:12px}.overview-side{grid-template-columns:minmax(0,1fr)}.attention-list{display:block}.attention-section{grid-column:auto}.attention-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:15px 0;border-right:0;border-bottom:1px solid var(--line)}.attention-row:last-child{padding-top:15px}.attention-copy{gap:10px}.attention-copy>.staff-icon{width:19px;height:19px}.attention-copy h3{font-size:12px}.attention-copy p{font-size:11px}.attention-row button{margin-left:29px;min-height:36px;font-size:11px}.attention-count{font-size:25px}.data-section,.queue-card,.distribution-card,.throughput-card,.attention-section{padding:20px;border-radius:20px}.overview-trend{padding:20px 20px 14px}.trend-bars{height:170px;gap:5px}.trend-day{gap:3px}.trend-bar{border-radius:5px 5px 0 0}.trend-legend{font-size:10px;gap:15px}.trend-axis{font-size:9px}.more-insights{padding:0 20px;margin-top:16px}.insights-grid{grid-template-columns:1fr;gap:24px}.filter-panel{padding:18px 18px 0;border-radius:19px}.filter-primary{grid-template-columns:1fr 1fr;gap:12px}.filter-primary>label{grid-column:1/-1}.filter-primary>.primary,.filter-primary>[data-clear-filters]{min-width:0}.filter-extra{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.filter-extra>.filter-pair{grid-column:1/-1}.filter-form input,.filter-form select,.account-form input,.account-form select,.account-form textarea{font-size:16px}.register-main{padding:17px 16px 0;border-radius:19px}.register-toolbar{gap:12px;align-items:flex-start}.register-toolbar p{font-size:11px}.register-table{min-width:610px}.register-table th,.register-table td{padding:13px 12px}.record-drawer .record-header{padding:23px;gap:13px;flex-wrap:wrap;min-height:116px;border-radius:20px}.record-drawer .record-header h2{font-size:23px}.record-drawer>.record-section{padding:21px;border-radius:19px}.record-drawer .facts,.record-drawer .account-summary,.record-drawer .form-row{grid-template-columns:minmax(0,1fr)}.record-drawer .facts{gap:18px}.record-drawer .account-summary{padding:21px}.record-drawer .document-list li{flex-wrap:wrap;gap:7px 12px}.record-drawer .document-list a{white-space:normal}.management-section,.account-references,.record-fold{padding:0 20px;border-radius:17px}.register-pagination{justify-content:space-between}.record-drawer .request-title{flex-wrap:wrap}.distribution-ring{margin-top:15px}.distribution-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 18px}.distribution-caption{font-size:10px}}
@media(max-width:420px){.staff-account #staff-name{max-width:100px}.team-banner{padding-right:92px}.team-banner h2{font-size:21px}.banner-art{right:-48px;width:158px;height:158px;top:9px}.team-banner p{max-width:30ch}.filter-extra{grid-template-columns:minmax(0,1fr)}.filter-extra>.filter-pair{grid-column:auto;grid-template-columns:minmax(0,1fr)}.range-form button{width:100%}.summary-value{padding:16px 14px}.distribution-legend{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.trend-bar,.distribution-ring circle{transition:none}}
/* Real workload visualizations share the reference's compact panel grid. */
.metric-context,.summary-value>.metric-context{display:block;margin:9px 0 0;font-size:10px;font-weight:400;line-height:1.45;letter-spacing:0;color:var(--muted)}
.metric-2{background:var(--metric-tint)}.metric-3{background:var(--metric-pink)}
.queue-card-header h2{margin-bottom:0}
.queue-card-header>.staff-icon{width:16px;height:16px;color:var(--icon);flex:none}
.chart-period{font-size:10px;line-height:1.5;color:var(--muted);white-space:nowrap;padding:4px 9px;background:var(--soft);border-radius:99px}
.queue-dot{width:7px;height:7px;border-radius:50%;background:var(--chart-primary);flex:none;margin-top:6px}
.workload-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px;min-width:0}
.workload-row>.data-section{padding:22px;min-width:0}
.aging-bars{display:grid;gap:12px;margin:18px 0}
.aging-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);margin-bottom:5px}
.aging-label strong{font-size:11px;font-weight:550;color:var(--ink);font-variant-numeric:tabular-nums}
.aging-track{height:7px;background:var(--soft);border-radius:99px;overflow:hidden}
.aging-track>span{display:block;height:100%;width:var(--value);background:var(--chart-primary);border-radius:inherit}
.aging-row.is-old .aging-track>span{background:var(--chart-secondary)}
.aging-row.is-old .aging-label{color:var(--blue)}
.aging-card>button,.throughput-card>button{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:7px 11px;font-size:10px;background:var(--soft);color:var(--blue);border-color:var(--line)}
.aging-card>button>.staff-icon,.throughput-card>button>.staff-icon{width:13px;height:13px}
.distribution-visual{position:relative;width:156px;height:156px;margin:16px auto 20px}
.distribution-visual .distribution-ring{width:100%;height:100%;margin:0}
.distribution-total{inset:0;font-weight:400;letter-spacing:0}
.distribution-total strong{font-size:32px;font-weight:550;letter-spacing:-.04em}
.distribution-legend i{background:var(--series,var(--chart-primary))}
.throughput-values>span{min-width:0;color:var(--muted);font-size:11px;line-height:1.8}
.throughput-values strong{color:var(--ink);font-size:35px;margin-bottom:4px}
.throughput-bar>span{width:var(--value);background:var(--series,var(--chart-primary))}
.throughput-card>.distribution-caption{margin:12px 0 15px}
.attention-copy h3{font-size:13px}.attention-copy p{font-size:11px}.attention-row button{min-height:38px;font-size:11px}
@media(max-width:1240px){.workload-row{gap:16px}.workload-row>.data-section{padding:20px}.aging-card>button,.throughput-card>button{font-size:10px;padding-inline:9px}.attention-copy h3{font-size:12px}.attention-copy p{font-size:10px}}
@media(max-width:1050px){.attention-copy h3{font-size:12px}.attention-copy p{font-size:10px}.attention-row button{min-height:38px}.distribution-visual{width:162px;height:162px}}
@media(max-width:760px){.workload-row{grid-template-columns:minmax(0,1fr);gap:14px}.metric-context,.summary-value>.metric-context{font-size:10px}.attention-copy h3{font-size:13px}.attention-copy p{font-size:11px}.attention-row button,.aging-card>button,.throughput-card>button{min-height:44px;font-size:11px}.distribution-visual{width:170px;height:170px}.distribution-legend{grid-template-columns:minmax(0,1fr)}.aging-label{font-size:11px}}
/* Put the next action ahead of secondary analytics on compact screens. */
@media(max-width:700px){
  .overview-board{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
  .overview-main,.overview-side{display:contents}
  .overview-board .team-banner{order:1}
  .overview-board .overview-summary{order:2}
  .overview-board .attention-section{order:3}
  .overview-board .overview-trend{order:4}
  .overview-board .distribution-card{order:5}
  .overview-board .workload-row{order:6}
}

@keyframes control-bar-reveal{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.trend-bar{animation:none}}
/* Primary PM decisions are visible before the application detail sections. */
.application-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.application-actions .application-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 18px;border-radius:12px;font-size:13px;font-weight:550;background:var(--surface)}
.application-action>.staff-icon{width:19px;height:19px;color:inherit}
.application-actions [data-application-decision=approve]{color:var(--success);background:var(--success-soft);border-color:var(--success)}
.application-actions [data-application-decision=reject]{color:var(--danger);background:var(--danger-soft);border-color:var(--danger)}
.application-actions [data-application-decision=changes-requested],.application-actions [data-application-decision=reopen]{color:var(--blue);background:var(--soft);border-color:var(--line)}
.application-actions .application-action:hover:not(:disabled){background:var(--selected);border-color:currentColor}
.application-actions .application-action[aria-pressed=true]{outline:2px solid currentColor;outline-offset:2px}
.decision-requirement{font-size:12px;color:var(--muted);margin:14px 0 0;line-height:1.5}
.decision-form .decision-fields{border:0;border-top:1px solid var(--line);padding:22px 0 0;margin:22px 0 0;min-width:0;display:grid;gap:16px}
.decision-fields .decision-title{font-size:14px;font-weight:550;margin:0}
.decision-form .decision-fields label{margin:0;font-size:13px}
.decision-form .decision-fields textarea{margin-top:7px;min-height:96px}
.decision-fields .check-label{align-items:flex-start}
.decision-fields .action-row{margin-top:0}
.decision-fields button[type=submit]{min-height:44px;font-size:13px}
@media(max-width:760px){.application-actions{gap:10px;display:grid;grid-template-columns:minmax(0,1fr)}.application-actions .application-action{padding:12px 14px;min-height:48px;width:100%}.decision-form .decision-fields textarea{font-size:16px}}
