:root {
  --module-entry-width: 1058px;
  --module-entry-height: 144px;
  --module-entry-split-height: 220px;
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #ffffff;
  --line: #e5e6eb;
  --line-soft: #f2f3f5;
  --text: #1d2129;
  --text-2: #4d5562;
  --text-3: #868f9c;
  --blue: #050505;
  --blue-soft: #f2f3f5;
  --launch-primary: #8470FF;
  --launch-primary-hover: #7360E6;
  --launch-primary-deep: #7360E6;
  --launch-primary-soft: #f8f7ff;
  --launch-primary-border: #ebe8ff;
  --launch-primary-muted: #ebe8ff;
  --launch-primary-secondary: #8470FF;
  --launch-chart-line: #8470FF;
  --launch-chart-fill: #ebe8ff;
  --green: #00b42a;
  --green-soft: #e8ffea;
  --amber: #f59e0b;
  --red: #e5484d;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --sidebar: 108px;
  --shadow: 0 18px 45px rgba(29, 33, 41, 0.08);
  color: var(--text);
  font-family:
    "HarmonyOS Sans SC",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: #d0d3d9 var(--bg);
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--bg);
}

html::-webkit-scrollbar-thumb {
  background: #d0d3d9;
  border: 1px solid var(--bg);
  border-radius: 999px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

body.input-page-view {
  height: 100vh;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line-soft);
  padding: 12px 8px;
}

.brand,
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.brand {
  height: 46px;
  margin-bottom: 8px;
}

.sidebar-toggle {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  position: static;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  color: var(--text-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.sidebar-toggle:hover {
  color: var(--blue);
  background: var(--panel-soft);
  border-color: var(--blue-soft);
}

.sidebar-collapse-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sidebar-collapse-input:focus-visible + .sidebar-toggle {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
}

.avatar,
.profile-orb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  font-weight: 700;
}

.brand-logo {
  width: 22px;
  height: 23px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  object-fit: contain;
  box-shadow: none;
}

.brand strong,
.sidebar-footer strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
}

.brand span,
.sidebar-footer span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  line-height: 16px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.nav-item {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-align: left;
}

.nav-item:hover {
  background: var(--line-soft);
}

.nav-item.active {
  color: var(--text);
  background: var(--bg);
  border-color: var(--line);
  font-weight: 500;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-footer {
  margin-top: auto;
  min-height: 56px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2f3f5;
  color: var(--text-2);
}

.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-left: auto;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
}

.icon-button:hover {
  background: var(--line-soft);
}

@media (min-width: 1181px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--sidebar);
    height: 100vh;
    transition: width 180ms ease;
  }

  .workspace:has(.step-card.is-expanded),
  .workspace:has(.growth-dot:hover),
  .workspace:has(.growth-dot:focus-within),
  .workspace:has(.reason-node.has-tooltip:hover),
  .workspace:has(.reason-node.has-tooltip:focus-within) {
    position: relative;
    z-index: 50;
  }

  .workspace {
    grid-column: 2;
  }

  .app-shell.sidebar-collapsed,
  .app-shell:has(.sidebar-collapse-input:checked) {
    --sidebar: 72px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-shell.sidebar-collapsed .brand,
  .app-shell:has(.sidebar-collapse-input:checked) .brand {
    justify-content: center;
    padding-right: 8px;
    padding-left: 8px;
  }

  .app-shell.sidebar-collapsed .sidebar-toggle,
  .app-shell:has(.sidebar-collapse-input:checked) .sidebar-toggle {
    margin-left: 0;
  }

  .app-shell.sidebar-collapsed .brand > div:not(.brand-logo):not(.brand-lockup),
  .app-shell:has(.sidebar-collapse-input:checked) .brand > div:not(.brand-logo):not(.brand-lockup),
  .app-shell.sidebar-collapsed .nav-item > span:not(.nav-icon),
  .app-shell:has(.sidebar-collapse-input:checked) .nav-item > span:not(.nav-icon),
  .app-shell.sidebar-collapsed .sidebar-footer > div:not(.avatar),
  .app-shell:has(.sidebar-collapse-input:checked) .sidebar-footer > div:not(.avatar),
  .app-shell.sidebar-collapsed .sidebar-footer [data-open-settings],
  .app-shell:has(.sidebar-collapse-input:checked) .sidebar-footer [data-open-settings] {
    display: none;
  }

  .app-shell.sidebar-collapsed .nav-item,
  .app-shell:has(.sidebar-collapse-input:checked) .nav-item,
  .app-shell.sidebar-collapsed .sidebar-footer,
  .app-shell:has(.sidebar-collapse-input:checked) .sidebar-footer {
    justify-content: center;
    padding-right: 8px;
    padding-left: 8px;
  }

  .app-shell.sidebar-collapsed .nav-icon,
  .app-shell:has(.sidebar-collapse-input:checked) .nav-icon {
    flex: 0 0 20px;
  }

  .app-shell.sidebar-collapsed .report-tabs,
  .app-shell:has(.sidebar-collapse-input:checked) .report-tabs,
  .app-shell.sidebar-collapsed .input-shell,
  .app-shell:has(.sidebar-collapse-input:checked) .input-shell,
  .app-shell.sidebar-collapsed .launch-entry,
  .app-shell:has(.sidebar-collapse-input:checked) .launch-entry,
  .app-shell.sidebar-collapsed .report-card,
  .app-shell:has(.sidebar-collapse-input:checked) .report-card,
  .app-shell.sidebar-collapsed .section-block,
  .app-shell:has(.sidebar-collapse-input:checked) .section-block,
  .app-shell.sidebar-collapsed .panel-card,
  .app-shell:has(.sidebar-collapse-input:checked) .panel-card,
  .app-shell.sidebar-collapsed .home-panel,
  .app-shell:has(.sidebar-collapse-input:checked) .home-panel {
    max-width: none;
  }
}

.workspace {
  min-width: 0;
  padding: 8px 24px 48px;
  background: #fff;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 24px;
  margin-bottom: 6px;
  padding-left: 8px;
}

.workspace-header-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.report-page-toolbar {
  margin-top: 8px;
}

.report-page-toolbar[hidden] {
  display: none !important;
}

.report-page-back,
.account-dashboard-back {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-2, #4e5969);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.report-page-back:hover,
.account-dashboard-back:hover {
  color: var(--brand, #8470ff);
  background: transparent;
  border: none;
}

body.has-report-page .workspace-header {
  min-height: auto;
  margin-bottom: 24px;
  padding-left: 0;
}

body.has-report-page .workspace-header h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.has-report-page .report-page-toolbar {
  margin-top: 20px;
  margin-bottom: 0;
}

.eyebrow {
  display: none;
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

h3 {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.api-pill,
.status-badge,
.tag-row span,
.tag-row em,
.metric-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  white-space: nowrap;
}

.api-pill {
  padding: 5px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.api-pill.online {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b7ebc1;
}

.api-pill.offline {
  color: var(--red);
  background: #fff1f0;
  border-color: #ffccc7;
}

.primary-button,
.ghost-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}

.primary-button {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.primary-button:hover {
  background: #202124;
  border-color: #202124;
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.primary-button.small {
  min-height: 32px;
  padding: 5px 12px;
}

.ghost-button {
  color: var(--text-2);
  background: var(--panel);
  border-color: var(--line);
}

.ghost-button:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1481px) {
  body.has-launch-report .main-column .report-tabs,
  body.has-launch-report .main-column .report-card,
  body.has-launch-report .main-column .section-block,
  body.has-launch-report .main-column .panel-card {
    max-width: none;
  }
}

.history-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  background: rgba(29, 33, 41, 0.2);
  transition: opacity 180ms ease;
}

.history-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 71;
  width: min(388px, calc(100vw - 32px));
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px;
  overflow: hidden;
  background: var(--panel);
  border-left: 1px solid var(--line-soft);
  box-shadow: none;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 180ms ease, visibility 180ms ease;
}

body.history-drawer-open {
  overflow: hidden;
}

body.history-drawer-open #historyScrim {
  pointer-events: auto;
  opacity: 1;
}

body.history-drawer-open #historyDrawer {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  box-shadow: -18px 0 44px rgba(29, 33, 41, 0.1);
}

.history-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.history-drawer-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.history-drawer-head span {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.history-drawer-head .icon-button {
  flex: 0 0 auto;
}

.history-search {
  position: relative;
  display: block;
  margin: 16px 4px 12px;
}

.history-search input {
  width: 100%;
  min-height: 36px;
  padding: 7px 12px 7px 34px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.history-search input:focus {
  background: var(--panel);
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.history-search-icon {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--text-3);
  border-radius: 50%;
}

.history-search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  background: var(--text-3);
  transform: rotate(45deg);
  transform-origin: left center;
}

.history-project-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding: 0 4px 4px;
  overflow-y: auto;
}

.history-project-item {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}

.history-project-item:hover {
  background: var(--panel-soft);
  border-color: var(--line-soft);
}

.history-project-item.is-active {
  background: #f0f6ff;
  border-color: #b7d3ff;
}

.history-project-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.history-project-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--blue);
  background: #e8f1ff;
  border: 1px solid #c8dcff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.history-project-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-project-avatar.has-image span {
  opacity: 0;
}

.history-project-avatar.is-video-cover {
  border-radius: 9px;
  background: #f3f5f8;
  border-color: #dfe4eb;
}

