/* Website admin UI only. Light source: wechat-account-design/index.html,
   independently authored prototype, ATTRIBUTION.md (2026-11-15).
   No external liquid-glass library, no business/navigation changes.
   Light palette/materials are copied from the selected prototype tokens.
   Dark content receives NO palette/material override. */
html:not(.tq-dark) body:has(.app-shell.admin-mode),
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode{
 --ap-ink:#17171b;--ap-ink-2:#3a3a42;--ap-muted:#5a5a64;
 --ap-accent:#45454b;--ap-press:#35353b;--ap-accent-soft:rgba(85,85,91,.16);
 --ap-glass:rgba(255,255,255,.16);--ap-strong:rgba(255,255,255,.36);
 --ap-blur:blur(10px) saturate(1.8);--ap-border:rgba(255,255,255,.55);
 --ap-edge:inset 0 1px 0 rgba(255,255,255,.78),inset 0 -1px 0 rgba(60,60,66,.14),inset 1px 0 0 rgba(255,255,255,.18),inset -1px 0 0 rgba(255,255,255,.1);
 --ap-shadow:0 8px 24px rgba(60,60,66,.08),0 1px 2px rgba(60,60,66,.04);
 --ap-line:rgba(70,70,76,.14);--ap-line-soft:rgba(70,70,76,.08);
 --ui-primary:#45454b;--ui-primary-rgb:85,85,91;--ui-primary-strong:#35353b;
 --ui-text:#17171b;--ui-text-rgb:23,23,27;--ui-primary-soft:rgba(85,85,91,.16);--ui-muted:#5a5a64;--ui-border:rgba(255,255,255,.55);
 --ui-surface:rgba(255,255,255,.36);--ui-surface-rgb:255,255,255;
 --ui-bg:#fff;--adm-muted:#5a5a64;--adm-muted-strong:#3a3a42;--adm-border:rgba(255,255,255,.55);
}
html:not(.tq-dark) body:has(.app-shell.admin-mode){
 background:#fff!important;
 background-attachment:fixed!important;color:var(--ap-ink);
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode,
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-module-layout,.admin-module-content,.admin-dashboard,.admin-system-page,.admin-points-codes){background:transparent!important;color:var(--ap-ink)}
/* The header's original entry order, destinations and click handlers stay intact.
   Dark uses the existing frontend tokens; only the omitted capsule hit-area is restored. */
html body .app-shell.admin-mode .admin-appbar :is(button,.invite-entry>summary){
 min-height:44px;max-width:100%;border-radius:999px!important;box-sizing:border-box;
 padding:8px 12px;line-height:1.4;white-space:normal;
 border:1px solid var(--ui-border);background:color-mix(in srgb,var(--ui-surface) 80%,transparent);
 box-shadow:inset 0 1px 0 rgba(var(--ui-surface-rgb),.24),0 2px 8px rgba(var(--ui-primary-rgb),.08);
 backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);
 transition:transform .16s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
