/* R10 Master: A/B/C parity. Precisely the same theme IDs as main V9:
 * A=light, B=dark, C=hybrid. Work Form is opt-in via the profile.
 * Override the R9 classic-white tokens instead of modifying functioning components. */
html[data-work-theme="classic-white"] .app{max-width:1150px!important}
html[data-work-theme="classic-white"] .company-header{border:0!important;box-shadow:none!important;overflow:hidden!important;border-radius:12px 12px 0 0!important}
html[data-work-theme="classic-white"] .company-header img{width:100%!important;max-height:100px!important;object-fit:contain!important;display:block!important}
html[data-work-theme="classic-white"] .app-bar{min-height:64px!important;padding:8px 13px!important}
html[data-work-theme="classic-white"] .command-row{min-height:44px!important;margin:6px 0!important;padding:5px 7px!important;gap:6px!important}
html[data-work-theme="classic-white"] .command-row .tabs{flex:1 1 auto!important;min-width:0!important}
html[data-work-theme="classic-white"] .command-row .command-meta{margin-left:auto!important;justify-content:flex-end!important}
html[data-work-theme="classic-white"] .tab{padding:6px 9px!important;min-height:33px!important;font-size:11.5px!important}
html[data-work-theme="classic-white"] .card,html[data-work-theme="classic-white"] .v9-detail{padding:10px 12px!important}
html[data-work-theme="classic-white"] .panel-shell{gap:8px!important}
html[data-work-theme="classic-white"] .v9-form-grid{gap:8px 12px!important}
html[data-work-theme="classic-white"] .v9-toolbar{gap:7px!important}
html[data-work-theme="classic-white"] .v9-work-card{padding:10px 12px!important}
html[data-work-theme="classic-white"] .v9-work-card:hover{transform:translateY(-1px)!important}
html[data-work-theme="classic-white"] .user-head .avatar{width:47px!important;height:47px!important;min-width:47px!important}
html[data-work-theme="classic-white"] input[type="checkbox"]{min-height:0!important;accent-color:#1c63c8}
.r10-theme-picker{margin:10px 0 5px;padding:9px 10px;border:1px solid #d2e2f5;border-radius:10px;background:#f2f7fe}
.r10-theme-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;color:#1c4478}
.r10-theme-head strong{font-size:12px}.r10-theme-head small{font-size:10px;color:#617b98}
.r10-theme-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px}
.r10-theme-buttons button{min-height:33px;border-radius:8px;border:1px solid #b9cdea;background:#fff;color:#183d6d;cursor:pointer;font:750 11px 'Segoe UI',sans-serif;transition:background .14s,box-shadow .14s}
.r10-theme-buttons button.selected{border-color:#1f66d6;background:#e2efff;box-shadow:inset 0 0 0 1px #1f66d6;color:#0b4ba6}
.r10-theme-buttons button:focus-visible{outline:3px solid #7aaffb;outline-offset:2px}
.r10-clicked{animation:r10MasterPress .16s ease-out}
@keyframes r10MasterPress{0%{filter:brightness(.91)}100%{filter:brightness(1)}}
@media (min-width:900px){html[data-work-theme="classic-white"] .v9-work-card,html[data-work-theme="classic-white"] .r969-verification-row{min-height:43px!important}}
@media (max-width:670px){html[data-work-theme="classic-white"] .app{max-width:100vw!important;padding:5px 7px 20px!important}html[data-work-theme="classic-white"] .company-header img{max-height:73px!important}html[data-work-theme="classic-white"] .command-row .command-meta{min-width:0!important;justify-content:flex-end!important}html[data-work-theme="classic-white"] .command-row .tabs{flex:1 1 100%!important}html[data-work-theme="classic-white"] .app-bar{min-height:64px!important}}
@media(prefers-reduced-motion:reduce){.r10-clicked{animation:none!important}.r10-theme-buttons button{transition:none!important}}
/* Theme B: high contrast control room, while the corporate blue header is retained. */
html[data-work-theme="classic-white"][data-theme="dark"]{
 color-scheme:dark!important;--wf-bg:#0c192a;--wf-panel:#14263c;--wf-panel2:#1c314b;--wf-line:#39516e;--wf-text:#f0f6fd;--wf-muted:#bfd0e1;--wf-accent:#75b5ff;--wf-accent2:#3579e6;--blue:#8dc0ff;--text:#f0f6fd;--muted:#bdd0e2;--line:#39516e;--soft:#1d344e;background:#0b1828!important}
html[data-work-theme="classic-white"][data-theme="dark"] body{background:#0b1828!important;background-image:linear-gradient(165deg,#091929,#122840 57%,#0b1b2a)!important;color:#f0f6fd!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.app,.panel-shell,.card,.command-row,.v9-detail,.v9-work-card,.v9-signin-gate,.v9-empty){color:#edf5ff!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.card,.command-row,.v9-detail,.v9-work-card,.v9-signin-gate,.v9-empty){background:#14283e!important;border-color:#364e6b!important;box-shadow:0 6px 18px #020d1b2e!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.tab,.secondary,.ghost){background:#1e344f!important;color:#eaf5ff!important;border-color:#436389!important}
html[data-work-theme="classic-white"][data-theme="dark"] .tab.active{background:#296ce0!important;color:white!important;border-color:#4b91ed!important}
html[data-work-theme="classic-white"][data-theme="dark"] .tab:hover:not(.active){background:#2a4767!important;color:white!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.section-title,.v9-detail h3,.v9-work-id){color:#acd3ff!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.card label,.v9-detail label,.v9-work-desc,.v9-detail-item b,.v9-activity,.v9-work-meta){color:#d9eaff!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.muted,.v9-disabled-note,.v9-detail-item small){color:#c0cfe0!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(input,textarea,select){background:#172d46!important;color:#f6faff!important;border-color:#4e6989!important}
html[data-work-theme="classic-white"][data-theme="dark"] input:disabled{background:#233347!important;color:#d1dfed!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.v9-detail-item,.v9-activity,.record-banner,.r10-wr-dates,.r968-timeline-note,.r967-team-field,.r967-team-hero,.r968-action-history,.r966-work-summary,.r966-work-history){background:#19314b!important;color:#eaf4ff!important;border-color:#425e81!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.v9-loading,.v9-status){background:#233a55!important;color:#dfedff!important}
html[data-work-theme="classic-white"][data-theme="dark"] .v9-online-chip{background:#1b493e!important;color:#a4f4cd!important}
html[data-work-theme="classic-white"][data-theme="dark"] .wf-illustrated-header{background:#182f4b!important;border-color:#446080!important}
html[data-work-theme="classic-white"][data-theme="dark"] .wf-illustrated-header :is(h2,p){color:#e1effe!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(.r968-toggle-line,.r967-fault-text,.r965-percent,.r967-wr-date,.r967-team-field small,.r968-timeline-date){color:#cbe3fc!important}
html[data-work-theme="classic-white"][data-theme="dark"] #r96RequestsPanel .r967-table-row{background:#14283e!important;color:#eaf2ff!important;border-color:#334f6e!important}
html[data-work-theme="classic-white"][data-theme="dark"] #r96RequestsPanel .r967-table-row:hover{background:#203b58!important}
/* Theme C: keep crisp light forms, soften analytical accents without creating a fourth palette. */
html[data-work-theme="classic-white"][data-theme="hybrid"]{--wf-bg:#edf1fa;--wf-panel:#fff;--wf-panel2:#f3f2ff;--wf-line:#c8d2e9;--wf-text:#182d50;--wf-muted:#546a86;--wf-accent:#4756ba;--wf-accent2:#6373d5}
html[data-work-theme="classic-white"][data-theme="hybrid"] body{background:#eef3fb!important;background-image:linear-gradient(160deg,#f2f7ff 0%,#e6eaf9 100%)!important}
html[data-work-theme="classic-white"][data-theme="hybrid"] :is(.command-row,.card,.v9-detail){border-color:#ccd4ee!important}
html[data-work-theme="classic-white"][data-theme="hybrid"] .tab.active{background:#3d56b1!important;border-color:#3d56b1!important}
html[data-work-theme="classic-white"][data-theme="hybrid"] :is(.section-title,.v9-work-id){color:#33479e!important}
html[data-work-theme="classic-white"][data-theme="hybrid"] button.primary{background:linear-gradient(100deg,#29469f,#526fe0)!important}
/* Floating dialogs are appended to body: global theme backgrounds must follow appropriately. */
html[data-work-theme="classic-white"][data-theme="dark"] :is(dialog.r967-team-dialog,dialog.r967-photo-dialog,dialog.r969-verify-dialog,dialog.r968-admin-stats-dialog,.r968-profile-panel){background:#14263e!important;color:#e5f1ff!important;border-color:#446282!important}
html[data-work-theme="classic-white"][data-theme="dark"] :is(dialog.r967-team-dialog,dialog.r969-verify-dialog,dialog.r968-admin-stats-dialog,.r968-profile-panel) :is(.r967-team-field,.r968-stat,.r968-profile-fields input,.r10-theme-picker,.r966-work-summary,.r966-work-history,.r968-team-row,.r969-team-row,.r969-verification-row){background:#203852!important;color:#e5f1ff!important;border-color:#486587!important}
html[data-work-theme="classic-white"][data-theme="dark"] .r968-profile-panel :is(h3,strong,.r968-stat strong,.r968-profile-fields input,.r968-profile-head small){color:#ebf4ff!important}
html[data-work-theme="classic-white"][data-theme="dark"] .r10-theme-head :is(strong,small){color:#d5eaff!important}
html[data-work-theme="classic-white"][data-theme="dark"] .r10-theme-buttons button{background:#1b334d!important;border-color:#466187!important;color:#e1eeff!important}
html[data-work-theme="classic-white"][data-theme="dark"] .r10-theme-buttons button.selected{background:#305e9f!important;color:#fff!important}
html[data-work-theme="classic-white"][data-theme="dark"] .r10-moby-panel{background:#152841;color:#e7f2ff;border-color:#6681ac}
html[data-work-theme="classic-white"][data-theme="dark"] .r10-moby-compose{background:#1b3654;border-color:#416384}
html[data-work-theme="classic-white"][data-theme="dark"] .r10-moby-compose textarea{background:#122a45;color:#fff;border-color:#446788}
html[data-work-theme="classic-white"][data-theme="dark"] .r10-moby-foot{background:#142b46;color:#bfcee5;border-color:#395476}
html[data-work-theme="classic-white"][data-theme="dark"] .r10-moby-bubble{background:#284466;color:#f3f8ff;border-color:#4b6a96}
@media(prefers-reduced-motion:reduce){html[data-work-theme="classic-white"] :is(.panel,.r10-moby-panel,dialog){animation:none!important;transition:none!important}}
/* Optional OS push enable is located in the bell dialog, never My Assignments. */
.r10-push-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:8px;border-top:1px solid #d8e3f3}
.r10-push-tools button{padding:8px 10px;border:1px solid #bad0e9;background:#ecf5ff;color:#174b87;border-radius:8px;cursor:pointer;font-size:11px;font-weight:700}
.r10-push-tools button[hidden]{display:none!important}
.r10-push-tools small{display:block;flex:1 1 100%;line-height:1.4;color:#526e8e;font-size:10px}
