:root {
  color-scheme: dark;
  --brand-primary: #284B64;
  --brand-hover: #345F7D;
  --brand-active: #182F40;
  --brand-soft: #162936;
  --brand-border: #3D627A;
  --brand-text: #B8D7E8;
  --bg-app: #0C1217;
  --bg-sidebar: #0F181F;
  --bg-surface: #141F28;
  --bg-surface-raised: #192630;
  --bg-surface-hover: #202F3B;
  --bg-input: #0D151D;
  --text-primary: #F1F5F8;
  --text-secondary: #BAC7D1;
  --text-muted: #91A2B0;
  --text-disabled: #71808C;
  --border-subtle: #24333E;
  --border-default: #30424F;
  --border-strong: #405766;
  --border-focus: #8FC7E5;
  --control-height: 42px;
  --control-height-touch: 44px;
  --radius-control: 8px;
  --radius-control-compact: 6px;
  --radius-nav-item: 8px;
  --radius-metric-card: 8px;
  --radius-record-card: 8px;
  --radius-section-card: 10px;
  --radius-feedback: 8px;
  --radius-dialog: 12px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --section-card-background: var(--bg-surface);
  --section-card-border: var(--border-subtle);
  --section-card-padding: 16px;
  --status-success: #4ADE80;
  --status-success-bg: #10281D;
  --status-success-border: #2f7048;
  --status-warning: #FBBF24;
  --status-warning-bg: #2D2412;
  --status-attention: #FDBA74;
  --status-attention-bg: #2C2118;
  --status-danger: #F87171;
  --status-danger-bg: #2D191D;
  --status-danger-tint: #2D191D;
  --status-info: #7DD3FC;
  --status-info-bg: #122937;
  --status-neutral: #B2C0CB;
  --status-neutral-bg: #202B34;
  --bg-selected-row: #16232d;
  --bg-task-hover: #111B23;
  --bg-inbox-resolved: #111b22;
  --button-danger-border: #74404a;
  --button-danger-text: #FFB5B7;
  --button-danger-surface: #2A1B21;
  --button-danger-hover-surface: #3A2028;
  --button-danger-active-surface: #25161b;
  --button-caution-border: #9A772F;
  --button-caution-text: #FCD878;
  --button-caution-surface: #302716;
  --button-caution-hover-surface: #3A2D14;
  --button-shadow: inset 0 1px 0 #ffffff08;
  --button-hover-shadow: inset 0 1px 0 #ffffff0a;
  --button-primary-shadow: inset 0 1px 0 #ffffff15;
  --control-focus-shadow: 0 0 0 2px #8fc7e526;
  --control-error-focus-shadow: 0 0 0 2px color-mix(in srgb, var(--status-danger) 20%, transparent);
  --toast-backdrop-filter: blur(14px);
  --search-panel-shadow: 0 28px 80px #0009, 0 2px 8px #0005;
  --dialog-shadow: 0 12px 34px #0007;
  --confirmation-shadow: var(--dialog-shadow);
  --toast-shadow: 0 16px 40px #0008, inset 0 1px 0 #ffffff0a;
  --dropdown-control-height: var(--control-height);
  --dropdown-control-radius: var(--radius-control);
  --dropdown-control-padding: 9px 11px;
  --dropdown-control-background: var(--bg-input);
  --dropdown-control-hover-background: var(--bg-surface);
  --dropdown-control-border: var(--border-default);
  --dropdown-control-hover-border: var(--border-strong);
  --dropdown-control-open-border: var(--border-focus);
  --dropdown-control-focus-shadow: var(--control-focus-shadow);
  --dropdown-menu-background: var(--bg-surface-raised);
  --dropdown-menu-border: var(--border-strong);
  --dropdown-menu-radius: var(--radius-section-card);
  --dropdown-menu-padding: 5px;
  --dropdown-menu-shadow: 0 18px 42px #0009, 0 2px 8px #0005;
  --dropdown-option-height: 36px;
  --dropdown-option-padding: 8px 10px;
  --dropdown-option-radius: 6px;
  --dropdown-option-hover-background: var(--bg-surface-hover);
  --dropdown-option-selected-foreground: var(--brand-text);
  --dropdown-option-selected-background: var(--brand-soft);
  --dropdown-category-foreground: var(--brand-text);
  --dropdown-category-background: var(--brand-soft);
  --dropdown-status-success-foreground: var(--status-success);
  --dropdown-status-success-background: var(--status-success-bg);
  --dropdown-status-pending-foreground: var(--status-warning);
  --dropdown-status-pending-background: var(--status-warning-bg);
  --dropdown-status-info-foreground: var(--status-info);
  --dropdown-status-info-background: var(--status-info-bg);
  --dropdown-status-error-foreground: var(--status-danger);
  --dropdown-status-error-background: var(--status-danger-bg);
  --dropdown-status-neutral-foreground: var(--status-neutral);
  --dropdown-status-neutral-background: var(--status-neutral-bg);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bg: var(--bg-app);
  --panel: var(--bg-surface);
  --panel-raised: var(--bg-surface-raised);
  --line: var(--border-subtle);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --dim: var(--text-disabled);
  --accent: var(--brand-primary);
  --accent-soft: var(--brand-soft);
  --green: var(--status-success);
  --amber: var(--status-warning);
  --red: var(--status-danger);
  --blue: var(--status-info);
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
}

:root[data-theme="dark-matte"] {
  --brand-primary: #294C62;
  --brand-hover: #355A6F;
  --brand-active: #1D3949;
  --brand-soft: #17272F;
  --brand-border: #3B5968;
  --brand-text: #B8CBD3;
  --bg-app: #0D1012;
  --bg-sidebar: #101416;
  --bg-surface: #15191C;
  --bg-surface-raised: #1B2023;
  --bg-surface-hover: #252B2F;
  --bg-input: #101416;
  --text-primary: #ECEEEF;
  --text-secondary: #BEC5C9;
  --text-muted: #929DA2;
  --text-disabled: #68747A;
  --border-subtle: #252B2F;
  --border-default: #323B40;
  --border-strong: #465158;
  --border-focus: #91B0BE;
  --status-success-bg: #14251B;
  --status-success-border: #376247;
  --status-warning-bg: #292316;
  --status-attention-bg: #28211A;
  --status-danger-bg: #2B1A1D;
  --status-danger-tint: #2B1A1D;
  --status-info-bg: #16252D;
  --status-neutral-bg: #20272B;
  --bg-selected-row: #18252B;
  --bg-task-hover: #151A1D;
  --bg-inbox-resolved: #111416;
  --button-danger-border: #654047;
  --button-danger-text: #E8ADB0;
  --button-danger-surface: #24191C;
  --button-danger-hover-surface: #322024;
  --button-danger-active-surface: #201719;
  --button-caution-border: #635536;
  --button-caution-text: #E3CE8F;
  --button-caution-surface: #252117;
  --button-caution-hover-surface: #302A1A;
  --button-shadow: none;
  --button-hover-shadow: none;
  --button-primary-shadow: none;
  --toast-backdrop-filter: none;
  --control-focus-shadow: 0 0 0 2px #294c6250;
  --dropdown-menu-shadow: 0 10px 24px #0007, 0 1px 3px #0004;
  --search-panel-shadow: 0 18px 42px #0007, 0 2px 6px #0004;
  --dialog-shadow: 0 8px 24px #0006;
  --confirmation-shadow: var(--dialog-shadow);
  --toast-shadow: 0 10px 26px #0006;
}

:root[data-theme="dark-matte"] .search-overlay,
:root[data-theme="dark-matte"] .app-dialog[open]::backdrop,
:root[data-theme="dark-matte"] .confirmation-dialog[open]::backdrop {
  backdrop-filter: none;
}

