:root {
  --ink: #172127;
  --muted: #65727a;
  --line: #d9e1de;
  --soft: #f2f5f4;
  --paper: #ffffff;
  --green: #087f5b;
  --green-soft: #e8f5ef;
  --gold: #c38b2e;
  --shadow: 0 14px 38px rgba(21, 38, 32, .08);
}

.focus-progress { padding: 10px 16px 12px; border-top: 1px solid #dcebe4; border-bottom: 1px solid #dcebe4; background: #fbfefc; }
.focus-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; color: #5d6d68; font-size: 10px; font-weight: 750; }
.focus-progress strong { color: #087f5b; font-size: 15px; }
.focus-progress-track { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #e4eee9; }
.focus-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087f5b, #65c8a7); transition: width .3s ease; }
.focus-progress small { display: block; margin-top: 6px; color: #87958f; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-footer { margin-top: 12px; padding: 11px 12px; border: 1px solid #cfe6dc; border-radius: 6px; background: #f5fbf8; }
.model-ledger { margin-top: 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 5px 16px rgba(25, 43, 36, .035); overflow: hidden; }
.model-ledger > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.model-ledger h2 { margin: 3px 0 0; font-size: 16px; }
.model-ledger p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.ledger-policy { flex: none; border: 1px solid #cfe6dc; border-radius: 4px; padding: 5px 7px; color: #087f5b; background: #f5fbf8; font-size: 9px; font-weight: 850; }
.model-ledger-head, .model-ledger-row { display: grid; grid-template-columns: 1.25fr 1.25fr 1.45fr .75fr 1.1fr 28px; gap: 12px; align-items: center; }
.model-ledger-head { padding: 9px 20px; background: #f6f8f7; color: #738078; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.model-ledger-row { min-height: 64px; padding: 9px 20px; border-top: 1px solid #edf1ef; }
.model-ledger-row:first-child { border-top: 0; }
.ledger-book, .ledger-trigger, .ledger-models, .ledger-metrics, .ledger-output { min-width: 0; display: grid; gap: 3px; }
.ledger-book strong, .ledger-trigger strong, .ledger-output strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #253238; font-size: 11px; }
.ledger-book span, .ledger-trigger small, .ledger-output small, .ledger-metrics span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #728078; font-size: 9px; }
.ledger-fallback { color: #9a6716 !important; }
.ledger-models > span { display: flex; align-items: center; gap: 4px; min-width: 0; color: #728078; font-size: 9px; white-space: nowrap; }
.ledger-no-model { color: #b5544c; font-size: 9px; font-weight: 800; }
.model-ledger-row > button { width: 28px; height: 28px; border: 0; border-radius: 4px; color: #087f5b; background: #eef7f3; cursor: pointer; }
.model-ledger-row > button:hover { background: #ddf0e7; }
.model-ledger-row > button svg { width: 14px; }
.model-ledger-row.failed { background: #fffafa; }
.model-ledger-empty { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #748079; font-size: 11px; }
.model-ledger-empty svg { width: 16px; }
@media (max-width: 900px) { .model-ledger-head { display: none; } .model-ledger-row { grid-template-columns: 1fr 1fr 28px; gap: 10px; } .ledger-models { grid-column: 1 / 2; } .ledger-metrics { grid-column: 2 / 3; } .ledger-output { display: none; } .model-ledger-row > button { grid-column: 3; grid-row: 1 / span 2; } }
@media (max-width: 620px) { .model-ledger > header { align-items: flex-start; flex-direction: column; gap: 9px; } .model-ledger-row { grid-template-columns: minmax(0, 1fr) 28px; padding: 11px 14px; } .ledger-trigger, .ledger-models, .ledger-metrics { grid-column: 1; } .model-ledger-row > button { grid-column: 2; grid-row: 1; } }
.production-status-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(120px, .58fr); gap: 10px; align-items: center; margin-top: 10px; padding: 11px; border: 1px solid #b8d6ef; border-radius: 6px; background: #f6fbff; }
.production-status-card.fallback { border-color: #efd38e; background: #fffaf0; }
.production-status-card.overdue { border-color: #efc1b7; background: #fff8f6; }
.production-status-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e6f2fc; color: #236f9b; }
.production-status-card.fallback .production-status-icon { background: #fff0cf; color: #9b6813; }
.production-status-card.overdue .production-status-icon { background: #ffe8e2; color: #ae4e3b; }
.production-status-icon svg { width: 16px; }
.production-status-card span, .production-status-card strong, .production-status-card p, .production-status-card small { display: block; }
.production-status-card > div:nth-child(2) > span { color: #39759a; font-size: 9px; font-weight: 850; }
.production-status-card strong { margin-top: 3px; color: #23343d; font-size: 11px; }
.production-status-card p { margin: 4px 0; color: #4c6574; font-size: 10px; line-height: 1.5; }
.production-status-card small { color: #607883; font-size: 9px; line-height: 1.45; }
.production-status-card small b { color: #2c657e; }
.production-status-meta { justify-self: stretch; min-width: 0; display: grid; gap: 7px; padding-left: 10px; border-left: 1px solid #d8e9f4; }
.production-status-meta > span { min-width: 0; }
.production-status-meta .model-logo { max-width: 100%; }
.production-status-meta > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-status-meta .ai-wait-recovery { width: 100%; height: 30px; justify-content: center; padding: 0 8px; font-size: 9px; }
.detail-sync-state { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 11px; border: 1px dashed #b8c9c2; border-radius: 6px; background: #fbfcfc; }
.detail-sync-state > svg { width: 18px; color: #087f5b; }
.detail-sync-state > div { min-width: 0; flex: 1; }
.detail-sync-state strong, .detail-sync-state span { display: block; }
.detail-sync-state strong { color: #26363d; font-size: 11px; }
.detail-sync-state span { margin-top: 3px; color: #6c7973; font-size: 9px; line-height: 1.45; }
.detail-sync-state button { flex: none; height: 30px; padding: 0 8px; font-size: 9px; }
.detail-sync-state.is-syncing > svg { animation: detail-sync-spin 1.1s linear infinite; }
.asset-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.asset-summary > div { min-height: 58px; display: grid; align-content: center; gap: 3px; padding: 9px; border: 1px solid #dce6e1; border-radius: 5px; background: #fbfcfc; }
.asset-summary strong { color: #087f5b; font-size: 19px; line-height: 1; }
.asset-summary span { color: #6c7973; font-size: 9px; }
@keyframes detail-sync-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .asset-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .production-status-card { grid-template-columns: 28px minmax(0, 1fr); } .production-status-meta { grid-column: 2; padding: 7px 0 0; border-top: 1px solid #d8e9f4; border-left: 0; } }
.copy-output-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.copy-output-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.copy-complete-post { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; border: 1px solid #087f5b; border-radius: 5px; padding: 0 9px; background: #087f5b; color: #fff; font-size: 10px; font-weight: 850; cursor: pointer; }
.copy-complete-post:hover { background: #056b4c; border-color: #056b4c; }
.copy-complete-post.subtle { border-color: #cfe6dc; background: #fff; color: #087f5b; }
.copy-complete-post.subtle:hover { background: #f1faf6; }
.copy-complete-post svg { width: 13px; height: 13px; }
@media (max-width: 620px) { .copy-output-head { align-items: flex-start; flex-direction: column; } .copy-output-actions { justify-content: flex-start; } }
.copy-footer-main { display: grid; gap: 5px; }
.copy-footer-main strong { color: #1f3f35; font-size: 12px; line-height: 1.5; }
.copy-footer-main > span:not(.copy-footer-label) { color: #52645d; font-size: 10px; line-height: 1.45; }
.copy-footer-main a { display: inline-flex; align-items: center; gap: 4px; width: fit-content; color: #087f5b; font-size: 10px; font-weight: 800; text-decoration: none; }
.copy-footer-main a svg { width: 12px; }
.copy-footer-label { color: #087f5b; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.copy-hashtags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #dcebe4; }
.copy-hashtags strong { color: #356551; font-size: 10px; line-height: 1.6; }

html, body { overflow-x: hidden; background: #f2f5f4; }
.app-shell { grid-template-columns: 244px minmax(0, 1fr); grid-template-rows: 64px 1fr; }
.topbar { height: 64px; padding: 0 24px; border-color: #d9e1de; box-shadow: 0 1px 0 rgba(23, 33, 39, .025); }
.brand-mark { width: 38px; height: 38px; border-radius: 6px; background: #087f5b; }
.top-create { background: #172127; }
.top-create:hover { background: #2d3a40; }
.sidebar { top: 64px; height: calc(100vh - 64px); min-height: calc(100vh - 64px); padding: 22px 16px; background: #182329; }
.sidebar .primary-command { background: #0f8b64; }
.side-nav { gap: 6px; }
.nav-item { height: 44px; border-radius: 5px; color: #bac5ca; }
.nav-item.active { background: #2b383e; color: #fff; box-shadow: inset 3px 0 #31c895; }
.capability-block { margin-top: 24px; }
.facebook-lock.pro-edition { color: #e8bf72; }

@media (min-width: 761px) {
  .sidebar { position: fixed; left: 0; top: 64px; bottom: 0; width: 244px; height: auto; min-height: 0; overflow-y: auto; z-index: 16; }
  .workspace { grid-column: 2; grid-row: 2; }
}

.workspace { min-width: 0; padding: 0 28px 34px; background: #f2f5f4; }
.command-deck { min-height: 134px; margin: 0 -28px; padding: 26px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.command-title h1 { font-size: 31px; line-height: 1.1; font-weight: 780; }
.command-title p { max-width: 620px; color: #627079; }
.command-actions { gap: 9px; }
.command-actions .primary-command, .command-actions .secondary-command { height: 44px; }

.today-rail { margin: 20px 0 0; padding: 20px; border: 0; border-radius: 7px; background: #18272d; box-shadow: 0 16px 36px rgba(21, 35, 41, .15); }
.today-rail .eyebrow { color: #61d7ad; }
.today-rail-head h2 { color: #fff; font-size: 21px; }
.today-rail-head p { color: #9db0b8; font-size: 11px; }
.today-rail-head .icon-button { background: #24353c; border-color: #39505a; color: #e6eef1; }
.today-rail-head .icon-button:hover { background: #30454e; }
.today-rail-list { grid-auto-columns: minmax(310px, 340px); gap: 12px; padding: 2px 1px 7px; scrollbar-color: #50646c transparent; }
.today-card { min-height: 138px; padding: 12px 12px 40px; grid-template-columns: 66px minmax(0, 1fr); border-color: #31464e; background: #fdfefe; box-shadow: 0 8px 22px rgba(0, 0, 0, .12); transition: transform .2s ease, border-color .2s ease; }
.today-card:hover { transform: translateY(-3px); border-color: #65c8a7; box-shadow: 0 13px 28px rgba(0, 0, 0, .18); }
.today-cover { width: 66px; height: 88px; }
.today-card-copy > span { color: #087f5b; }
.today-card-copy h3 { font-size: 13px; }
.today-card-copy p { margin-top: 6px; }
.today-card-copy b { background: #eef5f2; color: #315f50; }
.today-plan { height: 27px; background: #172127; border-color: #172127; color: #fff; }
.today-plan:hover { background: #087f5b; }
.today-loading { color: #b9c8ce; }
.today-retry { min-height: 116px; width: min(460px, 100%); display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 18px 20px; border: 1px solid #35505a; border-radius: 6px; background: #1d3037; color: #e8f1f3; text-align: left; cursor: pointer; box-shadow: none; }
.today-retry:hover { border-color: #55cfa5; background: #223942; color: #fff; }
.today-retry:focus-visible { outline: 2px solid #61d7ad; outline-offset: 2px; }
.today-retry svg { width: 18px; flex: 0 0 18px; color: #61d7ad; }
.today-skeleton { min-height: 116px; display: flex; align-items: center; gap: 8px; color: #b9c8ce; font-size: 11px; }
.today-skeleton svg { width: 17px; color: #61d7ad; animation: premium-spin 1.1s linear infinite; }
.today-skeleton-card { min-height: 116px; display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 10px; border: 1px solid #2b4149; border-radius: 6px; background: #1d3037; opacity: .8; }
.today-skeleton-card > span { width: 58px; height: 78px; border-radius: 4px; background: #2a424a; }.today-skeleton-card > div { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 8px; }.today-skeleton-card b,.today-skeleton-card i { display: block; height: 8px; border-radius: 4px; background: #2a424a; }.today-skeleton-card b:first-child { grid-column: 1 / -1; width: 85%; }.today-skeleton-card i:last-child { grid-column: 1 / -1; width: 60%; }
@keyframes premium-spin { to { transform: rotate(360deg); } }

.overview-band { height: 94px; margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 5px 16px rgba(25, 43, 36, .035); overflow: hidden; }
.overview-band > div { padding: 0 20px; }
.overview-band > div:first-child { padding-left: 20px; }
.overview-band strong { font-size: 25px; }
.overview-band > div.model-mix { padding: 0 20px; }
.model-mix-chart { height: 6px; }

.focus-run, .leaderboard-band, .run-list-panel { border-color: var(--line); border-radius: 7px; box-shadow: 0 7px 22px rgba(23, 43, 35, .045); }
.focus-run { margin-top: 16px; padding: 22px; }
.focus-card { border-color: #b8d9cd; }
.focus-book { background: #f5faf8; }
.leaderboard-band { margin-top: 18px; padding: 22px; }
.leaderboard-heading h1, .control-band h1 { font-size: 22px; }
.leaderboard-grid { gap: 11px; }
.leaderboard-card { border-color: #dde4e2; background: #fff; transition: transform .16s ease, box-shadow .16s ease; }
.leaderboard-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(24, 52, 42, .09); }
.control-band { padding: 26px 0 15px; }
.run-list-head { background: #edf2f0; }
.run-row { min-height: 80px; }
.detail-panel { border-radius: 8px 0 0 8px; }

.video-capacity { min-width: 154px; grid-template-columns: 16px minmax(0, 1fr); padding: 4px 10px; cursor: help; }
.video-capacity strong { font-size: 10px; white-space: nowrap; }.video-capacity small { font-size: 8px; white-space: nowrap; }

.asset-library { align-items: start; }
.asset-card { border-color: #d9e1de; box-shadow: 0 7px 22px rgba(23, 43, 35, .045); }
.asset-preview { height: 205px; overflow: hidden; background: #e9efed; }
.asset-preview .asset-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; height: 100%; }
.asset-preview .asset-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; background: #e4ebe8; }
.asset-gallery .asset-media-frame:only-child { grid-column: 1 / -1; }
.asset-cover-preview { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.92); }
.asset-preview:has(.asset-cover-preview)::after { content: ''; position: absolute; inset: 55% 0 0; background: rgba(18, 32, 37, .2); pointer-events: none; }
.asset-video-indicator { position: absolute; left: 11px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 0 8px; border-radius: 4px; background: rgba(18, 30, 36, .86); color: #fff; font-size: 9px; font-weight: 800; backdrop-filter: blur(6px); }
.asset-video-indicator svg { width: 12px; fill: currentColor; }
.asset-empty { background: #edf2f0; color: #718078; }
.asset-remove-actions { padding-top: 10px; border-top: 1px solid #edf1ef; }
.asset-counts span { background: #edf6f2; }

.reference-poster-picker { margin-top: 12px; padding: 13px; border: 1px solid #cdded8; border-radius: 6px; background: #f7faf9; }
.reference-poster-picker > div:first-child strong, .reference-poster-picker > div:first-child span { display: block; }
.reference-poster-picker > div:first-child strong { font-size: 12px; }
.reference-poster-picker > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.reference-poster-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.reference-poster-option { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; padding: 6px; border: 1px solid #d7e1dd; border-radius: 5px; background: #fff; color: #4c5960; text-align: left; }
.reference-poster-option img { width: 46px; height: 60px; border-radius: 3px; object-fit: cover; background: #e8eeeb; }
.reference-poster-option span { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; }
.reference-poster-option span svg { width: 14px; color: #8a979d; }
.reference-poster-option.selected { border-color: #087f5b; background: #edf8f3; box-shadow: 0 0 0 2px rgba(8, 127, 91, .08); color: #087f5b; }
.reference-poster-option.selected span svg { color: #087f5b; }
.reference-poster-picker > .reference-video-command { margin-top: 10px; width: 100%; }

.side-plan-launch { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto 14px; align-items: center; gap: 7px; width: 100%; min-height: 38px; margin-top: 14px; padding: 0 10px; border: 1px solid #38524d; border-radius: 5px; background: #243438; color: #d9e7e1; text-align: left; }
.side-plan-launch:hover { border-color: #55c99e; background: #2d4143; }.side-plan-launch > svg { width: 15px; color: #65d7ad; }.side-plan-launch > svg:last-child { color: #96aaa3; }.side-plan-launch span { overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.side-plan-launch b { min-width: 19px; padding: 2px 5px; border-radius: 10px; background: #087f5b; color: #fff; font-size: 9px; text-align: center; }
.plan-queue-dialog { width: min(620px, calc(100vw - 34px)); max-width: 620px; }.plan-queue-intro { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }.plan-queue-list { display: grid; gap: 8px; max-height: 56vh; overflow: auto; }.plan-queue-item { position: relative; min-width: 0; }.plan-queue-list .creative-plan-job { min-height: 53px; width: 100%; padding: 10px 42px 10px 12px; border-color: #d8e5df; border-radius: 6px; background: #fff; color: #294239; }.plan-queue-list .creative-plan-job:hover { border-color: #71c9a6; background: #f6fbf8; }.plan-queue-list .creative-plan-job.loading { cursor: wait; opacity: .72; }.plan-queue-list .creative-plan-job strong { font-size: 11px; }.plan-queue-list .creative-plan-job > span > span { color: #71837a; font-size: 9px; }.plan-queue-list .creative-plan-job svg { color: #087f5b; }.plan-queue-list .creative-plan-job.failed { border-color: #edc9c5; background: #fff8f7; }.plan-dismiss { position: absolute; top: 50%; right: 9px; display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 1px solid #d7e3dd; border-radius: 4px; background: #fff; color: #6e8178; transform: translateY(-50%); }.plan-dismiss:hover { border-color: #e6aaa4; background: #fff5f4; color: #b93b32; }.plan-dismiss svg { width: 14px; }.plan-queue-empty { display: grid; place-items: center; gap: 8px; min-height: 150px; border: 1px dashed #cddbd4; color: #7b8d84; font-size: 11px; }.plan-queue-empty svg { width: 26px; color: #4dbb90; }

.model-logo { display: inline-flex; align-items: center; gap: 5px; min-width: 0; vertical-align: middle; color: #33475d; font-style: normal; }.model-logo img { display: block; width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }.model-logo b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #718096; color: #fff; font-family: Arial, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: 0; line-height: 1; }.model-logo em { overflow: hidden; color: inherit; font-size: 9px; font-style: normal; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }.model-logo.compact { gap: 4px; }.model-logo.compact img, .model-logo.compact b { width: 17px; height: 17px; border-radius: 5px; font-size: 7px; }.model-logo.compact em { font-size: 8px; }.model-logo-glm b { background: #1778c8; width: 22px; font-size: 6px; }.model-logo-hy3 b { background: #087f5b; border-radius: 50% 50% 5px 50%; }.model-logo-metrics b { background: #7b8794; width: 25px; font-size: 6px; }.model-select-control { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }.selected-model-badge { display: inline-flex; flex: none; }.model-choice-row .model-select-control { max-width: 235px; }.model-choice-row .model-select-control select { min-width: 0; }.assistant-model .model-select-control { display: inline-flex; }.model-select-label .model-select-control { display: flex; margin-top: 5px; }.model-select-label .model-select-control select { margin-top: 0; flex: 1; }
.model-mix-legend .model-logo { display: inline-flex; margin-right: 2px; }.model-mix-legend .model-logo em { max-width: 72px; }.model-mix-legend span { display: inline-flex; align-items: center; }.model-mix-legend span > i { flex: none; }.model-activity-main .model-logo { flex: none; }.model-activity-main small .model-logo { margin: 0 2px; }.model-activity-main small .model-logo b { width: 14px; height: 14px; border-radius: 4px; font-size: 6px; }.model-activity-main small .model-logo em { font-size: 8px; }.production-model-route strong { display: flex !important; align-items: center; flex-wrap: wrap; gap: 5px; }.production-model-route strong > b { color: #567284; font-size: 9px; }.production-model-route strong > i { width: 13px; color: #7290a0; }.plan-model { display: inline-flex; align-items: center; padding: 4px 6px; }.plan-model .model-logo { color: #087f5b; }.plan-model-route span .model-logo { margin: 0 3px; }

.weekly-report-dialog { width: min(920px, calc(100vw - 34px)); max-width: 920px; }
.weekly-report-dialog > header { padding-bottom: 14px; }
.weekly-report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 22px 16px; border-bottom: 1px solid #e5ece8; }
.weekly-report-content { display: grid; gap: 18px; min-height: 270px; padding: 21px 22px; max-height: min(67vh, 720px); overflow: auto; background: #f7faf9; }
.weekly-report-dialog > footer { display: flex; justify-content: flex-end; gap: 9px; }
.weekly-report-loading { display: grid; place-items: center; align-content: center; min-height: 260px; gap: 8px; color: #63746e; text-align: center; }
.weekly-report-loading svg { width: 26px; color: #087f5b; animation: premium-spin 1.05s linear infinite; }
.weekly-report-loading strong { color: #22332c; font-size: 14px; }.weekly-report-loading span { max-width: 330px; font-size: 11px; line-height: 1.65; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d9e6e0; border-radius: 7px; background: #fff; box-shadow: 0 7px 20px rgba(29, 51, 40, .04); }
.report-kpis > div { min-width: 0; padding: 16px; border-right: 1px solid #e7eeea; }.report-kpis > div:last-child { border-right: 0; }
.report-kpis span, .report-metrics span { display: block; color: #72827b; font-size: 10px; font-weight: 750; }.report-kpis strong { display: block; margin: 7px 0 4px; color: #173b32; font-size: 24px; line-height: 1; }.report-kpis small { display: block; min-height: 24px; color: #7c8984; font-size: 9px; line-height: 1.35; }
.report-section { padding: 18px; border: 1px solid #dbe7e1; border-radius: 7px; background: #fff; }.report-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }.report-section h3 { margin: 4px 0 0; color: #1f322a; font-size: 15px; }.report-scope { color: #70817a; font-size: 10px; line-height: 1.4; text-align: right; }
.report-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.report-highlight { min-width: 0; padding: 13px; border-left: 3px solid #aec2b8; background: #f5f8f7; }.report-highlight.positive { border-color: #0b9d71; }.report-highlight.attention { border-color: #d18a33; }.report-highlight strong { color: #294136; font-size: 12px; }.report-highlight p { margin: 7px 0 0; color: #65766e; font-size: 10px; line-height: 1.65; }
.report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }.report-metrics > div { padding: 11px; border: 1px solid #e1eae5; border-radius: 5px; background: #fbfcfc; }.report-metrics strong { display: block; margin-top: 6px; color: #173b32; font-size: 19px; }
.report-risk-list { display: grid; gap: 7px; }.report-risk { display: grid; grid-template-columns: 27px minmax(0, 1fr) 16px; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid #e1e8e4; border-radius: 5px; background: #fff; color: #384b43; text-align: left; }.report-risk:hover { border-color: #b6d2c5; background: #f7fbf9; }.report-risk > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #fff3e5; color: #b66d1e; }.report-risk.critical > span { background: #fff0ef; color: #cc5149; }.report-risk svg { width: 15px; }.report-risk strong, .report-risk small { display: block; }.report-risk strong { overflow: hidden; color: #253a31; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.report-risk small { margin-top: 3px; color: #718077; font-size: 9px; line-height: 1.35; }.report-risk > svg { color: #8b9993; }.report-clear { display: flex; align-items: center; gap: 8px; color: #4d7765; font-size: 11px; }.report-clear svg { width: 18px; color: #087f5b; }.report-next ol { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: #56675f; font-size: 11px; line-height: 1.65; }.report-next li::marker { color: #0b9d71; font-weight: 800; }

/* Ranking and cover states stay legible while remote data is loading. */
.leaderboard-cover, .today-cover, .resilient-cover { position: relative; isolation: isolate; overflow: hidden; background: #e8efed; }
.leaderboard-cover .cover-fallback, .today-cover .cover-fallback, .resilient-cover .cover-fallback { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; gap: 2px; color: #087f5b; }
.resilient-cover .cover-fallback small { font-size: 6px; font-weight: 850; }.resilient-cover .cover-fallback strong { font-size: 20px; }
.today-cover .cover-fallback { display: grid; place-items: center; align-content: center; gap: 4px; background: #edf2ef; color: #087f5b; }
.today-cover .cover-fallback small { font-size: 7px; font-weight: 850; }
.today-cover .cover-fallback strong { font-size: 26px; }
.leaderboard-cover [data-cover-image], .today-cover [data-cover-image], .resilient-cover [data-cover-image] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .16s ease; }
.leaderboard-cover [data-cover-image].is-loaded, .today-cover [data-cover-image].is-loaded, .resilient-cover [data-cover-image].is-loaded { opacity: 1; }
.asset-media-frame { position: relative; min-width: 0; height: 100%; overflow: hidden; background: #e8eeec; }
.asset-media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #718078; font-size: 9px; }
.asset-media-frame img { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .16s ease; }
.asset-media-frame img.is-loaded { opacity: 1; }
.asset-counts .video-state.working { background: #e8f2ff; color: #2f65a7; }.asset-counts .video-state.ready { background: #e5f5ee; color: #087f5b; }.asset-counts .video-state.attention { background: #fff3df; color: #9b6217; }.asset-counts .video-state.failed { background: #fff0ee; color: #b43b32; }
.cover-unavailable .cover-fallback { background: #f1f3f2; color: #738078; }
.leaderboard-card.metrics-disabled { border-style: dashed; background: #fafbfb; box-shadow: none; }
.leaderboard-card.metrics-disabled:hover { transform: none; border-color: #d4ddda; box-shadow: none; }
.leaderboard-card.metrics-disabled .leaderboard-copy, .leaderboard-card.metrics-disabled .leaderboard-metrics { opacity: .76; }
.select-book:has(input:disabled) { cursor: not-allowed; opacity: .45; }
.start-book:disabled, .plan-book:disabled { cursor: not-allowed; }
.updated-label.warning { color: #a24b31; font-weight: 750; }
.icon-button.loading svg { animation: premium-spin 1s linear infinite; }
.cover-retry { color: #996223; border-color: #e2cda9; background: #fffaf2; }
.leaderboard-empty .secondary-command { height: 34px; margin-top: 8px; }
.today-source-state { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 210px; min-height: 116px; padding: 12px; border: 1px dashed #476069; border-radius: 6px; background: #20343b; color: #c6d5da; font-size: 10px; line-height: 1.45; text-align: center; }
.today-source-state svg { width: 16px; flex: none; }
.today-source-state.refreshing svg { color: #61d7ad; animation: premium-spin 1s linear infinite; }
.today-source-state.stale { cursor: pointer; }
.today-source-state.stale:hover { border-color: #61d7ad; color: #fff; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .workspace { padding-left: 20px; padding-right: 20px; }
  .command-deck { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .today-rail-list { grid-auto-columns: minmax(292px, 320px); }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .sidebar { width: 218px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .topbar { height: 58px; padding: 0 12px; }
  .topbar .brand-lockup { min-width: 0; }
  .topbar .brand-lockup > div { min-width: 0; }
  .topbar .brand-lockup strong { display: block; overflow: hidden; max-width: 84px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { gap: 6px; }
  .topbar-actions #systemState, .topbar-actions #createRunButton { display: none; }
  .topbar-actions #refreshButton { display: grid; width: 32px; height: 32px; }
  .video-capacity { min-width: 128px; padding-left: 8px; padding-right: 8px; }
  .sidebar { position: static; height: auto; min-height: 0; padding: 12px 13px; }
  .sidebar > .primary-command, .capability-block, .facebook-lock { display: none; }
  .side-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; gap: 4px; overflow: visible; }
  .nav-item { min-width: 0; grid-template-columns: 18px minmax(0, 1fr); height: 38px; padding: 0 7px; font-size: 10px; }
  .workspace { padding: 0 13px 24px; }
  .command-deck { margin: 0 -13px; padding: 20px 13px; }
  .command-title h1 { font-size: 25px; }
  .command-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .command-actions .primary-command, .command-actions .secondary-command { width: 100%; min-height: 42px; height: auto; padding: 8px 10px; justify-content: center; font-size: 11px; line-height: 1.25; white-space: nowrap; }
  .today-rail { margin-top: 14px; padding: 15px; }
  .today-rail-list { grid-auto-columns: minmax(268px, 82vw); }
  .overview-band { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
  .overview-band > div, .overview-band > div:first-child { min-height: 76px; padding: 12px; }
  .overview-band > div:nth-child(3)::after { display: none; }
  .overview-band > div.model-mix { grid-column: 1 / -1; min-height: 82px; padding: 12px 0; border-top: 1px solid var(--line); }
  .deepseek-assistant { width: 52px; height: 52px; right: 12px; bottom: 12px; padding: 0; border-radius: 50%; justify-content: center; }
  .deepseek-assistant .assistant-avatar.mascot { display: grid; width: 36px; height: 36px; }
  .reference-poster-options { grid-template-columns: 1fr 1fr; }
  .weekly-report-dialog { width: calc(100vw - 18px); }.weekly-report-toolbar { align-items: flex-start; flex-direction: column; padding: 0 15px 13px; }.weekly-report-content { padding: 14px; }.report-kpis, .report-highlights, .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.report-kpis > div:nth-child(2) { border-right: 0; }.report-kpis > div:nth-child(-n+2) { border-bottom: 1px solid #e7eeea; }.report-section { padding: 14px; }.report-section > header { flex-direction: column; gap: 5px; }.report-scope { text-align: left; }
  .plan-queue-dialog { width: calc(100vw - 18px); }
  .model-choice-row .model-select-control { flex: 1; max-width: none; }.model-choice-row .model-select-control select { flex: 1; }.assistant-model label { flex-wrap: wrap; }.model-logo em { max-width: 95px; }
}

/* One-click production feedback: the click is acknowledged before the
   provider work finishes, while the card remains compact and actionable. */
.one-click-status { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #a8d8c7; border-radius: 9px; background: linear-gradient(105deg, #f2fbf7, #ffffff); box-shadow: 0 8px 22px rgba(8, 127, 91, .07); }
.one-click-status > header { display: flex; align-items: flex-start; gap: 10px; }
.one-click-status > header > span { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border-radius: 8px; background: #087f5b; color: #fff; }
.one-click-status > header svg { width: 15px; }
.one-click-status > header strong, .one-click-status > header small { display: block; }
.one-click-status > header strong { font-size: 12px; color: #1e4d3c; }
.one-click-status > header small { margin-top: 3px; font-size: 10px; color: #5e776c; line-height: 1.45; }
.one-click-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 7px; margin-top: 10px; }
.one-click-items article { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 9px; border: 1px solid #d9ebe3; border-radius: 7px; background: #fff; }
.one-click-items article.failed { border-color: #efc7c3; background: #fff9f8; }
.one-click-pulse { width: 23px; height: 23px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #e7f4ef; color: #087f5b; }
.one-click-pulse svg { width: 13px; animation: rankspin 1.1s linear infinite; }
.one-click-items article.active .one-click-pulse svg { animation: none; }
.one-click-items article.failed .one-click-pulse { background: #ffebe9; color: #b42318; }
.one-click-items article.failed .one-click-pulse svg { animation: none; }
.one-click-items article.blocked { border-color: #ead5aa; background: #fffbf2; }
.one-click-items article.blocked .one-click-pulse { background: #fff0cd; color: #9a6700; }
.one-click-items article > div { min-width: 0; flex: 1; }
.one-click-items article strong, .one-click-items article small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.one-click-items article strong { font-size: 10px; color: #263b34; }
.one-click-items article small { margin-top: 2px; font-size: 9px; color: #6c8178; }
.one-click-items article > b { flex: none; font-size: 8px; color: #087f5b; }
.one-click-items article > button { height: 25px; flex: none; border: 1px solid #e7b5af; border-radius: 4px; background: #fff; color: #a83930; padding: 0 7px; font-size: 9px; font-weight: 800; }
.one-click-items article.active > button { border-color: #b9dacc; color: #087f5b; }
.batch-book-bar .batch-start { height: 30px; margin-left: auto; padding: 0 10px; font-size: 10px; background: #087f5b; }
.batch-book-bar .batch-start:disabled { opacity: .62; cursor: wait; }
.batch-book-bar .icon-button { margin-left: 0; }
.book-live-progress { position: absolute; left: 82px; right: 12px; bottom: 42px; min-width: 0; }
.book-live-progress > span { display: flex; align-items: center; gap: 4px; min-width: 0; color: #087f5b; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-live-progress > span svg { width: 11px; flex: none; animation: rankspin 1.1s linear infinite; }
.book-live-progress > i { display: block; height: 3px; margin-top: 4px; border-radius: 99px; background: linear-gradient(90deg, #087f5b, #7cccae); }
.leaderboard-card.in-progress { min-height: 140px; }
.today-card-actions { position: absolute; right: 10px; bottom: 9px; display: flex; gap: 5px; }
.today-card-actions button { height: 27px; border: 1px solid #b9dacc; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; font-size: 9px; font-weight: 850; }
.today-card-actions .today-start { background: #087f5b; border-color: #087f5b; color: #fff; }
.today-card-actions .today-start:hover { background: #056b4c; }
.today-card-actions .today-start:disabled { opacity: .62; cursor: wait; }
.today-card-actions .today-plan { position: static; background: #fff; color: #087f5b; }
.today-card-actions svg { width: 12px; }
.today-card.in-progress { border-color: #8fcbb5; box-shadow: 0 6px 18px rgba(8, 127, 91, .1); }
@media (max-width: 760px) {
  .one-click-status { margin-top: 10px; }
  .one-click-items { grid-template-columns: 1fr; }
  .batch-book-bar { align-items: center; flex-wrap: wrap; }
  .batch-book-bar small { display: block; flex-basis: 100%; order: 3; }
  .batch-book-bar .batch-start { margin-left: auto; }
  .book-live-progress { left: 74px; right: 9px; bottom: 39px; }
  .today-card-actions { right: 7px; bottom: 7px; }
}

@media (max-width: 760px) {
  .sidebar { position: sticky; top: 58px; z-index: 20; box-shadow: 0 4px 12px rgba(17, 31, 37, .12); }
}

/* 2026-07-29: faster, decision-first operating surface. */
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei", sans-serif; }
button, a, input, select { transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #087f5b; outline-offset: 2px; }

.command-deck { min-height: 100px; padding-top: 18px; padding-bottom: 18px; }
.command-title h1 { margin: 3px 0 5px; font-size: 27px; }
.command-title p { font-size: 11px; }
.command-actions .primary-command, .command-actions .secondary-command { height: 40px; padding: 0 13px; font-size: 11px; }

.today-rail { margin-top: 14px; padding: 0 0 13px; border-radius: 0; border-bottom: 1px solid #d9e1de; background: transparent; box-shadow: none; }
.today-rail-head { align-items: center; margin-bottom: 9px; }
.today-rail .eyebrow { color: #087f5b; }
.today-rail-head h2 { color: #172127; font-size: 18px; }
.today-rail-head p { margin-top: 3px; color: #65727a; font-size: 10px; }
.today-rail-head .icon-button { width: 30px; height: 30px; border-color: #d9e1de; background: #fff; color: #36454c; }
.today-rail-head .icon-button:hover { background: #edf6f2; }
.today-rail-list { grid-auto-columns: minmax(276px, 304px); gap: 9px; padding: 1px 1px 3px; scrollbar-color: #aab8b2 transparent; }
.today-card { min-height: 112px; padding: 9px 9px 34px; grid-template-columns: 56px minmax(0, 1fr); border-color: #dce4e1; box-shadow: 0 3px 10px rgba(25, 43, 36, .04); }
.today-card:hover { transform: translateY(-1px); border-color: #8fcbb5; box-shadow: 0 8px 18px rgba(25, 43, 36, .08); }
.today-cover { width: 56px; height: 76px; }
.today-card-copy h3 { font-size: 12px; }
.today-card-copy p { margin-top: 4px; }
.today-source-state, .today-retry, .today-skeleton { min-height: 110px; border-color: #c9d8d2; background: #f7faf9; color: #5d6d67; }
.today-source-state.stale:hover, .today-retry:hover { border-color: #55a988; background: #eff7f3; color: #23342d; }
.today-source-state.refreshing svg, .today-retry svg, .today-skeleton svg { color: #087f5b; }
.today-skeleton-card { min-height: 110px; border-color: #dce5e1; background: #f8faf9; }
.today-skeleton-card > span, .today-skeleton-card b, .today-skeleton-card i { background: #e4ebe8; }

.overview-band { height: 80px; margin-top: 10px; }
.overview-actions > .overview-kpi { padding-left: 18px; }
.overview-actions > .overview-kpi:first-child { padding-left: 18px; }
.overview-actions > .overview-kpi strong { font-size: 23px; }
.overview-actions > .overview-kpi small { font-size: 9px; }
.leaderboard-band { margin-top: 14px; padding-top: 17px; }
.leaderboard-heading { margin-bottom: 12px; }
.leaderboard-heading h1, .control-band h1 { font-size: 20px; }

.history-decision-bar { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(520px, 1.6fr); align-items: center; gap: 14px; margin-bottom: 12px; padding: 11px 12px; border: 1px solid #d9e4df; border-radius: 6px; background: #f7faf9; }
.history-scope strong, .history-scope span { display: block; }
.history-scope strong { color: #263b32; font-size: 11px; }
.history-scope span { margin-top: 3px; color: #6b7a73; font-size: 9px; line-height: 1.45; }
.history-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.history-filter { min-width: 0; height: 38px; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid #d8e2de; border-radius: 5px; background: #fff; color: #5e6c66; font-size: 9px; text-align: left; }
.history-filter svg { width: 13px; }
.history-filter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-filter b { min-width: 18px; color: #293a33; font-size: 10px; text-align: right; font-variant-numeric: tabular-nums; }
.history-filter:hover:not(:disabled), .history-filter.active { border-color: #79bda3; background: #edf7f2; color: #087f5b; }
.history-filter:disabled { cursor: not-allowed; opacity: .45; }

.leaderboard-grid.history-mode { grid-template-columns: repeat(2, minmax(430px, 1fr)); align-items: start; max-height: none; overflow: visible; }
.history-review-card { grid-template-columns: 96px 54px minmax(0, 1fr) minmax(126px, .42fr); align-items: center; min-height: 132px; padding: 12px; overflow: visible; border-left: 3px solid #aebbb6; }
.history-review-card.decision-reinvest { border-left-color: #087f5b; }
.history-review-card.decision-observe { border-left-color: #bb7a21; }
.history-review-card.decision-pause { border-left-color: #bd5248; }
.history-review-card.decision-insufficient { border-left-color: #87928d; }
.history-review-card .leaderboard-cover { width: 54px; height: 72px; margin: 0; }
.history-decision { min-width: 0; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 7px; }
.history-decision > svg { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: #edf3f0; color: #6b7872; }
.decision-reinvest .history-decision > svg { background: #e3f4ec; color: #087f5b; }
.decision-observe .history-decision > svg { background: #fff2dd; color: #a76712; }
.decision-pause .history-decision > svg { background: #ffebe8; color: #b33f36; }
.history-decision span, .history-decision strong, .history-decision small { display: block; }
.history-decision span { color: #75817b; font-size: 8px; }
.history-decision strong { margin-top: 2px; color: #263832; font-size: 12px; }
.history-decision small { margin-top: 3px; color: #74817b; font-size: 8px; }
.history-review-card .leaderboard-copy p { max-width: 48ch; white-space: normal; line-height: 1.4; }
.history-review-card .leaderboard-metrics { align-self: center; padding: 0; text-align: left; }
.history-review-card .leaderboard-metrics strong { color: #273831; font-size: 12px; }
.history-review-card .leaderboard-metrics small { max-width: 24ch; white-space: normal; line-height: 1.35; }
.history-review-toggle { position: absolute; right: 10px; bottom: 9px; height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #d2dfd9; border-radius: 4px; background: #fff; color: #426156; font-size: 9px; font-weight: 750; }
.history-review-toggle svg { width: 12px; }
.history-review-toggle.open > svg:last-child { transform: rotate(180deg); }
.history-review-detail { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr minmax(260px, 1.1fr); gap: 12px; margin: 7px -3px -3px; padding: 12px; border-top: 1px solid #e2e9e6; background: #f8faf9; }
.history-review-detail[hidden] { display: none; }
.history-review-detail span, .history-review-detail strong, .history-review-detail p { display: block; }
.history-review-detail > div > span { color: #78847e; font-size: 8px; font-weight: 800; }
.history-review-detail > div > strong { margin-top: 4px; color: #2b3e35; font-size: 10px; line-height: 1.45; }
.history-review-detail p { margin: 4px 0 0; color: #6d7a74; font-size: 9px; line-height: 1.45; }
.history-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.history-metric-grid > span { padding: 7px; border: 1px solid #dfe7e3; border-radius: 4px; background: #fff; color: #74817b; font-size: 8px; }
.history-metric-grid b { display: block; margin-bottom: 2px; color: #263a31; font-size: 11px; font-variant-numeric: tabular-nums; }
.history-review-empty { grid-column: 1 / -1; min-height: 130px; display: grid; place-items: center; align-content: center; gap: 5px; color: #738079; font-size: 10px; }
.history-review-empty svg { width: 20px; }

.load-more-runs { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-top: 1px solid #e1e8e5; background: #f8faf9; color: #496158; font-size: 10px; font-weight: 750; }
.load-more-runs:hover { background: #edf6f2; color: #087f5b; }
.load-more-runs svg { width: 14px; }

@media (max-width: 1180px) {
  .command-deck { align-items: flex-start; }
  .command-actions { flex-wrap: wrap; justify-content: flex-end; }
  .history-decision-bar { grid-template-columns: 1fr; }
  .leaderboard-grid.history-mode { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { overflow: hidden; }
  .video-capacity { min-width: 92px; grid-template-rows: 1fr; }
  .video-capacity svg { grid-row: auto; }
  .video-capacity small { display: none; }
  .sidebar { padding-left: 8px; padding-right: 8px; }
  .side-nav { gap: 2px; }
  .nav-item { gap: 4px; padding: 0 3px; font-size: 9px; }
  .command-deck { padding-top: 15px; padding-bottom: 15px; }
  .command-title h1 { font-size: 22px; }
  .command-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-rail { padding: 0 0 11px; }
  .today-rail-list { grid-auto-columns: minmax(252px, 82vw); }
  .overview-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-actions > .overview-kpi, .overview-actions > .overview-kpi:first-child { min-height: 72px; padding: 10px 8px; }
  .overview-actions > .overview-kpi:last-child { grid-column: 1 / -1; border-top: 1px solid #d9e1de; }
  .overview-actions > .overview-kpi small { display: none; }
  .history-decision-bar { padding: 10px; }
  .history-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-filter:first-child { grid-column: 1 / -1; }
  .history-review-card { grid-template-columns: 86px 48px minmax(0, 1fr); padding-bottom: 45px; }
  .history-review-card .leaderboard-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; }
  .history-review-card .leaderboard-metrics span { display: none; }
  .history-review-card .leaderboard-metrics small { max-width: none; }
  .history-review-detail { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
