:root {
  --ink: #17212b;
  --muted: #667085;
  --line: #dbe1e8;
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --sidebar: #1d2430;
  --sidebar-muted: #aeb9c8;
  --sidebar-hover: #2b3545;
  --accent: #3568d4;
  --accent-strong: #244da4;
  --success: #198754;
  --warning: #ad690e;
  --danger: #c4383a;
  --el-color-primary: var(--accent);
  --el-color-success: var(--success);
  --el-color-warning: var(--warning);
  --el-color-danger: var(--danger);
  --el-border-radius-base: 6px;
  --el-border-radius-small: 4px;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; letter-spacing: 0; }
button, input, textarea { font: inherit; }
button { letter-spacing: 0; }

.app-shell { min-height: 100vh; }
.session-restore-view { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: #516079; background: #f7f9fc; }
.session-restore-mark { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 6px; font-size: 15px; font-weight: 800; }
.session-restore-spinner { width: 22px; height: 22px; border: 2px solid #d7dfeb; border-top-color: var(--accent); border-radius: 50%; animation: session-restore-spin .8s linear infinite; }
.session-restore-view p { margin: 0; font-size: 13px; }
@keyframes session-restore-spin { to { transform: rotate(360deg); } }
.console-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); background: var(--canvas); }
.console-shell.is-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: var(--sidebar); border-right: 1px solid #111823; }
.sidebar-brand { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid #303a49; white-space: nowrap; }
.sidebar-brand strong { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 5px; font-size: 12px; }
.sidebar-brand span { font-size: 16px; font-weight: 700; }
.sidebar-nav { display: grid; gap: 4px; padding: 14px 10px; }
.sidebar-nav button { min-height: 40px; display: flex; align-items: center; gap: 11px; width: 100%; padding: 0 10px; color: var(--sidebar-muted); background: transparent; border: 0; border-radius: 5px; cursor: pointer; text-align: left; white-space: nowrap; }
.sidebar-nav button:hover { color: #fff; background: var(--sidebar-hover); }
.sidebar-nav button.active { color: #fff; background: #30466d; }
.nav-mark { width: 20px; display: inline-grid; place-items: center; color: currentColor; font-size: 11px; font-weight: 700; }
.sidebar-collapse { margin: auto 10px 12px; min-height: 34px; color: var(--sidebar-muted); background: transparent; border: 1px solid #3b4657; border-radius: 4px; cursor: pointer; }
.sidebar-collapse:hover { color: #fff; border-color: #6e7b90; }
.is-collapsed .sidebar-brand { padding: 0 18px; }
.is-collapsed .sidebar-nav { padding: 14px 8px; }
.is-collapsed .sidebar-nav button { justify-content: center; padding: 0; }

.console-main { min-width: 0; }
.console-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.header-title strong { font-size: 16px; font-weight: 700; white-space: nowrap; }
.header-title span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.account-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scope-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 16px 30px; background: #edf1f5; border-bottom: 1px solid var(--line); }
.scope-fields, .scope-actions { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.scope-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.scope-fields .el-select { width: 230px; }
.scope-actions { justify-content: end; }

.view-stack { width: 100%; min-width: 0; max-width: 1500px; display: grid; gap: 18px; margin: 0 auto; padding: 28px 30px 38px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; min-height: 64px; }
.page-heading h1 { margin: 0; color: #182331; font-size: 26px; line-height: 1.2; font-weight: 700; }
.page-heading > div:first-child { min-width: 0; }
.page-heading > div > span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0 0 5px; color: var(--accent-strong); font-size: 12px; font-weight: 700; }
.heading-actions, .panel-actions { display: flex; align-items: center; justify-content: end; gap: 8px; flex-wrap: wrap; }
.heading-actions .el-select, .panel-actions .el-select { width: 148px; }
.compact-heading { min-height: 0; }
.compact-heading h2 { margin: 0; color: #253244; font-size: 18px; line-height: 1.3; }
.back-link { display: block; margin: 0 0 12px; padding: 0; color: var(--accent-strong); background: transparent; border: 0; cursor: pointer; font-size: 13px; }
.back-link:hover { text-decoration: underline; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-height: 104px; display: grid; align-content: space-between; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { color: #1d2a3b; font-size: 28px; line-height: 1; }

.surface-panel { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.table-panel { min-width: 0; }
.panel-heading { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.panel-heading > div:first-child { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.panel-heading h2 { margin: 0; color: #253244; font-size: 15px; font-weight: 700; }
.panel-heading span { color: var(--muted); font-size: 12px; }
.activity-panel .panel-heading { border-bottom: 0; }
.batch-detail-grid { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.4fr); gap: 18px; }

.data-table { width: 100%; --el-table-border-color: var(--line); --el-table-header-bg-color: #f8fafc; --el-table-row-hover-bg-color: #f2f6fc; }
.data-table .el-table__inner-wrapper::before { display: none; }
.data-table .el-table th.el-table__cell { color: #536174; font-size: 12px; font-weight: 700; }
.data-table .el-table td.el-table__cell { color: #293646; }
.data-table .el-table__row { cursor: pointer; }
.data-table .cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-filter-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.asset-filter-bar .el-select { flex: 0 0 156px; }
.asset-lineage-table .asset-episode-cell { min-width: 0; display: flex; align-items: center; gap: 8px; padding-inline-start: calc(var(--asset-depth, 0) * 18px); white-space: normal; }
.asset-tree-toggle, .asset-tree-spacer { width: 24px; height: 24px; flex: 0 0 24px; }
.asset-tree-toggle { display: grid; place-items: center; padding: 0; color: #52627a; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.asset-tree-toggle:hover, .asset-tree-toggle:focus-visible { color: var(--accent-strong); background: #e9eff9; outline: none; }
.asset-tree-toggle:disabled { cursor: default; opacity: .7; }
.asset-tree-caret { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; transition: transform .14s ease; }
.asset-tree-caret.expanded { transform: rotate(90deg); }
.asset-id-block { min-width: 0; display: grid; gap: 4px; }
.asset-id-line { min-width: 0; display: flex; align-items: center; gap: 7px; }
.asset-id-line strong { overflow: hidden; color: #263446; text-overflow: ellipsis; white-space: nowrap; }
.asset-id-block small { overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.asset-lineage-table .asset-row-root > td.el-table__cell { background: #f8fafc; }
.asset-lineage-table .asset-row-root .asset-id-line strong { font-weight: 700; }
.asset-lineage-table .asset-row-derived .asset-id-line strong { font-weight: 500; }
.asset-lineage-table .asset-row-anomaly > td.el-table__cell { background: #fff7f7; }
.asset-lineage-table .asset-row-anomaly > td.el-table__cell:first-child { box-shadow: inset 3px 0 0 #cf4a4c; }
.table-panel > .el-empty { min-height: 180px; }
.table-panel > .el-tabs { padding: 0 16px; }
.table-panel > .el-tabs .el-tabs__header { margin: 0; }

.compact-list { display: grid; }
.compact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; color: var(--ink); background: transparent; border: 0; border-top: 1px solid #edf0f4; cursor: pointer; text-align: left; }
.compact-row:hover { background: #f6f8fb; }
.compact-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-row > span:last-child { color: var(--muted); font-size: 12px; text-align: right; }

.detail-list { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px 16px; margin: 0; padding: 18px 16px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { min-width: 0; margin: 0; color: #263446; overflow-wrap: anywhere; }
.episode-detail h3 { margin: 26px 0 10px; color: #253244; font-size: 14px; }
.episode-detail .el-table { border: 1px solid var(--line); }
.episode-preview { padding: 0 16px; }
.episode-preview h3 { margin-top: 0; }
.episode-preview-video { display: block; width: 100%; max-height: 250px; background: #111827; border-radius: 5px; }

.import-progress-band { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 360px) auto; align-items: center; gap: 18px; padding: 15px 16px; background: #f5f9ff; border: 1px solid #bfd0ee; border-radius: 6px; }
.import-progress-copy { display: grid; gap: 3px; min-width: 0; }
.import-progress-copy span, .import-progress-copy small, .form-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.import-progress-copy strong, .selected-file { overflow: hidden; color: #263446; text-overflow: ellipsis; white-space: nowrap; }
.selected-file { margin-top: 8px; font-size: 13px; }
.form-hint { margin: 8px 0 0; }
.inline-select-action { display: flex; width: 100%; gap: 8px; align-items: center; }
.inline-select-action .el-select { min-width: 0; flex: 1; }
.batch-name-cell { display: grid; gap: 3px; min-width: 0; }
.batch-name-cell strong { overflow: hidden; color: #263446; text-overflow: ellipsis; white-space: nowrap; }
.batch-name-cell span { color: var(--muted); font-size: 12px; }
.batch-progress-cell { display: grid; grid-template-columns: 46px minmax(80px, 1fr); align-items: center; gap: 8px; min-width: 140px; }
.batch-progress-cell > span { color: #43536b; font-size: 12px; font-variant-numeric: tabular-nums; }
.import-history-status { display: grid; grid-template-columns: max-content minmax(72px, 1fr); align-items: center; gap: 4px 8px; min-width: 160px; }
.import-history-status small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.import-history-status .el-progress { grid-column: 1 / -1; }
.resource-directory-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.quality-diagnostic { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 16px 16px; padding: 12px; color: #713f19; background: #fff8ed; border: 1px solid #efc993; border-radius: 5px; }
.quality-diagnostic > div { display: grid; gap: 4px; min-width: 0; }
.quality-diagnostic span { line-height: 1.5; }
.quality-diagnostic small { color: #8a6541; overflow-wrap: anywhere; }
.candidate-list { display: grid; gap: 8px; margin-top: 14px; }
.candidate-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; background: #f8fafc; border: 1px solid #e1e7ef; border-radius: 5px; }
.candidate-row > div { min-width: 0; display: grid; gap: 4px; }
.candidate-row strong { overflow: hidden; color: #263446; text-overflow: ellipsis; white-space: nowrap; }
.candidate-row span { color: var(--muted); font-size: 12px; }
.candidate-toolbar { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.candidate-toolbar .el-select { width: 142px; }
.candidate-toolbar .el-date-editor { width: min(100%, 270px); }
.scan-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.candidate-table { margin-top: 14px; }
.candidate-bulk-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 48px; padding: 0 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.queue-actions { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.muted { color: var(--muted); font-size: 12px; }
.dialog-table { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.dialog-table .panel-heading { min-height: 48px; }

.workbench-view { max-width: 1680px; }
.workbench-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .9fr); gap: 18px; align-items: start; }
.workbench-media, .workbench-editor { min-width: 0; }
.workbench-media-body { padding: 14px; }
.workbench-video-stage { display: grid; width: 100%; aspect-ratio: 4 / 3; max-height: min(72vh, 760px); overflow: hidden; place-items: center; background: #111823; border-radius: 4px 4px 0 0; }
.workbench-video-stage .el-empty { color: #aeb8c8; }
.workbench-video { display: block; width: 100%; height: 100%; background: #111823; object-fit: contain; }
.custom-media-controls { display: grid; grid-template-columns: 36px 36px minmax(90px, 150px) minmax(140px, 1fr) 82px 36px; align-items: center; gap: 8px; min-height: 48px; padding: 6px 8px; color: #e7edf7; background: #141b26; border-radius: 0 0 4px 4px; }
.custom-media-controls > button { width: 34px; height: 34px; padding: 0; color: #eef3fb; background: transparent; border: 1px solid #3c485c; border-radius: 4px; cursor: pointer; }
.custom-media-controls > button:hover, .custom-media-controls > button:focus-visible { color: #fff; background: #2a3850; border-color: #7d9bd0; outline: none; }
.custom-media-controls .el-slider { min-width: 80px; }
.custom-media-controls .el-select { width: 82px; }
.media-timecode { justify-self: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline-summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 12px; min-height: 38px; padding: 0 10px; color: var(--muted); background: #f3f6fb; border: 1px solid #e1e7ef; border-radius: 4px; font-size: 12px; }
.timeline-summary strong { color: #31425b; font-size: 12px; }
.timeline-summary span:last-child { justify-self: end; }
.cut-timeline-editor { display: grid; gap: 10px; padding: 16px 14px 14px; border-bottom: 1px solid #edf0f4; }
.cut-time-scale { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.cut-time-scale span:nth-child(2), .cut-time-scale strong { color: #315caa; font-weight: 600; }
.cut-time-scale span:last-child { justify-self: end; }
.cut-timeline-track { position: relative; height: 52px; overflow: visible; background: #e9eef6; border: 1px solid #cfd8e6; border-radius: 4px; cursor: pointer; touch-action: none; }
.cut-timeline-track.is-disabled { cursor: not-allowed; opacity: .62; }
.cut-timeline-track.is-readonly { cursor: default; }
.cut-window { position: absolute; top: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; min-width: 2px; padding: 0; overflow: hidden; color: #244d91; background: #dce8ff; border: 0; border-left: 1px solid #8eabe0; border-right: 1px solid #8eabe0; font-size: 11px; font-weight: 700; cursor: pointer; }
.cut-window.is-whole { color: #27643f; background: #dff3e7; border-color: #8fc3a1; }
.cut-window.is-too-long { color: #942f2f; background: #fee2e2; border-color: #db7474; }
.cut-window.is-excluded { color: #667181; background: repeating-linear-gradient(135deg, #edf0f4 0, #edf0f4 6px, #dfe4ea 6px, #dfe4ea 12px); border-color: #aab3bf; }
.cut-window.is-selected { z-index: 1; box-shadow: inset 0 0 0 2px #315caa; }
.cut-boundary { position: absolute; z-index: 3; top: 0; width: 26px; height: 52px; padding: 0; transform: translateX(-13px); background: transparent; border: 0; cursor: ew-resize; touch-action: none; }
.cut-boundary span { position: relative; display: block; width: 10px; height: 42px; margin: 5px auto; background: #356bd1; border: 2px solid #fff; border-radius: 5px; box-shadow: 0 0 0 1px rgba(31, 70, 140, .28); }
.cut-boundary span i, .cut-boundary span::before, .cut-boundary span::after { position: absolute; left: 2px; width: 2px; height: 2px; content: ''; background: rgba(255, 255, 255, .9); border-radius: 50%; }
.cut-boundary span::before { top: 13px; }
.cut-boundary span i { top: 18px; }
.cut-boundary span::after { top: 23px; }
.cut-boundary:hover span, .cut-boundary.is-selected span { width: 12px; background: #173d82; box-shadow: 0 0 0 3px rgba(53, 107, 209, .2); }
.cut-boundary.is-qr span { background: #16805c; }
.cut-boundary.is-qr.is-adjusted span { background: #9b641c; }
.cut-boundary:disabled { cursor: not-allowed; }
.cut-playhead { position: absolute; z-index: 2; top: -5px; bottom: -5px; width: 2px; transform: translateX(-1px); pointer-events: none; background: #d34b4b; }
.cut-playhead::before { position: absolute; top: -1px; left: -4px; width: 10px; height: 10px; content: ''; background: #d34b4b; border-radius: 50%; }
.cut-timeline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cut-workbench-editor > .cut-timeline-actions { padding: 12px 14px 0; }
.cut-shortcut-hint { margin: 8px 14px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.cut-local-adjustment { display: grid; gap: 9px; margin: 14px; padding: 12px; background: #f7f9fc; border: 1px solid #dce3ed; border-radius: 5px; }
.cut-local-timeline-track { position: relative; height: 64px; overflow: visible; background: #e8edf5; border: 1px solid #cbd5e4; border-radius: 4px; cursor: pointer; touch-action: none; }
.cut-local-focus { position: absolute; inset: 13px 0; background: #dce8ff; border-top: 1px solid #9bb4e3; border-bottom: 1px solid #9bb4e3; }
.cut-local-timeline-track .cut-boundary { top: 6px; width: 28px; transform: translateX(-14px); }
.cut-local-timeline-track .cut-boundary:not(.is-selected) { z-index: 4; cursor: pointer; opacity: .74; }
.cut-local-timeline-track .cut-boundary:not(.is-selected) span { width: 7px; height: 34px; margin-top: 9px; border-width: 1px; box-shadow: 0 0 0 1px rgba(31, 70, 140, .2); }
.cut-local-timeline-track .cut-boundary.is-selected { z-index: 6; }
.cut-local-boundary-time { position: absolute; top: -22px; left: 50%; width: max-content; padding: 2px 5px; transform: translateX(-50%); color: #173d82; background: #fff; border: 1px solid #cbd5e4; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.2; pointer-events: none; }
.cut-local-timeline-track .cut-playhead { top: 2px; bottom: 2px; }
.cut-timeline-warning { margin: 0; color: #a55b1b; font-size: 12px; line-height: 1.5; }
.cut-timeline-warning.is-error { color: #a43131; }
.cut-window-list { padding-top: 12px; padding-bottom: 12px; }
.cut-window-row { padding: 10px 12px; }
.cut-window-row.is-too-long { background: #fff7f7; border-color: #e4a2a2; }
.cut-window-row.is-excluded { background: #f6f7f9; border-color: #cfd6df; }
.cut-window-duration { flex: 0 0 auto !important; color: #334c74 !important; font-variant-numeric: tabular-nums; }
.cut-boundary-origin { width: max-content; padding: 2px 6px; color: #526783; background: #edf2f8; border-radius: 3px; font-size: 11px; }
.cut-segment-eligibility { display: grid; grid-template-columns: auto minmax(150px, 1fr); gap: 10px; align-items: center; }
.cut-global-timeline { grid-column: 1 / -1; min-width: 0; }
.cut-global-timeline .cut-timeline-editor { border-bottom: 0; }
.cut-review-track { padding: 4px 0 8px; }
.segment-list { display: grid; gap: 10px; max-height: min(58vh, 620px); padding: 14px; overflow: auto; }
.segment-editor-row { display: grid; gap: 10px; padding: 12px; background: #fbfcfe; border: 1px solid #e0e6ee; border-radius: 5px; }
.segment-editor-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.segment-editor-heading strong { color: #294676; }
.segment-editor-heading span { min-width: 0; flex: 1; color: var(--muted); font-size: 12px; }
.segment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segment-fields label, .workbench-note label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.annotation-description { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.annotation-timeline-editor { display: grid; gap: 9px; padding: 14px; border-bottom: 1px solid #edf0f4; }
.annotation-timeline-track { position: relative; height: 72px; overflow: hidden; background: repeating-linear-gradient(90deg, #edf1f7 0, #edf1f7 calc(10% - 1px), #d8e0eb calc(10% - 1px), #d8e0eb 10%); border: 1px solid #cbd5e3; border-radius: 4px; cursor: pointer; touch-action: none; }
.annotation-timeline-track.is-disabled { cursor: not-allowed; opacity: .62; }
.annotation-window { position: absolute; z-index: 2; top: 8px; height: 26px; min-width: 3px; color: #184681; background: #bcd3ff; border: 1px solid #608ad0; border-radius: 3px; cursor: pointer; }
.annotation-window > span { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; font-size: 11px; font-weight: 700; }
.annotation-window.is-selected { color: #fff; background: #356bd1; box-shadow: 0 0 0 2px rgba(53, 107, 209, .2); }
.annotation-window.is-incomplete { width: 8px !important; background: #f0aa45; border-color: #ad6b0e; }
.annotation-handle { position: absolute; z-index: 3; top: -3px; width: 10px; height: 32px; padding: 0; background: #fff; border: 2px solid #356bd1; border-radius: 3px; cursor: ew-resize; }
.annotation-handle.is-start { left: -5px; }
.annotation-handle.is-end { right: -5px; }
.ai-annotation-window { position: absolute; z-index: 1; bottom: 9px; height: 17px; min-width: 2px; background: rgba(22, 148, 143, .18); border: 1px dashed #16948f; border-radius: 2px; pointer-events: none; }
.shortcut-hint { margin: 0; color: var(--muted); font-size: 11px; }
.friendly-boundary { display: grid; grid-template-columns: minmax(90px, 1fr) auto; align-items: center; gap: 7px; min-height: 36px; padding-left: 10px; background: #f4f6f9; border: 1px solid #dce3ec; border-radius: 4px; }
.friendly-boundary strong { color: #34465f; font-size: 12px; font-variant-numeric: tabular-nums; }
.segment-editor-row.is-selected { background: #f4f7ff; border-color: #8eabe0; }
.workbench-note { padding: 0 14px 14px; }
.annotation-context { display: grid; grid-template-columns: 1fr minmax(180px, .8fr) minmax(210px, 1fr); gap: 14px; padding: 0 14px 14px; border-top: 1px solid #edf0f4; }
.annotation-context label { display: grid; gap: 7px; padding-top: 14px; color: var(--muted); font-size: 12px; }
.annotation-context .el-select { width: 100%; }
.review-segment-list { max-height: min(42vh, 470px); }
.review-segment-row { gap: 7px; }
.review-description, .review-note-readonly { margin: 0; color: #33445d; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-summary { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 12px; margin: 0; padding: 12px; background: #f7f9fc; border: 1px solid #e0e6ee; border-radius: 5px; }
.review-summary dt { color: var(--muted); }
.review-summary dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.review-controls { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(210px, 1fr); gap: 14px; padding: 14px; border-top: 1px solid #edf0f4; }
.review-controls > label:first-child { grid-column: 1 / -1; }
.review-controls label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.review-controls .el-select { width: 100%; }
.review-actions { display: flex; justify-content: end; gap: 8px; padding: 0 14px 14px; }
.two-column-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-suggestion-area { border-top: 1px solid var(--line); }
.ai-suggestion-header { display: flex; align-items: end; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 14px; background: #f7f9fc; }
.ai-suggestion-header > div:first-child { display: grid; gap: 3px; min-width: 0; }
.ai-suggestion-header strong { color: #263c61; font-size: 13px; }
.ai-suggestion-header span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ai-suggestion-list { display: grid; }
.ai-suggestion-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-top: 1px solid #edf0f4; }
.ai-suggestion-row > div:first-child, .ai-suggestion-actions { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ai-suggestion-row > div:first-child > span { color: var(--muted); font-size: 12px; }

.empty-band { max-width: 1100px; margin: 64px auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.empty-band h1 { margin: 0; color: #253244; font-size: 22px; }
.empty-band p { margin: 9px 0 20px; color: var(--muted); }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(340px, 440px); align-items: center; gap: 76px; max-width: 1020px; margin: 0 auto; padding: 40px; }
.login-copy { display: grid; gap: 10px; align-content: center; }
.login-copy strong { color: #274d9a; font-size: 48px; line-height: 1; }
.login-copy span { color: var(--muted); font-size: 16px; }
.login-form { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.login-form h1 { margin: 0 0 24px; color: #253244; font-size: 21px; }
.login-fields { display: grid; gap: 18px; margin-bottom: 22px; }
.login-field { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.login-submit { width: 100%; }
.form-actions { display: flex; justify-content: end; gap: 8px; }

@media (max-width: 980px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-detail-grid { grid-template-columns: 1fr; }
  .workbench-grid { grid-template-columns: minmax(0, 1fr); }
  .resource-directory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .console-shell, .console-shell.is-collapsed { display: block; }
  .sidebar { position: static; width: 100%; height: auto; min-height: 0; flex-direction: row; align-items: stretch; border-right: 0; }
  .sidebar-brand { width: 64px; height: auto; justify-content: center; padding: 0; border-bottom: 0; border-right: 1px solid #303a49; }
  .sidebar-brand span { display: none; }
  .sidebar-nav { flex: 1; display: flex; gap: 2px; padding: 7px; overflow-x: auto; }
  .sidebar-nav button, .is-collapsed .sidebar-nav button { flex: 0 0 38px; width: 38px; min-height: 38px; justify-content: center; padding: 0; }
  .sidebar-nav button span:not(.nav-mark) { display: none; }
  .sidebar-collapse { display: none; }
  .console-header { min-height: 58px; align-items: start; padding: 11px 16px; }
  .header-title { display: grid; gap: 2px; align-items: start; }
  .header-title span { max-width: 150px; }
  .header-actions { gap: 2px; }
  .account-email { display: none; }
  .scope-toolbar { display: grid; align-items: stretch; padding: 14px 16px; }
  .scope-fields { display: grid; grid-template-columns: 1fr; }
  .scope-fields .el-select { width: 100%; }
  .scope-actions { justify-content: start; }
  .view-stack { gap: 14px; padding: 20px 16px 30px; }
  .page-heading { align-items: stretch; flex-direction: column; }
  .page-heading h1 { max-width: 100%; overflow-wrap: anywhere; font-size: 22px; }
  .heading-actions { width: 100%; justify-content: start; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 86px; padding: 13px; }
  .metric-card strong { font-size: 24px; }
  .import-progress-band { grid-template-columns: 1fr; gap: 10px; }
  .table-panel { overflow-x: auto; }
  .data-table { min-width: 760px; }
  .table-panel > .el-tabs { min-width: 640px; }
  .asset-filter-bar { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .asset-filter-bar .el-select { width: 100%; }
  .asset-lineage-table { min-width: 1120px; }
  .compact-row { grid-template-columns: minmax(0, 1fr) auto; }
  .compact-row > span:last-child { display: none; }
  .detail-list { grid-template-columns: 104px minmax(0, 1fr); gap: 11px 12px; padding: 16px; }
  .candidate-row { align-items: start; }
  .candidate-toolbar { align-items: stretch; }
  .candidate-toolbar .el-select, .candidate-toolbar .el-date-editor { width: 100%; }
  .inline-select-action { align-items: stretch; flex-direction: column; }
  .custom-media-controls { grid-template-columns: 36px 36px minmax(80px, 1fr) 72px 36px; }
  .custom-media-controls .media-timecode { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .timeline-summary { grid-template-columns: 1fr auto; align-items: start; padding: 9px 10px; }
  .timeline-summary strong { grid-column: 1 / -1; }
  .cut-time-scale { grid-template-columns: 1fr 1fr; }
  .cut-time-scale span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .cut-timeline-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cut-timeline-actions .el-button { width: 100%; margin: 0; }
  .cut-segment-eligibility { grid-template-columns: 1fr; }
  .segment-list { max-height: none; overflow: visible; }
  .segment-fields { grid-template-columns: 1fr; }
  .annotation-context { grid-template-columns: 1fr; }
  .review-controls { grid-template-columns: 1fr; }
  .two-column-form { grid-template-columns: 1fr; }
  .ai-suggestion-header { align-items: stretch; flex-direction: column; }
  .ai-suggestion-header .panel-actions { justify-content: stretch; }
  .ai-suggestion-header .panel-actions .el-select, .ai-suggestion-header .panel-actions .el-button { flex: 1; min-width: 0; }
  .login-view { display: block; padding: 32px 20px; }
  .login-copy { margin: 0 0 28px; }
  .login-copy strong { font-size: 38px; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
}