html body .app-shell.admin-mode .admin-appbar button:not(:disabled):active{transform:scale(.97)}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-appbar,.admin-module-nav,.admin-mobile-nav-button){
 background:var(--ap-glass)!important;border:1px solid var(--ap-border)!important;
 backdrop-filter:var(--ap-blur)!important;-webkit-backdrop-filter:var(--ap-blur)!important;
 box-shadow:var(--ap-shadow),var(--ap-edge)!important;color:var(--ap-ink)!important;
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-appbar{border-radius:22px}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-nav{border-radius:22px!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-brand{background:transparent!important;color:var(--ap-ink)!important;border-color:var(--ap-line-soft)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-brand>span{background:var(--ap-strong)!important;color:var(--ap-accent)!important;box-shadow:var(--ap-edge)}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-module-nav-title,.admin-nav-bottom,.admin-page-heading>span,.muted,.small){color:var(--ap-muted)}
/* All cards, including totals / account / code blocks, share the same material. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.panel,.admin-system-card,.admin-site-card,.admin-subpanel,.admin-todo-card,.admin-inbox-list,.admin-user-card,.admin-ai-card,.admin-feedback-list,.admin-feedback-detail,.admin-detail-list,.acr-list,.acr-detail,.acr-rules-block,.admin-uc-card,.admin-filterbar,.acr-tools,.admin-choice-options,.admin-adjustment-plans>.list,.plan-review-workspace>nav,.plan-review-detail){
 background:var(--ap-glass)!important;border:1px solid var(--ap-border)!important;border-radius:22px!important;
 backdrop-filter:var(--ap-blur)!important;-webkit-backdrop-filter:var(--ap-blur)!important;
 box-shadow:var(--ap-shadow),var(--ap-edge)!important;color:var(--ap-ink);
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-inbox-row,.admin-detail-list>*,.admin-user-card-head,.admin-panel-heading,.admin-compact-head,.acr-detail-head){border-color:var(--ap-line-soft)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-subpanel-header,.admin-page-heading,.admin-compact-head,.admin-compact-toolbar,.admin-user-fields,.admin-ai-actions,.admin-inbox-row,.admin-case-table,.admin-feedback-layout,.admin-feedback-page,.admin-ai-custom,.admin-issue-grid,.admin-code-tools){background:transparent!important}
/* Native primary vs secondary semantics are retained, with prototype blue instead of teal. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-module-content button,.admin-appbar button,.admin-appbar .invite-entry>summary,.admin-module-nav button,.admin-mobile-nav-button){
 border-radius:999px!important;border:1px solid var(--ap-border)!important;min-height:44px;
 max-width:100%;box-sizing:border-box;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
 color:var(--ap-ink)!important;background:var(--ap-glass)!important;
 backdrop-filter:var(--ap-blur)!important;-webkit-backdrop-filter:var(--ap-blur)!important;
 box-shadow:var(--ap-edge)!important;
 transition:transform .16s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content button:not(.ghost):not(.secondary):not(.admin-text-button):not(.acr-conv):not(.rp-switch):not([role=tab]):not(.admin-choice-option):not(.admin-module-button):not(.admin-desktop-tabs button):not(.admin-tabs button):not(.admin-product-tabs button):not(.admin-inbox-stats button):not(.admin-user-tabs button):not(.admin-case-stage-pills button):not(.admin-filter-tabs button):not(.admin-adjustment-plans .tabs button):not(.admin-billing-nav button):not([aria-pressed]):not([aria-selected]):not(.plan-review-filter button):not(.plan-review-workspace nav button):not(.admin-detail-list button):not(.feedback-selectable-row button):not([data-tq-seg-ui] > button){
 background:linear-gradient(180deg,rgba(250,250,252,.64),rgba(222,222,226,.82))!important;
 color:#303034!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 8px 18px rgba(85,85,91,.22)!important;
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-module-button.active,button[aria-selected=true],button[aria-pressed=true],.admin-tabs button.active,.admin-desktop-tabs button.active,.admin-product-tabs button.active,.admin-case-stage-pills button.active,.admin-user-tabs button.active,.admin-filter-tabs button.active,.admin-billing-nav button.active):not([data-tq-seg-ui] > button){
 background:var(--ap-strong)!important;color:var(--ap-accent)!important;border-color:rgba(85,85,91,.35)!important;box-shadow:var(--ap-shadow),var(--ap-edge)!important;
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(button.danger,button.btn-danger,button.vc-void,.admin-user-danger button){background:rgba(253,236,234,.82)!important;color:#b3261e!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-module-button,.admin-text-button):hover{background:rgba(255,255,255,.55)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode button:not(:disabled):active{transform:scale(.97);filter:brightness(.97)}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode button:disabled{opacity:.45;box-shadow:none!important;cursor:not-allowed}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(button,input,select,textarea,summary):focus-visible{outline:2px solid #55555b!important;outline-offset:2px}
/* Whole-record buttons remain cards, not giant action pills. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(button.acr-conv,.admin-detail-list>button,.admin-adjustment-plans .list>button,.plan-review-workspace nav button,.admin-detail-list button){border-radius:22px!important;background:var(--ap-glass)!important;color:var(--ap-ink)!important;text-align:left}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .rp-switch{min-height:24px;box-shadow:var(--ap-edge)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea){
 background:var(--ap-strong)!important;color:var(--ap-ink)!important;border:1px solid var(--ap-border)!important;
 box-shadow:var(--ap-edge)!important;border-radius:var(--ap-input-radius,999px)!important;min-height:44px;max-width:100%;min-width:0;
 backdrop-filter:var(--ap-blur)!important;-webkit-backdrop-filter:var(--ap-blur)!important;
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode textarea{--ap-input-radius:18px;border-radius:18px!important;line-height:1.6}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(input,textarea)::placeholder{color:#5a5a64;opacity:1}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode select option{background:#f3f5fb;color:#17171b}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode input:is([type=checkbox],[type=radio]){accent-color:var(--ap-accent)}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(table,tbody,tr,td){background:transparent!important;border-color:var(--ap-line-soft)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode th{background:var(--ap-strong)!important;color:var(--ap-ink-2)!important;border-color:var(--ap-line-soft)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-inline-note,.admin-hint,.admin-choice-title,.admin-inbox-text span){color:var(--ap-muted)!important}
/* Body-mounted dialogs stay isolated to admin sessions, including the shared code dialog. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) :is(dialog,.ui-dialog,.ce-dialog,.admin-drawer){
 background:var(--ap-strong)!important;color:var(--ap-ink)!important;border:1px solid var(--ap-border)!important;border-radius:22px!important;
 backdrop-filter:var(--ap-blur)!important;-webkit-backdrop-filter:var(--ap-blur)!important;box-shadow:var(--ap-shadow),var(--ap-edge)!important;
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) dialog::backdrop{background:rgba(7,20,28,.18);backdrop-filter:blur(10px)}
@media(max-width:640px){
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-appbar,.admin-module-content,.admin-module-layout){min-width:0;max-width:100%}
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.row,.admin-filterbar,.admin-case-filterrow,.acr-tools,.admin-code-tools,.admin-user-actions,.admin-rule-editor-actions,.admin-ai-actions){gap:8px;min-width:0}
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-filterbar,.admin-case-filterrow,.admin-code-tools,.admin-ai-actions)>*{min-width:0;max-width:100%}
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-inbox-acts,.admin-case-actions){gap:8px;flex-wrap:wrap;align-items:center}
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content{padding-bottom:max(24px,env(safe-area-inset-bottom))}
 html:not(.tq-dark) body:has(.app-shell.admin-mode) dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
}
@media(prefers-reduced-motion:reduce){
 html body .app-shell.admin-mode .admin-appbar button,
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode button{transition:none!important;transform:none!important;filter:none!important}
}
@media(prefers-reduced-transparency:reduce){
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.panel,.admin-system-card,.admin-subpanel,.admin-ai-card,.admin-inbox-list,.admin-module-nav,.admin-appbar,.acr-list,.acr-detail),
 html:not(.tq-dark) body:has(.app-shell.admin-mode) dialog{background:#f3f5fb!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}

/* Review record buttons are cards. Preserve selected-state hierarchy separately from actions. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content :is(.plan-review-workspace nav button,.admin-detail-list button){border-radius:22px!important;background:var(--ap-glass)!important;color:var(--ap-ink)!important;box-shadow:var(--ap-edge)!important;white-space:normal;text-align:left}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content :is(.plan-review-workspace nav button.selected,.admin-detail-list button.active){background:var(--ap-strong)!important;color:var(--ap-accent)!important;border-color:rgba(85,85,91,.35)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-topbar,.admin-find){background:transparent!important;box-shadow:none!important;border-color:transparent!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content button.rp-switch{width:38px!important;min-width:38px;height:22px!important;min-height:22px!important;background:var(--ap-glass)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content button.rp-switch i{top:2px;left:2px;width:16px;height:16px;background:#f3f5fb;transform:none}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content button.rp-switch.on{background:var(--ap-accent-soft)!important;border-color:rgba(85,85,91,.35)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content button.rp-switch.on i{background:var(--ap-accent);transform:translateX(16px)}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.acr-check,.admin-inline-check){min-height:44px;align-items:center}
@media(max-width:640px){
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-cust-table{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-cust-table table{min-width:760px;table-layout:auto!important}
 html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-cust-table :is(th,td):first-child{min-width:140px;white-space:normal;overflow-wrap:break-word;word-break:normal}
}

/* Fixed customer drawer remains viewport-anchored: do not create a filtered
   containing block on its ancestors while it is open. All original fields stay. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.panel,.admin-subpanel):has(.admin-user-list.is-drawer){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-user-list.is-drawer{background:var(--ap-strong)!important;border:1px solid var(--ap-border)!important;border-radius:22px!important;backdrop-filter:var(--ap-blur)!important;-webkit-backdrop-filter:var(--ap-blur)!important;box-shadow:var(--ap-shadow),var(--ap-edge)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-cust-scrim{background:rgba(7,20,28,.18)!important}

/* Layout-only fix in both themes: an existing filtered panel must not trap the
   original fixed customer drawer below the mobile viewport. No dark palette change. */
html body .app-shell.admin-mode :is(.panel,.admin-subpanel,.admin-editor-grid,.admin-account-layout,.admin-module-content):has(.admin-user-list.is-drawer){backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;transform:none!important;perspective:none!important;will-change:auto!important}

/* Feedback records use their actual selectable-row DOM, not action-button paint. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content .admin-feedback-list .feedback-selectable-row>button{border-radius:22px!important;background:var(--ap-glass)!important;color:var(--ap-ink)!important;box-shadow:var(--ap-edge)!important;white-space:normal;text-align:left}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content .admin-feedback-list .feedback-selectable-row>button.active{background:var(--ap-strong)!important;color:var(--ap-accent)!important;border-color:rgba(85,85,91,.35)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content .admin-feedback-list .feedback-selectable-row>button :is(small,span){color:var(--ap-muted)!important}

/* Preserve native DARK colors; complete omitted native capsule/card shapes only. */
html.tq-dark body .app-shell.admin-mode .admin-module-content .admin-product-tabs button{border-radius:999px!important;min-height:44px;backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);box-shadow:inset 0 1px 0 rgba(var(--ui-surface-rgb),.24),0 2px 8px rgba(var(--ui-primary-rgb),.08)}
html.tq-dark body .app-shell.admin-mode .admin-module-content :is(.plan-review-workspace nav button,.feedback-selectable-row>button,.acr-conv){border-radius:16px!important}
/* Mobile names must remain readable in BOTH themes; every original column remains scrollable. */
@media(max-width:640px){
 html body .app-shell.admin-mode .admin-cust-table{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
 html body .app-shell.admin-mode .admin-cust-table table{min-width:760px;table-layout:auto!important}
 html body .app-shell.admin-mode .admin-cust-table :is(th,td):first-child{min-width:140px;white-space:normal;overflow-wrap:break-word;word-break:normal}
}

/* Native dark multiline fields use the existing frontend 8px form corners, not desktop action-pill overrides. */
html.tq-dark body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content textarea:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]){border-radius:8px!important}

