:root{color-scheme:light;--ink:#192b3c;--muted:#536578;--line:#d4dfe8;--blue:#175892;--paper:#fff;--bg:#f2f5f8;--red:#a32323}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--ink);background:var(--bg);font:16px/1.55 system-ui,-apple-system,"Noto Sans JP",sans-serif}header{display:flex;align-items:center;gap:20px;padding:16px 24px;background:var(--paper);border-bottom:1px solid var(--line);flex-wrap:wrap}header strong{font-size:1.2rem}header label{margin-left:auto;display:flex;align-items:center;gap:8px}header select{width:auto}main{max-width:1160px;margin:24px auto;padding:0 24px}nav{display:flex;gap:6px;flex-wrap:wrap;padding:14px 24px;background:#e4ecf3;border-bottom:1px solid var(--line)}nav button{color:var(--blue);background:white}nav button[aria-current="page"]{color:white;background:var(--blue)}h1{font-size:1.7rem;margin:0 0 14px}h2{font-size:1.2rem;margin:0 0 10px}p{margin:10px 0}label{display:block;margin:10px 0;font-weight:600}input,select{display:block;width:100%;padding:9px 10px;font:inherit;color:var(--ink);background:white;border:1px solid #a9bac9;border-radius:5px;margin-top:4px}button,a{touch-action:manipulation}button{padding:9px 14px;border:1px solid var(--blue);border-radius:5px;background:var(--blue);color:white;font:inherit;cursor:pointer}button.secondary{color:var(--blue);background:white}button.danger{background:var(--red);border-color:var(--red)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e4a50a;outline-offset:3px}a{color:var(--blue)}article,details{padding:18px;margin:20px 0;background:white;border:1px solid var(--line);border-radius:8px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid article{margin:12px 0}.muted{color:var(--muted)}.warning{padding:14px;background:#fff7e4;border-left:4px solid #ad7900;border-radius:4px}.context{padding:10px;background:#e6eff7;overflow-wrap:anywhere}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.toolbar label{flex:1;min-width:180px}.toolbar button{margin-bottom:10px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:6px;background:white}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#eaf0f5}td small{display:block;overflow-wrap:anywhere;color:var(--muted)}td button{font-size:.85rem;padding:6px 8px;margin:4px 4px 0 0}td select{min-width:120px;font-size:.85rem}#notice{padding:12px 16px;border-left:4px solid var(--blue);background:#e8f2fb;margin-bottom:18px;overflow-wrap:anywhere}#notice[data-kind="error"]{border-color:var(--red);background:#fff0f0}#notice[data-kind="success"]{border-color:#237747;background:#e7f5ed}form:not(.toolbar){max-width:600px}form>button{margin-top:10px}dl{display:grid;grid-template-columns:160px 1fr;gap:8px;background:white;border:1px solid var(--line);padding:16px;border-radius:6px}dt{font-weight:600}dd{margin:0;overflow-wrap:anywhere}pre{font-size:.85rem;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}summary{cursor:pointer;font-weight:600}.login-card{max-width:600px;margin:40px auto;padding:28px;background:white;border:1px solid var(--line);border-radius:8px}.login-card details{padding:14px}.login-card h1{margin-bottom:10px}dialog{max-width:560px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:8px;padding:24px}dialog::backdrop{background:#172c46aa}#confirm-message{white-space:pre-line;overflow-wrap:anywhere}@media(max-width:700px){header{gap:10px;padding:12px}header label{margin-left:0}header #actor{width:100%;overflow-wrap:anywhere}main{margin:16px auto;padding:0 12px}.grid{grid-template-columns:1fr;gap:0}nav{padding:10px}.login-card{margin:16px 12px;padding:20px}dl{grid-template-columns:1fr;gap:2px}dd{margin-bottom:10px}.toolbar{display:block}.toolbar label{width:100%}.toolbar button{margin-right:8px}th,td{padding:8px}}
.banner{max-width:1112px;margin:18px auto!important}
.table-wrap td{overflow-wrap:anywhere}.table-wrap table{table-layout:auto}.table-wrap th{width:auto}.table-wrap td:nth-child(2),.table-wrap td:nth-child(3){white-space:normal}textarea{display:block;width:100%;padding:9px 10px;font:inherit;border:1px solid #a9bac9;border-radius:5px;margin-top:4px}.checkbox{display:flex;gap:8px;align-items:center}.checkbox input{width:auto}#organization-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}#organization-summary dl{grid-template-columns:140px 1fr;font-size:.9rem}#operation-rows button{margin-left:8px}
table{table-layout:fixed;min-width:950px}th:nth-child(1){width:30%}th:nth-child(2){width:10%}th:nth-child(3){width:10%}th:nth-child(4){width:20%}th:nth-child(5){width:30%}td:nth-child(2),td:nth-child(3){white-space:nowrap}td small{white-space:pre-line}
html{scrollbar-gutter:stable}.is-loading{overflow:hidden}.loading-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#192b3c66;overscroll-behavior:contain}.loading-card{display:flex;align-items:center;gap:16px;padding:24px 32px;border-radius:10px;background:var(--paper);box-shadow:0 8px 40px #192b3c44}.spinner{width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:loading-spin .8s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}.banner{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-height:40vh;overflow:auto;z-index:900;margin:0!important;box-shadow:0 4px 20px #192b3c33}.page-navigation{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.breadcrumbs{padding:0;border:0;background:none}.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0;list-style:none}.breadcrumbs li+li:before{content:'/';padding-right:8px;color:var(--muted)}[tabindex="-1"]{scroll-margin-top:20px}.page-navigation+article{margin-top:0}
.page-navigation{position:sticky;top:0;z-index:50;padding:10px 0;background:var(--bg);border-bottom:1px solid var(--line)}.breadcrumbs{min-width:0;flex:1}.breadcrumbs li{overflow-wrap:anywhere}[tabindex="-1"]{scroll-margin-top:100px}@media(max-width:700px){[tabindex="-1"]{scroll-margin-top:160px}}
.table-wrap .support-table{table-layout:auto}.support-table th{width:auto}.support-table th:last-child,.support-table td:last-child{min-width:140px}.support-table button{white-space:nowrap}#tester-active{margin-left:8px}#organization-deactivation{max-width:600px}

#flower-link{display:inline-flex;align-items:center;padding:9px 14px;border:1px solid var(--blue);border-radius:5px;background:white;text-decoration:none}

/* Staff console and public account pages share a readable, local design system. */
:is(.staff-dashboard,.login-page){--ink:#172033;--muted:#617089;--line:#e0e6ef;--blue:#4f46e5;--paper:#fff;--bg:#f8fafc;--red:#be123c;color:var(--ink);background:var(--bg);font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;font-feature-settings:"cv02","cv03","cv04","cv11"}
:is(.staff-dashboard,.login-page) :is(h1,h2,h3){color:#111b2e;line-height:1.35}
:is(.staff-dashboard,.login-page) h1{font-size:28px;letter-spacing:-.6px;margin:0 0 6px;font-weight:700}
:is(.staff-dashboard,.login-page) h2{font-size:18px;letter-spacing:-.2px;margin:0;font-weight:650}
:is(.staff-dashboard,.login-page) h3{font-size:16px;margin:0;font-weight:650}
:is(.staff-dashboard,.login-page) p{margin:10px 0;color:var(--muted)}
:is(.staff-dashboard,.login-page) label{font-size:14px;font-weight:550;color:#344259;margin:0 0 20px}
:is(.staff-dashboard,.login-page) :is(input,select,textarea){display:block;width:100%;min-height:42px;padding:9px 12px;margin:6px 0 0;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:14px;line-height:1.5}
:is(.staff-dashboard,.login-page) :is(input,textarea)::placeholder{color:#73829a}
:is(.staff-dashboard,.login-page) button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #4f46e5;border-radius:7px;min-height:39px;padding:8px 14px;background:var(--blue);color:#fff;font:inherit;font-size:14px;font-weight:550;line-height:1.5;cursor:pointer;transition:background .15s,border-color .15s}
:is(.staff-dashboard,.login-page) button:hover:not(:disabled){background:#4338ca;border-color:#4338ca}
:is(.staff-dashboard,.login-page) button.secondary{color:#475569;background:#fff;border-color:#cbd5e1}
:is(.staff-dashboard,.login-page) button.secondary:hover:not(:disabled){background:#f1f5f9;border-color:#a5b4c9}
.staff-dashboard button.dark{color:#fff;background:#111b2e;border-color:#111b2e}
.staff-dashboard button.dark:hover:not(:disabled){background:#263449;border-color:#263449}
.staff-dashboard button.danger{background:#e11d48;border-color:#e11d48;color:#fff}
.staff-dashboard button.danger:hover:not(:disabled){background:#be123c;border-color:#be123c}
.staff-dashboard button.caution{background:#fffbeb;color:#92400e;border-color:#fcd77e}
.staff-dashboard button.caution:hover:not(:disabled){background:#fef3c7;border-color:#fbbf24}
:is(.staff-dashboard,.login-page) button:disabled{opacity:.45;cursor:not-allowed}
:is(.staff-dashboard,.login-page) :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}
:is(.staff-dashboard,.login-page) [tabindex="-1"]:focus{outline:none}
:is(.staff-dashboard,.login-page) :is(article,details){background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px #17203304}
.staff-dashboard article{margin:24px 0;padding:24px}
:is(.staff-dashboard,.login-page) details{margin:24px 0;padding:0;overflow:hidden}
:is(.staff-dashboard,.login-page) summary{padding:18px 22px;cursor:pointer;font-size:14px;font-weight:600;list-style:none}
:is(.staff-dashboard,.login-page) summary::-webkit-details-marker{display:none}
:is(.staff-dashboard,.login-page) summary:before{content:'›';display:inline-block;margin-right:12px;color:#8492a6;font-size:21px;line-height:1;vertical-align:-1px}
:is(.staff-dashboard,.login-page) details[open]>summary:before{transform:rotate(90deg)}
:is(.staff-dashboard,.login-page) details[open]>summary{border-bottom:1px solid #edf1f6;background:#fbfcfe}
:is(.staff-dashboard,.login-page) details>p,:is(.staff-dashboard,.login-page) details>form,:is(.staff-dashboard,.login-page) details>div,:is(.staff-dashboard,.login-page) details>pre{margin:20px 24px}
:is(.staff-dashboard,.login-page) form:not(.toolbar){max-width:680px}
:is(.staff-dashboard,.login-page) form>button{margin-top:6px}
:is(.staff-dashboard,.login-page) .checkbox{display:flex;align-items:flex-start;gap:9px;font-weight:400}
:is(.staff-dashboard,.login-page) .checkbox input{min-height:0;width:auto;margin-top:6px;accent-color:var(--blue);flex-shrink:0}
:is(.staff-dashboard,.login-page) fieldset{border:1px solid var(--line);border-radius:8px;padding:20px;margin:20px 0}
:is(.staff-dashboard,.login-page) legend{padding:0 6px;font-size:14px;font-weight:600}
.ui-icon{width:17px;height:17px;flex:none;vertical-align:-3px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Copy controls keep full identifiers selectable and provide local, accessible feedback. */
.copy-value{display:inline-flex;align-items:center;gap:6px;max-width:100%;vertical-align:middle;line-height:1.5;white-space:normal}
.copy-text{min-width:0;overflow-wrap:anywhere;user-select:text}
.staff-dashboard .copy-button,.staff-dashboard .toolbar .copy-button{flex:none;min-width:28px;min-height:28px;width:28px;height:28px;margin:0;padding:5px;border:1px solid transparent;border-radius:5px;background:transparent;color:#64748b;vertical-align:middle}
.staff-dashboard .copy-button:hover:not(:disabled){background:#eef2ff;border-color:#c7d2fe;color:#4338ca}
.staff-dashboard .copy-button[data-copied]{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.copy-button svg{width:16px;height:16px}
.member-identifiers>span{display:block;line-height:1.8}
.identifier-label{font-family:inherit;color:var(--muted)}
.copy-input{position:relative}
.staff-dashboard .copy-input input{padding-right:42px}
.staff-dashboard .copy-input>.copy-button{position:absolute;right:7px;bottom:7px}
.copy-feedback{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1300;max-width:calc(100vw - 32px);padding:12px 18px;background:#ecfdf5;border:1px solid #6ee7b7;color:#065f46;border-radius:8px;box-shadow:0 6px 24px #17203320;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;pointer-events:none}
.copy-feedback:empty{display:none}
.copy-feedback[data-kind=error]{background:#fff1f2;border-color:#fda4af;color:#9f1239}
.skip-link{position:fixed;top:10px;left:16px;z-index:1200;visibility:hidden;padding:10px 16px;background:white;border:2px solid var(--blue);border-radius:7px}
.skip-link:focus{visibility:visible}
/* The supplied topbars/ reference controls both header rows on every staff page. */
.staff-dashboard #app-shell{min-height:100vh}
.staff-dashboard #dashboard{min-height:calc(100vh - 64px);display:flex;flex-direction:column}
.staff-dashboard .staff-header{position:sticky;top:0;z-index:120;display:flex;align-items:center;flex-wrap:nowrap;justify-content:space-between;gap:24px;min-height:64px;padding:10px 24px;background:white;border-bottom:1px solid #edf1f6}
.staff-brand{flex:none;color:#111b2e;text-decoration:none}
.staff-dashboard .staff-brand strong{font-size:18px;letter-spacing:-.3px;white-space:nowrap}
.staff-actions{display:flex;align-items:center;gap:16px;min-width:0}
.staff-dashboard .staff-header .language-control{position:relative;display:flex;align-items:center;margin:0;gap:0}
.staff-dashboard .language-control>.ui-icon{position:absolute;left:12px;pointer-events:none;color:#52627c}
.staff-dashboard .staff-header select{width:auto;min-width:150px;min-height:40px;margin:0;padding-left:37px;font-size:14px;background:white}
.staff-profile{display:flex;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:16px;min-width:0}
.actor-avatar{display:grid;place-items:center;background:#111b2e;border-radius:50%;width:30px;height:30px;flex:none;color:#fff;font-size:13px;font-weight:600;box-shadow:0 0 0 3px #f1f5f9}
.staff-dashboard #actor{font-size:12px;color:#25334a;line-height:1.45;white-space:pre-line;max-width:225px;overflow-wrap:anywhere}
.staff-dashboard #logout{font-size:14px;white-space:nowrap;min-height:40px}
.staff-dashboard .staff-nav{position:sticky;top:64px;z-index:110;background:#fff;display:flex;align-items:center;flex-wrap:nowrap;gap:3px;padding:7px 24px;min-height:48px;border-bottom:1px solid var(--line);overflow:auto;scrollbar-width:thin}
.staff-dashboard .staff-nav button{display:flex;gap:7px;border:0;background:transparent;color:#475569;font-size:14px;font-weight:500;min-height:34px;padding:6px 12px;white-space:nowrap;flex:none;border-radius:6px}
.staff-dashboard .staff-nav .ui-icon{width:15px;height:15px;color:#8b9bb1}
.staff-dashboard .staff-nav button[aria-current=page],.staff-dashboard .staff-nav button[aria-current=page]:hover{color:white;background:#111b2e}
.staff-dashboard .staff-nav button[aria-current=page] .ui-icon{color:#dbe3ef}
.staff-dashboard .staff-nav button:hover:not([aria-current=page]){background:#f1f5f9;color:#111b2e}
.staff-dashboard #flower-link{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;flex:none;white-space:nowrap;border:1px solid #cbd5e1;background:#fff;border-radius:7px;color:#344259;font-size:13px;font-weight:550;padding:5px 12px;min-height:33px;text-decoration:none}
.staff-dashboard #flower-link:hover{background:#f8fafc}
.jump-search{position:relative;flex:1;max-width:500px;min-width:200px;margin:0 10px}
.staff-dashboard #jump-form{max-width:none}
.jump-input{position:relative;display:flex;align-items:center}
.jump-input>svg{position:absolute;left:12px;width:16px;height:16px;color:#8495ae;pointer-events:none}
.staff-dashboard #jump-query{min-height:36px;margin:0;padding:7px 36px 7px 36px;background:#f8fafc;border-color:#dfe6ef;font-size:13px}
.jump-input kbd{position:absolute;right:9px;pointer-events:none;font:12px ui-monospace,monospace;padding:1px 6px;border:1px solid var(--line);border-radius:4px;color:#7890b0;background:#f1f5f9}
.jump-popover{position:absolute;top:calc(100% + 10px);left:0;width:max(100%,420px);max-width:calc(100vw - 32px);max-height:65vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 35px #17203320;padding:18px;z-index:140}
.staff-dashboard .jump-popover p{font-size:14px;margin:0 0 12px}
.staff-dashboard #jump-results a{display:flex;flex-direction:column;gap:3px;padding:12px;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:7px;margin-top:8px;font-size:14px}
.staff-dashboard #jump-results a:hover,.staff-dashboard #jump-results a:focus{background:#eef2ff;border-color:#c7d2fe}
.jump-popover small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.staff-dashboard #jump-more{margin-top:12px}
/* Page structure and navigation. */
.staff-dashboard main{width:100%;max-width:1344px;flex:1;margin:0 auto;padding:26px 32px 40px}
.staff-dashboard .page-navigation{position:static;display:flex;align-items:center;gap:14px;background:transparent;border:0;margin:0 0 28px;padding:0}
.staff-dashboard #go-back{font-size:13px;min-height:31px;padding:4px 12px}
.staff-dashboard #go-back:before{content:'←'}
.staff-dashboard .breadcrumbs{font-size:13px;border:0;background:none;padding:0}
.staff-dashboard .breadcrumbs a{color:var(--muted);text-decoration:none}
.staff-dashboard .breadcrumbs a:hover{color:var(--blue);text-decoration:underline}
.staff-dashboard .breadcrumbs li:last-child{font-weight:600;color:#26344b}
.staff-dashboard .breadcrumbs li+li:before{color:#b7c4d5}
.staff-dashboard [tabindex="-1"]{scroll-margin-top:140px}
.staff-dashboard .page-description,.staff-dashboard [data-panel]>h1+p{font-size:15px;line-height:1.6;color:var(--muted);margin:4px 0 28px}
.staff-dashboard [data-panel].has-detail>:is(h1,.page-description,form,.filter-card,.table-wrap,.pagination,details,#directory-status,#tester-directory-status){display:none}
.staff-dashboard [data-panel=overview]>.scope-card{margin-top:0}
.staff-dashboard[data-current-page=overview] .page-navigation{display:none}
.card-heading{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:20px 24px;background:#fbfcfe;border-bottom:1px solid #edf1f6;border-radius:12px 12px 0 0}
.card-heading>div{min-width:0;flex:1}
.card-heading>h2,.card-heading>h3{flex:1}
.card-heading p{font-size:14px;margin:6px 0 0}
.card-heading .ui-icon{color:#6366f1}
.card-body{padding:24px}
.card-footer{display:flex;align-items:center;gap:12px;padding:18px 24px;border-top:1px solid #edf1f6;background:#fbfcfe;border-radius:0 0 12px 12px}
.staff-dashboard .text-button{padding:0;min-height:28px;color:var(--blue);background:transparent;border:0;justify-content:flex-start;font-size:14px}
.staff-dashboard .text-button:hover:not(:disabled){background:transparent;color:#3730a3;text-decoration:underline}
.badge{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border:1px solid transparent;border-radius:5px;width:fit-content;font-size:12px;line-height:1.5;font-weight:500;white-space:nowrap}
.badge-success{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.badge-success:before{content:'';width:5px;height:5px;border-radius:50%;background:#10b981}
.badge-danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.badge-warning{background:#fffbeb;border-color:#fde68a;color:#92400e}
.badge-neutral{background:#f1f5f9;border-color:#e2e8f0;color:#536178}
.badge-brand{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.badge-tester{background:#faf5ff;border-color:#e9d5ff;color:#7e22ce}
.record-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:400;color:#5f708a;overflow-wrap:anywhere}
.staff-dashboard .warning{padding:16px 20px;border:0;border-left:4px solid #f0a51a;background:#fffbeb;border-radius:0 9px 9px 0;font-size:14px;line-height:1.7;color:#854d0e;margin:24px 0}
.staff-dashboard .context{background:#f8fafc;border:1px solid var(--line);border-radius:7px;padding:14px 18px;color:#4c5f7e;font-size:14px;overflow-wrap:anywhere}
.positive{color:#047857}
/* Overview: the reference card hierarchy, using actual data only. */
.staff-dashboard .scope-card{padding:0;overflow:hidden;margin-bottom:26px}
.scope-heading{display:flex;align-items:center;gap:14px;padding:20px 24px;background:#fbfcfe;border-bottom:1px solid #edf1f6}
.scope-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:9px;background:#111b2e;color:#fff;font-size:17px;font-weight:700}
.entity-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.staff-dashboard .scope-heading p{margin:3px 0 0;font-size:12px}
.assigned-role{display:flex;gap:10px;align-items:center;margin-left:auto;color:var(--muted);font-size:13px}
.scope-metrics{display:grid;grid-template-columns:2fr 1fr}
.staff-dashboard #org-details{display:grid;grid-template-columns:1fr 1fr;border:0;border-radius:0;padding:0;margin:0;background:white}
.scope-metric,.scope-billing{padding:22px 24px;min-width:0}
.scope-metric{border-right:1px solid #edf1f6}
.scope-metric dt,.metric-label{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-bottom:8px}
.scope-metric dd,.scope-billing>strong{display:block;color:#111b2e;font-size:26px;line-height:1.25;font-weight:700;margin:0}
.metric-note{display:block;color:var(--muted);font-size:13px;margin-top:6px}
.staff-dashboard .scope-billing p{font-size:13px;margin:5px 0}
.staff-dashboard progress{display:block;width:100%;height:6px;border:0;border-radius:10px;overflow:hidden;accent-color:#4f46e5;background:#eef2f7;margin-top:12px}
.staff-dashboard progress::-webkit-progress-bar{background:#eef2f7}
.staff-dashboard progress::-webkit-progress-value{background:#4f46e5;border-radius:10px}
.staff-dashboard progress::-moz-progress-bar{background:#4f46e5;border-radius:10px}
.staff-dashboard .grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.staff-dashboard .support-cards article{position:relative;display:flex;align-items:flex-start;flex-direction:column;overflow:hidden;padding:26px 26px 0;margin:0}
.card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:8px;background:#eef2ff;color:#4338ca;margin-bottom:20px}
.card-icon svg{width:24px;height:24px;stroke-linecap:round;stroke-linejoin:round}
.tester-icon{color:#047857;background:#ecfdf5}
.card-tag{position:absolute;top:26px;right:26px;border-radius:16px}
.staff-dashboard .support-cards h2{margin-bottom:10px}
.staff-dashboard .support-cards p{font-size:14px;line-height:1.7;margin:0 0 20px;flex:1}
.card-facts{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:100%;border-top:1px solid #edf1f6;padding:18px 0 24px;font-size:14px}
.card-facts span{display:block;font-size:13px;color:var(--muted);margin-bottom:2px}
.card-facts strong{font-weight:600}
.support-cards .card-footer{margin:0 -26px;width:calc(100% + 52px)}
/* Filter cards, tables, identity rows, and actual cursor pagination. */
.filter-card{background:white;border:1px solid var(--line);border-radius:12px;margin:24px 0;overflow:hidden}
.staff-dashboard .toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px}
.staff-dashboard .toolbar label{min-width:150px;flex:1;margin:0}
.staff-dashboard .toolbar button{margin:0;min-height:42px}
.staff-dashboard [data-panel]>form.toolbar,.staff-dashboard .filter-card>form.toolbar{padding:20px;margin:0;background:white;border:1px solid var(--line);border-radius:12px}
.staff-dashboard .filter-card>form.toolbar{border:0;border-radius:0}
.staff-dashboard [data-panel]>form.toolbar{margin:24px 0 18px}
.staff-dashboard #directory-form label:first-child{flex:2}
.filter-summary{display:flex;justify-content:space-between;gap:16px;padding:12px 20px;border-top:1px solid #edf1f6;color:var(--muted);font-size:13px;flex-wrap:wrap;background:#fcfdff}
.staff-dashboard .filter-summary p{margin:0;color:#485a74}
.filter-summary>span{color:#617089}
.staff-dashboard [id$="-status"][role=status]:not(:empty){font-size:13px}
.staff-dashboard #target-form label:has(#target-id){flex:1.5;min-width:250px}
.staff-dashboard .member-filter #target-context{border:0;border-top:1px solid #edf1f6;border-radius:0;margin:0;padding:15px 20px;font-size:13px}
.staff-dashboard .table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px 10px 0 0;background:white}
.staff-dashboard table{width:100%;min-width:900px;border-collapse:collapse;table-layout:auto;font-size:14px}
.staff-dashboard th{background:#f8fafc;color:#53637c;border-bottom:1px solid var(--line);font-size:13px;font-weight:600;padding:14px 20px;white-space:nowrap;width:auto}
.staff-dashboard td{padding:20px;border-color:var(--line);vertical-align:top;line-height:1.6;white-space:normal}
.staff-dashboard tbody tr:last-child td{border-bottom:0}
.staff-dashboard tbody tr:hover{background:#fcfdff}
.staff-dashboard td:first-child{font-weight:550;color:#1d2a40}
.staff-dashboard th:last-child,.staff-dashboard td:last-child{text-align:right}
.table-identity{display:flex;align-items:flex-start;gap:12px;min-width:200px}
.table-avatar{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:7px;color:#4338ca;background:#eef2ff;font-size:13px;font-weight:650}
.table-identity>div{min-width:0}
.staff-dashboard .table-identity strong{display:inline;overflow-wrap:anywhere;font-size:14px;font-weight:600}
.table-identity .badge{margin-left:7px;font-size:11px}
.staff-dashboard td small{display:block;white-space:pre-line;overflow-wrap:anywhere;font-size:12px;color:#718096;font-weight:400;margin-top:5px;font-family:ui-monospace,SFMono-Regular,monospace}
.staff-dashboard td button{font-size:13px;min-height:33px;padding:5px 11px;margin:0}
.staff-dashboard .support-table td:last-child button{color:white;background:#111b2e;border-color:#111b2e;white-space:nowrap}
.staff-dashboard .support-table td:last-child button:after{content:'›';margin-left:3px}
.staff-dashboard .table-wrap>p{padding:28px;text-align:center;color:var(--muted)}
.staff-dashboard .seat-meter{width:110px;height:5px;margin-top:6px}
.plan-tag{display:inline-block;padding:3px 7px;font:12px/1.5 ui-monospace,SFMono-Regular,monospace;border:1px solid #e2e8f0;background:#f1f5f9;border-radius:5px;color:#53637c;overflow-wrap:anywhere}
.pagination{display:flex;align-items:center;gap:8px;justify-content:flex-end;padding:14px 20px;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;background:#fbfcfe;margin-bottom:24px}
.pagination-count{margin-right:auto}
.staff-dashboard .pagination p{font-size:13px;margin:0}
.staff-dashboard .pagination button{font-size:13px;background:#fff;border-color:#cbd5e1;color:#475569;min-height:33px;padding:5px 12px}
.staff-dashboard .pagination button:hover:not(:disabled){background:#eef2ff;border-color:#a5b4fc;color:#3730a3}
.staff-dashboard .member-directory{padding:0;overflow:hidden}
.member-directory .card-heading{justify-content:flex-start}
.member-directory .card-heading h2{flex:none;font-size:14px;text-transform:uppercase;letter-spacing:.8px}
.staff-dashboard .member-directory .table-wrap{border:0;border-radius:0}
.member-directory .pagination{margin:0;border-left:0;border-right:0;border-bottom:0;border-radius:0 0 12px 12px}
.staff-dashboard .member-table{min-width:1120px;table-layout:fixed}
.staff-dashboard .member-table th:first-child{width:34%}
.staff-dashboard .member-table th:nth-child(2){width:10%}
.staff-dashboard .member-table th:nth-child(3){width:10%}
.staff-dashboard .member-table th:nth-child(4){width:18%}
.staff-dashboard .member-table th:last-child{width:28%}
.member-table .table-avatar{background:#4338ca;color:#fff;border-radius:50%;width:40px;height:40px}
.staff-dashboard .member-table td:nth-child(4) small{font-family:inherit;font-size:13px;line-height:1.55;color:#52627c;margin-top:0}
.staff-dashboard .member-actions button{margin:5px 0 0 5px;font-size:12px;padding:4px 8px;min-height:30px}
.role-actions{display:flex;justify-content:flex-end;gap:6px;align-items:center}
.staff-dashboard .role-actions select{margin:0;font-size:13px;min-height:32px;width:auto;min-width:105px;padding:4px 8px}
.staff-dashboard .role-actions button{margin:0;white-space:nowrap;background:#eef2ff;color:#4338ca;border-color:#c7d2fe}
.staff-dashboard tr.search-match{background:#eef2ff;box-shadow:inset 3px 0 #4f46e5}
.staff-dashboard tr.search-match:focus{outline:2px solid #a5b4fc;outline-offset:-2px}
.staff-dashboard .invite-card{padding:0;overflow:hidden}
.invite-card .card-heading h2{font-size:17px}
.staff-dashboard .invite-card .context{margin-top:0}
.staff-dashboard #invite-form{padding-top:10px}
.staff-dashboard #invite-form label:first-child{flex:1.5}
.staff-dashboard #invite-form>button,.staff-dashboard #target-form>button[type=submit]{background:#111b2e;border-color:#111b2e}
.staff-dashboard .creation-card>summary{display:flex;align-items:center;font-size:17px;padding:22px 24px}
.creation-card>summary>.ui-icon{margin-right:8px;color:#4f46e5}
.staff-dashboard .creation-card>p{padding:14px 18px;background:#eff6ff;border:1px solid #dbeafe;border-radius:7px;color:#455b7c;font-size:14px}
.staff-dashboard #tester-form{max-width:none;display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}
.staff-dashboard #tester-form>label{margin:0}
.staff-dashboard #tester-form>button{grid-column:1/-1;justify-self:end;margin-top:0}
/* Entity records use a header, independent summary cards, and separate edit panels. */
.staff-dashboard #organization-detail{padding:0;margin:0;background:transparent;border:0;box-shadow:none}
.entity-header{display:flex;align-items:center;gap:16px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:26px;flex-wrap:wrap}
.entity-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:#111b2e;color:#fff;font-size:24px;font-weight:700;flex:none}
.entity-identity{min-width:0;flex:1}
.staff-dashboard #organization-title{font-size:26px;letter-spacing:-.5px;margin:0;overflow-wrap:anywhere}
.staff-dashboard #organization-badges{display:inline-flex;align-items:center;gap:8px}
.staff-dashboard #organization-id{margin:5px 0 0;font-size:13px}
.staff-dashboard .entity-actions{margin-left:auto;gap:8px;align-items:center}
.staff-dashboard .entity-actions button{font-size:13px;min-height:37px;padding:7px 11px}
.staff-dashboard #organization-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:0 0 26px;align-items:stretch}
.summary-card{min-width:0;border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}
.staff-dashboard .summary-card h3{font-size:16px;justify-content:flex-start;gap:10px}
.summary-card .card-heading>.ui-icon{color:#4f46e5}
.summary-card[data-summary=accessSummary] .card-heading>.ui-icon{color:#059669}
.summary-card .card-body{padding:8px 20px 20px}
.staff-dashboard dl{display:block;padding:0;border:0;border-radius:0;margin:0;background:transparent;font-size:14px}
.detail-row{display:grid;grid-template-columns:minmax(100px,43%) minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid #edf1f6;min-width:0}
.detail-row:last-child{border-bottom:0}
.staff-dashboard dt{font-weight:400;color:var(--muted);min-width:0}
.staff-dashboard dd{margin:0;min-width:0;overflow-wrap:anywhere;color:#25334b}
.summary-card dd{text-align:right}
.summary-card .detail-row{font-size:13px;gap:10px}
.summary-card .detail-row .record-id{font-size:12px}
.seat-usage{padding:8px 0 15px;border-bottom:1px solid #edf1f6;margin-bottom:2px}
.staff-dashboard .seat-usage p{font-size:13px;margin:8px 0;color:#465975}
.staff-dashboard .organization-edit-grid{display:grid;grid-template-columns:1fr;gap:24px;margin:24px 0}
.staff-dashboard .tester-detail .organization-edit-grid{grid-template-columns:1fr 1fr}
.staff-dashboard .organization-edit-grid>form,.staff-dashboard .organization-edit-grid>#organization-deactivation{padding:24px;max-width:none;background:#fff;border:1px solid var(--line);border-radius:12px;margin:0;align-self:start}
.staff-dashboard .organization-edit-grid h3{margin:-24px -24px 24px;padding:20px 24px;background:#fbfcfe;border-bottom:1px solid #edf1f6;border-radius:12px 12px 0 0;font-size:15px;text-transform:uppercase;letter-spacing:.6px}
.staff-dashboard .organization-edit-grid label{max-width:640px}
.staff-dashboard #organization-deactivation{border-color:#fecdd3}
.staff-dashboard #organization-deactivation h3{color:#9f1239;background:#fff7f8}
.staff-dashboard #organization-deactivation p{font-size:14px}
.staff-dashboard #prepare-transfer{background:white;color:#475569;border-color:#cbd5e1}
.staff-dashboard #ownership-transfer-form{max-width:none;background:white;padding:24px;border:1px solid var(--line);border-radius:12px;margin:22px 0}
.staff-dashboard #ownership-transfer-form label{max-width:640px}
.staff-dashboard #ownership-transfer-form h3{margin-bottom:12px}
.staff-dashboard #audit-filter-form{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;margin:24px 0}
/* Billing records and support policies. */
.staff-dashboard #billing-filter-form label{min-width:180px}
.staff-dashboard #billing-detail{padding:0;overflow:hidden}
.staff-dashboard #billing-detail>.card-body{padding:24px}
.staff-dashboard #billing-organization{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid #e0e7ff;background:#fafbff;border-radius:8px;padding:18px 20px;margin:0 0 24px}
.staff-dashboard #billing-organization h3{flex-basis:100%;font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}
.staff-dashboard #billing-organization p{flex:1;font-size:14px;color:#25334b;margin:0;overflow-wrap:anywhere}
.staff-dashboard #billing-organization button{font-size:13px}
.staff-dashboard #billing-summary>dl{border:1px solid var(--line);border-radius:8px;padding:5px 20px}
.billing-contact-card{margin:24px 0;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.billing-contact-card .card-body{padding:8px 20px}
.billing-contact-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}
.billing-contact-card .detail-row{display:flex;flex-direction:column;gap:6px;justify-content:flex-start}
.billing-contact-card dd{text-align:left}
.staff-dashboard #billing-summary>h3{margin:24px 0 10px}
.staff-dashboard #billing-summary>div dl{border:1px solid var(--line);border-radius:8px;padding:5px 20px;margin:12px 0}
.staff-dashboard #billing-detail form{max-width:none;border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
.staff-dashboard #billing-detail form>label,.staff-dashboard #billing-detail form>fieldset{max-width:720px}
.staff-dashboard #billing-detail form h3{margin-bottom:18px}
.staff-dashboard #sync-card{padding:0;overflow:hidden}
.staff-dashboard #sync-card>.card-body>p{font-size:14px;max-width:1000px}
.staff-dashboard #sync-form{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:none;margin-top:24px}
.staff-dashboard #sync-form>label{margin:0}
.staff-dashboard #sync-form>.checkbox,.staff-dashboard #sync-form>label:has([name=reason]){grid-column:1/-1}
.staff-dashboard #sync-form>button{grid-column:1/-1;justify-self:start}
.policy-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:24px;margin:24px 0}
.staff-dashboard .policy-grid article{margin:0;padding:24px}
.policy-grid h2{font-size:17px}
.staff-dashboard .policy-grid p,.policy-grid li{font-size:14px;line-height:1.75}
.policy-grid ol{padding-left:22px;color:#53637c}
.policy-grid li{padding:4px 0}
.policy-grid a{font-size:14px;font-weight:600}
/* Settings are stacked, as in the supplied screen. */
.staff-dashboard [data-panel=settings]{max-width:1040px;margin:0 auto}
.settings-grid{display:grid;grid-template-columns:1fr;gap:26px;margin-top:30px}
.staff-dashboard .settings-grid article{padding:0;overflow:hidden;margin:0}
.settings-grid .card-heading{align-items:center}
.staff-dashboard .settings-grid .card-body>p{margin:0 0 24px}
.staff-dashboard #settings-scope{font-size:13px}
.staff-dashboard #rename-form,.staff-dashboard #password-form{max-width:640px}
.staff-dashboard #refresh-staff{flex:none;min-height:34px;font-size:13px}
/* Notices and native confirmation dialogs retain their existing semantics. */
.staff-dashboard .operation-log{margin:28px 0 0}
:is(.staff-dashboard,.login-page) pre{font-size:12px;line-height:1.7;padding:18px;background:#172033;border-radius:8px;color:#e2e8f0;white-space:pre-wrap;overflow-wrap:anywhere}
.staff-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 32px;border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:13px}
.staff-footer strong{font-weight:600;color:#475569}
.staff-dashboard .banner{border:1px solid #c7d2fe;border-left:4px solid #6366f1;border-radius:9px;background:#eef2ff;padding:18px 22px;max-width:800px;font-size:15px;box-shadow:0 8px 30px #17203320}
:is(.staff-dashboard,.login-page) #notice[data-kind=error]{border-color:#fda4af;background:#fff1f2;color:#9f1239}
:is(.staff-dashboard,.login-page) #notice[data-kind=success]{border-color:#6ee7b7;background:#ecfdf5;color:#065f46}
.staff-dashboard dialog{border-radius:14px;padding:28px;border-color:var(--line);box-shadow:0 24px 70px #17203333}
.staff-dashboard dialog::backdrop{background:#17203377;backdrop-filter:blur(3px)}
.staff-dashboard dialog h2{font-size:22px}
.staff-dashboard dialog p{font-size:15px;line-height:1.7;white-space:pre-line;margin:20px 0 26px}
.staff-dashboard dialog .toolbar{justify-content:flex-end}
.staff-dashboard #confirm-dialog form{max-width:none}
/* Public sign-in and email-link screens use the same cards and typography. */
.login-page{min-height:100vh;display:flex;flex-direction:column}
.login-page header{padding:16px 28px;min-height:64px;gap:20px;background:#fff}
.login-page header strong{font-size:18px;letter-spacing:-.4px}
.login-page header label{display:flex;align-items:center;gap:10px;margin:0 0 0 auto;color:var(--muted);font-size:14px}
.login-page header select{width:auto;margin:0;font-size:14px;min-height:36px}
.login-page #staff-dashboard-link{font-size:14px}
.login-page .login-card{max-width:760px;width:calc(100% - 48px);margin:64px auto;padding:0;border:1px solid var(--line);border-radius:16px;box-shadow:0 2px 3px #17203305;overflow:hidden}
.login-page .public-heading{padding:32px 36px;border-bottom:1px solid #edf1f6}
.login-page .public-content{padding:12px 36px 32px}
.login-page #public-title{font-size:28px}
.login-page #staff-signin,.login-page #account-help{margin:24px 0;border-radius:12px}
.login-page #staff-signin>p,.login-page #account-help>p{font-size:14px;line-height:1.75}
.login-page #login-form,.login-page #help-form{max-width:none}
.login-page #staff-session-note{font-size:14px;line-height:1.8;border:1px solid var(--line);border-radius:9px;background:#f8fafc;padding:18px 20px;margin:24px 0 0}
.login-page #show-verification{margin:0 24px 24px;font-size:14px}
.login-page #verification{padding-top:10px}
.login-page #verification-intro{font-size:15px;line-height:1.8;margin:12px 0 24px}
.login-page #verify-form{max-width:none}
.login-page #verification-password-note,.login-page #verification-help{font-size:14px;line-height:1.75}
.login-page #verification-link-details{background:#fbfcfe}
.login-page #verification-link-details label{margin-left:24px;margin-right:24px}
.login-page #verification-link-details label:first-of-type{margin-top:20px}
.login-page #notice{border:1px solid #c7d2fe;border-radius:8px;padding:16px;margin:20px 0;white-space:pre-line;font-size:15px}
.login-page #verification-complete{padding:20px 0}
.login-page #signed-in-staff{font-size:14px;padding:16px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;color:#1d4ed8}
.login-page .staff-footer{margin-top:auto}
@media(min-width:1500px){.staff-dashboard .staff-header,.staff-dashboard .staff-nav{padding-left:32px;padding-right:32px}}
@media(max-width:1180px){
 .staff-dashboard .staff-header{gap:16px;min-height:64px}
 .staff-dashboard .staff-header select{min-width:110px}
 .staff-dashboard #actor{font-size:11px;max-width:180px}
 .staff-actions{gap:12px}.staff-profile{padding-left:12px}
 .jump-search{max-width:none;margin:0;min-width:180px}
 .staff-dashboard .staff-nav{top:64px}
 .staff-dashboard #organization-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .policy-grid{grid-template-columns:1fr 1fr}.policy-grid article:first-child{grid-column:1/-1}
 .staff-dashboard .entity-actions{flex-basis:100%;margin-left:68px}
}
@media(max-width:900px){
 .staff-dashboard .staff-header{flex-wrap:wrap;gap:12px;padding:12px 20px;position:static}
 .staff-brand{order:0}.staff-actions{order:1;margin-left:auto}.jump-search{order:2;flex-basis:100%;max-width:none}
 .staff-dashboard .staff-nav{top:0;padding:8px 20px}.staff-dashboard .staff-nav button{font-size:13px;padding:7px 10px}
 .staff-dashboard main{padding:24px 24px 36px}
 .jump-popover{width:100%;max-width:100%}
 .scope-metric,.scope-billing{padding:20px}.scope-heading{padding:20px}
 .assigned-role>span:first-child{display:none}
 .staff-dashboard #target-form label:has(#target-id){min-width:200px}
 .staff-dashboard .toolbar label{min-width:180px}
 .staff-dashboard #tester-form{grid-template-columns:1fr 1fr}
 .billing-contact-card dl{grid-template-columns:1fr 1fr}
 .staff-dashboard .grid{gap:20px}
 .staff-dashboard [tabindex="-1"]{scroll-margin-top:80px}
}
@media(max-width:640px){
 :is(.staff-dashboard,.login-page){font-size:15px}
 :is(.staff-dashboard,.login-page) h1{font-size:25px}
 .staff-dashboard .staff-header{padding:12px 16px;gap:12px 8px}
 .staff-dashboard .staff-brand strong{font-size:16px}
 .staff-dashboard .staff-header select{min-width:94px;padding-left:30px;font-size:12px;min-height:36px}
 .staff-dashboard .language-control>.ui-icon{left:9px;width:14px}
 .staff-actions{gap:8px}.staff-profile{display:none}
 .staff-dashboard #logout{font-size:12px;padding:6px 9px;min-height:36px}
 .staff-dashboard .staff-nav{padding:7px 16px}.staff-dashboard #flower-link{font-size:12px}
 .staff-dashboard main{padding:20px 16px 32px}
 .staff-dashboard .page-navigation{margin-bottom:24px;gap:10px}.staff-dashboard .breadcrumbs{font-size:12px}
 .staff-dashboard .page-description,.staff-dashboard [data-panel]>h1+p{font-size:14px;margin-bottom:22px}
 .staff-dashboard article{padding:20px}
 .staff-dashboard .grid,.staff-dashboard #organization-summary,.staff-dashboard .tester-detail .organization-edit-grid{grid-template-columns:1fr;gap:20px}
 .scope-heading{gap:10px;padding:18px}.scope-heading>div:first-of-type{min-width:0;flex:1}.assigned-role{margin-left:0}
 .scope-icon{width:36px;height:36px;font-size:15px}.scope-heading .entity-name{gap:7px}.scope-heading h2{font-size:18px}
 .staff-dashboard .scope-heading p{font-size:11px;word-break:break-all}
 .scope-metrics{grid-template-columns:1fr}.staff-dashboard #org-details{grid-template-columns:1fr 1fr}
 .scope-metric{padding:18px}.scope-metric dd{font-size:22px}.scope-metric dt{font-size:13px}.scope-metric:last-child{border-right:0}
 .scope-billing{padding:16px 18px;border-top:1px solid #edf1f6}.scope-billing>strong{font-size:24px}
 .staff-dashboard .support-cards article{padding:22px 22px 0}.support-cards .card-footer{margin:0 -22px;width:calc(100% + 44px);padding:16px 22px}.card-tag{top:22px;right:22px}
 .staff-dashboard .toolbar{display:flex;gap:14px}.staff-dashboard .toolbar label{flex-basis:100%;min-width:0}.staff-dashboard #target-form label:has(#target-id){min-width:0;flex-basis:100%}
 .staff-dashboard .filter-card>form.toolbar,.staff-dashboard [data-panel]>form.toolbar{padding:18px}
 .filter-summary{padding:12px 18px;font-size:12px;gap:6px}
 .staff-dashboard .table-wrap table{font-size:14px}.staff-dashboard th,.staff-dashboard td{padding:14px 16px}
 .pagination{padding:12px;flex-wrap:wrap}.pagination-count{flex-basis:100%}.staff-dashboard .pagination p{font-size:12px}.staff-dashboard .pagination button{min-height:37px}
 .staff-dashboard .member-directory{padding:0}
 .card-heading{padding:18px 20px}.card-body{padding:20px}.card-heading h2{font-size:17px}
 .staff-dashboard .invite-card{padding:0}
 .staff-dashboard #tester-form,.staff-dashboard #sync-form{grid-template-columns:1fr;gap:18px}.staff-dashboard #tester-form>button{justify-self:start}
 .staff-dashboard details>p,.staff-dashboard details>form,.staff-dashboard details>div,.staff-dashboard details>pre{margin:18px 20px}
 .staff-dashboard .creation-card>summary{padding:20px;font-size:16px}
 .entity-header{padding:20px;gap:12px}.entity-avatar{width:42px;height:42px;font-size:20px}
 .staff-dashboard #organization-title{font-size:24px}.staff-dashboard #organization-id{font-size:12px}
 .staff-dashboard .entity-actions{margin-left:0;gap:8px}.staff-dashboard .entity-actions button{font-size:13px;flex:1;white-space:nowrap}
 .staff-dashboard .organization-edit-grid>form,.staff-dashboard .organization-edit-grid>#organization-deactivation{padding:20px}
 .staff-dashboard .organization-edit-grid h3{margin:-20px -20px 20px;padding:18px 20px;font-size:14px}
 .staff-dashboard #organization-summary{margin-bottom:20px}
 .staff-dashboard .summary-card .card-heading{font-size:16px}.summary-card .card-body{padding:6px 18px 18px}
 .detail-row{grid-template-columns:minmax(90px,40%) minmax(0,1fr);gap:14px;font-size:13px}
 .staff-dashboard #billing-detail,.staff-dashboard #sync-card{padding:0}.staff-dashboard #billing-detail>.card-body{padding:20px}
 .staff-dashboard #billing-organization{padding:16px}.staff-dashboard #billing-organization button{width:100%}
 .billing-contact-card dl{grid-template-columns:1fr}
 .policy-grid{grid-template-columns:1fr;gap:20px}.staff-dashboard .policy-grid article{padding:20px}
 .staff-dashboard .settings-grid article{padding:0}.settings-grid .card-heading{flex-wrap:wrap;gap:16px}.settings-grid .card-heading>div{flex-basis:100%}
 .staff-footer{padding:18px 16px;font-size:12px;flex-wrap:wrap;gap:6px}
 .staff-dashboard dialog{padding:24px}.staff-dashboard dialog .toolbar{flex-wrap:nowrap}.staff-dashboard dialog .toolbar button{flex:1}
 .login-page header{padding:14px 16px;gap:12px}.login-page header strong{font-size:16px}.login-page header label>span{display:none}.login-page header select{font-size:13px}
 .login-page .login-card{width:calc(100% - 32px);margin:32px auto}.login-page .public-heading{padding:24px}.login-page .public-content{padding:0 20px 24px}.login-page #public-title{font-size:26px}
 .login-page details>form,.login-page details>p{margin:18px}.login-page summary{padding:18px;font-size:14px}.login-page #show-verification{margin:0 18px 18px}
}
@media(prefers-reduced-motion:reduce){:is(.staff-dashboard,.login-page) *{transition:none;scroll-behavior:auto}}

.context-helper{display:flex;gap:20px;align-items:center;justify-content:space-between}.staff-dashboard .context-helper p{margin:0;color:inherit;font-size:14px}.staff-dashboard .context-helper button{white-space:nowrap;color:#854d0e;text-decoration:underline;font-size:13px;flex:none}
:is(.staff-dashboard,.login-page) label:has(>input[required])>span:not(.sr-only):after{content:' *';color:#e11d48}
@media(max-width:640px){.context-helper{align-items:flex-start;flex-direction:column;gap:8px}}

.staff-dashboard .billing-tools{margin:24px 0;background:transparent;border:0;box-shadow:none;overflow:visible}
.staff-dashboard .billing-tools>summary{background:white;border:1px solid var(--line);border-radius:10px}
.staff-dashboard .billing-tools>#sync-card{margin:24px 0}
.staff-dashboard .billing-tools>.policy-grid{margin:24px 0}
.staff-dashboard:not(.has-billing-detail) .billing-tools>summary{display:none}
.staff-dashboard #review-decision-form>p{font-size:14px;margin:0 0 20px;max-width:720px}
.login-page.verification-mode .login-card{max-width:640px;margin-top:44px}
@media(max-width:640px){.login-page.verification-mode .login-card{margin-top:28px}}

.staff-dashboard .operation-log>summary{display:flex;align-items:center;gap:0}
.staff-dashboard .operation-log>summary>span:first-of-type{flex:1}
.audit-meta{margin-left:20px;color:#64748b;font:12px ui-monospace,SFMono-Regular,monospace;white-space:nowrap}
.staff-dashboard .company-detail .organization-edit-grid{grid-template-columns:1fr 1.3fr}
@media(max-width:760px){.staff-dashboard .company-detail .organization-edit-grid{grid-template-columns:1fr}}

/* RDDJ members can inspect records without management controls. */
.staff-dashboard.read-only [data-management],.staff-dashboard.read-only .member-actions>:is(button,div){display:none!important}