.history-project-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.history-project-title-row,
.history-project-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.history-project-title-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-project-score {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.history-project-score.is-pending {
  color: var(--text-3);
}

.history-project-meta {
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.history-project-meta i {
  padding-right: 7px;
  color: var(--text-2);
  font-style: normal;
  border-right: 1px solid var(--line);
}

.history-project-time {
  overflow: hidden;
  color: var(--text-3);
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-project-status {
  align-self: start;
  padding: 2px 5px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #b7ebc1;
  border-radius: 4px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.history-project-status.is-partial,
.history-project-status.is-generating,
.history-project-status.is-template {
  color: #d46b08;
  background: #fff7e8;
  border-color: #ffd591;
}

.history-project-status.is-failed {
  color: var(--red);
  background: #fff1f0;
  border-color: #ffccc7;
}

.history-empty {
  min-height: 180px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 10px;
  color: var(--text-3);
  text-align: center;
}

.history-empty strong {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.history-empty span {
  font-size: 12px;
  line-height: 18px;
}

.history-empty.is-error strong {
  color: var(--red);
}

body:not(.has-launch-report) .work-grid,
body:not(:has(#launchView.active.has-report)) .work-grid {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.has-launch-report) .report-tabs {
  display: none !important;
}

.main-column {
  min-width: 0;
}

.report-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  max-width: 1200px;
  min-height: 54px;
  padding: 0 16px;
  margin-bottom: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

/* Fallback for any native anchor jump; JavaScript calculates the exact offset. */
.main-column .generated-report,
.main-column #summary {
  scroll-margin-top: 76px;
}

.report-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 15px 0;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  line-height: 22px;
}

.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 500;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

body:not(.has-launch-report) .insight-panel.generated-report,
body:not(:has(#launchView.active.has-report)) .insight-panel.generated-report,
#launchView:not(.has-report) .generated-report {
  display: none;
}

body:not(.has-launch-report) #launchInput {
  max-width: none;
  margin-bottom: 0;
}

#launchView.has-report #launchInput {
  display: none;
}

#launchView.is-launch-waiting .generated-report,
#launchView.is-launch-waiting #launchCompletionAction {
  display: none;
}

#launchView:not(.is-launch-waiting) #launchResult:empty {
  display: none;
}

.launch-report-root {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.launch-report-root .section-block,
.launch-report-root .report-card {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 72px;
}

body.input-page-view:has(#homeView.active) .header-actions {
  display: none;
}

body.input-page-view:has(#launchView.active:not(.has-report)) .workspace-header h1,
body.input-page-view:has(#videoView.active:not(.has-report)) .workspace-header h1,
body.input-page-view:has(#compareView.active:not(.has-task-report)) .workspace-header h1,
body.input-page-view:has(#replicateView.active:not(.has-task-report)) .workspace-header h1,
body.input-page-view:has(#predictionView.active:not(.has-task-report)) .workspace-header h1,
body.input-page-view:has(#fissionView.active:not(.has-task-report)) .workspace-header h1,
body.input-page-view:has(#launchView.active:not(.has-report)) .api-pill,
body.input-page-view:has(#videoView.active:not(.has-report)) .api-pill,
body.input-page-view:has(#compareView.active:not(.has-task-report)) .api-pill,
body.input-page-view:has(#replicateView.active:not(.has-task-report)) .api-pill,
body.input-page-view:has(#predictionView.active:not(.has-task-report)) .api-pill,
body.input-page-view:has(#fissionView.active:not(.has-task-report)) .api-pill {
  display: none;
}

body.input-page-view:has(#launchView.active:not(.has-report)) .workspace-header,
body.input-page-view:has(#videoView.active:not(.has-report)) .workspace-header,
body.input-page-view:has(#compareView.active:not(.has-task-report)) .workspace-header,
body.input-page-view:has(#replicateView.active:not(.has-task-report)) .workspace-header,
body.input-page-view:has(#predictionView.active:not(.has-task-report)) .workspace-header,
body.input-page-view:has(#fissionView.active:not(.has-task-report)) .workspace-header {
  min-height: 40px;
  margin-bottom: 0;
}

body.input-page-view:has(#launchView.active:not(.has-report)) .workspace,
body.input-page-view:has(#videoView.active:not(.has-report)) .workspace,
body.input-page-view:has(#compareView.active:not(.has-task-report)) .workspace,
body.input-page-view:has(#replicateView.active:not(.has-task-report)) .workspace,
body.input-page-view:has(#predictionView.active:not(.has-task-report)) .workspace,
body.input-page-view:has(#fissionView.active:not(.has-task-report)) .workspace {
  padding-left: 20px;
  padding-right: 20px;
}

body.input-page-view:has(#launchView.active:not(.has-report)) .main-column,
body.input-page-view:has(#videoView.active:not(.has-report)) .main-column,
body.input-page-view:has(#compareView.active:not(.has-task-report)) .main-column,
body.input-page-view:has(#replicateView.active:not(.has-task-report)) .main-column,
body.input-page-view:has(#predictionView.active:not(.has-task-report)) .main-column,
body.input-page-view:has(#fissionView.active:not(.has-task-report)) .main-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 88px);
}

body.input-page-view:has(#launchView.active:not(.has-report)) .work-grid,
body.input-page-view:has(#videoView.active:not(.has-report)) .work-grid,
body.input-page-view:has(#compareView.active:not(.has-task-report)) .work-grid,
body.input-page-view:has(#replicateView.active:not(.has-task-report)) .work-grid,
body.input-page-view:has(#predictionView.active:not(.has-task-report)) .work-grid,
body.input-page-view:has(#fissionView.active:not(.has-task-report)) .work-grid {
  width: 100%;
}

.launch-url-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
}

.launch-url-stack .launch-url-field {
  min-height: 0;
  border-bottom: 1px solid var(--line-soft);
}

.launch-url-stack .launch-url-field:last-child {
  border-bottom: 0;
}

.launch-url-stack .launch-url-field textarea {
  padding: 10px 24px;
}

.launch-inline-field input[type="text"] {
  width: 128px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.launch-inline-field input[type="text"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
  outline: 0;
}

.task-entry-page.module-entry-wrap,
.prediction-entry-page.module-entry-wrap {
  width: var(--module-entry-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 0 32px;
}

.task-entry-page.module-entry-wrap > .launch-entry {
  width: 100%;
  max-width: none;
  padding: 0;
}

.launch-entry form > .launch-card + .launch-card,
#fissionForm > .launch-card + .launch-card {
  margin-top: 12px;
}

.launch-inline-field--grow input[type="text"] {
  width: min(420px, 100%);
}

.prediction-step-grid {
  display: grid;
  gap: 16px;
}

.prediction-step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  padding: 16px 20px;
}

.prediction-step-card .primary-button {
  width: auto;
  min-height: 32px;
  margin-top: 4px;
}

.prediction-step-card .primary-button[type="submit"] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.prediction-account-use {
  width: fit-content;
}

.prediction-entry-head {
  display: none;
}

.launch-entry {
  width: var(--module-entry-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 0 32px;
}

.launch-entry .launch-card {
  margin-inline: auto;
}

.launch-entry + .launch-entry {
  padding-top: 0;
  margin-top: -16px;
}

.launch-hero {
  text-align: center;
  margin-bottom: 32px;
}

.launch-hero-title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.launch-hero-accent {
  color: var(--blue);
}

.launch-spark {
  display: inline-block;
  margin-left: 4px;
  color: var(--blue);
  font-size: 0.92em;
  line-height: 1;
}

.launch-hero-subtitle {
  margin: 0 auto;
  max-width: 540px;
  color: var(--text-3);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.launch-hero-subtitle.is-progress {
  color: var(--text-2);
}

.launch-hero-subtitle.is-error {
  color: var(--red);
}

.launch-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: var(--module-entry-width);
  max-width: 100%;
  height: var(--module-entry-height);
  min-height: var(--module-entry-height);
  max-height: var(--module-entry-height);
  flex-shrink: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
}

.launch-card.launch-card--split {
  height: var(--module-entry-split-height);
  min-height: var(--module-entry-split-height);
  max-height: var(--module-entry-split-height);
}

.launch-url-field {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: hidden;
}

.launch-url-field textarea {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  resize: none;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
}

.launch-url-field textarea:focus {
  box-shadow: none;
}

.launch-url-field textarea::placeholder {
  color: #caccd0;
}

/* 带链接图标的输入框：图标独占一列，避免长口令文本压住图标 */
.launch-url-field:has(.launch-url-icon) {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 12px;
}

.launch-url-field:has(.launch-url-icon) .launch-url-icon {
  position: static;
  flex: 0 0 28px;
  width: 28px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-right: 4px;
  color: #98a2b3;
  pointer-events: none;
  flex-shrink: 0;
}

.launch-url-field:has(.launch-url-icon) .launch-url-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.launch-url-stack .launch-url-field:has(.launch-url-icon) textarea,
.launch-url-field:has(.launch-url-icon) textarea {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  padding-left: 0;
  padding-right: 16px;
}

.launch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 36px;
  height: 36px;
  gap: 24px;
  padding: 0;
  margin: 0;
  border-top: 0;
  background: transparent;
}

.launch-toolbar-fields {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 24px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.launch-toolbar-fields::-webkit-scrollbar {
  display: none;
}

.launch-card label.launch-inline-field,
.launch-card label.launch-check-inline {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 20px;
}

.launch-inline-field,
.launch-check-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--text-3);
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 20px;
}

.launch-check-inline {
  gap: 8px;
  color: var(--text);
}

.launch-field-label {
  flex: 0 0 auto;
  color: var(--text-3);
  font-size: 14px;
  line-height: 20px;
}

.launch-inline-field select {
  box-sizing: border-box;
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  height: 36px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.25 6.25 8 10l3.75-3.75' stroke='%231D2129' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.launch-inline-field select:focus {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4.25 6.25 8 10l3.75-3.75' stroke='%231D2129' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.number-stepper {
  display: inline-flex;
  align-items: stretch;
  width: 132px;
  height: 36px;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.number-stepper button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text-3);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1;
}

.number-stepper button:first-child {
  border-radius: 4px 0 0 4px;
}

.number-stepper button:last-child {
  border-radius: 0 8px 8px 0;
}

.number-stepper button:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.number-stepper input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 36px;
  padding: 0;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  -moz-appearance: textfield;
}

.number-stepper input:focus {
  box-shadow: none;
}

.number-stepper input::-webkit-outer-spin-button,
.number-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.launch-check-inline input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--blue);
}

.launch-check-inline span {
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
}

.launch-submit {
  flex: 0 0 auto;
  min-height: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 16px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.launch-submit .launch-spark {
  margin-left: 0;
  color: #fff;
  font-size: 12px;
}

.launch-submit:hover {
  background: #202124;
  border-color: #202124;
}

.launch-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 640px) {
  .launch-hero-title {
    font-size: 28px;
    line-height: 36px;
  }
}

.input-shell,
.report-card,
.section-block,
.panel-card,
.home-panel {
  max-width: 1200px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.input-shell {
  margin-bottom: 16px;
  overflow: hidden;
}

.input-shell.collapsed .task-form > :not(.form-head) {
  display: none;
}

.task-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.form-head,
.panel-head,
.section-title,
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-head p,
.form-status {
  margin: 2px 0 0;
  color: var(--text-3);
}

label {
  display: grid;
  gap: 8px;
  color: var(--text-2);
}

[hidden] {
  display: none !important;
}

input,
textarea,
select {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
}

input,
select {
  height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 20px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: 16px;
  height: 16px;
}

.account-summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(280px, 640px);
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
}

.profile-orb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #c6dcff;
  font-size: 24px;
}

.profile-orb.has-image {
  background: #fff;
  border-color: var(--line);
}

.profile-orb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.summary-copy {
  min-width: 0;
}

.title-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.title-row h2 {
  font-size: 18px;
  line-height: 28px;
}

.status-badge {
  padding: 4px 12px;
  color: var(--green);
  background: var(--green-soft);
}

#reportStatus.is-completed {
  gap: 8px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #b7ebc1;
}

#reportStatus.is-completed::after {
  content: "✓";
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 16px;
  line-height: 18px;
}

#reportStatus.is-failed {
  color: var(--red);
  background: #fff1f0;
  border: 1px solid #ffccc7;
}

.date-text {
  color: var(--text-3);
  font-size: 12px;
}

.tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-row span {
  color: #9e9e9e;
}

.tag-row em,
.metric-chip {
  padding: 2px 8px;
  color: var(--text-2);
  font-style: normal;
  font-size: 12px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.tag-row .missing-audience-tag {
  color: var(--text-3);
  background: #f4f5f7;
}

.profile-metrics {
  width: 100%;
  max-width: 424px;
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(128px, 1.6fr) minmax(64px, 0.85fr) minmax(76px, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.profile-metric {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: 8px;
  background: #f9f9fa;
  border-radius: 8px;
}

.profile-metric span {
  color: #868f9c;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.profile-metric strong {
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-metric-type {
  grid-column: span 1;
}

.profile-metric-type strong {
  text-overflow: clip;
}

.ai-note,
.callout {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px;
  color: var(--text-2);
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-md);
}

.ai-note strong,
.callout strong {
  color: var(--blue);
  white-space: nowrap;
}

.summary-brief {
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.brief-lines {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.brief-lines p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  line-height: 20px;
}

.brief-lines span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-action {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.brief-action:hover {
  background: #f5f9ff;
}

.brief-action i {
  position: relative;
  width: 20px;
  height: 20px;
}

.brief-action i::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.section-block {
  padding: 16px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title span {
  display: inline-block;
  margin-top: 2px;
  color: var(--text-3);
}

.growth-section .section-title > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.growth-section .section-title span {
  margin-top: 0;
}

.judge-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  gap: 18px;
}

.strength-pills {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: #fff;
}

.judgement-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.strength-pills .label,
.judgement-tag {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.judgement-tag {
  color: var(--text-2);
  background: var(--bg);
}

.strength-pills .label {
  flex: 0 0 56px;
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  font-weight: 700;
}

.strength-pills .label.success {
  color: var(--green);
}

.strength-pills .label.danger {
  color: var(--red);
}

.judgement-tag i {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px dashed #c9cdd4;
  border-radius: 4px;
}

.judgement-tag.is-advantage i::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 6px;
  height: 9px;
  border-right: 1.5px solid #86909c;
  border-bottom: 1.5px solid #86909c;
  transform: rotate(45deg);
}

.judgement-tag.is-disadvantage i::before,
.judgement-tag.is-disadvantage i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 9px;
  height: 1.5px;
  background: #86909c;
}

.judgement-tag.is-disadvantage i::before {
  transform: rotate(45deg);
}

.judgement-tag.is-disadvantage i::after {
  transform: rotate(-45deg);
}

.judgement-note {
  min-height: 148px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 10px;
}

.judgement-advice-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.judgement-advice-copy span {
  line-height: 22px;
}

.judgement-action {
  justify-self: end;
  align-self: end;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.step-card {
  position: relative;
  min-height: 116px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
}

.step-card.is-expanded {
  z-index: 62;
}

.step-card::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  background: var(--line);
}

.step-card:last-child::after {
  display: none;
}

.step-no {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  color: var(--text);
}

.step-card strong {
  display: block;
  line-height: 20px;
}

.step-detail-line {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: end;
  gap: 4px;
}

.step-card p {
  margin-bottom: 0;
  color: var(--text-3);
  line-height: 20px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.step-expand {
  position: relative;
  z-index: 4;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.step-expand i {
  width: 6px;
  height: 6px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.step-card.is-expanded .step-expand i {
  transform: translateY(2px) rotate(225deg);
}

.step-popover {
  position: absolute;
  left: 50%;
  top: 82px;
  z-index: 63;
  width: min(292px, 210%);
  display: none;
  padding: 12px;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(0, 82, 217, 0.14);
  text-align: left;
  transform: translateX(-50%);
}

.step-card.is-expanded .step-popover {
  display: block;
}

.step-popover section + section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.step-popover span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.step-popover p {
  display: block;
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 20px;
  overflow: visible;
}

.step-popover-action p {
  color: var(--text);
  font-weight: 500;
}

.comment-insights-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.comment-sample-meta {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--blue) !important;
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
}

.comment-capture-summary {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(90px, 1fr));
  gap: 10px;
  margin: -2px 0 14px;
}

.comment-capture-card {
  min-width: 0;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.comment-capture-card.is-mode {
  background: var(--panel-soft);
  border-color: var(--blue-soft);
}

.comment-capture-card span,
.comment-capture-card strong {
  display: block;
}

.comment-capture-card span {
  color: var(--text-3);
  font-size: 11px;
  line-height: 16px;
}

.comment-capture-card strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-capture-card.is-mode strong {
  color: var(--blue);
}

.comment-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.comment-source-panel,
.comment-cloud-panel {
  min-width: 0;
  height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.comment-source-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.comment-cloud-panel {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #f8fbff 0%, #f4f8ff 52%, #fbfdff 100%);
  border-color: var(--blue-soft);
}

.comment-panel-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.comment-panel-head strong,
.comment-panel-head span {
  display: block;
}

.comment-panel-head strong {
  font-size: 15px;
  line-height: 22px;
}

.comment-panel-head div > span {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.comment-count {
  flex: 0 0 auto;
  padding: 3px 9px;
  color: var(--blue);
  background: var(--panel-soft);
  border-radius: 999px;
  font-size: 12px;
}

.comment-filters {
  display: flex;
  gap: 6px;
  padding: 9px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
}

.comment-filters button {
  flex: 0 0 auto;
  padding: 4px 10px;
  color: var(--text-3);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
}

.comment-filters button:hover {
  color: var(--blue);
  background: var(--panel-soft);
}

.comment-filters button.active {
  color: #fff;
  background: var(--blue);
}

.comment-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  scrollbar-width: thin;
  scrollbar-color: #c9d8ee transparent;
}

.comment-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.comment-row:last-child {
  border-bottom: 0;
}

.comment-row.is-word-focus {
  margin: 0 -8px;
  padding: 13px 8px;
  background: #eef5ff;
  border-radius: 10px;
  box-shadow: inset 3px 0 0 var(--blue);
  animation: comment-word-focus 900ms ease-out;
}

.comment-row.is-word-focus .comment-avatar {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

@keyframes comment-word-focus {
  0% { background: #d8e9ff; }
  100% { background: #eef5ff; }
}

.comment-row.is-hot .comment-avatar {
  color: #e58a17;
  background: #fff8e8;
  border-color: #ffe0a3;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
}

.comment-copy {
  min-width: 0;
}

.comment-copy p {
  margin: 0;
  color: var(--text-2);
  line-height: 21px;
  overflow-wrap: anywhere;
}

.comment-word-match {
  padding: 0 2px;
  color: #004ac7;
  background: #cfe3ff;
  border-radius: 3px;
}

.comment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.comment-badges:empty {
  display: none;
}

.comment-badge {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 16px;
}

.comment-badge.is-hot {
  color: #b26a00;
  background: #fff3d6;
}

.comment-badge.is-author {
  color: var(--blue);
  background: var(--blue-soft);
}

.comment-badge.is-reply {
  color: #6f49b6;
  background: #f2ebff;
}

.comment-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 17px;
}

.comment-word-cloud {
  min-height: 0;
  flex: 1;
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 12px;
  background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), transparent 58%);
}

.comment-cloud-word {
  position: absolute;
  left: var(--cloud-x);
  top: var(--cloud-y);
  z-index: var(--cloud-layer);
  display: block;
  max-width: 52%;
  color: var(--text);
  padding: 0;
  font-family: inherit;
  font-size: var(--cloud-size);
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--cloud-rotation));
  transition: transform 160ms ease, opacity 160ms ease;
}

.comment-cloud-word:hover {
  opacity: 0.72;
  transform: translate(-50%, -50%) rotate(var(--cloud-rotation)) scale(1.06);
}

.comment-cloud-word.is-active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.comment-cloud-word:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.comment-cloud-word.weight-1 { font-weight: 500; }
.comment-cloud-word.weight-2 { font-weight: 500; }
.comment-cloud-word.weight-3 { font-weight: 600; }
.comment-cloud-word.weight-4 { font-weight: 650; }
.comment-cloud-word.weight-5 { font-weight: 700; }
.comment-cloud-word.is-core { font-weight: 750; letter-spacing: 0.02em; }
.comment-cloud-word.tone-1 { color: #0057ff; }
.comment-cloud-word.tone-2 { color: #2f6bdc; }
.comment-cloud-word.tone-3 { color: #16a085; }
.comment-cloud-word.tone-4 { color: #7656c9; }
.comment-cloud-word.tone-5 { color: #e58a17; }
.comment-cloud-word.tilt-right { rotate: 3deg; }
.comment-cloud-word.tilt-left { rotate: -3deg; }

.comment-word-cloud.is-measuring .comment-cloud-word {
  visibility: hidden;
}

.comment-word-cloud.is-layout-ready .comment-cloud-word {
  visibility: visible;
}

.comment-empty {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 24px;
  color: var(--text-3);
  text-align: center;
}

.comment-empty strong {
  color: var(--text-2);
}

.cloud-empty {
  width: 100%;
}

.deep-section {
  overflow: hidden;
}

.deep-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.deep-summary {
  margin: -2px 0 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 22px;
}

.growth-path-stages {
  display: grid;
  gap: 16px;
}

.growth-stage-report {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.growth-stage-report.is-breakout {
  background: linear-gradient(135deg, #f4f8ff 0%, #fff 72%);
  border-color: #b9d4ff;
}

.growth-stage-head {
  display: grid;
  grid-template-columns: 34px minmax(150px, 0.8fr) minmax(430px, 1.7fr);
  align-items: start;
  gap: 12px;
}

.growth-stage-heading {
  min-width: 0;
}

.stage-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #e9f1ff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.growth-stage-report.is-breakout .stage-index {
  color: #fff;
  background: var(--blue);
}

.growth-stage-kicker {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.growth-stage-heading h3,
.deep-insight-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
}

.growth-stage-heading p {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.growth-stage-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.growth-stage-metrics > div {
  min-width: 0;
  padding: 9px 10px;
  background: #f8faff;
  border: 1px solid #e4ecf8;
  border-radius: 8px;
}

.growth-stage-metrics span,
.growth-stage-metrics strong {
  display: block;
}

.growth-stage-metrics span {
  color: var(--text-3);
  font-size: 11px;
  line-height: 16px;
}

.growth-stage-metrics strong {
  margin-top: 2px;
  color: var(--blue);
  font-size: 13px;
  line-height: 19px;
}

.growth-stage-conclusion {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding: 12px 13px;
  background: #f2f7ff;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
}

.growth-stage-conclusion > span,
.growth-stage-analysis section > span,
.growth-stage-evidence-head span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.growth-stage-conclusion strong {
  color: #173968;
  font-size: 13px;
  line-height: 21px;
}

.growth-stage-analysis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.growth-stage-analysis section {
  min-width: 0;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.growth-stage-analysis p {
  margin: 5px 0 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.growth-stage-evidence {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.growth-stage-evidence-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.growth-stage-evidence-head div,
.growth-stage-evidence-head strong {
  display: block;
}

.growth-stage-evidence-head strong {
  margin-top: 1px;
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
}

.growth-stage-evidence-head small {
  color: var(--text-3);
  font-size: 11px;
  line-height: 17px;
  text-align: right;
}

.growth-stage-evidence-compact {
  align-items: center;
}

.growth-stage-evidence-compact small {
  display: block;
  margin-top: 3px;
  text-align: left;
}

.launch-method-report {
  display: grid;
  gap: 12px;
}

.launch-method-headline {
  padding: 15px 16px;
  background: linear-gradient(110deg, #f2f7ff, #fbfdff 72%);
  border: 1px solid #c9ddff;
  border-radius: var(--radius-md);
}

.launch-method-headline span,
.launch-method-step > .launch-method-title > span,
.launch-method-content section > span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
}

.launch-method-headline strong {
  display: block;
  margin-top: 4px;
  color: #143a74;
  font-size: 15px;
  line-height: 24px;
}

.launch-method-steps {
  display: grid;
  gap: 10px;
}

.launch-method-step {
  display: grid;
  grid-template-columns: 34px 220px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.launch-method-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #eaf2ff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.launch-method-title h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
}

.launch-method-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.launch-method-content section {
  min-width: 0;
  padding: 10px 11px;
  background: #fafcff;
  border: 1px solid #e3ebf7;
  border-radius: 8px;
}

.launch-method-content p {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.launch-method-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 10px 13px;
  color: var(--text-3);
  background: #fafcff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 19px;
}

.launch-method-boundary strong {
  color: #7a6540;
  font-weight: 600;
}

.propagation-grid,
.deep-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Each column contains a different amount of evidence. Do not stretch the
   shorter card to the height of the longer account-analysis card. */
.propagation-grid {
  align-items: start;
}

.propagation-card,
.deep-insight-card {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.propagation-card.evidence-card {
  background: linear-gradient(145deg, #f9fbff, #ffffff 76%);
  border-color: var(--blue-soft);
}

.deep-card-kicker {
  display: block;
  color: var(--blue);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.trigger-list,
.evidence-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.trigger-row {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.trigger-row:first-child {
  border-top: 0;
}

.trigger-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trigger-row-copy {
  min-width: 0;
}

.trigger-row strong,
.trigger-row span {
  display: block;
}

.trigger-row strong {
  color: var(--text);
  font-size: 13px;
  line-height: 19px;
}

.trigger-row span {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.trigger-row small {
  display: block;
  margin-top: 7px;
  color: #315d9f;
  font-size: 12px;
  line-height: 19px;
}

.trigger-row em,
.deep-card-head em {
  flex: 0 0 auto;
  max-width: 44%;
  padding: 3px 7px;
  overflow: hidden;
  color: #137b61;
  background: #effbf6;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-list p {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  margin: 0;
  padding: 10px 0;
  color: var(--text-2);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 19px;
}

.evidence-list p:first-child {
  border-top: 0;
}

.evidence-list i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--panel-soft);
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.propagation-conclusion {
  margin-top: 12px;
}

.propagation-conclusion-card {
  padding: 13px;
  background: #f4f8ff;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
}

.propagation-conclusion-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
}

.propagation-conclusion-card > strong {
  display: block;
  color: #123b78;
  font-size: 14px;
  line-height: 21px;
}

.propagation-route {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}

.propagation-route-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
}

.propagation-route-item > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #e4efff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.propagation-route-item small,
.propagation-route-item b,
.propagation-route-item p {
  display: block;
}

.propagation-route-item small {
  color: #5776a8;
  font-size: 11px;
  line-height: 16px;
}

.propagation-route-item b {
  margin-top: 1px;
  color: var(--text);
  font-size: 12px;
  line-height: 18px;
}

.propagation-route-item p,
.propagation-boundary {
  margin: 3px 0 0;
  color: var(--text-3);
  font-size: 11px;
  line-height: 17px;
}

.propagation-boundary {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #dbe8ff;
}

.deep-insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.benchmark-insight-conclusion {
  margin: -2px 0 14px;
}

.benchmark-insight-conclusion-card {
  padding: 15px 16px;
  background: linear-gradient(110deg, #f2f7ff 0%, #f9fbff 72%, #fff 100%);
  border: 1px solid #cee0ff;
  border-radius: var(--radius-md);
}

.benchmark-insight-conclusion-card > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.benchmark-insight-conclusion-card > div:first-child span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.benchmark-insight-conclusion-card strong {
  color: #123b78;
  font-size: 14px;
  line-height: 21px;
}

.benchmark-insight-conclusion-card p {
  margin: 7px 0 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 20px;
}

.benchmark-conclusion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.benchmark-conclusion-tags span {
  max-width: 100%;
  padding: 3px 8px;
  overflow: hidden;
  color: #315d9f;
  background: #fff;
  border: 1px solid #d8e7ff;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benchmark-data-boundary {
  margin-top: 12px;
  padding: 10px 13px;
  background: #fafcff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.benchmark-boundary-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 19px;
}

.benchmark-boundary-copy strong {
  color: #7a6540;
  font-size: 12px;
}

.benchmark-boundary-copy.is-ready strong {
  color: #137b61;
}

.deep-insight-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, #fff, #fbfcff);
}

.deep-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deep-card-head h3 {
  margin-top: 2px;
}

.deep-card-summary {
  min-height: 0;
  margin: 12px 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 20px;
}

.deep-card-list {
  display: grid;
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--line-soft);
}

.deep-card-list > div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.deep-card-list > div:last-child {
  border-bottom: 0;
}

.deep-card-list strong {
  color: var(--text);
  font-size: 12px;
  line-height: 18px;
}

.deep-card-list span,
.deep-card-list small {
  color: var(--blue);
  font-size: 12px;
  line-height: 18px;
}

.deep-card-list small {
  color: var(--text-3);
}

.deep-empty {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  color: var(--text-3);
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.deep-empty strong {
  color: var(--text-2);
}

.feedback-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feedback-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 52px;
  gap: 24px;
  padding: 16px;
  min-height: 57px;
  border-bottom: 1px solid var(--line);
}

.feedback-row:last-child {
  border-bottom: 0;
}

.feedback-row h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-row h3::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--line-soft);
}

.feedback-row p {
  margin-bottom: 0;
  color: var(--text-2);
  line-height: 20px;
}

.feedback-copy {
  min-width: 0;
}

.feedback-detail {
  display: none;
  margin-top: 12px;
  padding: 12px;
  color: var(--text-2);
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.feedback-row.is-open .feedback-detail {
  display: grid;
  gap: 10px;
}

.feedback-detail-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 4px;
  line-height: 20px;
}

.feedback-detail-block strong {
  color: var(--blue);
  font-weight: 600;
}

.feedback-detail-block span {
  grid-column: 2;
}

.detail-toggle {
  width: 52px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  align-self: start;
  justify-self: end;
  padding: 0;
  color: var(--text-2);
  background: transparent;
  border: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.detail-toggle:hover {
  color: var(--blue);
}

.detail-toggle i {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.detail-toggle i::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.detail-toggle.is-open i::before {
  left: 6px;
  top: 4px;
  transform: rotate(45deg);
}

.metric-card,
.data-card .metric-card {
  min-height: 68px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.metric-card span {
  display: block;
  color: var(--text-3);
  line-height: 20px;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 20px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(380px, 421px) auto;
  align-items: center;
  gap: 16px;
}

.overview-account {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.overview-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #c6dcff;
  font-size: 24px;
  font-weight: 700;
}

.overview-avatar.has-image {
  background: #fff;
  border-color: var(--line);
}

.overview-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.overview-avatar.has-image span {
  display: none;
}

.overview-copy {
  min-width: 0;
}

.overview-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 4px;
  overflow: hidden;
}

.overview-name-row strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-name-row em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 12px;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
}

.overview-copy p {
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 12px;
  min-width: 0;
}

.overview-metric {
  min-height: 68px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.overview-metric span,
.overview-metric strong {
  display: block;
  font-size: 14px;
  line-height: 20px;
}

.overview-metric span {
  color: var(--text-3);
}

.overview-metric strong {
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

.overview-evidence {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.overview-evidence i {
  position: relative;
  width: 20px;
  height: 20px;
}

.overview-evidence i::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.template-metric strong,
.template-row strong,
.template-row .content-title,
.template-row .analysis-text {
  color: var(--text-3);
}

.growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 24px;
  align-items: stretch;
}

.growth-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.growth-switch button {
  min-width: 56px;
  height: 28px;
  padding: 0 12px;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 20px;
}

.growth-switch button.active {
  color: #fff;
  background: var(--blue);
}

.chart-card {
  min-height: 241px;
  position: relative;
  overflow: visible;
  border-radius: var(--radius-md);
  background:
    linear-gradient(#e5e6eb 1px, transparent 1px) 0 49px / 100% 50px,
    linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), #e5e6eb calc(25% - 1px), #e5e6eb 25%, transparent 25%) 0 0 / 100% 100%,
    var(--panel);
}

.growth-chart {
  position: absolute;
  inset: 16px 16px 28px 38px;
  overflow: visible;
  z-index: 1;
}

.growth-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.growth-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0052d9;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  cursor: default;
  z-index: 1;
}

.growth-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.growth-dot:hover,
.growth-dot:focus,
.growth-dot:focus-within {
  z-index: 8;
}

.growth-dot.template-dot {
  background: #c9cdd4;
}

.growth-dot-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 80;
  width: max-content;
  max-width: 220px;
  padding: 9px 11px 10px;
  color: var(--text-2);
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: left;
  white-space: normal;
  transform: translate(-50%, 4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.growth-dot-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-right: 1px solid #e5e6eb;
  border-bottom: 1px solid #e5e6eb;
  transform: translateX(-50%) rotate(45deg);
}

.growth-dot.is-tooltip-below .growth-dot-tooltip {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translate(-50%, -4px);
}

.growth-dot.is-tooltip-below .growth-dot-tooltip::after {
  bottom: auto;
  top: -5px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid #e5e6eb;
  border-top: 1px solid #e5e6eb;
}

.growth-dot:hover .growth-dot-tooltip,
.growth-dot:focus .growth-dot-tooltip,
.growth-dot:focus-within .growth-dot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.growth-dot.is-tooltip-below:hover .growth-dot-tooltip,
.growth-dot.is-tooltip-below:focus .growth-dot-tooltip,
.growth-dot.is-tooltip-below:focus-within .growth-dot-tooltip {
  transform: translate(-50%, 0);
}

.growth-dot-tooltip > strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.growth-dot-tooltip-date {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}

.growth-dot-tooltip-metric {
  display: block;
  color: var(--text-2);
  font-size: 11px;
  line-height: 17px;
}

.growth-dot-tooltip-metric.is-primary {
  color: var(--blue);
  font-weight: 500;
}

.data-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.key-data-title {
  margin-bottom: 4px;
}

.key-data-title strong {
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.key-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.key-data-card {
  min-height: 66px;
  padding: 11px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.key-data-card span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  line-height: 16px;
}

.key-data-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.reason-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(360px, 1fr);
  gap: 24px;
  align-items: stretch;
  overflow: visible;
}

.reason-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(128px, 1fr) 112px minmax(128px, 1fr);
  grid-template-rows: repeat(3, minmax(74px, auto));
  gap: 14px 20px;
  align-items: stretch;
  width: min(640px, 100%);
  min-height: 250px;
  margin: 0;
  overflow: visible;
}

.reason-node {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.reason-node.has-tooltip {
  cursor: default;
}

.reason-node.has-tooltip:hover,
.reason-node.has-tooltip:focus,
.reason-node.has-tooltip:focus-within {
  z-index: 82;
}

.reason-node strong,
.reason-node-detail {
  display: block;
  overflow-wrap: anywhere;
  word-break: normal;
}

.reason-node strong {
  color: var(--text);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}

.reason-node-detail {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.reason-node-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 90;
  width: min(360px, 92vw);
  max-width: 360px;
  padding: 10px 12px 11px;
  color: var(--text-2);
  text-align: left;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: normal;
  transform: translate(-50%, 4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
}

.reason-node-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #fff;
  border-right: 1px solid #e5e6eb;
  border-bottom: 1px solid #e5e6eb;
  transform: translateX(-50%) rotate(45deg);
}

.reason-node.is-tooltip-below .reason-node-tooltip {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translate(-50%, -4px);
}

.reason-node.is-tooltip-below .reason-node-tooltip::after {
  bottom: auto;
  top: -5px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid #e5e6eb;
  border-top: 1px solid #e5e6eb;
}

.reason-node.has-tooltip:hover .reason-node-tooltip,
.reason-node.has-tooltip:focus .reason-node-tooltip,
.reason-node.has-tooltip:focus-within .reason-node-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.reason-node-tooltip > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.reason-node-tooltip > span,
.reason-node-tooltip-body {
  display: block;
  overflow: visible;
  color: var(--text-2);
  font-size: 12px;
  line-height: 18px;
  white-space: normal;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  text-overflow: clip;
}

.reason-node-float-tooltip {
  position: fixed;
  z-index: 120;
  width: min(380px, calc(100vw - 24px));
  max-width: 380px;
  padding: 10px 12px 11px;
  color: var(--text-2);
  text-align: left;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18);
  pointer-events: none;
}

.reason-node-float-tooltip > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.reason-node-float-tooltip .reason-node-tooltip-body,
.reason-node-float-tooltip > span {
  display: block;
  overflow: visible;
  color: var(--text-2);
  font-size: 12px;
  line-height: 18px;
  white-space: normal;
  word-break: break-word;
}

.reason-node.left-top {
  grid-column: 1;
  grid-row: 1;
}

.reason-node.left-mid {
  grid-column: 1;
  grid-row: 2;
}

.reason-node.left-bottom {
  grid-column: 1;
  grid-row: 3;
}

.reason-node.right-top {
  grid-column: 3;
  grid-row: 1;
}

.reason-node.right-mid {
  grid-column: 3;
  grid-row: 2;
}

.reason-node.right-bottom {
  grid-column: 3;
  grid-row: 3;
}

.reason-core {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  z-index: 1;
  width: 112px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.reason-lines {
  display: none;
}

.reason-lines path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.reason-card {
  min-height: 250px;
  padding: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-md);
}

.reason-card h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  line-height: 20px;
}

.reason-card p {
  margin: 8px 0 0;
  color: var(--text-2);
  line-height: 20px;
}

.reason-card > strong {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 14px;
  line-height: 20px;
}

.copy-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--text-2);
  line-height: 20px;
}

.content-table {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.table-head,
.content-row {
  display: grid;
  grid-template-columns: 64px minmax(300px, 1.35fr) 128px 82px minmax(220px, 1fr) 92px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.table-head {
  min-height: 44px;
  color: var(--text-2);
  background: var(--line-soft);
}

.content-row {
  min-height: 85px;
  border-top: 1px solid var(--line-soft);
}

.content-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.content-thumb-wrap {
  position: relative;
  width: 52px;
  height: 54px;
}

.thumb {
  display: block;
  width: 52px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--line-soft);
}

.commerce-cart-badge {
  position: absolute;
  right: -6px;
  bottom: -5px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.commerce-cart-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.content-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 24px;
}

.content-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.analysis-text {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--text-2);
  line-height: 20px;
}

.analysis-text strong {
  color: var(--text);
  font-size: 12px;
  line-height: 18px;
}

.analysis-text span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.content-date,
.content-fans {
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
}

.content-fans {
  color: var(--text);
  font-weight: 500;
}

.home-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 16px;
  max-width: 1200px;
}

.home-panel,
.panel-card {
  padding: 16px;
}

.home-metrics,
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.home-metrics div,
.quick-grid button {
  min-height: 68px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.home-metrics span {
  color: var(--text-3);
}

.home-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 28px;
}

.quick-grid button {
  text-align: left;
  color: var(--text);
}

.stack {
  display: grid;
  gap: 16px;
}

.account-list,
.result-panel {
  min-height: 260px;
}

.account-list {
  display: grid;
  gap: 12px;
}

.account-item,
.history-item,
.mini-card {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.account-item strong,
.history-item strong {
  display: block;
  line-height: 20px;
}

.account-item span,
.history-item span,
.mini-card span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  line-height: 20px;
}

.account-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.account-item-actions button {
  flex: 1;
}

.prediction-account-use {
  width: 100%;
}

.form-help {
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 20px;
}

.prediction-account-facts {
  padding: 10px 12px;
  color: var(--text-2);
  background: var(--blue-soft);
  border: 1px solid #d4e4ff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 20px;
}


.result-panel:empty::before {
  content: "暂无结果";
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--text-3);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.result-list li {
  padding: 10px 12px;
  color: var(--text-2);
  background: var(--bg);
  border-radius: var(--radius-sm);
  line-height: 20px;
}

.insight-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
}

.ai-score-card {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.spark {
  color: var(--blue);
  font-size: 20px;
  line-height: 28px;
}

.score {
  margin-top: 14px;
}

.score strong {
  font-size: 72px;
  line-height: 64px;
  font-weight: 500;
}

.score span {
  color: var(--text-3);
  font-size: 20px;
  line-height: 28px;
}

.score-bar {
  height: 9px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line-soft);
}

.score-bar i {
  display: block;
  width: 88%;
  height: 100%;
  background: var(--blue);
}

.insight-section {
  display: grid;
  gap: 12px;
}

.insight-section p {
  min-height: 64px;
  margin-bottom: 0;
  color: var(--text-2);
  line-height: 20px;
}

.insight-list {
  display: grid;
  gap: 16px;
}

.insight-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.check-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #f4fff5;
  border: 1px solid var(--green-soft);
  border-radius: 50%;
}

.export-button {
  width: 100%;
}

.recommendation-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow);
}

.content-breakdown-dialog {
  border: 0;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.16);
}

.content-breakdown-dialog::backdrop {
  background: rgba(29, 33, 41, 0.46);
}

.content-breakdown-card {
  width: min(980px, calc(100vw - 32px));
  max-height: min(86vh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.content-breakdown-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.content-breakdown-eyebrow,
.content-section-kicker {
  display: block;
  color: var(--blue);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.content-breakdown-card h2 {
  margin: 3px 0 0;
  color: #172b4d;
  font-size: 22px;
  line-height: 30px;
}

.content-breakdown-card > header p {
  margin: 5px 0 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 21px;
}

.content-breakdown-body {
  min-height: 0;
  overflow: auto;
}

.content-breakdown-baseline {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.55fr);
  gap: 20px;
  align-items: center;
  padding: 16px 26px;
  background: #edf5ff;
  border-bottom: 1px solid #cfe1ff;
}

.content-breakdown-baseline > div:first-child strong,
.content-breakdown-baseline > div:first-child span {
  display: block;
}

.content-breakdown-baseline > div:first-child strong {
  color: #154a9d;
  font-size: 14px;
  line-height: 21px;
}

.content-breakdown-baseline > div:first-child span {
  margin-top: 4px;
  color: #58709c;
  font-size: 12px;
  line-height: 19px;
}

.content-breakdown-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.content-breakdown-metrics > div {
  min-width: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #cfe1ff;
  border-radius: 7px;
}

.content-breakdown-metrics span,
.content-breakdown-metrics strong {
  display: block;
}

.content-breakdown-metrics span {
  color: #60759a;
  font-size: 11px;
  line-height: 16px;
}

.content-breakdown-metrics strong {
  margin-top: 2px;
  overflow: hidden;
  color: #0a56d8;
  font-size: 18px;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-breakdown-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  gap: 18px;
  padding: 20px 26px 26px;
}

.content-evidence-panel,
.content-learning-panel > section {
  border: 1px solid #d8e5f7;
  border-radius: 8px;
  background: #fff;
}

.content-evidence-panel {
  padding: 18px;
}

.content-evidence-panel h3,
.content-learning-panel h3 {
  margin: 3px 0 10px;
  color: #172b4d;
  font-size: 16px;
  line-height: 24px;
}

.content-evidence-title {
  margin: 0;
  color: #172b4d;
  font-size: 16px;
  line-height: 25px;
  font-weight: 650;
}

.content-evidence-copy {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 23px;
  white-space: pre-wrap;
}

.content-evidence-copy.is-missing {
  padding: 10px 12px;
  border-radius: 6px;
  background: #f7faff;
  color: #62718a;
}

.content-comment-evidence {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.content-comment-evidence > strong {
  display: block;
  color: #0a56d8;
  font-size: 13px;
  line-height: 20px;
}

.content-comment-evidence > span,
.content-comment-evidence li {
  color: var(--text-3);
  font-size: 13px;
  line-height: 21px;
}

.content-comment-evidence ul,
.content-learning-panel ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.content-comment-evidence li::before,
.content-learning-panel li::before {
  content: "•";
  margin-right: 7px;
  color: var(--blue);
}

.content-learning-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.content-learning-panel > section {
  padding: 16px;
}

.content-learning-panel li,
.content-learning-panel p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 22px;
}

.content-deep-breakdown-host {
  border-top: 1px solid var(--line-soft);
}

.content-deep-breakdown {
  padding: 18px 26px 24px;
  background: #f8fbff;
}

.content-deep-breakdown.is-loading,
.content-deep-breakdown.is-failed {
  display: grid;
  gap: 10px;
}

.content-deep-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.content-deep-head strong {
  display: block;
  color: #154a9d;
  font-size: 15px;
  line-height: 22px;
}

.content-deep-head span {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.content-deep-progress {
  height: 6px;
  border-radius: 999px;
  background: #dbe8ff;
  overflow: hidden;
}

.content-deep-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7bff, #5aa2ff);
}

.content-deep-thesis {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 22px;
}

.content-deep-timeline {
  margin-top: 14px;
  padding-top: 8px;
}

.content-deep-timeline .video-timeline-item {
  margin-bottom: 14px;
}

.content-deep-timeline .video-frame {
  max-width: 220px;
}

.recommendation-dialog::backdrop {
  background: rgba(29, 33, 41, 0.42);
}

.recommendation-card {
  width: min(760px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.recommendation-card header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.recommendation-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.recommendation-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.recommendation-card header p {
  margin: 4px 0 0;
  color: var(--text-3);
  line-height: 20px;
}

.recommendation-body {
  min-height: 0;
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
  overflow: auto;
}

.recommendation-section {
  padding: 14px 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.recommendation-section h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.recommendation-dialog.is-replication-recommendation .recommendation-card {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
}

.recommendation-dialog.is-replication-recommendation .recommendation-card h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
}

.recommendation-dialog.is-replication-recommendation .recommendation-body {
  gap: 16px;
  padding: 20px 24px 24px;
}

.replication-ai-baseline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f1fbf3;
  border: 1px solid #ccebd3;
  border-radius: 8px;
}

.replication-ai-baseline div {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #dcefe0;
  border-radius: 6px;
}

.replication-ai-baseline span,
.replication-ai-baseline strong {
  display: block;
}

.replication-ai-baseline span {
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.replication-ai-baseline strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
}

.replication-ai-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 14px;
}

.replication-ai-modal-section {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.replication-ai-modal-section.is-primary,
.replication-ai-modal-section.is-boundary {
  background: #f7fcf8;
  border-color: #d6eddc;
}

.replication-ai-modal-section.is-wide {
  grid-column: 1 / -1;
}

.replication-ai-modal-section > span {
  color: var(--green);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.replication-ai-modal-section h3 {
  margin: 4px 0 10px;
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.replication-ai-modal-section p,
.replication-ai-modal-section li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

.replication-ai-modal-section p {
  margin: 0;
}

.replication-ai-modal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.replication-ai-evidence-list {
  display: grid;
  gap: 10px;
}

.replication-ai-evidence-item {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
}

.replication-ai-evidence-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 20px;
}

.recommendation-dialog.is-replication-recommendation .recommendation-card {
  width: min(1200px, calc(100vw - 40px));
  max-height: min(94vh, 860px);
}

.recommendation-dialog.is-replication-recommendation .recommendation-card > header {
  padding: 16px 24px 12px;
}

.recommendation-dialog.is-replication-recommendation .recommendation-card h2 {
  font-size: 26px;
  line-height: 34px;
}

.recommendation-dialog.is-replication-recommendation .recommendation-body {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 24px 20px;
  overflow: hidden;
}

.replication-modal-baseline {
  display: grid;
  grid-template-columns: 145px repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 14px 16px;
  background: #f6faff;
  border: 1px solid #d5e3ff;
  border-radius: 8px;
}

.replication-modal-baseline > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid #dfe7f5;
}

.replication-modal-baseline > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.replication-modal-baseline > div > span {
  color: var(--text-3);
  font-size: 11px;
}

.replication-modal-baseline > div > strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replication-modal-baseline .replication-modal-baseline-summary > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.replication-modal-baseline .replication-modal-baseline-summary > strong {
  font-size: 16px;
}

.replication-modal-baseline header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.replication-modal-baseline header strong {
  color: var(--blue);
  font-size: 13px;
}

.replication-modal-baseline header p {
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
}

.replication-modal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.replication-modal-metrics > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #dfe7f5;
  border-radius: 6px;
}

.replication-modal-metrics span {
  color: var(--text-3);
  font-size: 11px;
  white-space: nowrap;
}

.replication-modal-metrics strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replication-modal-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
  gap: 14px;
}

.replication-modal-evidence,
.replication-modal-conclusion,
.replication-modal-boundaries > section,
.replication-modal-boundary-card,
.replication-modal-actions {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.replication-modal-evidence {
  padding: 10px 14px;
}

.replication-modal-evidence > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line-soft);
}

.replication-modal-evidence > header > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.replication-modal-evidence span,
.replication-modal-conclusion > span,
.replication-modal-actions header span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.replication-modal-evidence h3,
.replication-modal-conclusion h3,
.replication-modal-actions h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 22px;
}

.replication-modal-evidence h3 {
  margin: 0;
}

.replication-modal-evidence header small {
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}

.replication-ai-evidence-list {
  display: grid;
  gap: 6px;
}

.replication-ai-evidence-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 10px;
  background: #f8fafc;
  border: 1px solid #eef0f4;
  border-radius: 7px;
}

.replication-ai-evidence-item > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--blue);
  background: #eaf2ff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.replication-ai-evidence-item > div {
  min-width: 0;
}

.replication-ai-evidence-item strong {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 19px;
}

.replication-ai-evidence-item dl {
  display: grid;
  gap: 2px;
  margin: 5px 0 0;
}

.replication-ai-evidence-item dl > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 7px;
}

.replication-ai-evidence-item dt,
.replication-ai-evidence-item dd {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
}

.replication-ai-evidence-item dt {
  color: var(--text-3);
}

.replication-ai-evidence-item dd {
  color: var(--text-3);
}

.replication-ai-evidence-item .is-adaptation dt,
.replication-ai-evidence-item .is-adaptation dd {
  color: var(--blue);
}

.replication-modal-judgement {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.replication-modal-conclusion {
  padding: 14px 16px;
  background: #f6faff;
  border-color: #d5e3ff;
}

.replication-modal-conclusion p {
  margin: 9px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 21px;
}

.replication-modal-boundary-card {
  min-width: 0;
  padding: 14px 16px;
}

.replication-modal-boundary-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

.replication-modal-boundary-card header span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.replication-modal-boundary-card header h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 22px;
}

.replication-modal-boundary-card header small {
  color: var(--text-3);
  font-size: 10px;
  white-space: nowrap;
}

.replication-boundary-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 10px;
}

.replication-boundary-row > b {
  padding-top: 4px;
  color: #079455;
  font-size: 12px;
}

.replication-boundary-row.is-negative > b {
  color: #d92d20;
}

.replication-boundary-tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.replication-boundary-tag,
.replication-boundary-more {
  appearance: none;
  position: relative;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  color: #079455;
  background: #ecfdf3;
  border: 1px solid #c7eed8;
  border-radius: 999px;
  font-size: 11px;
  font-family: inherit;
  line-height: 18px;
  white-space: nowrap;
  cursor: help;
}

.replication-boundary-tags.is-negative .replication-boundary-tag,
.replication-boundary-tags.is-negative .replication-boundary-more {
  color: #d92d20;
  background: #fff4f3;
  border-color: #fecdca;
}

.replication-boundary-tag:focus-visible,
.replication-boundary-more:focus-visible {
  outline: 2px solid rgba(11, 92, 255, 0.24);
  outline-offset: 2px;
}

.replication-boundary-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 24;
  width: 300px;
  padding: 11px 13px 12px;
  color: var(--text-2);
  background: #fff;
  border: 1px solid #d5e3ff;
  border-radius: 9px;
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-align: left;
  white-space: normal;
  transform: translate(-50%, 5px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.replication-boundary-tooltip::after,
.replication-boundary-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid #d5e3ff;
  border-bottom: 1px solid #d5e3ff;
  transform: translateX(-50%) rotate(45deg);
}

.replication-boundary-tooltip > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 11px;
  line-height: 17px;
}

.replication-boundary-tooltip > span {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  line-height: 20px;
}

.replication-boundary-tag:hover .replication-boundary-tooltip,
.replication-boundary-tag:focus .replication-boundary-tooltip,
.replication-boundary-tag:focus-within .replication-boundary-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.replication-boundary-tag:nth-last-child(-n + 2) .replication-boundary-tooltip {
  right: 0;
  left: auto;
  transform: translateY(5px);
}

.replication-boundary-tag:nth-last-child(-n + 2):hover .replication-boundary-tooltip,
.replication-boundary-tag:nth-last-child(-n + 2):focus .replication-boundary-tooltip,
.replication-boundary-tag:nth-last-child(-n + 2):focus-within .replication-boundary-tooltip {
  transform: translateY(0);
}

.replication-boundary-tag:nth-last-child(-n + 2) .replication-boundary-tooltip::after,
.replication-boundary-popover::after {
  right: 18px;
  left: auto;
}

.replication-boundary-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: min(360px, calc(100vw - 80px));
  max-height: 220px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  overflow: auto;
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.replication-boundary-popover strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.replication-boundary-popover i {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  font-style: normal;
  line-height: 19px;
}

.replication-boundary-popover i b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.replication-boundary-popover i span {
  min-width: 0;
}

.replication-boundary-more:hover .replication-boundary-popover,
.replication-boundary-more:focus .replication-boundary-popover,
.replication-boundary-more:focus-within .replication-boundary-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.replication-modal-boundaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.replication-modal-boundaries > section {
  min-width: 0;
  padding: 14px 16px;
}

.replication-modal-boundaries > section > span {
  color: #079455;
  font-size: 12px;
  font-weight: 700;
}

.replication-modal-boundaries > section.is-negative > span {
  color: #d92d20;
}

.replication-modal-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.replication-modal-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 19px;
}

.replication-modal-list li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: #12b76a;
  border-radius: 50%;
}

.replication-modal-list.is-negative li::before {
  content: "×";
  top: 0;
  width: auto;
  height: auto;
  color: #d92d20;
  background: transparent;
  font-weight: 700;
}

.replication-modal-empty {
  margin: 10px 0 0;
  color: var(--text-3);
  font-size: 12px;
}

.replication-modal-actions {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.replication-modal-actions > header {
  display: block;
  padding: 0;
  border: 0;
}

.replication-modal-actions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.replication-modal-actions article {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #eef0f4;
  border-radius: 7px;
}

.replication-modal-actions article > b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 12px;
}

.replication-modal-actions article div {
  min-width: 0;
}

.replication-modal-actions article strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 18px;
}

.replication-modal-actions article p {
  margin: 3px 0 0;
  color: var(--text-3);
  font-size: 11px;
  line-height: 17px;
}

.recommendation-section p {
  margin: 0;
  color: var(--text-2);
  line-height: 22px;
}

.recommendation-section ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.recommendation-section li {
  color: var(--text-2);
  line-height: 22px;
}

.recommendation-section li::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin: 0 8px 2px 0;
  background: var(--blue);
  border-radius: 50%;
}

.settings-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow);
}

.settings-dialog::backdrop {
  background: rgba(29, 33, 41, 0.4);
}

.settings-card {
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 16px;
  padding: 20px;
}

.settings-card menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  background: var(--bg);
  border-radius: var(--radius-sm);
}

@media (max-width: 1480px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .insight-panel {
    position: static;
    max-width: 1200px;
    grid-template-columns: 240px minmax(0, 1fr) minmax(260px, 360px);
  }

  .export-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .sidebar .nav-list {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 0;
    pointer-events: auto;
  }

  .sidebar .nav-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar .nav-item {
    flex: 0 0 auto;
    width: auto;
  }

  .sidebar-footer {
    display: none;
  }

  .sidebar-toggle {
    display: none;
  }

  .account-summary,
  .judge-grid,
  .growth-grid,
  .reason-grid,
  .propagation-grid,
  .deep-insight-grid,
  .two-column,
  .home-grid,
  .overview-grid,
  .insight-panel {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .growth-stage-head {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .growth-stage-metrics {
    grid-column: 1 / -1;
  }

  .launch-method-step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .launch-method-content {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 16px;
  }

  .workspace-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .form-grid,
  .overview-metrics,
  .result-grid,
  .home-metrics,
  .quick-grid,
  .step-row {
    grid-template-columns: 1fr;
  }

  .overview-account {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .overview-avatar {
    width: 60px;
    height: 60px;
  }

  .overview-name-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .summary-brief {
    align-items: flex-start;
    flex-direction: column;
  }

  .judgement-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .judgement-action {
    align-self: center;
  }

  .brief-lines p {
    align-items: flex-start;
  }

  .brief-lines span {
    white-space: normal;
  }

  .step-card::after {
    display: none;
  }

  .comment-insights-grid {
    grid-template-columns: 1fr;
  }

  .comment-capture-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comment-capture-card.is-mode {
    grid-column: 1 / -1;
  }

  .comment-insights-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .deep-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .growth-stage-analysis {
    grid-template-columns: 1fr;
  }

  .launch-method-content {
    grid-template-columns: 1fr;
  }

  .launch-method-boundary {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .growth-stage-evidence-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .growth-stage-evidence-head small {
    text-align: left;
  }

  .comment-source-panel,
  .comment-cloud-panel {
    height: 400px;
  }

  .feedback-row,
  .table-head,
  .content-row {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .content-row {
    align-items: start;
  }

  .content-main {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .content-breakdown-card {
    width: min(100vw - 20px, 980px);
    max-height: 90vh;
  }

  .content-breakdown-card > header {
    padding: 18px 18px 14px;
  }

  .content-breakdown-card h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .content-breakdown-baseline,
  .content-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .content-breakdown-baseline {
    gap: 12px;
    padding: 14px 18px;
  }

  .content-breakdown-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-breakdown-grid {
    gap: 14px;
    padding: 16px 18px 20px;
  }

  .score strong {
    font-size: 52px;
    line-height: 56px;
  }

  .reason-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 10px;
    width: 100%;
    min-height: 0;
    transform: none;
    margin-bottom: 0;
  }

  .reason-node.left-top,
  .reason-node.left-mid,
  .reason-node.left-bottom,
  .reason-node.right-top,
  .reason-node.right-mid,
  .reason-node.right-bottom {
    grid-column: auto;
    grid-row: auto;
  }

  .reason-core {
    grid-column: 1 / -1;
    grid-row: auto;
    order: -1;
    justify-self: stretch;
    width: 100%;
    height: 44px;
  }

  .profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* AI video breakdown: follows the existing Duibiao report visual system. */
.video-report-root {
  width: 100%;
  min-width: 0;
  max-width: none;
}

#videoView {
  max-width: 100%;
  min-width: 0;
}

#videoView .video-timeline-track,
#videoView .video-storyboard-table,
#videoView .video-relation-flow {
  max-width: 100%;
}

#videoView .video-report-tabs,
#videoView .report-card,
#videoView .section-block {
  width: 100%;
  max-width: none;
}

.video-report-root .section-block,
.video-report-root .report-card {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 72px;
}

#videoView.has-report #videoInput {
  display: none;
}

#videoView.has-report #videoInput.is-editing {
  display: block;
  margin-bottom: 16px;
}

.video-report-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 24px;
  max-width: none;
  min-height: 54px;
  margin-bottom: 16px;
  padding: 0 16px;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.video-report-tabs button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 15px 0;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  line-height: 22px;
}

.video-report-tabs button:hover,
.video-report-tabs button.active {
  color: var(--blue);
  background: transparent;
}

.video-report-tabs button.active {
  border-bottom-color: var(--blue);
  font-weight: 500;
}

.video-report-tabs button[hidden] {
  display: none !important;
}

.fission-report-tabs .task-report-tab[hidden],
.replication-report-tabs .task-report-tab[hidden] {
  display: none !important;
}

.video-report-tabs button.is-tab-locked {
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.72;
}

.video-report-tabs button.is-tab-locked:hover {
  color: var(--text-3);
}

.video-section-empty {
  margin: 0;
  padding: 24px 16px;
  color: var(--text-3);
  text-align: center;
}

#videoView.is-video-waiting .video-report-tabs {
  display: none;
}

.video-summary-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
}

.video-cover {
  width: 88px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #c6dcff;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.video-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-summary-copy {
  min-width: 0;
}

.video-summary-copy h2 {
  margin-top: 8px;
  overflow: hidden;
  font-size: 20px;
  line-height: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-summary-copy > p {
  margin: 4px 0 0;
  color: var(--text-3);
}

.video-summary-meta,
.video-overview-findings {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.video-summary-meta > span:not(.status-badge),
.video-overview-findings span {
  padding: 3px 8px;
  color: var(--text-2);
  background: var(--bg);
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
}

.video-overview-findings {
  margin-top: 10px;
}

.video-overview-findings span {
  color: var(--blue);
  background: var(--blue-soft);
}

.video-ai-summary {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-md);
}

.video-ai-summary strong,
.video-card-kicker {
  color: var(--blue);
  font-weight: 600;
}

.video-ai-summary p {
  margin: 0;
  color: var(--text-2);
  line-height: 20px;
}

.video-ai-summary small {
  color: var(--text-3);
}

.video-ai-summary .ghost-button {
  justify-self: start;
  margin-top: 3px;
}

.video-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
}

.video-metric-card {
  position: relative;
  min-height: 106px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.video-metric-card > span,
.video-metric-card > strong,
.video-metric-card > small {
  display: block;
}

.video-metric-card > span {
  color: var(--text-3);
}

.video-metric-card > strong {
  margin-top: 7px;
  color: var(--text);
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.video-metric-card > small {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 15px;
}

.video-metric-card > em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 5px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
}

.video-metric-card.fact > em {
  color: var(--green);
  background: var(--green-soft);
}

.video-visual-progress {
  color: var(--blue) !important;
  font-weight: 500;
}

.video-partial-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  padding: 16px;
  background: #fffaf0;
  border: 1px solid #f3cf8c;
  border-radius: var(--radius);
}

.task-partial-action {
  margin: 0 0 16px;
}

.video-partial-action.is-failed {
  background: #fff5f3;
  border-color: #ffc9c2;
}

.video-partial-action.is-failed strong {
  color: #b42318;
}

.status-badge.source-ai {
  color: #08783e;
  background: #eafaf0;
  border-color: #bde8cc;
}

.status-badge.source-computed,
.status-badge.source-rule {
  color: #875b00;
  background: #fff8e8;
  border-color: #efd89a;
}

.status-badge.source-missing {
  color: #b42318;
  background: #fff0ee;
  border-color: #ffc9c2;
}

.video-partial-action strong {
  color: #9a5b00;
}

.video-partial-action ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: var(--text-2);
}

.video-partial-action p {
  margin: 8px 0 0;
  color: var(--text-3);
}

.video-partial-actions {
  display: grid;
  gap: 7px;
  align-content: center;
}

.video-partial-actions span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  color: var(--text-2);
}

.video-partial-actions small {
  color: var(--text-3);
}

.video-timeline-track {
  overflow-x: auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x proximity;
}

.video-timeline-inner {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(214px, 236px);
  grid-auto-flow: column;
  gap: 14px;
  width: max-content;
  min-width: 100%;
  padding: 0 18px;
}

.video-timeline-inner::before {
  position: absolute;
  top: 21px;
  right: 18px;
  left: 18px;
  z-index: 0;
  height: 2px;
  background: var(--line);
  content: "";
}

.video-timeline-item {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  scroll-snap-align: start;
}

.video-timeline-item.is-open {
  grid-column: span 2;
}

.video-time-marker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.video-time-marker span {
  min-width: 54px;
  padding: 4px 9px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #a8c7ff;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
}

.video-frame {
  overflow: hidden;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.video-frame img,
.video-frame video,
.video-frame-pending {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--line-soft);
}

.video-frame video {
  color: #fff;
}

.video-timeline-item.is-open .video-frame img,
.video-timeline-item.is-open .video-frame video,
.video-timeline-item.is-open .video-frame-pending {
  aspect-ratio: 16 / 9;
}

.video-frame-pending {
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.video-segment-copy {
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.video-stage-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.video-stage-line strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-stage-line em {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: var(--amber);
  background: #fff7e8;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
}

.video-timeline-item.has-media .video-stage-line em {
  color: var(--green);
  background: var(--green-soft);
}

.video-visual-summary {
  display: grid;
  gap: 8px;
  margin: 7px 0 4px;
  color: var(--text-2);
}

.video-visual-beat {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.video-visual-time {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 4px;
  vertical-align: baseline;
}

.video-visual-subject {
  color: #0f766e;
  font-weight: 600;
}

.video-visual-action {
  color: #b45309;
  font-weight: 500;
}

.video-visual-scene {
  color: #6d28d9;
  font-weight: 500;
}

.video-visual-caption {
  color: #be123c;
  font-weight: 600;
}

.video-visual-summary.is-collapsed {
  position: relative;
  max-height: 68px;
  overflow: hidden;
}

.video-visual-summary.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0%), #fff 85%);
  content: "";
  pointer-events: none;
}

.video-visual-toggle {
  display: inline-block;
  margin-bottom: 2px;
  padding: 0;
  font-size: 12px;
  color: var(--blue, #2563eb);
  cursor: pointer;
  background: none;
  border: none;
}

.video-visual-toggle:hover {
  text-decoration: underline;
}

.video-segment-copy > small {
  color: var(--text-3);
  font-size: 11px;
}

.video-segment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
}

.video-segment-toggle i {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.video-timeline-item.is-open .video-segment-toggle i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.video-segment-detail {
  display: none;
  gap: 7px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.video-second-evidence-wrap {
  display: grid;
  gap: 8px;
}

.video-second-evidence {
  display: flex;
  gap: 10px;
  max-height: none;
  padding: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--line-soft);
  border-radius: var(--radius-sm);
  scroll-snap-type: x proximity;
}

.video-second-evidence.is-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  scroll-snap-type: none;
}

.video-second-evidence figure {
  flex: 0 0 112px;
  width: 112px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  scroll-snap-align: start;
}

.video-second-evidence.is-expanded figure {
  flex: initial;
  width: auto;
}

.video-second-evidence figure.is-boundary {
  border-color: #8bb4ff;
  box-shadow: inset 0 0 0 1px #8bb4ff;
}

.video-second-evidence img,
.video-second-evidence figure > span {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.video-second-evidence figure > span {
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 11px;
}

.video-second-evidence figcaption {
  padding: 4px 5px;
  color: var(--text-3);
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-evidence-toggle {
  justify-self: start;
  padding: 0;
  color: var(--blue);
  background: none;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}

.video-evidence-toggle:hover {
  text-decoration: underline;
}

.video-timeline-item.is-open .video-segment-detail {
  display: grid;
}

.video-detail-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  color: var(--text-2);
  line-height: 19px;
}

.video-detail-row strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.video-deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.video-analysis-card,
.video-execution-card {
  min-width: 0;
  padding: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-md);
}

.video-analysis-card.is-empty {
  color: var(--text-3);
  background: var(--bg);
  border-color: var(--line-soft);
}

.video-analysis-rows {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.video-comment-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: start;
}

.video-comment-source,
.video-cluster-card,
.video-relation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.video-comment-source {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.video-panel-head span {
  color: var(--text-3);
}

.video-comment-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 14px;
  scrollbar-width: thin;
  scrollbar-color: #c9d8ee transparent;
}

.video-comment-list > div {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 160ms ease;
}

.video-comment-list > div.is-word-hit {
  margin: 0 -14px;
  padding: 11px 14px;
  background: var(--panel-soft);
}

.video-comment-list p {
  margin: 0;
  line-height: 20px;
}

.video-comment-list small {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
}

.video-empty-copy {
  padding: 20px 0;
  color: var(--text-3);
}

.video-comment-analysis {
  display: grid;
  gap: 12px;
}

.video-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.video-comment-cloud-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff 0%, #f4f8ff 52%, #fbfdff 100%);
  border-color: var(--blue-soft);
}

.video-comment-cloud-card .video-panel-head {
  flex: 0 0 auto;
}

.video-comment-word-cloud {
  flex: 1;
  min-height: 180px;
}

.video-cluster-card {
  padding: 13px;
}

.video-cluster-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.video-cluster-card em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
}

.video-cluster-card > p {
  color: var(--text-2);
}

.video-cluster-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 6px 8px;
  margin: 10px 0;
  padding: 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.video-cluster-card dt {
  color: var(--text-3);
}

.video-cluster-card dd {
  margin: 0;
  color: var(--text-2);
}

.video-cluster-card ul,
.video-execution-card ul,
.video-remake-boundary ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-2);
}

.video-relation-list {
  display: grid;
  gap: 10px;
}

.video-relation-card {
  padding: 13px;
}

.video-relation-flow {
  display: grid;
  grid-template-columns: repeat(11, auto);
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.video-relation-flow > div {
  min-width: 112px;
  padding: 9px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.video-relation-flow small,
.video-relation-flow strong {
  display: block;
}

.video-relation-flow small {
  color: var(--text-3);
}

.video-relation-flow strong {
  margin-top: 4px;
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
}

.video-relation-flow i {
  color: var(--blue);
  font-style: normal;
}

.video-relation-card > p {
  margin: 10px 0 0;
  color: var(--text-2);
}

.video-spread-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.video-spread-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 150px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.video-spread-card > span {
  color: var(--blue);
  font-size: 12px;
}

.video-spread-card > strong {
  line-height: 20px;
  font-weight: 500;
}

.video-spread-card p {
  margin: 0;
  color: var(--text-2);
  line-height: 19px;
}

.video-spread-card small {
  color: var(--text-3);
}

.video-spread-card em {
  margin-top: auto;
  padding: 8px;
  color: var(--text-2);
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  font-style: normal;
  line-height: 18px;
}

.video-remake-boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.video-remake-boundary article {
  padding: 13px;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-md);
}

.video-remake-boundary article:last-child {
  background: #fffaf0;
  border-color: #ffe0a3;
}

.video-remake-boundary span {
  color: var(--blue);
  font-weight: 600;
}

.video-remake-boundary article:last-child span {
  color: #ad6800;
}

.video-storyboard-table {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.video-storyboard-head,
.video-storyboard-table > article {
  display: grid;
  grid-template-columns: 54px 150px minmax(190px, 1fr) minmax(190px, 1fr) minmax(180px, 0.9fr);
  gap: 12px;
  align-items: start;
  padding: 11px 13px;
}

.video-storyboard-head {
  color: var(--text-2);
  background: var(--line-soft);
}

.video-storyboard-table > article {
  border-top: 1px solid var(--line-soft);
  line-height: 20px;
  overflow-wrap: anywhere;
}

.video-storyboard-table > article > strong {
  color: var(--blue);
  text-align: center;
}

.video-storyboard-table b,
.video-storyboard-table small {
  display: block;
}

.video-storyboard-table b {
  font-weight: 500;
}

.video-storyboard-table small {
  margin-top: 3px;
  color: var(--text-3);
  line-height: 17px;
}

.video-execution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.video-boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.video-title-list,
.video-exec-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.video-title-list > div,
.video-exec-item {
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.video-exec-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px 12px;
  align-items: start;
}

.video-exec-main strong,
.video-title-list strong,
.video-exec-main small,
.video-title-list small {
  display: block;
}

.video-exec-main small,
.video-title-list small {
  margin-top: 4px;
  color: var(--text-3);
}

.video-exec-copy,
.video-title-list p,
.video-exec-main > p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 20px;
}

.video-exec-main > p {
  color: var(--amber);
  font-size: 12px;
}

.video-exec-side {
  min-height: 100%;
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
}

.video-exec-meta {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 8px;
  margin: 0;
}

.video-exec-meta dt {
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.video-exec-meta dd {
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 18px;
}

.video-boundary-grid article {
  padding: 13px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.video-boundary-grid strong {
  display: block;
  margin-bottom: 7px;
}

.analysis-waiting-page {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: min(72vh, 760px);
  padding: 24px 16px 40px;
}

.analysis-waiting-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 860px);
  text-align: center;
}

.analysis-waiting-illustration-wrap {
  width: min(100%, 600px);
  aspect-ratio: 3 / 2;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analysis-waiting-illustration-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.analysis-waiting-illustration {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.analysis-waiting-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-1);
  font-size: 24px;
  font-weight: 500;
  line-height: 32px;
}

.analysis-waiting-spark {
  color: #8470ff;
  font-size: 20px;
  line-height: 1;
}

.analysis-waiting-subtitle {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 24px;
}

.analysis-waiting-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 800px);
  margin-top: 32px;
}

.analysis-waiting-progress-track {
  flex: 1;
  height: 8px;
  overflow: hidden;
  background: var(--line-soft, #f1f3f5);
  border-radius: 999px;
}

.analysis-waiting-progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(270deg, #8470ff 0%, rgba(132, 112, 255, 0.8) 100%);
  border-radius: inherit;
  transition: width 240ms ease;
}

.analysis-waiting-percent {
  flex: 0 0 auto;
  min-width: 2.5em;
  color: #8470ff;
  font-size: 14px;
  line-height: 20px;
  text-align: right;
}

.analysis-waiting-status {
  width: min(100%, 800px);
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 20px;
}

.analysis-waiting-tip {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 20px;
}

#launchView.is-launch-waiting .launch-report-root,
#videoView.is-video-waiting #videoResult,
#replicateView.is-replicate-waiting #replicateResult,
#fissionView.is-fission-waiting #fissionResult,
#predictionView.is-prediction-waiting #predictionResult,
#compareView.is-compare-waiting #compareResult {
  width: 100%;
}

.video-loading-report {
  min-height: 480px;
}

.video-loading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-loading-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-loading-head > strong {
  color: var(--blue);
  font-size: 22px;
}

.video-progress-track {
  height: 7px;
  margin-top: 20px;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 999px;
}

.video-progress-track i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 240ms ease;
}

.video-loading-report > p {
  color: var(--text-2);
}

.video-loading-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.video-loading-grid article {
  display: grid;
  gap: 9px;
}

.video-loading-grid div,
.video-loading-grid span {
  display: block;
  background: linear-gradient(90deg, #f2f3f5 25%, #fafafa 50%, #f2f3f5 75%) 0 0 / 200% 100%;
  border-radius: var(--radius-sm);
  animation: video-loading-shimmer 1.4s linear infinite;
}

.video-loading-grid div {
  aspect-ratio: 9 / 16;
}

.video-loading-grid span {
  height: 16px;
}

.video-loading-grid span:last-child {
  width: 68%;
}

@keyframes video-loading-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 1180px) {
  .video-summary-card,
  .video-comment-layout {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .video-comment-source {
    grid-column: 1 / -1;
  }

  .video-comment-list {
    max-height: 360px;
    flex: none;
  }

  .video-ai-summary,
  .video-comment-analysis {
    grid-column: 1 / -1;
  }

  .video-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .video-summary-card,
  .video-comment-layout,
  .video-deep-grid,
  .video-cluster-grid,
  .video-remake-boundary,
  .video-execution-grid,
  .video-boundary-grid {
    grid-template-columns: 1fr;
  }

  .video-cover {
    width: 72px;
    height: 92px;
  }

  .video-summary-copy h2 {
    white-space: normal;
  }

  .video-ai-summary,
  .video-comment-analysis {
    grid-column: auto;
  }

  .video-metric-grid,
  .video-spread-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-timeline-item.is-open {
    grid-column: span 1;
  }

  .video-timeline-item.is-open .video-frame img,
  .video-timeline-item.is-open .video-frame video,
  .video-timeline-item.is-open .video-frame-pending {
    aspect-ratio: 9 / 16;
  }

  .video-detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .video-exec-item {
    grid-template-columns: 1fr;
  }

  .video-exec-side {
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .video-storyboard-head {
    display: none;
  }

  .video-storyboard-table > article {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .video-storyboard-table > article > div {
    grid-column: 2;
  }

  .video-loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prediction-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* Standalone task pages: input and report are separate screens. */
body.standalone-task-view .work-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.standalone-task-view .insight-panel.generated-report {
  display: none;
}

body.video-detail-view .work-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.video-detail-view .insight-panel.generated-report {
  display: none;
}

.task-entry-page[hidden],
.task-report-page[hidden] {
  display: none !important;
}

.task-entry-page,
.task-report-page,
.task-report-tabs,
.task-report-layout {
  width: 100%;
}

.task-entry-page .launch-entry {
  max-width: none;
  margin-bottom: 0;
}

.task-entry-page .primary-button {
  width: 100%;
}

.task-report-tabs {
  position: sticky;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 8px 16px;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.task-report-tabs > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.replication-report-tabs,
.prediction-report-tabs {
  justify-content: flex-start;
  gap: 24px;
  min-height: 54px;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.replication-report-tabs::-webkit-scrollbar,
.prediction-report-tabs::-webkit-scrollbar {
  display: none;
}

.task-report-tab {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 15px 0;
  color: var(--text-2);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  line-height: 22px;
}

.task-report-tab:hover,
.task-report-tab.active {
  color: var(--blue);
}

.task-report-tab.active {
  border-bottom-color: var(--blue);
  font-weight: 500;
}

.replication-report-root {
  width: 100%;
  min-width: 0;
  max-width: none;
  display: grid;
  gap: 16px;
}

.replication-report-root .replication-report-anchor,
.replication-report-anchor {
  scroll-margin-top: 72px;
}

.replication-execution-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.replication-ai-advice {
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-lg);
}

.replication-ai-advice > div {
  min-width: 0;
}

.replication-ai-advice strong {
  color: var(--blue);
  font-size: 14px;
  line-height: 20px;
}

.replication-ai-advice p {
  margin: 8px 0 0;
  color: var(--text-2);
  line-height: 22px;
}

.replication-decision-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.replication-decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.replication-decision-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.replication-decision-title h3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.replication-decision-title > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 14px;
  color: #079455;
  background: #ecfdf3;
  border: 1px solid #c7eed8;
  border-radius: 999px;
  font-size: 13px;
}

.replication-decision-title > span i {
  width: 8px;
  height: 8px;
  background: #12b76a;
  border-radius: 50%;
}

.replication-decision-title > span.is-warning {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}

.replication-decision-title > span.is-warning i {
  background: #f79009;
}

.replication-decision-head > p {
  margin: 0;
  color: var(--text-3);
  font-size: 13px;
}

.replication-decision-main {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  gap: 20px;
}

.replication-decision-score {
  display: grid;
  align-content: center;
  min-height: 168px;
  padding: 18px 20px;
  background: #f8faff;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
}

.replication-decision-score > span {
  color: var(--text-3);
  font-size: 13px;
}

.replication-decision-score > div:not(.replication-score-track) {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 5px;
}

.replication-decision-score strong {
  color: var(--text);
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
}

.replication-decision-score small {
  color: var(--text-3);
  font-size: 15px;
}

.replication-score-track {
  height: 7px;
  margin: 7px 0 13px;
  overflow: hidden;
  background: #e8edf5;
  border-radius: 999px;
}

.replication-score-track i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.replication-decision-score > b {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.replication-decision-advice {
  min-width: 0;
  min-height: 168px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: 14px;
}

.replication-decision-advice > div {
  min-width: 0;
}

.replication-decision-advice > div > strong {
  color: var(--blue);
  font-size: 14px;
}

.replication-decision-advice h4 {
  margin: 13px 0 7px;
  color: var(--text);
  font-size: 17px;
  line-height: 25px;
}

.replication-decision-advice p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text-2);
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.replication-decision-advice .brief-action {
  align-self: center;
  white-space: nowrap;
}

.replication-decision-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.replication-decision-facts article {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 9px 14px;
  background: #f8fafc;
  border: 1px solid #e8ebf0;
  border-radius: 11px;
}

.replication-decision-facts article.is-transfer {
  background: #f7fcf9;
  border-color: #d8f0e2;
}

.replication-decision-facts article.is-output {
  background: #fffaf0;
  border-color: #f5e5bd;
}

.replication-decision-facts span {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: 11px;
}

.replication-decision-facts strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replication-decision-facts .is-transfer strong {
  color: #079455;
}

.replication-decision-facts .is-output strong {
  color: #b76e00;
}

.replication-decision-facts small {
  overflow: hidden;
  color: var(--text-3);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replication-decision-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  background: #f5f8ff;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
}

.replication-decision-hero .replication-decision-score {
  min-height: 150px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  border-right: 1px solid #dbe5f7;
  border-radius: 0;
}

.replication-decision-hero .replication-decision-advice {
  min-height: 150px;
  display: block;
  padding: 18px 30px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.replication-decision-hero .replication-decision-advice h4 {
  margin: 10px 0 6px;
  font-size: 19px;
  line-height: 28px;
}

.replication-decision-hero .replication-decision-advice p {
  display: block;
  overflow: visible;
  margin: 0;
  color: var(--text-2);
  line-height: 22px;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.replication-decision-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #dbe5f7;
}

.replication-decision-context span {
  color: var(--text-2);
  font-size: 11px;
  line-height: 18px;
}

.replication-decision-context b {
  margin-right: 6px;
  color: var(--text-3);
  font-weight: 500;
}

.replication-decision-output {
  align-self: center;
  min-width: 0;
  margin: 18px 20px 18px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #d9e7ff;
  border-radius: 10px;
}

.replication-decision-output span {
  display: block;
  color: var(--text-3);
  font-size: 11px;
}

.replication-decision-output strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
}

.replication-decision-output p {
  margin: 7px 0 0;
  color: var(--text-3);
  font-size: 11px;
  line-height: 18px;
}

.replication-decision-section-head h4 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
}

.replication-decision-section-head p {
  margin: 3px 0 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 19px;
}

.replication-decision-details {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(340px, 1fr);
  align-items: stretch;
  gap: 16px;
}

.replication-decision-evidence,
.replication-decision-boundary {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.replication-decision-evidence {
  padding: 0 18px;
}

.replication-decision-evidence-item {
  display: grid;
  grid-template-columns: 30px minmax(90px, 120px) minmax(170px, 0.75fr) 22px minmax(240px, 1.25fr);
  align-items: start;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}

.replication-decision-evidence-item:first-child {
  border-top: 0;
}

.replication-decision-evidence-item > b {
  color: var(--blue);
  font-size: 11px;
  line-height: 21px;
}

.replication-decision-evidence-item > strong {
  color: var(--text);
  font-size: 13px;
  line-height: 21px;
}

.replication-decision-evidence-item p {
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.replication-decision-evidence-item > i {
  color: var(--text-3);
  font-size: 13px;
  font-style: normal;
  line-height: 20px;
  text-align: center;
}

.replication-decision-evidence-item > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
}

.replication-decision-evidence-item > div span,
.replication-decision-evidence-item > div p {
  color: var(--blue);
  font-size: 12px;
  line-height: 20px;
}

.replication-decision-boundary {
  padding: 16px 18px;
  background: #fbfcfd;
}

.replication-decision-boundary > span {
  color: #6941c6;
  font-size: 12px;
  font-weight: 700;
}

.replication-decision-boundary > h4 {
  margin: 7px 0 14px;
  padding-bottom: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 23px;
}

.replication-decision-boundary-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 10px;
}

.replication-decision-boundary-row > b {
  padding-top: 4px;
  color: #079455;
  font-size: 11px;
}

.replication-decision-boundary-row.is-negative > b {
  color: #d92d20;
}

.replication-decision-boundary > small {
  display: block;
  margin-top: 13px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 17px;
}

.replication-decision-empty {
  margin: 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 20px;
}

.replication-decision-actions {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.replication-decision-actions > header {
  padding: 0;
  border: 0;
}

.replication-decision-actions > header span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.replication-decision-actions > header strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
}

.replication-decision-actions > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.replication-decision-actions article {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e8ebf0;
  border-radius: 9px;
}

.replication-decision-actions article > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--blue);
  background: #eaf2ff;
  border-radius: 50%;
  font-size: 11px;
}

.replication-decision-actions article strong {
  color: var(--text);
  font-size: 12px;
  line-height: 19px;
}

.replication-decision-actions article p {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 11px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.replication-overview-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.replication-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.replication-overview-head h2 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}

.replication-overview-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.replication-overview-card > p {
  margin: 0;
  padding-top: 10px;
  color: var(--text-2);
  border-top: 1px solid var(--line-soft);
  line-height: 22px;
}

.replication-fusion-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.replication-fusion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.replication-section-kicker {
  color: var(--blue);
  font-size: 13px;
  line-height: 20px;
}

.replication-fusion-head h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.replication-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.replication-source-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.replication-source-card.is-viral {
  border-color: #d9e7ff;
  background: #f8fbff;
}

.replication-source-card.is-account {
  border-color: #cfeedd;
  background: #f7fcf9;
}

.replication-source-media {
  display: grid;
  place-items: center;
  width: 78px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 22px;
  font-weight: 600;
}

.replication-source-media.is-avatar {
  width: 72px;
  height: 72px;
  margin: auto;
  border-radius: 50%;
  background: #eaf8ef;
  color: #079455;
}

.replication-source-card div {
  min-width: 0;
}

.replication-source-card div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 18px;
}

.replication-source-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replication-source-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.replication-fusion-operator {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.replication-fusion-node {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 84px;
  height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #d5e3ff;
}

.replication-fusion-node b {
  font-size: 13px;
  line-height: 1;
}

.replication-fusion-node span {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.replication-fusion-operator small {
  position: relative;
  z-index: 2;
  margin-top: 9px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}

.replication-fusion-flow-line {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: #b8ccff;
  transform: translateY(-13px);
}

.replication-fusion-flow-line::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
}

.replication-fusion-flow-line.is-left {
  left: 0;
}

.replication-fusion-flow-line.is-left::after {
  right: -1px;
  transform: rotate(45deg);
}

.replication-fusion-flow-line.is-right {
  right: 0;
}

.replication-fusion-flow-line.is-right::after {
  left: -1px;
  transform: rotate(-135deg);
}

.replication-fusion-operator::after {
  position: absolute;
  z-index: 0;
  bottom: -17px;
  left: 50%;
  width: 1px;
  height: 42px;
  content: "";
  background: #b8ccff;
}

.replication-fusion-operator::before {
  position: absolute;
  z-index: 1;
  bottom: -17px;
  left: calc(50% - 3px);
  width: 7px;
  height: 7px;
  content: "";
  border-right: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
  transform: rotate(45deg);
}

.replication-fusion-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
  border-radius: 12px;
}

.replication-fusion-result span {
  color: var(--blue);
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}

.replication-fusion-result p {
  margin: 0;
  color: var(--text-2);
  line-height: 22px;
}

.replication-execution-section .result-list-card.is-wide {
  grid-column: 1 / -1;
}

.result-list-card {
  align-content: start;
}

.structured-result-item {
  display: grid;
  gap: 6px;
}

.structured-result-item strong {
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.structured-result-item span {
  margin-top: 0;
  color: var(--text-2);
  line-height: 22px;
}

.is-script-card .result-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.is-script-card .structured-result-item {
  min-height: 132px;
  padding: 14px 16px;
  background: var(--panel-soft);
  border: 1px solid var(--blue-soft);
}

.prediction-metrics-section {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.compact-button {
  width: auto !important;
  min-height: 36px;
  padding: 0 16px;
}

.task-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  align-items: start;
}

.task-report-layout.replication-report-layout {
  grid-template-columns: minmax(0, 1fr);
}

#replicateView .task-report-page,
#replicateView .replication-report-layout,
#replicateView .task-report-main {
  width: 100%;
  max-width: none;
}

#replicateResult {
  grid-column: 1 / -1;
}

#replicateResult > * {
  width: 100%;
  max-width: none;
}

/* Keep split task reports on the same hierarchy as the benchmark report:
   the toolbar belongs to the main column, while the aside starts at the top. */
.split-task-report-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  column-gap: 24px;
  align-items: start;
}

.split-task-report-page > .task-report-tabs {
  grid-column: 1;
  grid-row: 1;
  width: auto;
}

.split-task-report-page > .task-report-layout {
  display: contents;
}

.split-task-report-page .task-report-main {
  grid-column: 1;
  grid-row: 2;
}

.split-task-report-page .task-report-aside {
  grid-column: 2;
  grid-row: 1 / span 2;
  top: 0;
}

.task-report-main,
.task-report-aside {
  min-width: 0;
}

.task-report-main {
  display: grid;
  gap: 16px;
}

.task-report-main > .result-title,
.task-report-main > .analysis-text,
.task-report-main > .replication-hero,
.task-report-main > .mini-card,
.task-report-main > .like-prediction-result,
.task-report-main > .task-completion-action,
.task-report-main > .task-partial-action,
.task-report-main > .empty-state,
.task-report-main > .error-box {
  margin: 0;
}

.task-report-main > .result-title,
.task-report-main > .analysis-text,
.task-report-main > .replication-hero,
.task-report-main > .mini-card,
.task-report-main > .like-prediction-result,
.task-report-main > .empty-state,
.task-report-main > .error-box {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.task-report-main > .analysis-text {
  margin-top: -16px;
  padding-top: 0;
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.task-report-main > .result-title + .analysis-text {
  position: relative;
}

.task-report-main > .result-title + .analysis-text::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  border-top: 1px solid var(--line-soft);
}

.task-report-main .mini-card {
  border-color: var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.task-report-aside {
  position: sticky;
  top: 70px;
  display: grid;
  gap: 16px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
}

.task-aside-summary {
  display: grid;
  gap: 14px;
}

.task-aside-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 16px;
}

.task-aside-kicker i {
  color: var(--blue);
  font-style: normal;
}

.task-aside-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.task-aside-score strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(30px, 3vw, 56px);
  line-height: 1;
  font-weight: 500;
}

.task-aside-score span,
.task-aside-copy,
.task-aside-list li {
  color: var(--text-2);
  line-height: 1.65;
}

.task-aside-copy {
  margin: 0;
}

.task-aside-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.task-aside-list li {
  position: relative;
  padding-left: 28px;
}

.task-aside-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #18a957;
  background: #effbf3;
  border: 1px solid #d9f4e2;
  border-radius: 50%;
  font-size: 12px;
}

.prediction-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 0;
}

.prediction-entry-head p,
.prediction-step-title p {
  margin: 2px 0 0;
  color: var(--text-3);
}

.prediction-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.prediction-step-card {
  align-content: start;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.prediction-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.prediction-step-title > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #d4e4ff;
  border-radius: 50%;
  font-weight: 600;
}

.prediction-step-card .form-grid,
.prediction-feedback-aside .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prediction-feedback-aside .feedback-form {
  padding: 0;
  border: 0;
}

@media (max-width: 1180px) {
  .split-task-report-page {
    grid-template-columns: 1fr;
  }

  .split-task-report-page > .task-report-tabs {
    grid-column: 1;
    grid-row: auto;
  }

  .split-task-report-page > .task-report-layout {
    display: grid;
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .split-task-report-page .task-report-main,
  .split-task-report-page .task-report-aside {
    grid-column: auto;
    grid-row: auto;
  }

  .task-report-layout,
  .prediction-step-grid {
    grid-template-columns: 1fr;
  }

  .task-report-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .task-report-tabs,
  .prediction-entry-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-report-tabs > div {
    width: 100%;
  }

  .task-report-tabs button {
    flex: 1;
  }
}

.prediction-layout .result-panel {
  min-height: 420px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.prediction-hero {
  display: grid;
  gap: 8px;
  padding: 18px;
  margin: 12px 0;
  border: 1px solid rgba(47, 158, 99, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef9f2, #fff7e8);
}

.prediction-hero span {
  color: var(--green-dark, #2f9e63);
  font-size: 13px;
  font-weight: 700;
}

.prediction-hero strong {
  font-size: 28px;
  line-height: 1.15;
}

.prediction-hero p {
  margin: 0;
  color: #42504d;
}

.tier-grid,
.factor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.factor-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tier-card,
.factor-card {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.tier-card.active {
  border-color: rgba(47, 158, 99, 0.55);
  box-shadow: 0 0 0 1px rgba(47, 158, 99, 0.12);
}

.tier-card span,
.factor-card span {
  color: var(--muted);
  font-size: 12px;
}

.tier-card strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.like-sample-list {
  display: grid;
  gap: 10px;
}

.like-sample-card {
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.like-sample-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.like-sample-card footer {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.drawer-history-section + .drawer-history-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.drawer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}

body.like-history-open {
  overflow: hidden;
}

body.like-history-open #likeHistoryScrim {
  pointer-events: auto;
  opacity: 1;
}

body.like-history-open #likeHistoryDrawer {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  box-shadow: -18px 0 44px rgba(29, 33, 41, 0.1);
}

body.task-history-open {
  overflow: hidden;
}

body.task-history-open #taskHistoryScrim {
  pointer-events: auto;
  opacity: 1;
}

body.task-history-open #taskHistoryDrawer {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  box-shadow: -18px 0 44px rgba(29, 33, 41, 0.1);
}

#likeHistoryDrawer {
  right: 0;
  left: auto;
}

@media (max-width: 960px) {
  .tier-grid {
    grid-template-columns: 1fr;
  }
}

.replication-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.replication-card-list {
  display: grid;
  gap: 12px;
}

#replicationReplacement .replication-card-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.replication-material-sheet {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
}

.replication-material-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.replication-material-head h3,
.replication-material-head p,
.replication-material-preparation h4,
.replication-material-boundary h4,
.replication-material-boundary p {
  margin: 0;
}

.replication-material-head h3 {
  color: var(--text-1);
  font-size: 18px;
}

.replication-material-head p {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.55;
}

.replication-material-head > span {
  flex: 0 0 auto;
  padding: 7px 16px;
  border: 1px solid #bfd4ff;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
}

.replication-material-result-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0 12px;
  font-size: 13px;
}

.replication-material-result-head strong {
  color: var(--blue);
}

.replication-material-result-head span {
  color: var(--text-2);
}

.replication-material-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.replication-material-tiles article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e3f9;
  border-radius: 10px;
  background: #fff;
}

