:root {
  --ops-bg: var(--sv-color-canvas-raised);
  --ops-panel: var(--sv-color-surface);
  --ops-panel-strong: var(--sv-color-surface-elevated);
  --ops-line: rgba(235, 242, 231, .12);
  --ops-line-strong: rgba(206, 247, 47, .35);
  --ops-text: var(--sv-color-text);
  --ops-muted: var(--sv-color-text-muted);
  --ops-accent: var(--sv-color-brand);
}

html[data-app-rail], body.has-app-rail { height: 100%; overflow: hidden; }
body.has-app-rail { background: var(--ops-bg); }
.ops-shell { width: min(1680px, calc(100% - 36px)); height: 100dvh; margin: 0 auto; padding: 18px 0; box-sizing: border-box; }
.ops-shell > :not(.ops-task-desk) { display: none; }
.ops-task-desk {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 322px minmax(680px, 1fr) 390px;
  overflow: hidden;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  color: var(--ops-text);
  background: var(--ops-bg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
}

.ops-inbox {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 18px;
  border-right: 1px solid var(--ops-line);
  background: var(--sv-color-surface);
}
.ops-inbox > header { padding: 0 4px 21px; border-bottom: 1px solid var(--ops-line); }
.ops-inbox > header h1 { margin: 0 0 8px; color: var(--ops-text); font-size: 24px; line-height: 1.2; letter-spacing: -.035em; }
.ops-inbox > header p { margin: 0; color: var(--ops-muted); font-size: 13px; line-height: 1.55; }
.ops-queue-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--ops-line); }
.ops-queue-nav button {
  min-width: 0;
  height: auto;
  display: grid;
  gap: 5px;
  justify-items: start;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ops-muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.ops-queue-nav button:hover { color: var(--ops-text); background: rgba(255, 255, 255, .035); }
.ops-queue-nav button.is-active { color: var(--ops-text); border-color: var(--ops-line-strong); background: rgba(206, 247, 47, .07); }
.ops-queue-nav button.is-active::before { display: none; }
.ops-queue-nav button.is-active span { margin-left: 0; }
.ops-queue-nav b { min-width: 0; height: auto; border: 0; color: var(--ops-text); font-size: 17px; font-weight: 700; }
.ops-task-list { min-height: 180px; display: grid; align-content: start; gap: 9px; overflow-y: auto; padding: 16px 0; }
.ops-task-item {
  width: 100%;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  color: inherit;
  background: var(--sv-color-surface-strong);
  text-align: left;
  cursor: pointer;
}
.ops-task-item:hover { background: rgba(255, 255, 255, .035); }
.ops-task-item.is-active { border-color: var(--ops-line-strong); background: rgba(206, 247, 47, .055); }
.ops-task-thumb { width: 78px; height: 98px; overflow: hidden; border-radius: 9px; background: var(--sv-color-surface-hover); }
.ops-task-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ops-task-thumb > span { width: 100%; height: 100%; display: grid; place-items: center; color: var(--sv-color-text-faint); font: 700 9px/1.2 var(--sv-font-mono); text-align: center; }
.ops-task-item > div:last-child { min-width: 0; padding-top: 2px; }
.ops-task-item small { display: block; overflow: hidden; color: var(--ops-accent); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.ops-task-item strong { display: block; margin: 8px 0 9px; overflow: hidden; color: var(--ops-text); font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.ops-task-item p { margin: 0; overflow: hidden; color: var(--ops-muted); font-size: 11px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.ops-task-platforms { display: flex; gap: 5px; margin-bottom: 9px; }
.ops-task-empty { padding: 42px 16px; border: 1px dashed var(--ops-line); border-radius: 10px; color: var(--ops-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.ops-new-task {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 0;
  border-radius: 9px;
  color: var(--sv-color-on-brand);
  background: var(--ops-accent);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.ops-inbox > footer { display: flex; justify-content: space-between; margin-top: 14px; padding: 15px 3px 0; border-top: 1px solid var(--ops-line); font-size: 12px; }
.ops-inbox > footer a { color: var(--ops-muted); text-decoration: none; }
.ops-inbox > footer a:hover { color: var(--ops-accent); }

.ops-task-detail {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 32px 24px;
  background: radial-gradient(circle at 50% 0, rgba(206, 247, 47, .035), transparent 34%);
}
.ops-detail-head { min-height: 76px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding-bottom: 21px; border-bottom: 1px solid var(--ops-line); }
.ops-detail-head > div:first-child { min-width: 0; }
.ops-detail-head h2 { margin: 0 0 8px; overflow: hidden; color: var(--ops-text); font-size: clamp(23px, 2vw, 30px); line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; text-overflow: ellipsis; }
.ops-detail-head p { max-width: 700px; margin: 0; overflow: hidden; color: var(--ops-muted); font-size: 13px; line-height: 1.55; white-space: nowrap; text-overflow: ellipsis; }
.ops-detail-actions { flex: none; display: flex; gap: 8px; }
.ops-detail-head button, .ops-inline-actions button, .ops-strategy-card button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  color: var(--ops-text);
  background: var(--sv-color-surface-elevated);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ops-detail-head button:not(.is-quiet), .ops-inline-actions .is-primary { border-color: var(--ops-accent); color: var(--sv-color-on-brand); background: var(--ops-accent); }
.ops-detail-head button:disabled, .ops-inline-actions button:disabled { opacity: .45; cursor: not-allowed; }
.ops-adaptation-note { margin: 10px 0 7px; color: var(--ops-muted); font-size: 12px; }
.ops-adaptation-note::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--ops-accent); box-shadow: 0 0 10px rgba(206, 247, 47, .5); }

.ops-variant-cards { min-height: 52px; display: flex; align-items: stretch; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ops-variant-cards::-webkit-scrollbar { display: none; }
.ops-variant-card {
  min-width: 112px;
  flex: 1 1 132px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--ops-line);
  border-radius: 10px;
  color: var(--ops-text);
  background: var(--sv-color-surface-strong);
  text-align: left;
  cursor: pointer;
}
.ops-variant-card:hover { border-color: rgba(206, 247, 47, .24); }
.ops-variant-card.is-active { border-color: var(--ops-accent); background: rgba(206, 247, 47, .055); box-shadow: inset 0 0 0 1px rgba(206, 247, 47, .08); }
.ops-brand-icon { flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 11px; color: var(--sv-color-text); background: var(--sv-color-surface-hover); box-shadow: 0 5px 14px rgba(0, 0, 0, .2); }
.ops-brand-icon.is-medium { grid-row: span 2; width: 42px; height: 42px; }
.ops-brand-icon.is-small { width: 34px; height: 34px; border-radius: 9px; }
.ops-brand-icon.is-tiny { width: 28px; height: 28px; border-radius: 8px; }
.ops-brand-icon.is-micro { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
.ops-brand-icon svg { width: 78%; height: 78%; display: block; }
.ops-brand-icon.is-xhs { background: #ff2442; }
.ops-brand-icon.is-xhs b { max-width: 90%; color: var(--sv-color-text); font-size: 8px; font-weight: 900; line-height: 1.05; letter-spacing: -.08em; text-align: center; transform: scaleX(.84); }
.ops-brand-icon.is-xhs.is-small b, .ops-brand-icon.is-xhs.is-tiny b { font-size: 7px; }
.ops-brand-icon.is-xhs.is-micro b { font-size: 5px; }
.ops-brand-icon.is-douyin { background: var(--sv-color-canvas); }
.ops-brand-icon .dy-shadow-cyan { fill: #25f4ee; transform: translate(-2px, 1px); }
.ops-brand-icon .dy-shadow-red { fill: #fe2c55; transform: translate(2px, 1px); }
.ops-brand-icon .dy-main { fill: #fff; }
.ops-brand-icon.is-weibo { background: #fff; }
.ops-brand-icon.is-instagram { color: var(--sv-color-text); background: radial-gradient(circle at 31% 105%, #ffd36a 0 21%, #f04b47 42%, #b538a4 66%, #465be6 100%); }
.ops-brand-icon.is-wechat-official { background: #20b767; }
.ops-variant-label { min-width: 0; display: grid; gap: 3px; }
.ops-variant-card strong { overflow: hidden; font-size: 12px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.ops-variant-card small { overflow: hidden; color: var(--ops-muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.ops-variant-card small.is-ready { color: var(--ops-accent); }
.ops-platform-add { width: 50px; flex: 0 0 50px; display: grid; place-items: center; align-content: center; gap: 2px; border: 1px dashed rgba(206, 247, 47, .23); border-radius: 10px; color: var(--ops-muted); text-decoration: none; }
.ops-platform-add:hover { border-color: var(--ops-accent); color: var(--ops-accent); }
.ops-platform-add b { font-size: 17px; line-height: 1; }
.ops-platform-add span { font-size: 9px; }
.ops-variant-empty { flex: 1; min-height: 52px; display: grid; place-items: center; border: 1px dashed var(--ops-line); border-radius: 10px; color: var(--ops-muted); font-size: 12px; }

.ops-platform-work {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: var(--sv-color-surface);
}
.ops-platform-work[hidden] { display: none; }
.ops-platform-work > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 11px; }
.ops-platform-work > header > div { display: flex; align-items: baseline; gap: 10px; }
.ops-platform-work h3 { margin: 0; color: var(--ops-text); font-size: 20px; }
.ops-platform-work > header span { color: var(--ops-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ops-mode-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--sv-color-canvas-raised); }
.ops-mode-tabs button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; color: var(--ops-muted); background: transparent; font-size: 12px; cursor: pointer; }
.ops-mode-tabs button.is-active { color: var(--ops-text); background: var(--sv-color-surface-hover); }
.ops-edit-pane { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ops-edit-pane[hidden], .ops-preview-pane[hidden] { display: none; }
.ops-edit-pane label { display: grid; gap: 7px; }
.ops-edit-pane label[hidden] { display: none; }
.ops-edit-pane .ops-body-field { min-height: 110px; flex: 1; grid-template-rows: auto minmax(0, 1fr); }
.ops-edit-pane label > span { color: var(--sv-color-text-muted); font-size: 12px; font-weight: 700; }
.ops-field-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ops-field-label b { color: var(--sv-color-text-muted); font-size: 12px; }
.ops-field-label small { color: var(--sv-color-text-faint); font: 600 10px/1 var(--sv-font-mono); }
.ops-edit-pane input, .ops-edit-pane textarea, .ops-strategy-card select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ops-line);
  border-radius: 8px;
  color: var(--ops-text);
  background: var(--sv-color-surface-subtle);
  font: 400 14px/1.65 var(--sv-font-body);
  outline: none;
}
.ops-edit-pane input { min-height: 42px; padding: 0 12px; }
.ops-edit-pane textarea { min-height: 0; height: 100%; resize: none; padding: 12px; }
.ops-edit-pane input:focus, .ops-edit-pane textarea:focus, .ops-strategy-card select:focus { border-color: var(--ops-accent); box-shadow: 0 0 0 3px rgba(206, 247, 47, .08); }
.ops-topic-help { margin-top: -1px; color: var(--sv-color-text-faint) !important; font-size: 11px !important; font-weight: 400 !important; line-height: 1.5; }
.ops-topic-chips { min-height: 27px; display: flex; flex-wrap: wrap; gap: 6px; }
.ops-topic-chips span { padding: 5px 8px; border: 1px solid rgba(206, 247, 47, .17); border-radius: 999px; color: var(--sv-color-text); background: rgba(206, 247, 47, .035); font-size: 11px; font-weight: 600; }
.ops-topic-chips em { color: var(--sv-color-text-faint); font-size: 11px; font-style: normal; font-weight: 400; }
.ops-preview-pane { min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(206, 247, 47, .25) transparent; }
.ops-preview-carousel { width: min(100%, 560px); margin: 0 auto; }
.ops-preview-viewport { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--ops-line); border-radius: 11px; background: var(--sv-color-surface-subtle); }
.ops-preview-track { height: 100%; display: flex; transition: transform .34s cubic-bezier(.22, .72, .2, 1); will-change: transform; }
.ops-preview-slide { min-width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; background: var(--sv-color-surface-elevated); }
.ops-preview-slide img { width: 100%; height: 100%; display: block; object-fit: contain; background: var(--sv-color-canvas-raised); }
.ops-preview-slide > span { color: var(--sv-color-text-faint); font: 700 11px/1.4 var(--sv-font-mono); }
.ops-preview-slide .video-tile { width: 100%; height: 100%; display: grid; place-items: center; gap: 8px; align-content: center; color: var(--sv-color-text); background: radial-gradient(circle, var(--sv-color-surface-hover), var(--sv-color-surface) 68%); }
.ops-preview-slide .video-tile b { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ops-line-strong); border-radius: 50%; color: var(--ops-accent); font-size: 17px; }
.ops-preview-slide .video-tile small { color: var(--ops-muted); font: 700 9px/1 var(--sv-font-mono); letter-spacing: .12em; }
.ops-preview-arrow { position: absolute; top: 50%; z-index: 1; width: 34px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--sv-color-border-strong); border-radius: 7px; color: var(--sv-color-text); background: rgba(5, 7, 5, .68); font-size: 25px; line-height: 1; cursor: pointer; transform: translateY(-50%); backdrop-filter: blur(8px); }
.ops-preview-arrow:hover { border-color: rgba(206, 247, 47, .42); color: var(--ops-accent); }
.ops-preview-arrow:disabled { display: none; }
.ops-preview-arrow.is-prev { left: 12px; }
.ops-preview-arrow.is-next { right: 12px; }
.ops-preview-position { position: absolute; right: 12px; bottom: 11px; z-index: 1; padding: 5px 8px; border-radius: 6px; color: var(--sv-color-text); background: rgba(5, 7, 5, .72); font: 700 10px/1 var(--sv-font-mono); backdrop-filter: blur(8px); }
.ops-preview-dots { min-height: 20px; display: flex; justify-content: center; gap: 6px; padding-top: 9px; }
.ops-preview-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #3e473e; cursor: pointer; transition: width .2s ease, border-radius .2s ease, background .2s ease; }
.ops-preview-dots button.is-active { width: 18px; border-radius: 999px; background: var(--ops-accent); }
.ops-preview-copy { width: min(100%, 560px); margin: 4px auto 0; padding: 8px 2px 4px; }
.ops-preview-copy > span { color: var(--ops-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ops-preview-pane h4 { margin: 7px 0 6px; color: var(--ops-text); font-size: 20px; line-height: 1.3; }
.ops-preview-pane p { margin: 0; color: var(--sv-color-text-muted); font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.ops-preview-copy > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ops-preview-copy > div span { padding: 5px 8px; border: 1px solid rgba(206, 247, 47, .18); border-radius: 999px; color: var(--sv-color-text-muted); background: rgba(206, 247, 47, .035); font-size: 11px; }
.copy-preview-summary { margin: 0 0 12px !important; padding: 9px 11px; border-left: 2px solid #20b767; color: var(--sv-color-text-muted) !important; background: rgba(32, 183, 103, .06); font-size: 12px !important; }
.copy-preview-summary[hidden] { display: none; }
.ops-preview-pane[data-platform="xhs"] .ops-preview-carousel { width: min(100%, 300px); }
.ops-preview-pane[data-platform="xhs"] .ops-preview-viewport { height: auto; aspect-ratio: 3 / 4; }
.ops-preview-pane[data-platform="xhs"] .ops-preview-slide img { object-fit: cover; }
.ops-preview-pane[data-platform="douyin"] .ops-preview-carousel { width: min(100%, 240px); }
.ops-preview-pane[data-platform="douyin"] .ops-preview-viewport { width: 100%; aspect-ratio: 9 / 16; }
.ops-preview-pane[data-platform="douyin"] .ops-preview-slide img { object-fit: cover; }
.ops-preview-pane[data-platform="weibo"] .ops-preview-viewport { aspect-ratio: 16 / 8; }
.ops-preview-pane[data-platform="instagram"] .ops-preview-viewport { width: min(100%, 440px); margin: 0 auto; aspect-ratio: 4 / 3; }
.ops-preview-pane[data-platform="wechat_official"] { color: #252923; }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-carousel,
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-copy { width: min(100%, 640px); }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-viewport { aspect-ratio: 2.35 / 1; border-radius: 4px 4px 0 0; border-color: var(--sv-color-border-strong); background: #eeeae0; }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-slide { background: #eeeae0; }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-slide img { object-fit: cover; background: #eeeae0; }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-dots { display: none; }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-copy { margin-top: 0; padding: 18px 24px 22px; box-sizing: border-box; border: 1px solid #d8d5cc; border-top: 0; border-radius: 0 0 4px 4px; background: #f5f2e9; }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-copy > span { color: #20a862; letter-spacing: .04em; }
.ops-preview-pane[data-platform="wechat_official"] h4 { margin: 8px 0 7px; color: #171b17; font-family: var(--sv-font-sans); font-size: 23px; }
.ops-preview-pane[data-platform="wechat_official"] p { color: #353b35; line-height: 1.85; }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-summary { display: block; margin: 0 0 12px; padding: 8px 10px; border-left: 2px solid #20b767; color: var(--sv-color-text-faint); background: #ebe8df; font-size: 11px; line-height: 1.55; }
.ops-preview-pane[data-platform="wechat_official"] .ops-preview-summary[hidden] { display: none; }
.ops-preview-pane[data-platform="wechat_official"] #opsPreviewTopics { display: none; }
.ops-inline-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ops-line); }
.ops-inline-actions .is-link { margin-left: auto; border-color: transparent; color: var(--ops-muted); background: transparent; }

.ops-strategy { min-width: 0; min-height: 0; overflow-y: auto; padding: 20px 18px 14px; border-left: 1px solid var(--ops-line); background: var(--sv-color-surface); scrollbar-width: thin; scrollbar-color: rgba(206, 247, 47, .18) transparent; }
.ops-strategy > header { padding-bottom: 13px; border-bottom: 1px solid var(--ops-line); }
.ops-strategy > header h2 { margin: 0 0 7px; color: var(--ops-text); font-size: 21px; letter-spacing: -.025em; }
.ops-strategy > header p { margin: 0; color: var(--ops-muted); font-size: 12px; }
.ops-strategy-card { margin-top: 8px; padding: 12px; border: 1px solid var(--ops-line); border-radius: 9px; background: var(--sv-color-surface-strong); }
.ops-strategy-card > span { display: block; margin-bottom: 8px; color: var(--ops-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.ops-current-account { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ops-current-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.ops-current-account b { overflow: hidden; color: var(--ops-text); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.ops-current-account em { flex: none; color: var(--ops-muted); font-size: 11px; font-style: normal; }
.ops-current-account em.is-connected { color: var(--ops-accent); }
.ops-strategy-card > a { display: inline-block; margin-top: 8px; color: var(--ops-accent); font-size: 11px; text-decoration: none; }
.ops-strategy-card select { min-height: 36px; padding: 0 9px; }
.ops-strategy-card > p { margin: 6px 0 8px; color: var(--ops-muted); font-size: 10px; line-height: 1.45; }
.ops-strategy-card > button { width: 100%; }
.ops-strategy-card > button { min-height: 34px; }
.ops-production-summary { display: grid; gap: 4px; padding: 8px 10px; border-left: 2px solid var(--ops-accent); background: var(--sv-color-surface); }
.ops-production-summary b { color: var(--ops-text); font-size: 13px; }
.ops-production-summary small { color: var(--ops-muted); font-size: 10px; line-height: 1.4; }
.ops-production-card > p { min-height: 0; }
.ops-skill-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ops-skill-map button { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 7px; padding: 7px; border: 1px solid var(--ops-line); border-radius: 7px; color: inherit; background: var(--sv-color-surface); text-align: left; cursor: pointer; }
.ops-skill-map button.is-active { border-color: var(--ops-line-strong); background: rgba(206, 247, 47, .045); }
.ops-skill-map .ops-brand-icon { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--sv-color-text); }
.ops-skill-map span { overflow: hidden; color: var(--ops-muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.ops-skill-map b { overflow: hidden; color: var(--ops-text); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.ops-strategy-card dl { margin: 0; }
.ops-strategy-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ops-strategy-card dt { color: var(--ops-muted); font-size: 11px; }
.ops-strategy-card dd { margin: 0; color: var(--sv-color-text); font-size: 11px; text-align: right; }
.ops-strategy > footer { padding-top: 10px; color: var(--sv-color-text-faint); font-size: 10px; text-align: center; }

.ops-task-desk button:focus-visible, .ops-task-desk a:focus-visible, .ops-task-desk input:focus-visible, .ops-task-desk textarea:focus-visible, .ops-task-desk select:focus-visible { outline: 2px solid rgba(206, 247, 47, .72); outline-offset: 2px; }

.ops-video-dialog { width: min(900px, calc(100vw - 30px)); max-width: none; padding: 0; border: 1px solid rgba(235, 242, 231, .16); border-radius: 16px; color: var(--ops-text); background: var(--sv-color-surface-subtle); box-shadow: 0 34px 100px rgba(0, 0, 0, .68); }
.ops-video-dialog::backdrop { background: rgba(2, 4, 2, .76); backdrop-filter: blur(8px); }
.ops-video-sheet { display: grid; max-height: min(860px, calc(100dvh - 38px)); overflow-y: auto; }
.ops-video-sheet > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 24px; padding: 25px 28px 20px; border-bottom: 1px solid var(--ops-line); background: var(--sv-color-surface-subtle); backdrop-filter: blur(14px); }
.ops-video-sheet > header span { color: var(--ops-accent); font: 750 10px/1 var(--sv-font-mono); letter-spacing: .14em; }
.ops-video-sheet > header h2 { margin: 8px 0 6px; font-size: 27px; letter-spacing: -.04em; }
.ops-video-sheet > header p { margin: 0; color: var(--ops-muted); font-size: 12px; }
.ops-video-sheet .dialog-close { flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--ops-line); border-radius: 8px; color: var(--ops-muted); background: var(--sv-color-surface-elevated); cursor: pointer; }
.ops-video-output { display: grid; grid-template-columns: minmax(260px, .72fr) 1fr; gap: 20px; align-items: end; padding: 20px 28px; border-bottom: 1px solid var(--ops-line); background: radial-gradient(circle at 10% 0, rgba(206, 247, 47, .07), transparent 48%); }
.ops-video-sheet label { display: grid; gap: 7px; }
.ops-video-sheet label > span, .ops-video-methods legend { color: var(--sv-color-text-muted); font-size: 11px; font-weight: 750; letter-spacing: .035em; }
.ops-video-sheet :is(input, select, textarea) { width: 100%; box-sizing: border-box; border: 1px solid var(--ops-line); border-radius: 8px; color: var(--ops-text); background: var(--sv-color-surface-subtle); font: 500 13px/1.5 var(--sv-font-body); outline: none; }
.ops-video-sheet :is(input, select) { min-height: 42px; padding: 0 11px; }
.ops-video-sheet textarea { min-height: 112px; padding: 11px; resize: vertical; }
.ops-video-sheet :is(input, select, textarea):focus { border-color: var(--ops-accent); box-shadow: 0 0 0 3px rgba(206, 247, 47, .08); }
.ops-video-output p { margin: 0 0 4px; color: var(--ops-muted); font-size: 12px; line-height: 1.6; }
#opsVideoFields { display: grid; gap: 20px; padding: 22px 28px 25px; }
.ops-video-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.ops-video-methods legend { grid-column: 1 / -1; margin-bottom: 3px; }
.ops-video-methods label { position: relative; display: block; }
.ops-video-methods input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ops-video-methods label > span { min-height: 70px; display: grid; align-content: center; gap: 6px; padding: 13px 14px; border: 1px solid var(--ops-line); border-radius: 10px; background: var(--sv-color-surface-strong); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.ops-video-methods label:hover > span { border-color: rgba(206, 247, 47, .28); transform: translateY(-1px); }
.ops-video-methods input:checked + span { border-color: var(--ops-accent); background: rgba(206, 247, 47, .065); box-shadow: inset 0 0 0 1px rgba(206, 247, 47, .08); }
.ops-video-methods b { color: var(--ops-text); font-size: 13px; }
.ops-video-methods small { color: var(--ops-muted); font-size: 10px; font-weight: 500; line-height: 1.45; }
.ops-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ops-video-grid label > small { color: var(--sv-color-text-faint); font-size: 10px; line-height: 1.45; }
.ops-video-prompt { padding-top: 3px; }
.ops-video-boundary { padding: 13px 15px; border: 1px solid rgba(206, 247, 47, .18); border-radius: 9px; background: rgba(206, 247, 47, .035); }
.ops-video-boundary b { color: var(--ops-accent); font-size: 11px; }
.ops-video-boundary p { margin: 6px 0 0; color: var(--ops-muted); font-size: 11px; line-height: 1.55; }
.ops-video-sheet > footer { position: sticky; bottom: 0; z-index: 2; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 28px; border-top: 1px solid var(--ops-line); background: var(--sv-color-surface-subtle); backdrop-filter: blur(14px); }
.ops-video-sheet > footer > span { color: var(--ops-muted); font-size: 11px; }
.ops-video-sheet > footer > div { display: flex; align-items: center; gap: 8px; }
.ops-video-sheet > footer a { margin-right: 6px; color: var(--ops-accent); font-size: 11px; text-decoration: none; }
.ops-video-sheet > footer button { min-height: 38px; padding: 0 15px; border: 1px solid var(--ops-line); border-radius: 8px; color: var(--ops-text); background: var(--sv-color-surface-elevated); font-size: 12px; font-weight: 750; cursor: pointer; }
.ops-video-sheet > footer button[type="submit"] { border-color: var(--ops-accent); color: var(--sv-color-on-brand); background: var(--ops-accent); }
.ops-video-sheet :is(button, a):focus-visible { outline: 2px solid rgba(206, 247, 47, .72); outline-offset: 2px; }

@media (max-width: 1300px) {
  html[data-app-rail], body.has-app-rail { height: auto; overflow: visible; }
  .ops-shell { height: auto; min-height: 100dvh; }
  .ops-task-desk { grid-template-columns: 270px minmax(620px, 1fr); }
  .ops-strategy { grid-column: 1 / -1; display: grid; grid-template-columns: 210px repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--ops-line); border-left: 0; }
  .ops-strategy > header { padding: 0; border: 0; }
  .ops-strategy-card { margin-top: 0; padding: 14px; }
  .ops-strategy > footer { display: none; }
}

@media (max-width: 980px) {
  .ops-shell { width: 100%; padding: 0; }
  .ops-task-desk { height: auto; min-height: 100dvh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .ops-inbox { max-height: 430px; border-right: 0; border-bottom: 1px solid var(--ops-line); }
  .ops-task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-strategy { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-strategy > header { grid-column: 1 / -1; }
  .ops-variant-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ops-task-list, .ops-strategy, .ops-preview-pane { grid-template-columns: 1fr; }
  .ops-task-detail { padding: 23px 16px; }
  .ops-detail-head { flex-direction: column; }
  .ops-detail-head h2, .ops-detail-head p { white-space: normal; }
  .ops-detail-actions { width: 100%; }
  .ops-detail-actions button { flex: 1; }
  .ops-variant-cards { grid-template-columns: 1fr 1fr; }
  .ops-platform-work { padding: 16px; }
  .ops-platform-work > header, .ops-inline-actions { align-items: stretch; flex-direction: column; }
  .ops-mode-tabs button { flex: 1; }
  .ops-inline-actions .is-link { margin-left: 0; }
  .ops-strategy > header { grid-column: auto; }
  .ops-video-output, .ops-video-methods, .ops-video-grid { grid-template-columns: 1fr; }
  .ops-video-sheet > header, .ops-video-output, #opsVideoFields { padding-left: 17px; padding-right: 17px; }
  .ops-video-sheet > footer { align-items: stretch; flex-direction: column; padding: 14px 17px; }
  .ops-video-sheet > footer > div { justify-content: flex-end; }
}
