:root {
  color-scheme: dark;
  --color-canvas: #080b0a;
  --color-panel: #0e1712;
  --color-surface: #142019;
  --color-hover: #1b2c21;
  --color-text: #f2f6f3;
  --color-secondary: #b5c2ba;
  --color-muted: #93a49a;
  --color-border: #294337;
  --color-border-strong: #52685c;
  --color-accent: #78c98f;
  --color-accent-hover: #91d5a4;
  --color-on-accent: #07120b;
  --color-focus: #78c98f;
  --color-danger: #ff8174;
  --color-on-danger: #180705;
  --color-disabled: #304b3a;
  --color-on-disabled: #c4d3c9;
  --color-inverse-surface: #d8e9dd;
  --color-on-inverse-surface: #0e1712;
  --color-scrim: #0009;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--color-canvas); color: var(--color-text); font: 14px/24px "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
input[type=number] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; line-height: 44px; font-weight: 500; letter-spacing: 0; }
h2 { font-size: 18px; line-height: 28px; font-weight: 500; }
h3 { font-size: 18px; line-height: 28px; font-weight: 500; }
small, .small { font-size: 14px; line-height: 24px; }
a { color: var(--color-text); text-decoration: none; }
a:hover { color: var(--color-accent); }
.muted { color: var(--color-secondary); }
.good { color: var(--color-accent); }
.danger, .error, .bad { color: var(--color-danger); }
.error { overflow-wrap: anywhere; }
.error:empty { display: none; }
.primary { min-height: 56px; font-size: 18px; line-height: 28px; }
.figma-asset { display: block; flex: none; max-width: none; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.sidebar { background: #010302; border-right: 1px solid var(--color-border); padding: 32px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; min-height: 540px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 28px; font-weight: 500; }
.sidebar .brand { align-items: flex-start; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.nav { display: grid; gap: 8px; }
.nav button { height: 56px; justify-content: flex-start; padding: 0 12px; border: 0; font-size: 18px; line-height: 28px; font-weight: 400; background: transparent; color: var(--color-secondary); }
.nav button.active { color: var(--color-accent); }
.nav > .indicator { width: 100%; height: 56px; background: var(--color-surface); }
.nav.indicator-tabs > button::before, .editor-nav.indicator-tabs > button::before { content: none; }
.sidebar-foot { margin-top: auto; }
.sidebar-foot button { padding: 0; width: 100%; max-width: 100%; justify-content: flex-start; gap: 12px; color: var(--color-secondary); }
.sidebar-foot button.active { color: var(--color-accent); }
main { padding: 32px; min-width: 0; }
.content-size { min-width: 0; max-width: 100%; }
.page-head { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h1 { min-width: 0; overflow-wrap: anywhere; }
.page-head > button { min-width: 144px; }
.page-head > .primary { min-width: 184px; }
.head-actions { display: flex; gap: 16px; align-items: center; flex: none; }
.head-actions .primary { min-width: 160px; }
.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin-bottom: 24px; }
.filter-actions { display: flex; gap: 16px; }
.filter-actions .select-trigger { width: 144px; background-color: var(--color-canvas); }
.search-box { display: flex; width: 360px; gap: 12px; align-items: center; padding: 0 12px; height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-panel); }
.search-box input { min-width: 0; height: 42px; min-height: 42px; border: 0; padding: 0; background: transparent; outline-offset: 4px; }
.search-box input:focus-visible { outline: none; }
.search-box:focus-within { outline: 2px solid var(--color-accent); outline-offset: 3px; }
[data-page=workflows] .search-box { width: 280px; }
.section-tab { background: var(--color-surface); color: var(--color-accent); }
.section-tab { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; min-width: 144px; border-radius: var(--radius); color: var(--color-text); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-panel); }
.workflow-card { min-height: 416px; position: relative; }
.card-head { height: 52px; display: flex; align-items: center; gap: 12px; flex: none; }
.card-title { min-width: 0; flex: 1; align-items: flex-start; flex-direction: column; padding: 0; gap: 0; font-weight: 400; text-align: left; }
.card-title h3 { max-width: 100%; min-width: 0; }
.card-body { min-height: 128px; border: 1px dashed #50705e; background: var(--color-canvas); display: flex; align-items: center; justify-content: center; gap: 12px; flex-direction: column; font-weight: 400; }
.card-body.short { min-height: 88px; gap: 8px; }
.card-body > .fade-text { max-width: 100%; }
.card-fields { display: grid; gap: 8px; margin-bottom: auto; }
.card > .primary { width: 100%; margin-top: 8px; }
.card .ratings { gap: 10px; }
.card .ratings .field { gap: 4px; }
.card .ratings input { min-height: 36px; height: 36px; padding: 5px 12px; }
.card.add { background: transparent; border-style: dashed; min-height: 416px; align-items: center; justify-content: center; color: var(--color-secondary); gap: 20px; }
.card.add:hover { border-color: var(--color-accent); color: var(--color-accent); }
.panel { background: var(--color-panel); border: 1px solid var(--color-border); border-radius: 12px; padding: 32px; }
.stack { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 400; }
.row { display: flex; gap: 16px; align-items: center; }
.row > * { flex: 1; min-width: 0; }
.ratings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.workflow-input-fields .input-text { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; }
.audio-control { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.audio-choice { display: flex; align-items: center; gap: 12px; }
.badge { display: inline-flex; padding: 2px 12px; min-height: 28px; font-size: 14px; line-height: 24px; border-radius: 6px; background: var(--color-surface); color: var(--color-secondary); white-space: nowrap; }
.badge.good { color: var(--color-accent); }
.badge.bad { color: var(--color-danger); }
.empty { padding: 60px 24px; color: var(--color-secondary); text-align: center; display: grid; gap: 16px; justify-items: center; grid-column: 1/-1; }
.notice { padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 8px; color: var(--color-secondary); margin-bottom: 24px; }
.list-count { display: flex; margin-top: 24px; color: var(--color-secondary); }
.table-panel { border: 1px solid var(--color-border); border-radius: 12px; padding: 24px; min-height: 672px; background: var(--color-panel); }
.table-head { color: var(--color-secondary); min-height: 48px; border-bottom: 1px solid var(--color-border); }
.table-row { min-height: 48px; border-bottom: 1px solid var(--color-border); }
.mobile-row-label { display: none; }
.manager-row { display: grid; grid-template-columns: minmax(160px, 2.3fr) minmax(60px, .8fr) minmax(88px, 1fr) minmax(120px, 1.4fr) minmax(250px, 2.5fr); align-items: center; gap: 16px; }
.manager-name { justify-content: flex-start; padding: 0; font-size: 18px; font-weight: 400; min-width: 0; gap: 16px; }
.manager-name .fade-text { min-width: 0; }
.table-actions { display: flex; align-items: center; gap: 12px; }
.table-actions button { min-height: 40px; min-width: 88px; padding: 0 16px; }
.task-row { display: grid; grid-template-columns: minmax(140px, 1.7fr) minmax(100px, 1fr) minmax(160px, 1.4fr) minmax(100px, .8fr) minmax(250px, 1.8fr); gap: 20px; align-items: center; }
.job { min-height: 73px; padding: 12px 0; }
.job-title { min-width: 0; display: grid; gap: 2px; }
.job-title > .fade-text { color: var(--color-muted); }
.job-name { justify-content: flex-start; padding: 0; font-size: 18px; font-weight: 400; min-height: 28px; text-align: left; overflow-wrap: anywhere; }
.job-status { display: grid; gap: 4px; align-content: center; }
.job-status .badge { padding: 0; background: transparent; min-height: 24px; }
.job-status .error { overflow-wrap: anywhere; }
.job-actions { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.job-actions > button:first-child { min-width: 126px; }
.job-actions button, .job-actions a { min-height: 36px; padding: 0 10px; }
.asset-card { min-height: 360px; padding: 20px; gap: 12px; }
.asset-preview { background: var(--color-canvas); min-height: 176px; border: 0; flex-direction: column; gap: 16px; }
.asset-card h3 { font-weight: 400; min-width: 0; }
.asset-meta { display: flex; justify-content: space-between; gap: 8px; }
.asset-actions { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; }
.asset-actions > button { min-width: 136px; }
.asset-count { justify-content: space-between; }
.workflow-choice { display: flex; gap: 12px; }
.workflow-choice > button:first-child { flex: 1; min-width: 0; }
.drop { border: 1px dashed #50705e; min-height: 180px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; cursor: pointer; background: var(--color-canvas); }
.drop.drag { border-color: var(--color-accent); background: #15271b; }
.drop input { position: absolute; opacity: 0; width: 1px; min-height: 1px; height: 1px; }
.drop:focus-within { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.drop > .fade-text { max-width: 100%; }
.entry-layout { display: grid; grid-template-columns: minmax(0, 3.58fr) minmax(220px, 1fr); gap: 24px; align-items: start; }
.entry-panel { padding: 32px; }
.entry-panel .stack { gap: 24px; }
.entry-drop { min-height: 180px; }
.title-with-back { display: flex; gap: 8px; align-items: center; min-width: 0; }
.title-with-back h1 { overflow-wrap: anywhere; }
.title-with-back .icon-button { margin-left: -12px; }
.upload-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: -8px; }
.upload-caption > span { overflow-wrap: anywhere; }
.upload-caption .text-button { flex: none; }
.advanced-settings { border-top: 1px solid var(--color-border); padding-top: 16px; }
.disclosure-trigger { padding: 0; color: var(--color-secondary); }
.disclosure-content { padding-top: 20px; }
.entry-submit-row { display: flex; padding-top: 20px; border-top: 1px solid var(--color-border); gap: 16px; }
.entry-submit-row .primary { flex: 1; }
.detail-info { padding: 24px; display: grid; gap: 20px; min-width: 0; }
.detail-info h3 { border-bottom: 1px solid var(--color-border); padding-bottom: 16px; }
dl { margin: 0; display: grid; gap: 20px; }
dl > div { display: flex; justify-content: space-between; gap: 20px; }
dt { color: var(--color-secondary); flex: none; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.job-detail-layout { display: grid; grid-template-columns: minmax(0, 1.885fr) minmax(260px, 1fr); align-items: start; gap: 24px; }
.processing-panel { min-height: 600px; display: flex; flex-direction: column; gap: 24px; }
.progress-heading { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.progress-heading > span { font-size: 32px; line-height: 44px; }
.process-step { min-height: 76px; display: flex; align-items: center; gap: 16px; font-size: 18px; }
.process-step > span:last-child { margin-left: auto; font-size: 14px; }
.process-step.current > span:last-child { color: var(--color-accent); }
.detail-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--color-border); margin-top: auto; }
.detail-actions > div { display: flex; gap: 12px; }
.input-filename { margin-top: -8px; overflow-wrap: anywhere; }
.result-player { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-canvas); overflow: hidden; min-width: 0; }
.result-player video { display: block; width: 100%; height: min(720px, 73vh); min-height: 360px; background: var(--color-canvas); object-fit: contain; }
.result-player .error { padding: 16px 24px; }
.result-info .button-link { border-top: 1px solid var(--color-border); width: 100%; }
.result-info > button { width: 100%; }
.settings-section { display: grid; gap: 24px; }
.settings-section .stack { gap: 24px; }
.settings-account { display: flex; justify-content: space-between; gap: 16px; overflow-wrap: anywhere; }
.settings-footer { border-top: 1px solid var(--color-border); padding-top: 16px; }
.admin-service { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.admin-group legend { padding: 0; margin-bottom: 20px; font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.admin-wide { grid-column: 1 / -1; }
.form-footer { border-top: 1px solid var(--color-border); padding-top: 24px; }
.form-footer button { width: 100%; }
.auth-page { min-height: 100vh; padding: 48px; }
.auth-brand { height: 48px; }
.auth-layout { margin-top: 32px; min-height: calc(100dvh - 176px); display: grid; grid-template-columns: minmax(0, 650px) 520px; gap: 64px; align-items: center; max-width: 1344px; }
.auth-story { align-self: center; min-height: 540px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.auth-story > p { font-size: 18px; line-height: 28px; }
.auth-steps { display: flex; align-items: center; gap: 24px; min-height: 180px; }
.auth-steps > div { width: 150px; height: 148px; border: 1px solid var(--color-border); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; background: var(--color-panel); font-size: 18px; }
.auth-panel { width: 520px; max-width: 100%; padding: 32px; min-height: 500px; }
.auth-panel h1 { margin-bottom: 24px; }
.auth-panel .stack { gap: 20px; }
.auth-panel .error:empty { display: none; }
.auth-switch { display: flex; align-items: center; gap: 24px; }
.auth-switch button { min-width: 88px; }
.auth-divider { display: flex; align-items: center; gap: 16px; color: var(--color-muted); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.google-signin { display: grid; gap: 12px; min-width: 0; }
.google-signin > button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.google-signin svg { width: 18px; height: 18px; flex: none; }
.google-button-host { display: flex; justify-content: center; min-height: 44px; }
.welcome { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.workbench-modal-content { display: grid; gap: 24px; }
.preview { width: 100%; max-height: 60vh; background: #000; border-radius: 8px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 10px 20px; min-height: 44px; }
.button-link.primary { min-height: 56px; }
.editor-shell { min-height: 100vh; }
.editor-global { min-height: 72px; display: flex; align-items: center; gap: 24px; padding: 0 24px; background: var(--color-panel); border-bottom: 1px solid var(--color-border); }
.editor-global > .muted { margin-left: auto; }
.editor-nav { display: flex; gap: 8px; }
.editor-nav button { border: 0; background: transparent; }
.editor-nav > .indicator { height: 44px; background: var(--color-surface); }
.editor-nav button.active { color: var(--color-accent); }
.editor-global > .text-button { color: var(--color-secondary); }
.editor-shell main { padding: 0; }
.editor-toolbar { min-height: 80px; display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--color-panel); border-bottom: 1px solid var(--color-border); }
.editor-toolbar > .icon-button { width: 20px; min-width: 20px; padding: 0; }
.editor-title-group { display: grid; width: 300px; gap: 0; }
.editor-title { font-size: 18px; line-height: 28px; border: 0; min-height: 28px; padding: 0; background: transparent; border-radius: 0; }
.editor-title-group > span { color: var(--color-muted); }
.editor-toolbar .head-actions { margin-left: auto; }
.editor-toolbar .head-actions > button:not(.primary) { min-width: 100px; }
.editor-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 320px; min-height: calc(100vh - 153px); }
.node-library { padding: 24px 16px; background: var(--color-panel); border-right: 1px solid var(--color-border); }
.library-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.node-library .search-box { width: 100%; background: var(--color-canvas); }
.node-palette { display: grid; gap: 24px; margin-top: 16px; }
.node-category { display: grid; gap: 8px; }
.node-category > p { margin-bottom: 0; }
.node-palette button { min-height: 56px; width: 100%; padding: 0 12px; justify-content: flex-start; gap: 12px; }
.grip { color: var(--color-muted); font-size: 18px; }
.canvas-column { min-width: 0; }
.editor-canvas-wrap { overflow: auto; height: 696px; background: radial-gradient(#294337 0.7px, transparent 0.7px) 4px 4px/24px 24px; position: relative; }
.canvas { width: 1200px; height: 696px; position: relative; isolation: isolate; transform-origin: top left; }
.canvas-summary { position: sticky; z-index: 3; left: 24px; top: 20px; width: max-content; display: flex; gap: 12px; height: 0; }
.canvas-tools { position: sticky; z-index: 3; left: 24px; bottom: 24px; width: max-content; height: 44px; display: flex; align-items: center; gap: 8px; background: var(--color-panel); border: 1px solid var(--color-border); border-radius: 8px; padding: 0 4px; }
.canvas-tools button { width: 32px; min-width: 32px; padding: 0; border: 0; background: transparent; min-height: 40px; }
.canvas-tools > span { min-width: 42px; text-align: center; }
.edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.edges path { fill: none; stroke: #93a49a; stroke-width: 1.6; pointer-events: stroke; cursor: pointer; }
.edges path.selected, .edges path:focus-visible { stroke: var(--color-accent); stroke-width: 3; outline: none; }
.node { position: absolute; width: 212px; min-height: 132px; background: var(--color-panel); border: 1px solid var(--color-border); border-radius: 8px; touch-action: none; user-select: none; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.node.selected { border: 2px solid var(--color-accent); }
.node-title { padding: 12px 16px 0; cursor: grab; }
.node-title h3 { font-size: 14px; line-height: 24px; }
.node-kind { padding: 0 16px 12px; color: var(--color-muted); font-size: 14px; }
.node-kind { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.workflow-input-library { display: grid; gap: 8px; margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.workflow-input-labels { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--color-secondary); }
.input-definition { padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.input-definition-head, .text-content-row { display: flex; align-items: center; gap: 8px; }
.input-definition-head { justify-content: space-between; }
.text-content-row > :first-child { flex: 1; min-width: 0; }
.text-content-row > .select-trigger { width: auto; }
.input-range, .input-definition-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.analysis-settings { min-width: 0; gap: 16px; }
.analysis-settings textarea { width: 100%; min-height: 220px; resize: vertical; font: inherit; line-height: 1.7; padding: 12px; color: var(--color-text); background: var(--color-canvas); border: 1px solid var(--color-border); border-radius: 8px; }
.analysis-settings textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.analysis-scope { margin: 0; overflow-wrap: anywhere; }
.analysis-run-notice { display: grid; gap: 12px; }
.analysis-result { padding: 20px 24px; margin-bottom: 24px; display: grid; gap: 8px; overflow-wrap: anywhere; }
.port { position: absolute; top: 61px; width: 10px; height: 10px; min-height: 10px; border-radius: 50%; padding: 0; background: var(--color-panel); border: 1.5px solid var(--color-secondary); }
.port::before { content: ''; position: absolute; inset: -8px; }
.port.input { left: -5px; }
.port.output { right: -5px; }
.port.pending { background: var(--color-accent); border-color: var(--color-accent); }
.inspector { padding: 24px; background: var(--color-panel); border-left: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
.inspector-scroll { max-height: calc(100vh - 201px); }
.inspector-sections { display: flex; flex-direction: column; gap: 24px; }
.inspector h3 { display: flex; align-items: center; gap: 12px; }
#inspector-content { display: grid; gap: 24px; }
.read-value { border: 1px solid var(--color-border); border-radius: 8px; min-height: 44px; padding: 9px 14px; overflow-wrap: anywhere; }
.info-line { display: flex; justify-content: space-between; }
.editor-help { color: var(--color-secondary); }
.editor-help p + p { margin-top: 16px; }
.run-log { min-height: 250px; padding: 16px 24px; background: var(--color-panel); display: grid; gap: 12px; align-content: start; }
.run-log-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--color-border); padding-bottom: 12px; }
.run-log-head h3 { font-size: 14px; line-height: 24px; }
.run-log-row { display: grid; grid-template-columns: 1fr 1.5fr .8fr .8fr; gap: 16px; padding: 0; width: 100%; text-align: left; color: var(--color-secondary); }
.run-log-rows { display: grid; gap: 12px; }
.run-record + .run-record { border-top: 1px solid var(--color-border); padding-top: 16px; }
#editor-error:not(:empty) { padding: 16px 24px; background: var(--color-panel); }
@media (max-width: 1250px) {
  .task-row { grid-template-columns: minmax(140px, 1.4fr) minmax(90px, .8fr) minmax(140px, 1fr) minmax(90px, .7fr) minmax(150px, 1.4fr); gap: 12px; }
  .manager-row { grid-template-columns: minmax(130px, 1.8fr) 50px 64px minmax(90px, 1fr) 210px; gap: 12px; }
  .table-actions { gap: 4px; }
  .table-actions button { min-width: 64px; padding: 0 10px; }
  .editor-layout { grid-template-columns: 200px minmax(0, 1fr) 280px; }
  .editor-title-group { width: 200px; }
  .editor-toolbar { gap: 12px; }
  .editor-toolbar .head-actions { gap: 8px; }
  .editor-toolbar .head-actions > button:not(.primary) { min-width: 76px; padding: 0 12px; }
  .editor-toolbar .head-actions > .primary { min-width: 130px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; }
  .auth-panel { width: 480px; }
  .auth-steps { gap: 16px; }
  .auth-steps > div { width: 120px; }
}
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-layout { grid-template-columns: minmax(0, 1fr) 220px; }
  .job-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .job-detail-layout > .detail-info { max-width: none; }
  .table-panel { overflow-x: auto; }
  .task-row { min-width: 830px; }
  .manager-row { min-width: 740px; }
  .auth-page { padding: 32px; }
  .auth-layout { min-height: calc(100dvh - 144px); grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; }
  .auth-panel { width: 440px; padding: 32px; }
  .auth-story { min-height: 440px; }
  .auth-steps { gap: 12px; flex-wrap: wrap; }
  .auth-steps > div { width: 100px; height: 128px; }
  .editor-global > .muted { display: none; }
  .editor-global > .text-button { margin-left: auto; }
  .editor-toolbar { flex-wrap: wrap; }
  .editor-toolbar .head-actions { width: 100%; justify-content: flex-end; }
  .editor-layout { grid-template-columns: 180px minmax(0, 1fr); }
  .inspector { grid-column: 1/-1; border-top: 1px solid var(--color-border); border-left: 0; }
  #inspector-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 156px minmax(0, 1fr); }
  .sidebar { padding: 24px 16px; }
  main { padding: 24px; }
  .entry-layout { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .filterbar { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .filter-actions { margin-left: auto; }
  .page-head { flex-wrap: wrap; gap: 16px; }
  .page-head .head-actions { width: 100%; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; max-width: 520px; margin: 64px auto 0; }
  .auth-story { min-height: 0; gap: 20px; }
  .auth-steps { display: none; }
  .auth-panel { width: 100%; }
}
@media (max-width: 600px) {
  .layout { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; min-height: 0; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); border-right: 0; border-bottom: 1px solid var(--color-border); display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
  .sidebar .brand { margin: 0; }
  .sidebar .brand span { display: none; }
  .nav { display: flex; justify-content: center; gap: 0; }
  .nav > .indicator { height: 44px; }
  .nav button { font-size: 14px; padding: 0 10px; height: 44px; }
  .sidebar-foot { margin: 0; }
  .sidebar-foot button { justify-content: center; height: 44px; }
  .sidebar-foot button span { display: none; }
  main { padding: 24px 16px; }
  h1 { font-size: 32px; line-height: 44px; }
  .head-actions { gap: 8px; }
  .head-actions .primary { min-width: 140px; }
  .page-head > button, .page-head > .primary { min-width: 120px; }
  .entry-panel, .processing-panel { padding: 24px; }
  .ratings { gap: 10px; }
  .ratings input { padding: 9px; }
  .upload-caption { flex-wrap: wrap; }
  .upload-caption .text-button { margin-left: auto; }
  .table-panel { padding: 16px; min-height: 440px; }
  .filter-actions { width: 100%; }
  .filter-actions .select-trigger { flex: 1; width: auto; }
  .entry-submit-row { flex-wrap: wrap; }
  .entry-submit-row button { width: 100%; }
  .card .ratings input { min-height: 44px; height: 44px; font-size: 16px; }
  .asset-actions { gap: 8px; }
  .asset-actions > button { flex: 1; min-width: 0; min-height: 44px; }
  .process-step { gap: 12px; font-size: 18px; }
  .result-player video { min-height: 280px; height: 60vh; }
  .auth-page { padding: 24px; }
  .auth-layout { margin-top: 48px; }
  .auth-panel { min-height: 0; padding: 24px; }
  .disclosure-trigger { min-height: 44px; }
  .auth-story > p { font-size: 18px; }
  .editor-global { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .editor-global .brand { font-size: 18px; }
  .editor-global > .text-button { margin-left: auto; padding: 0 6px; }
  .editor-nav { order: 3; width: 100%; }
  .editor-nav button { flex: 1; padding: 0 8px; }
  .editor-toolbar { padding: 16px; }
  .editor-toolbar > .icon-button { width: 44px; min-width: 44px; min-height: 44px; }
  .editor-title-group { width: calc(100% - 60px); }
  .editor-toolbar .head-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-layout { display: block; }
  .node-library { padding: 16px; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .node-library .search-box { display: none; }
  .node-palette { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .node-palette button { font-size: 14px; padding: 0 8px; gap: 4px; }
  .node-palette .grip { display: none; }
  .editor-canvas-wrap { height: 540px; }
  #inspector-content { grid-template-columns: minmax(0, 1fr); }
  .run-log { padding: 16px; }
  .run-log-row { grid-template-columns: 1fr 1.2fr .8fr; gap: 8px; }
  .run-log-row span:last-child { display: none; }
  .analysis-settings textarea { font-size: 16px; }
  .canvas-tools button { width: 44px; min-width: 44px; min-height: 44px; }
  .port::before { inset: -17px; }
  .table-panel { overflow: visible; min-height: 0; }
  .table-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .manager-row, .task-row { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 0; }
  .manager-name, .manager-row > span:nth-child(4), .manager-row .table-actions,
  .task-row .job-title, .task-row > span:nth-child(4), .task-row .job-actions { grid-column: 1 / -1; }
  .manager-name { width: 100%; min-height: 44px; }
  .manager-row .table-actions { width: 100%; gap: 8px; }
  .manager-row .table-actions button { flex: 1; min-width: 0; min-height: 44px; padding: 0 8px; }
  .task-row .job-status { grid-column: 2; justify-items: end; text-align: right; }
  .task-row .job-actions { gap: 4px; }
  .task-row .job-actions > button, .task-row .job-actions > a { min-height: 44px; padding: 0 8px; }
  .task-row .job-actions > button:first-child { min-width: 0; }
  .mobile-row-label { display: inline; color: var(--color-muted); margin-right: 6px; }
}
/* Catalog controls stay compact while management actions remain accessible. */
.workflow-card .card-title { padding-right: 24px; }
.card .audio-control { min-height: 28px; }
.card-menu-trigger { position: absolute; right: 12px; top: 20px; }
@media (max-width: 600px) {
  .card .audio-control { min-height: 44px; }
}
@media (max-width: 380px) {
  .nav button { padding-right: 4px; padding-left: 4px; }
}
