/* S1 theme.css light palette, mapped to existing director selectors. Layout unchanged. */
/* B candidate: S1 production black/pink colors over the unchanged A geometry.
   Typography/media/business remain unchanged. The final B-shell section is the
   user-authorized navigation/header layout exception. */
html[data-ui-skin="horse"][data-color-theme="light"] body.sw,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin{
  --bg: #f4f3f6;
  --surface: #ffffff;
  --surface-strong: #f5f3f7;
  --surface-muted: #eceaf0;
  --text: #171318;
  --muted: #625b63;
  --subtle: #6b626c;
  --line: rgba(30, 23, 31, .14);
  --brand: #a52f73;
  --lime: #a52f73;
  --brand-strong: #762052;
  --brand-ink: #ffffff;
  --accent: #96610c;
  --yellow: #96610c;
  --danger: #b73345;
  --ui-success: #16815e;
  --ui-action-fill: #a52f73;
  --ui-control-bg: #ffffff;
  --ui-control-line: #918791;
  --ui-selected-bg: #f4e3ee;
  --ui-hover: #e9e5ec;
  --ui-warning-bg: #fff4dc;
  --ui-warning-line: #987338;
  --ui-warning-text: #775009;
  --ui-danger-bg: #fff0f2;
  --ui-danger-line: #a64857;
  --ui-danger-text: #9d2439;
  --ui-success-bg: #e8f7f0;
  --ui-success-line: #39816b;
  --ui-success-text: #166d50;
  background: var(--bg);
  color: var(--text);
  scrollbar-color: #918791 var(--ui-control-bg);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw *,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin *{
  scrollbar-color: #918791 var(--ui-control-bg);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw a,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin a{
  color: var(--brand);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw ::selection,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin ::selection{
  background: var(--ui-action-fill);
  color: var(--brand-ink);}
/* Shared controls. Every dimension remains owned by the original sheets. */
html[data-ui-skin="horse"][data-color-theme="light"] body.sw button,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .button,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .secondary{
  background: var(--surface-muted);
  border-color: var(--ui-control-line);
  color: var(--text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw button:hover:not(:disabled),
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .button:hover,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .secondary:hover:not(:disabled),
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin a.secondary:hover{
  background: var(--ui-hover);
  border-color: #96527e;
  color: var(--text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .primary,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin button:not(.secondary):not(.danger),
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .button:not(.secondary):not(.danger){
  background: var(--ui-action-fill);
  border-color: var(--ui-action-fill);
  color: var(--brand-ink);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .primary:hover:not(:disabled),
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin button:not(.secondary):not(.danger):hover:not(:disabled),
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .button:not(.secondary):not(.danger):hover{
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: var(--brand-ink);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .danger,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .danger{
  background: var(--ui-danger-bg);
  border-color: var(--ui-danger-line);
  color: var(--ui-danger-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .danger:hover:not(:disabled),
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .danger:hover:not(:disabled){
  background: #f6dfe5;
  border-color: var(--danger);
  color: #9d2439;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw input:not([type="checkbox"]):not([type="radio"]),
html[data-ui-skin="horse"][data-color-theme="light"] body.sw textarea,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw select,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin input,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin select{
  background: var(--ui-control-bg);
  border-color: var(--ui-control-line);
  color: var(--text);
  caret-color: var(--brand);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw input::placeholder,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw textarea::placeholder,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin input::placeholder{
  color: var(--subtle);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw input:focus,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw textarea:focus,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw select:focus,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin input:focus,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin select:focus{
  border-color: var(--brand);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :focus-visible,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin :focus-visible{
  outline-color: var(--brand);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw input[type="checkbox"],
html[data-ui-skin="horse"][data-color-theme="light"] body.sw input[type="radio"]{
  accent-color: var(--brand);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw button:disabled,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .primary:disabled,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin button:disabled{
  background: #e6e1e8;
  border-color: var(--ui-control-line);
  color: #716773;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw input:disabled,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw textarea:disabled,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw select:disabled,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin input:disabled,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin select:disabled{
  background: var(--surface-muted);
  color: var(--muted);}
/* Workbench shell, step navigation and project list. */
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .topbar,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .workspace{
  background: var(--surface);
  border-color: var(--line);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .version-badge{
  background: var(--ui-selected-bg);
  border-color: #8f577d;
  color: #85235c;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .topbar .api-btn{
  background: var(--ui-action-fill);
  border-color: var(--ui-action-fill);
  color: var(--brand-ink);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .topbar .api-btn[data-configured="true"]{
  background: var(--ui-success-bg);
  border-color: var(--ui-success-line);
  color: var(--ui-success-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .topbar .login-link{
  background: var(--surface-muted);
  border-color: var(--ui-control-line);
  color: var(--text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .topbar .api-btn:hover:not(:disabled){
  border-color: var(--brand);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .workspace-page-nav a{
  background: var(--surface);
  border-color: var(--ui-control-line);
  color: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .workspace-page-nav a:hover,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .workspace-page-nav a:focus-visible{
  background: var(--ui-hover);
  border-color: var(--brand);
  color: var(--text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .workspace-page-nav a[aria-current="page"]{
  background: var(--ui-selected-bg);
  border-color: var(--brand);
  color: #85235c;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .steps button{
  color: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .steps button:hover:not(:disabled){
  background: var(--surface-muted);
  color: var(--text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .steps button[aria-current],
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .steps button[aria-current]:hover:not(:disabled){
  background: var(--ui-selected-bg);
  border-bottom-color: var(--brand);
  color: #85235c;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :is(.project-card,.empty-state,.setting-panel,.asset-card,.job-panel,.shot-details>div){
  background: var(--surface);
  border-color: var(--line);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :is(.empty-state,.idea-placeholder,.asset-empty,.empty-versions){
  border-color: var(--ui-control-line);
  color: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .project-card footer button:hover:not(:disabled){
  background: var(--ui-hover);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .project-card footer .danger{
  color: var(--ui-danger-text);}
/* Creative choices and asset/reference media retain their original geometry. */
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .idea-option{
  background: var(--surface) !important;
  border-color: var(--ui-control-line);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .idea-option:hover:not(:disabled){
  background: var(--ui-hover) !important;
  border-color: #96527e;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .idea-option[aria-pressed="true"],
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .style-options button[aria-pressed="true"]{
  background: var(--ui-selected-bg) !important;
  border-color: var(--brand);
  color: #85235c;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .product-upload.has-image span{
  background: #eceaf0ef;
  color: var(--text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw [data-product-drop][data-drag-over="true"]{
  background: var(--ui-selected-bg);
  border-color: var(--brand);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :is(.asset-prompt,.shot-details>div){
  color: #574e58;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :is(.asset-media,.asset-preview,.image-preview-viewport){
  background: var(--ui-control-bg);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .asset-preview:hover:not(:disabled){
  background: var(--ui-control-bg);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .asset-candidate[data-selected="true"] .candidate-choice{
  color: #85235c;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .character-placeholder{
  background: #e8e1ed;
  color: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :is(.video-frame,.empty-versions){
  background: var(--ui-control-bg);
  border-color: var(--ui-control-line);
  color: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .video-frame.has-video{
  background: #f4f3f6;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .skeleton{
  background: #ede8f0;}
/* Messages and live states keep green / amber / red meanings. */
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .sw-notice,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .notice{
  background: #eae3ee;
  border-color: #8b6b85;
  color: #7c285d;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .sw-notice[data-error="true"],
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .notice[data-error="true"]{
  background: var(--ui-danger-bg);
  border-color: var(--ui-danger-line);
  color: var(--ui-danger-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :is(.notice-inline,.fixture-notice),
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .fixture-notice{
  background: var(--ui-warning-bg);
  border-color: var(--ui-warning-line);
  color: var(--ui-warning-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :is(.expired,.candidate-hint.selection-needed){
  color: var(--ui-warning-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .status[data-status="succeeded"]{
  color: var(--ui-success-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .status[data-status="failed"],
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .error-text,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .error{
  color: var(--ui-danger-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw :is(.status[data-status="unknown"],.status[data-status="needs_credentials"]){
  color: var(--ui-warning-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .license-status{
  color: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .license-status::before{
  background: var(--ui-success);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .license-status[data-state="active"]{
  color: var(--ui-success-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .license-status[data-state="warning"]{
  color: var(--ui-warning-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .license-status[data-state="warning"]::before{
  background: var(--yellow);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .license-status[data-state="signed-out"]::before{
  background: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .script-admin-entry{
  background: var(--surface);
  color: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .skip-link{
  background: var(--ui-action-fill);
  color: var(--brand-ink) !important;}
/* All dialogs, including the top-layer backdrop, remain scoped to this skin. */
html[data-ui-skin="horse"][data-color-theme="light"] body.sw dialog,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin dialog{
  background: var(--surface-strong);
  border-color: var(--ui-control-line);
  color: var(--text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw dialog::backdrop,
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin dialog::backdrop{
  background: rgba(0, 0, 0, .76);}
/* Same admin panels and nine-column card table; no new layout system. */
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .panel{
  background: var(--surface);
  border-color: var(--line);}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin :is(label,.date-cell){
  color: #554b56;}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin :is(.route-note,small,.table-hint,.empty-cell){
  color: var(--muted);}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .table-wrap{
  border-color: var(--line);
  scrollbar-color: #918791 var(--ui-control-bg);}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .activation-table th{
  background: var(--ui-control-bg);
  border-color: var(--line);
  color: #574e58;}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .activation-table td{
  border-color: var(--line);}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .activation-table tbody tr:hover{
  background: #ede8f0;}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .code-value{
  color: #762052;}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .badge-unused{
  background: #e9e2ed;
  color: #574e58;}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .badge-active{
  background: var(--ui-success-bg);
  color: var(--ui-success-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .badge-expired{
  background: var(--ui-warning-bg);
  color: var(--ui-warning-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.director-admin .badge-revoked{
  background: var(--ui-danger-bg);
  color: var(--ui-danger-text);}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .brand h1,
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .version-badge{
  color: #171318;}
html[data-ui-skin="horse"][data-color-theme="light"] body.sw .brand .director-brand-accent{
  color: var(--brand);}
html[data-color-theme="light"]{color-scheme:light}html[data-color-theme="dark"]{color-scheme:dark}
html[data-ui-skin="horse"][data-color-theme="light"] :is(body.sw,body.director-admin) .theme-toggle{background:var(--surface);}