.replication-material-tiles article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #e4ebf7;
  background: #f8faff;
}

.replication-material-tiles article > header b {
  color: var(--blue);
  font-size: 13px;
}

.replication-material-tiles article > header span {
  color: #079455;
  font-size: 11px;
  font-weight: 700;
}

.replication-material-tile-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-width: 0;
  min-height: 102px;
}

.replication-material-tile-flow > div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  padding: 14px 20px;
}

.replication-material-tile-flow > div.is-source {
  padding-right: 26px;
  color: #667085;
  background: #fbfcfe;
}

.replication-material-tile-flow > div.is-target {
  padding-left: 28px;
  color: #101828;
  background: #f2f8ff;
}

.replication-material-tile-flow span {
  margin-bottom: 6px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.replication-material-tile-flow .is-target span {
  color: #5286db;
}

.replication-material-tile-flow p {
  margin: 0;
  line-height: 1.55;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.replication-material-tile-flow .is-source p {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

.replication-material-tile-flow .is-target p {
  color: #101828;
  font-size: 13px;
  font-weight: 700;
}

.replication-material-tile-flow > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 48%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #b9d0fa;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 14px;
  font-style: normal;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.replication-material-main {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(280px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.replication-material-preparation,
.replication-material-boundary {
  min-width: 0;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
}

.replication-material-preparation > header,
.replication-material-boundary > header {
  padding: 14px 16px;
  border-bottom: 1px solid #e7ebf0;
}

.replication-material-preparation > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.replication-material-preparation h4,
.replication-material-boundary h4 {
  color: var(--text-1);
  font-size: 15px;
}

.replication-material-preparation > header span,
.replication-material-boundary header p {
  color: var(--text-3);
  font-size: 12px;
}

.replication-material-boundary header p {
  margin-top: 4px;
}

.replication-material-rows article {
  display: grid;
  grid-template-columns: 36px 105px minmax(0, 1.7fr) minmax(220px, 1fr);
  align-items: start;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid #eef1f4;
}

.replication-material-rows article:first-child {
  border-top: 0;
}

.replication-material-rows article:nth-child(odd) {
  background: #fbfcfe;
}

.replication-material-rows article > b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
}

.replication-material-rows article > strong {
  padding-top: 4px;
  color: var(--text-1);
  font-size: 13px;
}

.replication-material-rows p,
.replication-material-rows small {
  margin: 0;
  padding-top: 3px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.replication-material-rows p {
  color: var(--text-2);
  font-size: 13px;
}

.replication-material-rows small {
  color: var(--text-3);
  font-size: 12px;
}

.replication-material-keyword,
.replication-material-keyword.is-person,
.replication-material-keyword.is-scene,
.replication-material-keyword.is-action,
.replication-material-keyword.is-prop {
  color: inherit;
  font-weight: 700;
}

.replication-material-boundary {
  padding-bottom: 12px;
  background: #fbfcfe;
}

.replication-material-boundary section {
  padding: 14px 16px 0;
}

.replication-material-boundary section > b {
  color: var(--blue);
  font-size: 12px;
}

.replication-material-boundary section.is-negative > b {
  color: #d92d20;
}

.replication-material-boundary ul {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.replication-material-boundary li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.replication-material-boundary li::before {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1570ef;
  content: "";
}

.replication-material-boundary .is-negative li::before {
  top: 0;
  width: auto;
  height: auto;
  color: #f04438;
  background: none;
  font-weight: 700;
  content: "×";
}

.replication-material-sheet > footer {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid #ccdcff;
  border-radius: 6px;
  color: var(--text-2);
  background: #f2f6ff;
  font-size: 12px;
  line-height: 1.5;
}

.replication-material-sheet > footer strong {
  flex: 0 0 auto;
  color: var(--blue);
}

.replication-publish-studio {
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.04);
}

.replication-publish-studio > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid #e7ebf0;
}

.replication-publish-studio h3,
.replication-publish-studio h4,
.replication-publish-studio p {
  margin: 0;
}

.replication-publish-studio > header h3 {
  color: #101828;
  font-size: 18px;
}

.replication-publish-studio > header p {
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
}

.replication-publish-count {
  display: flex;
  gap: 7px;
}

.replication-publish-count span {
  padding: 6px 10px;
  border: 1px solid #d8e3f5;
  border-radius: 999px;
  color: #475467;
  background: #f8faff;
  font-size: 11px;
  font-weight: 700;
}

.replication-publish-recommendation {
  display: grid;
  grid-template-columns: 248px minmax(0, 1.45fr) minmax(310px, 0.72fr);
  gap: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 0%, rgba(55, 115, 240, 0.1), transparent 29%),
    linear-gradient(135deg, #f7faff 0%, #fff 58%);
}

.replication-cover-canvas {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  min-height: 188px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid #b8cdf4;
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2) 0 8%, transparent 8.5%),
    linear-gradient(145deg, #123f9c, #2468df 60%, #62a1ff);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.replication-cover-canvas::after {
  position: absolute;
  right: -38px;
  bottom: -56px;
  width: 178px;
  height: 178px;
  border: 30px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.replication-cover-canvas > span,
.replication-cover-canvas strong,
.replication-cover-canvas small {
  z-index: 1;
}

.replication-cover-canvas > span {
  align-self: flex-start;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
}

.replication-cover-canvas strong {
  max-width: 195px;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.replication-cover-canvas small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
}

.replication-recommended-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  padding: 4px 8px;
}

.replication-recommended-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.replication-recommended-kicker b {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 10px;
}

.replication-recommended-kicker span {
  color: #079455;
  font-size: 11px;
  font-weight: 700;
}

.replication-recommended-copy > span,
.replication-publish-explanation > span {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.replication-recommended-copy h4 {
  max-width: 720px;
  margin-top: 7px;
  color: #101828;
  font-size: 24px;
  line-height: 1.38;
}

.replication-recommended-cover {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.replication-recommended-cover span {
  color: #667085;
  font-size: 11px;
}

.replication-recommended-cover strong {
  padding: 6px 10px;
  border: 1px solid #c8d8f7;
  border-radius: 7px;
  color: var(--blue);
  background: #f7f7f8;
  font-size: 13px;
}

.replication-recommended-copy > p {
  max-width: 760px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e3e9f2;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.replication-publish-explanation {
  align-self: stretch;
  padding: 15px;
  border: 1px solid #dbe5f7;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
}

.replication-publish-explanation dl {
  display: grid;
  gap: 9px;
  margin: 12px 0 14px;
}

.replication-publish-explanation dl > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 9px;
}

.replication-publish-explanation dt,
.replication-publish-explanation dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.replication-publish-explanation dt {
  color: #98a2b3;
}

.replication-publish-explanation dd {
  color: #344054;
}

.replication-publish-explanation > strong {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.replication-publish-alternatives {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 18px;
  padding: 0 20px 20px;
}

.replication-publish-alternatives > section {
  min-width: 0;
  padding-top: 15px;
  border-top: 1px solid #e7ebf0;
}

.replication-publish-alternatives section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.replication-publish-alternatives h4 {
  color: #344054;
  font-size: 12px;
}

.replication-publish-alternatives header span {
  color: #98a2b3;
  font-size: 10px;
}

.replication-publish-alternatives .is-title,
.replication-publish-alternatives .is-cover {
  display: grid;
  gap: 8px;
}

.replication-publish-alternatives .is-title {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.replication-publish-alternatives .is-cover {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.replication-publish-alternatives article {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #fbfcfe;
}

.replication-publish-alternatives article b {
  color: #98a2b3;
  font-size: 10px;
}

.replication-publish-alternatives article p {
  margin-top: 6px;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
}

.replication-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--panel);
}

#replicationStructure .tag-row {
  margin-top: 12px;
}

#replicationStructure .status-badge {
  color: #079455;
  background: #ecfdf3;
  border-color: #c7eed8;
}

.replication-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.replication-card p {
  margin: 6px 0;
  color: var(--text-2);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-scroll {
  overflow: auto;
}

.replication-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.replication-table th,
.replication-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.replication-table th {
  color: var(--text-2);
  background: var(--bg);
  font-weight: 500;
}

.replication-storyboard {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
}

.replication-storyboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid #dfe5ec;
}

.replication-storyboard-head h3,
.replication-storyboard-head p,
.replication-storyboard-shot p {
  margin: 0;
}

.replication-storyboard-head h3 {
  color: var(--text);
  font-size: 18px;
}

.replication-storyboard-head p {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.55;
}

.replication-storyboard-head > span {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.replication-storyboard-list {
  padding: 0 20px 20px;
}

.replication-duration-decision {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) minmax(190px, 0.8fr) minmax(320px, 2fr);
  align-items: stretch;
  gap: 1px;
  margin: 14px 20px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.replication-duration-decision > div,
.replication-duration-decision > p {
  margin: 0;
  padding: 11px 14px;
  background: #fff;
}

.replication-duration-decision > div {
  display: grid;
  align-content: center;
  gap: 3px;
}

.replication-duration-decision > div.is-target {
  background: var(--bg);
}

.replication-duration-decision span,
.replication-duration-decision small {
  color: var(--text-3);
  font-size: 11px;
}

.replication-duration-decision strong {
  color: var(--text);
  font-size: 14px;
}

.replication-duration-decision .is-target strong {
  color: var(--text);
}

.replication-duration-decision > p {
  display: flex;
  align-items: center;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.55;
}

.replication-storyboard-shot {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  border-bottom: 1px solid #e7ebf0;
}

.replication-storyboard-shot:last-child {
  border-bottom: 0;
}

.replication-storyboard-rail {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px 14px 18px 0;
  color: var(--text-3);
}

.replication-storyboard-rail::after {
  position: absolute;
  top: 54px;
  bottom: -20px;
  left: calc(50% - 7px);
  width: 1px;
  background: var(--line);
  content: "";
}

.replication-storyboard-shot:last-child .replication-storyboard-rail::after {
  display: none;
}

.replication-storyboard-rail b {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.replication-storyboard-rail span {
  z-index: 1;
  min-width: 82px;
  margin-top: 9px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.replication-storyboard-body {
  min-width: 0;
  padding: 18px 0;
}

.replication-storyboard-body > header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  margin-bottom: 12px;
}

.replication-storyboard-task {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.replication-storyboard-task > span,
.replication-storyboard-columns section > span {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.replication-storyboard-task > strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 14px;
}

.replication-storyboard-task > p {
  min-width: 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}

.replication-storyboard-task > p::before {
  margin-right: 10px;
  color: #cbd5e1;
  content: "·";
}

.replication-storyboard-columns {
  display: grid;
  grid-template-columns: minmax(180px, 0.62fr) minmax(280px, 1fr) minmax(0, 2.25fr);
  gap: 10px;
}

.replication-storyboard-columns section {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
}

.replication-storyboard-columns section.is-material {
  border-color: var(--line-soft);
  background: #fff;
}

.replication-storyboard-columns section.is-script {
  border-color: var(--line-soft);
  background: #fff;
}

.replication-storyboard-columns section.is-visual {
  border-color: var(--line-soft);
  background: #fff;
}

.replication-storyboard-columns section > span {
  display: block;
  margin-bottom: 7px;
}

.replication-storyboard-columns p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.replication-storyboard-columns small {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(152, 162, 179, 0.22);
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.55;
}

.replication-storyboard-columns section.is-visual small {
  margin-top: 10px;
  padding: 9px 11px;
  color: var(--text);
  background: #f8f7ff;
  border: 1px solid #ebe8ff;
  border-radius: 6px;
}

.replication-storyboard-columns small b {
  margin-right: 7px;
  color: inherit;
  font-weight: 700;
}

.replication-storyboard-columns p strong,
.replication-storyboard-columns p b {
  color: inherit;
  font-weight: 700;
}

.replication-storyboard-empty {
  margin: 0;
  padding: 32px 0 12px;
  color: var(--text-3);
  text-align: center;
}

.replication-loading .progress-bar {
  margin-top: 12px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.replication-loading .progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6ea8ff, #8b5cf6);
}

.generated-report.is-section-pending {
  position: relative;
}

.generated-report.is-section-locked,
.generated-report[hidden] {
  display: none !important;
}

.report-tabs .tab[hidden] {
  display: none !important;
}

.report-tabs .tab.is-tab-locked {
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.72;
}

.report-tabs .tab.is-tab-locked:hover {
  color: var(--text-3);
}

.generated-report.is-section-pending::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: launch-section-shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
}

.generated-report.is-section-generating {
  outline: 1px solid rgba(110, 168, 255, 0.18);
}

@keyframes launch-section-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 960px) {
  .recommendation-dialog.is-replication-recommendation .recommendation-body {
    overflow: auto;
  }

  .replication-modal-metrics,
  .replication-modal-baseline,
  .replication-modal-main,
  .replication-modal-boundaries,
  .replication-modal-actions,
  .replication-modal-actions > div {
    grid-template-columns: 1fr;
  }

  .replication-modal-baseline > div {
    padding: 10px 0;
    border-top: 1px solid #dfe7f5;
    border-left: 0;
  }

  .replication-modal-baseline > div:first-child {
    border-top: 0;
  }

  .replication-modal-actions {
    align-items: start;
  }

  .replication-hero {
    grid-template-columns: 1fr;
  }

  .replication-execution-section,
  .is-script-card .result-list,
  .replication-ai-modal-grid,
  .replication-ai-baseline,
  #replicationReplacement .replication-card-list {
    grid-template-columns: 1fr;
  }

  .replication-material-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .replication-material-main {
    grid-template-columns: 1fr;
  }

  .replication-storyboard-body > header {
    align-items: baseline;
  }

  .replication-duration-decision {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .replication-duration-decision > p {
    grid-column: 1 / -1;
  }

  .replication-storyboard-columns {
    grid-template-columns: 1fr;
  }

  .replication-material-rows article {
    grid-template-columns: 36px 105px minmax(0, 1fr);
  }

  .replication-material-rows small {
    grid-column: 3;
  }

  .replication-ai-advice {
    grid-template-columns: 1fr;
  }

  .replication-ai-advice .brief-action {
    justify-self: start;
  }

  .replication-decision-main,
  .replication-decision-facts {
    grid-template-columns: 1fr;
  }

  .replication-decision-hero,
  .replication-decision-details,
  .replication-decision-actions {
    grid-template-columns: 1fr;
  }

  .replication-decision-hero .replication-decision-score {
    border-right: 0;
    border-bottom: 1px solid #dbe5f7;
  }

  .replication-decision-output {
    margin: 0 20px 20px;
  }

  .replication-decision-evidence-item {
    grid-template-columns: 30px minmax(90px, 120px) minmax(0, 1fr);
  }

  .replication-decision-evidence-item > i {
    display: none;
  }

  .replication-decision-evidence-item > div {
    grid-column: 2 / -1;
  }

  .replication-decision-actions > div {
    grid-template-columns: 1fr;
  }

  .replication-decision-advice {
    grid-template-columns: 1fr;
  }

  .replication-decision-advice .brief-action {
    justify-self: start;
  }

  .replication-source-grid {
    grid-template-columns: 1fr;
  }

  .replication-fusion-operator {
    min-height: 76px;
  }

  .replication-fusion-flow-line {
    display: none;
  }

  .replication-fusion-operator::after {
    bottom: -1px;
    height: 22px;
  }

  .replication-fusion-operator::before {
    bottom: -1px;
  }
}

@media (max-height: 760px) {
  .recommendation-dialog.is-replication-recommendation .recommendation-body {
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .replication-decision-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .replication-decision-card {
    padding: 16px;
  }

  .replication-decision-hero .replication-decision-advice {
    padding: 18px 20px;
  }

  .replication-decision-evidence-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .replication-decision-evidence-item > strong,
  .replication-decision-evidence-item > p,
  .replication-decision-evidence-item > div {
    grid-column: 2;
  }

  .replication-decision-boundary-row {
    grid-template-columns: 1fr;
  }

  .replication-fusion-head,
  .replication-fusion-result {
    grid-template-columns: 1fr;
  }

  .replication-fusion-head {
    display: grid;
  }

  .replication-source-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .replication-source-media,
  .replication-source-media.is-avatar {
    width: 64px;
    height: 64px;
  }

  .replication-material-sheet {
    padding: 16px;
  }

  .replication-material-head,
  .replication-material-result-head,
  .replication-material-sheet > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .replication-material-tiles {
    grid-template-columns: 1fr;
  }

  .replication-material-rows article {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .replication-material-rows article > strong,
  .replication-material-rows p,
  .replication-material-rows small {
    grid-column: 2;
  }

}

@media (max-width: 640px) {
  .replication-storyboard-head {
    padding: 16px;
  }

  .replication-storyboard-list {
    padding: 0 16px 16px;
  }

  .replication-duration-decision {
    grid-template-columns: 1fr;
    margin: 12px 16px 0;
  }

  .replication-duration-decision > p {
    grid-column: auto;
  }

  .replication-storyboard-shot {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .replication-storyboard-rail {
    padding-right: 10px;
  }

  .replication-storyboard-rail b {
    width: 34px;
    height: 34px;
  }

  .replication-storyboard-rail::after {
    top: 49px;
    left: calc(50% - 5px);
  }

  .replication-storyboard-rail span {
    min-width: 76px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 10px;
  }

  .replication-storyboard-task {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .replication-storyboard-task > p {
    flex-basis: 100%;
  }

  .replication-storyboard-task > p::before {
    display: none;
  }
}

@media (max-width: 1100px) {
  .replication-publish-recommendation {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .replication-publish-explanation {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .replication-publish-studio > header,
  .replication-recommended-cover,
  .replication-publish-alternatives section > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .replication-publish-recommendation,
  .replication-publish-alternatives {
    grid-template-columns: 1fr;
  }

  .replication-cover-canvas {
    min-height: 210px;
  }

  .replication-recommended-copy {
    padding: 4px 0;
  }

  .replication-recommended-copy h4 {
    font-size: 20px;
  }

  .replication-publish-alternatives .is-title,
  .replication-publish-alternatives .is-cover {
    grid-template-columns: 1fr;
  }
}

.fission-card-list {
  display: grid;
  gap: 10px;
}

.fission-card {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--panel);
}

.fission-card summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.fission-card summary::-webkit-details-marker {
  display: none;
}

.fission-card p {
  margin: 10px 0 0;
  color: var(--text-2);
}
