/* Shared appearance across public pages, portals and field workspaces. */
uei-theme-toggle{display:inline-flex;flex:0 0 auto;vertical-align:middle}
.appearance-row{display:flex;justify-content:flex-end;margin-bottom:18px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:auto;min-width:42px;min-height:42px;margin:0;padding:9px 13px;border:1px solid var(--line,#b7c4ba);border-radius:30px;background:transparent;color:var(--ink,#233b3f);font:12px/1.3 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:600;white-space:nowrap;cursor:pointer;flex:0 0 auto}
.theme-toggle:hover{background:#ac8d5314;border-color:var(--gold,#ac8d53)}
.theme-toggle:focus-visible{outline:3px solid #b49b65;outline-offset:4px}
.theme-toggle-orbit{position:relative;width:20px;height:20px;display:block;flex:0 0 20px}
.theme-toggle svg{position:absolute;inset:0;width:20px;height:20px;transition:opacity .3s,transform .5s}
.theme-toggle .sun-icon{opacity:1;transform:rotate(0)}
.theme-toggle .moon-icon{opacity:0;transform:rotate(-45deg)}
[data-theme=dark] .theme-toggle .sun-icon{opacity:0;transform:rotate(70deg)}
[data-theme=dark] .theme-toggle .moon-icon{opacity:1;transform:rotate(0)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-theme=light]{color-scheme:light}
[data-theme=dark]{color-scheme:dark;--ink:#e0e8df;--cream:#101e23;--sand:#14272c;--muted:#acbdb4;--line:#34494a;--gold:#d5bb83}
[data-theme=dark] body{background:#101e23;color:#e0e8df}
[data-theme=dark] a{color:#dfc991}
[data-theme=dark] .theme-toggle{color:#e0e8df;border-color:#53665f;background:transparent}
[data-theme=dark] :is(.card,.desk-card,.partner-card,.partner-section,.stat,.empty){background:#172b30;border-color:#34494a;color:#e0e8df}
[data-theme=dark] :is(.partner-header,.topbar){background:#14272c;border-color:#34494a}
[data-theme=dark] :is(.wordmark,.partner-header nav a,.partner-footer a,.partner-download,.partner-optional summary){color:#dfc991}
[data-theme=dark] :is(.partner-footer,.partner-ref,.partner-optional){border-color:#34494a}
[data-theme=dark] :is(input,select,textarea){background:#1b3338;border-color:#53665f;color:#e0e8df;accent-color:#d5bb83}
[data-theme=dark] :is(input,textarea)::placeholder{color:#a4b7af;opacity:1}
[data-theme=dark] :is(.partner-field input,.partner-field textarea,.partner-field select,.partner-upload input[type=file]){background:#1b3338;border-color:#53665f;color:#e0e8df}
[data-theme=dark] :is(.notice,.partner-note,.partner-legal,.review-readiness,.status,.partner-status,.partner-steps span,#uploadHelp){background:#2b3d36;border-color:#697357;color:#e0d7b8}
[data-theme=dark] :is(.partner-terms,.review-actions,.photo,.code-reference,.buttonfile){background:#1b3031;border-color:#425853;color:#e0e8df}
[data-theme=dark] :is(.small,small,.partner-field small,.partner-admin dt,.partner-label,.check-progress,.saved,.footnote,.breadcrumb){color:#acbdb4}
[data-theme=dark] :is(.eyebrow,.subheading){color:#d5bb83}
[data-theme=dark] :is(.partner-error,.error,.danger,.issue-list){color:#ffb4a5}
[data-theme=dark] .partner-error{background:#452e2d}
[data-theme=dark] :is(.btn.green,.partner-link){background:#d5bb83;border-color:#d5bb83;color:#152824}
[data-theme=dark] .btn.outline{background:transparent;color:#e0e8df;border-color:#718473}
[data-theme=dark] .btn.cream{background:#f2e9d1;color:#203832}
[data-theme=dark] .desk-head{flex-wrap:wrap}
[data-theme=dark] :is(th,td,fieldset,.report-preview-footer){border-color:#425853}
[data-theme=dark] .auth-page main{background:#172b30;color:#e0e8df}
[data-theme=dark] .auth-page img{filter:brightness(0) invert(.89)}
[data-theme=dark] .auth-page :is(aside,.help){background:#203735;color:#c4d3c6}
[data-theme=dark] .auth-page :is(button[type=submit],.action){background:#d5bb83;border-color:#d5bb83;color:#152824}
[data-theme=dark] .auth-page .secondary{color:#dfc991;background:transparent}
[data-theme=dark] .workspace-page :is(button,.typecard){background:#203735;color:#e0e8df;border-color:#53665f}
[data-theme=dark] .workspace-page button:hover{background:#304a45;border-color:#d5bb83}
[data-theme=dark] .workspace-page button.primary{background:#d5bb83;color:#152824;border-color:#d5bb83}
[data-theme=dark] .workspace-page button.gold{background:#d1b982;color:#152824;border-color:#d1b982}
[data-theme=dark] .workspace-page .sidebar{background:#14272c;color:#e0e8df}
[data-theme=dark] .workspace-page .sidebar nav button{background:transparent;border:0;color:#c7d4d1}
[data-theme=dark] .workspace-page .sidebar nav button.active{background:#ffffff13;color:#f0dbaf}
[data-theme=dark] .workspace-page :is(.typecard.selected,.demo-notice){background:#2b3d36;border-color:#ad9560}
[data-theme=dark] .workspace-page .notice.green{background:#203d33;color:#c7ddcc;border-color:#49675b}
[data-theme=dark] .workspace-page .chip{background:#3d3e2e;color:#e3d0a1}
[data-theme=dark] .workspace-page .chip.Safety{background:#522f2c;color:#ffc0b4}
[data-theme=dark] .workspace-page .templatebar{background:#203735}
[data-theme=dark] .workspace-page .progress{background:#34494a}
[data-theme=dark] .workspace-page :is(dialog,.previewbar){background:#14272c;color:#e0e8df}
[data-theme=dark] .workspace-page .code-reference a{color:#dfc991}
[data-theme=dark] .uei-email-composer{background:#172b30;color:#e0e8df;border-color:#53665f}
[data-theme=dark] .uei-email-composer :is(input,textarea){background:#1b3338;color:#e0e8df;border-color:#53665f}
[data-theme=dark] .uei-email-composer button{background:#203735;color:#e0e8df;border-color:#718473}
[data-theme=dark] .uei-email-composer button[type=submit]{background:#d5bb83;color:#152824;border-color:#d5bb83}
/* Inline actions stay compact even when the workspace redraws. */
.topactions{flex-wrap:wrap}
.partner-header nav{align-items:center}
.desk-head{flex-wrap:wrap}
@media(max-width:760px){.theme-toggle-label{display:none}.theme-toggle{width:42px;padding:9px}.topactions{gap:8px}.partner-header{gap:12px}}
@media(prefers-reduced-motion:reduce){.theme-toggle svg{transition:none!important}}
@media print{uei-theme-toggle,.theme-toggle,.appearance-row{display:none!important}html[data-theme] body{color-scheme:light;background:white;color:#172d32}html[data-theme] :is(.partner-section,.partner-terms,.desk-card,.card){background:white;color:#172d32;border-color:#ccc}html[data-theme] a{color:#172d32}}
/* A quiet satin finish on selected primary actions; no looping animation. */
:root[data-theme] :is(a,button).uei-highlight:not(:disabled):not([aria-disabled=true]){
 background-image:linear-gradient(115deg,transparent 24%,rgb(255 255 255 / .13) 47%,transparent 70%);
 background-size:220% 100%;background-position:100% 0;
 box-shadow:inset 0 1px 0 rgb(255 255 255 / .22),0 2px 5px rgb(8 28 25 / .09);
 transition:background-position .55s ease,box-shadow .25s ease,transform .25s ease;
}
@media(hover:hover) and (pointer:fine){
 :root[data-theme] :is(a,button).uei-highlight:not(:disabled):not([aria-disabled=true]):hover{
  background-position:0 0;transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .28),0 0 0 3px rgb(172 141 83 / .12),0 5px 13px rgb(8 28 25 / .13);
 }
}
:root[data-theme] :is(a,button).uei-highlight:focus-visible{outline:2px solid #ac8d53;outline-offset:4px;box-shadow:0 0 0 5px rgb(172 141 83 / .13)}
:root[data-theme] :is(a,button).uei-highlight:not(:disabled):active{transform:translateY(0);box-shadow:inset 0 1px 3px rgb(8 28 25 / .13)}
@media(prefers-reduced-motion:reduce){:root[data-theme] :is(a,button).uei-highlight{transition:none!important;transform:none!important}}
@media print{:root[data-theme] :is(a,button).uei-highlight{background-image:none!important;box-shadow:none!important}}
