:root {
  --bg: #0b1020;
  --panel: #131a2a;
  --panel-2: #182033;
  --panel-3: #0f1628;
  --text: #eaf0ff;
  --muted: #9aaccc;
  --border: #2b3650;
  --ok: #1db46a;
  --warn: #d9a441;
  --bad: #d85c5c;
  --neutral: #60708f;
  --accent: #73a7ff;
  --accent-2: #9ec1ff;
}
* { box-sizing: border-box; }
.hidden { display: none !important; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(115,167,255,.10), transparent 22%),
    var(--bg);
  color: var(--text);
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #10172a 0%, #0b1020 100%);
}
h1,h2,h3 { margin: 0 0 12px; }
h1 { font-size: 32px; line-height: 1.15; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.sub, .muted { color: var(--muted); }
.eyebrow {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.hero-copy { max-width: 760px; }
.inline-help {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  padding: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.compact-card { padding: 14px; min-width: 220px; }
.sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  display: grid;
  gap: 16px;
}
.top-actions,
input[type="file"]::file-selector-button,
button {
  background: var(--accent);
  color: #071120;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
}
button:hover { filter: brightness(1.04); }
.ghost-btn {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--border);
}
input[type="file"], input[type="text"], textarea, select {
  width: 100%;
  color: var(--text);
}
input[type="text"], textarea, select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
}
.field { margin: 14px 0; }
.field-inline { display: grid; gap: 8px; }
.label-strong { display: inline-block; margin-bottom: 10px; font-weight: 700; }
.upload-block, .quick-list, .commands, .actions-block { margin-top: 18px; }
.text-runner { margin-top: 14px; }
.text-runner summary { cursor: pointer; color: var(--muted); margin-bottom: 10px; }
.text-runner textarea { margin: 10px 0; }
.action-card button { width: 100%; margin-top: 10px; }
.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.tip-box, .muted-zone {
  background: var(--panel-3);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 14px;
}
.tip-box p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.plain-list li { margin-bottom: 8px; }
pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.status-card { min-height: 140px; }
.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 10px;
}
.badge.accepted { background: rgba(29,180,106,.16); color: #7dffbe; border: 1px solid rgba(29,180,106,.45); }
.badge.degraded { background: rgba(217,164,65,.16); color: #ffd37e; border: 1px solid rgba(217,164,65,.45); }
.badge.blocked { background: rgba(216,92,92,.16); color: #ff9e9e; border: 1px solid rgba(216,92,92,.45); }
.badge.neutral { background: rgba(96,112,143,.16); color: #b7c2d9; border: 1px solid rgba(96,112,143,.45); }
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.pipeline-item {
  border: 1px solid var(--border);
  background: var(--panel-2);
  border-radius: 12px;
  padding: 12px;
}
.kv { display: grid; gap: 10px; }
.kv-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.kv-row:last-child { border-bottom: 0; }
.key { color: var(--muted); }
.list { margin: 0; padding-left: 18px; }
.raw-card { margin-top: 20px; }
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .button-row { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; }
}



/* 2026-05-31 interaction layout polish */
html { scroll-behavior: smooth; }
body { min-width: 1040px; }
.topbar {
  padding: 18px 24px;
  align-items: center;
}
h1 { font-size: 28px; margin-bottom: 8px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
.sub { margin: 0; line-height: 1.55; }
.quick-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, .92);
  backdrop-filter: blur(12px);
  overflow-x: auto;
}
.quick-nav a {
  color: var(--accent-2);
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(24, 32, 51, .78);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  white-space: nowrap;
}
.quick-nav a:hover { border-color: var(--accent); background: rgba(115,167,255,.14); }
.layout {
  grid-template-columns: minmax(330px, 24vw) minmax(680px, 1fr);
  align-items: start;
  gap: 18px;
  padding: 18px 22px 36px;
}
.sidebar {
  top: 56px;
  max-height: calc(100vh - 70px);
  overflow: auto;
  padding-right: 4px;
  gap: 12px;
}
.sidebar::-webkit-scrollbar,
.history-card #taskList::-webkit-scrollbar,
pre::-webkit-scrollbar { width: 8px; height: 8px; }
.sidebar::-webkit-scrollbar-thumb,
.history-card #taskList::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb { background: #33415f; border-radius: 999px; }
.card {
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}
.guide-card { display: none; }
.action-card .section-head { margin-bottom: 4px; }
.action-card .inline-help { font-size: 13px; line-height: 1.45; }
.field { margin: 10px 0; }
input[type="text"], textarea, select { padding: 9px 10px; }
button { padding: 10px 12px; }
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 16px;
}
.content > *,
.section-head > div,
#datasetLabPanel,
.dataset-lab-output,
.v02-track-card,
.v02-idea-card,
.v02-workflow-card,
.v02-draft-viewer {
  min-width: 0;
  max-width: 100%;
}
.hero-grid { gap: 16px; margin-bottom: 0; }
.status-card { min-height: 112px; }
.pipeline-grid { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
.pipeline-item { padding: 10px; }
.pipeline-item strong { display: block; margin-bottom: 4px; }
.result-section { scroll-margin-top: 58px; }
.result-section > h2,
.raw-card > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.highlight-section { border-color: rgba(115,167,255,.38); }
.kv {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 4px;
}
.kv-row {
  grid-template-columns: minmax(132px, 16%) 1fr;
  width: 100%;
  min-width: 0;
  gap: 14px;
  padding: 8px 0;
}
.kv-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.key {
  font-size: 12px;
  text-transform: none;
  letter-spacing: .01em;
}
.list li { margin: 4px 0; line-height: 1.55; }
#ideaCandidates > .card {
  background: linear-gradient(180deg, rgba(24,32,51,.98), rgba(15,22,40,.98));
}
#taskSummary .kv-row,
#taskList .kv-row { grid-template-columns: 92px 1fr; }
.task-card .kv-row {
  padding: 6px 0;
  font-size: 13px;
}
.task-card .key { font-size: 11px; }
.history-card #taskList {
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}
.history-card .card {
  border-radius: 12px;
  padding: 10px !important;
  box-shadow: none;
}
.history-card strong {
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-card .muted { font-size: 12px; }
.raw-card pre {
  max-height: 420px;
  font-size: 12px;
}
#runLog {
  max-height: 360px;
  font-size: 12px;
}
.meta { line-height: 1.55; }
@media (max-width: 1280px) {
  body { min-width: 0; }
  .layout { grid-template-columns: 330px 1fr; }
  .pipeline-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; overflow: visible; }
  .guide-card { display: block; }
}