* { box-sizing: border-box; }
* { scrollbar-color: var(--brand-border) var(--bg-sidebar); scrollbar-width: auto; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-sidebar); }
::-webkit-scrollbar-thumb { border: 2px solid var(--bg-sidebar); border-radius: var(--radius-pill); background: var(--brand-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-hover); }
::-webkit-scrollbar-corner { background: var(--bg-sidebar); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
body { margin: 0; min-width: min(320px, 100%); min-height: 100vh; min-height: 100dvh; background: var(--bg-app); font-family: var(--font-sans); font-size: 13px; line-height: 1.5; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
input, textarea, select { color-scheme: dark; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 20px 14px 13px; overflow: hidden; border-right: 1px solid var(--border-subtle); background: var(--bg-sidebar); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 9px 21px; color: var(--text); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; padding: 4px; overflow: hidden; border: 1px solid var(--brand-border); border-radius: 10px; background: var(--text-primary); }
.brand-mark img, .login-brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 14px var(--font-sans); letter-spacing: .01em; }
.brand small { margin-top: 4px; color: var(--brand-text); font-size: 10px; letter-spacing: .16em; }
.main-nav { display: grid; flex: 1; align-content: start; gap: 11px; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 0 2px 9px; scrollbar-width: thin; }
.nav-group { display: grid; gap: 3px; }
.nav-group + .nav-group { padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.nav-section-label { padding: 0 10px 5px; color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: var(--control-height); padding: 8px 10px; border: 1px solid transparent; border-radius: var(--radius-nav-item); color: var(--text-secondary); background: transparent; text-align: left; cursor: pointer; font-size: 12px; font-weight: 550; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .16s var(--ease); }
.nav-link::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 2px; border-radius: 2px; background: var(--brand-text); content: ""; opacity: 0; transform: scaleY(.72); transition: opacity .18s var(--ease), transform .18s var(--ease), background-color .18s var(--ease); pointer-events: none; }
.nav-link > .icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--text-muted); transition: color .18s var(--ease); }
.nav-link:not(.is-active):hover:not(:disabled) { border-color: var(--border-default); background: var(--bg-surface-hover); color: var(--text-primary); }
.nav-link:not(.is-active):hover:not(:disabled) > .icon { color: var(--brand-text); }
.nav-link:active:not(:disabled) { transform: scale(.985); }
.nav-link:disabled { color: var(--text-disabled); cursor: not-allowed; opacity: .65; }
.nav-link.is-active { border-color: var(--brand-border); color: var(--text-primary); background: var(--brand-soft); }
.nav-link.is-active::before { opacity: 1; transform: scaleY(1); }
.nav-link.is-active > .icon { color: var(--brand-text); }
.nav-link.is-active:hover:not(:disabled) { border-color: var(--brand-hover); color: var(--text-primary); background: var(--brand-primary); }
.nav-link.is-active:hover:not(:disabled) > .icon { color: var(--text-primary); }
.nav-link.is-active:hover:not(:disabled)::before { background: var(--text-primary); }
.nav-link:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }
.sidebar-profile-nav { flex: 0 0 auto; padding: 11px 2px 9px; border-top: 1px solid var(--border-subtle); }
.sidebar-profile { min-height: 55px; gap: 10px; padding: 7px 9px; }
.sidebar-profile[aria-expanded="true"] { border-color: var(--brand-border); color: var(--text-primary); background: var(--brand-soft); }
.sidebar-profile-avatar { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid var(--brand-border); border-radius: 10px; color: var(--brand-text); background: var(--brand-soft); font-size: 12px; font-weight: 700; }
.sidebar-profile-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.sidebar-profile-copy strong, .sidebar-profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-copy strong { color: inherit; font-size: 11px; font-weight: 650; }
.sidebar-profile-copy small { color: var(--text-muted); font-size: 10px; }
.workspace { min-width: 0; }
.mobile-app-header, .mobile-bottom-nav, .mobile-nav-backdrop, .mobile-nav-close { display: none; }
.topbar { position: sticky; top: 0; z-index: 5; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 28px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-sidebar); }
.data-load-error { margin: 14px 28px 0; padding: 11px 14px; border: 1px solid var(--status-danger); border-radius: var(--radius-feedback); color: var(--text-primary); background: var(--status-danger-bg); font-size: 12px; line-height: 1.55; }
.global-search { width: min(470px, 50vw); min-height: var(--control-height); display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--border-subtle); border-radius: var(--radius-control); color: var(--text-muted); background: var(--bg-surface); text-align: left; cursor: pointer; font-size: 12px; transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.global-search:hover { border-color: var(--border-strong); color: var(--text-secondary); background: var(--bg-surface-raised); }
.global-search:focus-visible { border-color: var(--border-focus); background: var(--bg-surface-raised); box-shadow: var(--control-focus-shadow); }
.global-search > .icon { flex-basis: 17px; width: 17px; height: 17px; }
.global-search > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search kbd { flex: 0 0 auto; padding: 3px 6px; border: 1px solid var(--border-default); border-radius: 5px; color: var(--text-muted); background: var(--bg-input); font: 500 10px var(--font-sans); }
body.search-open { overflow: hidden; }
.search-overlay { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: #05090db3; backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s var(--ease); }
.search-overlay:not(.is-open) { pointer-events: none; }
.search-overlay.is-open { opacity: 1; }
.search-panel { display: flex; flex-direction: column; width: min(720px, 100%); max-height: min(760px, calc(100vh - 40px)); max-height: min(760px, calc(100dvh - 40px)); overflow: hidden; border: 1px solid var(--border-strong); border-radius: 14px; color: var(--text-primary); background: var(--bg-surface); box-shadow: var(--search-panel-shadow); opacity: 0; transform: translateY(-10px) scale(.985); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.search-overlay.is-open .search-panel { opacity: 1; transform: translateY(0) scale(1); }
.search-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; }
.search-panel-heading .eyebrow { margin-bottom: 5px; }
.search-panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.search-close { flex: 0 0 auto; min-height: 34px; padding: 6px 9px; }
.search-close > .icon { width: 15px; height: 15px; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; margin: 0 24px; padding: 0 13px; border: 1px solid var(--border-default); border-radius: var(--radius-control); color: var(--brand-text); background: var(--bg-input); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease); }
.search-input-wrap:focus-within { border-color: var(--border-focus); background: var(--bg-surface-raised); box-shadow: var(--control-focus-shadow); }
.search-input-wrap > .icon { width: 20px; height: 20px; }
.search-input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text-primary); background: transparent; font-size: 16px; }
.search-input-wrap input::placeholder { color: var(--text-disabled); }
.search-input-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-clear { display: grid; flex: 0 0 auto; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border-default); border-radius: 7px; color: var(--text-secondary); background: var(--bg-surface-raised); cursor: pointer; transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease), transform .15s var(--ease); }
.search-clear:hover { border-color: var(--brand-border); color: var(--text-primary); background: var(--bg-surface-hover); }
.search-clear:active { background: var(--brand-active); transform: translateY(1px); }
.search-clear > .icon { width: 16px; height: 16px; }
.search-results { flex: 0 1 auto; min-height: 0; max-height: min(480px, calc(100vh - 250px)); max-height: min(480px, calc(100dvh - 250px)); overflow-y: auto; padding: 12px 14px; overscroll-behavior: contain; }
.search-result-group + .search-result-group { margin-top: 9px; }
.search-result-group-title { margin: 8px 10px 5px; color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.search-result-option { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 11px; width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--dropdown-option-radius); color: var(--text-primary); background: transparent; text-align: left; cursor: pointer; transition: background-color .14s var(--ease), border-color .14s var(--ease); }
.search-result-option:hover, .search-result-option[aria-selected="true"] { border-color: var(--border-subtle); background: var(--dropdown-option-hover-background); }
.search-result-option:focus-visible { border-color: var(--border-focus); outline: 2px solid var(--border-focus); outline-offset: 1px; }
.search-result-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--dropdown-category-foreground); background: var(--dropdown-category-background); }
.search-result-icon .icon { width: 17px; height: 17px; }
.search-result-copy { display: block; min-width: 0; }
.search-result-title, .search-result-detail { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-title { font-size: 13px; font-weight: 600; }
.search-result-detail { margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.search-result-title mark, .search-result-detail mark { padding: 0; color: var(--brand-text); background: transparent; font-weight: 700; }
.search-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 18px; color: var(--text-muted); text-align: center; }
.search-empty > .icon { width: 23px; height: 23px; color: var(--brand-text); }
.search-empty strong { color: var(--text-secondary); font-size: 13px; }
.search-empty span { max-width: 420px; font-size: 11px; line-height: 1.5; }
.search-footer { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 11px 24px 15px; border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 10px; }
.search-footer span { display: inline-flex; align-items: center; gap: 4px; }
.search-footer kbd { min-width: 20px; padding: 3px 5px; border: 1px solid var(--border-default); border-radius: 4px; color: var(--text-secondary); background: var(--bg-input); font: 500 9px var(--font-sans); text-align: center; }
.search-target-highlight { outline: 2px solid var(--brand-border); outline-offset: 3px; }
.topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: auto; }
.topbar-connection { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 150px; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; color: var(--text-muted); }
.connection-dot { position: relative; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--status-warning); }
.topbar-connection[data-state="connecting"] .connection-dot { animation: connection-pulse 1.7s ease-in-out infinite; }
.topbar-connection[data-state="connected"] .connection-dot { background: var(--status-success); box-shadow: 0 0 0 3px #4ade8020; }
.topbar-connection[data-state="disconnected"] .connection-dot { background: var(--status-danger); }
.sync-status { min-width: 0; overflow: hidden; color: var(--text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
@keyframes connection-pulse { 50% { box-shadow: 0 0 0 4px #fbbf2433; opacity: .72; } }
.main-content { max-width: 1600px; margin: 0 auto; padding: 22px 28px 34px; }
.main-content--workspace { max-width: none; padding: 18px clamp(16px, 2.2vw, 34px) 36px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.page-head--no-divider { border-bottom: 0; }
.page-head + .panel { border-top: 0; }
.page-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.page-head h1 { margin: 0; font: 700 clamp(23px, 2vw, 27px)/1.2 var(--font-sans); letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-head p { margin: 6px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.page-actions { flex: 0 1 auto; max-width: 100%; justify-content: flex-end; align-items: center; gap: 8px; margin-left: auto; }
.eyebrow { margin: 0 0 9px; color: var(--brand-text); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-height); padding: 10px 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); color: var(--text-primary); background: var(--bg-surface-raised); box-shadow: var(--button-shadow); cursor: pointer; font-size: 12px; font-weight: 650; line-height: 1.2; text-decoration: none; transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease), transform .15s var(--ease), box-shadow .18s var(--ease); }
.button > .icon { width: 17px; height: 17px; }
.button:hover:not(:disabled) { border-color: var(--brand-border); color: var(--text-primary); background: var(--bg-surface-hover); box-shadow: var(--button-hover-shadow); }
.button:active:not(:disabled) { background: var(--brand-active); transform: translateY(1px); box-shadow: none; }
.button-primary { min-height: var(--control-height); padding: 10px 16px; border-color: var(--brand-primary); color: var(--text-primary); background: var(--brand-primary); box-shadow: var(--button-primary-shadow); font-size: 12px; font-weight: 700; }
.button-primary:hover:not(:disabled) { border-color: var(--brand-hover); background: var(--brand-hover); }
.button-primary:active:not(:disabled) { border-color: var(--brand-active); background: var(--brand-active); }
.button-danger { border-color: var(--button-danger-border); color: var(--button-danger-text); background: var(--button-danger-surface); box-shadow: var(--button-shadow); }
.button-danger:hover:not(:disabled) { border-color: var(--status-danger); color: var(--text-primary); background: var(--button-danger-hover-surface); }
.button-danger:active:not(:disabled) { border-color: var(--status-danger); background: var(--button-danger-active-surface); }
.button-quiet { border-color: var(--border-strong); color: var(--text-secondary); background: var(--bg-surface-raised); box-shadow: var(--button-shadow); }
.button-quiet:hover:not(:disabled) { border-color: var(--brand-border); color: var(--text-primary); background: var(--bg-surface-hover); box-shadow: var(--button-hover-shadow); }
.button-small { min-height: 36px; padding: 7px 11px; border-radius: var(--radius-control-compact); font-size: 11px; font-weight: 600; }
.button-small > .icon { width: 16px; height: 16px; }
.button-icon-only { flex: 0 0 var(--control-height); width: var(--control-height); min-width: var(--control-height); min-height: var(--control-height); padding: 0; }
.button-icon-only > .icon { width: 17px; height: 17px; }
.button-wide { width: 100%; min-height: var(--control-height); margin-top: 17px; }
.button:disabled { border-color: var(--border-subtle); color: var(--text-disabled); background: var(--bg-sidebar); box-shadow: none; cursor: not-allowed; opacity: .72; transform: none; }
.panel { min-width: 0; border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; background: transparent; }
.panel-pad { padding: 14px 0; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 10px; font: 650 13px var(--font-sans); }
.panel-title small { color: var(--text-muted); font: 400 11px var(--font-sans); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-bottom: 18px; }
.stat-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; min-width: 0; min-height: 78px; padding: 12px 15px; border: 1px solid var(--border-default); border-radius: var(--radius-metric-card); color: var(--text-primary); background: var(--bg-surface); text-align: left; cursor: pointer; transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), transform .15s var(--ease); }
.stat-card:hover { border-color: var(--brand-border); background: var(--bg-surface-hover); }
.stat-card:active { transform: translateY(1px); }
.stat-card .stat-value { font: 700 22px/1.1 var(--font-sans); font-variant-numeric: tabular-nums; }
.stat-card .stat-value.is-attention { color: var(--status-warning); }
.stat-card .stat-value.is-critical { color: var(--status-danger); }
.stat-card .stat-label { margin-top: 5px; color: var(--muted); font-size: 11px; }
.dashboard-page { display: grid; gap: 13px; min-width: 0; padding-bottom: 14px; }
.dashboard-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-width: 0; }
.dashboard-header-copy { min-width: 0; padding-top: 2px; }
.dashboard-kicker, .dashboard-section-kicker { color: var(--brand-text); font-size: 9px; font-weight: 700; letter-spacing: .13em; line-height: 1.5; }
.dashboard-header-copy h1 { margin: 3px 0 0; color: var(--text-primary); font-size: clamp(22px, 2.2vw, 29px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.dashboard-header-copy p { max-width: 570px; margin: 6px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.dashboard-header-side { display: grid; justify-items: end; gap: 9px; min-width: 0; }
.dashboard-context, .dashboard-quick-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.dashboard-event-date, .dashboard-program-lock { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 8px; border: 1px solid var(--border-subtle); border-radius: 7px; background: var(--bg-surface); }
.dashboard-event-date { flex-direction: column; align-items: flex-start; gap: 1px; }
.dashboard-event-date span { color: var(--text-muted); font-size: 8px; }
.dashboard-event-date strong { color: var(--text-secondary); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-program-lock { color: var(--status-success); font-size: 9px; font-weight: 600; white-space: nowrap; }
.dashboard-program-lock > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--status-success-bg); }
.dashboard-program-lock.is-locked { color: var(--status-warning); }
.dashboard-program-lock.is-locked > span { box-shadow: 0 0 0 3px var(--status-warning-bg); }
.dashboard-quick-actions .button { display: inline-flex; align-items: center; gap: 5px; }
.dashboard-quick-actions .button > .icon { width: 14px; height: 14px; }
.dashboard-state-card, .dashboard-load-error, .dashboard-load-warning, .dashboard-inline-alert { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 13px; border: 1px solid var(--border-subtle); border-radius: var(--radius-feedback); color: var(--text-secondary); background: var(--bg-surface); font-size: 11px; line-height: 1.5; }
.dashboard-state-card { min-height: 62px; }
.dashboard-load-error, .dashboard-load-warning, .dashboard-inline-alert { justify-content: space-between; }
.dashboard-load-error { border-color: var(--status-danger); background: var(--status-danger-bg); }
.dashboard-load-error > div { display: grid; gap: 3px; }
.dashboard-load-error strong { color: var(--status-danger); font-size: 11px; }
.dashboard-load-error span { color: var(--text-secondary); font-size: 10px; }
.dashboard-load-warning, .dashboard-inline-alert { border-color: var(--status-warning); background: var(--status-warning-bg); }
.dashboard-load-warning > span, .dashboard-inline-alert > span { min-width: 0; color: var(--text-secondary); font-size: 10px; }
.stat-grid.dashboard-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stat-card.dashboard-metric-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; grid-template-areas: "label value" "note value"; align-items: center; min-height: 72px; padding: 10px 11px; }
.dashboard-metric-label { grid-area: label; overflow: hidden; color: var(--text-muted); font-size: 9px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.stat-card.dashboard-metric-card .stat-value { grid-area: value; align-self: center; font-size: 21px; }
.dashboard-metric-note { grid-area: note; overflow: hidden; color: var(--text-muted); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-metric-card .stat-value.is-attention { color: var(--status-warning); }
.dashboard-metric-card .stat-value.is-critical { color: var(--status-danger); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; }
.dashboard-section { min-width: 0; padding: var(--section-card-padding); border: 1px solid var(--section-card-border); border-radius: var(--radius-section-card); background: var(--section-card-background); }
.dashboard-attention, .dashboard-submissions { grid-column: 1 / -1; }
.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin-bottom: 10px; }
.dashboard-section-heading > div { display: grid; gap: 2px; min-width: 0; }
.dashboard-section-heading h2 { margin: 0; color: var(--text-primary); font-size: 13px; font-weight: 650; line-height: 1.35; }
.dashboard-section-caption, .dashboard-recent-heading > span { flex: 0 0 auto; color: var(--text-muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.dashboard-section-link { flex: 0 0 auto; padding: 3px 0; border: 0; color: var(--brand-text); background: transparent; cursor: pointer; font: 600 10px var(--font-sans); text-align: right; }
.dashboard-section-link:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.dashboard-section-link:focus-visible, .dashboard-task-title:focus-visible, .dashboard-program-title:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.dashboard-attention-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.dashboard-attention-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 9px; border: 1px solid var(--border-subtle); border-left: 2px solid var(--status-warning); border-radius: var(--radius-record-card); background: var(--bg-surface-raised); transition: border-color .14s ease, background-color .14s ease; }
.dashboard-attention-item[data-priority="critical"] { border-left-color: var(--status-danger); }
.dashboard-attention-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; color: var(--status-warning); background: var(--status-warning-bg); }
.dashboard-attention-item[data-priority="critical"] .dashboard-attention-icon { color: var(--status-danger); background: var(--status-danger-bg); }
.dashboard-attention-icon > .icon { width: 14px; height: 14px; }
.dashboard-attention-copy { min-width: 0; }
.dashboard-attention-copy h3 { margin: 0; color: var(--text-primary); font-size: 10px; font-weight: 650; line-height: 1.4; }
.dashboard-attention-copy p { margin: 3px 0 0; overflow: hidden; color: var(--text-muted); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; }
.dashboard-attention-item .button { min-height: 31px; padding: 6px 8px; font-size: 9px; white-space: nowrap; }
.dashboard-all-clear { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-feedback); color: var(--text-secondary); background: var(--bg-surface-raised); }
.dashboard-all-clear strong { color: var(--status-success); font-size: 10px; font-weight: 650; }
.dashboard-all-clear span { color: var(--text-muted); font-size: 9px; line-height: 1.45; }
.dashboard-section-description { margin: -4px 0 8px; color: var(--text-muted); font-size: 9px; }
.dashboard-task-list, .dashboard-program-list, .dashboard-submission-list { display: grid; }
.dashboard-task-row, .dashboard-program-row, .dashboard-submission-row { display: grid; align-items: center; gap: 10px; min-width: 0; padding: 9px 0; border-top: 1px solid var(--border-subtle); }
.dashboard-task-row { grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-task-copy, .dashboard-program-copy, .dashboard-submission-copy { display: grid; gap: 3px; min-width: 0; }
.dashboard-task-title, .dashboard-program-title { width: fit-content; max-width: 100%; padding: 0; border: 0; color: var(--text-primary); background: transparent; cursor: pointer; font: 600 10px/1.4 var(--font-sans); text-align: left; overflow-wrap: anywhere; }
.dashboard-task-title:hover, .dashboard-program-title:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }
.dashboard-task-copy > span, .dashboard-program-copy > span, .dashboard-submission-copy > span { overflow: hidden; color: var(--text-muted); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-task-due { display: grid; justify-items: end; gap: 4px; min-width: 0; }
.dashboard-task-due time { color: var(--text-secondary); font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }
.dashboard-program-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
.dashboard-program-number { color: var(--brand-text); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dashboard-program-duration { color: var(--text-secondary); font-size: 9px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dashboard-submission-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.dashboard-submission-metrics > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 39px; padding: 7px 9px; border: 1px solid var(--border-subtle); border-radius: 7px; color: var(--text-secondary); background: var(--bg-surface-raised); cursor: pointer; text-align: left; transition: border-color .14s ease, background-color .14s ease; }
.dashboard-submission-metrics > button:hover { border-color: var(--brand-border); background: var(--bg-surface-hover); }
.dashboard-submission-metrics > button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.dashboard-submission-metrics > button span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-submission-metrics > button strong { flex: 0 0 auto; color: var(--text-primary); font-size: 13px; font-variant-numeric: tabular-nums; }
.dashboard-recent-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 0 2px; }
.dashboard-recent-heading h3 { margin: 0; color: var(--text-secondary); font-size: 10px; font-weight: 650; }
.dashboard-submission-row { grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-submission-copy strong { overflow: hidden; color: var(--text-primary); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-empty-wrap { display: grid; justify-items: start; gap: 8px; padding-top: 8px; }
.dashboard-empty-wrap .empty-state { padding: 0; }
.dashboard-inline-alert { margin: 7px 0; padding: 8px 9px; }
.dashboard-inline-alert > span { font-size: 9px; }
@media (max-width: 1100px) {
  .stat-grid.dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-header { align-items: flex-start; }
  .dashboard-header-side { justify-items: start; }
  .dashboard-context, .dashboard-quick-actions { justify-content: flex-start; }
}
@media (max-width: 960px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-attention, .dashboard-submissions { grid-column: auto; }
}
@media (max-width: 620px) {
  .dashboard-header { flex-direction: column; gap: 12px; }
  .dashboard-header-side { width: 100%; }
  .stat-grid.dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-attention-list { grid-template-columns: minmax(0, 1fr); }
  .dashboard-section { padding: 11px; }
  .dashboard-task-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dashboard-task-due { display: flex; align-items: center; justify-content: space-between; }
  .dashboard-task-due time { text-align: left; }
  .dashboard-submission-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-load-error, .dashboard-load-warning, .dashboard-inline-alert { align-items: flex-start; flex-direction: column; }
}
.list-rows { display: grid; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--border-subtle); }
.list-row:first-child { border-top: 0; }
.list-main { min-width: 0; }
.program-action-group { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 5px; }
.list-main strong { display: block; overflow: hidden; color: var(--text-primary); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.list-main small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { --status-pill-color: var(--status-info); --status-pill-background: var(--status-info-bg); display: inline-flex; align-items: center; gap: 6px; min-height: 22px; max-width: 100%; padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--status-pill-color) 28%, var(--border-subtle)); border-radius: var(--radius-pill); color: var(--status-pill-color); background: var(--status-pill-background); font-size: 10px; font-weight: 600; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.status-pill::before { flex: 0 0 5px; width: 5px; height: 5px; border-radius: var(--radius-circle); background: currentColor; content: ""; }
.status-pill.success { --status-pill-color: var(--status-success); --status-pill-background: var(--status-success-bg); }
.status-pill.warning { --status-pill-color: var(--status-warning); --status-pill-background: var(--status-warning-bg); }
.status-pill.danger { --status-pill-color: var(--status-danger); --status-pill-background: var(--status-danger-bg); }
.status-pill.neutral { --status-pill-color: var(--status-neutral); --status-pill-background: var(--status-neutral-bg); }
.muted { color: var(--muted); }
.empty-state { padding: 10px 0; color: var(--text-secondary); font-size: 12px; text-align: left; line-height: 1.5; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.page-toolbar-surface { min-width: 0; }
.toolbar.page-toolbar-surface { padding: 0; }
.page-toolbar-surface .field { min-height: var(--control-height); border-radius: var(--radius-control); }
.toolbar.program-toolbar { display: grid; grid-template-columns: minmax(360px, 1.1fr) minmax(260px, 1fr) minmax(260px, 1fr) auto; align-items: end; gap: 12px 16px; }
.toolbar.production-toolbar { align-items: center; gap: 12px; }
.production-results { min-width: 0; }
.production-page-content { display: grid; gap: 12px; min-width: 0; padding-bottom: 14px; }
.production-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; min-width: 0; }
.production-page-heading { min-width: 0; padding-top: 2px; }
.production-page-kicker { color: var(--brand-text); font-size: 9px; font-weight: 700; letter-spacing: .13em; line-height: 1.5; }
.production-page-heading h1 { margin: 3px 0 0; color: var(--text-primary); font-size: clamp(22px, 2.2vw, 29px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.production-page-heading p { max-width: 640px; margin: 6px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.production-create-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.production-create-button > .icon { width: 15px; height: 15px; }
.production-load-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--status-danger); border-radius: 9px; background: var(--status-danger-bg); }
.production-load-error > div { display: grid; gap: 3px; min-width: 0; }
.production-load-error strong { color: var(--status-danger); font-size: 11px; }
.production-load-error span { color: var(--text-secondary); font-size: 10px; line-height: 1.45; }
.production-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.production-metric { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 48px; padding: 9px 11px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-surface); }
.production-metric > span { overflow: hidden; color: var(--text-muted); font-size: 10px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.production-metric > strong { flex: 0 0 auto; color: var(--text-primary); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.production-filter-bar { display: flex; gap: 5px; min-width: 0; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: thin; }
.production-filter-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 34px; padding: 6px 9px; border: 1px solid transparent; border-radius: 7px; color: var(--text-secondary); background: transparent; cursor: pointer; font: 550 10px var(--font-sans); white-space: nowrap; transition: color .14s ease, border-color .14s ease, background-color .14s ease; }
.production-filter-chip:hover { border-color: var(--border-subtle); color: var(--text-primary); background: var(--bg-surface-hover); }
.production-filter-chip.is-active { border-color: var(--border-strong); color: var(--text-primary); background: var(--bg-surface); }
.production-filter-chip:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.production-filter-count { display: inline-grid; min-width: 19px; height: 19px; place-items: center; padding-inline: 4px; border-radius: 5px; color: var(--text-muted); background: var(--bg-surface-raised); font-size: 9px; font-variant-numeric: tabular-nums; }
.production-filter-chip.is-active .production-filter-count { color: var(--brand-text); background: var(--brand-soft); }
.toolbar.production-toolbar { display: grid; grid-template-columns: minmax(170px, .75fr) minmax(0, 2fr) auto; align-items: center; gap: 8px; margin: 0; padding: 9px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); }
.production-search-control { position: relative; min-width: 0; }
.production-search-control .field { width: 100%; min-width: 0; padding-right: 36px; }
.search-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.production-search-clear { position: absolute; top: 50%; right: 7px; display: grid; width: 26px; height: 26px; place-items: center; padding: 0; transform: translateY(-50%); border: 0; border-radius: 5px; color: var(--text-muted); background: transparent; cursor: pointer; }
.production-search-clear:hover { color: var(--text-primary); background: var(--bg-surface-hover); }
.production-search-clear > .icon { width: 13px; height: 13px; }
.production-filter-selects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.manual-item-filter-selects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.production-filter-selects > .select, .production-filter-selects > .custom-select-control { width: 100%; min-width: 0; }
.production-filter-selects .custom-select-trigger { width: 100%; min-width: 0; padding-inline: 8px; overflow: hidden; }
.production-clear-filters { min-height: 36px; white-space: nowrap; }
.production-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 13px 1px 7px; }
.production-list-heading h2 { margin: 0; color: var(--text-primary); font-size: 12px; font-weight: 650; }
.production-list-heading > span { color: var(--text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.production-list { display: grid; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); }
.production-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(135px, .7fr) minmax(170px, .85fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 11px 12px; border-top: 1px solid var(--border-subtle); transition: background-color .14s ease; }
.production-row:first-child { border-top: 0; }
.production-row:hover { background: var(--bg-surface-hover); }
.production-main { display: grid; gap: 4px; min-width: 0; }
.production-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.production-type-badge { flex: 0 0 auto; max-width: 100%; overflow: hidden; padding: 3px 6px; border: 1px solid var(--border-subtle); border-radius: 5px; color: var(--brand-text); background: var(--brand-soft); font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.production-title-link { min-width: 0; padding: 0; border: 0; color: var(--text-primary); background: transparent; cursor: pointer; font: 650 12px/1.4 var(--font-sans); text-align: left; overflow-wrap: anywhere; }
.production-title-link:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }
.production-title-link:focus-visible { border-radius: 2px; outline: 2px solid var(--border-focus); outline-offset: 2px; }
.production-meta { overflow: hidden; color: var(--text-muted); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; }
.production-tech-indicators { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.production-tech-indicator { display: inline-flex; align-items: center; min-height: 19px; padding: 2px 6px; border: 1px solid var(--border-subtle); border-radius: 5px; color: var(--text-secondary); background: var(--bg-surface-raised); font-size: 9px; line-height: 1.3; }
.production-tech-indicator.is-attention { border-color: var(--status-warning); color: var(--status-warning); background: var(--status-warning-bg); }
.production-tech-more { color: var(--text-muted); }
.production-duration-cell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.production-duration-cell > div { display: grid; align-content: start; gap: 3px; min-width: 0; }
.production-duration-cell span { color: var(--text-muted); font-size: 9px; line-height: 1.3; }
.production-duration-cell strong { overflow-wrap: anywhere; color: var(--text-secondary); font-size: 10px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.production-status-cell { display: grid; gap: 5px; min-width: 0; }
.production-program-status { min-width: 0; }
.production-row-actions { display: flex; align-items: center; justify-content: flex-end; }
.production-row-menu { width: 33px; height: 33px; min-width: 33px; padding: 0; }
.production-row-menu > .icon { width: 16px; height: 16px; }
.production-results > .empty-state { margin-top: 0; padding: 17px 14px; border: 1px dashed var(--border-strong); border-radius: 9px; color: var(--text-secondary); background: var(--bg-surface); }
.program-page-content { display: grid; gap: 14px; padding-bottom: 14px; }
.program-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-width: 0; }
.program-page-heading { min-width: 0; padding-top: 2px; }
.program-page-kicker { color: var(--brand-text); font-size: 9px; font-weight: 700; letter-spacing: .13em; line-height: 1.5; }
.program-page-heading h1 { margin: 3px 0 0; color: var(--text-primary); font-size: clamp(22px, 2.2vw, 29px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.program-page-heading p { max-width: 590px; margin: 6px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.program-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
.program-lock-control { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); }
.program-lock-indicator { display: grid; width: 9px; height: 9px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--status-success); box-shadow: 0 0 0 3px var(--status-success-bg); }
.program-lock-control.is-locked .program-lock-indicator { background: var(--status-warning); box-shadow: 0 0 0 3px var(--status-warning-bg); }
.program-lock-control.is-unavailable .program-lock-indicator { background: var(--status-warning); box-shadow: 0 0 0 3px var(--status-warning-bg); }
.program-lock-copy { display: grid; gap: 2px; min-width: 0; }
.program-lock-copy strong { color: var(--text-primary); font-size: 10px; font-weight: 650; line-height: 1.4; }
.program-lock-copy > span { color: var(--text-muted); font-size: 9px; line-height: 1.4; }
.program-lock-action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.program-lock-action > .icon { width: 14px; height: 14px; }
.program-load-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--status-danger); border-radius: 9px; background: var(--status-danger-bg); }
.program-load-error > div { display: grid; gap: 2px; min-width: 0; }
.program-load-error strong { color: var(--status-danger); font-size: 11px; font-weight: 650; }
.program-load-error span { color: var(--text-secondary); font-size: 10px; line-height: 1.45; }
.program-load-error > .button { flex: 0 0 auto; }
.toolbar.page-toolbar-surface.program-toolbar { padding: 14px; margin: 0; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); }
.program-toolbar.is-locked { grid-template-columns: minmax(0, 1fr); }
.program-toolbar-group { min-width: 0; }
.program-start-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.program-start-field { min-width: 0; margin: 0; }
.program-control-label { display: block; margin: 0; color: var(--text-secondary); font-size: 11px; font-weight: 600; line-height: 1.4; }
.program-start-field .date-picker-control > .field, .program-start-field .date-picker-trigger { min-height: var(--control-height); }
.program-start-field .date-picker-trigger { border-radius: 0 6px 6px 0; }
.program-start-field .date-picker-trigger > .icon { width: 16px; height: 16px; }
.program-production-group { display: grid; gap: 6px; min-width: 0; }
.program-production-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; }
.program-production-controls > .custom-select-control { width: 100%; min-width: 0; }
.program-toolbar .button { min-height: var(--control-height); padding: 10px 14px; border-radius: var(--radius-control); font-size: 12px; white-space: nowrap; }
.program-toolbar .button > .icon { width: 16px; height: 16px; }
.program-add-production { min-width: 112px; }
.program-add-section { align-self: end; justify-self: end; min-width: 108px; }
.program-availability-note { color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.field, .select, .textarea { width: 100%; min-height: var(--control-height); padding: 9px 11px; border: 1px solid var(--border-default); border-radius: var(--radius-control); color: var(--text-primary); background-color: var(--bg-input); box-shadow: none; font-size: 12px; transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease; }
.field:hover:not(:disabled):not([readonly]), .select:hover:not(:disabled), .textarea:hover:not(:disabled):not([readonly]) { border-color: var(--border-strong); background-color: var(--bg-surface); }
.field:focus, .select:focus, .textarea:focus { border-color: var(--border-focus); background-color: var(--bg-surface); box-shadow: var(--control-focus-shadow); outline: 0; }
.field:disabled, .select:disabled, .textarea:disabled { border-color: var(--border-subtle); color: var(--text-disabled); background-color: var(--bg-sidebar); cursor: not-allowed; opacity: .72; }
.field::placeholder, .textarea::placeholder { color: var(--text-disabled); opacity: 1; }
.select { min-width: 140px; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23B8D7E8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; background-size: 16px; }
.select option { color: var(--text-primary); background: var(--dropdown-menu-background); }
.select option:checked { color: var(--dropdown-option-selected-foreground); background: var(--dropdown-option-selected-background); }
.select option:disabled { color: var(--text-disabled); }
.custom-select-control { position: relative; display: block; width: 100%; min-width: 140px; }
.toolbar > .custom-select-control { flex: 0 1 220px; width: 220px; }
.toolbar > .filter-disclosure-control { flex: 0 1 260px; width: 260px; }
.select-native-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; white-space: nowrap !important; }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; min-height: var(--dropdown-control-height); padding: var(--dropdown-control-padding); border: 1px solid var(--dropdown-control-border); border-radius: var(--dropdown-control-radius); color: var(--text-primary); background: var(--dropdown-control-background); text-align: left; cursor: pointer; font-size: 12px; transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.custom-select-trigger:hover:not(:disabled) { border-color: var(--dropdown-control-hover-border); background: var(--dropdown-control-hover-background); }
.custom-select-trigger[aria-expanded="true"] { border-color: var(--dropdown-control-open-border); background: var(--dropdown-control-hover-background); box-shadow: var(--dropdown-control-focus-shadow); }
.custom-select-trigger.is-placeholder .custom-select-value { color: var(--text-muted); }
.custom-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-chevron { display: grid; flex: 0 0 auto; place-items: center; width: 16px; height: 16px; color: var(--dropdown-category-foreground); transition: transform .22s cubic-bezier(.16,1,.3,1); }
.custom-select-chevron > .icon { width: 16px; height: 16px; }
.custom-select-trigger[aria-expanded="true"] .custom-select-chevron { transform: rotate(180deg); }
.custom-select-trigger:disabled { border-color: var(--border-subtle); color: var(--text-disabled); background: var(--bg-sidebar); cursor: not-allowed; }
.custom-select-control.is-invalid .custom-select-trigger { border-color: var(--status-danger); }
.custom-select-popup { position: fixed; inset: auto; z-index: 130; width: min(320px, calc(100vw - 24px)); max-height: min(320px, calc(100vh - 24px)); max-height: min(320px, calc(100dvh - 24px)); margin: 0; padding: var(--dropdown-menu-padding); overflow-y: auto; border: 1px solid var(--dropdown-menu-border); border-radius: var(--dropdown-menu-radius); color: var(--text-primary); background: var(--dropdown-menu-background); box-shadow: var(--dropdown-menu-shadow); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top left; transition: opacity .22s cubic-bezier(.16,1,.3,1), transform .22s cubic-bezier(.16,1,.3,1); }
.custom-select-popup[data-placement="top"] { transform-origin: bottom left; }
.custom-select-popup:not(:popover-open) { display: none; }
.custom-select-popup:popover-open { display: grid; align-content: start; gap: 2px; }
.custom-select-popup.is-open { opacity: 1; transform: translateY(0) scale(1); }
.custom-select-popup:not(.is-open) { pointer-events: none; }
.custom-select-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--dropdown-option-height); padding: var(--dropdown-option-padding); border-radius: var(--dropdown-option-radius); color: var(--text-primary); cursor: pointer; font-size: 12px; line-height: 1.4; transition: background-color .12s ease, color .12s ease, transform .15s ease; }
.custom-select-option:hover, .custom-select-option.is-active { color: var(--text-primary); background: var(--dropdown-option-hover-background); transform: translateX(3px); }
.custom-select-option.is-selected { color: var(--dropdown-option-selected-foreground); background: var(--dropdown-option-selected-background); }
.custom-select-option.is-disabled { color: var(--text-disabled); cursor: not-allowed; }
.custom-select-option[class*="status-select--"]::before { position: absolute; top: 9px; bottom: 9px; left: 4px; width: 2px; border-radius: 999px; background: var(--status-select-foreground); content: ""; opacity: .72; transition: top .12s ease, bottom .12s ease, width .12s ease, opacity .12s ease; }
.custom-select-option[class*="status-select--"].is-selected::before { top: 7px; bottom: 7px; width: 3px; opacity: 1; }
.custom-select-option[class*="status-select--"].is-disabled::before { opacity: .28; }
.status-select--success { --status-select-foreground: var(--dropdown-status-success-foreground); --status-select-background: var(--dropdown-status-success-background); }
.status-select--pending { --status-select-foreground: var(--dropdown-status-pending-foreground); --status-select-background: var(--dropdown-status-pending-background); }
.status-select--error { --status-select-foreground: var(--dropdown-status-error-foreground); --status-select-background: var(--dropdown-status-error-background); }
.status-select--neutral { --status-select-foreground: var(--dropdown-status-neutral-foreground); --status-select-background: var(--dropdown-status-neutral-background); }
.status-select--info { --status-select-foreground: var(--dropdown-status-info-foreground); --status-select-background: var(--dropdown-status-info-background); }
.custom-select-trigger[class*="status-select--"]:not(:disabled), .select[class*="status-select--"]:not(:disabled) { color: var(--status-select-foreground); background-color: var(--status-select-background); }
.custom-select-trigger[class*="status-select--"]:not(:disabled) { transition: border-color .16s ease, box-shadow .16s ease; }
.custom-select-option[class*="status-select--"]:not(.is-disabled):not(.is-selected) { color: var(--text-primary); background-color: transparent; }
.custom-select-option[class*="status-select--"]:not(.is-disabled):hover, .custom-select-option[class*="status-select--"]:not(.is-disabled).is-active { color: var(--text-primary); background-color: var(--dropdown-option-hover-background); }
.custom-select-option[class*="status-select--"].is-selected { color: var(--text-primary); background-color: color-mix(in srgb, var(--status-select-foreground) 10%, var(--dropdown-menu-background)); }
.custom-select-option[class*="status-select--"].is-selected:hover, .custom-select-option[class*="status-select--"].is-selected.is-active { color: var(--text-primary); background-color: color-mix(in srgb, var(--status-select-foreground) 10%, var(--dropdown-menu-background)); }
.custom-select-option[class*="status-select--"].is-selected .custom-select-option-check { color: var(--status-select-foreground); }
.select option[class*="status-select--"] { color: var(--status-select-foreground); background-color: var(--dropdown-menu-background); }
.custom-select-option-label { min-width: 0; overflow-wrap: anywhere; }
.custom-select-option-check { display: grid; flex: 0 0 auto; place-items: center; width: 16px; height: 16px; color: var(--brand-text); }
.custom-select-option-check > .icon { width: 15px; height: 15px; }
.filter-disclosure-trigger { gap: 6px; padding-inline: 8px; }
.page-toolbar-surface .filter-disclosure-trigger { padding-block: 9px; }
.filter-disclosure-funnel, .filter-disclosure-active-icon { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border: 1px solid var(--border-subtle); border-radius: var(--dropdown-option-radius); color: var(--text-muted); background: var(--bg-surface); }
.filter-disclosure-funnel > .icon, .filter-disclosure-active-icon > .icon { width: 15px; height: 15px; }
.filter-disclosure-active-icon { border-color: var(--brand-border); color: var(--dropdown-category-foreground); background: var(--dropdown-category-background); }
.filter-disclosure-label { flex: 0 0 auto; color: var(--text-muted); font-size: 11px; }
.filter-disclosure-trigger .custom-select-value { flex: 1; text-align: left; font-weight: 600; }
.filter-disclosure-popup { padding: var(--dropdown-menu-padding); }
.filter-disclosure-option { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; justify-content: initial; min-height: var(--dropdown-option-height); gap: 8px; padding: 6px 8px; }
.filter-disclosure-option-icon { display: grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border-subtle); border-radius: var(--dropdown-option-radius); color: var(--dropdown-category-foreground); background: var(--bg-surface); }
.filter-disclosure-option-icon > .icon { width: 16px; height: 16px; }
.filter-disclosure-option-label { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.filter-disclosure-option-check { width: 20px; height: 20px; border: 1px solid var(--border-strong); border-radius: var(--dropdown-option-radius); color: var(--text-disabled); transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease), transform .2s var(--ease); }
.filter-disclosure-option-check > .icon { width: 15px; height: 15px; }
.filter-disclosure-option.is-selected { color: var(--dropdown-option-selected-foreground); background: var(--dropdown-option-selected-background); }
.filter-disclosure-option.is-selected .filter-disclosure-option-icon { border-color: var(--brand-border); color: var(--dropdown-category-foreground); background: var(--bg-surface-raised); }
.filter-disclosure-option.is-selected .filter-disclosure-option-check { border-color: var(--brand-primary); color: var(--text-primary); background: var(--brand-primary); transform: scale(1.04); }
.filter-disclosure-option.is-active:not(.is-selected) { background: var(--bg-surface-hover); }
.textarea { min-height: 78px; resize: vertical; }
.field:disabled, .select:disabled, .textarea:disabled,
.field[readonly], .textarea[readonly] { border-color: var(--border-subtle); color: var(--text-disabled); background-color: var(--bg-sidebar); box-shadow: none; cursor: not-allowed; }
.field[readonly]:not(:disabled), .textarea[readonly]:not(:disabled) { cursor: text; }
.field:disabled::placeholder, .textarea:disabled::placeholder { color: var(--text-disabled); }
.field:user-invalid, .select:user-invalid, .textarea:user-invalid,
.field[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--status-danger); }
.field:user-invalid:focus, .select:user-invalid:focus, .textarea:user-invalid:focus,
.field[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px #f8717126; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; margin: 0; accent-color: var(--brand-primary); cursor: pointer; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { cursor: not-allowed; opacity: .55; }
input[type="checkbox"][role="switch"] { width: 40px; height: 23px; appearance: none; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-input); transition: background-color .18s ease, border-color .18s ease; }
input[type="checkbox"][role="switch"]::before { display: block; width: 17px; height: 17px; margin: 2px; border-radius: 50%; background: var(--text-muted); content: ""; transition: transform .18s ease, background-color .18s ease; }
input[type="checkbox"][role="switch"]:checked { border-color: var(--brand-primary); background: var(--brand-primary); }
input[type="checkbox"][role="switch"]:checked::before { transform: translateX(17px); background: var(--text-primary); }
input[type="checkbox"][role="switch"]:disabled { opacity: .55; }
input[type="file"] { max-width: 100%; color: var(--text-secondary); font-size: 12px; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 12px; border: 1px solid var(--border-default); border-radius: 9px; color: var(--text-primary); background: var(--bg-surface-raised); cursor: pointer; font: inherit; transition: border-color .18s ease, background-color .18s ease; }
input[type="file"]::file-selector-button:hover { border-color: var(--brand-border); background: var(--bg-surface-hover); }
input[type="file"]:disabled { color: var(--text-disabled); cursor: not-allowed; opacity: .55; }
input[type="file"]:disabled::file-selector-button { cursor: not-allowed; }
.date-picker-control { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: stretch; width: 100%; min-width: 0; }
.date-picker-control > .field { min-width: 0; width: 100%; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.date-picker-control > .date-picker-display { cursor: pointer; text-overflow: ellipsis; }
.date-picker-control > .date-picker-display:disabled { cursor: not-allowed; }
.date-picker-value { display: none; }
.date-picker-trigger { display: grid; place-items: center; min-width: 44px; margin-left: -1px; padding: 0; border: 1px solid var(--border-default); border-radius: 0 10px 10px 0; color: var(--brand-text); background: var(--bg-surface-raised); cursor: pointer; transition: border-color .18s ease, color .18s ease, background-color .18s ease; }
.date-picker-trigger:hover:not(:disabled) { border-color: var(--brand-border); color: var(--text-primary); background: var(--bg-surface-hover); }
.date-picker-trigger:disabled { color: var(--text-disabled); cursor: not-allowed; opacity: .55; }
.date-picker-trigger > .icon { width: 17px; height: 17px; }
.date-picker-control:focus-within .date-picker-trigger { border-color: var(--border-focus); }
.date-picker-display:focus-visible, .date-picker-trigger:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.date-picker-popup { position: fixed; inset: auto; z-index: 30; width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: 0; padding: 15px; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: 12px; color: var(--text-primary); background: var(--bg-surface-raised); box-shadow: 0 18px 40px #0009, inset 0 1px 0 #ffffff0a; backdrop-filter: blur(14px); transform-origin: top left; animation: popup-enter .16s var(--ease) both; }
.date-picker-popup.has-time { width: min(570px, calc(100vw - 24px)); }
.date-picker-popup.time-only { width: min(330px, calc(100vw - 24px)); }
.date-picker-popup.is-closing { pointer-events: none; animation: popup-exit .16s var(--ease) both; }
@keyframes popup-enter { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes popup-exit { from { opacity: 1; transform: scale(1) translateY(0); } to { opacity: 0; transform: scale(.96) translateY(-4px); } }
.date-picker-content { display: grid; min-width: 0; }
.date-picker-content.has-time { grid-template-columns: minmax(0, 1fr) minmax(180px, 210px); gap: 18px; align-items: stretch; }
.date-picker-content.time-only { grid-template-columns: minmax(0, 1fr); }
.date-picker-calendar { min-width: 0; }
.date-picker-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.date-picker-header { display: grid; grid-template-columns: 34px 34px minmax(0, 1fr) 34px 34px; align-items: center; gap: 4px; margin-bottom: 12px; }
.date-picker-month-nav { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 7px; color: var(--text-secondary); background: var(--bg-surface-raised); cursor: pointer; transition: border-color .14s ease, color .14s ease, background-color .14s ease; }
.date-picker-month-nav > .icon { width: 16px; height: 16px; }
.date-picker-month-nav:hover:not(:disabled) { border-color: var(--brand-border); color: var(--text-primary); background: var(--bg-surface-hover); }
.date-picker-month-nav:disabled { color: var(--text-disabled); cursor: not-allowed; opacity: .5; }
.date-picker-period { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.date-picker-period-month { min-width: 0; padding: 7px 8px; overflow: hidden; border: 1px solid transparent; border-radius: 7px; color: var(--text-primary); background: transparent; cursor: pointer; font: 700 13px var(--font-sans); text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.date-picker-period-month:hover:not(:disabled), .date-picker-month-option:hover:not(:disabled) { border-color: var(--brand-border); color: var(--text-primary); background: var(--bg-surface-hover); }
.date-picker-period-month:focus-visible, .date-picker-month-option:focus-visible, .date-picker-year:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.date-picker-period-month:disabled { color: var(--text-disabled); cursor: not-allowed; }
.date-picker-year { width: 66px; min-width: 52px; min-height: 34px; padding: 5px 6px; border-radius: 7px; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.date-picker-year[aria-invalid="true"] { border-color: var(--status-danger); }
.date-picker-month-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: -4px 0 10px; padding: 8px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); }
.date-picker-month-list[hidden] { display: none; }
.date-picker-month-option { min-width: 0; min-height: 34px; padding: 5px 6px; border: 1px solid transparent; border-radius: 6px; color: var(--text-secondary); background: transparent; cursor: pointer; font: 600 11px var(--font-sans); text-transform: capitalize; }
.date-picker-month-option[aria-selected="true"] { border-color: var(--brand-border); color: var(--brand-text); background: var(--brand-soft); }
.date-picker-month-option:disabled { color: var(--text-disabled); cursor: not-allowed; opacity: .55; }
.date-picker-weekdays, .date-picker-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.date-picker-weekdays { margin-bottom: 5px; }
.date-picker-weekdays span { color: var(--text-muted); font-size: 10px; font-weight: 600; text-align: center; }
.date-picker-week { margin-top: 4px; }
.date-picker-day { display: grid; place-items: center; width: 100%; min-width: 0; min-height: 34px; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 7px; color: var(--text-primary); background: transparent; cursor: pointer; font-size: 12px; font-variant-numeric: tabular-nums; transition: border-color .14s ease, color .14s ease, background-color .14s ease; }
.date-picker-day:hover:not(:disabled) { border-color: var(--brand-border); background: var(--bg-surface-hover); }
.date-picker-day.is-outside { color: var(--text-muted); }
.date-picker-day.is-today { border-color: var(--brand-border); color: var(--brand-text); }
.date-picker-day.is-selected { border-color: var(--brand-primary); color: var(--text-primary); background: var(--brand-primary); font-weight: 700; }
.date-picker-day.is-today.is-selected { border-color: var(--border-focus); box-shadow: inset 0 0 0 1px var(--border-focus); }
.date-picker-day:disabled { color: var(--text-disabled); background: transparent; cursor: not-allowed; opacity: .48; }
.date-picker-day:focus-visible, .date-picker-month-nav:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.date-picker-time { min-width: 0; padding: 9px 0 0 17px; border-left: 1px solid var(--border-subtle); }
.date-picker-time-only { padding: 0; border: 0; }
.date-picker-time-title { margin: 0 0 12px; color: var(--text-secondary); font-size: 11px; font-weight: 700; }
.date-picker-time-only .date-picker-time-title { margin-bottom: 15px; color: var(--text-primary); font-size: 14px; }
.date-picker-time-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
.date-picker-time-controls.has-seconds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 6px; }
.date-picker-time-field { display: grid; min-width: 0; gap: 6px; color: var(--text-muted); font-size: 10px; font-weight: 600; text-align: center; }
.date-picker-time-field label { color: inherit; }
.date-picker-time-entry { display: grid; grid-template-rows: 25px 40px 25px; justify-items: center; gap: 3px; }
.date-picker-time-input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 3px; border-radius: 7px; font-size: 15px; font-variant-numeric: tabular-nums; text-align: center; }
.date-picker-time-input:disabled { color: var(--text-disabled); cursor: not-allowed; opacity: .6; }
.date-picker-time-input[aria-invalid="true"] { border-color: var(--status-danger); }
.date-picker-time-step { display: grid; place-items: center; width: 34px; height: 25px; padding: 0; border: 1px solid transparent; border-radius: 5px; color: var(--text-muted); background: transparent; cursor: pointer; font-size: 15px; line-height: 1; }
.date-picker-time-step:hover:not(:disabled) { border-color: var(--brand-border); color: var(--brand-text); background: var(--brand-soft); }
.date-picker-time-step:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
.date-picker-time-step:disabled { color: var(--text-disabled); cursor: not-allowed; }
.date-picker-time-summary { min-height: 22px; margin: 12px 0 8px; padding-top: 10px; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 11px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.date-picker-error { min-height: 0; margin: 0; color: var(--status-danger); font-size: 10px; line-height: 1.45; }
.date-picker-error:empty { display: none; }
.date-picker-actions { display: flex; align-items: center; gap: 7px; margin-top: 13px; }
.date-picker-actions .button { min-height: 36px; padding: 7px 11px; font-size: 11px; }
.date-picker-actions .date-picker-done { min-width: 86px; margin-left: auto; }
.date-picker-actions .button:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 560px) {
  .date-picker-popup.has-time { width: min(430px, calc(100vw - 24px)); }
  .date-picker-content.has-time { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .date-picker-time:not(.date-picker-time-only) { padding: 13px 0 0; border-top: 1px solid var(--border-subtle); border-left: 0; }
  .date-picker-time-controls { max-width: 310px; }
  .date-picker-time-summary { min-height: 0; }
  .date-picker-day { min-height: 36px; }
  .date-picker-actions { gap: 5px; }
  .date-picker-actions .button { padding: 7px 9px; }
}
.toolbar .field { width: auto; min-width: 210px; }
.toolbar .select { width: auto; }
.toolbar .field, .toolbar .select, .toolbar .custom-select-trigger { min-height: 42px; border-radius: 7px; }
.toolbar.production-toolbar > .field { flex: 1 1 280px; width: auto; min-width: 0; }
.toolbar.production-toolbar > .filter-disclosure-control { flex: 0 1 260px; width: 260px; min-width: 220px; }
.toolbar.production-toolbar > .muted { flex: 0 0 auto; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 8px 9px; border-bottom: 1px solid var(--border-strong); color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.data-table td { padding: 10px 9px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 12px; vertical-align: middle; }
.data-table tbody tr:hover { background: #ffffff06; }
.submission-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.text-button { padding: 2px 0; border: 0; border-radius: 2px; color: var(--brand-text); background: transparent; cursor: pointer; font-size: inherit; text-align: left; transition: color .14s ease; }
.text-button:hover { color: var(--text-primary); background: var(--brand-soft); text-decoration: underline; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list.page-actions { gap: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.form-field label.muted { color: var(--text-muted); }
.form-field label em { color: var(--dim); font-style: normal; font-weight: 400; }
.settings-page { display: grid; gap: 15px; min-width: 0; }
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 20px; min-width: 0; }
.settings-nav { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); }
.settings-nav-heading { padding: 4px 9px 7px; color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.settings-nav-link { display: flex; align-items: center; gap: 9px; min-height: var(--control-height); padding: 8px 9px; border: 1px solid transparent; border-radius: var(--radius-nav-item); color: var(--text-secondary); font-size: 11px; font-weight: 600; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.settings-nav-link:hover { border-color: var(--border-default); color: var(--text-primary); background: var(--bg-surface-hover); }
.settings-nav-link[aria-current="location"] { border-color: var(--brand-border); color: var(--text-primary); background: var(--brand-soft); }
.settings-nav-index { color: var(--text-muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.settings-nav-link[aria-current="location"] .settings-nav-index { color: var(--brand-text); }
.settings-content { display: grid; gap: 13px; min-width: 0; }
.settings-section { min-width: 0; padding: var(--section-card-padding); scroll-margin-top: 18px; border: 1px solid var(--section-card-border); border-radius: var(--radius-section-card); background: var(--section-card-background); }
.settings-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; padding-bottom: 13px; margin-bottom: 2px; border-bottom: 1px solid var(--border-subtle); }
.settings-section-header > div { min-width: 0; }
.settings-section-kicker { color: var(--brand-text); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.settings-section-header h2 { margin: 4px 0 0; color: var(--text-primary); font-size: 16px; font-weight: 650; }
.settings-section-header > p { max-width: 370px; margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.55; }
.settings-section-body { display: grid; }
.settings-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.settings-row:last-child { padding-bottom: 2px; border-bottom: 0; }
.settings-row:first-child { padding-top: 12px; }
.settings-copy { display: grid; gap: 4px; min-width: 0; }
.settings-label { color: var(--text-secondary); font-size: 11px; font-weight: 650; }
.settings-copy p, .settings-form-footer p, .settings-permission-note { margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.55; }
.settings-control { width: 100%; min-width: 0; }
.settings-control > .select, .settings-control > .custom-select-control, .settings-control > .field { width: 100%; min-width: 0; }
.settings-switch-control { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.settings-switch-state { color: var(--text-muted); font-size: 10px; font-weight: 600; white-space: nowrap; }
.settings-switch-control input[role="switch"] { flex: 0 0 auto; }
.settings-event-grid { gap: 14px; padding-top: 13px; }
.settings-event-grid > .form-field { min-width: 0; }
.settings-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 14px; margin-top: 13px; border-top: 1px solid var(--border-subtle); }
.settings-form-footer .button { flex: 0 0 auto; }
.settings-permission-note { padding-top: 11px; margin-top: 10px; border-top: 1px solid var(--border-subtle); }
.settings-users-table-wrap { margin-top: 12px; }
.settings-users-table { min-width: 680px; }
.settings-users-table td { vertical-align: middle; }
.settings-users-table .select, .settings-users-table .custom-select-control { width: 100%; min-width: 0; }
.settings-system-backups { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.settings-system-backups > div { min-width: 0; }
.settings-system-backups strong { color: var(--text-secondary); font-size: 11px; font-weight: 650; }
.settings-system-backups p { margin: 4px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.settings-system-backups .button { flex: 0 0 auto; }
.settings-logs { display: grid; gap: 10px; min-width: 0; padding-top: 12px; }
.settings-logs-description, .settings-log-search-help { margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.55; }
.settings-log-filters { display: grid; grid-template-columns: minmax(145px, .8fr) minmax(135px, .75fr) minmax(230px, 1.45fr); align-items: end; gap: 10px; }
.settings-log-filters .form-field { min-width: 0; }
.settings-log-filters .field, .settings-log-filters .select, .settings-log-filters .custom-select-control { width: 100%; min-width: 0; }
.settings-log-record-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--brand-border); border-radius: 7px; color: var(--brand-text); background: var(--brand-soft); font-size: 10px; overflow-wrap: anywhere; }
.settings-logs-results { display: grid; gap: 9px; min-width: 0; }
.settings-logs-status { margin: 0; color: var(--status-info); font-size: 11px; }
.settings-logs-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-feedback); color: var(--status-danger); background: var(--status-danger-bg); font-size: 11px; line-height: 1.5; }
.settings-logs-error p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.settings-logs-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px dashed var(--border-default); border-radius: var(--radius-feedback); color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.settings-logs-empty p { margin: 0; }
.settings-logs-list-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 10px; }
.settings-log-list { display: grid; gap: 7px; min-width: 0; }
.settings-log-entry { min-width: 0; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-record-card); background: var(--bg-surface-raised); }
.settings-log-entry-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 11px; min-width: 0; }
.settings-log-severity { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 3px 7px; border: 1px solid var(--border-subtle); border-radius: 5px; font-size: 9px; font-weight: 650; white-space: nowrap; }
.settings-log-severity--info { color: var(--status-info); background: var(--status-info-bg); }
.settings-log-severity--success { border-color: var(--status-success-border); color: var(--status-success); background: var(--status-success-bg); }
.settings-log-severity--warning { color: var(--status-warning); background: var(--status-warning-bg); }
.settings-log-entry-copy { min-width: 0; }
.settings-log-entry-copy h3 { margin: 0; color: var(--text-primary); font-size: 11px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.settings-log-entry-copy p { margin: 3px 0 0; color: var(--text-muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.settings-log-entry-main > time { color: var(--text-muted); font-size: 9px; text-align: right; white-space: nowrap; }
.settings-log-entry-details { margin-top: 8px; border-top: 1px solid var(--border-subtle); }
.settings-log-entry-details > summary { width: fit-content; min-height: 34px; padding-top: 8px; color: var(--text-secondary); cursor: pointer; font-size: 10px; font-weight: 600; }
.settings-log-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; padding-top: 5px; }
.settings-log-details > div { min-width: 0; }
.settings-log-details dt { color: var(--text-muted); font-size: 9px; }
.settings-log-details dd { margin: 3px 0 0; color: var(--text-secondary); font-size: 10px; overflow-wrap: anywhere; }
.settings-logs-more { justify-self: start; min-height: var(--control-height); }
@media (max-width: 820px) {
  .settings-log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-log-search { grid-column: 1 / -1; }
  .settings-users-table-wrap { overflow: visible; }
  .settings-users-table, .settings-users-table tbody { display: block; width: 100%; min-width: 0; }
  .settings-users-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .settings-users-table tbody { display: grid; gap: 9px; }
  .settings-users-table tbody tr { display: grid; padding: 3px 10px; border: 1px solid var(--border-subtle); border-radius: 7px; background: var(--bg-surface-raised); }
  .settings-users-table tbody td { display: grid; grid-template-columns: minmax(94px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 8px; min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
  .settings-users-table tbody td::before { color: var(--text-muted); content: attr(data-label); font-size: 10px; font-weight: 600; }
  .settings-users-table tbody td:last-child { border-bottom: 0; }
  .settings-users-table .select, .settings-users-table .custom-select-control { width: 100%; min-width: 0; }
}
@media (max-width: 620px) {
  .settings-section { padding: 15px 13px; }
  .settings-section-header { flex-direction: column; gap: 5px; }
  .settings-section-header > p { max-width: none; }
  .settings-row { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; }
  .settings-control { max-width: none; }
  .settings-switch-control { justify-content: space-between; }
  .settings-event-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-form-footer { align-items: stretch; flex-direction: column; }
  .settings-form-footer .button { width: 100%; }
  .settings-system-backups { align-items: stretch; flex-direction: column; }
  .settings-system-backups .button { width: 100%; }
  .settings-log-filters { grid-template-columns: minmax(0, 1fr); }
  .settings-log-record-filter, .settings-logs-empty, .settings-logs-error { align-items: stretch; flex-direction: column; }
  .settings-log-record-filter .button, .settings-logs-empty .button, .settings-logs-error .button { width: 100%; }
  .settings-log-entry-main { grid-template-columns: auto minmax(0, 1fr); }
  .settings-log-entry-main > time { grid-column: 2; justify-self: start; text-align: left; }
  .settings-log-details { grid-template-columns: minmax(0, 1fr); }
  .settings-logs-list-meta { align-items: flex-start; }
  .settings-logs-more { width: 100%; }
}
.duration-field { min-width: 0; }
.duration-field > .duration-field-title { display: block; color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.duration-field-title em { color: var(--dim); font-style: normal; font-weight: 400; }
.duration-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.duration-input-part { display: grid; gap: 4px; min-width: 0; }
.duration-input-part > span { display: block; color: var(--text-muted); font-size: 10px; font-weight: 550; }
.duration-input-part .field { width: 100%; min-width: 0; }
.detail-item .duration-field > .duration-field-title { color: var(--text-secondary); font-size: 11px; }
.detail-item .duration-input-part > span { color: var(--text-muted); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.production-actions-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: var(--control-height); }
.production-actions-trigger > .icon { width: 16px; height: 16px; }
.production-action-menu { position: fixed; inset: auto; z-index: 120; width: min(264px, calc(100vw - 24px)); max-height: min(420px, calc(100vh - 24px)); max-height: min(420px, calc(100dvh - 24px)); margin: 0; padding: var(--dropdown-menu-padding); overflow: auto; border: 1px solid var(--dropdown-menu-border); border-radius: var(--dropdown-menu-radius); color: var(--text-primary); background: var(--dropdown-menu-background); box-shadow: var(--dropdown-menu-shadow); opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; transition: opacity .16s cubic-bezier(.16,1,.3,1), transform .16s cubic-bezier(.16,1,.3,1); }
.production-action-menu[data-placement="top"] { transform-origin: bottom right; }
.production-action-menu.is-open { opacity: 1; transform: translateY(0) scale(1); }
.production-action-menu.is-fallback { position: fixed; display: block; }
.production-action-menu:not(.is-open) { pointer-events: none; }
.production-action-menu-header { display: grid; gap: 3px; padding: 8px 10px 9px; border-bottom: 1px solid var(--border-subtle); }
.production-action-menu-header strong { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.production-action-menu-header small { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.production-action-menu-items { display: grid; gap: 2px; padding: 5px 0; }
.production-action-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--dropdown-option-height); padding: var(--dropdown-option-padding); border: 1px solid transparent; border-radius: var(--dropdown-option-radius); color: var(--text-primary); background: transparent; text-align: left; cursor: pointer; font-size: 12px; font-weight: 550; transition: background-color .12s ease, color .12s ease, border-color .12s ease, transform .15s ease; }
.production-action-menu-item > .icon { width: 16px; height: 16px; color: var(--dropdown-category-foreground); }
.production-action-menu-item:hover, .production-action-menu-item:focus-visible { border-color: var(--border-subtle); color: var(--text-primary); background: var(--dropdown-option-hover-background); outline-offset: -2px; transform: translateX(3px); }
.production-action-menu-divider { height: 1px; margin: 3px 5px; background: var(--border-subtle); }
.production-action-menu-item.is-destructive { color: var(--status-danger); }
.production-action-menu-item.is-destructive > .icon { color: var(--status-danger); }
.production-action-menu-item.is-destructive:hover, .production-action-menu-item.is-destructive:focus-visible { color: var(--dropdown-status-error-foreground); background: var(--dropdown-status-error-background); }
.section-block { margin: 18px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); color: var(--brand-text); font: 700 13px var(--font-sans); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px 18px; }
.detail-item { min-width: 0; }
.detail-item span { display: block; color: var(--dim); font-size: 10px; }
.detail-item strong { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--text-primary); font-size: 12px; font-weight: 500; }
.production-sheet { width: min(100%, 1440px); min-height: calc(100vh - 120px); min-height: calc(100dvh - 120px); padding: 0 2px 36px; margin-inline: auto; }
.production-sheet-header { position: sticky; top: 64px; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px 30px; padding: 12px 0 20px; border-bottom: 1px solid var(--border-strong); background: var(--bg-app); }
.production-sheet-heading { display: grid; align-content: start; gap: 11px; min-width: 0; }
.production-sheet-context { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-width: 0; }
.production-sheet-context .eyebrow { margin: 0; color: var(--text-muted); font-size: 10px; letter-spacing: .1em; }
.production-sheet-back { flex: 0 0 auto; min-height: var(--control-height); margin: 0; padding: 8px 11px; color: var(--text-secondary); }
.production-sheet-back > .icon { width: 15px; height: 15px; }
.production-sheet-title { min-width: 0; }
.production-sheet-title h1 { margin: 0; font-size: clamp(27px, 2.4vw, 32px); font-weight: 680; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.production-sheet-empty h1 { margin: 0; font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -.03em; overflow-wrap: anywhere; }
.production-sheet-title-input.field { width: min(100%, 740px); min-height: 0; padding: 3px 7px; border-color: transparent; border-radius: var(--radius-control); color: var(--text-primary); background: transparent; font: inherit; letter-spacing: inherit; line-height: 1.2; }
.production-sheet-title-input.field:hover:not(:disabled), .production-sheet-title-input.field:focus { border-color: var(--border-focus); background: var(--bg-surface); }
.production-sheet-title-input.field:focus { box-shadow: var(--control-focus-shadow); outline: 0; }
.production-sheet-title p { margin: 7px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.production-sheet-title > .production-sheet-statuses { margin-top: 11px; }
.production-sheet-header-actions { display: flex; align-items: flex-start; justify-content: flex-end; min-width: 0; }
.production-detail-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.production-review-button { white-space: nowrap; }
.production-edit-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.production-edit-unsaved { color: var(--status-warning); font-size: 10px; font-weight: 600; }
.production-edit-item .form-field { min-width: 0; gap: 6px; }
.production-edit-item .form-field > label { color: var(--text-muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.production-edit-item .field, .production-edit-item .textarea, .production-edit-item .select { min-width: 0; }
.production-edit-item .custom-select-control { width: 100%; }
#production-edit-form .production-edit-item .custom-select-value, #manual-program-item-form .production-edit-item .custom-select-value { font-size: inherit; }
#production-edit-form .production-edit-item .custom-select-trigger:not(.is-placeholder) .custom-select-value, #manual-program-item-form .production-edit-item .custom-select-trigger:not(.is-placeholder) .custom-select-value { color: inherit; }
#production-edit-form .production-edit-item .custom-select-option-label, #manual-program-item-form .production-edit-item .custom-select-option-label { color: inherit; font-size: inherit; }
#production-edit-form .production-edit-item .custom-select-option-check, #manual-program-item-form .production-edit-item .custom-select-option-check { display: grid; color: var(--brand-text); }
#production-edit-form .production-edit-item .custom-select-option[class*="status-select--"].is-selected .custom-select-option-check, #manual-program-item-form .production-edit-item .custom-select-option[class*="status-select--"].is-selected .custom-select-option-check { color: var(--status-select-foreground); }
#production-edit-form .production-edit-item .form-field > label, #manual-program-item-form .production-edit-item .form-field > label { color: var(--text-secondary); font-size: 11px; font-weight: 600; line-height: 1.45; }
#production-edit-form .production-edit-item .form-field > label em, #manual-program-item-form .production-edit-item .form-field > label em { color: var(--text-muted); font-size: 10px; font-weight: 400; }
#production-edit-form .field:not(.production-sheet-title-input), #production-edit-form .textarea, #manual-program-item-form .field:not(.production-sheet-title-input), #manual-program-item-form .textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 7px; color: var(--text-primary); background-color: var(--bg-input); font-size: 13px; line-height: 1.45; }
#production-edit-form .production-other-field { transition: border-color .16s ease, color .16s ease, background-color .16s ease; }
#production-edit-form .textarea, #manual-program-item-form .textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
#production-edit-form .field::placeholder, #production-edit-form .textarea::placeholder, #manual-program-item-form .field::placeholder, #manual-program-item-form .textarea::placeholder { color: var(--text-muted); opacity: 1; }
#production-edit-form .field:disabled, #production-edit-form .textarea:disabled, #manual-program-item-form .field:disabled, #manual-program-item-form .textarea:disabled { border-color: var(--border-subtle); color: var(--text-disabled); background-color: var(--bg-sidebar); cursor: not-allowed; opacity: 1; }
#production-edit-form .field[readonly], #production-edit-form .textarea[readonly], #manual-program-item-form .field[readonly], #manual-program-item-form .textarea[readonly] { color: var(--text-secondary); background-color: var(--bg-surface); }
#production-edit-form .field:user-invalid, #production-edit-form .textarea:user-invalid, #manual-program-item-form .field:user-invalid, #manual-program-item-form .textarea:user-invalid { border-color: var(--status-danger); }
.production-edit-combined { display: grid; gap: 10px; }
@media (prefers-reduced-motion: reduce) {
  #production-edit-form .production-other-field { transition: none; }
}
.production-actions-trigger { flex: 0 0 auto; min-height: 42px; margin: 0; }
.production-sheet-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 15px; }
.production-sheet-section { min-width: 0; padding: 21px 22px 23px; border: 1px solid var(--border-subtle); border-radius: var(--radius-section-card); background: var(--bg-surface); scroll-margin-top: 120px; }
.sheet-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sheet-section-heading .eyebrow { margin-bottom: 5px; }
.sheet-section-heading h2 { margin: 0; color: var(--text-primary); font-size: 15px; font-weight: 680; letter-spacing: -.015em; }
.sheet-record-id { color: var(--text-muted); font-size: 10px; text-align: right; overflow-wrap: anywhere; }
.production-sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 30px; }
.production-sheet .detail-item { min-width: 0; }
.production-sheet .detail-item span { color: var(--text-muted); font-size: 10px; line-height: 1.4; letter-spacing: .01em; }
.production-sheet .detail-item strong { margin-top: 5px; color: var(--text-primary); font-size: 13px; font-weight: 550; line-height: 1.55; overflow-wrap: anywhere; }
.production-sheet .detail-item.is-empty strong { color: var(--text-muted); font-weight: 450; }
.production-sheet-note { max-width: 760px; margin: -3px 0 17px; color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.production-sheet-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 15px; margin-top: 17px; border-top: 1px solid var(--border-subtle); }
.production-sheet-empty { max-width: 680px; padding: 45px 0; }
.production-sheet-empty .eyebrow { margin-bottom: 8px; }
.production-sheet-empty p { margin: 9px 0 20px; }
.account-menu { position: fixed; z-index: 140; inset: auto; width: min(340px, calc(100vw - 24px)); max-height: min(520px, calc(100vh - 24px)); max-height: min(520px, calc(100dvh - 24px)); margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--dropdown-menu-border); border-radius: 13px; color: var(--text-primary); background: var(--dropdown-menu-background); box-shadow: var(--dropdown-menu-shadow); opacity: 0; transform: translateY(8px) scale(.985); transform-origin: top right; transition: opacity .2s cubic-bezier(.16,1,.3,1), transform .22s cubic-bezier(.16,1,.3,1); }
.account-menu[hidden] { display: none; }
.account-menu[data-placement="above"] { transform-origin: bottom right; }
.account-menu.is-open { opacity: 1; transform: translateY(0) scale(1); }
.account-menu:not(.is-open) { pointer-events: none; }
.account-menu.is-view-transitioning { overflow: hidden; }
.account-menu.is-view-transitioning .account-menu-content { pointer-events: none; }
.account-menu-content { display: grid; gap: 10px; padding: 13px; }
.account-session-card { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-surface); }
.account-session-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.account-session-heading > span { color: var(--text-secondary); font-size: 10px; font-weight: 650; }
.account-session-heading > strong { color: var(--brand-text); font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .025em; white-space: nowrap; }
.account-session-expiration-row { display: flex; flex-wrap: wrap; gap: 4px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.account-session-progress { width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: var(--bg-input); }
.account-session-progress-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--brand-primary); transition: width .85s linear, background-color .18s ease; }
.account-session-card[data-state="warning"] { border-color: var(--button-caution-border); background: var(--button-caution-surface); }
.account-session-card[data-state="warning"] .account-session-heading > strong { color: var(--status-warning); }
.account-session-card[data-state="warning"] .account-session-progress-fill { background-color: var(--status-warning); }
.account-session-card[data-state="critical"],
.account-session-card[data-state="expired"] { border-color: var(--button-danger-border); background: var(--button-danger-surface); }
.account-session-card[data-state="critical"] .account-session-heading > strong,
.account-session-card[data-state="expired"] .account-session-heading > strong { color: var(--status-danger); }
.account-session-card[data-state="critical"] .account-session-progress-fill,
.account-session-card[data-state="expired"] .account-session-progress-fill { background-color: var(--status-danger); }
.account-menu-identity { display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; align-items: start; gap: 10px; padding: 1px 0 12px; border-bottom: 1px solid var(--border-subtle); }
.account-menu-avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--brand-border); border-radius: 11px; color: var(--brand-text); background: var(--brand-soft); font-size: 12px; font-weight: 700; }
.account-menu-identity-copy { min-width: 0; }
.account-menu-identity-copy .eyebrow { margin-bottom: 3px; font-size: 9px; letter-spacing: .12em; }
.account-menu-identity-copy h2, .account-menu-content > h2 { margin: 0; color: var(--text-primary); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.account-menu-identity-copy p { margin: 3px 0 0; color: var(--text-muted); font-size: 10px; overflow-wrap: anywhere; }
.account-menu-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 7px; color: var(--text-muted); background: transparent; cursor: pointer; transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease); }
.account-menu-close:hover { border-color: var(--border-subtle); color: var(--text-primary); background: var(--bg-surface-hover); }
.account-menu-close .icon { width: 15px; height: 15px; }
.account-menu-actions { display: grid; gap: 3px; }
.account-menu-action { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 8px 9px; border: 1px solid transparent; border-radius: 8px; color: var(--text-primary); background: transparent; text-align: left; cursor: pointer; transition: border-color .16s var(--ease), background-color .16s var(--ease); }
.account-menu-action:hover { border-color: var(--border-subtle); background: var(--bg-surface-hover); }
.account-menu-action-copy { display: grid; min-width: 0; gap: 2px; }
.account-menu-action-copy strong { color: var(--text-primary); font-size: 11px; font-weight: 600; }
.account-menu-action-copy small { color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.account-menu-chevron { color: var(--text-muted); font-size: 18px; line-height: 1; text-align: center; }
.account-menu-logout { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid var(--button-danger-border); border-radius: 8px; color: var(--button-danger-text); background: transparent; text-align: left; cursor: pointer; font-size: 11px; font-weight: 600; transition: border-color .16s var(--ease), background-color .16s var(--ease), transform .14s var(--ease); }
.account-menu-logout:hover { background: var(--button-danger-surface); }
.account-menu-logout:active:not(:disabled) { transform: scale(.985); }
.account-menu-logout .icon { width: 15px; height: 15px; transition: transform .16s var(--ease); }
.account-menu-logout:hover .icon { transform: translateX(2px); }
.account-menu-form-heading { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.account-menu-back { padding: 5px 0; border: 0; color: var(--text-secondary); background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; }
.account-menu-back:hover { color: var(--brand-text); }
.account-menu-form { display: grid; gap: 10px; }
.account-menu-form .form-field > span { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.account-menu-help { margin: -2px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.account-menu-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.account-menu-form-actions .button { min-height: 38px; padding: 8px 11px; font-size: 11px; }
.rehearsal-page { display: grid; gap: 16px; min-width: 0; }
.rehearsal-page > .page-head { margin-bottom: 0; }
.rehearsal-overview { display: grid; grid-template-columns: minmax(190px, 1.4fr) repeat(4, minmax(92px, .55fr)) minmax(190px, 1.3fr); align-items: center; min-width: 0; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); }
.rehearsal-progress { display: grid; gap: 9px; min-width: 0; padding: 12px 15px; }
.rehearsal-progress > div { display: grid; gap: 4px; }
.rehearsal-progress strong { color: var(--text-primary); font-size: 12px; font-weight: 650; }
.rehearsal-overview-label { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.rehearsal-progress-bar { display: block; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 999px; color: var(--brand-text); background: var(--bg-input); accent-color: var(--brand-text); }
.rehearsal-progress-bar::-webkit-progress-bar { border-radius: 999px; background: var(--bg-input); }
.rehearsal-progress-bar::-webkit-progress-value { border-radius: 999px; background: var(--brand-text); }
.rehearsal-progress-bar::-moz-progress-bar { border-radius: 999px; background: var(--brand-text); }
.rehearsal-metric { display: grid; align-content: center; gap: 5px; min-width: 0; min-height: 54px; padding: 9px 11px; border-left: 1px solid var(--border-subtle); }
.rehearsal-metric span { color: var(--text-muted); font-size: 10px; line-height: 1.35; }
.rehearsal-metric strong { color: var(--text-primary); font-size: 16px; font-variant-numeric: tabular-nums; }
.rehearsal-current { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; min-width: 0; min-height: 54px; padding: 9px 13px; border-left: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.rehearsal-current strong { min-width: 0; color: var(--text-primary); font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.rehearsal-current .text-button { flex: 0 0 auto; font-size: 10px; }
.rehearsal-live-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--status-warning); box-shadow: 0 0 0 3px var(--status-warning-bg); }
.rehearsal-layout { display: grid; grid-template-areas: "queue workspace"; grid-template-columns: minmax(270px, .82fr) minmax(0, 1.45fr); align-items: start; gap: 24px; min-width: 0; }
.rehearsal-workspace { grid-area: workspace; min-width: 0; padding: var(--section-card-padding); border: 1px solid var(--section-card-border); border-radius: var(--radius-section-card); background: var(--section-card-background); }
.rehearsal-workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-width: 0; }
.rehearsal-workspace-title { min-width: 0; }
.rehearsal-workspace-title .eyebrow { margin-bottom: 7px; }
.rehearsal-workspace-title h2 { margin: 0; color: var(--text-primary); font-size: clamp(19px, 2vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.rehearsal-workspace-title > p:last-child { margin: 6px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.rehearsal-active-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 14px; margin-top: 15px; padding: 10px 0; border-block: 1px solid var(--status-warning-bg); color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.rehearsal-active-notice strong { color: var(--text-primary); }
.rehearsal-timing { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-top: 17px; padding: 13px 0; border-block: 1px solid var(--border-subtle); }
.rehearsal-elapsed-panel { display: grid; gap: 4px; min-width: 0; }
.rehearsal-elapsed-panel > span { color: var(--text-muted); font-size: 10px; }
.rehearsal-elapsed { color: var(--text-primary); font: 700 25px/1.1 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rehearsal-elapsed-panel small { color: var(--text-muted); font-size: 10px; }
.rehearsal-timing-delta { min-width: 0; color: var(--brand-text); font-size: 11px; font-weight: 600; line-height: 1.5; }
.rehearsal-timing-delta.is-overrun { color: var(--status-warning); }
.rehearsal-timer-button { min-width: 145px; }
.rehearsal-timer-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
.rehearsal-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; padding: 13px 0 2px; }
.rehearsal-next > div { display: grid; gap: 5px; min-width: 0; }
.rehearsal-next strong { color: var(--text-primary); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.rehearsal-section { min-width: 0; padding-top: 17px; }
.rehearsal-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }
.rehearsal-section-heading h3, .rehearsal-section-heading h2 { margin: 0; color: var(--text-primary); font-size: 13px; font-weight: 650; }
.rehearsal-section-heading p { margin: 4px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.rehearsal-requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.rehearsal-requirements > div { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.rehearsal-requirements > div > span { color: var(--text-muted); font-size: 10px; font-weight: 650; }
.rehearsal-requirements strong { color: var(--text-secondary); font-size: 11px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.rehearsal-requirements small { color: var(--text-muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.rehearsal-edit-controls { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); gap: 14px; padding-top: 16px; }
.rehearsal-readiness-control, .rehearsal-notes-control { display: grid; align-content: start; gap: 6px; min-width: 0; }
.rehearsal-readiness-control > label, .rehearsal-notes-control > span { color: var(--text-secondary); font-size: 10px; font-weight: 650; }
.rehearsal-readiness-control .select { width: 100%; }
.rehearsal-notes-control .textarea { width: 100%; min-height: 76px; }
.rehearsal-workspace-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.rehearsal-separation-note { max-width: 420px; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.rehearsal-queue { grid-area: queue; min-width: 0; }
.rehearsal-queue > .rehearsal-section-heading { align-items: flex-start; padding: 0 0 12px; border-bottom: 1px solid var(--border-subtle); }
.rehearsal-queue > .rehearsal-section-heading > span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 28px; min-height: 25px; padding: 3px 7px; border: 1px solid var(--border-subtle); border-radius: 6px; color: var(--text-secondary); font-size: 10px; font-variant-numeric: tabular-nums; }
.rehearsal-queue-list { display: grid; }
.rehearsal-queue-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 7px 10px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.rehearsal-queue-item.is-selected { padding-inline: 9px; border-left: 2px solid var(--brand-text); background: var(--bg-selected-row); }
.rehearsal-queue-select { display: flex; grid-column: 1; align-items: flex-start; gap: 9px; min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.rehearsal-queue-select:hover .rehearsal-queue-copy strong { color: var(--brand-text); }
.rehearsal-queue-number { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; border: 1px solid var(--border-subtle); border-radius: 6px; color: var(--text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.is-selected .rehearsal-queue-number { border-color: var(--brand-border); color: var(--brand-text); background: var(--brand-soft); }
.rehearsal-queue-copy { display: grid; gap: 4px; min-width: 0; }
.rehearsal-queue-copy strong { color: var(--text-primary); font-size: 11px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.rehearsal-queue-copy small { color: var(--text-muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.rehearsal-queue-meta { display: flex; grid-column: 1; align-items: center; flex-wrap: wrap; gap: 5px 9px; padding-left: 32px; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.rehearsal-queue-meta strong { color: var(--text-secondary); font-weight: 650; font-variant-numeric: tabular-nums; }
.rehearsal-queue-note { display: -webkit-box; grid-column: 1; overflow: hidden; padding-left: 32px; margin: 0; color: var(--status-warning); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rehearsal-queue-actions { display: flex; grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: flex-end; gap: 7px; }
.rehearsal-order-actions { display: flex; gap: 3px; }
.rehearsal-order-actions .button-icon-only { flex-basis: 31px; width: 31px; min-width: 31px; min-height: 31px; }
.rehearsal-order-actions .button-icon-only > .icon { width: 14px; height: 14px; }
.rehearsal-queue-actions > .button { min-height: 30px; padding: 5px 8px; font-size: 10px; }
.rehearsal-empty { border-top: 1px solid var(--border-subtle); }
.program-list-section { display: grid; gap: 9px; min-width: 0; }
.program-list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.program-list-heading h2 { margin: 0; color: var(--text-primary); font-size: 14px; font-weight: 650; line-height: 1.35; }
.program-list-heading p { margin: 3px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.program-list-count { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--border-subtle); border-radius: 20px; color: var(--text-secondary); background: var(--bg-surface); font-size: 10px; font-weight: 600; }
.timeline { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); }
.program-item { display: grid; grid-template-columns: 36px minmax(180px,1.45fr) minmax(108px,.65fr) minmax(128px,.75fr) auto; align-items: center; gap: 13px; min-height: 78px; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--border-subtle); border-radius: 0; background: var(--bg-surface); transition: background-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.program-item:last-child { border-bottom: 0; }
.program-item:hover, .program-item:focus-within { background: var(--bg-surface-raised); }
.program-item.dragging { opacity: .55; background: var(--bg-surface-raised); user-select: none; }
.program-item.drop-target { background: var(--bg-surface-raised); box-shadow: inset 0 2px var(--brand-border); }
.program-number { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--brand-border); border-radius: 8px; color: var(--brand-text); background: var(--brand-bg); font: 650 11px var(--font-sans); font-variant-numeric: tabular-nums; }
.program-production-copy { min-width: 0; }
.program-production-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.program-title { display: block; margin: 0; color: var(--text-primary); font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.program-title-link { min-width: 0; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; }
.program-title-link:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.program-type-badge { flex: 0 0 auto; max-width: 100%; padding: 3px 6px; border: 1px solid var(--border-subtle); border-radius: 5px; color: var(--text-secondary); background: var(--bg-surface); font-size: 9px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.program-meta { margin-top: 4px; color: var(--text-muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.program-field-label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 9px; font-weight: 600; line-height: 1.3; }
.program-start, .program-timing { min-width: 0; }
.program-timing .program-meta { margin-top: 3px; }
.program-actions .button-icon-only { flex-basis: 32px; width: 32px; min-width: 32px; min-height: 32px; box-shadow: none; }
.program-actions .button-icon-only > .icon { width: 14px; height: 14px; }
.program-actions { transition: opacity .16s ease; opacity: .78; }
.program-item:hover .program-actions, .program-item:focus-within .program-actions { opacity: 1; }
.program-drag-handle { cursor: grab; touch-action: none; }
.program-drag-handle:active:not(:disabled) { cursor: grabbing; }
.program-drag-grip { position: relative; display: block; width: 16px; height: 18px; color: currentColor; }
.program-drag-grip::before, .program-drag-grip::after { position: absolute; top: 3px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; box-shadow: 0 5px currentColor, 0 10px currentColor; content: ""; }
.program-drag-grip::before { left: 3px; }
.program-drag-grip::after { right: 3px; }
.program-actions .button-quiet { box-shadow: none; }
.program-actions .button-quiet:hover:not(:disabled) { box-shadow: none; }
.program-actions .button-danger { background: var(--bg-surface-raised); box-shadow: none; }
.program-section-actions .program-section-move { flex-basis: 31px; width: 31px; min-width: 31px; min-height: 31px; padding: 0; }
.program-section-actions .program-section-move > .icon { width: 14px; height: 14px; }
.time-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding: 10px 0; border-block: 1px solid var(--border-subtle); border-radius: 0; background: transparent; font-size: 11px; }
.time-banner.program-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-surface); }
.program-summary-item { display: grid; align-content: center; gap: 5px; min-width: 0; min-height: 66px; padding: 10px 13px; }
.program-summary-item + .program-summary-item { border-left: 1px solid var(--border-subtle); }
.program-summary-item > span { color: var(--text-muted); font-size: 9px; font-weight: 600; line-height: 1.35; }
.program-summary-item > strong { color: var(--text-primary); font-size: 12px; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.program-schedule-note { margin: -1px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.program-sections-panel { margin-top: 0; }
.time-banner.program-overview strong { color: var(--text-primary); }
.time-banner strong { color: var(--brand-text); }
.live-console { display: grid; gap: 14px; min-width: 0; }
.live-console-statusbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 38px; padding: 7px 0; border-bottom: 1px solid var(--border-subtle); }
.live-sync { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.live-sync-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--status-warning); }
.live-sync[data-state="connected"] .live-sync-dot { background: var(--status-success); }
.live-sync[data-state="disconnected"] .live-sync-dot { background: var(--status-danger); }
.live-pending { color: var(--status-warning); font-size: 11px; font-weight: 600; }
.live-lock-state { margin-left: auto; color: var(--text-muted); font-size: 11px; }
.live-control-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 18px; min-width: 0; }
.live-current-panel { display: flex; align-self: start; flex-direction: column; align-items: flex-start; min-width: 0; padding: 19px 21px; border-left: 3px solid var(--brand-border); background: var(--bg-surface); }
.live-current-panel[data-state="idle"], .live-current-panel[data-state="finished"], .live-current-panel[data-state="unknown"],
.live-display-current[data-state="idle"], .live-display-current[data-state="finished"], .live-display-current[data-state="unknown"] { border-left-color: var(--status-neutral); }
.live-current-panel[data-state="finished"] { border-left-color: var(--border-strong); }
.live-current-panel[data-state="ready"], .live-display-current[data-state="ready"] { border-left-color: var(--status-info); }
.live-current-panel[data-state="running"], .live-display-current[data-state="running"] { border-left-color: var(--status-success); }
.live-current-panel[data-state="paused"], .live-current-panel[data-state="transition-ready"],
.live-display-current[data-state="paused"], .live-display-current[data-state="transition-ready"] { border-left-color: var(--status-warning); }
.live-current-panel[data-state="overtime-solid"], .live-display-current[data-state="overtime-solid"] { border-left-color: var(--status-danger); }
@keyframes live-status-danger-flash {
  0%, 100% { border-left-color: #9e4141; }
  50% { border-left-color: var(--status-danger); }
}
@keyframes live-status-warning-flash {
  0%, 100% { border-left-color: #9e7e22; }
  50% { border-left-color: #ffe082; }
}
.live-current-panel[data-state="overtime-flashing"], .live-display-current[data-state="overtime-flashing"] {
  animation: live-status-danger-flash 1.2s ease-in-out infinite;
}
.live-current-panel[data-state="transition-flashing"], .live-display-current[data-state="transition-flashing"] {
  animation: live-status-warning-flash 1.2s ease-in-out infinite;
}
.live-panel-kicker { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.live-current-status { margin-top: 10px; }
.live-current-title { max-width: 100%; margin: 11px 0 0; color: var(--text-primary); font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; overflow-wrap: anywhere; }
.live-current-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 8px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.live-current-meta span + span { padding-left: 14px; border-left: 1px solid var(--border-strong); }
.live-current-timer { display: block; max-width: 100%; margin-top: 14px; color: var(--text-primary); font: 700 clamp(54px, 7vw, 82px)/1 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
@keyframes live-transition-timer-flash {
  0%, 100% { color: #9e7e22; text-shadow: 0 0 1px rgba(255, 224, 130, .18); }
  50% { color: #ffe082; text-shadow: 0 0 16px rgba(255, 224, 130, .55); }
}
@keyframes live-overtime-timer-flash {
  0%, 100% { color: #9e4141; text-shadow: 0 0 1px rgba(248, 113, 113, .18); }
  50% { color: var(--status-danger); text-shadow: 0 0 16px rgba(248, 113, 113, .55); }
}
.live-current-timer.is-transition-active,
.live-display-timer.is-transition-active { animation: live-transition-timer-flash 1.2s ease-in-out infinite; }
.live-current-timer.is-overtime-flashing,
.live-display-timer.is-overtime-flashing { animation: live-overtime-timer-flash 1.2s ease-in-out infinite; }
.live-current-timer.is-overtime-solid,
.live-display-timer.is-overtime-solid { color: var(--status-danger); text-shadow: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .live-current-timer.is-transition-active,
  .live-display-timer.is-transition-active {
    animation: none;
    color: #ffe082;
    text-shadow: 0 0 10px rgba(255, 224, 130, .4);
  }
  .live-current-timer.is-overtime-flashing,
  .live-display-timer.is-overtime-flashing,
  .live-current-timer.is-overtime-solid,
  .live-display-timer.is-overtime-solid {
    animation: none;
    color: var(--status-danger);
    text-shadow: 0 0 10px rgba(248, 113, 113, .4);
  }
  .live-current-panel[data-state="overtime-flashing"],
  .live-display-current[data-state="overtime-flashing"] {
    animation: none;
    border-left-color: var(--status-danger);
  }
  .live-current-panel[data-state="transition-flashing"],
  .live-display-current[data-state="transition-flashing"] {
    animation: none;
    border-left-color: var(--status-warning);
  }
}

.live-timer-caption { margin-top: 5px; color: var(--text-muted); font-size: 12px; }
.live-current-delta { margin: 11px 0 0; color: var(--brand-text); font-size: 13px; font-weight: 600; line-height: 1.5; }
.live-current-delta.is-overrun { color: var(--status-warning); }
.live-current-empty-copy { margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.live-technical-panel { width: 100%; margin-top: 17px; padding: 13px 14px; border: 1px solid var(--border-subtle); background: var(--bg-app); }
.live-technical-panel h3 { margin: 0 0 9px; color: var(--brand-text); font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.45; }
.live-technical-list { display: grid; gap: 7px; margin: 0; }
.live-technical-item { display: grid; grid-template-columns: minmax(112px, .34fr) minmax(0, 1fr); gap: 8px 12px; }
.live-technical-item dt { color: var(--text-muted); font-size: 11px; font-weight: 600; line-height: 1.5; }
.live-technical-item dd { margin: 0; color: var(--text-primary); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.live-technical-item[data-state="unknown"] dd, .live-technical-item[data-state="partial"] dd { color: var(--status-warning); }
.live-technical-item[data-state="not-needed"] dd { color: var(--text-secondary); }
.live-operational-notes { display: grid; gap: 7px; width: 100%; margin: 15px 0 0; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.live-operational-notes > div { display: grid; grid-template-columns: minmax(90px, .25fr) minmax(0, 1fr); gap: 10px; }
.live-operational-notes dt { color: var(--text-muted); font-size: 11px; font-weight: 600; }
.live-operational-notes dd { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.live-operator-actions { display: flex; align-items: center; align-content: flex-start; flex-wrap: wrap; gap: 9px; width: 100%; min-height: 48px; margin-top: 19px; }
.live-operator-button { min-width: 132px; min-height: 46px; font-size: 13px; }
.live-lock-info { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 38px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--status-warning); border-radius: 7px; color: var(--status-warning); background: var(--status-warning-bg); cursor: help; font-size: 11px; font-weight: 650; line-height: 1.35; }
.live-lock-info-icon { display: inline-grid; flex: 0 0 20px; place-items: center; width: 20px; height: 20px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--bg-surface-raised); }
.live-lock-info-icon > .icon { width: 13px; height: 13px; }
.live-lock-info:hover { border-color: var(--status-attention); color: var(--text-primary); }
.live-lock-info:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 3px; }
.live-lock-tooltip { position: absolute; z-index: 20; bottom: calc(100% + 9px); left: 0; width: max-content; max-width: min(280px, calc(100vw - 50px)); padding: 9px 11px; border: 1px solid var(--border-strong); background: var(--bg-surface-raised); color: var(--text-primary); font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; opacity: 0; visibility: hidden; transform: translateY(3px); transition: opacity .15s ease, transform .15s ease, visibility .15s ease; pointer-events: none; }
.live-lock-info:hover .live-lock-tooltip, .live-lock-info:focus-within .live-lock-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
.live-next-panel { display: flex; flex-direction: column; min-width: 0; padding: 19px 0 0 18px; border-left: 1px solid var(--border-subtle); }
.live-next-content { margin-top: 13px; }
.live-next-position { color: var(--brand-text); font-size: 11px; font-weight: 600; }
.live-next-content h2, .live-next-empty { margin: 7px 0 0; color: var(--text-primary); font-size: 19px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.live-next-content > p { margin: 5px 0 0; color: var(--text-secondary); font-size: 12px; }
.live-next-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 12px; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.stage-readiness-block, .live-display-stage-readiness { display: grid; gap: 12px; min-width: 0; padding: clamp(13px, 1.8vw, 20px); margin-top: clamp(17px, 2.5vh, 24px); border: 1px solid var(--border-subtle); border-left: 3px solid var(--status-info); background: var(--bg-surface); }
.stage-readiness-block h3, .live-display-stage-readiness h3 { margin: 0; color: var(--brand-text); font-size: clamp(14px, 1.35vw, 18px); font-weight: 700; line-height: 1.4; }
.stage-readiness-production, .live-display-stage-readiness-production { margin: 0; color: var(--text-primary); font-size: clamp(16px, 1.7vw, 22px); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.stage-readiness-current, .live-display-stage-readiness-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.stage-readiness-label, .live-display-stage-readiness-label { color: var(--text-muted); font-size: clamp(12px, 1vw, 14px); font-weight: 600; }
.stage-readiness-block .status-pill, .live-display-stage-readiness .status-pill { padding: 4px 10px; font-size: clamp(11px, .95vw, 13px); }
.stage-readiness-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-readiness-actions .stage-readiness-button { min-height: 38px; padding: 8px 11px; border-radius: 2px; font-size: clamp(11px, .95vw, 13px); font-weight: 650; }
.stage-readiness-button[data-readiness="waiting"] { --readiness-color: var(--status-neutral); --readiness-background: var(--status-neutral-bg); }
.stage-readiness-button[data-readiness="preparing"] { --readiness-color: var(--status-warning); --readiness-background: var(--status-warning-bg); }
.stage-readiness-button[data-readiness="ready"] { --readiness-color: var(--status-success); --readiness-background: var(--status-success-bg); }
.stage-readiness-button[data-readiness] { border-color: var(--readiness-color); color: var(--readiness-color); background: var(--readiness-background); }
.stage-readiness-button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }
.stage-readiness-button[data-readiness]:hover:not(:disabled), .stage-readiness-button[data-readiness]:active:not(:disabled) { border-color: var(--readiness-color); color: var(--readiness-color); background: var(--readiness-background); }
.stage-readiness-button[data-readiness]:hover:not(:disabled) { filter: brightness(1.2); }
.stage-readiness-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.stage-readiness-button[data-readiness]:active:not(:disabled) { filter: brightness(.9); transform: translateY(1px); }
.stage-readiness-button[aria-pressed="true"][data-readiness]:active:not(:disabled) { box-shadow: inset 0 0 0 1px currentColor; }
.stage-readiness-button[data-readiness]:disabled { cursor: not-allowed; opacity: .68; }
.stage-readiness-empty, .live-display-stage-readiness-empty { margin: 0; color: var(--text-muted); font-size: clamp(12px, 1vw, 14px); line-height: 1.5; }
.live-show-summary { display: grid; gap: 5px; margin-top: auto; padding-top: 17px; }
.live-show-summary strong { color: var(--text-secondary); font-size: 12px; font-weight: 650; }
.live-show-summary > span, .live-show-summary p { margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.live-schedule-panel { min-width: 0; padding-top: 15px; border-top: 1px solid var(--border-subtle); }
.live-schedule-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.live-schedule-heading h2 { margin: 4px 0 0; color: var(--text-primary); font-size: 15px; font-weight: 650; }
.live-schedule-count { color: var(--text-muted); font-size: 11px; }
.live-schedule-list { display: grid; padding: 0; margin: 0; list-style: none; }
.live-schedule-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(76px, auto) auto; align-items: center; gap: 8px 12px; min-height: 52px; padding: 8px 6px; border-top: 1px solid var(--border-subtle); }
.live-schedule-row:last-child { border-bottom: 1px solid var(--border-subtle); }
.live-schedule-row.is-current { border-left: 2px solid var(--brand-text); background: var(--bg-selected-row); }
.live-schedule-number { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.live-schedule-copy { display: grid; gap: 2px; min-width: 0; }
.live-schedule-copy strong { overflow: hidden; color: var(--text-primary); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.live-schedule-copy > span { color: var(--text-muted); font-size: 10px; }
.live-schedule-duration { color: var(--text-secondary); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-schedule-row .status-pill { justify-self: end; }
.check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding-top: 10px; }
.check-card { display: grid; align-content: start; min-width: 0; padding: 9px 0 0; border: 0; border-radius: 0; background: transparent; }
.check-card label { display: block; min-height: 30px; margin-bottom: 7px; color: var(--text-secondary); font-size: 10px; line-height: 1.5; }
.check-card select { width: 100%; }
.conflict-field { display: grid; grid-template-columns: minmax(130px,.65fr) repeat(2,minmax(150px,1fr)) 110px; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 11px; }
.conflict-value { overflow-wrap: anywhere; color: var(--text-secondary); }
.task-page { display: grid; gap: 18px; min-width: 0; }
.task-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; min-width: 0; padding: 2px 0 1px; }
.task-page-header-copy { min-width: 0; }
.task-page-kicker { display: block; margin-bottom: 7px; color: var(--brand-text); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.task-page-header h1 { margin: 0; color: var(--text-primary); font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.035em; }
.task-page-header p { margin: 7px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.task-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.task-progress-summary { display: grid; width: 190px; gap: 7px; }
.task-progress-label { display: flex; align-items: baseline; gap: 7px; color: var(--text-muted); font-size: 10px; }
.task-progress-label strong { color: var(--text-primary); font-size: 12px; font-variant-numeric: tabular-nums; }
.task-progress-label > span:last-child { margin-left: auto; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.task-progress-meter { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 999px; accent-color: var(--brand-primary); background: var(--bg-surface-hover); }
.task-progress-meter::-webkit-progress-bar { border-radius: 999px; background: var(--bg-surface-hover); }
.task-progress-meter::-webkit-progress-value { border-radius: 999px; background: var(--brand-primary); transition: width .24s var(--ease); }
.task-progress-meter::-moz-progress-bar { border-radius: 999px; background: var(--brand-primary); }
.task-create-button { white-space: nowrap; }
.task-overview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.task-metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 57px; padding: 11px 13px; border: 1px solid var(--border-subtle); border-radius: var(--radius-metric-card); background: var(--bg-surface); }
.task-metric > span { color: var(--text-muted); font-size: 10px; font-weight: 550; line-height: 1.35; }
.task-metric > strong { color: var(--text-primary); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.task-metric:nth-child(2) > strong { color: var(--text-secondary); }
.task-metric:nth-child(3) > strong { color: var(--status-warning); }
.task-metric:nth-child(4) > strong { color: var(--status-success); }
.task-metric-overdue > strong { color: var(--status-danger); }
.task-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, 220px); align-items: end; gap: 12px; min-width: 0; margin: 15px 0 12px; }
.task-search-control { position: relative; display: flex; align-items: center; min-width: 0; color: var(--text-muted); }
.task-search-control > .icon { position: absolute; left: 12px; width: 16px; height: 16px; pointer-events: none; }
.task-search-control .field { width: 100%; min-width: 0; min-height: var(--control-height); padding-left: 38px; }
.task-filter-control { display: grid; gap: 5px; min-width: 0; color: var(--text-muted); font-size: 10px; font-weight: 650; }
.task-filter-control > .select, .task-filter-control > .custom-select-control { width: 100%; min-width: 0; }
.task-section { min-width: 0; }
.task-board { padding: var(--section-card-padding); border: 1px solid var(--section-card-border); border-radius: var(--radius-section-card); background: var(--section-card-background); }
.task-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.task-section-heading h2 { margin: 0; color: var(--text-primary); font-size: 15px; font-weight: 680; letter-spacing: -.01em; }
.task-section-heading p { margin: 5px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }
.task-section-heading > span { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 35px; min-height: 27px; padding: 4px 8px; border: 1px solid var(--border-subtle); border-radius: 7px; color: var(--text-secondary); background: var(--bg-surface-raised); font-size: 10px; font-variant-numeric: tabular-nums; }
.task-deadline-filters { display: flex; gap: 7px; min-width: 0; margin-bottom: 12px; overflow-x: auto; padding: 1px 1px 3px; scrollbar-width: thin; }
.task-deadline-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 34px; padding: 6px 9px; border: 1px solid var(--border-subtle); border-radius: 7px; color: var(--text-secondary); background: var(--bg-surface-raised); cursor: pointer; font-size: 10px; font-weight: 600; transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease); }
.task-deadline-chip:hover { border-color: var(--brand-border); color: var(--text-primary); background: var(--bg-surface-hover); }
.task-deadline-chip:active { transform: scale(.98); }
.task-deadline-chip.is-active { border-color: var(--brand-border); color: var(--brand-text); background: var(--brand-soft); }
.task-filter-count { display: inline-grid; min-width: 19px; min-height: 19px; place-items: center; padding: 1px 5px; border-radius: 5px; color: var(--text-muted); background: #ffffff0a; font-size: 9px; font-variant-numeric: tabular-nums; }
.task-deadline-chip.is-active .task-filter-count { color: var(--text-primary); background: #ffffff12; }
.task-list { display: grid; gap: 8px; }
.task-warning-list { display: grid; gap: 0; }
.task-warning-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.task-warning-row:last-child { border-bottom: 0; }
.task-warning-copy, .task-row-main { min-width: 0; }
.task-origin { display: block; margin-bottom: 4px; color: var(--brand-text); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.task-warning-copy h3, .task-row-main h3 { margin: 0; color: var(--text-primary); font-size: 12px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.task-warning-copy p { margin: 4px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.task-warning-copy small { display: inline-block; margin-top: 5px; color: var(--text-muted); font-size: 10px; }
.task-warning-action { flex: 0 0 auto; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, 170px) minmax(125px, 145px) auto; align-items: center; gap: 14px; min-width: 0; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-record-card); background: var(--bg-app); transition: border-color .16s var(--ease), background-color .16s var(--ease), box-shadow .16s var(--ease); }
.task-row:hover { border-color: var(--border-default); background: var(--bg-task-hover); }
.task-row.is-overdue { border-left: 2px solid var(--status-danger); }
.task-row.is-complete .task-row-main h3 { color: var(--text-secondary); }
.task-row[aria-busy="true"] { opacity: .62; }
.task-description { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: var(--text-secondary); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-metadata { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.task-deadline { display: grid; align-content: center; gap: 5px; min-width: 0; color: var(--text-secondary); font-size: 11px; }
.task-deadline > span:first-child { color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.task-deadline time { font-variant-numeric: tabular-nums; }
.task-deadline.is-overdue time { color: var(--status-danger); }
.task-no-deadline { color: var(--text-muted); }
.task-status-control { display: grid; align-items: start; gap: 6px; min-width: 0; }
.task-status-control .custom-select-control, .task-status-control .select { width: 100%; min-width: 0; }
.task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.task-action-status { align-self: center; color: var(--brand-text); font-size: 10px; white-space: nowrap; }
.task-action-button { width: 36px; min-width: 36px; min-height: 36px; padding: 0; }
.task-action-button > .icon { width: 15px; height: 15px; }
.task-action-button.is-destructive:hover:not(:disabled) { border-color: var(--status-danger-bg); color: var(--status-danger); background: var(--status-danger-bg); }
.task-warning-section > .task-section-heading { padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }
.task-warning-count.is-active { border-color: var(--status-warning); color: var(--status-warning); background: var(--status-warning-bg); }
.task-warning-empty { margin-top: 10px; padding: 8px 11px; border-left: 3px solid var(--brand-border); border-radius: var(--radius-feedback); background: var(--bg-surface-hover); }
.task-warning-empty .empty-state { padding: 0; }
.task-load-error { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--button-danger-border); border-radius: var(--radius-feedback); color: var(--text-secondary); background: var(--status-danger-tint); }
.task-load-error strong { color: var(--status-danger); font-size: 11px; }
.task-load-error p { margin: 4px 0 0; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.task-state-card { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-feedback); color: var(--text-secondary); background: var(--bg-surface); font-size: 12px; }
.task-loading-indicator { width: 15px; height: 15px; border: 2px solid var(--border-strong); border-top-color: var(--brand-text); border-radius: 50%; animation: task-loading-spin .8s linear infinite; }
@keyframes task-loading-spin { to { transform: rotate(360deg); } }
.task-empty-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 2px; }
.task-empty-state .empty-state { padding: 12px 0; text-align: left; }
.task-empty-state > .button { flex: 0 0 auto; }
.task-clear-filters { margin-top: 10px; }
.task-form-grid { gap: 14px; }
.task-form-grid .textarea { min-height: 94px; }
.task-form-grid .form-field em { color: var(--text-muted); font-style: normal; font-weight: 400; }
.callout { padding: 4px 10px; border-left: 2px solid var(--status-warning); border-radius: 0; color: var(--text-secondary); background: transparent; font-size: 12px; line-height: 1.5; }
.callout.info { border-color: var(--status-info); color: var(--text-secondary); background: transparent; }
.callout.error { border-color: var(--status-danger); color: var(--status-danger); background: transparent; }
.gate-panel { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--bg-app); }
.gate-card { width: min(420px, 100%); padding: 25px; border: 1px solid var(--border-default); border-radius: 8px; background: var(--bg-surface); box-shadow: none; }
.gate-card h1 { margin: 0 0 9px; font: 800 25px var(--font-sans); }
.gate-card p { color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.gate-card label { display: block; margin: 17px 0 6px; color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.login-gate { position: relative; isolation: isolate; overflow: hidden; padding: 24px; background: radial-gradient(ellipse at 18% 18%, #294c621c, transparent 56%), var(--bg-app); }
.login-dither { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.login-dither-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.login-card { position: relative; z-index: 1; width: min(464px, 100%); padding: 8px; border: 1px solid var(--border-default); border-radius: 20px; background: var(--bg-surface-raised); box-shadow: 0 24px 60px #0008, 0 2px 6px #0006; }
.login-card-surface { padding: clamp(22px, 4vw, 32px); border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--bg-surface); }
.login-topline, .login-brand, .login-badge { display: flex; align-items: center; }
.login-topline { justify-content: space-between; gap: 12px; }
.login-brand { min-width: 0; gap: 11px; }
.login-brand-mark { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; padding: 4px; overflow: hidden; border: 1px solid var(--brand-border); border-radius: 11px; background: var(--text-primary); }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { color: var(--text-primary); font-size: 13px; font-weight: 700; }
.login-brand small { margin-top: 4px; color: var(--brand-text); font-size: 9px; font-weight: 650; letter-spacing: .16em; }
.login-badge { flex: 0 0 auto; gap: 7px; padding: 6px 9px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); color: var(--text-secondary); background: var(--bg-surface-raised); font-size: 9px; }
.login-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--status-success); }
.login-heading { margin: 22px 0 18px; }
.login-heading h1 { margin: 0; color: var(--text-primary); font: 750 27px var(--font-sans); letter-spacing: -.035em; }
.login-heading p { margin: 7px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.login-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid var(--border-subtle); border-radius: 11px; background: var(--bg-input); }
.login-tab { position: relative; z-index: 1; min-height: 37px; border: 0; border-radius: 7px; color: var(--text-muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 600; transition: color .14s; }
.login-tab:hover { color: var(--text-secondary); }
.login-tab.is-active { color: var(--text-primary); }
.login-tab-indicator { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); border: 1px solid var(--border-default); border-radius: 7px; background: var(--bg-surface-raised); box-shadow: 0 1px 3px #0003; transition: transform .35s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.login-tabs[data-mode="signup"] .login-tab-indicator { transform: translateX(100%); }
.login-form { display: grid; gap: 14px; }
#auth-panel:not([hidden]) .login-form:not([hidden]) { animation: login-form-enter .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes login-form-enter { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.login-field label { display: block; margin: 0 0 6px; color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.login-field-hint { float: right; color: var(--text-muted); font-size: 10px; font-weight: 400; }
.login-input-wrap { min-height: 49px; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: var(--radius-control); background: var(--bg-input); transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease); }
.login-input-wrap:focus-within { border-color: var(--border-focus); box-shadow: var(--control-focus-shadow); }
.login-input-wrap:has(input:user-invalid) { border-color: var(--status-danger); }
.login-input-wrap:has(input:user-invalid):focus-within { box-shadow: var(--control-error-focus-shadow); }
.login-input-icon { display: grid; place-items: center; width: 20px; height: 22px; color: var(--brand-text); }
.login-input-icon > .icon { width: 17px; height: 17px; }
.login-input-wrap input { width: 100%; min-width: 0; padding: 11px 0; border: 0; outline: 0; color: var(--text-primary); background: transparent; font-size: 12px; }
#login-form .login-input-wrap input:-webkit-autofill,
#login-form .login-input-wrap input:-webkit-autofill:hover,
#login-form .login-input-wrap input:-webkit-autofill:focus,
#login-form .login-input-wrap input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  background-color: var(--bg-input) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}
#login-form .login-input-wrap input:autofill,
#login-form .login-input-wrap input:autofill:hover,
#login-form .login-input-wrap input:autofill:focus,
#login-form .login-input-wrap input:autofill:active {
  box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
  background-color: var(--bg-input) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}
.login-input-wrap input::placeholder { color: var(--text-disabled); }
.login-password-toggle { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--text-muted); background: transparent; cursor: pointer; transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease); }
.login-password-toggle:hover { border-color: var(--border-subtle); color: var(--text-primary); background: var(--bg-surface-hover); }
.login-password-toggle:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 1px; }
.login-password-eye { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-password-eye-closed, .login-password-toggle[data-visible="true"] .login-password-eye-open { display: none; }
.login-password-toggle[data-visible="true"] .login-password-eye-closed { display: block; }
.login-recovery-link { display: inline-block; margin-top: 8px; color: var(--brand-text); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.login-recovery-link:hover { color: var(--text-primary); }
.login-submit.button-primary { width: 100%; min-height: 49px; justify-content: center; gap: 9px; margin-top: 4px; padding-inline: 16px; border: 1px solid #284b64; border-radius: var(--radius-control); color: #fff; background: #284b64; box-shadow: 0 7px 17px #284b6438, inset 0 1px 0 #ffffff22; font-size: 13px; transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .15s var(--ease), box-shadow .18s var(--ease); }
.login-submit.button-primary:hover:not(:disabled) { border-color: #315b78; background: #315b78; box-shadow: 0 10px 20px #284b6440, inset 0 1px 0 #ffffff24; transform: translateY(-1px); }
.login-submit.button-primary:active:not(:disabled) { border-color: #1f3a4e; background: #1f3a4e; box-shadow: none; transform: translateY(0); }
.login-submit.button-primary:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
.login-submit.button-primary:disabled { cursor: wait; opacity: .8; box-shadow: none; }
.login-submit-arrow { width: 16px; height: 16px; }
.login-submit-spinner { display: none; width: 16px; height: 16px; border: 2px solid #ffffff70; border-top-color: #fff; border-radius: 50%; }
.login-submit.is-loading .login-submit-spinner { display: inline-block; animation: login-submit-spin .7s linear infinite; }
.login-submit.is-loading .login-submit-arrow { display: none; }
@keyframes login-submit-spin { to { transform: rotate(360deg); } }
.login-error { min-height: 0; margin: -5px 0 0; font-size: 11px !important; overflow-wrap: anywhere; }
.login-error:not([hidden]) { margin-top: 12px; padding: 11px 13px; border: 1px solid var(--status-danger); border-radius: var(--radius-feedback); color: var(--status-danger); background: var(--status-danger-bg); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; animation: login-feedback-enter .22s var(--ease) both; }
.login-success:not([hidden]) { margin: 12px 0 0; padding: 11px 13px; border: 1px solid var(--status-success-border); border-radius: var(--radius-feedback); color: var(--status-success); background: var(--status-success-bg); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; animation: login-feedback-enter .22s var(--ease) both; }
@keyframes login-feedback-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.login-divider { display: flex; align-items: center; gap: 11px; margin: 20px 0 10px; color: var(--text-muted); font-size: 10px; }
.login-divider::before, .login-divider::after { height: 1px; flex: 1; background: var(--border-subtle); content: ""; }
.login-footer { margin: 0; color: var(--text-muted); font-size: 10px !important; text-align: center; }
.form-error { min-height: 16px; color: var(--status-danger) !important; }
#auth-panel:not([hidden]) .login-card { animation: login-card-enter .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes login-card-enter { from { opacity: 0; transform: translateY(20px) scale(.97); filter: blur(3px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@media (max-width: 420px) {
  .login-topline { align-items: flex-start; flex-direction: column; gap: 12px; }
  .login-card-surface { padding: 20px; }
  .login-heading { margin: 19px 0 16px; }
}
#view-container.is-view-entering { animation: view-content-enter .26s cubic-bezier(.16,1,.3,1); }
@keyframes view-content-enter { from { opacity: .75; transform: translateY(8px) scale(.995); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
.toast-region { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: flex; flex-direction: column-reverse; gap: 9px; width: min(380px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 3px; pointer-events: none; }
.toast-region--dialog { right: 12px; bottom: 12px; width: min(380px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.toast-region[popover] { inset: auto 20px 20px auto; margin: 0; padding: 3px; border: 0; color: var(--text-primary); background: transparent; overflow-y: auto; }
.toast-region[popover]:not(:popover-open) { display: none; }
.toast-region[popover]:popover-open { display: flex; }
.toast { --toast-accent: var(--status-info); --toast-tint: var(--status-info-bg); --toast-glow: #7DD3FC20; position: relative; flex: 0 0 auto; width: 100%; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-feedback); color: var(--text-primary); background: var(--bg-surface-raised); box-shadow: var(--toast-shadow); backdrop-filter: var(--toast-backdrop-filter); opacity: 0; transform: translateX(calc(100% + 28px)) scale(.94); transition: opacity .38s var(--ease), transform .38s var(--ease); pointer-events: auto; }
.toast.is-visible { opacity: 1; transform: translateX(0) scale(1); }
.toast.is-exiting { opacity: 0; transform: translateX(calc(100% + 28px)) scale(.92); transition-duration: .28s; pointer-events: none; }
.toast__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 120% at 0% 50%, var(--toast-glow), transparent 70%); pointer-events: none; }
.toast__inner { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 11px; padding: 13px 12px 14px; }
.toast__icon { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--toast-accent); background: var(--toast-tint); }
.toast__icon > .icon { width: 17px; height: 17px; }
.toast__body { flex: 1; min-width: 0; padding-top: 1px; }
.toast__label { display: block; margin-bottom: 3px; color: var(--toast-accent); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.toast__message { margin: 0; color: var(--text-primary); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.toast__close { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; margin: -2px -2px 0 0; padding: 0; border: 1px solid var(--border-subtle); border-radius: 7px; color: var(--text-secondary); background: var(--bg-surface); cursor: pointer; transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease); }
.toast__close:hover { border-color: var(--border-strong); color: var(--text-primary); background: var(--bg-surface-hover); }
.toast__close > .icon { width: 15px; height: 15px; }
.toast__progress { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--toast-accent), transparent); transform: scaleX(1); transform-origin: left center; animation: toast-progress linear forwards; animation-duration: 5s; animation-play-state: paused; }
.toast--success { --toast-accent: var(--status-success); --toast-tint: var(--status-success-bg); --toast-glow: #4ADE801c; }
.toast--warning { --toast-accent: var(--status-warning); --toast-tint: var(--status-warning-bg); --toast-glow: #FBBF241c; }
.toast--error { --toast-accent: var(--status-danger); --toast-tint: var(--status-danger-bg); --toast-glow: #F871711c; }
.toast--info { --toast-accent: var(--status-info); --toast-tint: var(--status-info-bg); --toast-glow: #7DD3FC1c; }
.toast--warning .toast__progress { animation-duration: 7.5s; }
.toast--error .toast__progress { animation-duration: 10s; }
.toast.is-visible .toast__progress { animation-play-state: running; }
@keyframes toast-progress { to { transform: scaleX(0); } }
.app-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: 0; overflow: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-dialog); color: var(--text-primary); background: var(--bg-surface); box-shadow: var(--dialog-shadow); opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .18s var(--ease), transform .18s var(--ease), display .18s allow-discrete, overlay .18s allow-discrete; }
.app-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .app-dialog[open] { opacity: 0; transform: translateY(8px) scale(.985); } }
.app-dialog::backdrop { background: rgba(5, 7, 11, 0); backdrop-filter: blur(0); transition: background-color .18s var(--ease), backdrop-filter .18s var(--ease), overlay .18s allow-discrete; }
.app-dialog[open]::backdrop { background: #05070bc9; backdrop-filter: blur(3px); }
@starting-style { .app-dialog[open]::backdrop { background: rgba(5, 7, 11, 0); backdrop-filter: blur(0); } }
.dialog-inner { position: relative; padding: 24px; }
.dialog-close { position: absolute; top: 12px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border-default); border-radius: 7px; color: var(--text-secondary); background: var(--bg-surface-raised); cursor: pointer; transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease); }
.dialog-close > .icon { width: 19px; height: 19px; }
.dialog-close:hover { border-color: var(--brand-border); color: var(--text-primary); background: var(--bg-surface-hover); }
.dialog-inner h2 { margin: 0 35px 18px 0; font: 700 19px var(--font-sans); }
.confirmation-dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-dialog); color: var(--text-primary); background: var(--bg-surface); box-shadow: var(--confirmation-shadow); opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .18s var(--ease), transform .18s var(--ease), display .18s allow-discrete, overlay .18s allow-discrete; }
.confirmation-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .confirmation-dialog[open] { opacity: 0; transform: translateY(8px) scale(.985); } }
.confirmation-dialog::backdrop { background: #05070b00; backdrop-filter: blur(0); transition: background-color .18s var(--ease), backdrop-filter .18s var(--ease), overlay .18s allow-discrete; }
.confirmation-dialog[open]::backdrop { background: #05070bc9; backdrop-filter: blur(3px); }
@starting-style { .confirmation-dialog[open]::backdrop { background: #05070b00; backdrop-filter: blur(0); } }
.confirmation-dialog-inner { display: grid; gap: 20px; padding: 24px; }
.confirmation-dialog-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 13px; }
.confirmation-dialog-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--brand-border); border-radius: 10px; color: var(--brand-text); background: var(--brand-soft); }
.confirmation-dialog-icon[hidden] { display: none; }
.confirmation-dialog-icon .icon { width: 18px; height: 18px; }
.confirmation-dialog[data-tone="caution"] .confirmation-dialog-icon { border-color: #FBBF2438; color: var(--status-warning); background: var(--status-warning-bg); }
.confirmation-dialog[data-tone="destructive"] .confirmation-dialog-icon { border-color: #F8717138; color: var(--status-danger); background: var(--status-danger-bg); }
.confirmation-dialog-copy { min-width: 0; }
.confirmation-dialog-copy h2 { margin: 0; color: var(--text-primary); font: 700 18px/1.35 var(--font-sans); letter-spacing: -.02em; overflow-wrap: anywhere; }
.confirmation-dialog-copy p { margin: 8px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.confirmation-dialog-input-wrap { display: grid; gap: 7px; }
.confirmation-dialog-input-wrap[hidden] { display: none; }
.confirmation-dialog-input-wrap label { color: var(--text-secondary); font-size: 11px; font-weight: 600; }
.confirmation-dialog-input-wrap .field { width: 100%; min-width: 0; }
.confirmation-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.confirmation-dialog-actions .button { min-height: var(--control-height); }
.button-confirm-caution { border-color: var(--button-caution-border); color: var(--button-caution-text); background: var(--button-caution-surface); box-shadow: var(--button-shadow); }
.button-confirm-caution:hover:not(:disabled) { border-color: var(--status-warning); color: var(--text-primary); background: var(--button-caution-hover-surface); }
.button-confirm-caution:active:not(:disabled) { border-color: var(--status-warning); background: var(--button-caution-hover-surface); }
.backup-page { display: grid; gap: 13px; width: 100%; min-width: 0; max-width: none; padding-bottom: 12px; }
.backup-section { width: 100%; min-width: 0; padding: var(--section-card-padding); border: 1px solid var(--section-card-border); border-radius: var(--radius-section-card); background: var(--section-card-background); }
.backup-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.backup-section-heading .eyebrow { margin-bottom: 4px; }
.backup-section-heading h2 { margin: 0; color: var(--text-primary); font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.backup-section-heading > p { flex: 0 1 530px; margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.backup-create-heading { align-items: center; margin-bottom: 0; }
.backup-create-content { display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; gap: 20px; min-width: 0; }
.backup-create-content > p { flex: 0 1 560px; margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.backup-record-list { display: grid; gap: 8px; }
.backup-record-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-record-card); background: var(--bg-surface-raised); }
.backup-record-copy { min-width: 0; }
.backup-record-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
.backup-record-copy h3 { margin: 0; color: var(--text-primary); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.backup-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 12px 0 8px; }
.backup-metric { display: grid; align-content: start; justify-items: start; gap: 5px; min-width: 0; min-height: 72px; padding: 10px 11px; border: 1px solid var(--border-subtle); border-radius: var(--radius-metric-card); background: var(--bg-surface-raised); }
.backup-metric .eyebrow { margin: 0; }
.backup-metric strong { color: var(--text-primary); font-size: 13px; font-variant-numeric: tabular-nums; }
.backup-metric .status-pill { margin-top: 2px; }
.backup-metric .backup-metric-warning { color: var(--status-danger); }
.backup-record-copy > p:not(.backup-error-detail) { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 5px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.backup-record-actions { display: grid; justify-items: end; gap: 5px; }
.backup-record-actions .button { min-height: var(--control-height); }
.backup-error-detail { max-width: 650px; margin: 7px 0 0; color: var(--status-danger); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.backup-nonrestorable, .backup-action-note { max-width: 260px; color: var(--text-muted); font-size: 10px; line-height: 1.4; text-align: right; }
.backup-recovery-section { padding-bottom: 16px; }
.backup-restore-warning { margin: 0; padding: 11px 12px; }
.backup-restore-warning > strong { color: var(--status-warning); }
.backup-restore-warning p { max-width: 1100px; margin: 6px 0 0; }
.backup-action-note { color: var(--status-warning); }
.backup-create-action { display: flex; align-items: center; justify-content: flex-start; min-width: 0; }
.backup-create-action > .callout { margin: 0; }
.backup-schedule-note { margin: 11px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.55; }
.backup-load-status { margin: 0; color: var(--status-info); font-size: 11px; }
.backup-operation-status { margin: 0; color: var(--status-info); font-size: 11px; }
.backup-page .callout .button { margin: 5px 0 5px 8px; vertical-align: middle; }
.section-gap { margin-top: 14px; }
.section-gap-bottom { margin-bottom: 14px; }
.toolbar-top-gap { margin-top: 11px; }
.conflict-card { margin-bottom: 12px; }
.conflict-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.conflict-card-heading > .panel-title { flex: 1 1 220px; min-width: 0; margin: 0; }
.inbox-page { display: grid; gap: 13px; min-width: 0; }
.inbox-header { padding: 0 0 1px; }
.inbox-header h1 { margin: 0; color: var(--text-primary); font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.035em; overflow-wrap: anywhere; }
.inbox-header p { max-width: 720px; margin: 5px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.inbox-kicker { display: block; margin-bottom: 5px; color: var(--brand-text); font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.inbox-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.inbox-metric { position: relative; display: grid; align-content: space-between; gap: 9px; min-width: 0; min-height: 82px; padding: 12px 14px 12px 17px; border: 1px solid var(--border-subtle); border-radius: var(--radius-metric-card); background: var(--bg-surface); transition: border-color .16s var(--ease), background-color .16s var(--ease); }
.inbox-metric::before { position: absolute; inset: 13px auto 13px 0; width: 3px; border-radius: 0 4px 4px 0; background: var(--brand-primary); content: ""; }
.inbox-metric[data-tone="warning"]::before { background: var(--status-warning); }
.inbox-metric[data-tone="danger"]::before { background: var(--status-danger); }
.inbox-metric[data-tone="success"]::before { background: var(--status-success); }
.inbox-metric > span { color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.inbox-metric > strong { color: var(--text-primary); font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.inbox-metric[data-tone="warning"] > strong { color: var(--status-warning); }
.inbox-metric[data-tone="danger"] > strong { color: var(--status-danger); }
.inbox-metric[data-tone="success"] > strong { color: var(--status-success); }
.inbox-section { min-width: 0; padding: var(--section-card-padding); border: 1px solid var(--section-card-border); border-radius: var(--radius-section-card); background: var(--section-card-background); scroll-margin-top: 100px; }
.inbox-submissions { overflow: hidden; padding: 0; border-color: var(--border-default); }
.inbox-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.inbox-section-heading > div:first-child { min-width: 0; }
.inbox-section-heading h2 { margin: 0; color: var(--text-primary); font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.inbox-section-heading p { max-width: 750px; margin: 5px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.inbox-submissions > .inbox-section-heading { align-items: center; padding: 16px 18px 13px; }
.inbox-section-count { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 5px; padding: 4px 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); color: var(--text-secondary); background: var(--bg-surface-hover); font-size: 11px; font-variant-numeric: tabular-nums; }
.inbox-section-count > span { color: var(--text-muted); font-size: 9px; font-variant-numeric: normal; }
.inbox-section-count.is-attention { border-color: var(--status-warning); color: var(--status-warning); background: var(--status-warning-bg); }
.inbox-section-count.is-attention > span { color: inherit; }
.inbox-source-summary { display: flex; align-items: center; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 7px 10px; color: var(--text-muted); font-size: 10px; }
.inbox-source-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; min-height: 23px; padding: 3px 8px; border: 1px solid var(--brand-border); border-radius: var(--radius-pill); color: var(--brand-text); background: var(--brand-soft); font-size: 9px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }
.inbox-source-dot, .inbox-import-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--brand-primary); }
.inbox-import-state { display: inline-flex; align-items: center; gap: 6px; color: var(--status-success); font-size: 9px; white-space: nowrap; }
.inbox-import-state[data-state="error"] { color: var(--status-danger); }
.inbox-import-state[data-state="error"] .inbox-import-dot { background: var(--status-danger); }
.inbox-import-dot { background: var(--status-success); }
.inbox-total-count { display: inline-flex; align-items: baseline; gap: 5px; padding-left: 9px; border-left: 1px solid var(--border-subtle); }
.inbox-total-count > strong { color: var(--text-primary); font-size: 15px; font-variant-numeric: tabular-nums; }
.inbox-total-count > span { color: var(--text-muted); font-size: 9px; }
.inbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 17px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface-hover); }
.inbox-filters { display: flex; align-items: center; flex: 1 1 auto; gap: 3px; min-width: 0; overflow-x: auto; padding: 3px; border: 1px solid var(--border-subtle); border-radius: 8px; background: var(--bg-surface); scrollbar-width: thin; }
.inbox-filter-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; min-height: 33px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; color: var(--text-muted); background: transparent; cursor: pointer; font: 600 10px var(--font-sans); white-space: nowrap; transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease), transform .15s var(--ease); }
.inbox-filter-button > span { min-width: 18px; padding: 2px 5px; border-radius: 10px; color: inherit; background: var(--bg-surface-hover); font-size: 9px; font-variant-numeric: tabular-nums; text-align: center; }
.inbox-filter-button:hover { border-color: var(--border-default); color: var(--text-primary); background: var(--bg-surface-hover); }
.inbox-filter-button.is-active { border-color: var(--brand-border); color: var(--brand-text); background: var(--brand-soft); }
.inbox-filter-button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.inbox-page .button:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.inbox-filter-button:active { transform: translateY(1px); }
.inbox-search { position: relative; display: flex; align-items: center; flex: 0 1 310px; min-width: 220px; min-height: var(--control-height); gap: 8px; padding-left: 10px; border: 1px solid var(--border-default); border-radius: var(--radius-control); color: var(--text-muted); background: var(--bg-input); transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.inbox-search:focus-within { border-color: var(--border-focus); box-shadow: var(--control-focus-shadow); }
.inbox-search > .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.inbox-search .field { width: 100%; min-width: 0; min-height: calc(var(--control-height) - 2px); padding: 8px 10px 8px 0; border: 0; outline: 0; color: var(--text-primary); background: transparent; font-size: 11px; }
.inbox-search .field::placeholder { color: var(--text-disabled); }
.inbox-list-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 7px; color: var(--text-muted); font-size: 10px; }
.inbox-records { margin: 0 18px 17px; }
.inbox-records.has-records { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--bg-surface); }
.inbox-submission-table-heading, .inbox-submission-row { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(130px, .75fr) minmax(135px, .8fr) auto; align-items: center; gap: 14px; }
.inbox-submission-table-heading { padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); background: var(--bg-surface-hover); font-size: 9px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.inbox-submission-row { min-width: 0; padding: 13px 10px; border-bottom: 1px solid var(--border-subtle); animation: inbox-row-enter .18s var(--ease) both; transition: background-color .16s var(--ease); }
.inbox-submission-row:last-child { border-bottom: 0; }
.inbox-submission-row:hover { background: var(--bg-surface-hover); }
.inbox-submission-row.is-conflict { box-shadow: inset 2px 0 0 var(--status-danger); }
@keyframes inbox-row-enter { from { opacity: .6; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.inbox-submission-main { min-width: 0; }
.inbox-submission-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.inbox-submission-title h3 { min-width: 0; margin: 0; color: var(--text-primary); font-size: 12px; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.inbox-submission-main > p { margin: 4px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.inbox-production-review { margin-top: 5px; }
.inbox-submission-status { min-width: 0; }
.inbox-submission-date { display: grid; gap: 4px; min-width: 0; color: var(--text-secondary); font-size: 10px; }
.inbox-submission-date > span { color: var(--text-muted); font-size: 9px; }
.inbox-submission-date time { overflow-wrap: anywhere; }
.inbox-submission-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.inbox-submission-actions .button { min-height: 33px; padding: 6px 9px; font-size: 10px; }
.inbox-empty { display: grid; justify-items: start; gap: 5px; padding: 11px 13px; border-left: 3px solid var(--brand-border); border-radius: var(--radius-feedback); background: var(--bg-surface-hover); }
.inbox-empty .empty-state { padding: 0; }
.inbox-refresh-alert, .inbox-load-error, .inbox-loading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--border-default); border-radius: var(--radius-feedback); color: var(--text-secondary); background: var(--bg-surface); font-size: 11px; line-height: 1.5; }
.inbox-load-error { border-color: var(--button-danger-border); color: var(--button-danger-text); background: var(--status-danger-tint); }
.inbox-load-error p { margin: 0; }
.inbox-loading { justify-content: flex-start; color: var(--text-muted); }
.inbox-support-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.inbox-support-grid:not(.has-duplicates) { grid-template-columns: minmax(0, 1fr); }
.inbox-support-grid > .inbox-section { min-width: 0; }
.inbox-conflict-list { display: grid; gap: 9px; margin-top: 12px; }
.inbox-conflict-card { min-width: 0; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-record-card); background: var(--bg-surface); animation: inbox-row-enter .18s var(--ease) both; }
.inbox-conflict-card.is-resolved { background: var(--bg-inbox-resolved); }
.inbox-conflict-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px 16px; margin-bottom: 10px; }
.inbox-conflict-heading > div:first-child { min-width: 0; }
.inbox-conflict-heading h3 { margin: 0; color: var(--text-primary); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.inbox-conflict-heading p { margin: 4px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.inbox-conflict-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.inbox-conflict-card .conflict-field { grid-template-columns: minmax(95px, .65fr) repeat(2, minmax(105px, 1fr)) minmax(90px, .6fr); }
.inbox-conflict-card .conflict-value { min-width: 0; padding: 8px 9px; border: 1px solid var(--border-subtle); border-radius: 6px; background: var(--bg-input); line-height: 1.5; }
.inbox-conflict-card .conflict-value small { display: inline-block; margin-bottom: 3px; }
.inbox-conflict-card .conflict-value.is-selected { border-color: var(--status-success-border); background: var(--status-success-bg); }
.inbox-resolution-choice { display: block; margin-top: 3px; color: var(--status-success); font-size: 9px; font-weight: 650; }
.inbox-conflict-readonly { color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.inbox-conflict-card .form-actions { margin-top: 12px; }
.inbox-conflict-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; padding: 9px 10px; border-left: 2px solid var(--status-warning); color: var(--text-secondary); background: var(--status-warning-bg); font-size: 10px; line-height: 1.5; }
.inbox-resolved-conflicts { margin-top: 14px; border-top: 1px solid var(--border-subtle); }
.inbox-resolved-conflicts > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0 4px; color: var(--text-secondary); cursor: pointer; font-size: 11px; font-weight: 600; }
.inbox-resolved-conflicts > summary span { color: var(--text-muted); font-weight: 500; }
.inbox-resolved-list { display: grid; gap: 9px; padding-top: 8px; }
.inbox-duplicate-list { margin-top: 12px; border-top: 1px solid var(--border-subtle); }
.inbox-duplicate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px 2px; border-bottom: 1px solid var(--border-subtle); }
.inbox-duplicate-row > div { min-width: 0; }
.inbox-duplicate-row strong { color: var(--text-primary); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.inbox-duplicate-row p { margin: 4px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.inbox-duplicate-row > .button { flex: 0 0 auto; }

@media (max-width: 1100px) {
  .inbox-toolbar { align-items: stretch; flex-direction: column; gap: 7px; }
  .inbox-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .inbox-filter-button { justify-content: space-between; min-width: 0; padding-inline: 8px; font-size: 9px; }
  .inbox-search { flex-basis: auto; width: 100%; min-width: 0; }
}
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 224px minmax(0,1fr); }
  .main-content { padding: 22px 18px 35px; }
  .main-content--workspace { padding: 18px 18px 32px; }
  .inbox-support-grid.has-duplicates { grid-template-columns: minmax(0, 1fr); }
  .rehearsal-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rehearsal-progress, .rehearsal-current { grid-column: 1 / -1; }
  .rehearsal-current { border-top: 1px solid var(--border-subtle); border-left: 0; }
  .rehearsal-metric { border-top: 1px solid var(--border-subtle); border-left: 0; }
  .toolbar.program-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .program-toolbar.is-locked { grid-template-columns: minmax(0, 1fr); }
  .program-add-section { justify-self: start; }
  .program-page-header { gap: 14px; }
  .program-header-actions { flex-wrap: wrap; }
  .topbar { flex-wrap: wrap; gap: 8px 14px; padding-inline: 18px; }
  .topbar-right { width: 100%; justify-content: flex-end; }
  .dashboard-grid { column-gap: 22px; }
  .production-sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1450px) {
  .toolbar.program-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-toolbar.is-locked { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1060px) {
  .program-start-group { grid-template-columns: minmax(0, 1fr); }
  .program-save-start { justify-self: start; }
}
@media (max-width: 960px) {
  .rehearsal-layout { grid-template-areas: "workspace" "queue"; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .settings-nav { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; }
  .settings-nav-heading { flex: 0 0 100%; padding: 2px 6px 3px; }
  .settings-nav-link { flex: 0 0 auto; min-height: var(--control-height-touch); }
}
@media (max-width: 820px) {
  .backup-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-item { grid-template-columns: 30px minmax(0,1fr) minmax(105px,.7fr) auto; grid-template-areas: "number production start actions" "number production timing actions"; gap: 8px 10px; }
  .program-number { grid-area: number; align-self: start; }
  .program-production-copy { grid-area: production; align-self: center; }
  .program-start { grid-area: start; }
  .program-timing { grid-area: timing; }
  .program-item .program-actions { grid-area: actions; align-self: center; flex-direction: column; }
}
@media (max-width: 840px) {
  .task-page-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .task-header-actions { width: 100%; justify-content: space-between; }
  .task-row { grid-template-columns: minmax(0, 1fr) minmax(135px, .65fr); align-items: start; gap: 12px; }
  .task-row-main { grid-column: 1 / -1; }
  .task-deadline { grid-column: 1; }
  .task-status-control { grid-column: 2; }
  .task-actions { grid-column: 1 / -1; }
  .inbox-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .inbox-metric { min-height: 70px; padding: 10px 11px 10px 14px; }
  .inbox-metric > span { font-size: 9px; }
  .inbox-metric > strong { font-size: 19px; }
  .inbox-submission-table-heading { display: none; }
  .inbox-submission-row { grid-template-columns: minmax(0, 1fr) minmax(135px, .8fr); gap: 9px 14px; }
  .inbox-submission-main { grid-column: 1 / -1; }
  .inbox-submission-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .inbox-conflict-card .conflict-field { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .inbox-conflict-card .conflict-field > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; z-index: 8; top: 0; height: auto; padding: 8px 10px 7px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 2px 5px 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .main-nav { display: flex; flex: 0 0 auto; overflow-x: auto; overflow-y: hidden; gap: 4px; padding: 0 0 4px; scrollbar-width: thin; }
  .nav-group { display: contents; }
  .nav-section-label { display: none; }
  .nav-link { flex: 0 0 auto; width: auto; min-height: var(--control-height); gap: 7px; padding: 8px 9px; border-radius: var(--radius-nav-item); font-size: 11px; white-space: nowrap; }
  .nav-link::before { top: auto; right: 9px; bottom: 1px; left: 9px; width: auto; height: 2px; transform: scaleX(.72); }
  .nav-link.is-active::before { transform: scaleX(1); }
  .sidebar-profile-nav { display: flex; justify-content: flex-end; padding: 5px 0 0; border-top: 0; }
  .sidebar-profile { flex: 0 0 auto; width: min(100%, 240px); min-height: 44px; gap: 8px; padding: 4px 8px; }
  .sidebar-profile-avatar { flex-basis: 27px; width: 27px; height: 27px; border-radius: 8px; font-size: 10px; }
  .sidebar-profile-copy { display: flex; align-items: center; gap: 7px; }
  .sidebar-profile-copy strong { max-width: 180px; }
  .sidebar-profile-copy small { font-size: 10px; }
  .nav-link.nav-live { margin-top: 0; }
  .topbar { position: static; flex-wrap: wrap; min-height: 0; gap: 8px; padding: 9px 12px; }
  .global-search { width: 100%; order: 2; }
  .topbar-right { width: 100%; justify-content: flex-end; gap: 9px; }
  .toolbar.program-toolbar, .program-toolbar.is-locked { grid-template-columns: minmax(0, 1fr); max-width: none; padding: 0; }
  .toolbar.page-toolbar-surface.program-toolbar { padding: 12px; }
  .program-start-group, .program-production-group, .program-add-section { grid-column: 1; }
  .program-start-group { grid-template-columns: minmax(0, 1fr); }
  .program-save-start, .program-add-section { justify-self: start; }
  .program-page-header { align-items: stretch; flex-direction: column; gap: 11px; }
  .program-header-actions { align-items: stretch; flex-direction: column; }
  .program-lock-control { justify-content: space-between; }
  .time-banner.program-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-summary-item:nth-child(odd) { border-left: 0; }
  .program-summary-item:nth-child(n+3) { border-top: 1px solid var(--border-subtle); }
  .main-content { padding: 19px 12px 30px; }
  .main-content--workspace { padding: 14px 14px 26px; }
  .page-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .page-head > div:first-child { flex-basis: auto; width: 100%; }
  .page-actions { justify-content: flex-start; margin-left: 0; }
  .backup-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .backup-section-heading > p { flex-basis: auto; }
  .backup-create-content { align-items: flex-start; flex-direction: column; gap: 8px; width: 100%; }
  .backup-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .production-sheet { min-height: calc(100vh - 220px); min-height: calc(100dvh - 220px); }
  .production-sheet-header { top: 0; gap: 12px 16px; padding: 7px 0 14px; }
  .production-sheet-heading { gap: 9px; }
  .production-sheet-context { gap: 10px; }
  .production-sheet-title h1 { font-size: 24px; }
  .production-sheet-back { min-height: 38px; gap: 6px; padding: 8px 10px; font-size: 11px; }
  .production-sheet-header-actions { align-self: start; }
  .production-actions-trigger { min-height: 40px; gap: 6px; padding: 8px 10px; font-size: 11px; }
  .production-edit-actions { align-self: flex-start; }
  .production-sheet-sections { gap: 10px; padding-top: 12px; }
  .production-sheet-section { padding: 18px 18px 20px; }
  .sheet-section-heading { align-items: flex-start; }
  .sheet-section-heading { margin-bottom: 16px; }
  .production-sheet-grid { gap: 13px 18px; }
  .production-sheet .detail-item strong { font-size: 12px; }
  .production-sheet-actions { justify-content: flex-start; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card { min-height: 70px; padding: 10px 11px; }
  .stat-card .stat-value { font-size: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-section { grid-column: auto; }
  .check-grid { grid-template-columns: 1fr; }
  .rehearsal-workspace { padding: 15px; }
  .rehearsal-timing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rehearsal-timer-actions { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; }
  .rehearsal-edit-controls { grid-template-columns: minmax(0, 1fr); }
  .conflict-field { grid-template-columns: 1fr 1fr; }
  .conflict-field > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .backup-record-card { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; }
  .backup-overview { grid-template-columns: minmax(0, 1fr); }
  .backup-record-actions { justify-items: start; }
  .backup-error-detail, .backup-action-note { text-align: left; }
  .backup-record-actions { width: 100%; }
  .backup-record-actions > .button { width: 100%; }
  .backup-create-action { width: 100%; }
  .backup-create-action > .button { width: 100%; }
  .program-production-controls { grid-template-columns: minmax(0, 1fr); }
  .program-add-production { justify-self: start; }
  .program-item { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "number production" ". start" ". timing" ". actions"; gap: 8px 9px; padding: 11px 10px; }
  .program-number { grid-area: number; align-self: start; }
  .program-production-copy { grid-area: production; min-width: 0; }
  .program-start { grid-area: start; display: flex; align-items: baseline; gap: 8px; }
  .program-timing { grid-area: timing; display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; }
  .program-field-label { flex: 0 0 112px; margin: 0; }
  .program-timing .program-meta { margin: 0; }
  .program-item .program-actions { grid-area: actions; justify-self: start; flex-direction: row; flex-wrap: wrap; opacity: 1; }
  .rehearsal-workspace-heading { flex-direction: column; }
  .rehearsal-timing, .rehearsal-requirements { grid-template-columns: minmax(0, 1fr); }
  .rehearsal-timing-delta { padding-block: 2px; }
  .rehearsal-timer-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .rehearsal-timer-actions .button { width: 100%; }
  .rehearsal-workspace-actions { align-items: stretch; flex-direction: column; }
  .rehearsal-workspace-actions .button { width: 100%; }
  .rehearsal-queue-item { grid-template-columns: minmax(0, 1fr); }
  .rehearsal-queue-actions { grid-column: 1; grid-row: auto; flex-direction: row; justify-content: space-between; align-items: center; }
  .rehearsal-queue-actions > .button { min-height: 34px; }
  .program-section-row { align-items: flex-start; flex-direction: column; }
  .program-section-row .list-main, .program-section-row .program-section-actions { width: 100%; }
  .program-section-row .program-section-actions { flex-wrap: wrap; justify-content: flex-start; }
  .toast-region { right: 12px; bottom: 12px; left: 12px; width: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .toast { transform: translateY(calc(100% + 20px)) scale(.96); }
  .toast.is-visible { transform: translateY(0) scale(1); }
  .toast.is-exiting { transform: translateY(calc(100% + 20px)) scale(.94); }
  .search-overlay { padding: 12px; }
  .search-panel { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 11px; }
  .search-panel-heading { padding: 16px 16px 12px; }
  .search-panel-heading h2 { font-size: 17px; }
  .search-close { gap: 5px; min-height: 38px; padding: 8px 10px; }
  .search-input-wrap { min-height: 52px; margin-inline: 16px; padding-inline: 10px; }
  .search-input-wrap input { font-size: 14px; }
  .search-results { padding: 9px 8px; }
  .confirmation-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .confirmation-dialog-inner { gap: 17px; padding: 18px; }
  .confirmation-dialog-heading { gap: 10px; }
  .confirmation-dialog-icon { width: 32px; height: 32px; }
  .confirmation-dialog-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .confirmation-dialog-actions .button { width: 100%; }
  .production-sheet-header { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .production-sheet-heading { width: 100%; }
  .production-sheet-header-actions { grid-column: 1; justify-content: flex-start; }
  .production-detail-actions { justify-content: flex-start; }
  .production-actions-trigger { margin-left: 0; }
  .production-edit-actions { width: 100%; justify-content: flex-start; }
  .production-edit-unsaved { margin-right: auto; }
  .production-sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .production-sheet-section { padding: 16px 14px 18px; }
  .sheet-section-heading { flex-direction: column; gap: 8px; margin-bottom: 15px; }
  .sheet-record-id { text-align: left; }
  .production-sheet-actions { align-items: stretch; flex-direction: column; }
  .production-sheet-actions .button { width: 100%; }
  .task-toolbar { grid-template-columns: minmax(0, 1fr); }
  .task-filter-control { width: 100%; }
  .task-warning-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .task-warning-action { justify-self: start; }
  .task-section-heading { align-items: flex-start; }
  .task-board { padding: 14px 13px 12px; }
  .task-empty-state { align-items: flex-start; flex-direction: column; }
  .task-empty-state > .button { width: 100%; }
  .task-load-error { align-items: flex-start; flex-direction: column; }
  .task-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .task-deadline { grid-column: 1; }
  .task-status-control { grid-column: 2; justify-self: end; width: min(160px, 100%); }
  .task-actions { grid-column: 1 / -1; }
  .topbar-right { flex-wrap: wrap; justify-content: flex-start; }
  .topbar-connection { margin-right: auto; }
  .inbox-section-heading { align-items: flex-start; }
  .inbox-submissions > .inbox-section-heading { flex-direction: column; gap: 11px; }
  .inbox-source-summary { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; width: 100%; gap: 7px 10px; }
  .inbox-toolbar { padding-inline: 12px; }
  .inbox-list-meta { align-items: flex-start; flex-direction: column; gap: 3px; padding-inline: 12px; }
  .inbox-records { margin: 0 12px 12px; }
  .inbox-section { padding: 13px; }
  .inbox-submissions { padding: 0; }
  .inbox-submission-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding: 11px 8px; }
  .inbox-submission-main { grid-column: 1 / -1; }
  .inbox-submission-status { grid-column: 1; }
  .inbox-submission-date { grid-column: 2; justify-items: end; text-align: right; }
  .inbox-submission-actions { grid-column: 1 / -1; }
  .inbox-refresh-alert, .inbox-load-error { align-items: flex-start; flex-direction: column; }
  .inbox-refresh-alert .button, .inbox-load-error .button { width: 100%; }
  .inbox-conflict-heading { flex-direction: column; }
  .inbox-conflict-heading-actions { justify-content: flex-start; }
  .inbox-conflict-card { padding: 10px; }
  .inbox-conflict-note { align-items: flex-start; flex-direction: column; }
  .inbox-conflict-note .button { width: 100%; }
  .inbox-duplicate-row { align-items: flex-start; flex-direction: column; }
  .inbox-duplicate-row > .button { width: 100%; }
  .search-result-option { grid-template-columns: 32px minmax(0, 1fr); min-height: 52px; gap: 9px; padding: 7px 8px; }
  .search-result-icon { width: 30px; height: 30px; }
  .search-footer { flex-wrap: wrap; justify-content: center; gap: 8px 14px; padding: 10px 12px 12px; }
}
@media (max-width: 560px) {
  .inbox-metric { min-height: 66px; padding: 9px 9px 9px 13px; }
  .inbox-metric > strong { font-size: 18px; }
  .inbox-section-heading h2 { font-size: 15px; }
  .inbox-filter-button { min-height: 32px; gap: 5px; padding-inline: 7px; font-size: 9px; }
  .task-page { gap: 14px; }
  .task-header-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .task-progress-summary { width: 100%; }
  .task-create-button { justify-content: center; width: 100%; }
  .task-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .task-metric { min-height: 51px; padding: 9px 10px; }
  .task-metric > span { font-size: 9px; }
  .task-metric > strong { font-size: 15px; }
  .task-deadline-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .task-deadline-chip { justify-content: space-between; min-width: 0; }
  .task-row { grid-template-columns: minmax(0, 1fr) minmax(120px, auto); gap: 9px; padding: 10px; }
  .task-status-control { width: min(145px, 100%); }
  .task-actions { justify-content: flex-start; }
  .task-warning-copy h3, .task-row-main h3 { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .nav-link, .nav-link::before, .nav-link > .icon, .stat-card, .date-picker-trigger, .date-picker-month-nav,
  .date-picker-day, .date-picker-time-select, .toast__close, .dialog-close, .global-search, .search-input-wrap, .search-clear, .search-result-option,
  .custom-select-option, .production-action-menu-item, .login-tab-indicator, .login-input-wrap, .login-password-toggle,
  .task-deadline-chip, .task-row, .task-progress-meter, .inbox-filter-button, .inbox-submission-row, .program-item, .program-actions,
  .dashboard-attention-item, .dashboard-submission-metrics > button, .account-session-progress-fill {
    transition-duration: .01ms !important;
  }
  .inbox-submission-row, .inbox-conflict-card { animation: none !important; }
  .button:active:not(:disabled) { transform: none; }
  .date-picker-popup, .app-dialog, .app-dialog::backdrop, .confirmation-dialog, .confirmation-dialog::backdrop, .toast, .search-overlay, .search-panel, .production-action-menu, .account-menu, .account-menu-logout, .account-menu-logout .icon, .custom-select-popup, .custom-select-trigger, .custom-select-chevron, .filter-disclosure-option, .filter-disclosure-option-check {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  #auth-panel:not([hidden]) .login-card, #auth-panel:not([hidden]) .login-form:not([hidden]),
  .login-error:not([hidden]), .login-success:not([hidden]), #view-container.is-view-entering {
    animation: none !important;
  }
  .login-submit-spinner { animation: none !important; }
  .topbar-connection[data-state="connecting"] .connection-dot { animation: none !important; }
  .task-loading-indicator { animation: none !important; }
  .search-panel { transform: none !important; }
  .toast__progress { display: none; }
}
@media (max-width: 760px) {
  .live-control-grid { grid-template-columns: minmax(0, 1fr); }
  .live-next-panel { padding: 15px 0 0; border-top: 1px solid var(--border-subtle); border-left: 0; }
  .live-show-summary { margin-top: 17px; }
}
@media (max-width: 480px) {
  .live-current-panel { padding: 16px 14px; }
  .live-technical-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .live-current-meta span + span { padding-left: 9px; }
  .live-current-timer { font-size: clamp(48px, 15vw, 64px); }
  .live-operator-actions { align-items: stretch; }
  .live-operator-button { flex: 1 1 130px; min-width: 0; }
  .live-lock-state { margin-left: 0; }
  .live-schedule-row { grid-template-columns: 25px minmax(0, 1fr) auto; gap: 7px 9px; }
  .live-schedule-row .status-pill { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 1100px) {
  .toolbar.production-toolbar { grid-template-columns: minmax(0, 1fr); }
  .production-clear-filters { justify-self: end; }
}
@media (max-width: 840px) {
  .production-row { grid-template-columns: minmax(0, 1.2fr) minmax(145px, .8fr) auto; align-items: start; gap: 10px; }
  .production-main { grid-column: 1 / -1; }
  .production-duration-cell { grid-column: 1; }
  .production-status-cell { grid-column: 2; }
  .production-row-actions { grid-column: 3; grid-row: 2 / span 2; align-self: center; }
}
@media (max-width: 760px) {
  .production-page-header { align-items: stretch; flex-direction: column; gap: 11px; }
  .production-create-button { align-self: flex-start; }
  .production-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .production-metric { min-height: 48px; padding: 8px 10px; }
  .production-filter-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-item-filter-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-clear-filters { justify-self: start; }
  .production-load-error { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .production-page-content { gap: 11px; }
  .production-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 10px; }
  .production-main { grid-column: 1 / -1; }
  .production-duration-cell { grid-column: 1 / -1; }
  .production-status-cell { grid-column: 1 / -1; }
  .production-row-actions { grid-column: 1 / -1; grid-row: auto; align-self: center; justify-self: end; }
  .production-duration-cell { gap: 12px; }
}
@media (max-width: 1100px) {
  button:not(.date-picker-day):not([hidden]), .field, .select:not(.select-native-hidden),
  input.field:not([type="hidden"]), .program-start-field .date-picker-control > .field {
    min-width: var(--control-height-touch);
    min-height: var(--control-height-touch);
  }
  .button-icon-only { flex-basis: var(--control-height-touch); width: var(--control-height-touch); min-width: var(--control-height-touch); }
  .search-clear, .production-search-clear, .date-picker-month-nav, .dialog-close, .toast__close {
    width: var(--control-height-touch);
    min-width: var(--control-height-touch);
  }
  .custom-select-option, .production-action-menu-item, .filter-disclosure-option { min-height: var(--control-height-touch); }
  .date-picker-day { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .production-filter-chip, .production-row { transition-duration: .01ms !important; }
}

@keyframes live-state-enter {
  from { opacity: .35; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes live-state-exit {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes live-skip-status-enter {
  from { opacity: .45; transform: translateX(4px); }
  to { opacity: 1; transform: translateX(0); }
}
.live-transition-ghost {
  overflow: hidden;
  animation: live-state-exit .2s ease-in forwards !important;
  will-change: opacity, transform;
}
.live-current-panel, .live-display-current { transition: border-left-color .2s ease; }
.live-current-status .status-pill, .stage-readiness-current .status-pill,
.live-display-status, .live-display-stage-readiness-state .status-pill {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.live-current-panel.is-live-production-entering .live-current-title,
.live-current-panel.is-live-production-entering .live-current-meta,
.live-current-panel.is-live-production-entering .live-current-description,
.live-current-panel.is-live-production-entering .live-current-timer,
.live-current-panel.is-live-production-entering .live-current-empty-copy,
.live-next-panel.is-live-next-entering .live-next-content,
.live-next-panel.is-live-next-entering .live-next-empty,
.live-next-panel.is-live-readiness-entering .stage-readiness-current {
  animation: live-state-enter .24s var(--ease) both;
}
.live-current-panel.is-live-production-entering .live-current-meta,
.live-next-panel.is-live-readiness-entering .stage-readiness-current { animation-delay: .025s; }
.live-current-status.is-live-status-changing .status-pill,
.stage-readiness-current.is-readiness-changing .status-pill,
.live-schedule-row.is-live-status-changing {
  animation: live-state-enter .22s var(--ease) both;
}
.live-schedule-row[data-live-status="skipped"].is-live-status-changing .status-pill {
  animation: live-skip-status-enter .22s var(--ease) both;
}
@media (prefers-reduced-motion: reduce) {
  .live-transition-ghost,
  .live-current-panel.is-live-production-entering .live-current-title,
  .live-current-panel.is-live-production-entering .live-current-meta,
  .live-current-panel.is-live-production-entering .live-current-description,
  .live-current-panel.is-live-production-entering .live-current-timer,
  .live-current-panel.is-live-production-entering .live-current-empty-copy,
  .live-next-panel.is-live-next-entering .live-next-content,
  .live-next-panel.is-live-next-entering .live-next-empty,
  .live-next-panel.is-live-readiness-entering .stage-readiness-current,
  .live-current-status.is-live-status-changing .status-pill,
  .stage-readiness-current.is-readiness-changing .status-pill,
  .live-schedule-row.is-live-status-changing,
  .live-schedule-row[data-live-status="skipped"].is-live-status-changing .status-pill {
    animation: none !important;
    transition: none !important;
  }
}