/* Modal stacking only while the existing customer drawer is open. The AI
   launcher retains its original entry/position, underneath the active modal. */
html body .app-shell.admin-mode:has(.admin-user-list.is-drawer),
html body .app-shell.admin-mode>.main:has(.admin-user-list.is-drawer){position:relative;z-index:100!important}
/* Use native dark frontend material for the scrolling header, never the light palette. */
html.tq-dark body .app-shell.admin-mode .admin-appbar{background:color-mix(in srgb,var(--ui-surface) 80%,transparent)!important;backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%)}
/* Short destructive labels remain horizontal; long prose still wraps normally. */
html body .app-shell.admin-mode .admin-module-content .acr-block-row button.ghost{min-width:56px!important;padding-inline:10px!important;white-space:nowrap!important;flex-shrink:0}

/* Contain the external launcher in its own underlay stacking context only while an admin modal is active; entry, location and handler are unchanged. */
html body:has(.app-shell.admin-mode .admin-user-list.is-drawer) #ai-chat-root{position:relative!important;z-index:0!important;isolation:isolate}

/* Stage2 remaining-menu layout: staff table, label editor, filter chips. */
/* Staff names use the same readable mobile table treatment as the customer list. */
@media(max-width:640px){
 html body .app-shell.admin-mode .admin-staff-table{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
 html body .app-shell.admin-mode .admin-staff-table table{min-width:760px;table-layout:auto!important}
 html body .app-shell.admin-mode .admin-staff-table :is(th,td):first-child{min-width:140px;white-space:normal;overflow-wrap:break-word;word-break:normal}
}
/* Label family chips must wrap as whole capsules, not mid-word squeezed columns. */
html body .app-shell.admin-mode .label-editor-toolbar .admin-choice-options,
html body .app-shell.admin-mode .label-editor-toolbar [data-tq-seg]{
 display:flex!important;flex-wrap:wrap!important;gap:8px;width:100%;max-width:100%;overflow:visible!important
}
html body .app-shell.admin-mode .label-editor-toolbar .admin-choice-option{
 flex:0 0 auto!important;white-space:nowrap!important;overflow:visible;min-height:44px
}
/* Mobile: stack the existing list and editor so tiles stay in a scrollable column
   and the editor no longer covers later label buttons. Handlers unchanged. */
@media(max-width:760px){
 html body .app-shell.admin-mode .label-editor-toolbar{grid-template-columns:1fr!important;width:100%}
 html body .app-shell.admin-mode .label-editor-grid{grid-template-columns:1fr!important;gap:12px;align-items:stretch}
 html body .app-shell.admin-mode .label-editor-list{max-height:min(42vh,340px)!important;overflow:auto!important;overscroll-behavior:contain;grid-template-columns:1fr!important;width:100%;border-right:0!important}
 html body .app-shell.admin-mode .label-editor-list>button{width:100%;max-width:100%;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-radius:16px!important;text-align:left}
 html body .app-shell.admin-mode .label-editor-detail{min-width:0;width:100%;position:static}
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .label-editor-list>button{background:var(--ap-glass)!important;color:var(--ap-ink)!important;box-shadow:var(--ap-edge)!important;border:1px solid var(--ap-border)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .label-editor-list>button[aria-selected=true]{background:var(--ap-strong)!important;color:var(--ap-accent)!important;border-color:rgba(85,85,91,.35)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .label-edit-heading{background:var(--ap-strong)!important;color:var(--ap-ink)!important;border-color:var(--ap-line-soft)!important;backdrop-filter:var(--ap-blur)}

/* t71 / 2026-11-15: LIGHT admin only. White page, no decorative gradients.
   Transparency is REDUCED by five percentage points through fill alpha:
   normal cards .16 -> .21; selected record cards .36 -> .41.
   Never set element opacity, never recolor semantic alerts or primary buttons. */
html:not(.tq-dark):has(.app-shell.admin-mode){background:#fff!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode),
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode{
  --ui-bg:#fff;
  --ap-card-glass:rgba(255,255,255,.21);
  --ap-card-strong:rgba(255,255,255,.41);
}
html:not(.tq-dark) body:has(.app-shell.admin-mode){background:#fff!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.panel,.admin-system-card,.admin-site-card,.admin-subpanel,.admin-todo-card,.admin-inbox-list,.admin-user-card,.admin-ai-card,.admin-feedback-list,.admin-feedback-detail,.admin-detail-list,.acr-list,.acr-detail,.acr-rules-block,.admin-uc-card,.admin-filterbar,.acr-tools,.admin-choice-options,.admin-adjustment-plans>.list,.plan-review-workspace>nav,.plan-review-detail,.plan-review-workspace nav button,.admin-detail-list>button,.acr-conv,.feedback-selectable-row>button){
  background:var(--ap-card-glass)!important;
}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.plan-review-workspace nav button.selected,.admin-detail-list>button.active,.acr-conv.active,.feedback-selectable-row>button.active){
  background:var(--ap-card-strong)!important;
}

/* t71: eliminate the remaining white-to-gray decorative action-bar gradient.
   Its former .98/.97 stops both cap at 1 after +.05; controls retain their fills. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-user-actions{background:#fff!important}

/* t71 record surfaces: match the existing professional-page specificity.
   These are whole selectable reading rows/drawers, not primary action buttons. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content :is(.plan-review-workspace nav button.selected,.admin-detail-list button.active,.acr-conv.active){background:var(--ap-card-strong)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content .admin-feedback-list .feedback-selectable-row>button{background:var(--ap-card-glass)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content .admin-feedback-list .feedback-selectable-row>button.active{background:var(--ap-card-strong)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content .label-editor-list>button{background:var(--ap-card-glass)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content .label-editor-list>button[aria-selected=true]{background:var(--ap-card-strong)!important}
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode :is(.admin-user-list.is-drawer,.label-edit-heading){background:var(--ap-card-strong)!important}

/* Normal professional reading rows use the same +.05 fill as the other cards. */
html:not(.tq-dark) body:has(.app-shell.admin-mode) .app-shell.admin-mode .admin-module-content :is(.plan-review-workspace nav button,.admin-detail-list>button,.acr-conv){background:var(--ap-card-glass)!important}