/* 2026-05-31 light product layout */
:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #f1f5f9;
  --text: #172033;
  --muted: #64748b;
  --border: #dbe3ef;
  --ok: #168657;
  --warn: #b7791f;
  --bad: #c24141;
  --neutral: #718096;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
}
body {
  background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 260px, var(--bg) 100%);
  color: var(--text);
}
.topbar {
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}
.quick-nav {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
}
.quick-nav a {
  color: #1d4ed8;
  background: #f8fbff;
  border-color: #d7e3f5;
}
.card {
  background: rgba(255,255,255,.98);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
}
.layout {
  grid-template-columns: minmax(360px, 27vw) minmax(720px, 1fr);
  gap: 22px;
}
.sidebar {
  background: rgba(246,248,252,.72);
  border: 1px solid rgba(219,227,239,.8);
  border-radius: 18px;
  padding: 12px;
}
input[type="text"], textarea, select, pre {
  background: #f8fafc;
  color: var(--text);
  border-color: var(--border);
}
button, input[type="file"]::file-selector-button {
  background: #2563eb;
  color: white;
}
.ghost-btn {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #cbd8ea;
}
.tip-box, .muted-zone, .pipeline-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.badge.accepted { background: #dcfce7; color: #166534; border-color: #86efac; }
.badge.degraded { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.badge.blocked { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.badge.neutral { background: #e2e8f0; color: #334155; border-color: #cbd5e1; }
#ideaCandidates > .card {
  background: #ffffff;
  border: 1px solid #dbeafe;
}
#ideaCandidates > .card:has(.badge.accepted) {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.kv-row { border-bottom-color: #eef2f7; }
.history-card #taskList { max-height: 340px; }
.raw-card { opacity: .86; }

/* 2026-05-31 productized workflow feedback */
.notice-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.notice-card.hidden { display: none; }
.notice-card p { margin: 4px 0 0; color: inherit; opacity: .84; }
.notice-card.success { background: #ecfdf5; border-color: #86efac; color: #14532d; }
.notice-card.running { background: #eef2ff; border-color: #a5b4fc; color: #312e81; }
.notice-card.warning { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.notice-card.error { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.notice-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.task-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}
.task-list-item.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.task-list-item.latest:not(.active) { border-color: #bfdbfe; }
.task-list-main { min-width: 0; }
.task-title-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.task-title-row strong { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-pill { font-size: 11px; border: 1px solid #93c5fd; color: #1d4ed8; background: #dbeafe; border-radius: 999px; padding: 2px 7px; }
.mono-small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.task-meta-row { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 12px; color: #64748b; flex-wrap: wrap; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: #94a3b8; display: inline-block; }
.status-dot.done { background: #16a34a; }
.status-dot.pending { background: #f59e0b; }
button:disabled { opacity: .62; cursor: not-allowed; }

/* 2026-05-31 visible notice + advanced tools */
.notice-card.idle { background: #f8fafc; border-color: #dbe3ef; color: #334155; }
.advanced-card summary { cursor: pointer; list-style-position: inside; color: #1f2937; }
.advanced-card summary .muted { margin-left: 6px; font-weight: 400; font-size: 12px; }
.advanced-card details[open] { display: block; }
.advanced-card details[open] > summary { margin-bottom: 10px; }

/* 2026-05-31 visible notice + advanced tools */
.notice-card.idle { background: #f8fafc; border-color: #dbe3ef; color: #334155; }
.advanced-card summary { cursor: pointer; list-style-position: inside; color: #1f2937; }
.advanced-card summary .muted { margin-left: 6px; font-weight: 400; font-size: 12px; }
.advanced-card details[open] { display: block; }
.advanced-card details[open] > summary { margin-bottom: 10px; }

/* 2026-06-03 user-centered workflow status */
.user-workflow-card {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.workflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mini-status-card {
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 13px;
  background: #f8fafc;
  min-height: 118px;
}
.mini-status-card.accepted { background: #ecfdf5; border-color: #86efac; }
.mini-status-card.degraded { background: #fffbeb; border-color: #fcd34d; }
.mini-status-card.blocked { background: #fef2f2; border-color: #fca5a5; }
.mini-status-card.warning { background: #fff7ed; border-color: #fdba74; }
.mini-status-card.next { background: #eff6ff; border-color: #93c5fd; }
.mini-status-title {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.mini-status-value {
  color: #0f172a;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 7px;
}
.mini-status-detail {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.validation-workbench-card {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #ffffff, #fffaf5);
}
.empty-validation-state {
  border: 1px dashed #fdba74;
  background: #fff7ed;
  color: #7c2d12;
  border-radius: 14px;
  padding: 14px 16px;
}
.empty-validation-state p { margin: 6px 0 8px; }
.empty-validation-state ul { margin: 0; padding-left: 18px; }
.empty-validation-state li { margin: 5px 0; line-height: 1.45; }
@media (max-width: 1380px) {
  .workflow-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .workflow-summary-grid { grid-template-columns: 1fr; }
}

/* 2026-06-03 validation task queue */
.validation-task-summary {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.validation-task-summary p { margin: 4px 0 0; }
.validation-task-list { display: grid; gap: 10px; }
.validation-task-item {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}
.validation-task-item.ready { border-color: #86efac; background: #f0fdf4; }
.validation-task-item.needs_resource_check { border-color: #fcd34d; background: #fffbeb; }
.validation-task-item.blocked { border-color: #fca5a5; background: #fef2f2; }
.run-smoke-btn { margin-top: 10px; width: auto; }
.validation-action-row {
  grid-template-columns: 1fr 1fr;
}
.validation-action-row button {
  margin-top: 10px;
}
.validation-inline-result {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 8px;
}
.mini-experiment-inline-result {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #14532d;
  border-radius: 8px;
}
.validation-run-summary {
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #14532d;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.validation-run-summary p { margin: 5px 0; }

/* 2026-07-06 paper library / OA resolver */
.paper-library-panel {
  margin-top: 12px;
}
.paper-candidate-list {
  display: grid;
  gap: 10px;
}
.paper-candidate-item {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
}
.paper-candidate-item .task-title-row strong {
  max-width: 260px;
}
.paper-candidate-item .mini-status-detail {
  margin-top: 7px;
}
.paper-action-row {
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}
.paper-action-row.single-action {
  grid-template-columns: 1fr;
}
.paper-action-row button {
  width: 100%;
  margin-top: 0;
}
.start-example-btn {
  background: #2563eb;
  color: #ffffff;
}
.starter-pack-card {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.starter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.starter-next-actions {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 8px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.paper-development-card {
  border-color: #c7d2fe;
  background: #ffffff;
}
.mode-switch-card {
  border-color: #bfdbfe;
}
.mode-switch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mode-switch-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.mode-switch-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.hidden-by-mode {
  display: none !important;
}
.layout.dataset-mode {
  grid-template-columns: minmax(0, 1fr);
}
.layout.dataset-mode .sidebar {
  display: none;
}
.dataset-lab-card {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.dataset-lab-summary {
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #14532d;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.dataset-lab-summary p {
  margin: 6px 0;
}
.dataset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dataset-card {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
}
.dataset-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.dataset-card-actions button {
  margin-top: 0;
}
.dataset-lab-output {
  margin-top: 14px;
  border: 0;
  background: transparent;
  padding: 0;
}
.dataset-lab-output.muted {
  border-color: #dbe3ef;
  background: #f8fafc;
}
.v02-stage-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 18px;
}
.v02-stage {
  min-width: 0;
  min-height: 68px;
  padding: 9px 6px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  font-size: 12px;
}
.v02-stage span {
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.v02-stage.active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.v02-stage.done { border-color: #86efac; background: #ecfdf5; color: #166534; }
.v02-subheading { margin: 18px 0 10px; font-size: 16px; }
.v02-track-card,
.v02-idea-card {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}
.v02-track-card > p,
.v02-idea-card > p { color: #475569; line-height: 1.6; }
.v02-track-card .task-title-row,
.v02-idea-card .task-title-row,
.v02-project-card .task-title-row,
.v02-venue-item .task-title-row,
.v02-deliverable-item .task-title-row,
.v02-package-item .task-title-row {
  flex-wrap: wrap;
}
.v02-track-card .task-title-row strong,
.v02-idea-card .task-title-row strong,
.v02-project-card .task-title-row strong,
.v02-venue-item .task-title-row strong,
.v02-deliverable-item .task-title-row strong,
.v02-package-item .task-title-row strong {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.v02-project-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.v02-project-status h3 { margin: 4px 0; }
.v02-project-status p { margin: 0; color: #475569; }
.v02-status-stack { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.status-badge {
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
}
.status-badge.evidence { border-color: #86efac; color: #166534; background: #ecfdf5; }
.v02-blocker {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
}
.v02-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.v02-actions button { margin-top: 0; }
.v02-action-help { margin-top: 10px; color: #64748b; font-size: 12px; line-height: 1.6; }
.v02-idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.v02-idea-card.selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.v02-idea-card button { width: 100%; }
.v02-research-wizard { min-width: 0; }
.v02-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.v02-wizard-steps label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.v02-wizard-steps select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 10px;
}
.v02-protocol-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  border-top: 1px solid #dbe3ef;
  border-bottom: 1px solid #dbe3ef;
  background: #dbe3ef;
}
.v02-protocol-preview > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fafc;
}
.v02-protocol-preview span { color: #64748b; font-size: 11px; }
.v02-protocol-preview strong { overflow-wrap: anywhere; color: #1e293b; }
.v02-create-catalog-project-btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.v02-catalog-mode-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 4px;
  max-width: 760px;
  margin: 12px 0 4px;
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
}
.v02-catalog-mode-btn {
  min-height: 40px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #475569;
}
.v02-catalog-mode-btn.active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}
.v02-catalog-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 4px solid #64748b;
  background: #f8fafc;
}
.v02-catalog-notice.preview { border-left-color: #0f766e; }
.v02-catalog-notice.alpha { border-left-color: #b45309; }
.v02-catalog-notice > div { display: grid; gap: 4px; min-width: 220px; }
.v02-catalog-notice p { max-width: 760px; margin: 0; color: #475569; line-height: 1.6; }
.v02-availability-notice {
  display: grid;
  grid-template-columns: minmax(210px, .45fr) minmax(0, 1fr);
  gap: 10px 18px;
  align-items: start;
  margin: -6px 0 16px;
  padding: 10px 12px;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  background: #fffbeb;
  color: #78350f;
  line-height: 1.5;
}
.v02-availability-notice.ready {
  border-color: #86b7a5;
  background: #f0fdf4;
  color: #14532d;
}
.v02-availability-notice.warning {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #7c2d12;
}
.v02-availability-notice span { overflow-wrap: anywhere; }
.v02-operations-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  margin: -6px 0 16px;
  padding: 10px 12px;
  border: 1px solid #86b7a5;
  border-radius: 6px;
  background: #f0fdf4;
  color: #14532d;
}
.v02-operations-notice > div { display: grid; gap: 3px; min-width: 0; }
.v02-operations-notice span,
.v02-operations-notice small { overflow-wrap: anywhere; }
.v02-operations-notice.refresh_required,
.v02-operations-notice.critical {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #7c2d12;
}
.v02-operations-notice.blocked,
.v02-operations-notice.unknown {
  border-color: #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}
.v02-fixed-selection {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 0 2px;
  color: #334155;
  font-size: 12px;
}
.v02-fixed-selection > span { font-weight: 700; }
.v02-fixed-selection > strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  overflow-wrap: anywhere;
}
.v02-fixed-selection small { color: #64748b; line-height: 1.4; }
.v02-package-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.v02-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.v02-package-grid.single { grid-template-columns: minmax(0, 1fr); }
.v02-package-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
}
.v02-package-item.recommended { border-color: #0f766e; box-shadow: inset 3px 0 0 #0f766e; }
.v02-package-item > p { color: #475569; line-height: 1.6; }
.v02-package-item details { margin: 12px 0; }
.v02-package-item > button { width: 100%; margin-top: 12px; }
.v02-package-actions {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 8px;
  margin: 4px 0 14px;
}
.v02-package-actions button { margin: 0; width: 100%; }
.v02-empty-packages { padding: 24px 0; border-top: 1px solid #e2e8f0; }
.v02-empty-packages p { color: #64748b; }
.v02-method-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
  color: #475569;
  font-size: 13px;
}
.v02-method-view-row button {
  width: auto;
  min-height: 36px;
  margin: 0;
  white-space: normal;
}
.v02-task-contract {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0;
  background: #dbe3ea;
}
.v02-task-contract > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  background: #f8fafc;
}
.v02-task-contract span,
.v02-task-contract small { color: #64748b; font-size: 11px; line-height: 1.45; }
.v02-task-contract strong { color: #1f2937; line-height: 1.55; overflow-wrap: anywhere; }
.v02-algorithm-evidence {
  margin: 12px 0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}
.v02-algorithm-evidence summary {
  padding: 11px 2px;
  color: #0f766e;
  font-weight: 700;
  cursor: pointer;
}
.v02-algorithm-evidence > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 2px;
  border-top: 1px solid #e2e8f0;
}
.v02-algorithm-evidence a { color: #0f766e; font-weight: 700; }
.v02-algorithm-evidence span,
.v02-algorithm-evidence small { color: #64748b; font-size: 11px; overflow-wrap: anywhere; }
.v02-algorithm-evidence small { grid-column: 1 / -1; }
.v02-v2-source-line {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
}
.v02-v2-dataset-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0;
  background: #e2e8f0;
}
.v02-v2-dataset-list > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #ffffff;
}
.v02-v2-dataset-list span,
.v02-v2-dataset-list small { color: #64748b; font-size: 11px; }
.v02-v2-dataset-list strong { overflow-wrap: anywhere; }
.v02-v2-identity { margin-top: 12px; }
.v02-v2-identity summary { cursor: pointer; color: #0f766e; font-weight: 700; }
.v02-v2-gate {
  margin-top: 14px;
  padding: 14px 0 0;
  border-top: 2px solid #b45309;
}
.v02-v2-gate > strong { color: #92400e; }
.v02-v2-gate .list { margin-bottom: 0; }
.v02-idea-card.tier-safe { border-top: 3px solid #16a34a; }
.v02-idea-card.tier-balanced { border-top: 3px solid #2563eb; }
.v02-idea-card.tier-exploratory { border-top: 3px solid #d97706; }
.mini-pill.tier { background: #f8fafc; border-color: #cbd5e1; color: #334155; }
.v02-job-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 2fr) 42px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
}
.v02-job-row progress { width: 100%; }
.v02-output-path {
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.v02-hardware-card,
.v02-workflow-card,
.v02-primary-action,
.v02-advanced-control,
.v02-draft-viewer {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 14px;
}
.v02-hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.v02-hardware-card .mini-status-card {
  border-radius: 8px;
  min-height: 96px;
}
.v02-hardware-card > button { width: auto; margin: 0; }
.v02-primary-action {
  border-color: #93c5fd;
  background: #eff6ff;
  margin-top: 14px;
}
.v02-primary-action button {
  width: 100%;
  min-height: 48px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.v02-primary-action p { margin: 9px 0 0; color: #475569; line-height: 1.5; }
.v02-cache-notice {
  display: flex;
  gap: 8px 14px;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #0f766e;
  background: #f0fdfa;
  color: #134e4a;
}
.v02-cache-notice span { line-height: 1.5; }
.v02-actions.setup-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v02-advanced-control summary { cursor: pointer; font-weight: 700; color: #334155; }
.v02-workflow-card.running,
.v02-workflow-card.queued,
.v02-workflow-card.recovering { border-color: #93c5fd; background: #f8fbff; }
.v02-workflow-card.completed { border-color: #86efac; background: #f0fdf4; }
.v02-workflow-card.stopped_not_recommended,
.v02-workflow-card.failed { border-color: #fca5a5; background: #fef2f2; }
.v02-workflow-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.v02-workflow-progress progress { width: 100%; }
.v02-live-detail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  color: #475569;
  font-size: 12px;
}
.v02-live-detail span { border: 1px solid #dbe3ef; border-radius: 6px; padding: 8px; background: #fff; }
.v02-workflow-actions { display: flex; gap: 8px; margin-top: 10px; }
.v02-workflow-actions button { width: auto; margin: 0; }
.v02-workflow-events {
  margin-top: 12px;
  border-top: 1px solid #dbe3ef;
  padding-top: 10px;
}
.v02-workflow-events summary { cursor: pointer; font-weight: 700; color: #334155; }
.v02-workflow-events ol { margin: 10px 0 0; padding-left: 22px; }
.v02-workflow-events li { margin: 7px 0; color: #334155; }
.v02-workflow-events time { display: inline-block; min-width: 148px; color: #64748b; font-size: 12px; }
.v02-workflow-events strong { margin-right: 8px; }
.v02-workflow-events span { display: block; margin: 3px 0 0 148px; color: #64748b; font-size: 12px; }
.v02-pilot-review {
  margin-top: 12px;
  padding: 12px;
  border-left: 3px solid #d97706;
  background: #fffbeb;
  color: #78350f;
}
.v02-pilot-review p { margin: 6px 0 0; line-height: 1.5; }
.v02-draft-viewer { margin-top: 18px; }
.v02-draft-viewer img {
  display: block;
  width: min(100%, 1100px);
  height: auto;
  margin: 0 auto 14px;
  border: 1px solid #e2e8f0;
}
.v02-draft-viewer pre {
  max-height: 880px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
}
.v02-track-details {
  margin-top: 14px;
  border-top: 1px solid #dbe3ef;
  padding-top: 12px;
}
.v02-track-details > summary {
  cursor: pointer;
  color: #334155;
  font-weight: 700;
}
.v02-track-details-body { margin-top: 12px; }
.v02-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  border-radius: 8px;
  position: sticky;
  top: 8px;
  z-index: 6;
}
.v02-workspace-tab {
  margin: 0;
  border: 0;
  background: transparent;
  color: #475569;
}
.v02-workspace-tab.active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}
.v02-workspace-view {
  margin-top: 14px;
  min-width: 0;
}
.v02-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 14px;
  border-bottom: 1px solid #dbe3ef;
}
.v02-page-head h3 { margin: 3px 0 0; font-size: 22px; }
.v02-page-head button { width: auto; margin: 0; }
.v02-page-band {
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
  min-width: 0;
}
.v02-page-band > h3 { margin: 0 0 12px; font-size: 17px; }
.v02-track-grid,
.v02-project-grid,
.v02-deliverable-grid,
.v02-venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.v02-package-shelf,
.v02-deliverable-grid,
.v02-paper-viewer { scroll-margin-top: 70px; }
.v02-deliverable-filename {
  display: block;
  margin: 10px 0 8px;
  color: #64748b;
  overflow-wrap: anywhere;
}
.v02-deliverable-item .button-link {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
}
.v02-project-card,
.v02-deliverable-item,
.v02-venue-item {
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}
.v02-project-card.active,
.v02-venue-item.selected,
.v02-idea-card.recommended {
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, .10);
}
.v02-project-card p,
.v02-deliverable-item p { color: #475569; line-height: 1.5; }
.v02-project-card button,
.v02-venue-item button { width: 100%; margin-top: 10px; }
.v02-project-history { margin-top: 14px; }
.v02-project-history > summary {
  cursor: pointer;
  color: #334155;
  font-weight: 700;
  padding: 8px 0;
}
.v02-project-history > .v02-project-grid { margin-top: 8px; }
.mini-pill.recommendation { background: #ccfbf1; border-color: #5eead4; color: #115e59; }
.mini-pill.warning { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.v02-package-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.v02-package-columns > div { min-width: 0; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #0f766e;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
.button-link:hover { background: #115e59; }
.v02-paper-viewer {
  margin-top: 18px;
  border-top: 1px solid #dbe3ef;
  padding-top: 18px;
}
.v02-audit-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 3px solid #d97706;
  background: #fffbeb;
  color: #78350f;
}
.v02-audit-notice span { line-height: 1.5; }
.v02-paper-body {
  max-width: 1040px;
  margin: 0 auto;
  color: #1e293b;
  line-height: 1.72;
}
.v02-paper-body h2 { margin: 28px 0 12px; font-size: 24px; }
.v02-paper-body h3 { margin: 24px 0 10px; font-size: 19px; }
.v02-paper-body h4 { margin: 20px 0 8px; font-size: 16px; }
.v02-paper-body p { margin: 8px 0 12px; }
.v02-paper-body blockquote {
  margin: 12px 0;
  border-left: 3px solid #94a3b8;
  padding: 8px 12px;
  color: #475569;
  background: #f8fafc;
}
.v02-paper-body figure { margin: 18px 0; }
.v02-paper-body figure img { width: 100%; height: auto; border: 1px solid #dbe3ef; }
.v02-paper-body figcaption { text-align: center; color: #64748b; font-size: 12px; }
.v02-table-wrap { max-width: 100%; overflow-x: auto; margin: 14px 0; }
.v02-table-wrap table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.v02-table-wrap th,
.v02-table-wrap td { border: 1px solid #dbe3ef; padding: 7px 9px; text-align: right; }
.v02-table-wrap th:first-child,
.v02-table-wrap td:first-child { text-align: left; }
.v02-table-wrap th { background: #f1f5f9; }
.v02-venue-score { margin: 10px 0; color: #0f766e; font-weight: 800; }
.v02-link-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.v02-link-row a { color: #0369a1; }
.v02-template-panel input { width: 100%; }
.v02-empty-state {
  padding: 32px 16px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  text-align: center;
}
.paper-dev-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}
.paper-dev-hero h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}
.paper-dev-hero p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}
.paper-dev-verdict {
  border: 1px solid #86efac;
  background: #ecfdf5;
  color: #14532d;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.paper-dev-verdict span {
  color: #166534;
  font-size: 13px;
  line-height: 1.45;
}
.paper-draft-viewer {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
}
.paper-draft-viewer pre {
  margin: 10px 0 0;
  max-height: 680px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 1380px) {
  .starter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-dev-hero { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .starter-grid { grid-template-columns: 1fr; }
  .dataset-grid,
  .mode-switch-row,
  .dataset-card-actions { grid-template-columns: 1fr; }
  .v02-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v02-actions,
  .v02-idea-grid { grid-template-columns: 1fr; }
  .v02-wizard-steps,
  .v02-protocol-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v02-project-status { flex-direction: column; }
  .v02-status-stack { justify-content: flex-start; }
  .v02-job-row { grid-template-columns: 1fr; }
  .v02-hardware-grid,
  .v02-live-detail,
  .v02-actions.setup-actions,
  .v02-track-grid,
  .v02-project-grid,
  .v02-deliverable-grid,
  .v02-venue-grid,
  .v02-package-grid,
  .v02-package-columns { grid-template-columns: 1fr; }
  .v02-workspace-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
  .v02-page-head { align-items: flex-start; flex-direction: column; }
  .kv-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Dataset-first is an operational workspace: keep the fixed package in the first viewport. */
body.dataset-mode .topbar {
  padding: 10px 22px;
}
body.dataset-mode .topbar h1 {
  margin: 2px 0 4px;
  font-size: 24px;
}
body.dataset-mode .topbar .sub {
  font-size: 13px;
}
body.dataset-mode .top-actions {
  padding: 8px 10px;
}
body.dataset-mode:not(.social-mode) #productNotice,
body.dataset-mode #dataset-lab-section > .section-head,
body.dataset-mode #mode-section .section-head {
  display: none;
}
body.dataset-mode:not(.social-mode) #productNotice.error,
body.dataset-mode:not(.social-mode) #productNotice.warning {
  display: flex;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: min(520px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
}
body.dataset-mode #log-section,
body.dataset-mode .raw-card,
body.dataset-mode #mainQuickNav a[href="#log-section"] {
  display: none;
}
body.dataset-mode #mode-section {
  padding: 8px;
}
body.dataset-mode .layout {
  padding-top: 10px;
  gap: 10px;
}
body.dataset-mode .content {
  gap: 10px;
}
body.dataset-mode .v02-page-head {
  padding-top: 2px;
  padding-bottom: 8px;
}

@media (max-width: 760px) {
  .v02-package-actions { grid-template-columns: 1fr; }
  .v02-wizard-steps,
  .v02-protocol-preview { grid-template-columns: 1fr; }
  .v02-v2-dataset-list { grid-template-columns: 1fr; }
  .v02-task-contract { grid-template-columns: 1fr; }
  .v02-method-view-row { align-items: stretch; flex-direction: column; }
  .v02-method-view-row button { width: 100%; }
  .v02-algorithm-evidence > div { grid-template-columns: 1fr 1fr; }
  .v02-algorithm-evidence > div strong,
  .v02-algorithm-evidence > div span,
  .v02-algorithm-evidence > div small { grid-column: 1 / -1; }
  .v02-catalog-notice { flex-direction: column; gap: 8px; }
  .v02-catalog-notice > div { min-width: 0; }
  .v02-availability-notice { grid-template-columns: minmax(0, 1fr); }
  .v02-operations-notice { grid-template-columns: minmax(0, 1fr); }
  .v02-workflow-actions { align-items: stretch; flex-direction: column; }
  .v02-workflow-actions button { width: 100%; }
  .v02-workflow-events time { display: block; min-width: 0; }
  .v02-workflow-events span { margin-left: 0; }
  body.dataset-mode .topbar .sub {
    display: none;
  }
  body.dataset-mode .top-actions {
    width: 100%;
  }
}

.account-center-card {
  scroll-margin-top: 74px;
  border-top: 3px solid #0f766e;
}
.account-center-card > .section-head .badge {
  flex: 0 0 auto;
  min-width: 70px;
  white-space: nowrap;
  text-align: center;
}
.account-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.account-center-card.account-collapsed {
  padding-top: 10px;
  padding-bottom: 10px;
}
.account-center-card.account-collapsed #accountCenterPanel {
  display: none;
}
.account-center-card.account-collapsed > .section-head {
  margin-bottom: 0;
}
.v05-loading,
.v05-empty {
  padding: 16px 0;
  color: #64748b;
}
.v05-auth-grid,
.v05-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.v05-auth-actions,
.v05-row-actions,
.v05-account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.v05-auth-actions {
  grid-column: 1 / -1;
}
.v05-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
  margin-top: 16px;
}
.v06-research-section {
  scroll-margin-top: 104px;
}
.v06-research-section .v05-item-list {
  grid-template-columns: minmax(0, 1fr);
}

.v09-guidance-panel {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.v09-publication-panel {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.v09-publication-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.v09-venue-row,
.v09-template-upload,
.v09-publication-summary {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  background: #fff;
}

.v09-template-upload label {
  display: grid;
  gap: 6px;
}

.v09-guidance-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.v09-guidance-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.4fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.v09-guidance-answer,
.paper-package-bridge {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--line-strong, #94a3b8);
  background: #f8fafc;
}

.paper-package-bridge.available {
  border-left-color: #0f766e;
  background: #f0fdfa;
}

.paper-package-bridge.plan-only {
  border-left-color: #b45309;
  background: #fffbeb;
}

.task-list-item {
  scroll-margin-block: 140px;
}

@media (max-width: 640px) {
  .v09-guidance-controls {
    grid-template-columns: 1fr;
  }
}
.v05-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.v05-section-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.v05-section-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.v10-privacy-section {
  border-top-color: #cbd5e1;
  scroll-margin-top: 100px;
}
.v10-danger-btn {
  background: #fff;
  color: #b42318;
  border-color: #fda29b;
}
.v10-danger-btn:hover {
  background: #fff1f0;
}
.v10-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}
.v10-audit-list {
  margin-top: 12px;
  border: 1px solid #dbe4ee;
  padding: 10px;
  background: #f8fafc;
}
.v10-audit-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
}
.v10-audit-list > div span {
  color: #64748b;
  text-align: right;
}
.v05-item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.v05-item {
  border: 1px solid #dbe3ef;
  border-radius: 6px;
  padding: 12px;
  min-width: 0;
  background: #ffffff;
}
.v05-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.v05-item p {
  margin: 4px 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.v05-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
}
.v05-status.connected,
.v05-status.active {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
}
.v05-status.rate_limited,
.v05-status.provider_timeout,
.v05-status.provider_unavailable,
.v05-status.budget_exhausted {
  color: #92400e;
  border-color: #fcd34d;
  background: #fffbeb;
}
.v05-status.invalid_credentials,
.v05-status.revoked {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}
.v05-activation-code {
  display: inline-block;
  padding: 8px 12px;
  border: 1px dashed #0f766e;
  background: #f0fdfa;
  color: #134e4a;
  font-family: Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}
.v05-notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid #0f766e;
  background: #f0fdfa;
  color: #134e4a;
  font-size: 13px;
}
.v05-error {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}
.v05-model-form details summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f766e;
}
.v05-model-form .v05-form-grid {
  margin-top: 12px;
}
.v05-auth-grid .field,
.v05-form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.v05-auth-grid input,
.v05-form-grid input,
.v05-form-grid select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

@media (max-width: 760px) {
  .v05-auth-grid,
  .v05-form-grid,
  .v05-item-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .v05-auth-actions {
    grid-column: auto;
  }
  .v05-section-head,
  .v05-account-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .account-header-actions {
    align-items: flex-end;
    flex-direction: column;
  }
  .v05-row-actions button,
  .v05-auth-actions button {
    width: 100%;
  }
}
.v11-dynamic-start {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.8fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid #8fcbbf;
  border-left: 3px solid #147d71;
  border-radius: 6px;
  background: #f4fbf9;
}

.v11-dynamic-start p,
.v11-project-brief small {
  margin: 4px 0 0;
  color: #52636a;
}

.v11-dynamic-start textarea,
.v11-project-brief textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid #b8c7cf;
  border-radius: 5px;
  padding: 9px 10px;
  color: #17242c;
  background: #fff;
  font: inherit;
}

.v20-literature-review {
  margin: 12px 0;
  padding: 12px;
  border-left: 3px solid #2563eb;
  background: #f8fafc;
}

.v20-literature-review label,
.v20-literature-review textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.v20-literature-review article {
  padding: 8px 0;
  border-bottom: 1px solid #dbe3ec;
}

.v20-literature-review article span {
  display: block;
  color: #52606d;
  font-size: 0.85rem;
}

.v11-project-brief {
  margin: 12px 0;
  padding: 12px;
  border-left: 3px solid #4d7fe8;
  background: #f5f8fe;
}

.v11-project-brief label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

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

.v11-idea-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfdae1;
  border-radius: 6px;
  background: #fff;
}

.v11-idea-card.recommended {
  border-color: #148172;
  box-shadow: inset 0 3px 0 #148172;
}

.v11-idea-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #4d6370;
  font-size: 12px;
}

.v11-idea-head strong {
  color: #0b7567;
}

.v11-idea-card h5 {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.v11-idea-card p {
  min-height: 66px;
  color: #344b57;
}

.v11-idea-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 6px 8px;
  margin: 10px 0 0;
  font-size: 13px;
}

.v11-idea-card dt {
  color: #687982;
}

.v11-idea-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.v28-idea-difference {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #dbe4e8;
}

.v28-idea-difference summary {
  cursor: pointer;
  color: #0b675d;
  font-weight: 700;
}

.v28-idea-difference dl {
  grid-template-columns: 72px minmax(0, 1fr);
}

.v28-idea-difference dd {
  display: grid;
  gap: 2px;
}

.v28-idea-difference dd span {
  color: #60727b;
  font-size: 12px;
}

.v28-idea-difference p {
  min-height: 0;
  margin: 8px 0 0;
  font-size: 12px;
}

@media (max-width: 900px) {
  .v11-dynamic-start,
  .v11-idea-grid {
    grid-template-columns: 1fr;
  }

  .v11-idea-card p {
    min-height: 0;
  }
}

.ss-panel {
  max-width: 1180px;
  margin: 0 auto;
}

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

.ss-confirmations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #cbd5df;
  border-radius: 6px;
  background: #f8fafc;
}

.ss-confirmations label,
.ss-inline-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #253843;
  line-height: 1.45;
}

.ss-confirmations input,
.ss-inline-check input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.ss-primary-actions {
  margin-bottom: 12px;
}

.ss-mapping-panel,
.ss-project-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #ccd8df;
  border-radius: 6px;
  background: #fff;
}

.ss-mapping-panel.has-error {
  border-color: #d97706;
}

.ss-mapping-summary,
.ss-project-head,
.ss-locked-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ss-project-head > div,
.ss-locked-question {
  min-width: 0;
}

.ss-project-head span,
.ss-locked-question span {
  color: #657680;
  font-size: 13px;
}

.ss-project-head strong,
.ss-locked-question strong {
  display: block;
  overflow-wrap: anywhere;
}

.ss-blocker {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #d97706;
  background: #fff8e7;
  color: #8a4308;
}

.ss-ready-note,
.ss-boundary,
.ss-empty {
  color: #536670;
}

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

.ss-manual-grid label {
  display: grid;
  gap: 5px;
}

.ss-question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.ss-question-card {
  min-height: 112px;
  padding: 12px;
  border: 1px solid #9bb8c5;
  border-radius: 6px;
  background: #f7fbfc;
  color: #17313d;
  text-align: left;
}

.ss-question-card:hover,
.ss-question-card:focus-visible {
  border-color: #0f766e;
  background: #eefaf7;
}

.ss-question-card strong,
.ss-question-card span {
  display: block;
}

.ss-question-card span {
  margin-top: 10px;
  color: #647780;
  font-size: 12px;
}

.ss-pilot-summary,
.ss-evidence-summary {
  margin: 12px 0;
  padding: 12px;
  border-left: 3px solid #0f766e;
  background: #f3faf8;
}

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

.ss-diagnostic {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid #c8d8d5;
  background: #fff;
}

.ss-diagnostic .ok {
  color: #08735f;
}

.ss-diagnostic .warn {
  color: #a45109;
}

.ss-refresh {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .ss-intake-grid,
  .ss-confirmations,
  .ss-manual-grid,
  .ss-question-grid,
  .ss-diagnostics {
    grid-template-columns: minmax(0, 1fr);
  }

  .ss-mapping-summary,
  .ss-project-head,
  .ss-locked-question {
    align-items: flex-start;
    flex-direction: column;
  }
}
.ss-component-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #64748b;
  background: #f8fafc;
  border-radius: 6px;
}

.ss-component-panel > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ss-component-panel span,
.ss-component-panel small {
  overflow-wrap: anywhere;
}

.ss-component-panel.is-ready {
  border-color: #86efac;
  border-left-color: #15803d;
  background: #f0fdf4;
}

.ss-component-panel.has-error {
  border-color: #fdba74;
  border-left-color: #c2410c;
  background: #fff7ed;
}

@media (max-width: 520px) {
  .ss-panel > .section-head {
    flex-direction: column;
  }

  .ss-panel > .section-head .badge {
    align-self: flex-start;
    white-space: nowrap;
  }

  .ss-component-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .ss-component-panel button {
    width: 100%;
  }
}
