:root {
  --bg: #edf3f8;
  --surface: rgba(255,255,255,0.9);
  --card: #ffffff;
  --ink: #10263f;
  --muted: #5e7188;
  --line: #d7e3ef;
  --line-strong: #bdd0e2;
  --navy: #123e74;
  --navy-strong: #0c315d;
  --blue: #2b7bc0;
  --blue-soft: #e8f2fb;
  --cyan: #3aa6d8;
  --slate: #697a8f;
  --gold: #caa053;
  --success: #17663a;
  --success-soft: #e8f6ee;
  --warning: #9a6407;
  --warning-soft: #fff6de;
  --danger: #a43832;
  --danger-soft: #fdeceb;
  --shadow-lg: 0 30px 70px rgba(11, 39, 70, 0.14);
  --shadow-md: 0 16px 40px rgba(18, 62, 116, 0.1);
  --shadow-sm: 0 8px 24px rgba(18, 62, 116, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(67, 147, 214, 0.14), transparent 28%),
    radial-gradient(circle at top left, rgba(18, 62, 116, 0.1), transparent 24%),
    linear-gradient(180deg, #f6f9fc 0%, var(--bg) 100%);
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 999;
}
.container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}
.hidden { display: none !important; }
.card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(185, 204, 222, 0.8);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}
.eyebrow, .section-kicker, .output-label, .mini-badge {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--navy);
}
.section-kicker { margin: 0 0 8px; }
.output-label { color: var(--muted); display: inline-block; margin-bottom: 8px; }
.hero-shell {
  position: relative;
  overflow: hidden;
  padding: 34px 0 26px;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13, 46, 89, 0.96), rgba(16, 70, 126, 0.92) 54%, rgba(47, 129, 190, 0.88)),
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent);
  clip-path: ellipse(140% 100% at 50% 0%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.hero-copy, .hero-aside { position: relative; z-index: 1; }
.brand-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 13px;
  flex: 0 0 auto;
  backdrop-filter: blur(8px);
}
.brand-mark span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0.52));
}
.hero-copy h1 {
  margin: 4px 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.02;
  color: #fff;
}
.hero-copy .eyebrow,
.hero-copy .hero-lead { color: rgba(255,255,255,0.88); }
.hero-lead {
  margin: 0 0 20px;
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  margin-top: 18px;
}
.button.hero-guide {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.button.hero-guide:hover {
  background: rgba(255,255,255,0.17);
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.hero-points article,
.hero-card {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}
.hero-points article {
  padding: 16px 16px 17px;
}
.hero-points strong,
.hero-card strong,
.hero-card h3,
.mini-rules { color: #fff; }
.hero-points span { color: rgba(255,255,255,0.78); display:block; margin-top: 6px; line-height: 1.5; }
.hero-card {
  padding: 20px;
  height: 100%;
  box-shadow: var(--shadow-md);
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.mini-badge {
  color: rgba(255,255,255,0.82);
}
.mini-rules {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  line-height: 1.55;
}
.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
  padding: 12px 0 34px;
}
.app-workspace,
.summary-rail { min-width: 0; }
.top-progress {
  padding: 16px 18px 17px;
  margin-bottom: 16px;
  border-radius: 24px;
}
.top-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.top-progress-title .section-kicker {
  margin-bottom: 5px;
}
.top-progress h2,
.panel-head h2,
.rail-head h2,
.dialog-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.12;
}
.progress-summary {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.progress-summary.compact {
  margin-bottom: 14px;
}
.progress-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff, #edf4fa);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
}
#progress-text {
  font-weight: 800;
  color: var(--muted);
}
.progress-track {
  width: 100%;
  height: 8px;
  background: #e7eef5;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d8e4ef;
}
#progress-bar,
#checklist-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--cyan));
  border-radius: inherit;
  transition: width .25s ease;
}
.step-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 8px;
}
.step-pill {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fbff);
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  transition: .2s ease;
}
.step-pill span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf1f7;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.step-pill em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.98rem;
}
.step-pill.active {
  border-color: rgba(18,62,116,.35);
  background: linear-gradient(180deg, rgba(18,62,116,.09), rgba(40,118,186,.05));
  color: var(--navy-strong);
  box-shadow: inset 0 0 0 1px rgba(18,62,116,.07);
}
.step-pill.active span {
  background: linear-gradient(180deg, var(--navy), var(--blue));
  color: #fff;
}
.alert {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(164,56,50,0.18);
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.step-panel { display: none; }
.step-panel.active { display: block; }
.panel-head {
  margin: 10px 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.panel-head p:last-child,
.panel-card p,
.dialog-card p,
.status-card p,
.callout p,
.reference-drawer p,
.status-tile small,
.mini-output p,
.output-statement p,
.output-remark-block p,
.field span + em,
.info-banner p,
#checklist-meta,
.rail-head + * p,
.hero-card p {
  color: var(--muted);
}
.panel-card,
.checklist-toolbar,
.output-card,
.action-bar,
.wording-card,
.draft-card,
.rail-card,
.reference-drawer,
#indirectness-box,
#class-i-safeguard {
  padding: 24px;
}
.field-grid {
  display: grid;
  gap: 16px;
}
.two-up { grid-template-columns: repeat(2, minmax(0,1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0,1fr)); }
.full-span { grid-column: 1 / -1; }
.field {
  display: grid;
  gap: 8px;
}
.field span {
  font-weight: 700;
  color: var(--ink);
}
.field em { font-style: normal; color: var(--muted); font-weight: 500; }
input[type="text"], textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdff);
  color: var(--ink);
  transition: .2s ease;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus, details summary:focus, .button:focus-visible, .icon-button:focus-visible {
  outline: none;
  border-color: rgba(43,123,192,0.7);
  box-shadow: 0 0 0 4px rgba(43,123,192,0.14);
}
.callout-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 16px;
  margin-top: 18px;
}
.callout-row.single-callout {
  grid-template-columns: 1fr;
}
.implementation-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.callout {
  display: flex;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.soft-blue { background: linear-gradient(180deg, #f4faff, #ecf5ff); }
.soft-slate { background: linear-gradient(180deg, #f9fbfd, #f3f7fb); }
.callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--navy), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.info-banner {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(202,160,83,0.25);
  background: linear-gradient(180deg, #fffaf0, #fff6e6);
}
.info-banner strong { display:block; margin-bottom: 4px; }
.split-head { align-items: end; }
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.foundation-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.foundation-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.foundation-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.foundation-card.selected,
.foundation-card:has(input:checked) {
  border-color: rgba(18,62,116,.52);
  box-shadow: 0 20px 44px rgba(18,62,116,.16);
  transform: translateY(-2px);
}
.foundation-card.selected::after,
.foundation-card:has(input:checked)::after {
  content: "Selected";
  position: absolute;
  top: 16px;
  right: 18px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, var(--navy), var(--blue));
  box-shadow: 0 10px 24px rgba(18,62,116,.16);
}
.foundation-card.selected h3,
.foundation-card:has(input:checked) h3,
.foundation-card.selected p,
.foundation-card:has(input:checked) p,
.foundation-card.selected ul,
.foundation-card:has(input:checked) ul {
  color: var(--ink);
}
.foundation-card.selected .verb-badge,
.foundation-card:has(input:checked) .verb-badge {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(18,62,116,0.12);
  color: var(--navy-strong);
}
.foundation-card.class-i.selected,
.foundation-card.class-i:has(input:checked) {
  background: linear-gradient(180deg, #eef5fd, #dceafb);
}
.foundation-card.class-ii.selected,
.foundation-card.class-ii:has(input:checked) {
  background: linear-gradient(180deg, #eef7ff, #dff0ff);
}
.foundation-card.class-iii.selected,
.foundation-card.class-iii:has(input:checked) {
  background: linear-gradient(180deg, #eefbff, #dcf6ff);
}
.foundation-card.class-iv.selected,
.foundation-card.class-iv:has(input:checked) {
  background: linear-gradient(180deg, #f4f6f9, #e6ebf1);
}
.foundation-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.class-badge,
.verb-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
}
.class-badge {
  color: #fff;
  background: linear-gradient(180deg, var(--navy), var(--blue));
}
.verb-badge {
  background: #edf4fa;
  color: var(--muted);
  text-align: right;
}
.foundation-card h3 { margin: 0 0 8px; font-size: 1.24rem; }
.foundation-card p { margin: 0 0 14px; line-height: 1.6; }
.foundation-card ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); line-height: 1.5; }
.class-i { border-top: 5px solid var(--navy); }
.class-ii { border-top: 5px solid var(--blue); }
.class-iii { border-top: 5px solid var(--cyan); }
.class-iv { border-top: 5px solid var(--slate); }
.panel-minihead {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.panel-minihead h3, .inline-head h3 { margin: 2px 0 0; }
.check-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.pill-choice,
.check-chip-grid { align-items: center; }
.choice-chip,
.check-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.choice-chip input,
.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-chip span,
.check-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fbff);
  color: var(--muted);
  font-weight: 700;
  transition: .2s ease;
}
.choice-chip input:checked + span,
.check-chip input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--navy), var(--blue));
  box-shadow: 0 10px 24px rgba(18,62,116,0.18);
}
.reference-drawer summary {
  list-style: none;
  font-weight: 800;
  cursor: pointer;
}
.reference-drawer summary::-webkit-details-marker { display:none; }
.reference-drawer[open] summary { margin-bottom: 18px; }
.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.drawer-grid article {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f2f7fb);
  border: 1px solid var(--line);
}
.drawer-grid h4 { margin: 0 0 8px; }
.empty-state {
  text-align: center;
  padding: 18px;
}
.empty-state.large { padding: 34px 18px; }
.empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}
.checklist-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar-progress { min-width: 340px; display: grid; gap: 8px; }
.checklist-sections {
  display: grid;
  gap: 12px;
}
.checklist-section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.checklist-section header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f9fbff, #f1f6fb);
  border-bottom: 1px solid var(--line);
}
.checklist-section h3 { margin: 0; font-size: 1.04rem; }
.checklist-section small { color: var(--muted); font-weight: 700; }
.check-items { padding: 14px; display: grid; gap: 12px; }
.check-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.check-item-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
}
.check-number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ecf3fa;
  color: var(--navy);
  font-weight: 800;
}
.check-question { line-height: 1.6; }
.yn {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.yn label {
  position: relative;
  cursor: pointer;
}
.yn input { position: absolute; opacity: 0; }
.yn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fbff);
  color: var(--muted);
  font-weight: 700;
}
.yn input:checked + span.yes {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #19824a, #2f9b61);
}
.yn input:checked + span.no {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #b04640, #d55d55);
}
.check-justification {
  margin-top: 12px;
}
.check-justification textarea {
  min-height: 88px;
}
.status-card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.status-card strong { display: block; margin-bottom: 6px; }
.status-card.success { background: var(--success-soft); border-color: rgba(23,102,58,.18); color: var(--success); }
.status-card.warning { background: var(--warning-soft); border-color: rgba(154,100,7,.18); color: var(--warning); }
.status-card.danger { background: var(--danger-soft); border-color: rgba(164,56,50,.18); color: var(--danger); }
.phrase-context-card {
  padding: 12px 16px;
  border-radius: 16px;
}
.phrase-context-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 0;
}
.phrase-context-grid > div {
  min-width: 0;
  padding: 7px 0 8px;
  border-bottom: 1px solid #e5edf5;
}
.phrase-context-grid > div:nth-last-child(-n+3) {
  border-bottom: 0;
}
.phrase-context-grid .wide {
  grid-column: auto;
}
.phrase-context-grid dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.phrase-context-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wording-layout {
  display: block;
}
.wording-stack {
  display: grid;
  gap: 18px;
}
.field-group + .field-group { margin-top: 20px; }
.inline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.inline-head .mini-muted { color: var(--muted); font-size: .92rem; }
.remarks-group { padding-top: 4px; }
.separated-remarks { margin: 0; }
.remarks-card { padding: 24px; }
.phrase-meta-grid {
  grid-template-columns: minmax(220px, 320px);
  margin-bottom: 16px;
}
.remarks-explainer {
  margin: -2px 0 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 860px;
}

.draft-box {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eff5fb);
  border: 1px solid var(--line);
}
#draft-text, #rail-draft, #output-final-statement {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.notation-line {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
}
.remark-preview {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  background: #fcfdff;
  line-height: 1.6;
}
.output-context-card {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .92fr);
  gap: 24px;
  margin-top: 20px;
}
.output-grid.single-column-output {
  grid-template-columns: 1fr;
}
.output-statement,
.output-remark-block {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfeff, #f4f8fc);
}
.output-remark-block { margin-top: 14px; }
.summary-list {
  margin: 0;
  display: grid;
  gap: 12px;
}
.summary-list dt {
  font-size: .82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.summary-list dd {
  margin: 4px 0 0;
  padding: 0 0 12px;
  border-bottom: 1px solid #e8eff6;
  line-height: 1.6;
}
.export-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.action-bar {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.action-bar-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: .2s ease;
}
.button.small { min-height: 38px; padding-inline: 14px; font-size: .92rem; }
.button.primary {
  color: #fff;
  background: linear-gradient(180deg, var(--navy), var(--blue));
  box-shadow: 0 14px 26px rgba(18,62,116,0.18);
}
.button.primary:hover { transform: translateY(-1px); }
.button.secondary {
  color: var(--navy);
  background: #eef5fb;
  border-color: #d7e4ef;
}
.button.ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.28);
  border-color: rgba(215,227,239,0.9);
}
.summary-rail .sticky-card {
  position: sticky;
  top: 22px;
}
.rail-head { margin-bottom: 16px; }
.rail-stack {
  display: grid;
  gap: 12px;
}
.status-tile {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfeff, #f3f8fc);
  border: 1px solid var(--line);
}
.status-tile span { display:block; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.status-tile strong { display:block; margin: 6px 0 4px; }
.mini-output {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef4fa);
  border: 1px solid var(--line);
}
.flowchart-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f6f9fc);
}
.flowchart-copy p { margin-top: 6px; line-height: 1.55; }
.flowchart-card img {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.reference-dialog {
  width: min(1040px, calc(100% - 24px));
  border: 0;
  padding: 0;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: #f8fbff;
}
.reference-dialog::backdrop {
  background: rgba(6, 18, 33, 0.5);
  backdrop-filter: blur(4px);
}
.dialog-head {
  padding: 24px 26px 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #536b80;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}
.icon-button::before,
.icon-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}
.icon-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.icon-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.quick-guide-rules {
  padding: 0 26px 22px;
}
.quick-guide-rule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.quick-guide-rule {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f4f8fc);
  border: 1px solid var(--line);
}
.quick-guide-rule span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--navy), var(--blue));
  color: #fff;
  font-weight: 800;
}
.quick-guide-rule p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-grid {
  padding: 0 26px 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.quick-guide-source {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(18,62,116,.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18,62,116,.035), rgba(255,255,255,.9));
}
.quick-guide-source h3 {
  margin: 2px 0 8px;
  font-size: 1rem;
}
.quick-guide-source p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .9rem;
}
.quick-guide-source p + p { margin-top: 8px; }
.quick-guide-source .quick-guide-citation {
  color: var(--ink);
  font-size: .84rem;
}
.quick-guide-source .quick-guide-license {
  font-size: .82rem;
}

.dialog-card {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.dialog-card h3 { margin: 0 0 8px; }
.dialog-card ul { margin: 0; padding-left: 18px; color: var(--muted); display:grid; gap: 8px; }
.quick-guide-flowchart {
  padding: 2px 26px 14px;
}
.quick-guide-flowchart h3 {
  margin: 2px 0 8px;
  font-size: 1.08rem;
}
.quick-guide-flowchart p:not(.section-kicker) {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.55;
  font-size: .92rem;
}

.dialog-foot {
  padding: 0 26px 26px;
}
.dialog-foot img {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 1180px) {
  .app-layout,
  .hero-grid,
  .wording-layout {
    grid-template-columns: 1fr;
  }
  .summary-rail .sticky-card { position: static; }
  .callout-row { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .top-progress-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-guide-rule-grid,
  .foundation-grid,
  .output-grid,
  .drawer-grid,
  .dialog-grid,
  .step-nav,
  .field-grid.two-up,
  .field-grid.three-up {
    grid-template-columns: 1fr;
  }
  .check-item-head { grid-template-columns: 1fr; }
  .check-number { margin-bottom: 6px; }
  .toolbar-progress { min-width: 0; }
  .checklist-toolbar,
  .action-bar,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .phrase-context-grid { grid-template-columns: 1fr; }
  .phrase-context-grid > div { border-bottom: 1px solid #e5edf5 !important; }
  .phrase-context-grid > div:last-child { border-bottom: 0 !important; }

  .phrase-context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phrase-context-grid .wide { grid-column: auto; }
  .phrase-context-grid > div:nth-last-child(-n+3) { border-bottom: 1px solid #e5edf5; }
  .phrase-context-grid > div:nth-last-child(-n+2) { border-bottom: 0; }

  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero-shell { padding-top: 18px; }
  .top-progress { padding: 14px 15px 15px; }
  .top-progress h2 { font-size: 1.08rem; }
  .progress-chip { min-height: 32px; font-size: 0.82rem; }
  .top-progress,
  .panel-card,
  .checklist-toolbar,
  .output-card,
  .action-bar,
  .wording-card,
  .draft-card,
  .rail-card,
  .reference-drawer,
  #indirectness-box,
  #class-i-safeguard { padding: 18px; }
  .foundation-card { padding: 18px; }
  .choice-chip,
  .check-chip { width: 100%; }
  .choice-chip span,
  .check-chip span { width: 100%; }
  .export-actions,
  .action-bar-right { width: 100%; }
  .button { width: 100%; }
}

@media print {
  body { background: #fff; }
  .hero-shell,
  .top-progress,
  .summary-rail,
  .action-bar,
  .export-actions,
  #open-reference,
  .button,
  .reference-dialog { display: none !important; }
  .step-panel { display: none !important; }
  .step-panel[data-panel="3"] { display: block !important; }
  .container { width: 100%; }
  .output-card, .status-card, .output-statement, .output-remark-block { box-shadow: none; }
}

/* v4: compact hero + supporting SEE EVIDENCE footer */
.hero-shell {
  padding: 18px 0 16px;
}
.hero-backdrop {
  clip-path: none;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.hero-copy h1 {
  margin: 2px 0 6px;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.05;
}
.hero-copy .eyebrow {
  margin: 0 0 6px;
  font-size: 0.7rem;
}
.hero-lead {
  margin: 0;
  max-width: 860px;
  font-size: 0.96rem;
  line-height: 1.55;
}
.hero-actions {
  margin-top: 0;
  justify-content: flex-end;
}
.button.hero-guide {
  min-height: 42px;
  padding: 0 20px;
  white-space: nowrap;
}

.tool-footer {
  margin-top: 12px;
  border-top: 1px solid rgba(185, 204, 222, 0.85);
  background: rgba(255,255,255,0.82);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.8fr);
  gap: 34px;
  align-items: start;
  padding: 30px 0 34px;
}
.footer-support-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-logo-link {
  display: inline-block;
  max-width: 260px;
}
.footer-logo {
  width: 240px;
  height: auto;
}
.footer-site-under-logo {
  margin: 7px 0 0 !important;
  width: 240px;
  text-align: center;
}
.footer-legal-block {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}
.footer-legal-block p {
  margin: 0 0 9px;
}
.footer-legal-block strong {
  color: var(--ink);
}
.citation-text {
  color: #42586f;
}
.license-text {
  font-size: 0.82rem;
}
.footer-site-link {
  margin-top: 14px !important;
}
.footer-site-link a {
  color: #526b83;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.075em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.footer-site-link a:hover {
  color: var(--navy);
  border-bottom-color: rgba(18,62,116,0.28);
}

@media (max-width: 780px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-logo {
    width: 210px;
  }
}

@media print {
  .tool-footer { display: none !important; }
}


/* v7: evidence-review gate before recommendation entry */
.review-gate {
  max-width: 760px;
}
.review-gate .gate-label {
  margin: 0 0 6px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 800;
}
.review-gate h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.review-gate > p:not(.gate-label) {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}
.review-stop {
  margin-top: 18px;
  padding: 15px 17px;
  border-radius: 15px;
  background: var(--warning-soft);
  border: 1px solid rgba(154,100,7,.18);
  color: var(--warning);
}
.review-stop strong { display: block; margin-bottom: 5px; }
.review-stop p { margin: 0; color: var(--muted); line-height: 1.55; }
.recommendation-fields {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.required-mark { color: var(--danger); }
.button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none !important;
  box-shadow: none;
}


/* v22: project saving */
.project-actions-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5edf5;
}
.project-actions-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}
.project-dialog {
  max-width: 660px;
}
.project-dialog-body {
  padding: 0 26px 26px;
}
.project-storage-note {
  margin: 14px 0 0;
  padding: 13px 15px;
  border-radius: 14px;
  background: #f4f8fc;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.saved-projects-list {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
}
.saved-project-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.saved-project-meta strong {
  display: block;
  margin-bottom: 5px;
}
.saved-project-meta small {
  color: var(--muted);
  line-height: 1.45;
}
.saved-project-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.saved-project-controls button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.saved-project-controls .delete-project {
  color: var(--danger);
}
.empty-saved-projects {
  padding: 28px 18px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .saved-project-item { grid-template-columns: 1fr; }
  .saved-project-controls { justify-content: flex-start; }
  .dialog-actions .button { width: 100%; }
}

/* v28: global project toolbar */
.top-progress-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.project-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.project-toolbar .button.small {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.84rem;
  box-shadow: none;
}
.output-export-block {
  margin-top: 20px;
}
@media (max-width: 760px) {
  .top-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .top-progress-tools {
    width: 100%;
    justify-content: space-between;
  }
  .project-toolbar {
    flex: 1 1 auto;
  }
}
@media (max-width: 560px) {
  .top-progress-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .project-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .project-toolbar .button.small {
    width: 100%;
  }
  .progress-chip {
    align-self: flex-start;
  }
}


/* v30: compact project actions at the top edge of the banner */
.hero-shell {
  padding: 8px 0 24px;
}
.hero-utility-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 24px;
  margin-bottom: 4px;
}
.hero-project-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-project-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
  padding: 2px 0;
  margin: 0;
  min-height: 0;
  box-shadow: none;
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}
.hero-project-link:hover,
.hero-project-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}
.hero-project-link.hero-save {
  color: rgba(255,255,255,0.96);
  font-weight: 700;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}
.button.hero-guide {
  min-height: 36px;
  padding: 0 15px;
  font-size: 0.82rem;
}
.top-progress-head {
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-utility-row {
    justify-content: flex-start;
  }
  .hero-project-toolbar {
    justify-content: flex-start;
    gap: 14px;
  }
}
@media (max-width: 520px) {
  .hero-shell {
    padding-top: 7px;
  }
  .hero-project-toolbar {
    gap: 12px;
  }
  .hero-project-link {
    font-size: 0.72rem;
  }
}

/* v31 — guided classification flowchart */
.classification-guide {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(18, 52, 86, 0.13);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 250, 253, 0.96), rgba(255, 255, 255, 0.98));
}

.classification-guide-head h3,
.final-classification-head h3 {
  margin: 0.08rem 0 0.22rem;
  font-size: 1.02rem;
}

.classification-guide-head p:last-child,
.final-classification-head p:last-child {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.classification-path {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.82rem;
}

.guide-question {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0.68rem;
  align-items: center;
  padding: 0.66rem 0.72rem;
  border: 1px solid rgba(18, 52, 86, 0.10);
  border-radius: 10px;
  background: #fff;
}

.guide-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 62, 96, 0.08);
  color: var(--navy, #103e60);
  font-size: 0.76rem;
  font-weight: 700;
}

.guide-question-copy {
  min-width: 0;
}

.guide-question-copy strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--ink);
}

.guide-question-copy small {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.32;
}

.guide-choice {
  display: inline-flex;
  gap: 0.3rem;
  flex-wrap: nowrap;
}

.guide-choice label {
  cursor: pointer;
}

.guide-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.guide-choice span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 30px;
  padding: 0.25rem 0.56rem;
  border: 1px solid rgba(18, 52, 86, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  transition: 0.15s ease;
}

.guide-choice input:checked + span {
  border-color: rgba(16, 62, 96, 0.55);
  background: rgba(16, 62, 96, 0.09);
  color: var(--navy, #103e60);
  box-shadow: inset 0 0 0 1px rgba(16, 62, 96, 0.08);
}

.guide-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.55fr);
  gap: 1rem;
  align-items: center;
  margin-top: 0.72rem;
  padding: 0.72rem 0.82rem;
  border-left: 3px solid var(--gold, #b39252);
  border-radius: 8px;
  background: rgba(179, 146, 82, 0.07);
}

.guide-suggestion-label {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#guide-suggestion-class {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

#guide-suggestion-reason,
.guide-advisory {
  margin: 0.14rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--muted);
}

.guide-advisory {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(18, 52, 86, 0.12);
}

.final-classification-head {
  margin: 2.1rem 0 0.55rem;
}

@media (max-width: 760px) {
  .guide-question {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .guide-choice {
    grid-column: 2;
  }
  .guide-suggestion {
    grid-template-columns: 1fr;
  }
  .guide-advisory {
    padding-left: 0;
    padding-top: 0.55rem;
    border-left: 0;
    border-top: 1px solid rgba(18, 52, 86, 0.12);
  }
}

/* v32 — restrained SEE EVIDENCE palette: less blue, more neutral space + selective gold */
:root {
  --bg: #f3f3f0;
  --surface: rgba(255,255,255,0.94);
  --card: #ffffff;
  --ink: #182837;
  --muted: #66717b;
  --line: #dedfdb;
  --line-strong: #c9ccc7;
  --navy: #163a5f;
  --navy-strong: #102f4f;
  --blue: #557792;
  --blue-soft: #eef1f2;
  --cyan: #5f8a80;
  --slate: #727b84;
  --gold: #b8924a;
  --shadow-lg: 0 30px 70px rgba(32, 42, 49, 0.13);
  --shadow-md: 0 16px 40px rgba(32, 42, 49, 0.09);
  --shadow-sm: 0 8px 24px rgba(32, 42, 49, 0.07);
}

body {
  background:
    radial-gradient(circle at top right, rgba(184, 146, 74, 0.07), transparent 25%),
    linear-gradient(180deg, #f8f8f6 0%, var(--bg) 100%);
}

.card {
  border-color: rgba(207, 210, 205, 0.92);
}

/* Keep blue/navy primarily for identity and primary actions. */
.hero-backdrop {
  background:
    linear-gradient(135deg, #102f4f 0%, #163a5f 58%, #1d4a6b 100%),
    linear-gradient(90deg, rgba(255,255,255,0.04), transparent);
}

.progress-chip,
.step-pill,
.choice-chip span,
.check-chip span,
.yn span,
input[type="text"], textarea, select {
  background: #fff;
}

.progress-track {
  background: #e8e8e4;
  border-color: #dadbd7;
}

#progress-bar,
#checklist-progress {
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
}

.step-pill span {
  background: #f0f0ed;
  color: #465564;
}

.step-pill.active {
  border-color: rgba(184,146,74,.38);
  background: #fbf7ee;
  color: var(--navy-strong);
  box-shadow: inset 0 0 0 1px rgba(184,146,74,.08);
}

.step-pill.active span {
  background: var(--navy);
}

input:focus, textarea:focus, select:focus, details summary:focus,
.button:focus-visible, .icon-button:focus-visible {
  border-color: rgba(184,146,74,.72);
  box-shadow: 0 0 0 4px rgba(184,146,74,.13);
}

.soft-blue,
.soft-slate,
.drawer-grid article,
.checklist-section header,
.draft-box,
.output-context-card,
.output-statement,
.output-remark-block,
.status-tile,
.mini-output,
.flowchart-card,
.reference-dialog,
.quick-guide-rule,
.project-storage-note,
.saved-project-item {
  background: #fafaf8;
}

.callout-icon,
.empty-icon,
.button.primary,
.choice-chip input:checked + span,
.check-chip input:checked + span {
  background: var(--navy);
}

.button.primary {
  box-shadow: 0 12px 24px rgba(16,47,79,.16);
}

.button.secondary {
  color: var(--navy-strong);
  background: #faf7ef;
  border-color: #e5dac1;
}

.check-number {
  background: #f6f1e6;
  color: #8b6d32;
}

/* Four classes are now visually distinct without turning the page blue. */
.foundation-card {
  background: #fff;
  border-color: var(--line);
}

.foundation-card.selected,
.foundation-card:has(input:checked) {
  border-color: rgba(47,58,67,.34);
  box-shadow: 0 18px 38px rgba(32,42,49,.12);
}

.foundation-card.selected::after,
.foundation-card:has(input:checked)::after {
  background: #2d3943;
  box-shadow: 0 8px 18px rgba(32,42,49,.14);
}

.foundation-card.class-i.selected,
.foundation-card.class-i:has(input:checked) {
  background: #f1f4f6;
}
.foundation-card.class-ii.selected,
.foundation-card.class-ii:has(input:checked) {
  background: #fbf6ea;
}
.foundation-card.class-iii.selected,
.foundation-card.class-iii:has(input:checked) {
  background: #eef5f2;
}
.foundation-card.class-iv.selected,
.foundation-card.class-iv:has(input:checked) {
  background: #f2f3f3;
}

.class-i { border-top-color: var(--navy); }
.class-ii { border-top-color: var(--gold); }
.class-iii { border-top-color: #5f8a80; }
.class-iv { border-top-color: var(--slate); }

.class-badge { background: var(--navy); }
.class-ii .class-badge { background: #a37c32; }
.class-iii .class-badge { background: #587d74; }
.class-iv .class-badge { background: #68727c; }

.verb-badge {
  background: #f2f2ef;
}

.foundation-card.selected .verb-badge,
.foundation-card:has(input:checked) .verb-badge {
  background: rgba(255,255,255,.78);
  border-color: rgba(80,88,94,.13);
  color: #46515b;
}

/* Guided classification should read as a neutral decision aid, not another blue panel. */
.classification-guide {
  border-color: #ddded9;
  background: #fafaf8;
}
.guide-question {
  border-color: #e1e2de;
}
.guide-number {
  background: #f6f1e6;
  color: #85692f;
}
.guide-choice span {
  border-color: #d8dad5;
}
.guide-choice input:checked + span {
  border-color: rgba(184,146,74,.58);
  background: #fbf6ea;
  color: #73591f;
  box-shadow: inset 0 0 0 1px rgba(184,146,74,.08);
}
.guide-advisory {
  border-left-color: #dedfd9;
}

/* Quick guide: use gold sparingly for numbered rules. */
.quick-guide-rule span {
  background: #a98239;
}
.quick-guide-source {
  border-color: #e1ded5;
  background: #faf9f5;
}

/* Supporting detail cards stay neutral. */
.phrase-context-grid > div,
.summary-list dd {
  border-bottom-color: #e7e7e3;
}
.remark-preview {
  background: #fcfcfa;
}
.tool-footer {
  border-top-color: #d9dbd6;
  background: rgba(250,250,248,.92);
}


/* v34 — more breathing room in Phrase main recommendation */
.wording-card {
  padding: 30px;
}
.wording-card > .field-group {
  margin-bottom: 26px;
}
#recommendation-controls {
  display: grid;
  gap: 24px;
}
.phrase-meta-grid {
  margin-bottom: 0;
}
#recommendation-controls > .field.full-span {
  margin-top: 2px;
}

@media (max-width: 700px) {
  .wording-card {
    padding: 22px;
  }
  .wording-card > .field-group {
    margin-bottom: 22px;
  }
  #recommendation-controls {
    gap: 20px;
  }
}

/* v35 — official Semmelweis Framework class colors from the published flowchart. */
:root {
  --sf-class-i: #003e78;
  --sf-class-ii: #0070b1;
  --sf-class-iii: #109aea;
  --sf-class-iv: #737373;
}

.foundation-card.class-i { border-top-color: var(--sf-class-i); }
.foundation-card.class-ii { border-top-color: var(--sf-class-ii); }
.foundation-card.class-iii { border-top-color: var(--sf-class-iii); }
.foundation-card.class-iv { border-top-color: var(--sf-class-iv); }

.foundation-card.class-i .class-badge { background: var(--sf-class-i); }
.foundation-card.class-ii .class-badge { background: var(--sf-class-ii); }
.foundation-card.class-iii .class-badge { background: var(--sf-class-iii); }
.foundation-card.class-iv .class-badge { background: var(--sf-class-iv); }

.foundation-card.class-i.selected,
.foundation-card.class-i:has(input:checked) {
  background: #f2f7fb;
  border-color: var(--sf-class-i);
  box-shadow: 0 18px 38px rgba(0,62,120,.15);
}
.foundation-card.class-ii.selected,
.foundation-card.class-ii:has(input:checked) {
  background: #f2f9fd;
  border-color: var(--sf-class-ii);
  box-shadow: 0 18px 38px rgba(0,112,177,.15);
}
.foundation-card.class-iii.selected,
.foundation-card.class-iii:has(input:checked) {
  background: #f2faff;
  border-color: var(--sf-class-iii);
  box-shadow: 0 18px 38px rgba(16,154,234,.15);
}
.foundation-card.class-iv.selected,
.foundation-card.class-iv:has(input:checked) {
  background: #f5f5f5;
  border-color: var(--sf-class-iv);
  box-shadow: 0 18px 38px rgba(115,115,115,.14);
}

.foundation-card.class-i.selected::after,
.foundation-card.class-i:has(input:checked)::after { background: var(--sf-class-i); }
.foundation-card.class-ii.selected::after,
.foundation-card.class-ii:has(input:checked)::after { background: var(--sf-class-ii); }
.foundation-card.class-iii.selected::after,
.foundation-card.class-iii:has(input:checked)::after { background: var(--sf-class-iii); }
.foundation-card.class-iv.selected::after,
.foundation-card.class-iv:has(input:checked)::after { background: var(--sf-class-iv); }

/* v37: compact Phrase context + class-specific wording guidance */
.phrase-context-grid.phrase-context-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.phrase-context-grid.phrase-context-grid-compact > div {
  border-bottom: 0;
}
.allowed-wording-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.allowed-wording-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--line-strong);
}
.allowed-wording-card[data-class="I"]::before { background: #003E78; }
.allowed-wording-card[data-class="II"]::before { background: #0070B1; }
.allowed-wording-card[data-class="III"]::before { background: #109AEA; }
.allowed-wording-card[data-class="IV"]::before { background: #737373; }
.allowed-wording-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}
.allowed-wording-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.allowed-wording-head .section-kicker {
  margin-bottom: 3px;
}
.allowed-wording-class {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}
.allowed-wording-intro {
  margin: 0 0 13px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 900px;
}
.allowed-wording-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.allowed-wording-example {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbfc;
}
.allowed-wording-label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.allowed-wording-verb,
.allowed-wording-example-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.allowed-wording-verb {
  margin-bottom: 6px;
}
.allowed-wording-verb > span,
.allowed-wording-example-text > span {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
}
.allowed-wording-verb strong {
  color: var(--ink);
  font-size: .94rem;
}
.allowed-wording-example-text {
  align-items: flex-start;
}
.allowed-wording-example-text p {
  margin: 0;
  color: #6b7280;
  line-height: 1.48;
  font-size: .9rem;
}
.allowed-wording-example small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 760px) {
  .phrase-context-grid.phrase-context-grid-compact,
  .allowed-wording-examples {
    grid-template-columns: 1fr;
  }
  .allowed-wording-head {
    align-items: flex-start;
  }
}


/* v43 — inline explanation of indirectness in the guided classification flowchart */
.guide-question-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.term-help {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.term-help summary {
  list-style: none;
  width: 18px;
  height: 18px;
  border: 1px solid #c7c9c5;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5f6670;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}
.term-help summary::-webkit-details-marker {
  display: none;
}
.term-help summary:hover,
.term-help summary:focus-visible {
  border-color: #8d918b;
  color: var(--ink);
  outline: none;
}
.term-help-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  width: min(360px, 78vw);
  transform: translateX(-50%);
  padding: 11px 13px;
  border: 1px solid #d9dbd6;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24,31,38,.12);
  color: #59616a;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.48;
}
@media (max-width: 700px) {
  .term-help-popover {
    left: 0;
    transform: none;
  }
}


/* v46 — compact footer citation disclosure; logo is no longer a link. */
.footer-logo-link {
  display: inline-block;
  max-width: 260px;
  cursor: default;
}
.footer-tool-line {
  margin-bottom: 8px !important;
}
.footer-disclosure {
  margin-top: 6px;
}
.footer-disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #526b83;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.footer-disclosure summary::-webkit-details-marker { display: none; }
.footer-disclosure summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #d3d9de;
  border-radius: 50%;
  color: #6d7c89;
  font-size: 0.82rem;
  line-height: 1;
  transition: transform .18s ease, color .18s ease, border-color .18s ease;
}
.footer-disclosure[open] summary::after {
  content: "–";
}
.footer-disclosure summary:hover { color: var(--navy); }
.footer-disclosure summary:hover::after {
  border-color: rgba(18,62,116,.3);
  color: var(--navy);
}
.footer-disclosure-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e4e0;
  max-width: 900px;
}
.footer-disclosure-body p:last-child { margin-bottom: 0; }


/* v48 — compact per-basis help for remarks */
.remark-basis-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: -4px;
  color: var(--muted);
  font-size: .82rem;
}
.remark-help-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.remark-basis-help .term-help-popover {
  left: 0;
  transform: none;
  white-space: normal;
}
@media (max-width: 700px) {
  .remark-basis-help {
    gap: 8px 14px;
  }
}

/* v49 — clearer evidentiary foundations in final classification cards */
.foundation-detail {
  margin: 0 0 14px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #f7f8f8;
  border: 1px solid #eceeed;
}
.foundation-detail-label {
  display: block;
  margin: 0 0 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #68727c;
}
.foundation-detail p {
  margin: 0;
  line-height: 1.52;
  color: var(--ink);
}
.foundation-card > .foundation-detail-label {
  margin-top: 2px;
  margin-bottom: 7px;
}
.final-classification-head {
  margin-bottom: 14px;
}


/* v52 — selectable wording guidance and live notation beside recommendation text */
.allowed-wording-example.wording-choice {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}
.allowed-wording-example.wording-choice:hover {
  background: #fff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.allowed-wording-example.wording-choice:focus-visible {
  outline: 3px solid rgba(0, 62, 120, .16);
  outline-offset: 2px;
}
.allowed-wording-card[data-class="I"] .allowed-wording-example.wording-choice.selected {
  border-color: #003E78;
  box-shadow: 0 0 0 2px rgba(0,62,120,.10);
  background: #f7fbff;
}
.allowed-wording-card[data-class="II"] .allowed-wording-example.wording-choice.selected {
  border-color: #0070B1;
  box-shadow: 0 0 0 2px rgba(0,112,177,.10);
  background: #f6fbff;
}
.allowed-wording-card[data-class="III"] .allowed-wording-example.wording-choice.selected {
  border-color: #109AEA;
  box-shadow: 0 0 0 2px rgba(16,154,234,.10);
  background: #f5fbff;
}
.allowed-wording-card[data-class="IV"] .allowed-wording-example.wording-choice.selected {
  border-color: #737373;
  box-shadow: 0 0 0 2px rgba(115,115,115,.10);
  background: #f8f8f8;
}
.phrase-notation-preview {
  display: block;
  margin-top: 8px;
  color: #7a8491;
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.4;
}
.phrase-notation-preview.hidden { display: none; }


/* v53 — required recommendation-type selection and live recommendation summary */
.rail-draft-notation {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
  font-weight: 500;
}
.allowed-wording-head .required-mark {
  margin-left: 2px;
}


/* v57 — contextual remark-basis explanation */
.remark-basis-explanation {
  align-self: end;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.remark-basis-explanation.hidden { display: none; }
@media (max-width: 700px) {
  .remark-basis-explanation {
    min-height: 0;
    padding: 0;
  }
}

/* v58-v59 — multiple remarks, parallel basis controls, and compact help strip */
.remarks-list {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}
.remark-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .9fr);
  gap: 20px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid #eceeed;
}
.remark-row:first-child { border-top: 0; padding-top: 8px; }
.remark-text-field { margin: 0; }
.remark-basis-column {
  display: grid;
  gap: 8px;
  align-content: start;
}
.remark-basis-column .field { margin: 0; }
.remarks-actions {
  margin-top: 12px;
}
.remark-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: #7b6262;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
  justify-self: start;
  padding: 2px 0;
}
.remark-remove:hover { text-decoration: underline; }
.remark-basis-help {
  margin-top: 10px;
  margin-bottom: 2px;
}
@media (max-width: 780px) {
  .remark-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* v64 — research-question project overview */
.app-layout.overview-mode {
  grid-template-columns: minmax(0, 1fr);
}
.app-layout.overview-mode .app-workspace {
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
}
.project-overview {
  display: grid;
  gap: 18px;
}
.overview-head {
  margin-bottom: 0;
}
.overview-question-card {
  padding: 22px 24px;
}
.overview-question-card textarea {
  min-height: 94px;
}
.overview-recommendations-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
}
.overview-recommendations-head h3 {
  margin: 0 0 5px;
  font-size: 1.18rem;
}
.overview-recommendations-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.recommendations-list {
  display: grid;
  gap: 12px;
}
.recommendation-overview-card {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.recommendation-overview-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.recommendation-overview-title-row h4 {
  margin: 0;
  font-size: 1.02rem;
}
.recommendation-class-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8fa;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.recommendation-overview-preview {
  margin: 8px 0 6px;
  color: var(--ink);
  line-height: 1.55;
}
.recommendation-overview-main small {
  color: var(--muted);
}
.recommendation-overview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.button.text-danger {
  border: 0;
  background: transparent;
  color: var(--danger);
  box-shadow: none;
  padding-inline: 8px;
}
.button.text-danger:hover {
  background: var(--danger-soft);
}
.recommendations-empty {
  padding: 28px;
  text-align: center;
  border-style: dashed;
  box-shadow: none;
}
.recommendations-empty strong {
  display: block;
  margin-bottom: 6px;
}
.recommendations-empty p {
  margin: 0;
  color: var(--muted);
}
.wizard-overview-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  margin: 0 0 7px;
  font-size: .8rem;
  font-weight: 700;
}
.wizard-overview-link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .overview-recommendations-head {
    align-items: stretch;
    flex-direction: column;
  }
  .overview-recommendations-head .button {
    align-self: flex-start;
  }
  .recommendation-overview-card {
    grid-template-columns: 1fr;
  }
  .recommendation-overview-actions {
    justify-content: flex-start;
  }
}
.overview-recommendations-head .button { white-space: nowrap; }

/* v66 — collapsible research question on overview */
.overview-question-display {
  display: grid;
  gap: 10px;
}
.overview-question-display-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.overview-question-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.overview-question-text {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.58;
  white-space: pre-wrap;
}
.overview-question-editor {
  display: grid;
  gap: 12px;
}
.overview-question-editor-actions {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .overview-question-display-head {
    align-items: flex-start;
  }
}

/* v67 — multi-question project overview */
.project-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.project-overview-head > div { min-width: 0; }
.project-overview-head > .button { white-space: nowrap; }
.research-questions-list {
  display: grid;
  gap: 26px;
}
.project-empty-state {
  padding: 28px 4px;
  text-align: center;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}
.project-empty-state strong {
  display: block;
  margin-bottom: 6px;
}
.project-empty-state p {
  margin: 0;
  color: var(--muted);
}
.research-question-editor-card {
  padding: 22px 24px;
}
.research-question-editor-head,
.research-question-display-head,
.question-recommendations-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.research-question-editor-head {
  margin-bottom: 16px;
}
.research-question-limit-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .78rem;
}
.research-question-closed {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  padding: 22px 0 0;
}
.research-question-closed:last-child {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 24px;
}
.research-question-heading-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.research-question-display-head .overview-question-text {
  margin-top: 7px;
  font-size: 1.04rem;
  line-height: 1.58;
}
.research-question-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.research-question-recommendations {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 2px solid rgba(18, 62, 116, .12);
}
.question-recommendations-head {
  align-items: center;
  margin-bottom: 4px;
}
.question-recommendations-head h3 {
  margin: 0;
  font-size: 1rem;
}
.question-recommendations-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .8rem;
}
.recommendations-list {
  display: grid;
  gap: 0;
}
.recommendation-overview-row {
  padding: 16px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.recommendation-overview-row:last-child {
  border-bottom: 0;
}
.question-recommendations-empty {
  padding: 16px 0 4px;
  color: var(--muted);
  font-size: .9rem;
}
.recommendation-overview-row .recommendation-overview-preview {
  margin-top: 7px;
}
.recommendation-overview-row .recommendation-overview-actions {
  align-self: center;
}

@media (max-width: 760px) {
  .project-overview-head,
  .research-question-display-head,
  .research-question-editor-head,
  .question-recommendations-head {
    align-items: stretch;
    flex-direction: column;
  }
  .project-overview-head > .button,
  .question-recommendations-head > .button {
    align-self: flex-start;
  }
  .research-question-actions {
    justify-content: flex-start;
  }
  .research-question-recommendations {
    padding-left: 12px;
  }
  .recommendation-overview-row {
    grid-template-columns: 1fr;
  }
  .recommendation-overview-row .recommendation-overview-actions {
    justify-content: flex-start;
  }
}


/* v68 — clearer overview grouping without an in-edit appearance */
.research-question-closed {
  background: #f4f1e9;
  border: 1px solid #e2dccf;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(31, 42, 55, .04);
  padding: 20px 22px 22px;
}
.research-question-closed:last-child {
  border-bottom: 1px solid #e2dccf;
  padding-bottom: 22px;
}
.research-question-recommendations {
  margin-top: 18px;
  padding-left: 0;
  border-left: 0;
}
.question-recommendations-head {
  padding-top: 14px;
  border-top: 1px solid rgba(120, 106, 77, .16);
  margin-bottom: 10px;
}
.recommendations-list {
  gap: 8px;
}
.recommendation-overview-row {
  padding: 14px 16px;
  background: #eef1f4;
  border: 1px solid #dde2e7;
  border-radius: 10px;
  box-shadow: none;
}
.recommendation-overview-row:last-child {
  border-bottom: 1px solid #dde2e7;
}
.question-recommendations-empty {
  padding: 14px 16px;
  background: #eef1f4;
  border: 1px dashed #d5dbe1;
  border-radius: 10px;
}
@media (max-width: 760px) {
  .research-question-closed {
    padding: 18px 16px 20px;
  }
  .research-question-recommendations {
    padding-left: 0;
  }
}


/* v69 — dark research-question headers + collapsible recommendation groups */
.research-question-closed {
  padding: 0;
  overflow: hidden;
  background: #f5f7f9;
  border: 1px solid #d7dee6;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(22, 42, 66, .06);
}
.research-question-closed:last-child {
  padding-bottom: 0;
  border-bottom: 1px solid #d7dee6;
}
.research-question-display-head {
  padding: 18px 20px;
  background: #123e6d;
  color: #fff;
  align-items: center;
}
.research-question-display-head .overview-question-label {
  color: rgba(255, 255, 255, .72);
}
.research-question-display-head .overview-question-text {
  color: #fff;
  margin-bottom: 0;
  font-weight: 600;
}
.research-question-display-head .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .06);
}
.research-question-display-head .button.ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .58);
}
.research-question-display-head .button.text-danger {
  color: #ffd8d8;
}
.research-question-display-head .button.text-danger:hover {
  color: #fff;
  background: rgba(166, 43, 43, .28);
}
.research-question-recommendations {
  margin-top: 0;
  padding: 16px 20px 20px;
  background: #f5f7f9;
}
.question-recommendations-head {
  padding-top: 0;
  border-top: 0;
  margin-bottom: 10px;
}
.question-recommendations-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.recommendations-toggle {
  min-width: 78px;
}
.research-question-closed.recommendations-collapsed .research-question-recommendations {
  padding-bottom: 14px;
}
.research-question-closed.recommendations-collapsed .question-recommendations-head {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .research-question-display-head {
    padding: 16px;
    align-items: stretch;
  }
  .research-question-recommendations {
    padding: 14px 16px 16px;
  }
  .question-recommendations-actions {
    justify-content: flex-start;
  }
}


/* v70 — quieter host label and right-aligned tool/citation footer block */
.footer-support-label {
  color: #8794a1;
  font-size: 0.70rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.035em;
  opacity: 0.72;
  margin-bottom: 8px;
}
.footer-legal-block {
  justify-self: end;
  max-width: 860px;
  width: 100%;
  text-align: right;
}
.footer-tool-line {
  text-align: right;
}
.footer-disclosure {
  text-align: right;
}
.footer-disclosure summary {
  justify-content: flex-end;
}
.footer-disclosure-body {
  margin-left: auto;
  text-align: left;
}
@media (max-width: 780px) {
  .footer-legal-block,
  .footer-tool-line,
  .footer-disclosure {
    justify-self: stretch;
    text-align: left;
  }
  .footer-disclosure summary {
    justify-content: flex-start;
  }
  .footer-disclosure-body {
    margin-left: 0;
  }
}


/* v71 — rebalance overview palette: retain distinction without overusing blue */
.research-question-closed {
  background: #f4f2ed;
  border-color: #d9d4ca;
  box-shadow: 0 5px 16px rgba(42, 45, 47, .07);
}

.research-question-display-head {
  position: relative;
  background: linear-gradient(135deg, #35424a 0%, #2d383f 100%);
  color: #fff;
  border-bottom: 3px solid #b8924a;
}

.research-question-display-head .overview-question-label {
  color: rgba(255, 255, 255, .66);
}

.research-question-display-head .overview-question-text {
  color: #fff;
}

.research-question-display-head .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .045);
}
.research-question-display-head .button.ghost:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .48);
}

.research-question-recommendations {
  background: #f4f2ed;
}

.recommendation-overview-row {
  background: #fbfaf6;
  border-color: #ded9cf;
}
.recommendation-overview-row:last-child {
  border-bottom-color: #ded9cf;
}
.recommendation-overview-row:hover {
  background: #fffdf8;
  border-color: #d3ccbe;
}

.question-recommendations-empty {
  background: #faf8f3;
  border-color: #d9d3c8;
}

/* Use the SEE EVIDENCE gold for the overview-level creation action; keep navy for core workflow actions. */
.project-overview-head > .button.primary {
  background: linear-gradient(180deg, #b8924a, #9f7a36);
  border-color: #9f7a36;
  box-shadow: 0 12px 24px rgba(159, 122, 54, .18);
}
.project-overview-head > .button.primary:hover {
  background: linear-gradient(180deg, #c09b54, #a9833e);
}

/* Warm the live-summary support surfaces so blue is reserved for identity and official class colors. */
.status-tile,
.mini-output {
  background: #faf9f5;
  border-color: #e1ded5;
}


/* v72 — explicit project naming + more compact Add recommendation action */
.project-name-panel {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(220px, 1fr);
  gap: 18px;
  align-items: end;
  margin: 4px 0 22px;
  padding: 14px 16px;
  background: #f8f6f1;
  border: 1px solid #dfd9ce;
  border-radius: 12px;
}
.project-name-panel .field { margin: 0; }
.project-name-panel input {
  background: #fff;
}
.project-name-panel > p {
  margin: 0 0 4px;
  color: #7a7f83;
  font-size: .82rem;
  line-height: 1.45;
}
.add-recommendation-button {
  padding: 6px 10px;
  min-height: 30px;
  font-size: .76rem;
  line-height: 1.1;
  border-radius: 8px;
}
@media (max-width: 760px) {
  .project-name-panel {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* v73 — tighter footer spacing and closer website URL */
.footer-inner {
  padding-top: 22px;
  padding-bottom: 24px;
}
.footer-site-under-logo {
  margin-top: 1px !important;
  line-height: 1.1;
}
.footer-site-link a {
  line-height: 1.1;
}
@media (max-width: 780px) {
  .footer-inner {
    padding-top: 20px;
    padding-bottom: 22px;
  }
}

/* v74 — dedicated project-name start page */
.app-layout.setup-mode {
  grid-template-columns: minmax(0, 1fr);
}
.app-layout.setup-mode .app-workspace {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
.project-start {
  width: 100%;
  padding: 18px 0 8px;
}
.project-start-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 32px 28px;
}
.project-start-card h2 {
  margin: 4px 0 24px;
}
.project-start-field {
  margin: 0;
}
.project-start-field input {
  min-height: 48px;
  font-size: 1rem;
}
.project-start-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.project-name-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  background: #f3f0e9;
  border: 1px solid #ddd6c9;
  border-radius: 10px;
}
.project-name-display > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.project-name-display-label {
  color: #8a8276;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.project-name-display strong {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .project-start-card {
    padding: 24px 20px 22px;
  }
  .project-name-display {
    align-items: flex-start;
  }
  .project-name-display > div {
    display: grid;
    gap: 3px;
  }
}


/* v75 — quieter overview creation actions and project-name editing */
.project-overview-head {
  align-items: center;
}
.project-overview-head h2 {
  margin-top: 0;
}
.overview-add-action {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 7px;
  border-color: #d8d2c7;
  background: transparent;
  color: #6f6658;
  box-shadow: none;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.15;
}
.overview-add-action:hover {
  background: #f4f0e8;
  border-color: #c9c0b0;
  color: #514a40;
  box-shadow: none;
}
.overview-add-action:disabled {
  opacity: .48;
  background: transparent;
  box-shadow: none;
}
.add-recommendation-button {
  min-height: 27px;
  padding: 4px 8px;
  font-size: .72rem;
  border-radius: 7px;
}
.project-name-modify-action {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 3px 2px;
  color: #81786b;
  font: inherit;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}
.project-name-modify-action:hover {
  color: #4e4942;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-name-modify-action:focus-visible {
  outline: 2px solid rgba(184, 146, 74, .45);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (max-width: 760px) {
  .project-overview-head {
    align-items: flex-start;
  }
}


/* v76 — quieter header utility layout and legal footer line */
.hero-utility-row {
  justify-content: space-between;
  gap: 24px;
}
.hero-project-toolbar-left {
  justify-content: flex-start;
}
.hero-project-toolbar-right {
  justify-content: flex-end;
}
.footer-tool-line {
  color: #7f8993;
  font-weight: 400;
  opacity: 0.88;
}
@media (max-width: 900px) {
  .hero-utility-row {
    justify-content: space-between;
    gap: 18px;
  }
  .hero-project-toolbar-left,
  .hero-project-toolbar-right {
    justify-content: flex-start;
  }
}
@media (max-width: 520px) {
  .hero-utility-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* v77 — gold framework title, unified left project toolbar, quieter question actions */
.hero-utility-row {
  justify-content: flex-start;
}
.hero-project-toolbar-left {
  justify-content: flex-start;
}
.hero-copy h1 {
  color: #d6b36a;
}
.research-question-actions {
  gap: 12px;
}
.research-question-display-head .research-question-actions .button {
  min-height: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, .60);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.2;
}
.research-question-display-head .research-question-actions .button:hover,
.research-question-display-head .research-question-actions .button:focus-visible {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .92);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}
.research-question-display-head .research-question-actions .button.text-danger {
  color: rgba(255, 255, 255, .52);
}
.research-question-display-head .research-question-actions .button.text-danger:hover,
.research-question-display-head .research-question-actions .button.text-danger:focus-visible {
  color: #f0c3c3;
  background: transparent;
}
@media (max-width: 900px) {
  .hero-utility-row,
  .hero-project-toolbar-left {
    justify-content: flex-start;
  }
}

/* v79 — clean white page background */
body {
  background: #ffffff;
}

/* v80 — white lower footer area */
.tool-footer {
  background: #ffffff;
}

/* v81 — lighter warm background for closed research-question groups */
.research-question-closed {
  background: #fbfaf7;
  border-color: #e4e0d8;
}
.research-question-recommendations {
  background: #fbfaf7;
}
.recommendation-overview-row {
  background: #fdfcf9;
  border-color: #e7e2d9;
}
.recommendation-overview-row:last-child {
  border-bottom-color: #e7e2d9;
}
.recommendation-overview-row:hover {
  background: #ffffff;
  border-color: #dcd6ca;
}
.question-recommendations-empty {
  background: #fdfcf9;
  border-color: #e2ddd4;
}

/* v82 — restore white Semmelweis Framework hero title */
.hero-copy h1 {
  color: #ffffff;
}

/* v83 — clearer return-to-overview action in recommendation workflow */
.wizard-overview-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--navy);
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
  padding: 3px 0;
}
.wizard-overview-link:hover,
.wizard-overview-link:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}
.top-progress-title .section-kicker {
  margin-top: 0;
}

/* v86 — gold hero subtitle */
.hero-copy .hero-lead {
  color: #d6b36a;
}


/* v87/v88 — keep hero subtitle white */
.hero-copy .hero-lead {
  color: rgba(255,255,255,0.88);
}


/* v89 — live deterministic recommendation-verb compatibility check */
.wording-compatibility-warning {
  margin-top: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(164,56,50,.22);
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: .84rem;
  line-height: 1.45;
  font-weight: 600;
}
.wording-compatibility-warning.hidden { display: none; }


/* v91 — compact empty-state placement on project overview */
.project-empty-state {
  padding: 6px 2px 2px;
  text-align: left;
  border: 0;
  font-size: .84rem;
  line-height: 1.4;
}
.project-empty-state strong {
  display: inline;
  margin: 0;
  font-size: .84rem;
  font-weight: 650;
  color: var(--ink);
}
.project-empty-state p {
  display: inline;
  margin: 0 0 0 4px;
  color: var(--muted);
  font-size: .82rem;
}
.project-overview-head {
  margin-top: -4px;
}
.project-overview-head p {
  margin: 0;
}


/* v92 — keep Quick guide close control visible while scrolling */
.reference-dialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 62, 116, 0.08);
}
.reference-dialog .dialog-head .icon-button {
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(15, 34, 56, 0.08);
}


/* v93 — cleaner project overview intro and tighter footer */
.overview-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 6px;
}
.overview-toolbar-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.project-empty-state {
  padding: 0;
  text-align: left;
  border: 0;
  font-size: .84rem;
  line-height: 1.35;
}
.project-empty-state strong {
  display: inline;
  margin: 0;
  font-size: .84rem;
  font-weight: 650;
  color: var(--ink);
}
.project-empty-state p {
  display: inline;
  margin: 0 0 0 4px;
  color: var(--muted);
  font-size: .84rem;
}
.project-overview-helper {
  margin: 0;
  color: #5f6b76;
  font-size: .84rem;
  line-height: 1.45;
}
.overview-add-action {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 650;
  flex-shrink: 0;
  align-self: flex-start;
}
@media (max-width: 760px) {
  .overview-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .overview-add-action {
    align-self: flex-start;
  }
}
.tool-footer {
  margin-top: 6px;
}
.footer-inner {
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 16px;
  align-items: center;
}
.footer-brand-block {
  display: grid;
  align-content: center;
}
.footer-support-label {
  margin-bottom: 4px;
}
.footer-logo {
  width: 220px;
}
.footer-site-under-logo {
  margin-top: -1px !important;
  width: 220px;
}
.footer-legal-block {
  align-self: center;
}
.footer-tool-line {
  margin-bottom: 4px !important;
}
.footer-disclosure {
  margin-top: 2px;
}
.footer-disclosure summary {
  font-size: 0.78rem;
}
.footer-disclosure-body {
  margin-top: 10px;
  padding-top: 10px;
}
@media (max-width: 780px) {
  .footer-inner {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 14px;
  }
  .footer-logo,
  .footer-site-under-logo {
    width: 210px;
  }
}


/* v94 — keep the footer compact at the bottom of short pages */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-shell {
  flex: 0 0 auto;
}
main {
  flex: 1 0 auto;
  width: 100%;
}
.tool-footer {
  flex: 0 0 auto;
  width: 100%;
}


/* v95 — clearer, elegant visual separation between recommendations */
.recommendations-list {
  gap: 12px;
}
.recommendation-overview-row {
  position: relative;
  overflow: hidden;
  padding: 17px 18px 17px 21px;
  background: #ffffff;
  border: 1px solid #e3ded4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(31, 42, 55, .035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.recommendation-overview-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #b99752;
  opacity: .72;
}
.recommendation-overview-row:last-child {
  border-bottom: 1px solid #e3ded4;
}
.recommendation-overview-row:hover {
  background: #fffefb;
  border-color: #d8d0c2;
  box-shadow: 0 5px 14px rgba(31, 42, 55, .055);
  transform: translateY(-1px);
}
.recommendation-overview-title-row h4 {
  letter-spacing: -.01em;
}
.recommendation-overview-row .recommendation-overview-preview {
  margin: 7px 0 5px;
}
.recommendation-overview-row small {
  color: #71808e;
}
@media (max-width: 760px) {
  .recommendations-list {
    gap: 10px;
  }
  .recommendation-overview-row {
    padding: 15px 15px 15px 18px;
  }
}


/* v96 — branching guided classification with explicit no-recommendation outcomes */
#final-classification-section.hidden { display: none; }
#guide-suggestion .guide-suggestion-label + strong { display: block; }


/* v97 — compact, visually distinct live-summary rail */
.summary-rail {
  font-size: .82rem;
}
.summary-rail .sticky-card {
  position: sticky;
  top: 22px;
}
.rail-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid #d9d3c7;
  border-left: 3px solid #b8924a;
  border-radius: 14px;
  background: #f5f3ee;
  box-shadow: 0 10px 26px rgba(25, 38, 48, .055);
}
.rail-head {
  margin: 0;
  padding: 11px 14px 9px;
  border-bottom: 1px solid #ded8cc;
  background: #efede7;
}
.rail-eyebrow {
  margin: 0;
  color: #6f6658;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.rail-context {
  padding: 12px 14px 11px;
  background: #fbfaf7;
}
.rail-context-item + .rail-context-item {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #e6e1d8;
}
.rail-context-item > span,
.rail-status-row > span {
  display: block;
  color: #827a6f;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.rail-context-item p {
  margin: 4px 0 0;
  color: #24313d;
  font-size: .78rem;
  line-height: 1.42;
  font-weight: 560;
  overflow-wrap: anywhere;
}
.rail-context-draft p {
  color: #102f48;
}
.rail-draft-notation {
  display: block;
  margin-top: 5px;
  color: #7a746c;
  font-size: .68rem;
  line-height: 1.35;
}
.rail-status-list {
  padding: 3px 14px 5px;
}
.rail-status-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #dfdbd2;
}
.rail-status-row:first-child {
  border-top: 0;
}
.rail-status-row > span {
  padding-top: 2px;
}
.rail-status-row strong {
  display: block;
  margin: 0;
  color: #24313d;
  font-size: .78rem;
  line-height: 1.35;
  font-weight: 750;
}
.rail-status-row small {
  display: block;
  margin-top: 2px;
  color: #777f85;
  font-size: .68rem;
  line-height: 1.35;
}
@media (max-width: 1180px) {
  .summary-rail .sticky-card { position: static; }
  .rail-card { max-width: none; }
}


/* v98 — skip Checklist for no-recommendation pathways; cleaner cool live-summary palette */
.step-pill.skipped,
.step-pill:disabled {
  opacity: .38;
  cursor: default;
  box-shadow: none;
}
.step-pill.skipped:hover,
.step-pill:disabled:hover {
  transform: none;
}
.rail-card {
  border: 1px solid #d8e1e8;
  border-left: 0;
  border-top: 3px solid #173f63;
  background: #f7f9fb;
  box-shadow: 0 10px 28px rgba(22, 48, 69, .055);
}
.rail-head {
  border-bottom: 1px solid #dce4ea;
  background: #eef3f7;
}
.rail-eyebrow {
  color: #536b7d;
}
.rail-context {
  background: #ffffff;
}
.rail-context-item + .rail-context-item {
  border-top-color: #e3e9ee;
}
.rail-context-item > span,
.rail-status-row > span {
  color: #71818e;
}
.rail-context-item p,
.rail-status-row strong {
  color: #243746;
}
.rail-context-draft p {
  color: #173f63;
}
.rail-draft-notation,
.rail-status-row small {
  color: #71808b;
}
.rail-status-list {
  background: #f7f9fb;
}
.rail-status-row {
  border-top-color: #dde5eb;
}


/* v99 — lock Phrase to no-recommendation when Guided classification ends there */
.choice-chip.choice-disabled {
  cursor: not-allowed;
}
.choice-chip.choice-disabled span {
  background: #f5f7f8;
  border-color: #dde3e8;
  color: #9aa5ae;
  box-shadow: none;
  opacity: .72;
}
.phrase-decision-lock {
  margin-top: 10px;
  padding: 9px 11px;
  border-left: 2px solid #6f8294;
  background: #f7f9fb;
  color: #566675;
  font-size: .82rem;
  line-height: 1.45;
}


/* v101 — distinguish initial draft from final recommendation in Live summary */
.rail-context-final p {
  color: #173f63;
  font-weight: 650;
}
.rail-context-final > span {
  color: #536b7d;
}
.rail-context-final {
  position: relative;
}
.rail-context-final::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 9px;
  bottom: 0;
  width: 2px;
  background: #173f63;
  opacity: .22;
}
.rail-context-draft p {
  color: #53616c;
  font-weight: 520;
}


/* v102 — compact full final recommendation in Live summary */
.rail-final-rec-row strong {
  font-size: .76rem;
  line-height: 1.45;
  font-weight: 620;
  color: #173f63;
  overflow-wrap: anywhere;
}
.rail-final-rec-row > span {
  color: #536b7d;
}


/* v104 — editable official no-recommendation form on Phrase */
.no-rec-wording-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e7eb;
}
.no-rec-wording-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.no-rec-wording-head > span {
  color: #5c6c79;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .025em;
}
.no-rec-modify-action {
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 2px 0;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}
.no-rec-modify-action:hover,
.no-rec-modify-action:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}
.no-rec-wording-preview {
  padding: 10px 12px;
  border: 1px solid #dfe5e9;
  border-radius: 10px;
  background: #fafcfd;
}
.no-rec-wording-preview p {
  margin: 0;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.5;
}
.no-rec-wording-preview small {
  display: block;
  margin-top: 4px;
  color: #6b7a86;
  font-size: .75rem;
  line-height: 1.4;
}
.no-rec-custom-wrap {
  margin-top: 10px;
}
.no-rec-custom-wrap textarea {
  min-height: 78px;
}
.no-rec-custom-wrap small {
  color: #71808b;
  font-size: .74rem;
}


/* v105 — clearer visual separation for the Live summary */
.rail-card {
  border-color: #bfd0dc;
  border-top-color: #173f63;
  background: #edf4f8;
  box-shadow: 0 10px 28px rgba(22, 48, 69, .075);
}
.rail-head {
  background: #dfeaf1;
  border-bottom-color: #c8d8e3;
}
.rail-context {
  background: #f4f8fb;
}
.rail-context-item + .rail-context-item {
  border-top-color: #d4e1e9;
}
.rail-status-list {
  background: #e9f1f6;
}
.rail-status-row {
  border-top-color: #ccdbe5;
}


/* v106 — stronger, cleaner emphasis for Guided classification */
.classification-guide {
  border-color: #b8d6ee;
  background: linear-gradient(180deg, #eef7ff 0%, #f7fbff 100%);
  box-shadow: 0 8px 24px rgba(18, 86, 140, 0.07);
}

.classification-guide-head .section-kicker {
  color: #0b67a5;
}

.classification-guide-head h3 {
  color: var(--navy);
}

.classification-guide-head p:last-child {
  color: #536b7f;
}

.guide-question {
  border-color: #d5e5f2;
  background: rgba(255, 255, 255, 0.94);
}

.guide-number {
  background: #dff0fc;
  color: #0c5f96;
}

.guide-choice span {
  border-color: #c7ddea;
  background: #ffffff;
}

.guide-choice input:checked + span {
  border-color: #4f9bc9;
  background: #e8f5fd;
  color: #0d527d;
  box-shadow: inset 0 0 0 1px rgba(79, 155, 201, 0.10);
}

.guide-advisory {
  border-left-color: #8dbfdf;
}


/* v107 — background rationale and expert-opinion definition */
.quick-guide-background {
  padding: 2px 26px 24px;
}
.quick-guide-background > h3 {
  margin: 2px 0 12px;
  color: var(--ink);
  font-size: 1.18rem;
}
.quick-guide-background-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.quick-guide-background-grid article {
  padding: 14px 15px;
  border: 1px solid #dce7f0;
  border-radius: 14px;
  background: #ffffff;
}
.quick-guide-background-grid article > span {
  display: block;
  margin-bottom: 6px;
  color: #0f5f91;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .025em;
}
.quick-guide-background-grid p {
  margin: 0;
  color: #566675;
  font-size: .84rem;
  line-height: 1.5;
}
.expert-definition-callout {
  margin-top: 12px;
  padding: 16px 17px;
  border: 1px solid #b9d9ef;
  border-left: 4px solid #2b83bb;
  border-radius: 14px;
  background: #edf7fd;
}
.expert-definition-label {
  margin-bottom: 8px;
  color: #0d5d8c;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .025em;
}
.expert-definition-callout blockquote,
.expert-definition-dialog-body blockquote {
  margin: 0;
  color: #213b4d;
  font-size: .9rem;
  font-weight: 620;
  line-height: 1.58;
}
.expert-definition-callout p {
  margin: 10px 0 0;
  color: #516574;
  font-size: .83rem;
  line-height: 1.5;
}
.inline-method-help {
  width: fit-content;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #246c98;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}
.inline-method-help span {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 3px;
  border: 1px solid #9fc6df;
  border-radius: 50%;
  background: #fff;
  font-size: .68rem;
  line-height: 1;
}
.inline-method-help:hover,
.inline-method-help:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}
.inline-method-help.compact {
  margin-top: 0;
  font-size: .7rem;
  white-space: nowrap;
}
.foundation-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.foundation-title-row h3 {
  margin-right: auto;
}
.expert-definition-dialog {
  width: min(680px, calc(100% - 28px));
  border: 0;
  padding: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 27, 44, .22);
}
.expert-definition-dialog::backdrop {
  background: rgba(6, 18, 33, .48);
  backdrop-filter: blur(3px);
}
.expert-definition-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid #e3e9ee;
}
.expert-definition-dialog-head h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}
.expert-definition-dialog-body {
  padding: 18px 22px 22px;
}
.expert-definition-dialog-lead {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .84rem;
}
.expert-definition-dialog-body blockquote {
  padding: 14px 15px;
  border-left: 3px solid #2b83bb;
  border-radius: 10px;
  background: #f2f8fc;
}
.expert-definition-dialog-body > p:last-child {
  margin: 14px 0 0;
  color: #506171;
  font-size: .84rem;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .quick-guide-background-grid {
    grid-template-columns: 1fr;
  }
  .foundation-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* v108 — source attribution and clearer expert-opinion usage summary */
.expert-definition-citation {
  margin: 9px 0 0 !important;
  padding-top: 8px;
  border-top: 1px solid rgba(18, 62, 116, 0.10);
  color: #6c7883 !important;
  font-size: .74rem !important;
  line-height: 1.45 !important;
}

.expert-definition-usage {
  margin-top: 15px;
  padding: 12px 14px;
  border-left: 3px solid #8ab8d7;
  border-radius: 0 10px 10px 0;
  background: #f6fafe;
}

.expert-definition-usage strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: .82rem;
}

.expert-definition-usage p {
  margin: 0 !important;
  color: #536575 !important;
  font-size: .84rem !important;
  line-height: 1.5 !important;
}

.expert-definition-usage.compact {
  margin-top: 13px;
}


/* v109 — keep the expert-opinion definition visually self-contained */
.expert-usage-standalone {
  margin-top: 12px;
}


/* v111 — keep the definition visually special; make the usage explanation neutral */
.expert-definition-usage {
  background: #f6f7f8;
  border-left-color: #aeb5bc;
}

.expert-definition-usage strong {
  color: #2d3842;
}

.expert-definition-usage p {
  color: #59636c !important;
}

.expert-definition-usage p + p {
  margin-top: 8px !important;
}

/* Preserve the definition itself as the distinctive blue callout. */
.expert-definition-callout {
  background: #edf7fd;
  border-color: #b9d9ef;
  border-left-color: #2b83bb;
}


/* v112 — white Quick guide canvas with selective champagne-gold section cards */
.reference-dialog {
  background: #ffffff;
}

.reference-dialog .dialog-head {
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

/* Background rationale: pale champagne-gold cards on a white canvas. */
.quick-guide-background-grid article {
  background: #fff8e8;
  border-color: #ead9ad;
  box-shadow: 0 3px 10px rgba(111, 88, 38, 0.035);
}

.quick-guide-background-grid article > span {
  color: #7a5b19;
}

.quick-guide-background-grid p {
  color: #5c5f63;
}

/* Framework rules use the same restrained gold family without making the panel warm overall. */
.quick-guide-rule {
  background: #fffaf0;
  border-color: #eadfbe;
  box-shadow: none;
}

.quick-guide-rule span {
  background: #e8cf8c;
  color: #3f3521;
}

.quick-guide-rule p {
  color: #5b6167;
}

/* Keep the definition as the unique blue methodological callout. */
.expert-definition-callout {
  background: #edf7fd;
  border-color: #b9d9ef;
  border-left-color: #2b83bb;
  box-shadow: 0 5px 16px rgba(37, 109, 153, 0.045);
}

/* Usage explanation remains deliberately neutral. */
.expert-definition-usage {
  background: #f5f6f7;
  border-left-color: #aeb5bc;
}

/* Flowchart and source sections stay predominantly white and quiet. */
.quick-guide-flowchart {
  background: #ffffff;
}

.dialog-foot img {
  background: #ffffff;
}

.quick-guide-source {
  background: #ffffff;
  border-color: #e6dfcf;
}


/* v113 — extend the Quick guide visual logic across the full tool:
   white canvas + restrained champagne cards; reserve blue for deliberate emphasis. */
:root {
  --champagne: #fff8e8;
  --champagne-soft: #fffaf1;
  --champagne-border: #ead9b5;
  --champagne-border-soft: #efe3ca;
}

/* Keep the page itself clean and white. */
html,
body {
  background: #ffffff;
}

/* Main working surfaces use a light champagne tint rather than coloring the canvas. */
.project-start-card,
.top-progress,
.panel-card,
.wording-card,
.remarks-card,
.output-card,
.checklist-toolbar,
.reference-drawer,
#indirectness-box,
#class-i-safeguard {
  background: var(--champagne-soft);
  border-color: var(--champagne-border);
  box-shadow: 0 7px 22px rgba(87, 68, 35, .055);
}

/* Navigation/progress remains light and functional. */
.progress-chip {
  background: #ffffff;
  border-color: var(--champagne-border);
}
.progress-track {
  background: #f2eee5;
  border-color: #e7decc;
}
.step-pill {
  background: #ffffff;
  border-color: #e7dfcf;
}
.step-pill span {
  background: #f6f0e3;
  color: #80642e;
}
.step-pill.active {
  background: var(--champagne);
  border-color: #d9bd82;
  color: var(--navy-strong);
  box-shadow: inset 0 0 0 1px rgba(185, 151, 82, .08);
}
.step-pill.active span {
  background: var(--navy);
  color: #ffffff;
}

/* Inputs stay white against the tinted cards. */
input[type="text"],
textarea,
select {
  background: #ffffff;
  border-color: #dfd6c5;
}

/* Supporting explanatory elements follow the pale-gold card language. */
.soft-blue,
.soft-slate,
.info-banner,
.project-storage-note,
.draft-box {
  background: var(--champagne);
  border-color: var(--champagne-border);
}
.callout {
  border-color: var(--champagne-border);
}
.callout-icon {
  background: #b99752;
}

/* Class selection remains neutral until a class is selected;
   official Semmelweis class colors stay untouched. */
.foundation-card {
  background: #ffffff;
  border-color: #e4dccd;
  box-shadow: 0 6px 18px rgba(71, 58, 35, .045);
}

/* Checklist: champagne section framing with crisp white questions. */
.checklist-section {
  background: var(--champagne-soft);
  border-color: var(--champagne-border);
  box-shadow: 0 6px 18px rgba(71, 58, 35, .045);
}
.checklist-section header {
  background: var(--champagne);
  border-bottom-color: var(--champagne-border);
}
.check-items {
  background: var(--champagne-soft);
}
.check-item {
  background: #ffffff;
  border-color: #e5dccb;
}
.check-number {
  background: #f5ead3;
  color: #80642e;
}

/* Phrase page: preserve class-color accent while using the same card language. */
.allowed-wording-card {
  background: var(--champagne-soft);
  border-color: var(--champagne-border);
}
.allowed-wording-class {
  background: #ffffff;
  border-color: #ded5c4;
}
.allowed-wording-example {
  background: #ffffff;
  border-color: #e4dbc9;
}

/* Output hierarchy: champagne container, white final content. */
.output-context-card,
.output-statement,
.output-remark-block {
  background: #ffffff;
  border-color: #e4dbc9;
}
.action-bar {
  background: #ffffff;
  border-color: #e8dfcf;
  box-shadow: none;
}

/* Overview uses the same white-canvas / champagne-item hierarchy. */
.project-name-display {
  background: var(--champagne-soft);
  border-color: var(--champagne-border);
}
.research-question-closed,
.research-question-recommendations {
  background: var(--champagne-soft);
  border-color: var(--champagne-border);
}
.question-recommendations-head {
  border-color: rgba(169, 132, 62, .16);
}
.recommendation-overview-row,
.question-recommendations-empty {
  background: #ffffff;
  border-color: #e5dccb;
}
.recommendation-overview-row:hover {
  background: #fffdf8;
  border-color: #d8c9ab;
}

/* Deliberate exceptions: Guided classification should remain bright blue,
   and Live summary should remain cool-toned and clearly separate from the workspace. */
.classification-guide {
  background: linear-gradient(180deg, #eef7ff 0%, #f7fbff 100%);
  border-color: #b8d6ee;
  box-shadow: 0 8px 24px rgba(18, 86, 140, 0.07);
}
.classification-guide .guide-question {
  background: rgba(255,255,255,.96);
  border-color: #d5e5f2;
}

.rail-card {
  background: #f5f8fb;
  border-color: #cfdce6;
  box-shadow: 0 10px 28px rgba(35, 66, 91, .08);
}
.rail-card .status-tile,
.rail-card .mini-output {
  background: #ffffff;
  border-color: #dbe5ed;
}

/* Semantic status colors remain semantic rather than being recolored gold. */
.status-card.success {
  background: var(--success-soft);
}
.status-card.warning {
  background: var(--warning-soft);
}
.status-card.danger {
  background: var(--danger-soft);
}

/* Mobile keeps the same hierarchy without extra visual weight. */
@media (max-width: 780px) {
  .project-start-card,
  .top-progress,
  .panel-card,
  .wording-card,
  .remarks-card,
  .output-card,
  .checklist-toolbar,
  .reference-drawer,
  #indirectness-box,
  #class-i-safeguard {
    box-shadow: none;
  }
}


/* v115 — tidy “How the Framework uses expert opinion” formatting */
.expert-usage-standalone {
  border-left: 0;
  border-radius: 10px;
  padding: 14px 16px;
}

/* Keep class labels and their descriptions on the same line. */
.expert-usage-standalone p strong {
  display: inline;
  margin: 0;
  color: #2d3842;
  font-size: inherit;
  font-weight: 700;
}


/* v116 — global workflow density pass.
   Keep the educational Quick guide spacious; make the actual working tool faster to scan. */

/* Overall working area */
.app-layout {
  gap: 18px;
  padding-top: 7px;
  padding-bottom: 22px;
}

/* Progress / workflow navigation */
.app-workspace .top-progress {
  padding: 11px 13px 12px;
  margin-bottom: 10px;
  border-radius: 16px;
}
.app-workspace .top-progress-head {
  gap: 12px;
  margin-bottom: 8px;
}
.app-workspace .top-progress h2 {
  font-size: 1.04rem;
}
.app-workspace .wizard-overview-link {
  margin-bottom: 10px;
  padding: 1px 0;
  font-size: .84rem;
}
.app-workspace .progress-summary,
.app-workspace .progress-summary.compact {
  gap: 5px;
  margin-bottom: 9px;
}
.app-workspace .progress-chip {
  min-height: 28px;
  padding: 0 9px;
  font-size: .76rem;
}
.app-workspace .progress-track {
  height: 6px;
}
.app-workspace .step-nav {
  gap: 6px;
}
.app-workspace .step-pill {
  min-height: 36px;
  padding: 5px 9px;
  gap: 6px;
}
.app-workspace .step-pill span {
  width: 20px;
  height: 20px;
  font-size: .7rem;
}
.app-workspace .step-pill em {
  font-size: .83rem;
}

/* Page headings */
.app-workspace .panel-head {
  margin: 6px 0 10px;
  gap: 12px;
}
.app-workspace .panel-head h2 {
  font-size: 1.08rem;
}
.app-workspace .panel-head p:last-child {
  margin-top: 5px;
  margin-bottom: 0;
  max-width: 820px;
  font-size: .84rem;
  line-height: 1.42;
}
.app-workspace .section-kicker {
  margin-bottom: 4px;
  font-size: .68rem;
  letter-spacing: .1em;
}

/* Main cards */
.app-workspace .panel-card,
.app-workspace .checklist-toolbar,
.app-workspace .output-card,
.app-workspace .action-bar,
.app-workspace .wording-card,
.app-workspace .draft-card,
.app-workspace .reference-drawer,
.app-workspace #indirectness-box,
.app-workspace #class-i-safeguard,
.app-workspace .remarks-card,
.app-workspace .project-start-card {
  padding: 15px 16px;
  border-radius: 16px;
}
.app-workspace .card {
  border-radius: 16px;
}

/* Forms */
.app-workspace .field-grid {
  gap: 11px;
}
.app-workspace .field {
  gap: 5px;
}
.app-workspace .field > span {
  font-size: .86rem;
}
.app-workspace .field-help-inline,
.app-workspace .field em,
.app-workspace .field small {
  font-size: .76rem;
}
.app-workspace input[type="text"],
.app-workspace textarea,
.app-workspace select {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9rem;
}
.app-workspace textarea {
  min-height: 84px;
  line-height: 1.45;
}
.app-workspace #recommendation-body {
  min-height: 92px;
}
.app-workspace #indirectness-rationale,
.app-workspace #class-iii-exception-reason,
.app-workspace .remark-text-field textarea {
  min-height: 74px;
}

/* Buttons and choice controls */
.app-layout .button {
  min-height: 38px;
  padding: 0 14px;
  font-size: .86rem;
  box-shadow: none;
}
.app-layout .button.small {
  min-height: 32px;
  padding-inline: 11px;
  font-size: .78rem;
}
.app-workspace .choice-chip span,
.app-workspace .check-chip span {
  min-height: 36px;
  padding: 0 13px;
  font-size: .84rem;
}
.app-workspace .check-chip-grid {
  gap: 7px;
  margin-bottom: 11px;
}

/* Supporting information */
.app-workspace .callout-row {
  gap: 11px;
  margin-top: 12px;
}
.app-workspace .callout {
  gap: 10px;
  padding: 12px 13px;
  border-radius: 13px;
}
.app-workspace .callout-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.app-workspace .implementation-note {
  margin-top: 9px;
  font-size: .84rem;
  line-height: 1.45;
}
.app-workspace .info-banner {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: .86rem;
}
.app-workspace .status-card {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 13px;
}

/* Classification — compact without losing the stronger blue emphasis */
.app-workspace .classification-guide {
  margin-bottom: 12px;
  padding: 13px 14px;
  border-radius: 13px;
}
.app-workspace .classification-path {
  gap: 7px;
  margin-top: 10px;
}
.app-workspace .guide-question {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
}
.app-workspace .guide-number {
  width: 24px;
  height: 24px;
  font-size: .7rem;
}
.app-workspace .guide-question-copy strong {
  font-size: .82rem;
  line-height: 1.25;
}
.app-workspace .guide-question-copy small {
  font-size: .7rem;
  line-height: 1.28;
}
.app-workspace .guide-choice span {
  min-width: 44px;
  min-height: 28px;
  padding: 2px 8px;
  font-size: .72rem;
}
.app-workspace .guide-suggestion {
  gap: 12px;
  margin-top: 9px;
  padding: 9px 11px;
}
.app-workspace .final-classification-head {
  margin: 18px 0 7px;
}
.app-workspace .foundation-grid {
  gap: 11px;
}
.app-workspace .foundation-card {
  padding: 15px 16px;
  border-radius: 16px;
}
.app-workspace .foundation-top {
  margin-bottom: 8px;
}
.app-workspace .class-badge,
.app-workspace .verb-badge {
  min-height: 26px;
  padding: 0 9px;
  font-size: .72rem;
}
.app-workspace .foundation-card h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.app-workspace .foundation-card p {
  margin-bottom: 9px;
  font-size: .84rem;
  line-height: 1.42;
}
.app-workspace .foundation-card ul {
  gap: 4px;
  font-size: .8rem;
  line-height: 1.38;
}
.app-workspace .foundation-card.selected::after,
.app-workspace .foundation-card:has(input:checked)::after {
  top: 11px;
  right: 12px;
  min-height: 24px;
  padding: 0 8px;
  font-size: .68rem;
}
.app-workspace .reference-drawer[open] summary {
  margin-bottom: 11px;
}
.app-workspace .drawer-grid {
  gap: 10px;
}
.app-workspace .drawer-grid article {
  padding: 11px 12px;
  border-radius: 11px;
  font-size: .82rem;
}

/* Checklist */
.app-workspace .checklist-toolbar {
  gap: 14px;
  margin-bottom: 10px;
}
.app-workspace .toolbar-progress {
  min-width: 280px;
  gap: 5px;
}
.app-workspace .checklist-sections {
  gap: 9px;
}
.app-workspace .checklist-section {
  border-radius: 15px;
}
.app-workspace .checklist-section header {
  padding: 11px 13px;
}
.app-workspace .checklist-section h3 {
  font-size: .92rem;
}
.app-workspace .check-items {
  padding: 10px;
  gap: 8px;
}
.app-workspace .check-item {
  padding: 10px 11px;
  border-radius: 12px;
}
.app-workspace .check-item-head {
  grid-template-columns: auto 1fr auto;
  gap: 10px;
}
.app-workspace .check-number {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: .76rem;
}
.app-workspace .check-question {
  font-size: .84rem;
  line-height: 1.4;
}
.app-workspace .yn {
  gap: 6px;
}
.app-workspace .yn span {
  min-width: 58px;
  min-height: 34px;
  padding: 0 10px;
  font-size: .78rem;
}
.app-workspace .check-justification {
  margin-top: 8px;
}
.app-workspace .check-justification textarea {
  min-height: 68px;
}

/* Phrase */
.app-workspace .wording-stack {
  gap: 12px;
}
.app-workspace .wording-card {
  padding: 16px;
}
.app-workspace .wording-card > .field-group {
  margin-bottom: 15px;
}
.app-workspace .field-group + .field-group {
  margin-top: 13px;
}
.app-workspace .inline-head {
  margin-bottom: 8px;
}
.app-workspace .inline-head h3 {
  font-size: 1rem;
}
.app-workspace #recommendation-controls {
  gap: 13px;
}
.app-workspace .phrase-meta-grid {
  margin-bottom: 10px;
}
.app-workspace .allowed-wording-card {
  padding: 13px 15px;
  border-radius: 14px;
}
.app-workspace .allowed-wording-head {
  gap: 10px;
  margin-bottom: 5px;
}
.app-workspace .allowed-wording-head h3 {
  font-size: .96rem;
}
.app-workspace .allowed-wording-intro {
  margin-bottom: 9px;
  font-size: .82rem;
  line-height: 1.42;
}
.app-workspace .allowed-wording-examples {
  gap: 8px;
}
.app-workspace .allowed-wording-example {
  padding: 9px 11px;
  border-radius: 10px;
}
.app-workspace .allowed-wording-label {
  margin-bottom: 5px;
  font-size: .7rem;
}
.app-workspace .allowed-wording-verb {
  margin-bottom: 4px;
}
.app-workspace .allowed-wording-verb strong {
  font-size: .86rem;
}
.app-workspace .allowed-wording-example-text p,
.app-workspace .allowed-wording-example small {
  font-size: .78rem;
  line-height: 1.38;
}
.app-workspace .remarks-card {
  padding: 15px 16px;
}
.app-workspace .remarks-explainer {
  margin: -1px 0 10px;
  max-width: 840px;
  font-size: .82rem;
  line-height: 1.42;
}
.app-workspace .remarks-list {
  gap: 10px;
  margin-top: 9px;
}
.app-workspace .remark-row {
  gap: 14px;
  padding: 10px 0;
}
.app-workspace .remarks-actions {
  margin-top: 8px;
}
.app-workspace .phrase-decision-lock {
  margin-top: 7px;
  padding: 7px 9px;
  font-size: .76rem;
}
.app-workspace .wording-compatibility-warning {
  margin-top: 6px;
  padding: 7px 9px;
  font-size: .78rem;
}

/* No-recommendation wording */
.app-workspace .no-rec-wording-block {
  margin-top: 10px;
  padding-top: 10px;
}
.app-workspace .no-rec-wording-preview {
  padding: 8px 10px;
}
.app-workspace .no-rec-wording-preview p {
  font-size: .82rem;
  line-height: 1.4;
}
.app-workspace .no-rec-custom-wrap textarea {
  min-height: 68px;
}

/* Output */
.app-workspace .output-grid {
  gap: 14px;
  margin-top: 12px;
}
.app-workspace .output-statement,
.app-workspace .output-remark-block {
  padding: 13px 14px;
  border-radius: 13px;
}
.app-workspace .output-remark-block {
  margin-top: 9px;
}
.app-workspace .export-actions {
  margin-top: 14px;
  gap: 8px;
}
.app-workspace .action-bar {
  margin-top: 11px;
  padding: 10px 12px;
  gap: 8px;
}
.app-workspace .action-bar-right {
  gap: 8px;
}

/* Project overview */
.app-layout.overview-mode .project-overview {
  gap: 12px;
}
.app-layout.overview-mode .project-name-display {
  padding-top: 10px;
  padding-bottom: 10px;
}
.app-layout.overview-mode .research-questions-list {
  gap: 16px;
}
.app-layout.overview-mode .recommendation-overview-row {
  padding: 13px 15px 13px 18px;
}
.app-layout.overview-mode .recommendation-overview-preview {
  margin: 5px 0 3px;
  line-height: 1.4;
}
.app-layout.overview-mode .question-recommendations-head {
  padding-top: 10px;
  padding-bottom: 8px;
}

/* Live summary remains secondary and gets slightly denser too. */
.summary-rail {
  font-size: .77rem;
}
.summary-rail .rail-head {
  padding: 9px 12px 7px;
}
.summary-rail .rail-context {
  padding: 9px 12px;
}
.summary-rail .rail-context-item + .rail-context-item {
  margin-top: 8px;
  padding-top: 8px;
}
.summary-rail .rail-context-item p {
  margin-top: 3px;
  font-size: .74rem;
  line-height: 1.36;
}
.summary-rail .rail-status-list {
  padding: 2px 12px 4px;
}
.summary-rail .rail-status-row {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
}
.summary-rail .rail-status-row strong {
  font-size: .74rem;
}
.summary-rail .rail-final-rec-row strong {
  font-size: .73rem;
}

/* Preserve comfortable touch targets and readable stacking on small screens. */
@media (max-width: 780px) {
  .app-layout {
    gap: 12px;
    padding-bottom: 18px;
  }
  .app-workspace .step-nav {
    gap: 5px;
  }
  .app-workspace .step-pill {
    min-height: 38px;
    padding-inline: 7px;
  }
  .app-workspace .panel-card,
  .app-workspace .wording-card,
  .app-workspace .remarks-card,
  .app-workspace .output-card,
  .app-workspace .checklist-toolbar,
  .app-workspace .reference-drawer,
  .app-workspace #indirectness-box,
  .app-workspace #class-i-safeguard {
    padding: 14px;
  }
  .app-layout .button {
    min-height: 40px;
  }
  .app-workspace .guide-question {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .app-workspace .guide-choice {
    grid-column: 2;
  }
}


/* v117 — remove champagne/warm-paper tones from the working site.
   Quick guide keeps its selective gold cards; the application uses cool neutral surfaces. */
:root {
  --champagne: #f3f6f8;
  --champagne-soft: #f7f9fb;
  --champagne-border: #d9e1e7;
  --champagne-border-soft: #e4eaee;
}

/* Core application surfaces */
.project-start-card,
.top-progress,
.panel-card,
.wording-card,
.remarks-card,
.output-card,
.checklist-toolbar,
.reference-drawer,
#indirectness-box,
#class-i-safeguard {
  background: #f7f9fb;
  border-color: #d9e1e7;
  box-shadow: 0 7px 22px rgba(31, 54, 72, .045);
}

/* Workflow navigation */
.progress-chip {
  border-color: #d9e1e7;
}
.progress-track {
  background: #e9eef2;
  border-color: #dce4e9;
}
.step-pill {
  background: #ffffff;
  border-color: #dce4e9;
}
.step-pill span {
  background: #edf2f5;
  color: #536775;
}
.step-pill.active {
  background: #eef5fa;
  border-color: #b9cfdd;
  color: var(--navy-strong);
  box-shadow: inset 0 0 0 1px rgba(56, 108, 143, .06);
}
.step-pill.active span {
  background: var(--navy);
  color: #ffffff;
}

/* Inputs and standard controls */
input[type="text"],
textarea,
select {
  background: #ffffff;
  border-color: #d8e0e6;
}

/* Supporting explanatory areas */
.soft-blue,
.soft-slate,
.info-banner,
.project-storage-note,
.draft-box {
  background: #f2f6f8;
  border-color: #d9e3e9;
}
.callout {
  border-color: #d9e3e9;
}
.callout-icon {
  background: #7f98a8;
}

/* Classification cards remain neutral unless selected. */
.foundation-card {
  background: #ffffff;
  border-color: #dce4e9;
  box-shadow: 0 6px 18px rgba(31, 54, 72, .04);
}

/* Checklist */
.checklist-section {
  background: #f7f9fb;
  border-color: #d9e1e7;
  box-shadow: 0 6px 18px rgba(31, 54, 72, .04);
}
.checklist-section header {
  background: #eef3f6;
  border-bottom-color: #d9e1e7;
}
.check-items {
  background: #f7f9fb;
}
.check-item {
  background: #ffffff;
  border-color: #dce4e9;
}
.check-number {
  background: #e8eef2;
  color: #526977;
}

/* Phrase page */
.allowed-wording-card {
  background: #f7f9fb;
  border-color: #d9e1e7;
}
.allowed-wording-class {
  background: #ffffff;
  border-color: #dce4e9;
}
.allowed-wording-example {
  background: #ffffff;
  border-color: #dce4e9;
}

/* Output */
.output-context-card,
.output-statement,
.output-remark-block {
  background: #ffffff;
  border-color: #dce4e9;
}
.action-bar {
  background: #ffffff;
  border-color: #dfe6eb;
}

/* Project overview */
.project-name-display {
  background: #f7f9fb;
  border-color: #d9e1e7;
}
.research-question-closed,
.research-question-recommendations {
  background: #f7f9fb;
  border-color: #d9e1e7;
}
.question-recommendations-head {
  border-color: rgba(61, 92, 113, .12);
}
.recommendation-overview-row,
.question-recommendations-empty {
  background: #ffffff;
  border-color: #dce4e9;
}
.recommendation-overview-row:hover {
  background: #f9fbfc;
  border-color: #cfdbe3;
}

/* Remove the warm accent from recommendation separators in the working area. */
.recommendation-overview-row::before {
  background: #9db2c1;
}

/* Preserve the deliberate blue Guided classification treatment. */
.classification-guide {
  background: linear-gradient(180deg, #eef7ff 0%, #f7fbff 100%);
  border-color: #b8d6ee;
  box-shadow: 0 8px 24px rgba(18, 86, 140, 0.07);
}

/* Live summary remains a distinct cool surface. */
.rail-card {
  background: #eef3f7;
  border-color: #c9d7e1;
}
.rail-card .status-tile,
.rail-card .mini-output {
  background: #ffffff;
  border-color: #d7e2e9;
}

/* Keep Quick guide gold treatment exactly as intended. */
.reference-dialog .quick-guide-background-grid article {
  background: #fff8e8;
  border-color: #ead9ad;
}
.reference-dialog .quick-guide-background-grid article > span {
  color: #7a5b19;
}
.reference-dialog .quick-guide-rule {
  background: #fffaf0;
  border-color: #eadfbe;
}
.reference-dialog .quick-guide-rule span {
  background: #e8cf8c;
  color: #3f3521;
}


/* v119 — prevent overlap in the Live summary final-recommendation row.
   The final recommendation gets the full rail width because it can be long. */
.summary-rail .rail-final-rec-row {
  grid-template-columns: 1fr;
  gap: 4px;
}

.summary-rail .rail-final-rec-row > span {
  padding-top: 0;
  line-height: 1.2;
}

.summary-rail .rail-final-rec-row > div {
  min-width: 0;
}

.summary-rail .rail-final-rec-row strong {
  display: block;
  width: 100%;
  min-width: 0;
  line-height: 1.38;
  overflow-wrap: anywhere;
  word-break: normal;
}


/* v120 — restrained visual language: line icons + one compact Quick guide pathway */

/* Shared inline icon treatment */
.step-icon svg,
.rail-label svg,
.pathway-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Workflow navigation: replace numbered circles with small professional line icons. */
.app-workspace .step-pill .step-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
  background: #edf2f5;
  color: #587080;
}
.app-workspace .step-pill .step-icon svg {
  width: 14px;
  height: 14px;
}
.app-workspace .step-pill.active .step-icon {
  background: var(--navy);
  color: #ffffff;
}
.app-workspace .step-pill.skipped .step-icon,
.app-workspace .step-pill:disabled .step-icon {
  opacity: .55;
}

/* Live summary: icons act as scan anchors, not decoration. */
.summary-rail .rail-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.summary-rail .rail-label svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #718899;
}
.summary-rail .rail-final-rec-row .rail-label {
  margin-bottom: 1px;
}

/* Quick guide pathway */
.quick-guide-pathway {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dde5ea;
  border-radius: 15px;
  background: #ffffff;
}
.quick-guide-pathway-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 13px;
}
.quick-guide-pathway-head > span {
  color: #7b8790;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.quick-guide-pathway-head > strong {
  color: var(--ink);
  font-size: .94rem;
}
.quick-guide-pathway-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.quick-guide-pathway-grid article {
  position: relative;
  min-width: 0;
  padding: 11px 14px 10px;
  border: 1px solid #e3e9ed;
  background: #f8fafb;
}
.quick-guide-pathway-grid article:first-child {
  border-radius: 11px 0 0 11px;
}
.quick-guide-pathway-grid article:last-child {
  border-radius: 0 11px 11px 0;
}
.quick-guide-pathway-grid article + article {
  border-left: 0;
}
.quick-guide-pathway-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #8ea4b2;
  border-right: 1.5px solid #8ea4b2;
  background: #f8fafb;
  transform: translateY(-50%) rotate(45deg);
}
.pathway-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #eaf1f5;
  color: #416a83;
}
.pathway-icon svg {
  width: 16px;
  height: 16px;
}
.quick-guide-pathway-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.25;
}
.quick-guide-pathway-grid small {
  display: block;
  color: #687681;
  font-size: .71rem;
  line-height: 1.35;
}

/* Keep the Quick guide pathway compact and readable on smaller screens. */
@media (max-width: 900px) {
  .quick-guide-pathway-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .quick-guide-pathway-grid article,
  .quick-guide-pathway-grid article:first-child,
  .quick-guide-pathway-grid article:last-child {
    border: 1px solid #e3e9ed;
    border-radius: 10px;
  }
  .quick-guide-pathway-grid article + article {
    border-left: 1px solid #e3e9ed;
  }
  .quick-guide-pathway-grid article:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -5px;
    left: 22px;
    transform: rotate(135deg);
  }
}


/* v121 — robust Live summary layout: stack all status labels above their values.
   This prevents long labels such as “Checklist” from colliding with status text. */
.summary-rail .rail-status-row {
  grid-template-columns: 1fr;
  gap: 4px;
}

.summary-rail .rail-status-row > span {
  padding-top: 0;
  line-height: 1.2;
}

.summary-rail .rail-status-row > div {
  min-width: 0;
}

.summary-rail .rail-status-row strong,
.summary-rail .rail-status-row small {
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-rail .rail-status-row strong {
  line-height: 1.34;
}

.summary-rail .rail-status-row small {
  margin-top: 2px;
  line-height: 1.32;
}


/* v122 — clarify that recommendations added from the overview are working drafts */
.add-draft-recommendation-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.draft-recommendation-help .term-help-popover {
  left: auto;
  right: 0;
  transform: none;
  width: min(330px, 78vw);
}

@media (max-width: 700px) {
  .draft-recommendation-help .term-help-popover {
    left: auto;
    right: 0;
    transform: none;
  }
}


/* v123 — contextual decision-making / EtD guidance in Guided classification */
.classification-guide .guide-question-title .term-help-popover {
  width: min(390px, 78vw);
}


/* v124 — guided-classification refinements */
.guide-question-title > strong {
  display: inline;
}

.guide-question-title > .term-help {
  flex: 0 0 auto;
  margin-left: 2px;
}

.foundation-card.guided-unavailable {
  display: none;
}


/* v126 — keep guided-classification help icons immediately after the question text */
.classification-guide .guide-question-title {
  display: block;
}

.classification-guide .guide-question-title > strong {
  display: inline;
}

.classification-guide .guide-question-title > .term-help {
  display: inline-block;
  margin-left: 4px;
  vertical-align: baseline;
}

.classification-guide .guide-question-title > .term-help summary {
  transform: translateY(-1px);
}


/* v130 — targeted contextual help only where methodological clarification adds value */
.heading-with-help,
.field-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.heading-with-help {
  max-width: 100%;
}

.heading-with-help h2 {
  margin: 0;
}

.field-label-with-help {
  width: fit-content;
  max-width: 100%;
}

.heading-with-help > .term-help,
.field-label-with-help > .term-help {
  flex: 0 0 auto;
}

.heading-with-help > .term-help .term-help-popover {
  width: min(390px, 78vw);
}

.field-label-with-help > .term-help .term-help-popover {
  width: min(360px, 78vw);
}

@media (max-width: 640px) {
  .heading-with-help {
    align-items: flex-start;
  }
}


/* v131 — keep the initial draft clearly secondary in the Live summary */
.summary-rail .rail-context-draft p {
  font-size: .70rem;
  line-height: 1.34;
  font-weight: 500;
  color: #5d6b76;
}


/* v134 — Semmelweis classes are assigned by the guided flowchart, not manually selected */
#final-classification-section .foundation-grid {
  grid-template-columns: 1fr;
}

#final-classification-section .foundation-card {
  cursor: default;
  transform: none;
}

#final-classification-section .foundation-card:hover {
  transform: none;
}

#final-classification-section .foundation-card.flowchart-unassigned {
  display: none;
}

#final-classification-section .foundation-card.flowchart-assigned {
  display: block;
  max-width: none;
}

#final-classification-section .foundation-card input[name="foundation"] {
  pointer-events: none;
}

.final-classification-head > p:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}


/* v136 — optional GRADE Evidence-to-Decision module */
.etd-open-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a628f;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.etd-open-link:hover,
.etd-open-link:focus-visible {
  color: #0d4d77;
  text-decoration: underline;
}

.etd-page {
  width: 100%;
}

.etd-page-topline,
.etd-section-head,
.etd-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.etd-page-topline {
  margin-bottom: 14px;
}

.etd-return-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #294e69;
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
}

.etd-return-link:hover,
.etd-return-link:focus-visible {
  color: #0e3f63;
  text-decoration: underline;
}

.etd-optional-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border: 1px solid #cbd8e2;
  border-radius: 999px;
  background: #f7fafc;
  color: #607789;
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.etd-page-head {
  margin-bottom: 14px;
}

.etd-page-head h2 {
  margin: 1px 0 4px;
}

.etd-page-head > p:last-child {
  max-width: 830px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.etd-context {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .65fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  margin-bottom: 12px;
}

.etd-context-item {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid #dce5eb;
}

.etd-context-item:last-child {
  border-right: 0;
}

.etd-context-item span {
  display: block;
  margin-bottom: 4px;
  color: #6a7d8c;
  font-size: .68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.etd-context-item strong {
  display: block;
  color: #223443;
  font-size: .83rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.etd-perspective {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) 1.35fr;
  gap: 22px;
  align-items: end;
  padding: 13px 15px;
  margin-bottom: 14px;
}

.etd-perspective p {
  margin: 0 0 4px;
  color: #667985;
  font-size: .78rem;
  line-height: 1.45;
}

.etd-section-head {
  margin: 16px 0 9px;
}

.etd-section-head h3 {
  margin: 1px 0 0;
}

.etd-progress {
  color: #647988;
  font-size: .75rem;
  font-weight: 650;
}

.etd-criteria {
  display: grid;
  gap: 9px;
}

.etd-criterion-card {
  padding: 13px 15px;
  border-color: #d8e2e9;
  background: #fbfcfd;
}

.etd-criterion-question {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.etd-criterion-number {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e5f1f9;
  color: #176692;
  font-size: .75rem;
  font-weight: 800;
}

.etd-criterion-question h4 {
  margin: 2px 0 0;
  color: #142b3c;
  font-size: .93rem;
  line-height: 1.38;
}

.etd-detail-list {
  margin: 7px 0 0 18px;
  padding: 0;
  color: #5c707f;
  font-size: .76rem;
  line-height: 1.45;
}

.etd-criterion-fields {
  display: grid;
  grid-template-columns: minmax(210px, .62fr) 1.38fr;
  gap: 12px;
  margin-left: 37px;
}

.etd-criterion-fields .field > span,
.etd-conclusion-note.field > span {
  font-size: .72rem;
}

.etd-criterion-fields input,
.etd-criterion-fields textarea {
  font-size: .8rem;
}

.etd-criterion-fields textarea {
  min-height: 70px;
}

.etd-empty {
  padding: 20px;
  text-align: center;
  color: #627785;
}

.etd-empty strong {
  display: block;
  color: #2c4557;
  margin-bottom: 4px;
}

.etd-empty p {
  margin: 0;
  font-size: .8rem;
}

.etd-conclusion {
  margin-top: 14px;
  padding: 15px;
  border-color: #bed6e6;
  background: #f4f9fc;
}

.etd-conclusion-copy h3 {
  margin: 2px 0 3px;
  font-size: 1rem;
}

.etd-conclusion-copy p:last-child {
  margin: 0;
  color: #657986;
  font-size: .78rem;
}

.etd-conclusion-choice {
  margin: 11px 0;
}

.etd-conclusion-note textarea {
  min-height: 74px;
}

.etd-source-note {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 10px 2px 0;
  color: #748692;
  font-size: .7rem;
  line-height: 1.45;
}

.etd-source-note strong {
  color: #607585;
}

.etd-actions {
  margin-top: 14px;
  padding: 11px 13px;
  background: #f8fafb;
}

@media (max-width: 820px) {
  .etd-context,
  .etd-perspective,
  .etd-criterion-fields {
    grid-template-columns: 1fr;
  }

  .etd-context-item {
    border-right: 0;
    border-bottom: 1px solid #dce5eb;
  }

  .etd-context-item:last-child {
    border-bottom: 0;
  }

  .etd-criterion-fields {
    margin-left: 0;
  }

  .etd-page-topline,
  .etd-section-head,
  .etd-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .etd-actions .button {
    width: 100%;
  }

  .etd-source-note {
    display: block;
  }
}


/* v137 — fixed clickable EtD judgments */
.etd-criterion-fields {
  grid-template-columns: 1fr;
}

.etd-judgment-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.etd-judgment-fieldset legend {
  margin: 0 0 6px;
  padding: 0;
  color: #5c7180;
  font-size: .72rem;
  font-weight: 750;
}

.etd-judgment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.etd-judgment-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.etd-judgment-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.etd-judgment-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #cbd9e3;
  border-radius: 999px;
  background: #fff;
  color: #365267;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.2;
  transition: border-color .14s ease, background-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.etd-judgment-chip:hover span {
  border-color: #9dbed4;
  background: #f5fafe;
}

.etd-judgment-chip input:focus-visible + span {
  outline: 2px solid #3b8fbe;
  outline-offset: 2px;
}

.etd-judgment-chip input:checked + span {
  border-color: #4b9bc8;
  background: #e8f5fc;
  color: #0e567f;
  box-shadow: inset 0 0 0 1px rgba(75, 155, 200, .08);
}

.etd-references {
  margin: 13px 2px 0;
  padding-top: 11px;
  border-top: 1px solid #dce5eb;
  color: #667986;
  font-size: .7rem;
  line-height: 1.45;
}

.etd-references > strong {
  display: block;
  margin-bottom: 5px;
  color: #526b7b;
  font-size: .72rem;
}

.etd-references ol {
  margin: 0;
  padding-left: 19px;
}

.etd-references li + li {
  margin-top: 4px;
}


/* v138 — six-step workflow with dedicated optional EtD step */
.step-nav {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.step-pill {
  padding-left: 9px;
  padding-right: 9px;
  gap: 6px;
}

.step-pill em {
  font-size: .9rem;
}

.etd-step-pill {
  border-color: #c7dce9;
}

.etd-step-pill:not(.active) {
  background: linear-gradient(180deg, #fbfdff, #f2f8fc);
}

@media (max-width: 1040px) {
  .step-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v139 — streamlined EtD with Live summary visible */
.etd-page {
  min-width: 0;
}

.etd-page-head {
  margin-bottom: 12px;
}

.etd-section-head {
  margin-top: 12px;
}

/* Keep the normal workspace + Live summary columns during the EtD step. */
.app-layout:has(#etd-page:not(.hidden)) {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .85fr);
}

@media (max-width: 1080px) {
  .app-layout:has(#etd-page:not(.hidden)) {
    grid-template-columns: 1fr;
  }
}


/* v140 — visually pair Classify + EtD, and reduce emphasis of special-evidence notes */
.step-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.classification-etd-pair {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.classification-etd-pair .step-pill {
  width: 100%;
}

.classification-etd-pair .etd-step-pill {
  min-height: 27px;
  padding-top: 3px;
  padding-bottom: 3px;
  border-color: #d3e0e8;
  background: #f7fafc;
}

.classification-etd-pair .etd-step-pill .step-icon {
  width: 17px;
  height: 17px;
}

.classification-etd-pair .etd-step-pill em {
  font-size: .76rem;
  font-weight: 700;
}

.classification-etd-pair:has(.step-pill.active) {
  position: relative;
}










@media (max-width: 1040px) {
  .step-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v141 — separate Research evidence and Additional considerations in EtD */
.etd-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.etd-evidence-field {
  align-content: start;
}

.etd-evidence-field > span {
  font-size: .72rem;
}

.etd-evidence-field > small {
  min-height: 2.7em;
  color: #718391;
  font-size: .69rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
}

.etd-evidence-field textarea {
  min-height: 82px;
}

@media (max-width: 760px) {
  .etd-evidence-grid {
    grid-template-columns: 1fr;
  }

  .etd-evidence-field > small {
    min-height: 0;
  }
}


/* v142 — stronger EtD selections, aligned evidence fields, and recommendation-development fields */
.etd-judgment-chip input:checked + span {
  border-color: #153f67;
  background: #153f67;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(21, 63, 103, .14);
  font-weight: 800;
}

.etd-judgment-chip input:checked + span::before {
  content: "✓";
  margin-right: 5px;
  font-weight: 900;
}

.etd-evidence-field {
  display: grid;
  grid-template-rows: auto 3.9em auto;
  align-content: start;
}

.etd-evidence-field > small {
  min-height: 0;
  margin: 0;
}

.etd-evidence-field textarea {
  align-self: start;
  min-height: 88px;
}

.etd-recommendation-development {
  margin-top: 14px;
  padding: 15px;
  border-color: #d5e2ea;
  background: #fbfcfd;
}

.etd-recommendation-development-head {
  margin-bottom: 11px;
}

.etd-recommendation-development-head h3 {
  margin: 2px 0 0;
  font-size: .98rem;
}

.etd-wide-field textarea {
  min-height: 100px;
}

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

.etd-supporting-grid textarea {
  min-height: 92px;
}

.rail-etd-draft {
  background: rgba(227, 240, 248, .55);
}

.rail-etd-draft p {
  color: #234f6d;
  font-size: .70rem;
  line-height: 1.34;
  font-weight: 560;
}

@media (max-width: 760px) {
  .etd-evidence-field {
    grid-template-rows: auto auto auto;
  }

  .etd-supporting-grid {
    grid-template-columns: 1fr;
  }
}


/* v143 — closable/modify EtD answers and confirmed draft recommendation */
.etd-criterion-closed {
  padding: 11px 13px;
  background: #f8fafb;
}

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

.etd-criterion-closed .etd-criterion-question {
  margin-bottom: 7px;
}

.etd-modify-button {
  flex: 0 0 auto;
}

.etd-closed-judgment {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-left: 37px;
}

.etd-closed-judgment > span,
.etd-closed-detail > span,
.etd-closed-head > span {
  color: #637989;
  font-size: .69rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.etd-closed-judgment > strong {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #153f67;
  color: #fff;
  font-size: .73rem;
}

.etd-closed-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 0 37px;
}

.etd-closed-detail {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #e0e7ec;
  border-radius: 8px;
  background: #fff;
}

.etd-closed-detail p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: #536774;
  font-size: .71rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.etd-close-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.etd-recommendation-development-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.etd-class-context {
  flex: 0 0 min(255px, 42%);
  padding: 8px 10px;
  border: 1px solid #ccdae4;
  border-radius: 10px;
  background: #f3f8fb;
}

.etd-class-context > span {
  display: block;
  color: #6a7f8e;
  font-size: .65rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.etd-class-context > strong {
  display: block;
  margin-top: 3px;
  color: #173f63;
  font-size: .79rem;
  line-height: 1.3;
}

.etd-class-context > small {
  display: block;
  margin-top: 2px;
  color: #6d7f8b;
  font-size: .66rem;
  line-height: 1.3;
}

.etd-draft-closed {
  padding: 10px 11px;
  border: 1px solid #cbdde8;
  border-radius: 10px;
  background: #f4f9fc;
}

.etd-closed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.etd-draft-closed p {
  margin: 7px 0 0;
  color: #1d384c;
  font-size: .82rem;
  font-weight: 620;
  line-height: 1.45;
}

.etd-conclusion-bottom {
  margin-top: 14px;
}

.etd-conclusion-closed {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #cbdde8;
  border-radius: 10px;
  background: #f6fafc;
}

.etd-conclusion-closed > strong {
  display: block;
  margin-top: 6px;
  color: #173f63;
  font-size: .82rem;
}

@media (max-width: 760px) {
  .etd-criterion-closed-head,
  .etd-recommendation-development-head {
    flex-direction: column;
  }

  .etd-class-context {
    width: 100%;
    max-width: none;
  }

  .etd-closed-judgment,
  .etd-closed-details {
    margin-left: 0;
  }

  .etd-closed-details {
    grid-template-columns: 1fr;
  }
}


/* v144 — EtD questions stay open/editable and use one forward action */
.etd-single-action {
  justify-content: flex-end;
}

.etd-single-action .button {
  min-width: 190px;
}


/* v145 — EtD ends with a recommendation-possible decision, not recommendation phrasing */
.etd-decision {
  margin-top: 14px;
  padding: 15px 16px;
  border-color: #cbdce7;
  background: #f7fafc;
}

.etd-decision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.etd-decision-head h3 {
  margin: 2px 0 5px;
  font-size: 1rem;
}

.etd-decision-head p:last-child {
  margin: 0;
  color: #637682;
  font-size: .79rem;
  line-height: 1.45;
}

.etd-decision-choice {
  margin-top: 12px;
}

.etd-decision .choice-chip input:checked + span {
  border-color: #153f67;
  background: #153f67;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(21, 63, 103, .12);
}

.etd-single-action .button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .etd-decision-head {
    flex-direction: column;
  }
}


/* v146 — explicit EtD Save / Modify state */
.etd-save-panel {
  margin-top: 12px;
  padding: 11px 13px;
  border-color: #d4e0e8;
  background: #f8fafc;
}

.etd-edit-state,
.etd-saved-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.etd-edit-state strong,
.etd-saved-state strong {
  display: block;
  color: #25475f;
  font-size: .8rem;
}

.etd-edit-state span,
.etd-saved-state span {
  display: block;
  margin-top: 2px;
  color: #71818c;
  font-size: .7rem;
  line-height: 1.35;
}

.etd-saved-state {
  padding: 1px 0;
}

.etd-saved-view .etd-criterion-card,
.etd-saved-view .etd-decision {
  background: #fafcfd;
}

.etd-saved-view textarea:disabled {
  opacity: 1;
  color: #425968;
  background: #f6f8fa;
  border-color: #dce4e9;
  cursor: default;
}

.etd-saved-view .etd-judgment-chip input:disabled + span {
  cursor: default;
}

.etd-saved-view .etd-judgment-chip input:disabled:not(:checked) + span {
  color: #84929b;
  background: #fbfcfd;
  border-color: #e3e8ec;
}

@media (max-width: 650px) {
  .etd-edit-state,
  .etd-saved-state {
    align-items: stretch;
    flex-direction: column;
  }
}

/* v146 — Phrase visual hierarchy: wording darker, Remarks lighter */
.step-panel[data-panel="5"] .wording-card {
  background: #eaf1f6;
  border-color: #c5d4df;
  box-shadow: 0 7px 20px rgba(31, 67, 92, .065);
}

.step-panel[data-panel="5"] .remarks-card {
  background: #fcfdfe;
  border-color: #e3e9ed;
  box-shadow: 0 4px 14px rgba(31, 54, 72, .025);
}


/* v147 — clearer return-to-project navigation */
.app-workspace .wizard-overview-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin: 0 0 10px;
  padding: 6px 11px;
  border: 1px solid #bfd2df;
  border-radius: 999px;
  background: #eef5fa;
  color: #123e74;
  box-shadow: 0 3px 10px rgba(31, 67, 92, .05);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
}

.app-workspace .wizard-overview-link:hover,
.app-workspace .wizard-overview-link:focus-visible {
  border-color: #8fb3ca;
  background: #e2eef6;
  color: #0f355f;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(31, 67, 92, .08);
  outline: none;
}

/* EtD Save / Modify belongs to the assessment, before returning to the Semmelweis pathway. */
.etd-save-panel {
  margin-top: 14px;
  margin-bottom: 14px;
}


/* v149 — project/PICO Word export actions */
.overview-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.research-question-actions {
  flex-wrap: wrap;
}

#export-project-word:disabled {
  opacity: .48;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .overview-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* v152 — consolidated three-step recommendation-development workflow */
.step-nav,
.app-workspace .step-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.step-pill { justify-content: center; }

.drafting-page {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.drafting-page-head { margin-bottom: 0; }

.drafting-module {
  padding: 15px 16px;
  border: 1px solid #d7e1e8;
  border-radius: 16px;
  background: #f8fafc;
}

.drafting-module-head { margin-bottom: 11px; }
.drafting-module-head h3 {
  margin: 2px 0 4px;
  color: #173f63;
  font-size: 1rem;
}
.drafting-module-head p:last-child {
  margin: 0;
  color: #657985;
  font-size: .8rem;
  line-height: 1.45;
}
.drafting-module-head-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.etd-required-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #b9cfdd;
  border-radius: 999px;
  background: #eaf3f8;
  color: #184c70;
  font-size: .69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.classification-module .classification-guide,
.classification-module #final-classification-section,

.drafting-page .etd-section-head { margin-top: 4px; }
.drafting-page .etd-save-panel { margin-bottom: 0; }
.drafting-page .etd-decision { margin-top: 0; }

.drafting-checklist-section .checklist-toolbar { margin-top: 4px; }
#drafting-checklist-content { margin-top: 12px; }

.drafting-phrase-section .wording-card {
  background: #eaf1f6;
  border-color: #c5d4df;
  box-shadow: 0 7px 20px rgba(31, 67, 92, .065);
}
.drafting-phrase-section .remarks-card {
  background: #fcfdfe;
  border-color: #e3e9ed;
  box-shadow: 0 4px 14px rgba(31, 54, 72, .025);
}

.drafting-final-actions {
  margin-top: 0;
  justify-content: flex-end;
}
.drafting-final-actions .button { min-width: 210px; }

@media (max-width: 760px) {
  .step-nav,
  .app-workspace .step-nav { grid-template-columns: 1fr; }
  .drafting-module-head-split { flex-direction: column; }
  .drafting-final-actions .button { width: 100%; }
}


/* v154 — EtD-first branching workflow */
.etd-decision {
  border-color: #bfd3e0;
  background: #f3f8fb;
}

.etd-decision-head {
  display: block;
}

.classification-module.hidden,
.drafting-checklist-section.hidden,
.drafting-phrase-section.hidden {
  display: none;
}

.classification-module {
  border-color: #c7d8e3;
  background: #f7fafc;
}


/* v155 — stronger Recommendation wording hierarchy */
.drafting-phrase-section {
  border-color: #8fb5cd;
  background: #e6f0f7;
  box-shadow: 0 9px 24px rgba(25, 73, 107, .085);
}

.drafting-phrase-section > .drafting-module-head {
  margin: -15px -16px 14px;
  padding: 14px 16px 13px;
  border-bottom: 1px solid #aec8d8;
  border-radius: 15px 15px 0 0;
  background: #d8e8f2;
}

.drafting-phrase-section > .drafting-module-head .section-kicker {
  color: #0e4c79;
  font-weight: 850;
}

.drafting-phrase-section > .drafting-module-head h3 {
  color: #0d3557;
  font-size: 1.08rem;
}

.drafting-phrase-section > .drafting-module-head p:last-child {
  color: #4e6879;
}

.drafting-phrase-section .allowed-wording-card {
  border-color: #8fb8d2;
  background: #edf5fa;
  box-shadow: 0 7px 20px rgba(20, 79, 119, .07);
}

.drafting-phrase-section .wording-card {
  border-color: #9ebdce;
  background: #dceaf4;
  box-shadow: 0 8px 22px rgba(31, 78, 111, .075);
}

/* No-recommendation mode must not visually retain recommendation-type choices. */
#allowed-wording-card.hidden {
  display: none !important;
}


/* v156 — stronger section differentiation on the long Drafting recommendations page */
#drafting-etd {
  border-color: #a9c9dc;
  background: #edf6fb;
}

#drafting-etd > .drafting-module-head {
  margin: -15px -16px 13px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid #bed5e3;
  border-radius: 15px 15px 0 0;
  background: #deedf6;
}

#drafting-decision {
  border-color: #c8c1da;
  background: #f4f2f8;
}

#drafting-decision .etd-decision-head {
  padding-bottom: 3px;
}

#drafting-classification {
  border-color: #b9d6d4;
  background: #eff8f7;
}

#drafting-classification > .drafting-module-head {
  margin: -15px -16px 13px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid #c7dedc;
  border-radius: 15px 15px 0 0;
  background: #e2f1ef;
}

#drafting-checklist-section {
  border-color: #c5d1df;
  background: #f2f5f9;
}

#drafting-checklist-section > .drafting-module-head {
  margin: -15px -16px 13px;
  padding: 13px 16px 12px;
  border-bottom: 1px solid #d1dae5;
  border-radius: 15px 15px 0 0;
  background: #e8eef5;
}

.drafting-phrase-section {
  border-color: #78a7c5;
  background: #e0edf6;
  box-shadow: 0 10px 26px rgba(25, 73, 107, .10);
}

.drafting-phrase-section > .drafting-module-head {
  background: #cfe2ef;
  border-bottom-color: #96b9cf;
}

.drafting-phrase-section .wording-card {
  background: #d7e8f3;
  border-color: #8fb4ca;
}

.drafting-phrase-section .remarks-card {
  background: #f9fbfd;
  border-color: #dce5eb;
}

/* v156 — incomplete-section guidance shown after Save and Review output */
.drafting-module,
.etd-decision {
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.drafting-incomplete {
  border-color: #c84242 !important;
  box-shadow: 0 0 0 2px rgba(200, 66, 66, .10), 0 8px 24px rgba(80, 35, 35, .06) !important;
}

.drafting-incomplete > .drafting-module-head h3::after,
.drafting-incomplete .etd-decision-head h3::after {
  content: " *";
  color: #b42318;
  font-weight: 900;
}

.drafting-attention-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid #d96b65;
  border-radius: 999px;
  background: #fff1f0;
  color: #a61b13;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.etd-decision-head .drafting-attention-badge {
  margin-top: 8px;
  width: fit-content;
}

/* Keep removed Class III exception UI from reappearing via older CSS rules. */
#class-iii-exception {
  display: none !important;
}


/* v157 — simplify EtD heading and align wording-option content */
.etd-progress-row {
  display: flex;
  justify-content: flex-end;
  margin: 1px 0 9px;
}

/* Keep both recommendation-type cards aligned even if one label wraps. */
.drafting-phrase-section .allowed-wording-example {
  display: grid;
  grid-template-rows: 2.35em auto auto;
  align-content: start;
}

.drafting-phrase-section .allowed-wording-label {
  display: flex;
  align-items: flex-start;
  min-height: 2.35em;
  margin-bottom: 5px;
}

.drafting-phrase-section .allowed-wording-verb,
.drafting-phrase-section .allowed-wording-example-text {
  align-self: start;
}


/* v158 — distinct section color identities */
#drafting-etd {
  border-color: #9fc5db;
  background: #eaf5fb;
}
#drafting-etd > .drafting-module-head {
  background: #d9ecf6;
  border-bottom-color: #b6d2e2;
}

#drafting-decision {
  border-color: #c8bddd;
  background: #f3eff8;
}

#drafting-classification {
  border-color: #9dcdbf;
  background: #eaf7f2;
}
#drafting-classification > .drafting-module-head {
  background: #d9eee7;
  border-bottom-color: #b5d9ce;
}

/* Guided classification belongs to Evidentiary foundation, so it follows the
   teal/mint section language rather than appearing as a second blue block. */
#drafting-classification .classification-guide {
  background: #f8fcfa;
  border-color: #b8dcd1;
  box-shadow: 0 7px 20px rgba(35, 100, 82, .055);
}
#drafting-classification .classification-guide .guide-question {
  background: #ffffff;
  border-color: #d0e5df;
}

#drafting-checklist-section {
  border-color: #bcc5cf;
  background: #f0f2f5;
}
#drafting-checklist-section > .drafting-module-head {
  background: #e1e5ea;
  border-bottom-color: #c9d0d8;
}

.drafting-phrase-section {
  border-color: #648caa;
  background: #dbeaf4;
}
.drafting-phrase-section > .drafting-module-head {
  background: #c6ddec;
  border-bottom-color: #87a9c0;
}

/* Checklist Save / Modify */
.checklist-save-panel {
  margin-top: 12px;
  padding: 11px 13px;
  border-color: #d0d7de;
  background: #fafbfc;
}
.checklist-edit-state,
.checklist-saved-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.checklist-edit-state strong,
.checklist-saved-state strong {
  display: block;
  color: #334b5d;
  font-size: .8rem;
}
.checklist-edit-state span,
.checklist-saved-state span {
  display: block;
  margin-top: 2px;
  color: #74828c;
  font-size: .7rem;
  line-height: 1.35;
}
.checklist-saved-view .check-item {
  background: #f8fafb;
}
.checklist-saved-view #checklist-sections textarea:disabled {
  opacity: 1;
  color: #4f626e;
  background: #f6f8f9;
  border-color: #dbe1e5;
  cursor: default;
}

@media (max-width: 650px) {
  .checklist-edit-state,
  .checklist-saved-state {
    align-items: stretch;
    flex-direction: column;
  }
}


/* v159 — Remarks Save / Modify */
.remarks-save-panel {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e3e8ec;
}

.remarks-edit-state,
.remarks-saved-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.remarks-edit-state strong,
.remarks-saved-state strong {
  display: block;
  color: #415766;
  font-size: .78rem;
}

.remarks-edit-state span,
.remarks-saved-state span {
  display: block;
  margin-top: 2px;
  color: #788791;
  font-size: .7rem;
  line-height: 1.35;
}

.remarks-saved-view #remarks-list textarea:disabled,
.remarks-saved-view #remarks-list select:disabled {
  opacity: 1;
  color: #536773;
  background: #f7f9fa;
  border-color: #dce3e7;
  cursor: default;
}

.remarks-saved-view #add-remark:disabled,
.remarks-saved-view [data-remove-remark]:disabled {
  opacity: .45;
  cursor: default;
}

/* Let validation highlight the Remarks card like other drafting sections. */
#remarks-card {
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease;
}

#remarks-card.drafting-incomplete {
  border-color: #c84242 !important;
  box-shadow: 0 0 0 2px rgba(200, 66, 66, .10), 0 8px 24px rgba(80, 35, 35, .06) !important;
}

#remarks-card.drafting-incomplete .inline-head h3::after {
  content: " *";
  color: #b42318;
  font-weight: 900;
}

/* Output project-save action */
.output-save-project-block {
  border-color: #c5d6e2;
  background: #f5f9fc;
}

#output-project-save-state {
  margin: 3px 0 0;
  color: #667985;
  font-size: .78rem;
}

#output-save-project:disabled {
  opacity: .72;
  cursor: default;
}

@media (max-width: 650px) {
  .remarks-edit-state,
  .remarks-saved-state {
    align-items: stretch;
    flex-direction: column;
  }
}


/* v160 — evidence-review decision is the first drafting gate */
#drafting-decision {
  margin-top: 0;
}

#drafting-etd.hidden {
  display: none;
}

#drafting-decision .section-kicker {
  color: #5b467a;
}


/* v161 — make the current workflow page unmistakable */
.app-workspace .step-pill.active {
  background: #123e74;
  border-color: #123e74;
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(18, 62, 116, .22);
  transform: translateY(-1px);
}

.app-workspace .step-pill.active em {
  color: #ffffff;
  font-weight: 850;
}

.app-workspace .step-pill.active .step-icon {
  background: #ffffff;
  color: #123e74;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}

.app-workspace .step-pill:not(.active) {
  opacity: .76;
}

.app-workspace .step-pill {
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}

/* v161 — Save / Modify recommendation wording */
.wording-save-panel {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #b8cfde;
}

.wording-edit-state,
.wording-saved-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wording-edit-state strong,
.wording-saved-state strong {
  display: block;
  color: #294d67;
  font-size: .8rem;
}

.wording-edit-state span,
.wording-saved-state span {
  display: block;
  margin-top: 2px;
  color: #6c7f8c;
  font-size: .7rem;
  line-height: 1.35;
}

.wording-saved-view .wording-card textarea:disabled,
.wording-saved-view .wording-card select:disabled {
  opacity: 1;
  color: #526773;
  background: #f4f8fa;
  border-color: #ccd9e1;
  cursor: default;
}

.wording-saved-view .allowed-wording-example:disabled {
  opacity: .82;
  cursor: default;
}

.wording-saved-view .allowed-wording-example.selected:disabled {
  opacity: 1;
}

.wording-saved-view .no-rec-modify-action:disabled {
  opacity: .45;
  cursor: default;
}

@media (max-width: 650px) {
  .wording-edit-state,
  .wording-saved-state {
    align-items: stretch;
    flex-direction: column;
  }
}


/* v162 — Project overview redesign */
.project-overview {
  color: #203746;
}

.project-overview .research-question-block {
  overflow: hidden;
  border: 1px solid #d7e0e6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(35, 58, 73, .045);
}

.project-overview .research-question-display-head {
  padding: 13px 15px 14px;
  background: #294f69;
  border-bottom: 0;
}

.project-overview .research-question-heading-copy {
  min-width: 0;
}

.project-overview .overview-question-label {
  display: block;
  margin: 0 0 5px;
  color: rgba(255,255,255,.64);
  font-size: .58rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.project-overview .overview-question-text {
  display: block;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: rgba(255,255,255,.10);
  color: #ffffff;
  font-size: .98rem;
  font-weight: 760;
  line-height: 1.4;
}

.project-overview .research-question-recommendations {
  padding: 12px 13px 13px;
  background: #e9eef2;
  border-top: 0;
}

.project-overview .question-recommendations-head {
  margin-bottom: 9px;
  padding: 0 1px 8px;
  border-bottom: 1px solid #d2dbe1;
  background: transparent;
}

.project-overview .question-recommendations-head h3 {
  color: #314d5f;
  font-size: .86rem;
}

.project-overview .question-recommendations-head p {
  color: #788893;
  font-size: .68rem;
}

.project-overview .recommendations-list {
  display: grid;
  gap: 7px;
}

.project-overview .recommendation-overview-row {
  padding: 11px 12px;
  border: 1px solid #d7e0e6;
  border-radius: 10px;
  background: #f9fbfc;
}

.project-overview .recommendation-overview-row:hover {
  background: #ffffff;
  border-color: #c7d4dc;
}

.project-overview .recommendation-overview-title-row h4 {
  font-size: .82rem;
  color: #2c4658;
}

.project-overview .recommendation-overview-preview {
  margin: 5px 0 5px;
  color: #657987;
  font-size: .76rem;
  line-height: 1.4;
}

.project-overview .overview-final-recommendation {
  margin: 7px 0 6px;
  padding: 8px 10px;
  border-left: 3px solid #41789e;
  border-radius: 7px;
  background: #edf5fa;
}

.project-overview .overview-final-recommendation > span {
  display: block;
  margin-bottom: 3px;
  color: #557287;
  font-size: .60rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.project-overview .overview-final-recommendation p {
  margin: 0;
  color: #173e5d;
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.42;
}

.project-overview .recommendation-overview-main > small {
  color: #7d8d97;
  font-size: .66rem;
}

.project-overview .question-recommendations-empty {
  border-color: #d4dde3;
  background: #f7f9fa;
}

/* Export is a secondary utility, not a primary editing action. */
.project-overview .overview-export-action {
  min-height: 0 !important;
  padding: 2px 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #758793 !important;
  font-size: .63rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.project-overview .overview-export-action:hover,
.project-overview .overview-export-action:focus-visible {
  color: #425f72 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.project-overview .research-question-display-head .overview-export-action {
  color: rgba(255,255,255,.50) !important;
}

.project-overview .research-question-display-head .overview-export-action:hover,
.project-overview .research-question-display-head .overview-export-action:focus-visible {
  color: rgba(255,255,255,.86) !important;
}

/* Keep Modify/Add visibly above Export in the action hierarchy. */
.project-overview .recommendation-overview-actions [data-edit-rec],
.project-overview .question-recommendations-actions [data-add-rec],
.project-overview .research-question-actions [data-modify-rq] {
  font-weight: 700;
}

.quick-guide-grade-note {
  margin: 10px 0 5px;
  color: #536a78;
  font-size: .78rem;
  line-height: 1.45;
}


/* v163 — tool identity and compact, hierarchical Project overview */
.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.hero-copy .hero-lead {
  max-width: 760px;
}

/* Level 1: Project — darkest */
.project-overview .project-name-display {
  margin-bottom: 10px;
  padding: 11px 14px;
  border: 1px solid #153a53;
  border-radius: 11px;
  background: #153a53;
  box-shadow: 0 5px 14px rgba(21, 58, 83, .12);
}

.project-overview .project-name-display-label {
  color: rgba(255,255,255,.58);
  font-size: .57rem;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.project-overview #project-name-display {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.25;
}

.project-overview .project-name-modify-action {
  color: rgba(255,255,255,.76);
}

.project-overview .project-name-modify-action:hover,
.project-overview .project-name-modify-action:focus-visible {
  color: #ffffff;
}

/* Keep overview toolbar compact; the content list should carry the hierarchy. */
.project-overview .overview-toolbar {
  min-height: 0;
  margin-bottom: 10px;
  padding: 5px 1px 8px;
  border: 0;
  background: transparent;
}

.project-overview .project-overview-helper {
  margin: -4px 2px 5px;
  font-size: .70rem;
  color: #7a8993;
}

.project-overview .research-questions-list {
  gap: 10px;
}

/* Level 2: PICO — lighter than Project, compact rather than card-heavy */
.project-overview .research-question-block {
  overflow: hidden;
  border: 1px solid #ccd8df;
  border-radius: 10px;
  background: #f7f9fa;
  box-shadow: none;
}

.project-overview .research-question-display-head {
  min-height: 0;
  padding: 9px 11px;
  gap: 10px;
  background: #56778b;
  border-bottom: 0;
}

.project-overview .research-question-heading-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-overview .overview-question-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.project-overview .overview-question-label {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .52rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: .075em;
}

.project-overview .overview-question-count {
  color: rgba(255,255,255,.60);
  font-size: .58rem;
  font-weight: 600;
}

.project-overview .overview-question-text {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: .88rem;
  font-weight: 760;
  line-height: 1.32;
}

.project-overview .research-question-actions {
  align-self: center;
  gap: 8px;
}

/* Level 3: Recommendations container — lighter still */
.project-overview .research-question-recommendations {
  padding: 7px 8px 8px;
  background: #e9eef2;
}

.project-overview .question-recommendations-head {
  min-height: 0;
  margin: 0 0 5px;
  padding: 2px 2px 6px;
  border-bottom: 1px solid #d4dde3;
}

.project-overview .question-recommendations-head h3 {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.project-overview .question-recommendations-head p {
  margin-top: 1px;
  font-size: .58rem;
}

.project-overview .question-recommendations-actions {
  gap: 7px;
}

.project-overview .recommendations-toggle,
.project-overview .add-recommendation-button {
  min-height: 25px;
  padding: 3px 7px;
  font-size: .66rem;
}

.project-overview .recommendations-list {
  gap: 5px;
}

/* Level 4: recommendation rows — near-white, dense and scannable */
.project-overview .recommendation-overview-row {
  min-height: 0;
  padding: 8px 9px;
  border: 1px solid #d6dfe4;
  border-radius: 7px;
  background: #fbfcfd;
  box-shadow: none;
}

.project-overview .recommendation-overview-row:hover {
  background: #ffffff;
  border-color: #c8d4db;
}

.project-overview .recommendation-overview-title-row {
  gap: 7px;
}

.project-overview .recommendation-overview-title-row h4 {
  font-size: .74rem;
  line-height: 1.25;
}

.project-overview .recommendation-class-chip {
  min-height: 20px;
  padding: 2px 6px;
  font-size: .56rem;
}

.project-overview .recommendation-overview-main > small {
  display: block;
  margin-top: 3px;
  font-size: .58rem;
}

.project-overview .recommendation-overview-actions {
  gap: 7px;
}

.project-overview .recommendation-overview-actions .button {
  min-height: 24px;
  padding: 3px 6px;
  font-size: .64rem;
}

/* Completed recommendations remain visible but are clamped to keep 20-row PICOs manageable. */
.project-overview .overview-final-recommendation {
  position: relative;
  margin: 5px 0 4px;
  padding: 6px 8px;
  border-left: 3px solid #487b9d;
  border-radius: 6px;
  background: #eef4f7;
}

.project-overview .overview-final-recommendation > span {
  margin-bottom: 2px;
  font-size: .52rem;
}

.project-overview .overview-final-recommendation .overview-final-text {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #24485f;
  font-size: .70rem;
  font-weight: 680;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-overview .overview-final-recommendation.expanded .overview-final-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: initial;
}

.project-overview .overview-final-toggle {
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #637d8e;
  font: inherit;
  font-size: .57rem;
  font-weight: 700;
  cursor: pointer;
}

.project-overview .overview-final-toggle:hover,
.project-overview .overview-final-toggle:focus-visible {
  color: #244f6e;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

/* Keep utility exports below editing/navigation actions. */
.project-overview .overview-export-action {
  font-size: .57rem !important;
  opacity: .78;
}

@media (max-width: 760px) {
  .project-overview .research-question-display-head {
    align-items: flex-start;
  }

  .project-overview .overview-question-meta {
    flex-wrap: wrap;
  }
}


/* v167 — Project overview only
   Inspired by SEE EVIDENCE:
   brand #0C3648, warm accent #927038, alt #F7F9FB,
   thin borders and restrained shadows.
   No other page colors are changed in this version. */

.project-overview {
  --see-brand: #0C3648;
  --see-brand-dark: #10283C;
  --see-warm: #927038;
  --see-alt: #F7F9FB;
  --see-muted: #5E6872;
  --see-line: rgba(23, 50, 74, .15);
  --see-shadow: 0 10px 28px rgba(23, 50, 74, .06);
  color: var(--see-brand);
}

/* Project = strongest/darkest level, but compact rather than a large slab. */
.project-overview .project-name-display {
  margin-bottom: 12px;
  padding: 11px 15px;
  border: 1px solid var(--see-brand);
  border-radius: 11px;
  background: var(--see-brand);
  box-shadow: 0 8px 22px rgba(12, 54, 72, .10);
}

.project-overview .project-name-display-label {
  color: rgba(255,255,255,.66);
  font-size: .56rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.project-overview #project-name-display {
  color: #fff;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.3;
}

.project-overview .project-name-modify-action {
  color: rgba(255,255,255,.78);
}
.project-overview .project-name-modify-action:hover,
.project-overview .project-name-modify-action:focus-visible {
  color: #fff;
}

/* Toolbar is intentionally quiet. */
.project-overview .overview-toolbar {
  min-height: 0;
  margin: 0 0 10px;
  padding: 4px 1px 8px;
  border: 0;
  background: transparent;
}

.project-overview .project-overview-helper {
  margin: 0;
  color: #73808A;
  font-size: .69rem;
}

.project-overview .research-questions-list {
  gap: 10px;
}

/* PICO = second level. Light, elegant, no bulky filled banner. */
.project-overview .research-question-block {
  overflow: hidden;
  border: 1px solid var(--see-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--see-shadow);
}

.project-overview .research-question-display-head {
  position: relative;
  min-height: 0;
  padding: 10px 13px 10px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--see-line);
  background: #fff;
}

/* Small warm line is the SEE EVIDENCE-style accent; not another color block. */
.project-overview .research-question-display-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--see-warm);
}

.project-overview .research-question-heading-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.project-overview .overview-question-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.project-overview .overview-question-label {
  margin: 0;
  color: var(--see-warm);
  font-size: .53rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project-overview .overview-question-count {
  color: #87919A;
  font-size: .58rem;
  font-weight: 650;
}

.project-overview .overview-question-text {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--see-brand);
  font-size: .91rem;
  font-weight: 740;
  line-height: 1.35;
}

.project-overview .research-question-actions {
  align-self: center;
  gap: 8px;
}

.project-overview .research-question-actions [data-modify-rq] {
  color: var(--see-brand);
  font-weight: 700;
}

/* PICO export remains a utility link. */
.project-overview .research-question-display-head .overview-export-action {
  color: #87939B !important;
}
.project-overview .research-question-display-head .overview-export-action:hover,
.project-overview .research-question-display-head .overview-export-action:focus-visible {
  color: var(--see-brand) !important;
}

/* Recommendations = third level; subtly darker than page, lighter than PICO content. */
.project-overview .research-question-recommendations {
  padding: 8px 9px 9px;
  background: var(--see-alt);
}

.project-overview .question-recommendations-head {
  min-height: 0;
  margin: 0 0 6px;
  padding: 2px 2px 6px;
  border-bottom: 1px solid rgba(23, 50, 74, .10);
}

.project-overview .question-recommendations-head h3 {
  color: var(--see-brand);
  font-size: .73rem;
  font-weight: 780;
}

.project-overview .question-recommendations-head p {
  margin-top: 1px;
  color: #89939A;
  font-size: .58rem;
}

.project-overview .question-recommendations-actions {
  gap: 7px;
}

.project-overview .recommendations-toggle,
.project-overview .add-recommendation-button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: .66rem;
}

.project-overview .add-recommendation-button {
  border-color: rgba(12, 54, 72, .25);
  background: #fff;
  color: var(--see-brand);
}
.project-overview .add-recommendation-button:hover {
  border-color: var(--see-brand);
  background: #fff;
}

.project-overview .recommendations-list {
  gap: 5px;
}

/* Individual recommendations = fourth/lightest level. */
.project-overview .recommendation-overview-row {
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid rgba(23, 50, 74, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.project-overview .recommendation-overview-row:hover {
  border-color: rgba(23, 50, 74, .24);
  background: #fff;
}

.project-overview .recommendation-overview-title-row {
  gap: 7px;
}

.project-overview .recommendation-overview-title-row h4 {
  color: var(--see-brand);
  font-size: .75rem;
  line-height: 1.25;
}

.project-overview .recommendation-class-chip {
  min-height: 20px;
  padding: 2px 6px;
  font-size: .55rem;
}

.project-overview .recommendation-overview-preview {
  margin: 5px 0 4px;
  color: #687680;
  font-size: .71rem;
  line-height: 1.38;
}

.project-overview .recommendation-overview-main > small {
  display: block;
  margin-top: 3px;
  color: #89949B;
  font-size: .57rem;
}

/* Completed recommendation: subtle brand tint, not a large card. */
.project-overview .overview-final-recommendation {
  margin: 5px 0 4px;
  padding: 6px 8px;
  border-left: 3px solid var(--see-brand);
  border-radius: 5px;
  background: #F4F7F8;
}

.project-overview .overview-final-recommendation > span {
  margin-bottom: 2px;
  color: var(--see-warm);
  font-size: .51rem;
  font-weight: 800;
  letter-spacing: .075em;
}

.project-overview .overview-final-recommendation .overview-final-text {
  color: var(--see-brand);
  font-size: .70rem;
  font-weight: 680;
  line-height: 1.35;
}

.project-overview .overview-final-toggle {
  color: #75838C;
  font-size: .56rem;
}
.project-overview .overview-final-toggle:hover,
.project-overview .overview-final-toggle:focus-visible {
  color: var(--see-brand);
}

/* Action hierarchy: Start/Delete easy to use; Export deliberately smallest. */
.project-overview .recommendation-overview-actions {
  gap: 8px;
}

.project-overview .recommendation-overview-actions .overview-start-action {
  min-width: 82px;
  min-height: 35px;
  padding: 7px 15px;
  border-radius: 8px;
  border-color: var(--see-brand);
  background: var(--see-brand);
  color: #fff;
  box-shadow: none;
  font-size: .74rem;
  font-weight: 800;
}

.project-overview .recommendation-overview-actions .overview-start-action:hover {
  border-color: var(--see-brand-dark);
  background: var(--see-brand-dark);
}

.project-overview .recommendation-overview-actions .overview-delete-action {
  min-width: 64px;
  min-height: 35px;
  padding: 7px 10px;
  border: 1px solid #E1C6C3;
  border-radius: 8px;
  background: #fff;
  color: #9A4E49;
  font-size: .70rem;
  font-weight: 700;
}

.project-overview .recommendation-overview-actions .overview-delete-action:hover,
.project-overview .recommendation-overview-actions .overview-delete-action:focus-visible {
  border-color: #CAA19D;
  background: #FFF8F7;
  color: #86423D;
}

.project-overview .recommendation-overview-actions [data-edit-rec] {
  min-height: 31px;
  padding: 5px 9px;
  border-color: rgba(23, 50, 74, .18);
  background: #fff;
  color: var(--see-brand);
  font-weight: 700;
}

/* All Export controls are secondary utility text. */
.project-overview .overview-export-action {
  min-height: 0 !important;
  padding: 2px 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #89949B !important;
  font-size: .57rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.project-overview .overview-export-action:hover,
.project-overview .overview-export-action:focus-visible {
  color: var(--see-brand) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

/* The overview-level Add research question follows the site CTA language,
   but without dominating the page. */
.project-overview-head > .button.primary {
  min-height: 36px;
  padding: 7px 13px;
  border-color: var(--see-brand);
  background: var(--see-brand);
  color: #fff;
  box-shadow: none;
}

.project-overview-head > .button.primary:hover {
  border-color: var(--see-brand-dark);
  background: var(--see-brand-dark);
}

@media (max-width: 760px) {
  .project-overview .research-question-display-head {
    align-items: flex-start;
  }

  .project-overview .overview-question-meta {
    flex-wrap: wrap;
  }
}


/* v168 — PICO numbering, ordering and stable actions */

/* Automatic number: recalculated from list order on every render. */
.project-overview .pico-order-number {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(12, 54, 72, .18);
  border-radius: 8px;
  background: #F7F9FB;
  color: var(--see-brand);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.project-overview .pico-editor-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Compact up/down controls. */
.project-overview .pico-order-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 2px;
}

.project-overview .pico-move-action {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(12, 54, 72, .16);
  border-radius: 7px;
  background: #ffffff;
  color: #647782;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: none;
}

.project-overview .pico-move-action:hover,
.project-overview .pico-move-action:focus-visible {
  border-color: rgba(12, 54, 72, .35);
  background: #F7F9FB;
  color: var(--see-brand);
  outline: none;
}

.project-overview .pico-move-action:disabled {
  opacity: .28;
  cursor: default;
  background: #ffffff;
  border-color: rgba(12, 54, 72, .10);
  color: #8E999F;
}

/* Fix the old white-on-dark PICO-action rules leaking into the new white header.
   Modify no longer changes size/underline/background on hover, which caused the blink. */
.project-overview .research-question-display-head .research-question-actions .pico-modify-action,
.project-overview .research-question-display-head .research-question-actions .pico-modify-action:hover,
.project-overview .research-question-display-head .research-question-actions .pico-modify-action:focus-visible {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(12, 54, 72, .18);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
  color: var(--see-brand);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transform: none;
  transition: none;
}

.project-overview .research-question-display-head .research-question-actions .pico-modify-action:hover,
.project-overview .research-question-display-head .research-question-actions .pico-modify-action:focus-visible {
  border-color: rgba(12, 54, 72, .36);
  background: #F7F9FB;
}

/* Delete was present in the DOM but inherited an old nearly-white text rule.
   Give it an explicit visible treatment. */
.project-overview .research-question-display-head .research-question-actions .pico-delete-action,
.project-overview .research-question-display-head .research-question-actions .pico-delete-action:hover,
.project-overview .research-question-display-head .research-question-actions .pico-delete-action:focus-visible {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #E4C5C2;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none;
  color: #9A4E49;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transform: none;
  transition: none;
}

.project-overview .research-question-display-head .research-question-actions .pico-delete-action:hover,
.project-overview .research-question-display-head .research-question-actions .pico-delete-action:focus-visible {
  border-color: #CDA29E;
  background: #FFF8F7;
  color: #86423D;
  outline: none;
}

@media (max-width: 900px) {
  .project-overview .research-question-display-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .project-overview .research-question-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 37px;
  }
}


/* v169 — PICO emphasis and elegant hover */

/* Make each PICO visually distinct from the white page and pale recommendations
   area, while keeping it clearly lighter than the Project bar. */
.project-overview .research-question-block {
  border-color: rgba(12, 54, 72, .17);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(23, 50, 74, .055);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.project-overview .research-question-display-head {
  background: #E3ECEF;
  border-bottom-color: rgba(12, 54, 72, .13);
  transition: background .18s ease;
}

.project-overview .overview-question-text {
  color: #173D4D;
}

.project-overview .overview-question-label {
  color: #7E6231;
}

.project-overview .pico-order-number {
  background: rgba(255,255,255,.72);
  border-color: rgba(12, 54, 72, .16);
}

/* Elegant whole-PICO hover: slight lift, cleaner border, deeper but restrained
   shadow, and a subtle accent-line response. */
.project-overview .research-question-block:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 54, 72, .28);
  box-shadow:
    0 15px 34px rgba(23, 50, 74, .09),
    0 2px 8px rgba(23, 50, 74, .035);
}

.project-overview .research-question-block:hover .research-question-display-head {
  background: #DDE8EC;
}

.project-overview .research-question-display-head::before {
  transition:
    width .18s ease,
    background .18s ease,
    top .18s ease,
    bottom .18s ease;
}

.project-overview .research-question-block:hover .research-question-display-head::before {
  width: 4px;
  top: 8px;
  bottom: 8px;
  background: #A77D38;
}

/* Export stays last and visually separated as a utility action. */
.project-overview .pico-export-action {
  margin-left: 4px;
  white-space: nowrap;
}


/* v170 — static PICO hover
   Keep the refined visual feedback, but nothing changes position or size. */
.project-overview .research-question-block {
  transition:
    box-shadow .18s ease,
    border-color .18s ease;
}

.project-overview .research-question-block:hover {
  transform: none;
  border-color: rgba(12, 54, 72, .27);
  box-shadow:
    0 12px 28px rgba(23, 50, 74, .085),
    0 2px 6px rgba(23, 50, 74, .03);
}

.project-overview .research-question-display-head {
  transition: background .18s ease;
}

/* Accent line remains the same width and geometry on hover. */
.project-overview .research-question-display-head::before {
  transition: background .18s ease;
}

.project-overview .research-question-block:hover .research-question-display-head::before {
  width: 3px;
  top: 10px;
  bottom: 10px;
  background: #A77D38;
}


/* v172 — partial EtD save and evidence-review teaching note */
.review-stop strong {
  display: block;
  margin-bottom: 5px;
}

.review-stop p {
  max-width: 760px;
}

.etd-partial-saved-view .etd-saved-state {
  border-color: #D9C89F;
  background: #FFF9EC;
}

.etd-partial-saved-view .etd-saved-state strong {
  color: #7E5F20;
}


/* v176 — explicit recommendation finalization and Project overview progress */
.project-overview .recommendation-progress {
  width: min(320px, 100%);
  margin: 5px 0 6px;
}

.project-overview .recommendation-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
  color: #72818A;
  font-size: .55rem;
  font-weight: 650;
  line-height: 1.2;
}

.project-overview .recommendation-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #E8EDF0;
}

.project-overview .recommendation-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--see-brand);
  transition: width .18s ease;
}

.project-overview .recommendation-complete .recommendation-progress-track > span {
  background: var(--see-warm);
}

/* Continue uses the same strong hierarchy as Start until the recommendation
   has been explicitly finalized. */
.project-overview .recommendation-overview-actions [data-edit-rec].overview-start-action {
  min-width: 82px;
  min-height: 35px;
  padding: 7px 15px;
  border-color: var(--see-brand);
  background: var(--see-brand);
  color: #ffffff;
  font-size: .74rem;
  font-weight: 800;
}

.project-overview .recommendation-overview-actions [data-edit-rec].overview-start-action:hover,
.project-overview .recommendation-overview-actions [data-edit-rec].overview-start-action:focus-visible {
  border-color: var(--see-brand-dark);
  background: var(--see-brand-dark);
  color: #ffffff;
}

/* Finalization is the terminal action on the Output page. */
.output-finalize-block {
  padding: 16px 18px;
  border: 1px solid #B8CCD8;
  border-radius: 14px;
  background: #F4F8FA;
}

.output-finalize-block .project-actions-head p {
  max-width: 760px;
}

#finalize-recommendation {
  min-width: 190px;
}


/* v177 — remove recommendation progress/status bars from Project overview */
.project-overview .recommendation-progress,
.project-overview .recommendation-progress-meta,
.project-overview .recommendation-progress-track {
  display: none !important;
}


/* v178 — remove redundant upper guided-classification result box */
#guide-suggestion {
  display: none !important;
}


/* v179 — compact single-line Output actions */
.output-action-strip {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #D9E3E9;
}

.output-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}

.output-action-buttons .button {
  min-height: 42px;
  white-space: nowrap;
}

.output-action-buttons #finalize-recommendation {
  min-width: 0;
}

.output-save-state {
  margin: 8px 0 0;
  color: #667985;
  font-size: .74rem;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .output-action-buttons {
    flex-wrap: wrap;
  }
}


/* v181 — EtD workflow unlock explanation */
.etd-unlock-note {
  margin: 10px 2px 0;
  color: #b91c1c;
  font-size: .8rem;
  line-height: 1.45;
}


/* v184 — clearer structure within Citation & licensing disclosure */
.footer-disclosure-section {
  margin-top: 18px;
}
.footer-disclosure-subhead {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}
.footer-disclosure-section .citation-text,
.footer-disclosure-section .license-text {
  margin-top: 0;
}


/* v185 — classification flowchart reference and simplified checklist counter */
.classification-flowchart-button {
  flex: 0 0 auto;
  align-self: flex-start;
  white-space: nowrap;
  margin-top: 2px;
}

.classification-flowchart-dialog {
  width: min(920px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.classification-flowchart-dialog .dialog-head p:last-child {
  margin: 6px 0 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.5;
  font-size: .9rem;
}

.classification-flowchart-dialog-image {
  padding-top: 2px;
}

.classification-flowchart-dialog-image img {
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  #drafting-classification > .drafting-module-head.drafting-module-head-split {
    flex-direction: column;
  }
  .classification-flowchart-button {
    margin-top: 0;
  }
}


/* v186 — stronger flowchart control and source attribution */
.classification-flowchart-button {
  color: var(--navy-strong);
  background: #e5f0f8;
  border: 1px solid #b8cee1;
  box-shadow: 0 6px 14px rgba(16,47,79,.08);
}
.classification-flowchart-button:hover {
  background: #d8e9f5;
  border-color: #9fbed6;
  transform: translateY(-1px);
}
.flowchart-figure-block {
  display: block;
}
.flowchart-source-note {
  margin: 12px 2px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}
.flowchart-source-note strong {
  color: var(--ink);
}

/* v188 — reduce excess vertical space in the hero */
.hero-shell {
  padding: 5px 0 12px;
}
.hero-utility-row {
  min-height: 20px;
  margin-bottom: 0;
}
.hero-copy h1 {
  margin-top: 0;
  margin-bottom: 4px;
}
.hero-copy .eyebrow {
  margin-bottom: 4px;
}
.hero-lead {
  line-height: 1.42;
}
@media (max-width: 520px) {
  .hero-shell {
    padding: 5px 0 10px;
  }
}

/* v190 — compact validation alerts and single-line desktop tool title */
.alert {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 9px 13px;
  border-radius: 10px;
  box-shadow: none;
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 600;
}

.hero-copy h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.55rem, 2.45vw, 2.2rem);
  line-height: 1.04;
}

@media (max-width: 900px) {
  .hero-copy h1 {
    white-space: normal;
  }
}

/* v192 — evidence-review gate: affirmative/negative selected states */
.review-gate .choice-chip input[value="yes"]:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #19824a, #2f9b61);
  box-shadow: 0 10px 24px rgba(25,130,74,.16);
}
.review-gate .choice-chip input[value="no"]:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #b04640, #d55d55);
  box-shadow: 0 10px 24px rgba(176,70,64,.16);
}

/* v194 — website shell built from v193 source-of-truth tool */
.site-body {
  background:
    radial-gradient(circle at top right, rgba(184, 146, 74, 0.05), transparent 24%),
    linear-gradient(180deg, #fbfcfd 0%, #f3f6f8 100%);
}
.site-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(201, 211, 220, .82);
  backdrop-filter: blur(10px);
}
.site-header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.site-wordmark {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: -.02em;
}
.site-wordmark span {
  font-weight: 700;
  color: var(--navy);
}
.site-wordmark strong {
  font-weight: 800;
  color: var(--gold);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.site-nav a,
.site-tool-nav a {
  text-decoration: none;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.site-nav a {
  color: var(--muted);
  padding: 9px 13px;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--navy-strong);
  background: #f0f3f5;
  outline: none;
}
.site-main {
  padding: 0 0 36px;
}
.site-hero-simple {
  padding: 56px 0 18px;
}
.site-hero-grid-simple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}
.site-hero-simple h1,
.site-page-head h1 {
  margin: 0 0 16px;
  max-width: 940px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.site-page-head h1 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}
.site-lead,
.site-page-head p {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}
.site-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.site-action-row .button {
  text-decoration: none;
}
.site-hero-note {
  padding: 24px;
  align-self: end;
}
.site-hero-note h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 1.25rem;
}
.site-hero-note p:last-child {
  margin-bottom: 0;
}
.site-section-tight {
  padding: 22px 0 0;
}
.site-section {
  padding: 28px 0 0;
}
.site-card-grid {
  display: grid;
  gap: 18px;
}
.site-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.site-feature-card,
.site-method-card,
.site-about-card {
  padding: 24px;
}
.site-feature-card h2,
.site-method-card h2,
.site-about-card h2,
.site-split h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -.025em;
}
.site-feature-card p,
.site-method-card p,
.site-about-card p,
.site-split p,
.site-reference-list,
.site-steps p {
  color: var(--muted);
  line-height: 1.65;
}
.site-feature-card p:last-child,
.site-method-card p:last-child,
.site-about-card p:last-child,
.site-split p:last-child {
  margin-bottom: 0;
}
.site-split {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: start;
}
.site-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.site-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 12px;
  align-items: start;
}
.site-steps span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: .86rem;
}
.site-steps p {
  margin: 5px 0 0;
}
.site-page-head {
  padding: 52px 0 24px;
}
.site-content-grid,
.site-about-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.site-method-card.wide,
.site-about-card.wide {
  grid-column: 1 / -1;
}
.site-class-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.site-class-list div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fafaf8;
}
.site-class-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 5px;
}
.site-class-list span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.site-flowchart-frame {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.site-reference-list {
  margin-bottom: 0;
  padding-left: 1.35rem;
}
.site-reference-list li + li {
  margin-top: 12px;
}
.site-about-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 14px;
}
.site-about-logo-row img {
  width: 168px;
  height: auto;
  flex: 0 0 auto;
}
.site-about-logo-row strong,
.site-about-logo-row span {
  display: block;
}
.site-about-logo-row span {
  color: var(--muted);
  margin-top: 3px;
}
.site-citation-block {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.site-citation-block p {
  margin-top: 0;
}
.site-footer {
  margin-top: 46px;
  padding: 28px 0;
  border-top: 1px solid rgba(201, 211, 220, .82);
  background: rgba(255,255,255,.7);
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer-muted {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.site-footer-logo img {
  width: 154px;
  height: auto;
}
.tool-utility-row {
  justify-content: space-between !important;
  gap: 16px;
}
.site-tool-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.site-tool-nav a {
  color: rgba(255,255,255,.72);
  padding: 7px 10px;
  border: 1px solid transparent;
}
.site-tool-nav a:hover,
.site-tool-nav a:focus-visible,
.site-tool-nav a.active {
  color: #fff;
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.16);
  outline: none;
}
@media (max-width: 1000px) {
  .site-hero-grid-simple,
  .site-split {
    grid-template-columns: 1fr;
  }
  .site-card-grid.three,
  .site-content-grid,
  .site-about-layout,
  .site-class-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .site-header-inner,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-hero-simple {
    padding-top: 34px;
  }
  .site-page-head {
    padding-top: 34px;
  }
  .tool-utility-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .site-tool-nav {
    margin-left: 0;
  }
}


/* v195 website shell: compact wordmark header matching Semmelweis Framework identity */
.website-body {
  margin: 0;
  background: #f7fafc;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.website-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(185, 204, 222, 0.78);
}
.website-header-inner {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.website-wordmark {
  color: var(--navy);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
  white-space: nowrap;
}
.website-wordmark span { color: var(--navy); }
.website-wordmark strong {
  color: #b88b2e;
  font-weight: 800;
}
.website-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.website-nav a {
  color: #4f667d;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.website-nav a:hover,
.website-nav a:focus-visible {
  color: var(--navy);
  border-bottom-color: rgba(18, 62, 116, 0.22);
  outline: none;
}
.website-nav a.active {
  color: var(--navy);
  border-bottom-color: #b88b2e;
}
.website-main {
  min-height: 55vh;
}
.website-home-intro {
  padding: 58px 0 34px;
}
.website-home-copy {
  max-width: 850px;
}
.website-home-copy h1,
.website-page-title h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.website-lead,
.website-page-title p {
  margin: 0;
  max-width: 840px;
  color: #536b83;
  font-size: 1.03rem;
  line-height: 1.72;
}
.website-action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.website-section.compact {
  padding: 18px 0 54px;
}
.website-three-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.website-card-minimal,
.website-about-card {
  border-color: rgba(185, 204, 222, 0.78);
  box-shadow: none;
}
.website-card-minimal h2,
.website-about-card h2 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}
.website-card-minimal p,
.website-about-card p {
  color: #536b83;
  line-height: 1.64;
}
.website-page-title {
  padding: 46px 0 20px;
}
.website-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 58px;
}
.website-about-card.wide {
  grid-column: 1 / -1;
}
.site-citation-block {
  border-top: 1px solid rgba(185, 204, 222, 0.72);
  padding-top: 12px;
  margin-top: 14px;
}
.quick-guide-page {
  margin-bottom: 58px;
}
.reference-dialog.open-as-page {
  display: block;
  position: static;
  width: auto;
  max-width: 1100px;
  max-height: none;
  overflow: visible;
  margin: 0 auto 58px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}
.reference-dialog.open-as-page::backdrop { display: none; }
.reference-dialog.open-as-page section,
.reference-dialog.open-as-page .quick-guide-source,
.reference-dialog.open-as-page .quick-guide-flowchart,
.reference-dialog.open-as-page .expert-definition-callout,
.reference-dialog.open-as-page .expert-definition-usage {
  max-width: none;
}

@media (max-width: 820px) {
  .website-header-inner {
    min-height: 92px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .website-nav {
    justify-content: flex-start;
    gap: 16px;
  }
  .website-home-intro { padding-top: 40px; }
  .website-three-cards,
  .website-about-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .website-nav a { font-size: 0.82rem; }
  .website-action-row .button { width: 100%; justify-content: center; }
}

/* v196 website navigation and tool banner refinements */
.website-wordmark {
  font-size: clamp(1.18rem, 2vw, 1.58rem);
  letter-spacing: -0.045em;
}
.website-wordmark strong { color: #b88b2e; }
.tool-hero-actions-only {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  padding-top: 4px;
  padding-bottom: 0;
}
.tool-hero-actions-only .hero-actions {
  margin: 0;
}
@media (max-width: 820px) {
  .website-wordmark { white-space: normal; line-height: 1.16; }
  .tool-hero-actions-only { justify-content: flex-start; }
}


/* v198 website/tool header refinements */
.tool-control-banner {
  padding: 6px 0 7px;
}
.tool-control-banner .hero-utility-row {
  min-height: 28px;
  margin-bottom: 0;
  justify-content: flex-start !important;
}
.tool-control-banner .hero-project-toolbar {
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
}
.hero-project-link.hero-quick-guide {
  margin-left: auto;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.10);
}
.hero-project-link.hero-quick-guide:hover,
.hero-project-link.hero-quick-guide:focus-visible {
  background: rgba(255,255,255,0.18);
  text-decoration: none;
}
@media (max-width: 720px) {
  .tool-control-banner { padding: 8px 0 9px; }
  .tool-control-banner .hero-project-toolbar { gap: 13px; }
  .hero-project-link.hero-quick-guide { margin-left: 0; }
}

/* v199 home workflow cards and restored tool header */
.website-section-head {
  max-width: 760px;
  margin-bottom: 18px;
}
.website-section-head h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
}
.website-section-head p {
  margin: 0;
  color: #536b83;
  line-height: 1.65;
}
.website-workflow-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.website-step-card {
  position: relative;
  border-color: rgba(185, 204, 222, 0.78);
  box-shadow: none;
  padding-top: 18px;
}
.website-step-card h3 {
  margin: 10px 0 8px;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: -0.025em;
}
.website-step-card p {
  margin: 0;
  color: #536b83;
  line-height: 1.58;
  font-size: 0.93rem;
}
.website-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(18, 62, 116, 0.09);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}
.tool-control-banner {
  margin: 0;
}
.tool-control-banner .hero-backdrop {
  min-height: 0;
}
@media (max-width: 1040px) {
  .website-workflow-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .website-workflow-cards { grid-template-columns: 1fr; }
}


/* v201 home workflow layout fixes */
.website-enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(18, 62, 116, 0.08);
  background: var(--navy);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(16, 47, 79, 0.16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.website-enter-button:hover,
.website-enter-button:focus-visible {
  background: var(--navy-strong);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(16, 47, 79, 0.20);
  outline: none;
}
.website-enter-button span {
  font-size: 1.06rem;
  line-height: 1;
}
.website-workflow-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.website-step-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 212px;
  padding: 24px 24px 22px;
  border-radius: 24px;
  overflow-wrap: anywhere;
}
.website-step-card h3 {
  margin: 18px 0 10px;
  max-width: 100%;
  font-size: 1.08rem;
  line-height: 1.22;
}
.website-step-card p {
  max-width: 100%;
  line-height: 1.58;
}
.website-step-number {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}
@media (max-width: 1040px) {
  .website-workflow-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .website-workflow-cards { grid-template-columns: 1fr; }
  .website-step-card { min-height: 0; padding: 22px 22px 20px; }
}
@media (max-width: 520px) {
  .website-action-row .website-enter-button { width: 100%; }
}


/* v202 website updates */
.footer-method-support {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--color-navy, #12385f);
  letter-spacing: -0.01em;
}

.website-nav {
  gap: 0.55rem;
}

@media (max-width: 720px) {
  .website-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* v203 refinements: persistent Quick guide menu, highlighted Home cards, inline footer support line */
.website-workflow-cards {
  gap: 20px;
}
.website-step-card {
  border-color: rgba(185, 143, 54, 0.34);
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.95) 0%, rgba(255, 255, 255, 0.98) 56%);
  box-shadow: 0 12px 30px rgba(16, 47, 79, 0.06);
}
.website-step-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, rgba(185, 143, 54, 0.85), rgba(185, 143, 54, 0.18));
}
.website-step-number {
  background: rgba(185, 143, 54, 0.16);
  color: var(--navy);
  border: 1px solid rgba(185, 143, 54, 0.28);
}
.website-step-card h3 {
  color: var(--navy);
}
.website-enter-button {
  border-radius: 999px;
  padding-inline: 24px;
}
.footer-method-support.footer-support-inline {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted, #5b6b7b);
  letter-spacing: 0;
}
.footer-method-support.footer-support-inline a {
  color: var(--color-navy, #12385f);
  font-weight: 500;
  text-decoration: none;
}
.footer-method-support.footer-support-inline a:hover,
.footer-method-support.footer-support-inline a:focus-visible {
  text-decoration: underline;
}


/* v204 refinements: quieter Home cards, clean About page, menu emphasis, footer line fix */
.website-home-copy h1 {
  font-size: clamp(1.6rem, 3.36vw, 2.72rem);
  max-width: 920px;
}
.website-step-card {
  border-color: rgba(185, 204, 222, 0.78);
  background: #ffffff;
  box-shadow: none;
}
.website-step-card::before {
  display: none;
}
.website-step-card h3 {
  color: #b88b2e;
}
.website-step-number {
  background: rgba(18, 62, 116, 0.09);
  color: var(--navy);
  border: 0;
}
.website-nav a[href="tool.html"] {
  color: #b88b2e;
  font-weight: 800;
}
.website-nav a[href="tool.html"]:hover,
.website-nav a[href="tool.html"]:focus-visible,
.website-nav a[href="tool.html"].active {
  color: #a9791e;
  border-bottom-color: #b88b2e;
}
.footer-inner {
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.45fr);
}
.footer-brand-block {
  min-width: 0;
}
.footer-method-support.footer-support-inline {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-weight: 400;
}
.footer-method-support.footer-support-inline span,
.footer-method-support.footer-support-inline a {
  white-space: nowrap;
}
.quick-guide-title h1 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.website-about-title {
  padding-bottom: 10px;
}
.website-about-clean {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 58px;
  max-width: 1100px;
}
.website-about-clean .website-about-card {
  box-shadow: none;
  background: #ffffff;
}
.website-about-clean .website-about-card h2 {
  color: var(--navy);
}
.website-about-plain-card p:last-child {
  margin-bottom: 0;
}
@media (max-width: 780px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-method-support.footer-support-inline {
    flex-wrap: wrap;
    white-space: normal;
  }
}

/* v205 About and Quick guide cleanup */
.website-about-main {
  padding: 34px 0 54px;
}
.website-about-clean {
  max-width: 1020px;
  padding-top: 0;
  padding-bottom: 0;
  gap: 16px;
}
.website-about-clean .website-about-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(185, 204, 222, 0.78);
  border-radius: 18px;
  background: #ffffff;
  padding: 22px 24px;
  overflow: hidden;
  box-shadow: none;
}
.website-about-clean .website-about-card h1,
.website-about-clean .website-about-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.website-about-clean .website-about-card p {
  margin: 0 0 12px;
  max-width: 100%;
  color: #536b83;
  font-size: 0.95rem;
  line-height: 1.58;
  overflow-wrap: break-word;
  word-break: normal;
}
.website-about-clean .website-about-card p:last-child {
  margin-bottom: 0;
}
.website-about-clean .site-citation-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 204, 222, 0.72);
}
.website-about-clean .site-citation-block .footer-disclosure-subhead {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 800;
}
.quick-guide-page-title {
  padding: 36px 0 18px;
}
.quick-guide-page-title h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.quick-guide-page-title p {
  font-size: 1rem;
  line-height: 1.6;
}
.reference-dialog.open-as-page .icon-button {
  display: none;
}
.footer-method-support.footer-support-inline {
  gap: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.3;
}
.footer-method-support.footer-support-inline a {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}
@media (max-width: 780px) {
  .website-about-main { padding-top: 24px; }
  .website-about-clean .website-about-card { padding: 20px 18px; }
}

/* v206 Home card spacing and linked footer tool name */
.website-step-card {
  min-height: 176px;
  padding: 22px 24px 20px;
}
.website-step-card h3 {
  margin: 10px 0 8px;
}
.website-step-card p {
  line-height: 1.54;
}
.footer-tool-line a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}
.footer-tool-line a:hover,
.footer-tool-line a:focus-visible {
  text-decoration: underline;
}
@media (max-width: 620px) {
  .website-step-card {
    min-height: 0;
    padding: 20px 20px 18px;
  }
}

/* v207 About/Quick guide content relocation */
.website-about-clean .website-about-card h3 {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.about-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.about-info-grid section {
  min-width: 0;
  border: 1px solid rgba(185, 204, 222, 0.65);
  border-radius: 14px;
  padding: 14px 14px 13px;
  background: #f8fbff;
}
.about-definition-quote {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: #fbfaf6;
  color: #425f78;
  font-size: 0.96rem;
  line-height: 1.62;
  font-style: normal;
  overflow-wrap: break-word;
}
.quick-guide-storage-top {
  margin-top: 0;
}
.quick-guide-page.reference-dialog.open-as-page > .quick-guide-pathway {
  margin-top: 18px;
}
@media (max-width: 900px) {
  .about-info-grid {
    grid-template-columns: 1fr;
  }
}



/* v213 refined three-column scope visual on Home */
.scope-section {
  padding: 8px 0 18px;
}
.scope-head {
  margin-bottom: 16px;
}
.scope-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 0.8fr);
  gap: 18px;
  align-items: start;
}
.scope-column {
  min-width: 0;
}
.scope-column-neutral {
  padding: 16px 18px;
  border: 1px solid rgba(185, 204, 222, 0.6);
  border-radius: 18px;
  background: #ffffff;
}
.scope-column-featured {
  padding: 16px 18px;
  border: 1px solid rgba(184, 139, 46, 0.34);
  border-radius: 18px;
  background: #fffaf0;
}
.scope-column-head {
  min-height: 54px;
  margin-bottom: 8px;
}
.scope-column h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.scope-column-featured h3 {
  color: var(--navy);
}
.scope-column-note {
  margin: 0;
  color: #8d6b1e;
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 700;
}
.scope-column-note-placeholder {
  visibility: hidden;
}
.scope-column-arrow {
  align-self: center;
  color: #aeb9c5;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(6px);
}
.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.scope-list li {
  margin: 0;
  padding: 7px 0;
  color: #22384f;
  font-size: 0.94rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(185, 204, 222, 0.42);
}
.scope-list li:last-child {
  border-bottom: 0;
}
@media (max-width: 980px) {
  .scope-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .scope-column-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
  .scope-column-head {
    min-height: 0;
  }
  .scope-column-note-placeholder {
    display: none;
  }
}



/* v214 column arrow and spacing refinements */
.scope-column-head {
  min-height: 44px;
  margin-bottom: 2px;
}
.scope-column h3 {
  margin-bottom: 2px;
}
.scope-column-note {
  line-height: 1.15;
}
.scope-column-arrow {
  align-self: start;
  margin-top: 17px;
  transform: none;
}
.scope-list li {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 0.92rem;
  line-height: 1.3;
}
@media (max-width: 980px) {
  .scope-column-arrow {
    align-self: center;
    margin-top: 0;
    transform: rotate(90deg);
  }
  .scope-column-head {
    min-height: 0;
    margin-bottom: 4px;
  }
}


/* v215 About citation labels regular weight */
.website-about-clean .site-citation-block .about-reference-label {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 400;
}


/* v216 Quick guide EtD and rounded flowchart panel */
.quick-guide-flowchart {
  border-radius: 18px;
  border: 1px solid rgba(185, 204, 222, 0.72);
  background: #ffffff;
  padding: 18px 24px;
}
.quick-guide-pathway-grid article {
  border-radius: 14px;
}
.quick-guide-pathway-grid article + article {
  margin-left: 8px;
}
.quick-guide-pathway-grid article:not(:last-child)::after {
  right: -13px;
}
@media (max-width: 980px) {
  .quick-guide-pathway-grid article + article {
    margin-left: 0;
  }
}

/* v217 Quick guide pathway: one-line six-card layout */
.quick-guide-pathway-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
.quick-guide-pathway-grid article,
.quick-guide-pathway-grid article:first-child,
.quick-guide-pathway-grid article:last-child {
  display: flex;
  flex-direction: column;
  min-height: 174px;
  padding: 10px 10px 11px;
  border: 1px solid #e3e9ed;
  border-radius: 14px;
  margin-left: 0;
}
.quick-guide-pathway-grid article + article {
  border-left: 1px solid #e3e9ed;
  margin-left: 0;
}
.quick-guide-pathway-grid article:not(:last-child)::after {
  top: 50%;
  right: -11px;
  width: 8px;
  height: 8px;
  background: #f8fafb;
  transform: translateY(-50%) rotate(45deg);
}
.pathway-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 7px;
  border-radius: 8px;
}
.pathway-icon svg {
  width: 15px;
  height: 15px;
}
.quick-guide-pathway-grid strong {
  margin-bottom: 4px;
  font-size: .74rem;
  line-height: 1.16;
}
.quick-guide-pathway-grid small {
  font-size: .63rem;
  line-height: 1.26;
}
@media (max-width: 1120px) {
  .quick-guide-pathway {
    overflow-x: auto;
  }
  .quick-guide-pathway-grid {
    grid-template-columns: repeat(6, minmax(160px, 1fr));
  }
}
@media (max-width: 900px) {
  .quick-guide-pathway-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .quick-guide-pathway-grid article,
  .quick-guide-pathway-grid article:first-child,
  .quick-guide-pathway-grid article:last-child {
    min-height: 0;
    border: 1px solid #e3e9ed;
    border-radius: 10px;
  }
  .quick-guide-pathway-grid article + article {
    border-left: 1px solid #e3e9ed;
  }
  .quick-guide-pathway-grid article:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -5px;
    left: 22px;
    transform: rotate(135deg);
  }
}


/* v219 copy At a glance pathway to Home */
.quick-guide-home-section {
  padding-top: 10px;
  padding-bottom: 24px;
}
.quick-guide-pathway-home {
  margin: 0;
}


/* v223 Home cleanup */
.website-free-note {
  margin: 8px 0 0;
  color: #6d7f91;
  font-size: 0.84rem;
  line-height: 1.35;
}
.quick-guide-pathway-home {
  padding-top: 18px;
}


/* v224 Home card text readability without changing card dimensions */
.quick-guide-pathway-home .quick-guide-pathway-grid small {
  font-size: .69rem;
  line-height: 1.25;
}


/* v225 subtle Home card highlighting */
.quick-guide-pathway-home .quick-guide-pathway-grid article {
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 78%);
  border-color: rgba(184, 139, 46, 0.28);
  box-shadow: 0 10px 22px rgba(15, 42, 68, 0.08);
}
.quick-guide-pathway-home .quick-guide-pathway-grid article:nth-child(even) {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 78%);
  border-color: rgba(15, 42, 68, 0.18);
}
.quick-guide-pathway-home .pathway-icon {
  background: #fff4d8;
  border-color: rgba(184, 139, 46, 0.32);
}
.quick-guide-pathway-home .quick-guide-pathway-grid article:nth-child(even) .pathway-icon {
  background: #eef6fc;
  border-color: rgba(15, 42, 68, 0.18);
}

/* v226 uniform light-blue shade for Home pathway cards */
.quick-guide-pathway-home .quick-guide-pathway-grid article,
.quick-guide-pathway-home .quick-guide-pathway-grid article:nth-child(odd),
.quick-guide-pathway-home .quick-guide-pathway-grid article:nth-child(even),
.quick-guide-pathway-home .quick-guide-pathway-grid article:first-child,
.quick-guide-pathway-home .quick-guide-pathway-grid article:last-child {
  background: #f3f8fd;
  border-color: rgba(129, 171, 213, 0.34);
}

/* v227 Home pathway consistent medium-light blue cards */
.quick-guide-pathway-home .quick-guide-pathway-grid article,
.quick-guide-pathway-home .quick-guide-pathway-grid article:first-child,
.quick-guide-pathway-home .quick-guide-pathway-grid article:last-child {
  background: #e5f0fa;
  border-color: #b8d2eb;
  box-shadow: 0 10px 24px rgba(26, 76, 120, 0.08);
}
.quick-guide-pathway-home .pathway-icon {
  background: #d6e8f7;
  color: #2f6f9e;
}
.quick-guide-pathway-home .pathway-icon svg {
  stroke: #2f6f9e;
}

/* v228 Home pathway uniform darker blue cards */
.quick-guide-home-section .quick-guide-pathway-grid article,
.quick-guide-home-section .quick-guide-pathway-grid article:first-child,
.quick-guide-home-section .quick-guide-pathway-grid article:last-child,
.quick-guide-home-section .quick-guide-pathway-grid article:nth-child(odd),
.quick-guide-home-section .quick-guide-pathway-grid article:nth-child(even) {
  background: #cfe0ef !important;
  border-color: #8fb6d7 !important;
  box-shadow: none !important;
}
.quick-guide-home-section .pathway-icon,
.quick-guide-home-section .quick-guide-pathway-grid article:nth-child(odd) .pathway-icon,
.quick-guide-home-section .quick-guide-pathway-grid article:nth-child(even) .pathway-icon,
.quick-guide-home-section .quick-guide-pathway-grid article:first-child .pathway-icon,
.quick-guide-home-section .quick-guide-pathway-grid article:last-child .pathway-icon {
  background: #b8d2e8 !important;
  color: #1f668b !important;
}
.quick-guide-home-section .pathway-icon svg {
  stroke: #1f668b !important;
}


/* v229 Home hero headline and expert-opinion problem card */
.website-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 32px;
  align-items: center;
}
.website-home-layout .website-home-copy {
  max-width: 820px;
}
.website-problem-card {
  border: 1px solid rgba(143, 182, 215, 0.82);
  border-radius: 24px;
  background: #e6f0f8;
  padding: 24px 24px 22px;
  color: #0c2740;
  box-shadow: 0 18px 36px rgba(15, 42, 68, 0.08);
}
.problem-card-kicker {
  margin: 0 0 8px;
  color: #356f99;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.website-problem-card h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.website-problem-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.website-problem-card li {
  position: relative;
  padding-left: 20px;
  color: #425c73;
  font-size: 0.93rem;
  line-height: 1.45;
}
.website-problem-card li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f668b;
  font-weight: 800;
}
@media (max-width: 900px) {
  .website-home-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .website-problem-card {
    max-width: 620px;
  }
}


/* v230 compact Home problem card */
.website-home-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.58fr);
  gap: 26px;
}
.website-problem-card {
  padding: 18px 18px 17px;
  border-radius: 20px;
  max-width: 310px;
  justify-self: end;
  box-shadow: 0 12px 24px rgba(15, 42, 68, 0.06);
}
.website-problem-card h2 {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.22;
}
.problem-card-kicker {
  margin-bottom: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}
.website-problem-card ul {
  gap: 8px;
}
.website-problem-card li {
  padding-left: 18px;
  font-size: 0.84rem;
  line-height: 1.34;
}
@media (max-width: 900px) {
  .website-problem-card {
    justify-self: start;
    max-width: 620px;
  }
}


/* v231 Home problem card de-duplication and smaller text */
.website-problem-card {
  padding: 16px 17px 15px;
  max-width: 300px;
}
.website-problem-card h2 {
  margin-bottom: 9px;
  font-size: 0.9rem;
  line-height: 1.2;
}
.website-problem-card ul {
  gap: 7px;
}
.website-problem-card li {
  padding-left: 16px;
  font-size: 0.78rem;
  line-height: 1.28;
}
.website-problem-card li::before {
  font-size: 0.8rem;
}


/* v233 Home issue-card inline help */
.website-problem-card .issue-list {
  gap: 6px;
}
.website-problem-card li {
  position: relative;
  padding-left: 0;
  padding-right: 18px;
}
.website-problem-card li::before {
  content: none;
}
.issue-question {
  display: inline;
}
.issue-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 999px;
  background: #2e6f94;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  vertical-align: 1px;
}
.issue-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  display: none;
  width: min(260px, 76vw);
  padding: 9px 10px;
  border: 1px solid rgba(143, 182, 215, 0.95);
  border-radius: 12px;
  background: #ffffff;
  color: #25485f;
  box-shadow: 0 12px 24px rgba(15, 42, 68, 0.14);
  font-size: 0.72rem;
  line-height: 1.32;
}
.issue-help:hover + .issue-tooltip,
.issue-help:focus + .issue-tooltip {
  display: block;
}
@media (max-width: 900px) {
  .issue-tooltip {
    left: 0;
    right: auto;
  }
}

/* v234 additional no-evidence issue while keeping card compact */
.website-problem-card .issue-list {
  gap: 5px;
}
.website-problem-card li {
  font-size: 0.75rem;
  line-height: 1.24;
}
.issue-tooltip {
  font-size: 0.7rem;
  line-height: 1.28;
}

/* v235 move Home headline slightly higher within the hero */
.website-home-intro {
  padding-top: 44px;
}
.website-home-layout {
  align-items: start;
}
.website-home-layout .website-home-copy {
  padding-top: 2px;
}
@media (max-width: 900px) {
  .website-home-layout .website-home-copy {
    padding-top: 0;
  }
}

/* v236 move Home headline a bit higher */
.website-home-intro {
  padding-top: 28px;
}
@media (max-width: 820px) {
  .website-home-intro {
    padding-top: 30px;
  }
}


/* v237 align free-use note with Home action button */
.website-action-row {
  align-items: center;
  gap: 14px;
}
.website-action-row .website-free-note {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .website-action-row {
    align-items: flex-start;
  }
  .website-action-row .website-free-note {
    width: 100%;
    margin-top: 2px;
    text-align: center;
  }
}

/* v238 Sage Evidence palette for Home pathway cards only */
.quick-guide-home-section .quick-guide-pathway-grid article,
.quick-guide-home-section .quick-guide-pathway-grid article:first-child,
.quick-guide-home-section .quick-guide-pathway-grid article:last-child,
.quick-guide-home-section .quick-guide-pathway-grid article:nth-child(odd),
.quick-guide-home-section .quick-guide-pathway-grid article:nth-child(even) {
  background: #f3f8f6 !important;
  border-color: #c9ddd7 !important;
  box-shadow: 0 9px 20px rgba(15, 42, 68, 0.055) !important;
}
.quick-guide-home-section .quick-guide-pathway-grid article:not(:last-child)::after {
  background: #f3f8f6 !important;
  border-top-color: #c9ddd7 !important;
  border-right-color: #c9ddd7 !important;
}
.quick-guide-home-section .pathway-icon,
.quick-guide-home-section .quick-guide-pathway-grid article:nth-child(odd) .pathway-icon,
.quick-guide-home-section .quick-guide-pathway-grid article:nth-child(even) .pathway-icon,
.quick-guide-home-section .quick-guide-pathway-grid article:first-child .pathway-icon,
.quick-guide-home-section .quick-guide-pathway-grid article:last-child .pathway-icon {
  background: #dceee9 !important;
  color: #2f6f68 !important;
  border: 1px solid rgba(47, 111, 104, 0.18) !important;
}
.quick-guide-home-section .pathway-icon svg {
  stroke: #2f6f68 !important;
}


/* v239 consistent page titles for About and Quick guide */
.website-about-main {
  padding: 0 0 54px;
}
.website-page-title,
.quick-guide-page-title,
.website-about-title {
  padding: 28px 0 12px;
}
.website-page-title h1,
.quick-guide-page-title h1,
.website-about-title h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: clamp(1.22rem, 1.9vw, 1.58rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.website-page-title p,
.quick-guide-page-title p,
.website-about-title p {
  margin: 0;
  max-width: 720px;
  color: #5f7182;
  font-size: 0.92rem;
  line-height: 1.45;
}
@media (max-width: 780px) {
  .website-about-main { padding-top: 0; }
  .website-page-title,
  .quick-guide-page-title,
  .website-about-title {
    padding-top: 22px;
  }
}


/* v241 page-title cleanup and Quick guide pathway heading */
.website-page-title > h1:only-child {
  margin-bottom: 0;
}
.quick-guide-pathway-title {
  margin-bottom: 14px;
}
.quick-guide-pathway-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* v242 align About and Quick guide content with the Home/header container */
.website-about-clean,
.quick-guide-page.reference-dialog.open-as-page {
  max-width: var(--container);
}


/* v243 clarify that listed issues are addressed by the Framework */
.issue-card-note {
  margin: 9px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(143, 182, 215, 0.28);
  color: #5f7182;
  font-size: 0.68rem;
  line-height: 1.3;
}


/* v246 About Methods vertical numbered list */
.about-methods-list {
  margin: 16px 0 18px;
  padding-left: 1.35rem;
  color: #425f78;
}
.about-methods-list li {
  margin: 0 0 16px;
  padding-left: 0.3rem;
}
.about-methods-list li::marker {
  color: var(--gold);
  font-weight: 800;
}
.website-about-clean .website-about-card .about-methods-list h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.website-about-clean .website-about-card .about-methods-list p {
  margin: 0;
}


/* v247 highlighted expert-opinion definition inside Methods */
.about-definition-highlight {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(184, 139, 46, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}
.website-about-clean .website-about-card .about-definition-highlight .about-definition-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.about-definition-highlight .about-definition-quote {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #425f78;
  font-size: 0.95rem;
  line-height: 1.62;
}

/* v248 About Methods final reference layout */
.about-methods-separator {
  margin: 18px 0 14px;
  border: 0;
  border-top: 1px solid rgba(185, 204, 222, 0.72);
}
.about-reference-list {
  margin: 0;
  padding-left: 1.35rem;
  color: #536b83;
  font-size: 0.9rem;
  line-height: 1.55;
}
.about-reference-list li {
  margin: 0 0 10px;
  padding-left: 0.3rem;
}
.about-reference-list li::marker {
  color: var(--gold);
  font-weight: 800;
}
.website-about-clean .website-about-card .about-reference-list li:last-child {
  margin-bottom: 0;
}

/* v260 Methods spacing */
.website-about-clean .website-about-card p.about-methods-spaced {
  margin-top: 22px;
}

/* v265 reduce Home hero gap between headline and common-issues card */
.website-home-layout {
  gap: 16px;
}
@media (max-width: 900px) {
  .website-home-layout {
    gap: 22px;
  }
}

/* v266 improve readability at 100% browser zoom */
body {
  font-size: 17px;
}
.website-lead,
.hero-lead {
  font-size: 1.05rem;
  line-height: 1.66;
}
.website-home-copy p,
.website-section-head p,
.website-about-clean p,
.quick-guide-page.reference-dialog.open-as-page p,
.website-about-card p,
.about-definition-highlight .about-definition-quote,
.about-reference-list,
.footer-legal-block,
.footer-method-support.footer-support-inline {
  font-size: 0.98rem;
  line-height: 1.64;
}
.quick-guide-pathway-grid small {
  font-size: 0.9rem;
  line-height: 1.55;
}
.website-problem-card li {
  font-size: 0.82rem;
  line-height: 1.34;
}
.issue-tooltip,
.issue-card-note {
  font-size: 0.74rem;
  line-height: 1.34;
}
.website-action-row .website-free-note {
  font-size: 0.88rem;
}
@media (max-width: 780px) {
  .website-lead,
  .hero-lead,
  .website-home-copy p,
  .website-section-head p,
  .website-about-clean p,
  .quick-guide-page.reference-dialog.open-as-page p,
  .website-about-card p {
    font-size: 1rem;
    line-height: 1.62;
  }
}

/* v267 reduce wide-screen whitespace between Home hero copy and issue card */
@media (min-width: 901px) {
  .website-problem-card {
    justify-self: start;
  }
}

/* v268 pull Home issue card into the hero copy area on wide screens */
@media (min-width: 901px) {
  .website-home-layout {
    grid-template-columns: minmax(0, 980px) minmax(300px, 360px);
    column-gap: 48px;
    justify-content: start;
  }
  .website-home-layout .website-home-copy {
    max-width: 980px;
  }
  .website-problem-card {
    justify-self: start;
    width: 100%;
    max-width: 360px;
  }
}

/* v269 stronger Home hero layout: reduce wide-screen gap between headline block and issue card */
@media (min-width: 901px) {
  .website-home-layout {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 72px !important;
  }
  .website-home-layout .website-home-copy {
    flex: 0 1 980px !important;
    max-width: 980px !important;
  }
  .website-problem-card {
    flex: 0 0 390px !important;
    width: 390px !important;
    max-width: 390px !important;
    justify-self: auto !important;
    margin-left: 0 !important;
  }
}
@media (min-width: 901px) and (max-width: 1320px) {
  .website-home-layout {
    gap: 42px !important;
  }
  .website-home-layout .website-home-copy {
    flex-basis: 820px !important;
  }
  .website-problem-card {
    flex-basis: 360px !important;
    width: 360px !important;
    max-width: 360px !important;
  }
}

/* v270 move Home issue card further left on desktop */
@media (min-width: 1321px) {
  .website-problem-card {
    transform: translateX(-150px) !important;
  }
}
@media (min-width: 901px) and (max-width: 1320px) {
  .website-problem-card {
    transform: translateX(-80px) !important;
  }
}
@media (max-width: 900px) {
  .website-problem-card {
    transform: none !important;
  }
}

/* v271: stabilize Home hero card alignment across zoom levels */
@media (min-width: 1601px) {
  .website-home-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 430px) !important;
    column-gap: 56px !important;
    align-items: flex-start !important;
    justify-content: normal !important;
  }
  .website-home-layout .website-home-copy {
    max-width: 1160px !important;
    width: auto !important;
    flex: none !important;
  }
  .website-problem-card {
    width: 100% !important;
    max-width: 430px !important;
    flex: none !important;
    justify-self: end !important;
    transform: none !important;
    margin-left: 0 !important;
  }
}
@media (min-width: 901px) and (max-width: 1600px) {
  .website-home-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 26px !important;
    column-gap: 0 !important;
  }
  .website-home-layout .website-home-copy {
    max-width: 1040px !important;
    width: auto !important;
    flex: none !important;
  }
  .website-problem-card {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    flex: none !important;
    justify-self: start !important;
    transform: none !important;
    margin-left: 0 !important;
  }
}

/* v272 controlled Home hero alignment: keep card in same row without overlap */
@media (min-width: 1121px) {
  .website-home-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(440px, 28vw, 520px) !important;
    column-gap: clamp(42px, 4vw, 68px) !important;
    row-gap: 0 !important;
    align-items: flex-start !important;
    justify-content: stretch !important;
  }
  .website-home-layout .website-home-copy {
    max-width: none !important;
    width: auto !important;
    min-width: 0 !important;
    flex: none !important;
  }
  .website-home-copy h1,
  .website-home-copy p,
  .website-home-copy .website-action-row {
    max-width: min(100%, 1120px) !important;
  }
  .website-problem-card {
    width: 100% !important;
    max-width: 520px !important;
    min-width: 0 !important;
    flex: none !important;
    justify-self: end !important;
    transform: none !important;
    margin-left: 0 !important;
  }
}
@media (min-width: 1121px) and (max-width: 1500px) {
  .website-home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 450px) !important;
    column-gap: 44px !important;
  }
  .website-home-copy h1,
  .website-home-copy p,
  .website-home-copy .website-action-row {
    max-width: 100% !important;
  }
  .website-problem-card {
    max-width: 450px !important;
  }
}
@media (max-width: 1120px) {
  .website-home-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 26px !important;
    column-gap: 0 !important;
  }
  .website-home-layout .website-home-copy {
    max-width: 100% !important;
    width: auto !important;
    flex: none !important;
  }
  .website-problem-card {
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    justify-self: start !important;
    transform: none !important;
    margin-left: 0 !important;
  }
}

/* v273 refine Home hero paragraph width and responsive zoom behavior */
@media (min-width: 1121px) {
  .website-home-copy p {
    max-width: min(100%, 900px) !important;
  }
  .website-home-copy .website-action-row {
    max-width: min(100%, 900px) !important;
  }
}
@media (min-width: 1121px) and (max-width: 1500px) {
  .website-home-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 430px) !important;
    column-gap: 48px !important;
  }
  .website-home-copy p,
  .website-home-copy .website-action-row {
    max-width: min(100%, 860px) !important;
  }
  .website-problem-card {
    max-width: 430px !important;
  }
}
@media (max-width: 1120px) {
  .website-home-copy h1,
  .website-home-copy p,
  .website-home-copy .website-action-row {
    max-width: 100% !important;
  }
  .website-home-layout {
    row-gap: 24px !important;
  }
}

/* v274: explicitly constrain Home hero lead width for cleaner line length */
@media (min-width: 1121px) {
  .website-home-layout .website-home-copy > p.website-lead {
    display: block !important;
    width: min(100%, 860px) !important;
    max-width: 860px !important;
  }
  .website-home-layout .website-home-copy > .website-action-row {
    width: min(100%, 860px) !important;
    max-width: 860px !important;
  }
}
@media (min-width: 1121px) and (max-width: 1500px) {
  .website-home-layout .website-home-copy > p.website-lead,
  .website-home-layout .website-home-copy > .website-action-row {
    width: min(100%, 780px) !important;
    max-width: 780px !important;
  }
}
@media (min-width: 1121px) and (max-width: 1320px) {
  .website-home-layout .website-home-copy > p.website-lead,
  .website-home-layout .website-home-copy > .website-action-row {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
  }
}
@media (max-width: 1120px) {
  .website-home-layout .website-home-copy > p.website-lead,
  .website-home-layout .website-home-copy > .website-action-row {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* v275: keep footer methodological-support line small and subtle after body-text readability increases */
.footer-method-support.footer-support-inline {
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  color: var(--muted, #5b6b7b) !important;
}
.footer-method-support.footer-support-inline span,
.footer-method-support.footer-support-inline a {
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 400 !important;
}

/* v276: keep footer legal and citation/licensing text subtle after readability increases */
.footer-legal-block {
  font-size: 0.88rem !important;
  line-height: 1.62 !important;
}
.footer-tool-line {
  font-size: 0.86rem !important;
  line-height: 1.45 !important;
}
.footer-disclosure summary {
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}
.footer-disclosure-body,
.footer-disclosure-body p,
.footer-disclosure-section p,
.footer-disclosure-section .citation-text,
.footer-disclosure-section .license-text,
.citation-text,
.license-text {
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
}

/* v277 redesigned Quick guide as practical technical/conceptual tool guide */
.quick-guide-redesign {
  display: block;
  padding: 0 0 56px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.quick-guide-redesign > section {
  margin: 0 0 22px;
}
.quick-guide-redesign > section:last-child {
  margin-bottom: 0;
}
.guide-intro-card,
.guide-section,
.guide-final-card {
  border: 1px solid rgba(185, 204, 222, 0.7);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 42, 68, 0.055);
}
.guide-intro-card {
  padding: 26px 30px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f6faf9 100%);
  border-color: rgba(201, 221, 215, 0.92);
}
.guide-intro-card h2,
.guide-section h2,
.guide-final-card h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(1.16rem, 1.6vw, 1.48rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.quick-guide-redesign .section-kicker {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.guide-intro-card p,
.guide-section p,
.guide-final-card p {
  color: #425f78;
}
.guide-intro-card > p:last-child,
.guide-section-head > p,
.guide-final-card > p:last-child {
  max-width: 920px;
  margin: 0;
}
.guide-section {
  padding: 24px 26px 26px;
}
.guide-section-head {
  max-width: 980px;
  margin: 0 0 18px;
}
.guide-section-head-wide {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.guide-prep-grid,
.guide-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guide-prep-grid article,
.guide-class-grid article,
.guide-explain-card,
.guide-workflow-list article {
  min-width: 0;
  border: 1px solid rgba(185, 204, 222, 0.66);
  border-radius: 16px;
  background: #f8fbff;
}
.guide-prep-grid article {
  padding: 18px 18px 16px;
}
.guide-checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #dceee9;
  color: #2f6f68;
  font-size: 0.95rem;
  font-weight: 800;
}
.quick-guide-redesign h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
}
.quick-guide-redesign article p,
.guide-explain-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
}
.guide-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.guide-two-column .guide-section-head:not(.guide-section-head-wide) {
  margin-bottom: 0;
}
.guide-explain-card {
  padding: 18px 18px 17px;
  background: #ffffff;
}
.guide-explain-accent {
  background: #f3f8f6;
  border-color: #c9ddd7;
}
.guide-workflow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guide-workflow-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  background: #ffffff;
}
.guide-workflow-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}
.guide-class-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guide-class-grid article {
  padding: 17px 17px 16px;
  background: #ffffff;
  border-top-width: 4px;
}
.guide-class-grid article > strong {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef4f8;
  color: var(--navy);
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 800;
}
.guide-class-grid .class-i { border-top-color: #2f6f68; }
.guide-class-grid .class-ii { border-top-color: #4b86a6; }
.guide-class-grid .class-iii { border-top-color: #b88b2e; }
.guide-class-grid .class-iv { border-top-color: #8d5b40; }
.guide-final-card {
  padding: 24px 26px 26px;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 70%);
  border-color: rgba(184, 139, 46, 0.28);
}
@media (max-width: 1180px) {
  .guide-two-column {
    grid-template-columns: 1fr 1fr;
  }
  .guide-two-column .guide-section-head:not(.guide-section-head-wide) {
    grid-column: 1 / -1;
    max-width: 920px;
    margin-bottom: 0;
  }
  .guide-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .guide-intro-card,
  .guide-section,
  .guide-final-card {
    border-radius: 18px;
  }
  .guide-intro-card,
  .guide-section,
  .guide-final-card {
    padding: 21px 18px 22px;
  }
  .guide-prep-grid,
  .guide-class-grid,
  .guide-workflow-list,
  .guide-two-column {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .quick-guide-redesign {
    padding-bottom: 42px;
  }
  .guide-workflow-list article {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 15px;
  }
  .guide-workflow-list article > span {
    width: 28px;
    height: 28px;
  }
}

/* v281 Quick guide: practical prep cards and vertical workflow columns */
.guide-workflow-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
}
@media (max-width: 900px) {
  .guide-workflow-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}


/* v282 Quick guide: Semmelweis expert-opinion continuum note */
.guide-expert-logic {
  max-width: 920px;
  margin: 12px 0 0 !important;
  padding: 14px 16px;
  border-left: 4px solid #2f6f68;
  border-radius: 14px;
  background: #f3f8f6;
  color: #335871 !important;
  line-height: 1.62;
}


/* v283 About Methods flowchart figure */
.about-methods-flowchart {
  margin: 18px 0 18px;
  padding: 16px;
  border: 1px solid rgba(185, 204, 222, 0.72);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 42, 68, 0.05);
}
.website-about-clean .website-about-card .about-methods-flowchart h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.website-about-clean .website-about-card .about-methods-flowchart > p {
  margin: 0 0 12px;
  color: #536b83;
  font-size: 0.94rem;
  line-height: 1.55;
}
.about-methods-flowchart .flowchart-figure-block img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(185, 204, 222, 0.64);
  border-radius: 14px;
  background: #fff;
}
.about-methods-flowchart .flowchart-source-note {
  font-size: 0.78rem;
  line-height: 1.48;
}
@media (max-width: 720px) {
  .about-methods-flowchart {
    padding: 12px;
  }
}

/* v285: renamed public tool identity with subtle methodological-basis note */
.website-basis-note {
  margin: -8px 0 22px;
  color: var(--muted, #5b6b7b);
  font-size: 0.94rem;
  line-height: 1.55;
}
.footer-basis-line {
  margin-top: 2px !important;
  color: var(--muted, #5b6b7b) !important;
}
@media (min-width: 1121px) {
  .website-home-layout .website-home-copy > p.website-basis-note {
    display: block !important;
    width: min(100%, 860px) !important;
    max-width: 860px !important;
  }
}
@media (min-width: 1121px) and (max-width: 1500px) {
  .website-home-layout .website-home-copy > p.website-basis-note {
    width: min(100%, 780px) !important;
    max-width: 780px !important;
  }
}
@media (min-width: 1121px) and (max-width: 1320px) {
  .website-home-layout .website-home-copy > p.website-basis-note {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
  }
}
@media (max-width: 1120px) {
  .website-home-layout .website-home-copy > p.website-basis-note {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* v286: prevent methodological-basis note from overlapping the Home lead text */
.website-basis-note {
  display: block !important;
  clear: both !important;
  margin: 12px 0 22px !important;
  padding: 0 !important;
  color: var(--muted, #5b6b7b);
  font-size: 0.94rem !important;
  line-height: 1.58 !important;
}
.website-home-layout .website-home-copy > p.website-basis-note {
  display: block !important;
}
.website-home-layout .website-home-copy > p.website-lead + p.website-basis-note {
  margin-top: 12px !important;
}
.website-basis-note + .website-action-row {
  margin-top: 0 !important;
}


/* v288: place Semmelweis Framework basis line directly under the public tool name */
.website-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.website-brand-block .website-wordmark {
  display: inline-block;
}
.website-brand-basis {
  margin: 0;
  color: var(--muted, #5b6b7b);
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .website-header-inner {
    align-items: flex-start;
  }
  .website-brand-basis {
    white-space: normal;
    max-width: 300px;
  }
}
@media (max-width: 520px) {
  .website-brand-basis {
    font-size: 0.72rem;
    max-width: 240px;
  }
}


/* v293: Home infographic snapshot of the Semmelweis Framework */
.framework-glimpse-section {
  padding-top: 8px;
  padding-bottom: 10px;
}
.framework-glimpse-head {
  max-width: 900px;
  margin-bottom: 20px;
}
.framework-glimpse-card {
  border: 1px solid rgba(183, 205, 228, 0.96);
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fbfe 0%, #f3f8fd 100%);
  box-shadow: 0 18px 34px rgba(15, 42, 68, 0.05);
  padding: 24px;
}
.framework-class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.framework-class-box {
  min-width: 0;
  min-height: 214px;
  padding: 18px 16px 16px;
  border: 1px solid #c5d9ec;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}
.framework-class-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dceaf8;
  border: 1px solid #bfd4e8;
  color: #245b83;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.framework-class-box h3 {
  margin: 12px 0 9px;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.framework-class-box p {
  margin: 0;
  color: #4d647a;
  font-size: 0.92rem;
  line-height: 1.56;
}
.framework-continuum {
  margin-top: 18px;
  border: 1px solid #c5d9ec;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  padding: 18px 20px;
}
.framework-continuum-header {
  display: grid;
  gap: 4px;
}
.framework-continuum-header strong {
  color: var(--navy);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.framework-continuum-header span {
  color: #4f6880;
  font-size: 0.92rem;
  line-height: 1.52;
}
.framework-continuum-bar {
  position: relative;
  margin-top: 16px;
  padding: 0 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 12px;
}
.framework-continuum-bar::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #8eb9df 0%, #5e91bd 100%);
}
.continuum-point {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #9fc0de;
  background: #ffffff;
  color: #235c86;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(15, 42, 68, 0.06);
}
.framework-continuum-labels {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #4f6880;
  font-size: 0.84rem;
  line-height: 1.4;
}
.framework-continuum-labels span:last-child {
  text-align: right;
}
.framework-checklist-note {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid #c5d9ec;
  border-radius: 20px;
  background: #ffffff;
}
.framework-checklist-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #dceaf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd4e8;
}
.framework-checklist-icon svg {
  width: 24px;
  height: 24px;
  stroke: #245b83;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.framework-checklist-note strong {
  display: block;
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.framework-checklist-note p {
  margin: 0;
  color: #4f6880;
  font-size: 0.92rem;
  line-height: 1.56;
}
@media (max-width: 1180px) {
  .framework-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .framework-class-box {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .framework-glimpse-card {
    padding: 18px;
    border-radius: 24px;
  }
  .framework-class-grid {
    grid-template-columns: 1fr;
  }
  .framework-continuum,
  .framework-checklist-note {
    padding: 16px;
    border-radius: 18px;
  }
  .framework-checklist-note {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .framework-checklist-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .framework-continuum-labels {
    flex-direction: column;
    gap: 6px;
  }
  .framework-continuum-labels span:last-child {
    text-align: left;
  }
}


/* v294: enliven the Home Semmelweis Framework infographic */
.framework-glimpse-card {
  background: linear-gradient(180deg, #f8fbfe 0%, #edf5fc 100%);
  padding: 26px;
}
.framework-class-grid {
  gap: 16px;
}
.framework-class-box {
  display: flex;
  flex-direction: column;
  min-height: 226px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 20px rgba(20, 55, 88, 0.06);
}
.framework-class-box.class-i {
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
  border-color: #c8dbf1;
}
.framework-class-box.class-ii {
  background: linear-gradient(180deg, #f2f0ff 0%, #ffffff 100%);
  border-color: #d6d2ef;
}
.framework-class-box.class-iii {
  background: linear-gradient(180deg, #fff5eb 0%, #ffffff 100%);
  border-color: #ecd8bb;
}
.framework-class-box.class-iv {
  background: linear-gradient(180deg, #edf8f3 0%, #ffffff 100%);
  border-color: #cfe2d7;
}
.framework-class-box.class-i .framework-class-tag {
  background: #dceaf8;
  border-color: #bfd4e8;
  color: #245b83;
}
.framework-class-box.class-ii .framework-class-tag {
  background: #e7e4fb;
  border-color: #d3cdf6;
  color: #6151a0;
}
.framework-class-box.class-iii .framework-class-tag {
  background: #f9e7d3;
  border-color: #efd1ad;
  color: #a8642a;
}
.framework-class-box.class-iv .framework-class-tag {
  background: #daeee3;
  border-color: #c0ddcf;
  color: #2d6e61;
}
.framework-class-box p {
  flex: 1 1 auto;
}
.framework-class-checklist {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 167, 206, 0.32);
  background: rgba(255, 255, 255, 0.78);
}
.framework-class-checklist strong {
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.framework-class-checklist span {
  color: #315e80;
  font-size: 0.82rem;
  font-weight: 700;
}
.framework-class-checklist.neutral span {
  color: #687b8d;
  font-weight: 600;
}
.framework-continuum {
  margin-top: 20px;
  padding: 20px 20px 18px;
}
.framework-continuum-bar {
  position: relative;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}
.framework-continuum-bar::before,
.continuum-point {
  display: none !important;
}
.continuum-segment {
  min-height: 78px;
  padding: 14px 12px 12px;
  border-radius: 18px;
  color: #173a58;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.continuum-segment::after {
  content: "→";
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 1rem;
  opacity: 0.55;
  font-weight: 800;
}
.continuum-segment:last-child::after {
  content: "";
}
.continuum-segment.class-i {
  background: linear-gradient(135deg, #dbeaf9 0%, #c8ddf3 100%);
}
.continuum-segment.class-ii {
  background: linear-gradient(135deg, #e6e3fb 0%, #d5cff6 100%);
}
.continuum-segment.class-iii {
  background: linear-gradient(135deg, #fae7d1 0%, #f2d8b7 100%);
}
.continuum-segment.class-iv {
  background: linear-gradient(135deg, #d9ede2 0%, #c6e1d3 100%);
}
.continuum-label {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.continuum-code {
  margin-top: 5px;
  color: #35556f;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}
.framework-continuum-labels {
  margin-top: 12px;
}
@media (max-width: 1180px) {
  .framework-class-box {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .framework-glimpse-card {
    padding: 18px;
  }
  .framework-continuum-bar {
    grid-template-columns: 1fr;
  }
  .continuum-segment {
    min-height: 0;
  }
  .framework-class-checklist {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* v295: replace Home framework card block with a curved tool-logic infographic */
.tool-logic-section {
  padding-top: 8px;
  padding-bottom: 12px;
}
.tool-logic-head {
  max-width: 930px;
}
.tool-logic-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(183, 205, 228, 0.96);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(127, 180, 223, 0.24), transparent 32%),
    radial-gradient(circle at 54% 82%, rgba(210, 164, 95, 0.18), transparent 34%),
    radial-gradient(circle at 92% 24%, rgba(93, 165, 142, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fbfe 0%, #edf5fc 100%);
  box-shadow: 0 18px 34px rgba(15, 42, 68, 0.055);
}
.tool-logic-curve {
  position: absolute;
  inset: 54px 24px auto 24px;
  width: calc(100% - 48px);
  height: 270px;
  pointer-events: none;
}
.logic-ribbon-shadow {
  fill: none;
  stroke: rgba(15, 42, 68, 0.09);
  stroke-width: 24;
  stroke-linecap: round;
}
.logic-ribbon {
  fill: none;
  stroke: url(#logicPathGradient);
  stroke-width: 12;
  stroke-linecap: round;
}
.tool-logic-nodes {
  position: relative;
  z-index: 2;
  height: 352px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logic-node {
  position: absolute;
  width: 178px;
  min-height: 132px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  text-align: center;
  padding: 0 8px;
}
.logic-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.82);
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(15, 42, 68, 0.16);
}
.logic-node strong {
  display: block;
  color: var(--navy);
  font-size: 0.96rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.logic-node small {
  display: block;
  margin-top: 6px;
  color: #4f6880;
  font-size: 0.78rem;
  line-height: 1.32;
}
.logic-node-1 { left: 2%; top: 176px; }
.logic-node-2 { left: 16%; top: 58px; }
.logic-node-3 { left: 31%; top: 176px; }
.logic-node-4 { left: 46%; top: 58px; }
.logic-node-5 { left: 61%; top: 176px; }
.logic-node-6 { left: 75%; top: 58px; }
.logic-node-7 { right: 2%; top: 166px; }
.logic-node-1 .logic-number { background: linear-gradient(135deg, #4c93cc, #79b8e5); }
.logic-node-2 .logic-number { background: linear-gradient(135deg, #6f63b9, #a195df); }
.logic-node-3 .logic-number { background: linear-gradient(135deg, #3e7ea7, #6eacd2); }
.logic-node-4 .logic-number { background: linear-gradient(135deg, #a26e2b, #d2a45f); }
.logic-node-5 .logic-number { background: linear-gradient(135deg, #b58b28, #d7b75f); }
.logic-node-6 .logic-number { background: linear-gradient(135deg, #3c8c75, #6bb59e); }
.logic-node-7 .logic-number { background: linear-gradient(135deg, #1f668b, #2f8e89); }
.tool-logic-insights {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 10px 24px 24px;
}
.logic-insight {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(183, 205, 228, 0.88);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 22px rgba(15, 42, 68, 0.045);
}
.logic-insight-badge {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, #b58b28, #d7b75f);
}
.logic-continuum .logic-insight-badge {
  background: linear-gradient(135deg, #4c93cc, #6bb59e);
  font-size: 1.25rem;
}
.logic-insight strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.logic-insight p {
  margin: 0;
  color: #4f6880;
  font-size: 0.88rem;
  line-height: 1.46;
}
@media (max-width: 1220px) {
  .logic-node {
    width: 158px;
  }
  .logic-node small {
    font-size: 0.74rem;
  }
  .logic-node-1 { left: 1%; }
  .logic-node-2 { left: 15%; }
  .logic-node-3 { left: 30%; }
  .logic-node-4 { left: 45%; }
  .logic-node-5 { left: 60%; }
  .logic-node-6 { left: 74%; }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0;
    padding: 20px;
  }
  .tool-logic-curve {
    display: none;
  }
  .tool-logic-nodes {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 18px;
    border-left: 4px solid rgba(76, 147, 204, 0.28);
  }
  .logic-node {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    justify-items: start;
    text-align: left;
    padding: 0;
  }
  .logic-number {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    margin: 0;
  }
  .logic-node small {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .tool-logic-insights {
    grid-template-columns: 1fr;
    margin: 20px 0 0;
  }
}
@media (max-width: 620px) {
  .tool-logic-visual {
    padding: 16px;
    border-radius: 24px;
  }
  .logic-insight {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }
  .logic-insight-badge {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }
}


/* v296: polish Home tool-logic infographic so the path never visually crosses text */
.tool-logic-curve {
  z-index: 1;
}
.tool-logic-nodes {
  z-index: 3;
}
.logic-node {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.logic-number {
  position: relative;
  z-index: 4;
}
.logic-node-copy {
  position: relative;
  z-index: 4;
  margin-top: 9px;
  width: 100%;
  padding: 10px 11px 11px;
  border: 1px solid rgba(183, 205, 228, 0.76);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 9px 20px rgba(15, 42, 68, 0.055);
  backdrop-filter: blur(4px);
}
.logic-node strong,
.logic-node small {
  position: relative;
  z-index: 5;
}
.logic-node-1,
.logic-node-3,
.logic-node-5,
.logic-node-7 {
  top: 190px;
}
.logic-node-2,
.logic-node-4,
.logic-node-6 {
  top: 42px;
}
.logic-ribbon-shadow {
  stroke-width: 22;
  opacity: 0.74;
}
.logic-ribbon {
  stroke-width: 11;
}
@media (max-width: 1220px) {
  .logic-node-copy {
    padding: 9px 10px 10px;
  }
}
@media (max-width: 980px) {
  .logic-node {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
  }
  .logic-node-copy {
    margin-top: 0;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
}


/* v297: clean Home tool-logic pathway with more breathing room and no text backing */
.tool-logic-visual {
  min-height: 650px !important;
}
.tool-logic-curve {
  inset: 60px 34px auto 34px !important;
  width: calc(100% - 68px) !important;
  height: 360px !important;
  z-index: 1 !important;
}
.tool-logic-nodes {
  height: 448px !important;
  z-index: 3 !important;
}
.logic-node {
  width: 172px !important;
  min-height: 110px !important;
  padding: 0 6px !important;
}
.logic-node-copy {
  margin-top: 10px !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.logic-node strong {
  font-size: 0.94rem !important;
  line-height: 1.2 !important;
}
.logic-node small {
  margin-top: 6px !important;
  font-size: 0.76rem !important;
  line-height: 1.34 !important;
}
.logic-node-1,
.logic-node-3,
.logic-node-5 {
  top: 318px !important;
}
.logic-node-7 {
  top: 308px !important;
}
.logic-node-2,
.logic-node-4,
.logic-node-6 {
  top: 26px !important;
}
.logic-ribbon-shadow {
  stroke-width: 18 !important;
  opacity: 0.42 !important;
}
.logic-ribbon {
  stroke-width: 9 !important;
  opacity: 0.96 !important;
}
.tool-logic-insights {
  margin-top: 8px !important;
}
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 660px !important;
  }
  .logic-node {
    width: 150px !important;
  }
  .logic-node small {
    font-size: 0.72rem !important;
  }
  .logic-node-1 { left: 0.5% !important; }
  .logic-node-2 { left: 14.5% !important; }
  .logic-node-3 { left: 29.5% !important; }
  .logic-node-4 { left: 44.5% !important; }
  .logic-node-5 { left: 59.5% !important; }
  .logic-node-6 { left: 73.5% !important; }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
  }
  .tool-logic-nodes {
    height: auto !important;
  }
  .logic-node {
    width: auto !important;
    min-height: 0 !important;
  }
  .logic-node-copy {
    margin-top: 0 !important;
  }
  .logic-node strong {
    font-size: 0.96rem !important;
  }
  .logic-node small {
    font-size: 0.82rem !important;
  }
}


/* v298: remove lower insight cards and refine arrowhead */
.tool-logic-visual {
  min-height: 500px !important;
}
.tool-logic-nodes {
  height: 436px !important;
}
.tool-logic-insights {
  display: none !important;
}
.logic-ribbon {
  stroke-width: 8.5px !important;
}
.logic-ribbon-shadow {
  stroke-width: 16px !important;
  opacity: 0.34 !important;
}
@media (max-width: 980px) {
  .tool-logic-insights {
    display: none !important;
  }
}


/* v299: replace arrow with elegant curved connectors and move top-row circles below text */
.tool-logic-visual {
  min-height: 530px !important;
}
.tool-logic-curve {
  inset: 84px 46px auto 46px !important;
  width: calc(100% - 92px) !important;
  height: 240px !important;
}
.logic-ribbon-shadow {
  stroke-width: 14px !important;
  opacity: 0.18 !important;
}
.logic-ribbon {
  stroke-width: 5.5px !important;
  opacity: 0.95 !important;
}
.tool-logic-nodes {
  height: 440px !important;
}
.logic-node {
  width: 176px !important;
  min-height: 124px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 0 7px !important;
}
.logic-node-top {
  flex-direction: column-reverse !important;
}
.logic-node-copy {
  width: 100% !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.logic-number {
  width: 44px !important;
  height: 44px !important;
  margin: 0 0 10px !important;
  position: relative;
  z-index: 4;
}
.logic-node-top .logic-number {
  margin: 10px 0 0 !important;
}
.logic-node strong {
  font-size: 0.94rem !important;
  line-height: 1.18 !important;
}
.logic-node small {
  margin-top: 6px !important;
  font-size: 0.76rem !important;
  line-height: 1.34 !important;
}
.logic-node-1,
.logic-node-3,
.logic-node-5,
.logic-node-7 {
  top: 240px !important;
}
.logic-node-2,
.logic-node-4,
.logic-node-6 {
  top: 22px !important;
}
.logic-node-1 { left: 1.5% !important; }
.logic-node-2 { left: 15.2% !important; }
.logic-node-3 { left: 30.5% !important; }
.logic-node-4 { left: 44.8% !important; }
.logic-node-5 { left: 59.2% !important; }
.logic-node-6 { left: 73.6% !important; }
.logic-node-7 { right: 1.4% !important; }
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 550px !important;
  }
  .tool-logic-curve {
    inset: 88px 36px auto 36px !important;
    width: calc(100% - 72px) !important;
  }
  .logic-node {
    width: 150px !important;
  }
  .logic-node small {
    font-size: 0.72rem !important;
  }
  .logic-node-1 { left: 0.8% !important; }
  .logic-node-2 { left: 14.4% !important; }
  .logic-node-3 { left: 29.0% !important; }
  .logic-node-4 { left: 43.8% !important; }
  .logic-node-5 { left: 58.6% !important; }
  .logic-node-6 { left: 72.8% !important; }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
    padding: 20px !important;
  }
  .tool-logic-curve {
    display: none !important;
  }
  .tool-logic-nodes {
    height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding-left: 18px !important;
    border-left: 4px solid rgba(76, 147, 204, 0.28) !important;
  }
  .logic-node,
  .logic-node-top,
  .logic-node-bottom {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    column-gap: 12px !important;
    align-items: start !important;
    justify-items: start !important;
    text-align: left !important;
    padding: 0 !important;
  }
  .logic-node-top {
    flex-direction: initial !important;
  }
  .logic-number,
  .logic-node-top .logic-number {
    grid-row: 1 / span 2 !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
  }
  .logic-node-copy {
    width: auto !important;
  }
  .logic-node strong {
    font-size: 0.96rem !important;
  }
  .logic-node small {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }
}


/* v300: align connector through circle centers, add small final arrow, reduce empty space */
.tool-logic-visual {
  min-height: 415px !important;
}
.tool-logic-curve {
  inset: 40px 46px auto 46px !important;
  width: calc(100% - 92px) !important;
  height: 280px !important;
}
.tool-logic-nodes {
  height: 356px !important;
}
.logic-node {
  width: 164px !important;
  min-height: 112px !important;
  padding: 0 6px !important;
}
.logic-number {
  width: 44px !important;
  height: 44px !important;
}
.logic-node-top .logic-number {
  margin: 10px 0 0 !important;
}
.logic-node-bottom .logic-number {
  margin: 0 0 10px !important;
}
.logic-node-1,
.logic-node-3,
.logic-node-5,
.logic-node-7 {
  top: 218px !important;
}
.logic-node-2,
.logic-node-4,
.logic-node-6 {
  top: 24px !important;
}
.logic-node-1 { left: 1.2% !important; }
.logic-node-2 { left: 15.0% !important; }
.logic-node-3 { left: 30.2% !important; }
.logic-node-4 { left: 44.9% !important; }
.logic-node-5 { left: 59.5% !important; }
.logic-node-6 { left: 74.0% !important; }
.logic-node-7 { right: 1.1% !important; }
.logic-ribbon-shadow {
  stroke-width: 13px !important;
  opacity: 0.16 !important;
}
.logic-ribbon {
  stroke-width: 5.25px !important;
  opacity: 0.94 !important;
}
.logic-final-arrow {
  fill: none;
  stroke: #5da58e;
  stroke-width: 5.25px;
  stroke-linecap: round;
  opacity: 0.95;
}
.logic-node strong {
  font-size: 0.92rem !important;
}
.logic-node small {
  font-size: 0.74rem !important;
  line-height: 1.32 !important;
}
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 430px !important;
  }
  .tool-logic-curve {
    inset: 42px 34px auto 34px !important;
    width: calc(100% - 68px) !important;
    height: 282px !important;
  }
  .tool-logic-nodes {
    height: 366px !important;
  }
  .logic-node {
    width: 142px !important;
  }
  .logic-node small {
    font-size: 0.7rem !important;
  }
  .logic-node-1 { left: 0.6% !important; }
  .logic-node-2 { left: 14.2% !important; }
  .logic-node-3 { left: 28.9% !important; }
  .logic-node-4 { left: 43.7% !important; }
  .logic-node-5 { left: 58.5% !important; }
  .logic-node-6 { left: 72.8% !important; }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
  }
  .tool-logic-nodes {
    height: auto !important;
  }
  .logic-final-arrow {
    display: none !important;
  }
}


/* v301: exact center-aligned connector and more compact Home pathway */
.tool-logic-visual {
  min-height: 372px !important;
}
.tool-logic-curve {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.tool-logic-nodes {
  height: 372px !important;
}
.logic-node {
  position: absolute !important;
  width: 176px !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: block !important;
  text-align: center !important;
  transform: translateX(-50%) !important;
  z-index: 3 !important;
}
.logic-node-copy {
  position: absolute !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.logic-node-top .logic-node-copy {
  bottom: 20px !important;
}
.logic-node-bottom .logic-node-copy {
  top: 20px !important;
}
.logic-number,
.logic-node-top .logic-number,
.logic-node-bottom .logic-number {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  transform: translate(-50%, -50%) !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  z-index: 5 !important;
}
.logic-node-1 { left: 7.2% !important; top: 70.0% !important; right: auto !important; }
.logic-node-2 { left: 21.9% !important; top: 41.9% !important; right: auto !important; }
.logic-node-3 { left: 36.5% !important; top: 70.0% !important; right: auto !important; }
.logic-node-4 { left: 51.0% !important; top: 41.9% !important; right: auto !important; }
.logic-node-5 { left: 65.6% !important; top: 70.0% !important; right: auto !important; }
.logic-node-6 { left: 80.0% !important; top: 41.9% !important; right: auto !important; }
.logic-node-7 { left: 92.8% !important; top: 70.0% !important; right: auto !important; }
.logic-ribbon-shadow {
  stroke-width: 12px !important;
  opacity: 0.14 !important;
}
.logic-ribbon {
  stroke-width: 5px !important;
  opacity: 0.94 !important;
}
.logic-final-arrow {
  fill: none !important;
  stroke: #5da58e !important;
  stroke-width: 5px !important;
  stroke-linecap: round !important;
  opacity: 0.95 !important;
}
.logic-node strong {
  font-size: 0.91rem !important;
  line-height: 1.16 !important;
}
.logic-node small {
  margin-top: 5px !important;
  font-size: 0.73rem !important;
  line-height: 1.3 !important;
}
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 390px !important;
  }
  .tool-logic-nodes {
    height: 390px !important;
  }
  .logic-node {
    width: 144px !important;
  }
  .logic-node small {
    font-size: 0.69rem !important;
  }
  .logic-node-1 { left: 7.0% !important; }
  .logic-node-2 { left: 21.9% !important; }
  .logic-node-3 { left: 36.5% !important; }
  .logic-node-4 { left: 51.0% !important; }
  .logic-node-5 { left: 65.6% !important; }
  .logic-node-6 { left: 80.0% !important; }
  .logic-node-7 { left: 92.7% !important; }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
    padding: 20px !important;
  }
  .tool-logic-curve {
    display: none !important;
  }
  .tool-logic-nodes {
    height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding-left: 18px !important;
    border-left: 4px solid rgba(76, 147, 204, 0.28) !important;
  }
  .logic-node,
  .logic-node-top,
  .logic-node-bottom {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    column-gap: 12px !important;
    align-items: start !important;
    justify-items: start !important;
    text-align: left !important;
    padding: 0 !important;
    transform: none !important;
  }
  .logic-number,
  .logic-node-top .logic-number,
  .logic-node-bottom .logic-number {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    grid-row: 1 / span 2 !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
  }
  .logic-node-copy,
  .logic-node-top .logic-node-copy,
  .logic-node-bottom .logic-node-copy {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
  }
  .logic-node strong {
    font-size: 0.96rem !important;
  }
  .logic-node small {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }
  .logic-final-arrow {
    display: none !important;
  }
}


/* v302: smaller final arrowhead and safer 125% zoom spacing */
.tool-logic-visual {
  min-height: 382px !important;
}
.tool-logic-nodes {
  height: 382px !important;
}
.logic-node {
  width: 156px !important;
}
.logic-node-1 { left: 9.2% !important; top: 70.0% !important; right: auto !important; }
.logic-node-2 { left: 22.9% !important; top: 41.9% !important; right: auto !important; }
.logic-node-3 { left: 36.6% !important; top: 70.0% !important; right: auto !important; }
.logic-node-4 { left: 50.3% !important; top: 41.9% !important; right: auto !important; }
.logic-node-5 { left: 64.0% !important; top: 70.0% !important; right: auto !important; }
.logic-node-6 { left: 77.7% !important; top: 41.9% !important; right: auto !important; }
.logic-node-7 { left: 91.4% !important; top: 70.0% !important; right: auto !important; }
.logic-node strong {
  font-size: 0.9rem !important;
  line-height: 1.16 !important;
}
.logic-node small {
  font-size: 0.71rem !important;
  line-height: 1.28 !important;
}
.logic-ribbon-shadow {
  stroke-width: 11px !important;
  opacity: 0.13 !important;
}
.logic-ribbon {
  stroke-width: 4.8px !important;
}
.logic-final-arrow {
  fill: none !important;
  stroke: transparent !important;
  stroke-width: 0 !important;
}
.logic-final-arrow-head {
  fill: #5da58e !important;
  stroke: none !important;
  opacity: 0.95 !important;
}
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 398px !important;
  }
  .tool-logic-nodes {
    height: 398px !important;
  }
  .logic-node {
    width: 134px !important;
  }
  .logic-node strong {
    font-size: 0.84rem !important;
  }
  .logic-node small {
    font-size: 0.66rem !important;
    line-height: 1.24 !important;
  }
  .logic-node-1 { left: 9.0% !important; }
  .logic-node-2 { left: 22.7% !important; }
  .logic-node-3 { left: 36.5% !important; }
  .logic-node-4 { left: 50.3% !important; }
  .logic-node-5 { left: 64.1% !important; }
  .logic-node-6 { left: 77.9% !important; }
  .logic-node-7 { left: 91.2% !important; }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
  }
  .tool-logic-nodes {
    height: auto !important;
  }
  .logic-final-arrow-head {
    display: none !important;
  }
}


/* v303: simplify Home after tool-logic section and improve alignment/zoom behavior */
.tool-logic-head p {
  max-width: 860px !important;
}
.tool-logic-visual {
  min-height: 370px !important;
}
.tool-logic-nodes {
  height: 370px !important;
}
.logic-node {
  width: 164px !important;
}
.logic-node-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 4px !important;
}
.logic-node-top .logic-node-copy {
  bottom: 34px !important;
  min-height: 112px !important;
}
.logic-node-bottom .logic-node-copy {
  top: 34px !important;
  min-height: 112px !important;
}
.logic-node strong {
  font-size: 0.92rem !important;
  line-height: 1.14 !important;
  min-height: 2.15em !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}
.logic-node small {
  margin-top: 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.28 !important;
}
.logic-node-1 { left: 8.6% !important; }
.logic-node-2 { left: 22.2% !important; }
.logic-node-3 { left: 36.0% !important; }
.logic-node-4 { left: 50.0% !important; }
.logic-node-5 { left: 64.0% !important; }
.logic-node-6 { left: 78.0% !important; }
.logic-node-7 { left: 90.6% !important; }
.logic-final-arrow-head {
  display: none !important;
}
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 390px !important;
  }
  .tool-logic-nodes {
    height: 390px !important;
  }
  .logic-node {
    width: 136px !important;
  }
  .logic-node-top .logic-node-copy,
  .logic-node-bottom .logic-node-copy {
    min-height: 120px !important;
  }
  .logic-node strong {
    font-size: 0.84rem !important;
    min-height: 2.3em !important;
  }
  .logic-node small {
    font-size: 0.66rem !important;
    line-height: 1.24 !important;
  }
  .logic-node-1 { left: 8.4% !important; }
  .logic-node-2 { left: 22.0% !important; }
  .logic-node-3 { left: 35.8% !important; }
  .logic-node-4 { left: 49.9% !important; }
  .logic-node-5 { left: 64.0% !important; }
  .logic-node-6 { left: 78.1% !important; }
  .logic-node-7 { left: 90.0% !important; }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
  }
  .tool-logic-nodes {
    height: auto !important;
  }
  .logic-node strong {
    min-height: 0 !important;
    justify-content: flex-start !important;
  }
  .logic-node-top .logic-node-copy,
  .logic-node-bottom .logic-node-copy {
    min-height: 0 !important;
  }
}


/* v304: lower top-row labels so no text is clipped at 125% zoom */
.tool-logic-visual {
  min-height: 400px !important;
}
.tool-logic-nodes {
  height: 400px !important;
}
.logic-node-1,
.logic-node-3,
.logic-node-5,
.logic-node-7 {
  top: 70% !important;
}
.logic-node-2,
.logic-node-4,
.logic-node-6 {
  top: 41.9% !important;
}
.logic-node-top .logic-node-copy {
  bottom: 0 !important;
  min-height: 82px !important;
}
.logic-node-bottom .logic-node-copy {
  top: 30px !important;
  min-height: 92px !important;
}
.logic-node strong {
  min-height: 2.15em !important;
}
.logic-final-arrow,
.logic-final-arrow-head {
  display: none !important;
}
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 420px !important;
  }
  .tool-logic-nodes {
    height: 420px !important;
  }
  .logic-node-1,
  .logic-node-3,
  .logic-node-5,
  .logic-node-7 {
    top: 70% !important;
  }
  .logic-node-2,
  .logic-node-4,
  .logic-node-6 {
    top: 42% !important;
  }
  .logic-node-top .logic-node-copy {
    bottom: 0 !important;
    min-height: 80px !important;
  }
  .logic-node-bottom .logic-node-copy {
    top: 16px !important;
    min-height: 88px !important;
  }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
  }
  .tool-logic-nodes {
    height: auto !important;
  }
  .logic-node strong,
  .logic-node-top .logic-node-copy,
  .logic-node-bottom .logic-node-copy {
    min-height: 0 !important;
  }
}

/* v306: keep infographic step titles on a single line */
.logic-node {
  width: 198px !important;
}
.logic-node strong {
  white-space: nowrap !important;
  font-size: 0.86rem !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  min-height: 0 !important;
}
@media (max-width: 1220px) {
  .logic-node {
    width: 188px !important;
  }
  .logic-node strong {
    font-size: 0.82rem !important;
  }
}
@media (max-width: 980px) {
  .logic-node {
    width: auto !important;
  }
  .logic-node strong {
    white-space: normal !important;
  }
}


/* v309 final: tighten infographic vertical spacing and keep top/bottom padding balanced */
.tool-logic-visual {
  min-height: 338px !important;
}
.tool-logic-nodes {
  height: 338px !important;
}
.logic-node-1,
.logic-node-3,
.logic-node-5,
.logic-node-7 {
  top: 71.5% !important;
}
.logic-node-2,
.logic-node-4,
.logic-node-6 {
  top: 29.5% !important;
}
.logic-node-top .logic-node-copy {
  bottom: -8px !important;
  min-height: 72px !important;
}
.logic-node-bottom .logic-node-copy {
  top: 24px !important;
  min-height: 86px !important;
}
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 360px !important;
  }
  .tool-logic-nodes {
    height: 360px !important;
  }
  .logic-node-1,
  .logic-node-3,
  .logic-node-5,
  .logic-node-7 {
    top: 71.5% !important;
  }
  .logic-node-2,
  .logic-node-4,
  .logic-node-6 {
    top: 31% !important;
  }
  .logic-node-top .logic-node-copy {
    bottom: -6px !important;
    min-height: 74px !important;
  }
  .logic-node-bottom .logic-node-copy {
    top: 20px !important;
    min-height: 84px !important;
  }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
  }
  .tool-logic-nodes {
    height: auto !important;
  }
}


/* v310: align top labels directly above circles and place all circles back onto the curve */
.tool-logic-visual {
  min-height: 324px !important;
}
.tool-logic-nodes {
  height: 324px !important;
}
.logic-node {
  width: 198px !important;
}
.logic-node-1,
.logic-node-3,
.logic-node-5,
.logic-node-7 {
  top: 69.6% !important;
}
.logic-node-2,
.logic-node-4,
.logic-node-6 {
  top: 34.1% !important;
}
.logic-node-top .logic-number {
  margin-bottom: 3px !important;
}
.logic-node-top .logic-node-copy {
  bottom: 16px !important;
  min-height: 66px !important;
}
.logic-node-bottom .logic-node-copy {
  top: 20px !important;
  min-height: 82px !important;
}
.logic-node strong {
  min-height: 0 !important;
}
.logic-node small {
  margin-top: 4px !important;
}
@media (max-width: 1220px) {
  .tool-logic-visual {
    min-height: 344px !important;
  }
  .tool-logic-nodes {
    height: 344px !important;
  }
  .logic-node-1,
  .logic-node-3,
  .logic-node-5,
  .logic-node-7 {
    top: 69.8% !important;
  }
  .logic-node-2,
  .logic-node-4,
  .logic-node-6 {
    top: 34.8% !important;
  }
  .logic-node-top .logic-node-copy {
    bottom: 14px !important;
    min-height: 68px !important;
  }
  .logic-node-bottom .logic-node-copy {
    top: 18px !important;
    min-height: 80px !important;
  }
}
@media (max-width: 980px) {
  .tool-logic-visual {
    min-height: 0 !important;
  }
  .tool-logic-nodes {
    height: auto !important;
  }
}

/* v313: move only the connector and lower circles upward, leaving upper labels in place */
.tool-logic-curve {
  transform: translateY(-16px) !important;
}
.logic-node-1,
.logic-node-3,
.logic-node-5,
.logic-node-7 {
  top: 65.0% !important;
}
@media (max-width: 1220px) {
  .tool-logic-curve {
    transform: translateY(-14px) !important;
  }
  .logic-node-1,
  .logic-node-3,
  .logic-node-5,
  .logic-node-7 {
    top: 65.4% !important;
  }
}
@media (max-width: 980px) {
  .tool-logic-curve {
    transform: none !important;
  }
}

/* v314: nudge only the connector and lower circles upward; keep all text and upper circles fixed */
@media (min-width: 1221px) {
  .tool-logic-curve {
    transform: translateY(-22px) !important;
  }
  .logic-node-1,
  .logic-node-3,
  .logic-node-5,
  .logic-node-7 {
    top: calc(65% - 6px) !important;
  }
  .logic-node-bottom .logic-node-copy {
    top: 26px !important;
  }
}
@media (min-width: 981px) and (max-width: 1220px) {
  .tool-logic-curve {
    transform: translateY(-20px) !important;
  }
  .logic-node-1,
  .logic-node-3,
  .logic-node-5,
  .logic-node-7 {
    top: calc(65.4% - 6px) !important;
  }
  .logic-node-bottom .logic-node-copy {
    top: 24px !important;
  }
}

/* v316: detailed workflow information on circle hover; tap to open on touch devices */
.logic-info-trigger {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  font: inherit;
  line-height: 1;
  cursor: help;
  transition: transform .16s ease, box-shadow .16s ease, outline-color .16s ease;
}
.logic-info-trigger:focus-visible {
  outline: 3px solid rgba(18, 62, 116, .28);
  outline-offset: 3px;
}
.logic-tooltip {
  position: absolute;
  z-index: 30;
  width: min(330px, calc(100vw - 48px));
  padding: 15px 16px 16px;
  border: 1px solid rgba(183, 205, 228, .96);
  border-radius: 16px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 18px 38px rgba(15, 42, 68, .18);
  color: #3f566c;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.logic-tooltip strong {
  display: block !important;
  min-height: 0 !important;
  margin: 0 0 7px !important;
  color: var(--navy) !important;
  font-size: .92rem !important;
  line-height: 1.22 !important;
  letter-spacing: -.015em !important;
  white-space: normal !important;
  justify-content: flex-start !important;
}
.logic-tooltip p {
  margin: 0;
  color: #4f6880;
  font-size: .79rem;
  line-height: 1.47;
}
.logic-tooltip p strong {
  display: inline !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  font-weight: 750 !important;
}
.logic-node-bottom .logic-tooltip {
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 7px);
}
.logic-node-top .logic-tooltip {
  left: 50%;
  top: 34px;
  transform: translate(-50%, -7px);
}
.logic-node-1 .logic-tooltip {
  left: 0;
  transform: translate(0, 7px);
}
.logic-node-7 .logic-tooltip {
  left: auto;
  right: 0;
  transform: translate(0, 7px);
}
@media (hover: hover) and (pointer: fine) {
  .logic-info-trigger:hover {
    transform: translate(-50%, -50%) scale(1.07) !important;
    box-shadow: 0 12px 27px rgba(15, 42, 68, .22);
  }
  .logic-info-trigger:hover ~ .logic-tooltip,
  .logic-info-trigger:focus-visible ~ .logic-tooltip,
  .logic-tooltip:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .logic-node-bottom .logic-info-trigger:hover ~ .logic-tooltip,
  .logic-node-bottom .logic-info-trigger:focus-visible ~ .logic-tooltip,
  .logic-node-bottom .logic-tooltip:hover {
    transform: translate(-50%, 0);
  }
  .logic-node-top .logic-info-trigger:hover ~ .logic-tooltip,
  .logic-node-top .logic-info-trigger:focus-visible ~ .logic-tooltip,
  .logic-node-top .logic-tooltip:hover {
    transform: translate(-50%, 0);
  }
  .logic-node-1 .logic-info-trigger:hover ~ .logic-tooltip,
  .logic-node-1 .logic-info-trigger:focus-visible ~ .logic-tooltip,
  .logic-node-1 .logic-tooltip:hover,
  .logic-node-7 .logic-info-trigger:hover ~ .logic-tooltip,
  .logic-node-7 .logic-info-trigger:focus-visible ~ .logic-tooltip,
  .logic-node-7 .logic-tooltip:hover {
    transform: translate(0, 0);
  }
}
@media (max-width: 980px) {
  .logic-info-trigger {
    cursor: pointer;
  }
  .logic-tooltip,
  .logic-node-top .logic-tooltip,
  .logic-node-bottom .logic-tooltip,
  .logic-node-1 .logic-tooltip,
  .logic-node-7 .logic-tooltip {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-top: 10px;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .logic-node.is-open .logic-tooltip {
    display: block;
  }
  .logic-node.is-open .logic-info-trigger {
    box-shadow: 0 12px 27px rgba(15, 42, 68, .22);
  }
}

/* v317: keep workflow detail pop-ups above every other diagram label/node */
.logic-node:hover,
.logic-node:focus-within,
.logic-node.is-open {
  z-index: 100 !important;
}
.logic-tooltip {
  z-index: 1000 !important;
}

/* v330: reliable visible sequence 1 → 7, then two synchronized pulses.
   A short initial pause ensures circle 1 is the first pulse users actually see after page load. */
.logic-info-trigger::after,
.logic-info-trigger::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid rgba(18, 62, 116, 0.30);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

/* First phase: show the workflow direction, one circle at a time. */
.logic-info-trigger::after {
  animation: logicInviteRipple 26s ease-out infinite;
}
.logic-node-1 .logic-info-trigger::after { animation-delay: 1.60s; }
.logic-node-2 .logic-info-trigger::after { animation-delay: 2.75s; }
.logic-node-3 .logic-info-trigger::after { animation-delay: 3.90s; }
.logic-node-4 .logic-info-trigger::after { animation-delay: 5.05s; }
.logic-node-5 .logic-info-trigger::after { animation-delay: 6.20s; }
.logic-node-6 .logic-info-trigger::after { animation-delay: 7.35s; }
.logic-node-7 .logic-info-trigger::after { animation-delay: 8.50s; }

/* Second phase: after circle 7, all seven circles pulse together twice. */
.logic-info-trigger::before {
  animation: logicInviteAll 26s ease-out 1.60s infinite;
}

@keyframes logicInviteRipple {
  0%, 1.0% {
    opacity: 0;
    transform: scale(0.96);
  }
  2.0% {
    opacity: 0.56;
    transform: scale(1.02);
  }
  4.0% {
    opacity: 0;
    transform: scale(1.42);
  }
  100% {
    opacity: 0;
    transform: scale(1.42);
  }
}

@keyframes logicInviteAll {
  0%, 39.0% {
    opacity: 0;
    transform: scale(0.96);
  }
  40.0% {
    opacity: 0.54;
    transform: scale(1.02);
  }
  42.0% {
    opacity: 0;
    transform: scale(1.40);
  }
  44.0% {
    opacity: 0;
    transform: scale(0.96);
  }
  45.0% {
    opacity: 0.54;
    transform: scale(1.02);
  }
  47.0%, 100% {
    opacity: 0;
    transform: scale(1.40);
  }
}

@media (hover: hover) and (pointer: fine) {
  .logic-info-trigger:hover::after,
  .logic-info-trigger:hover::before,
  .logic-info-trigger:focus-visible::after,
  .logic-info-trigger:focus-visible::before {
    animation: none;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logic-info-trigger::after,
  .logic-info-trigger::before {
    animation: none !important;
    opacity: 0 !important;
  }
}


/* v327 — stable first paint for cross-page navigation.
   Uses the OS UI font immediately (no web-font swap) and reserves scrollbar width
   on every page so the centered site shell does not jump horizontally. */
html {
  overflow-y: scroll;
  background: #f7fafc;
}
.website-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}


/* v334: simplify the official-flowchart dialog heading and right-align its Quick guide control */
.quick-guide-redesign #open-quick-guide-flowchart {
  display: flex;
  width: fit-content;
  margin: 14px 0 0 auto;
}
.classification-flowchart-dialog .dialog-head h2 {
  margin: 0;
}


/* v338 — precise Quick guide flowchart-button alignment and site-gold treatment */
.quick-guide-redesign .classification-guide-head {
  max-width: none;
  width: 100%;
  margin-bottom: 18px;
}

.quick-guide-redesign .classification-guide-first-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 24px;
  align-items: start;
  width: 100%;
}

.quick-guide-redesign .classification-guide-first-row > p,
.quick-guide-redesign .classification-guide-continuum {
  margin: 0;
  color: #425f78;
}

.quick-guide-redesign .classification-guide-first-row > p {
  min-width: 0;
  max-width: none;
}

.quick-guide-redesign .classification-guide-continuum {
  max-width: 1120px;
  margin-top: 4px;
}

/* Exact website gold used in the wordmark/navigation. */
.quick-guide-redesign #open-quick-guide-flowchart {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: start;
  min-height: 40px;
  height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #b88b2e;
  border-radius: 999px;
  background: #b88b2e;
  color: #ffffff;
  box-shadow: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  vertical-align: top;
}

.quick-guide-redesign #open-quick-guide-flowchart > span {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
  transform: translateY(-0.5px);
}

.quick-guide-redesign #open-quick-guide-flowchart:hover,
.quick-guide-redesign #open-quick-guide-flowchart:focus-visible {
  background: #a9791e;
  border-color: #a9791e;
  color: #ffffff;
  transform: none;
}

.quick-guide-redesign #open-quick-guide-flowchart:focus-visible {
  outline: 3px solid rgba(184, 139, 46, .22);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .quick-guide-redesign .classification-guide-first-row {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .quick-guide-redesign #open-quick-guide-flowchart {
    justify-self: start;
  }
}


/* v339 — align the official flowchart button with the Classification logic kicker */
.quick-guide-redesign .classification-guide-kicker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 24px;
  align-items: center;
  width: 100%;
  margin: 0 0 12px;
}

.quick-guide-redesign .classification-guide-kicker-row .section-kicker {
  margin: 0;
}

.quick-guide-redesign .classification-guide-first-copy {
  margin: 0;
  max-width: 1120px;
  color: #425f78;
}

/* The button now belongs to the kicker row rather than the body-copy row. */
.quick-guide-redesign .classification-guide-first-row {
  display: contents;
}

@media (max-width: 900px) {
  .quick-guide-redesign .classification-guide-kicker-row {
    grid-template-columns: 1fr;
    row-gap: 12px;
    align-items: start;
  }

  .quick-guide-redesign #open-quick-guide-flowchart {
    justify-self: start;
  }
}


/* v342 — compact illustrative recommendation examples below Classification logic */
.quick-guide-redesign .guide-example-block {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid rgba(185, 204, 222, 0.58);
}

.quick-guide-redesign .guide-example-head {
  margin: 0 0 13px;
}

.quick-guide-redesign .guide-example-head .section-kicker {
  margin-bottom: 5px;
}

.quick-guide-redesign .guide-example-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.16rem, 1.6vw, 1.48rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.quick-guide-redesign .guide-example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-guide-redesign .guide-example-card {
  min-width: 0;
  padding: 15px 16px 16px;
  border: 1px solid rgba(185, 204, 222, 0.62);
  border-top-width: 3px;
  border-radius: 14px;
  background: #fbfdff;
  box-shadow: 0 5px 14px rgba(15, 42, 68, 0.035);
}

.quick-guide-redesign .guide-example-card > strong {
  display: block;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 800;
}

.quick-guide-redesign .guide-example-card > p {
  margin: 0;
  color: #425f78;
  font-size: 0.9rem;
  line-height: 1.52;
  font-style: italic;
}

.quick-guide-redesign .guide-example-grid .class-i { border-top-color: #2f6f68; }
.quick-guide-redesign .guide-example-grid .class-ii { border-top-color: #4b86a6; }
.quick-guide-redesign .guide-example-grid .class-iii { border-top-color: #b88b2e; }
.quick-guide-redesign .guide-example-grid .class-iv { border-top-color: #8d5b40; }

@media (max-width: 1180px) {
  .quick-guide-redesign .guide-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .quick-guide-redesign .guide-example-grid {
    grid-template-columns: 1fr;
  }
}


/* v344 — official recommendation examples from Table 1 */
.quick-guide-redesign .guide-example-source {
  margin: 5px 0 0;
  color: #60778c;
  font-size: 0.82rem;
  line-height: 1.45;
}

.quick-guide-redesign .guide-example-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-guide-redesign .guide-example-item {
  padding-top: 10px;
  border-top: 1px solid rgba(185, 204, 222, 0.45);
}

.quick-guide-redesign .guide-example-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.quick-guide-redesign .guide-example-item > span {
  display: block;
  margin-bottom: 5px;
  color: #60778c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-guide-redesign .guide-example-item > p {
  margin: 0;
  color: #274864;
  font-size: 0.88rem;
  line-height: 1.45;
  font-style: normal;
}

.quick-guide-redesign .guide-example-item > small {
  display: block;
  margin-top: 5px;
  color: #6f8395;
  font-size: 0.76rem;
  line-height: 1.4;
}

.quick-guide-redesign .guide-example-footnote {
  margin: 12px 0 0;
  color: #60778c;
  font-size: 0.78rem;
  line-height: 1.45;
}


/* v347 — informal save reminder */
.quick-guide-redesign .save-nudge {
  color: #6f8395;
  font-style: italic;
  white-space: nowrap;
}


/* v349 — Quick guide additions with matched alignment and card geometry */
.quick-guide-redesign .guide-prep-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-guide-redesign .guide-prep-grid article {
  height: 100%;
  box-sizing: border-box;
}

.quick-guide-redesign .guide-no-recommendation-card {
  width: calc((100% - 42px) / 4);
  box-sizing: border-box;
  margin: 14px auto 0;
  border-top-color: #7d8791;
  background: #fbfcfd;
}

.quick-guide-redesign .guide-no-recommendation-card > strong {
  color: var(--navy);
}

@media (max-width: 1180px) {
  .quick-guide-redesign .guide-prep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-guide-redesign .guide-no-recommendation-card {
    width: calc((100% - 14px) / 2);
  }
}

@media (max-width: 900px) {
  .quick-guide-redesign .guide-prep-grid {
    grid-template-columns: 1fr;
  }

  .quick-guide-redesign .guide-no-recommendation-card {
    width: 100%;
  }
}


/* v350 — horizontal No recommendation examples */
.quick-guide-redesign .guide-no-recommendation-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(185, 204, 222, 0.58);
}
.quick-guide-redesign .guide-no-recommendation-head {
  margin: 0 0 13px;
}
.quick-guide-redesign .guide-no-recommendation-head h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: clamp(1.16rem, 1.6vw, 1.48rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.quick-guide-redesign .guide-no-recommendation-head p {
  margin: 0;
  max-width: 920px;
  color: #425f78;
}
.quick-guide-redesign .guide-no-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quick-guide-redesign .guide-no-recommendation-card {
  width: auto !important;
  min-height: 100%;
  margin: 0 !important;
  box-sizing: border-box;
  padding: 15px 16px 16px;
  border-top-color: #7d8791;
  background: #fbfcfd;
}
.quick-guide-redesign .guide-no-recommendation-card > p {
  margin: 0;
  color: #274864;
  font-size: 0.88rem;
  line-height: 1.45;
}
.quick-guide-redesign .guide-no-recommendation-card > small {
  display: block;
  margin-top: 6px;
  color: #6f8395;
  font-size: 0.76rem;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .quick-guide-redesign .guide-no-recommendation-grid {
    grid-template-columns: 1fr;
  }
}


/* v351 — Preconditions Checklist popup in the Quick guide */
.quick-guide-redesign .guide-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  margin: 0 0 7px;
}

.quick-guide-redesign .guide-card-title-row h3 {
  margin: 0;
}

.quick-guide-redesign .guide-safeguards-section > .guide-explain-card.guide-explain-accent > h3 {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 7px;
}

.quick-guide-redesign #open-quick-guide-checklist {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  height: 34px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #b88b2e;
  border-radius: 999px;
  background: #b88b2e;
  color: #ffffff;
  box-shadow: none;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
}

.quick-guide-redesign #open-quick-guide-checklist > span {
  display: block;
  line-height: 1;
  transform: translateY(-.5px);
}

.quick-guide-redesign #open-quick-guide-checklist:hover,
.quick-guide-redesign #open-quick-guide-checklist:focus-visible {
  background: #a9791e;
  border-color: #a9791e;
  color: #ffffff;
}

.quick-guide-redesign #open-quick-guide-checklist:focus-visible {
  outline: 3px solid rgba(184, 139, 46, .22);
  outline-offset: 2px;
}

.quick-guide-checklist-dialog {
  width: min(1000px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.quick-guide-checklist-dialog .dialog-head h2 {
  margin: 0;
}

.quick-guide-checklist-dialog .dialog-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.quick-guide-checklist-body {
  padding: 4px 26px 26px;
}

.quick-guide-checklist-rule {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(184, 139, 46, .28);
  border-radius: 14px;
  background: #fffaf0;
  color: #425f78;
  font-size: .88rem;
  line-height: 1.5;
}

.quick-guide-checklist-rule strong {
  color: var(--navy);
}

.quick-guide-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.quick-guide-checklist-group {
  min-width: 0;
  padding: 16px 17px 17px;
  border: 1px solid rgba(185, 204, 222, .66);
  border-top: 3px solid #b88b2e;
  border-radius: 15px;
  background: #ffffff;
}

.quick-guide-checklist-group h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.3;
}

.quick-guide-checklist-questions {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-guide-checklist-questions li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 0;
}

.quick-guide-checklist-questions li > span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #eef4f8;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
}

.quick-guide-checklist-questions li > p {
  margin: 2px 0 0;
  color: #425f78;
  font-size: .84rem;
  line-height: 1.48;
}

@media (max-width: 760px) {
  .quick-guide-checklist-grid {
    grid-template-columns: 1fr;
  }

  .quick-guide-redesign .guide-card-title-row {
    align-items: flex-start;
  }
}


/* v352 — EtD is completed within the tool, not a prerequisite */
.quick-guide-redesign .guide-prep-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-guide-redesign .classification-guide-second-copy {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .quick-guide-redesign .guide-prep-grid {
    grid-template-columns: 1fr;
  }
}


/* v353 — copyright/licensing note for the Preconditions Checklist */
.quick-guide-checklist-source-note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(185, 204, 222, .58);
  color: #6f8395;
  font-size: .76rem;
  line-height: 1.48;
}

.quick-guide-checklist-source-note strong {
  color: #4f6880;
}


/* v354 — official FAQ as a compact final Quick guide section */
.quick-guide-redesign .guide-faq-section {
  padding: 21px 26px;
}

.quick-guide-redesign .guide-faq-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 24px;
  align-items: center;
}

.quick-guide-redesign .guide-faq-copy h2 {
  margin-bottom: 7px;
}

.quick-guide-redesign .guide-faq-copy > p:last-child {
  margin: 0;
  max-width: 820px;
}

.quick-guide-redesign #open-quick-guide-faq {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 40px;
  height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #b88b2e;
  border-radius: 999px;
  background: #b88b2e;
  color: #ffffff;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.quick-guide-redesign #open-quick-guide-faq > span {
  line-height: 1;
  transform: translateY(-.5px);
}

.quick-guide-redesign #open-quick-guide-faq:hover,
.quick-guide-redesign #open-quick-guide-faq:focus-visible {
  background: #a9791e;
  border-color: #a9791e;
  color: #ffffff;
}

.quick-guide-faq-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.quick-guide-faq-body {
  padding: 4px 26px 26px;
}

.quick-guide-faq-list {
  display: grid;
  gap: 9px;
}

.quick-guide-faq-list details {
  margin: 0;
  border: 1px solid rgba(185, 204, 222, .66);
  border-radius: 13px;
  background: #ffffff;
  overflow: hidden;
}

.quick-guide-faq-list summary {
  position: relative;
  padding: 14px 46px 14px 16px;
  color: var(--navy);
  font-size: .9rem;
  line-height: 1.42;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.quick-guide-faq-list summary::-webkit-details-marker {
  display: none;
}

.quick-guide-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #b88b2e;
  font-size: 1.2rem;
  font-weight: 700;
}

.quick-guide-faq-list details[open] summary::after {
  content: "−";
}

.quick-guide-faq-list details > div {
  padding: 0 16px 14px;
  border-top: 1px solid rgba(185, 204, 222, .42);
}

.quick-guide-faq-list details > div p {
  margin: 12px 0 0;
  color: #425f78;
  font-size: .86rem;
  line-height: 1.55;
}

.quick-guide-faq-source-note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(185, 204, 222, .58);
  color: #6f8395;
  font-size: .76rem;
  line-height: 1.48;
}

.quick-guide-faq-source-note strong {
  color: #4f6880;
}

@media (max-width: 760px) {
  .quick-guide-redesign .guide-faq-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quick-guide-redesign #open-quick-guide-faq {
    justify-self: start;
  }
}


/* v361 — question type moved from Context into the EtD decision phase */
.etd-question-type {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #d7e2e9;
}

.etd-question-type .field-grid {
  grid-template-columns: minmax(260px, 420px);
}

.etd-question-type-field select {
  min-height: 46px;
}

.etd-question-type .implementation-note {
  margin-top: 11px;
  font-size: .82rem;
  line-height: 1.5;
}

.etd-question-type .info-banner {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .etd-question-type .field-grid {
    grid-template-columns: 1fr;
  }
}


/* v362 — EtD copyright note */
.etd-copyright-note > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.etd-copyright-note .etd-reference-heading {
  display: block;
  margin-top: 14px;
}


/* v365 — explicit recommendation direction (for / against) */
.drafting-phrase-section .allowed-wording-examples {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.allowed-wording-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 2.35em;
  margin-bottom: 5px;
}

.drafting-phrase-section .allowed-wording-label-row .allowed-wording-label {
  min-height: 0;
  margin-bottom: 0;
}

.allowed-wording-direction {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #d6e0e7;
  border-radius: 999px;
  background: #fff;
  color: #526b7b;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}

.allowed-wording-example.selected .allowed-wording-direction {
  border-color: currentColor;
}

@media (max-width: 760px) {
  .drafting-phrase-section .allowed-wording-examples {
    grid-template-columns: 1fr;
  }
}


/* v367 — visually separate recommendation direction from recommendation type */
.drafting-phrase-section .allowed-wording-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.wording-direction-group {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dce4e9;
  border-radius: 15px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.wording-direction-for {
  border-color: #c6dbe8;
  background: #f3f8fb;
}

.wording-direction-against {
  border-color: #e1cbc6;
  background: #fbf6f4;
}

.wording-direction-group.has-selection {
  box-shadow: 0 0 0 2px rgba(31, 56, 74, .06);
}

.wording-direction-for.has-selection {
  border-color: #678fa8;
  background: #eef6fa;
}

.wording-direction-against.has-selection {
  border-color: #a97569;
  background: #faf1ee;
}

.wording-direction-group-head {
  display: grid;
  gap: 6px;
  min-height: 62px;
  margin-bottom: 10px;
  padding: 1px 2px 11px;
  border-bottom: 1px solid rgba(87, 108, 121, .13);
}

.wording-direction-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
}

.wording-direction-for .wording-direction-pill {
  color: #244f69;
  background: #dcecf5;
  border: 1px solid #bad4e3;
}

.wording-direction-against .wording-direction-pill {
  color: #74453c;
  background: #f0dfda;
  border: 1px solid #dcbdb5;
}

.wording-direction-description {
  color: #687a86;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.35;
}

.wording-direction-options {
  display: grid;
  gap: 10px;
}

.wording-direction-group .allowed-wording-example {
  background: rgba(255,255,255,.9);
}

.wording-direction-for .allowed-wording-example.wording-choice:hover {
  border-color: #9bbbcf;
  background: #fff;
}

.wording-direction-against .allowed-wording-example.wording-choice:hover {
  border-color: #caa198;
  background: #fff;
}

.wording-direction-for .allowed-wording-example.wording-choice.selected,
.allowed-wording-card[data-class="I"] .wording-direction-for .allowed-wording-example.wording-choice.selected,
.allowed-wording-card[data-class="II"] .wording-direction-for .allowed-wording-example.wording-choice.selected,
.allowed-wording-card[data-class="III"] .wording-direction-for .allowed-wording-example.wording-choice.selected,
.allowed-wording-card[data-class="IV"] .wording-direction-for .allowed-wording-example.wording-choice.selected {
  border-color: #4e7d99;
  background: #f7fbfd;
  box-shadow: 0 0 0 2px rgba(78,125,153,.13);
}

.wording-direction-against .allowed-wording-example.wording-choice.selected,
.allowed-wording-card[data-class="I"] .wording-direction-against .allowed-wording-example.wording-choice.selected,
.allowed-wording-card[data-class="II"] .wording-direction-against .allowed-wording-example.wording-choice.selected,
.allowed-wording-card[data-class="III"] .wording-direction-against .allowed-wording-example.wording-choice.selected,
.allowed-wording-card[data-class="IV"] .wording-direction-against .allowed-wording-example.wording-choice.selected {
  border-color: #996559;
  background: #fffaf8;
  box-shadow: 0 0 0 2px rgba(153,101,89,.12);
}

.allowed-wording-label-row,
.allowed-wording-direction {
  display: none;
}

.wording-direction-group .allowed-wording-label {
  margin-bottom: 8px;
  color: #586a76;
  font-size: .76rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .drafting-phrase-section .allowed-wording-examples {
    grid-template-columns: 1fr;
  }

  .wording-direction-group-head {
    min-height: 0;
  }
}


/* v368 — local IndexedDB recovery */
.recovery-status {
  flex: 0 0 auto;
  color: rgba(255,255,255,.70);
  font-size: .70rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.recovery-dialog {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #d5e0e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(19, 45, 67, .24);
}

.recovery-dialog::backdrop {
  background: rgba(17, 39, 57, .40);
}

.recovery-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 36px;
  height: 36px;
}

.recovery-dialog-close:hover,
.recovery-dialog-close:focus-visible {
  color: var(--navy);
  border-color: rgba(18, 62, 116, .38);
}

.recovery-dialog-body {
  padding: 24px 26px 22px;
}

.recovery-dialog-body h2 {
  margin: 3px 0 10px;
  color: var(--navy);
  font-size: 1.28rem;
}

.recovery-dialog-body > p:not(.section-kicker) {
  margin: 0;
  color: #536a7a;
  line-height: 1.55;
}

.recovery-dialog-note {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid #e4eaee;
  font-size: .82rem;
}

.recovery-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 720px) {
  .recovery-status {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .recovery-dialog-actions {
    flex-direction: column-reverse;
  }

  .recovery-dialog-actions .button {
    width: 100%;
  }
}


/* v369 — non-blocking 15-minute project-file save reminder */
.tool-save-statuses {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.save-reminder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 6px 4px 10px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.94);
  font-size: .70rem;
  font-weight: 650;
  line-height: 1.2;
}

.save-reminder button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #173f63;
  padding: 4px 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.save-reminder button:hover,
.save-reminder button:focus-visible {
  background: #fff;
  outline: 2px solid rgba(255,255,255,.35);
  outline-offset: 1px;
}

@media (max-width: 900px) {
  .tool-save-statuses {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .save-reminder {
    width: 100%;
    justify-content: space-between;
    border-radius: 12px;
  }
}


/* v372 — distinguish background recovery from the actual project-file save */
.recovery-status {
  color: rgba(255,255,255,.58);
  font-size: .66rem;
  font-weight: 500;
}

.save-reminder {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 750;
}


/* v373 — local recovery is silent during normal use; only the project-file reminder is visible. */
.recovery-status {
  display: none !important;
}


/* v382 — place Export Word below Continue/Modify without changing action/card dimensions */
.project-overview .overview-edit-export-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 35px;
}

.project-overview .overview-edit-export-stack .overview-export-action {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  margin: 0;
  white-space: nowrap;
}

.project-overview .overview-edit-export-stack [data-edit-rec] {
  margin: 0;
}


/* v383 — reduce visual emphasis of Continue while keeping Start primary */
.project-overview .recommendation-overview-actions [data-edit-rec].overview-start-action {
  border-color: #B8CCD8;
  background: #EEF4F7;
  color: var(--see-brand);
  box-shadow: none;
}

.project-overview .recommendation-overview-actions [data-edit-rec].overview-start-action:hover,
.project-overview .recommendation-overview-actions [data-edit-rec].overview-start-action:focus-visible {
  border-color: #9FB8C7;
  background: #E4EDF2;
  color: var(--see-brand-dark);
}


/* v384 — slightly stronger PICO hierarchy, still below Project */
.project-overview .research-question-block {
  border-color: rgba(12, 54, 72, .22);
  box-shadow: 0 8px 22px rgba(23, 50, 74, .065);
}

.project-overview .research-question-display-head {
  background: #DCE8ED;
  border-bottom-color: rgba(12, 54, 72, .17);
}

.project-overview .research-question-display-head::before {
  width: 4px;
}

.project-overview .overview-question-text {
  color: #123E55;
  font-size: .96rem;
  font-weight: 800;
}

.project-overview .overview-question-label {
  color: #765A29;
}

.project-overview .pico-order-number {
  border-color: rgba(12, 54, 72, .22);
  background: #F8FBFC;
  color: #123E55;
  font-weight: 850;
}


/* v387 — Live summary removed; active workflow uses the full available width */
.app-layout {
  grid-template-columns: minmax(0, 1fr);
}

.app-layout:not(.overview-mode):not(.setup-mode) .app-workspace {
  width: 100%;
  max-width: none;
}


/* v389 — reclaim the former Live summary column for the active workflow */
.app-layout:not(.overview-mode):not(.setup-mode) {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0;
}

.app-layout:not(.overview-mode):not(.setup-mode) .app-workspace,
.app-layout:not(.overview-mode):not(.setup-mode) #framework-form,
.app-layout:not(.overview-mode):not(.setup-mode) .step-panel.active {
  width: 100%;
  max-width: none;
}

.app-layout:not(.overview-mode):not(.setup-mode) .review-gate {
  width: 100%;
  max-width: none;
}


/* v390 — keep an open/hovered Home workflow tooltip above neighboring circles */
.tool-logic-visual .tool-logic-nodes .logic-node:hover,
.tool-logic-visual .tool-logic-nodes .logic-node:focus-within,
.tool-logic-visual .tool-logic-nodes .logic-node.is-open {
  z-index: 2000 !important;
}

.tool-logic-visual .tool-logic-nodes .logic-node:hover .logic-tooltip,
.tool-logic-visual .tool-logic-nodes .logic-node:focus-within .logic-tooltip,
.tool-logic-visual .tool-logic-nodes .logic-node.is-open .logic-tooltip {
  z-index: 2001 !important;
}


/* v392 — lower-tier heading for recommendation wording examples */
.quick-guide-redesign .guide-example-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 750;
  letter-spacing: -0.015em;
}


/* v394 — lower-tier heading for No recommendation in Quick guide */
.quick-guide-redesign .guide-no-recommendation-head h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 750;
  letter-spacing: -0.015em;
}


/* v396 — rebalance the Safeguards section after removing the second card */
.quick-guide-redesign .guide-safeguards-section {
  grid-template-columns: minmax(260px, .9fr) minmax(0, 2.1fr);
  align-items: stretch;
}

.quick-guide-redesign .guide-safeguards-section > .guide-section-head-wide {
  grid-column: auto;
  align-self: start;
  margin-bottom: 0;
}

.quick-guide-redesign .guide-safeguards-section > .guide-checklist-card {
  width: 100%;
}

@media (max-width: 900px) {
  .quick-guide-redesign .guide-safeguards-section {
    grid-template-columns: 1fr;
  }
}


/* v399 — make the Preconditions Checklist section match the FAQ layout (no inner card box) */
.quick-guide-redesign .guide-safeguards-section .guide-faq-row {
  align-items: center;
}

.quick-guide-redesign .guide-safeguards-section .guide-faq-copy {
  max-width: none;
}


/* v409 — collapse Quick Guide recommendation examples by default */
.quick-guide-redesign .guide-example-toggle-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.quick-guide-redesign #toggle-recommendation-examples {
  justify-self: start;
}

.quick-guide-redesign .guide-example-block.hidden {
  display: none !important;
}

/* v410 — match the recommendation examples toggle to existing Quick Guide action buttons */
.quick-guide-redesign #toggle-recommendation-examples {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  box-shadow: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.quick-guide-redesign #toggle-recommendation-examples > span {
  line-height: 1;
  transform: translateY(-.5px);
}

.quick-guide-redesign #toggle-recommendation-examples:hover,
.quick-guide-redesign #toggle-recommendation-examples:focus-visible {
  background: var(--navy-strong);
  border-color: var(--navy-strong);
  color: #ffffff;
}

.quick-guide-redesign #toggle-recommendation-examples:focus-visible {
  outline: 3px solid rgba(18, 62, 116, .22);
  outline-offset: 2px;
}

/* v418-v420: Project Overview export controls */
.project-overview .overview-toolbar-actions .overview-export-action {
  color:#000 !important;
}
.project-overview .overview-toolbar-actions .overview-export-action:hover,
.project-overview .overview-toolbar-actions .overview-export-action:focus-visible {
  color:#000 !important;
}
.table-one-action-wrap {
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.table-one-action-wrap .table-one-help {
  flex:0 0 auto;
  margin:0;
}


/* v422 — emphasize Project Overview manuscript/export actions */
.project-overview .overview-toolbar-actions .overview-export-action {
  min-height: 32px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(23, 50, 74, .18) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #000 !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
}
.project-overview .overview-toolbar-actions .overview-export-action:hover,
.project-overview .overview-toolbar-actions .overview-export-action:focus-visible {
  border-color: rgba(23, 50, 74, .34) !important;
  background: #f7fafc !important;
  color: #000 !important;
  text-decoration: none !important;
}

/* v423 — Project Overview export positioning and PICO export consistency */
.project-overview .overview-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

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

.project-overview .overview-toolbar-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Manuscript/export actions sit on the left and use the site gold treatment. */
.project-overview .overview-toolbar-actions .overview-export-action {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border: 1px solid #b88b2e !important;
  border-radius: 999px !important;
  background: #b88b2e !important;
  box-shadow: none !important;
  color: #000 !important;
  font-size: .70rem !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
}

.project-overview .overview-toolbar-actions .overview-export-action:hover,
.project-overview .overview-toolbar-actions .overview-export-action:focus-visible {
  border-color: #a9791e !important;
  background: #a9791e !important;
  color: #000 !important;
  text-decoration: none !important;
  outline: none;
}

/* Keep the creation action on the opposite side of the row. */
.project-overview .overview-toolbar-actions .overview-add-action {
  margin-left: auto;
}

/* Keep the PICO-level export consistently below the reorder/Modify/Delete row. */
.project-overview .research-question-actions {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: end;
  column-gap: 8px;
  row-gap: 5px;
}

.project-overview .research-question-actions .pico-export-action {
  grid-column: 1 / -1;
  justify-self: end;
  margin-left: 0;
  color: #000 !important;
  white-space: nowrap;
}

.project-overview .research-question-actions .pico-export-action:hover,
.project-overview .research-question-actions .pico-export-action:focus-visible {
  color: #000 !important;
}

@media (max-width: 900px) {
  .project-overview .overview-toolbar-actions {
    flex-wrap: wrap;
  }

  .project-overview .overview-toolbar-actions .overview-add-action {
    margin-left: 0;
  }

  .project-overview .research-question-actions {
    justify-content: start;
  }

  .project-overview .research-question-actions .pico-export-action {
    justify-self: start;
  }
}


/* v424 — white Project Overview export actions + hover-only Table 1 help */
.project-overview .overview-toolbar-actions .overview-export-action {
  border-color: rgba(23, 50, 74, .24) !important;
  background: #fff !important;
  color: #000 !important;
}
.project-overview .overview-toolbar-actions .overview-export-action:hover,
.project-overview .overview-toolbar-actions .overview-export-action:focus-visible {
  border-color: rgba(23, 50, 74, .42) !important;
  background: #f7fafc !important;
  color: #000 !important;
}

.table-one-action-wrap {
  position: relative;
}

.table-one-hover-help {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 390px;
  max-width: min(390px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(23, 50, 74, .16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 50, 74, .14);
  color: var(--navy);
  font-size: .86rem;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  z-index: 80;
}

#export-all-picos-hover-help {
  color: #000;
}

.table-one-action-wrap:hover .table-one-hover-help,
.table-one-action-wrap .overview-export-action:focus-visible + .table-one-hover-help {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 520px) {
  .table-one-hover-help {
    width: min(340px, calc(100vw - 32px));
  }
}


/* v429 — neutral project-open notice and tighter project/helper spacing */
.alert.alert-neutral {
  padding: 0;
  border: 0;
  background: transparent;
  color: #73808a;
  box-shadow: none;
  font-weight: 500;
}

.project-overview .project-name-display {
  margin-bottom: 0;
}

.project-overview .project-overview-helper {
  margin-top: -12px;
}

/* v430: keep the research-question capacity note visually attached to the Project card. */
.project-overview .project-overview-helper {
  margin-top: -12px;
}

/* v431 — reduce successful project-open status text by ~30%. */
.alert.alert-neutral {
  font-size: .63rem;
}


/* v432 — simplify Project Overview recommendation hierarchy.
   One white recommendation card only; no grey recommendations band or nested final box. */
.project-overview .research-question-recommendations {
  background: #fff;
  padding: 8px 9px 9px;
}

.project-overview .question-recommendations-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 6px;
  padding: 0 2px 6px;
  border-bottom: 0;
}

.project-overview .question-recommendations-actions {
  margin-left: auto;
}

.project-overview .overview-final-recommendation {
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.project-overview .overview-final-recommendation > span {
  display: block;
  margin-bottom: 3px;
}

.project-overview .recommendation-overview-main > small {
  display: none;
}

/* v433 — left-align recommendation controls and keep help popup within viewport. */
.project-overview .question-recommendations-head {
  justify-content: flex-start;
}

.project-overview .question-recommendations-actions {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.project-overview .draft-recommendation-help .term-help-popover {
  left: 0;
  right: auto;
  transform: none;
  width: min(330px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
}

@media (max-width: 700px) {
  .project-overview .draft-recommendation-help .term-help-popover {
    left: auto;
    right: 0;
    width: min(300px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }
}


/* v434 — always show full recommendation text in Project Overview. */
.project-overview .overview-final-recommendation .overview-final-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.project-overview .overview-final-toggle {
  display: none !important;
}

/* v435 — recommendation metadata rail + per-PICO recommendation reordering. */
.project-overview .recommendation-overview-row {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto 34px;
  gap: 12px;
  align-items: center;
  padding: 9px 10px 9px 0;
}

.project-overview .recommendation-overview-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 7px 10px 7px 12px;
  border-right: 1px solid rgba(23, 50, 74, .10);
}

.project-overview .recommendation-overview-meta h4 {
  margin: 0;
  color: var(--see-brand);
  font-size: .75rem;
  line-height: 1.25;
  font-weight: 800;
}

.project-overview .recommendation-overview-meta .recommendation-class-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  padding: 2px 6px;
  white-space: normal;
  line-height: 1.2;
}

.project-overview .recommendation-overview-main {
  min-width: 0;
  padding-left: 2px;
}

.project-overview .recommendation-overview-actions {
  align-self: center;
}

.project-overview .recommendation-order-actions {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding-left: 4px;
  border-left: 1px solid rgba(23, 50, 74, .08);
}

.project-overview .recommendation-move-action {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(23, 50, 74, .18);
  border-radius: 7px;
  background: #fff;
  color: var(--see-brand);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.project-overview .recommendation-move-action:hover,
.project-overview .recommendation-move-action:focus-visible {
  border-color: rgba(23, 50, 74, .36);
  background: #f7fafc;
  outline: none;
}

.project-overview .recommendation-move-action:disabled {
  opacity: .28;
  cursor: default;
  background: #fff;
}

@media (max-width: 900px) {
  .project-overview .recommendation-overview-row {
    grid-template-columns: 120px minmax(0, 1fr) 34px;
  }

  .project-overview .recommendation-overview-actions {
    grid-column: 2;
    justify-self: start;
  }

  .project-overview .recommendation-order-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 620px) {
  .project-overview .recommendation-overview-row {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
    padding-left: 10px;
  }

  .project-overview .recommendation-overview-meta {
    grid-column: 1;
    align-self: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 2px 0 4px;
    border-right: 0;
  }

  .project-overview .recommendation-overview-main,
  .project-overview .recommendation-overview-actions {
    grid-column: 1;
  }

  .project-overview .recommendation-order-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}


/* v436 — draft-first workflow and overview refinements. */
.project-overview .recommendations-toggle {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 2px !important;
  padding-right: 6px !important;
  color: var(--see-brand) !important;
}
.project-overview .recommendations-toggle:hover,
.project-overview .recommendations-toggle:focus-visible {
  background: transparent !important;
  text-decoration: underline;
}
.project-overview .recommendation-overview-meta h4 {
  font-size: 1rem;
  line-height: 1;
}
.project-overview .recommendation-class-chip.no-recommendation-chip {
  color: #5d6972;
  border-color: #c9d0d5;
  background: #fff;
}


/* v437 — compact, orderly recommendation metadata rail. */
.project-overview .recommendation-overview-row {
  grid-template-columns: 108px minmax(0, 1fr) auto 34px;
}

.project-overview .recommendation-overview-meta {
  align-items: center;
  gap: 7px;
  padding: 8px 8px 8px 10px;
}

.project-overview .recommendation-overview-meta h4 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid rgba(23, 50, 74, .18);
  border-radius: 9px;
  background: #fff;
  color: var(--see-brand);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
}

.project-overview .recommendation-overview-meta .recommendation-class-chip {
  justify-content: center;
  max-width: 94px;
  padding: 3px 6px;
  text-align: center;
  font-size: .67rem;
  line-height: 1.18;
}

@media (max-width: 900px) {
  .project-overview .recommendation-overview-row {
    grid-template-columns: 102px minmax(0, 1fr) 34px;
  }
}

@media (max-width: 620px) {
  .project-overview .recommendation-overview-meta {
    align-items: center;
  }
  .project-overview .recommendation-overview-meta h4 {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .project-overview .recommendation-overview-meta .recommendation-class-chip {
    max-width: none;
  }
}

/* v439 — normalize recommendation action shapes and de-emphasize Collapse. */
.project-overview .recommendation-overview-actions [data-edit-rec],
.project-overview .recommendation-overview-actions .overview-delete-action {
  min-height: 35px;
  padding: 7px 14px;
  border-radius: 8px !important;
}

.project-overview .recommendations-toggle {
  font-weight: 400 !important;
}


/* v440 — simplify class metadata and emphasize draft status. */
.project-overview .recommendation-overview-meta .recommendation-class-chip,
.project-overview .recommendation-class-chip.no-recommendation-chip {
  display: block;
  width: auto;
  max-width: 96px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #5d6972;
  text-align: center;
  font-size: .69rem;
  font-weight: 400 !important;
  line-height: 1.22;
}

.project-overview .overview-final-recommendation > .draft-status-label,
#output-recommendation-label.draft-status-label {
  color: #c46a22 !important;
}

.project-overview .overview-final-recommendation > .final-status-label,
#output-recommendation-label.final-status-label {
  color: #2f7d5b !important;
}

/* v442 — recommendation number status and finalized-edit confirmation support. */
.project-overview .recommendation-overview-meta h4.recommendation-number-badge.is-finalized {
  background: #2f7d5b !important;
  border-color: #2f7d5b !important;
  color: #ffffff !important;
}
.project-overview .recommendation-overview-meta h4.recommendation-number-badge.is-draft {
  background: #c46a22 !important;
  border-color: #c46a22 !important;
  color: #ffffff !important;
}


/* v449 — consistent workflow stage headings */
.app-workspace .workflow-stage-head {
  margin: 0 0 10px;
}

.app-workspace .workflow-stage-head .section-kicker {
  margin: 0 0 5px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .68rem;
  font-weight: 800;
}

.app-workspace .workflow-stage-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.18;
  font-weight: 800;
}

.app-workspace .review-gate .workflow-stage-head + p {
  margin-top: 0;
}

/* v461 — paired footer disclosures for Citation & licensing and Terms of Use. */
.footer-disclosure-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px 22px;
  width: 100%;
}
.footer-disclosure-pair .footer-disclosure {
  margin-top: 6px;
}
.footer-disclosure-pair .footer-disclosure-body {
  min-width: min(760px, calc(100vw - 64px));
}
.footer-terms-body .footer-disclosure-section {
  margin-top: 14px;
}
.footer-terms-body .footer-disclosure-section > p:first-child {
  margin-bottom: 5px;
}
.footer-disclosure-body a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
@media (max-width: 780px) {
  .footer-disclosure-pair {
    justify-content: flex-start;
    gap: 6px 18px;
  }
  .footer-disclosure-pair .footer-disclosure-body {
    min-width: min(100%, calc(100vw - 40px));
  }
}


/* v462 — keep footer disclosure controls fixed while either panel expands. */
.footer-disclosure-pair {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 52px;
}
.footer-disclosure-pair .footer-disclosure {
  width: 100%;
  margin-top: 0;
}
.footer-disclosure-pair .footer-disclosure + .footer-disclosure {
  margin-top: 0;
}
.footer-disclosure-pair .footer-disclosure > summary {
  position: absolute;
  top: 6px;
  width: max-content;
  margin: 0;
  white-space: nowrap;
}
.footer-disclosure-pair .footer-disclosure:first-child > summary {
  right: 152px;
}
.footer-disclosure-pair .footer-terms-disclosure > summary {
  right: 0;
}
.footer-disclosure-pair .footer-disclosure-body {
  width: 100%;
  min-width: 0;
}
@media (max-width: 780px) {
  .footer-disclosure-pair {
    padding-top: 94px;
  }
  .footer-disclosure-pair .footer-disclosure > summary {
    left: 0;
    right: auto;
  }
  .footer-disclosure-pair .footer-disclosure:first-child > summary {
    top: 6px;
  }
  .footer-disclosure-pair .footer-terms-disclosure > summary {
    top: 50px;
  }
}

/* v463 — footer legal disclosures open as modal pop-ups instead of expanding the page. */
.footer-disclosure-pair {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 22px;
  width: 100%;
  padding-top: 6px !important;
}
.footer-disclosure-pair .footer-disclosure,
.footer-disclosure-pair .footer-disclosure + .footer-disclosure {
  width: auto !important;
  margin: 0 !important;
  position: static;
}
.footer-disclosure-pair .footer-disclosure > summary {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap;
}
.footer-disclosure[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(10, 31, 51, .48);
  backdrop-filter: blur(2px);
}
.footer-disclosure-pair .footer-disclosure[open] > .footer-disclosure-body {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1200;
  transform: translate(-50%, -50%);
  width: min(900px, calc(100vw - 40px)) !important;
  max-width: 900px;
  max-height: min(82vh, 760px);
  overflow: auto;
  margin: 0 !important;
  padding: 26px 30px 28px;
  border: 1px solid #dbe2e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 31, 51, .24);
  text-align: left;
}
.footer-modal-head {
  position: sticky;
  top: -26px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -26px -30px 20px;
  padding: 22px 24px 16px 30px;
  border-bottom: 1px solid #e3e8ec;
  background: #fff;
}
.footer-modal-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 750;
}
.footer-modal-close {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d3dce3;
  border-radius: 50%;
  background: #fff;
  color: #536b80;
  font: inherit;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}
.footer-modal-close::before,
.footer-modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}
.footer-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.footer-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.footer-modal-close:hover,
.footer-modal-close:focus-visible {
  color: var(--navy);
  border-color: rgba(18, 62, 116, .38);
  outline: none;
}
body.footer-modal-open {
  overflow: hidden;
}
@media (max-width: 780px) {
  .footer-disclosure-pair {
    justify-content: flex-start;
    gap: 8px 18px;
  }
  .footer-disclosure-pair .footer-disclosure[open] > .footer-disclosure-body {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 24px);
    padding: 22px 20px 24px;
    border-radius: 14px;
  }
  .footer-modal-head {
    top: -22px;
    margin: -22px -20px 18px;
    padding: 18px 16px 14px 20px;
  }
}

/* v470 — consistent black text across informational help popups/tooltips */
.term-help-popover,
.issue-tooltip,
.logic-tooltip,
.logic-tooltip p,
.logic-tooltip strong,
.logic-tooltip p strong,
.table-one-hover-help {
  color: #000 !important;
}

/* v474 — explicit Safeguards tooltip title */
.logic-tooltip-title {
  display: block;
  margin: 0 0 7px;
  color: #000;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.015em;
}


/* v475 — prevent Home workflow hover cards from being clipped by the infographic container */
@media (min-width: 981px) {
  .tool-logic-visual {
    overflow: visible !important;
  }
}

/* v478 QA stabilization — canonical responsive overrides. */
@media (max-width: 980px) {
  .website-home-layout,
  .website-home-layout .website-home-copy,
  .website-problem-card,
  .website-action-row {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .website-home-copy h1,
  .website-home-copy p,
  .website-action-row .website-free-note {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .website-action-row .website-free-note {
    white-space: normal !important;
  }

  .tool-logic-visual,
  .tool-logic-nodes {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .tool-logic-visual .tool-logic-nodes .logic-node,
  .tool-logic-visual .tool-logic-nodes .logic-node-top,
  .tool-logic-visual .tool-logic-nodes .logic-node-bottom {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    box-sizing: border-box !important;
  }

  .tool-logic-visual .logic-node-copy,
  .tool-logic-visual .logic-node-top .logic-node-copy,
  .tool-logic-visual .logic-node-bottom .logic-node-copy {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .tool-logic-visual .logic-node strong,
  .tool-logic-visual .logic-node small {
    white-space: normal !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .table-one-hover-help {
    width: min(340px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
  }

  #table-one-hover-help {
    left: 0 !important;
    right: auto !important;
  }

  #export-all-picos-hover-help {
    left: auto !important;
    right: 0 !important;
  }
}

/* v478 QA stabilization — closed legal panels must not affect page geometry. */
.footer-disclosure:not([open]) > .footer-disclosure-body {
  display: none !important;
}

/* Keep the second-from-right Home workflow tooltip within the viewport on compact desktop widths. */
@media (min-width: 981px) and (max-width: 1220px) {
  .logic-node-6 .logic-tooltip {
    left: auto !important;
    right: 0 !important;
    transform: translate(0, -7px) !important;
  }
  .logic-node-6 .logic-info-trigger:hover ~ .logic-tooltip,
  .logic-node-6 .logic-info-trigger:focus-visible ~ .logic-tooltip,
  .logic-node-6 .logic-tooltip:hover {
    transform: translate(0, 0) !important;
  }
}

/* v479 — keep Step 4 visible for Class I without exposing the checklist. */
.drafting-checklist-not-required {
  padding: 13px 16px;
  border-color: #d4dbe2;
  background: #f5f7f9;
  box-shadow: none;
}
.drafting-not-required-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.drafting-checklist-not-required .section-kicker {
  margin-bottom: 2px;
}
.drafting-checklist-not-required h3 {
  margin: 0;
  color: #526675;
  font-size: 1rem;
}
.drafting-not-required-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #cbd4dc;
  border-radius: 999px;
  background: #fff;
  color: #637582;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .drafting-not-required-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}


/* v484-test — Recommendation Development Tool visual identity */
.website-brand-block .website-wordmark {
  display: flex;
  align-items: center;
  width: min(390px, 42vw);
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
}
.website-brand-block .website-logo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 980px) {
  .website-brand-block .website-wordmark {
    width: min(350px, 39vw);
  }
}
@media (max-width: 820px) {
  .website-brand-block .website-wordmark {
    width: min(390px, 100%);
  }
  .website-brand-block .website-logo-image {
    max-height: 58px;
  }
}
@media (max-width: 520px) {
  .website-brand-block .website-wordmark {
    width: min(330px, 100%);
  }
}


/* v493 — recommendation export mirrors the PICO export placement on its own lower-right line. */
.project-overview .recommendation-overview-row {
  grid-template-rows: auto auto;
}

.project-overview .recommendation-overview-meta,
.project-overview .recommendation-overview-main {
  grid-row: 1 / span 2;
}

.project-overview .recommendation-overview-actions {
  grid-column: 3;
  grid-row: 1;
}

.project-overview .recommendation-export-row {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  min-width: 0;
}

.project-overview .recommendation-order-actions {
  grid-column: 4;
  grid-row: 1 / span 2;
}

@media (max-width: 900px) {
  .project-overview .recommendation-overview-meta {
    grid-row: 1 / span 3;
  }

  .project-overview .recommendation-overview-main {
    grid-column: 2;
    grid-row: 1;
  }

  .project-overview .recommendation-overview-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .project-overview .recommendation-export-row {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }

  .project-overview .recommendation-order-actions {
    grid-column: 3;
    grid-row: 1 / span 3;
  }
}

@media (max-width: 620px) {
  .project-overview .recommendation-overview-meta {
    grid-column: 1;
    grid-row: 1;
  }

  .project-overview .recommendation-overview-main {
    grid-column: 1;
    grid-row: 2;
  }

  .project-overview .recommendation-overview-actions {
    grid-column: 1;
    grid-row: 3;
  }

  .project-overview .recommendation-export-row {
    grid-column: 1;
    grid-row: 4;
    justify-self: end;
    padding-right: 2px;
  }

  .project-overview .recommendation-order-actions {
    grid-column: 2;
    grid-row: 1 / span 4;
  }
}


/* v497 — PICO-centered Word export with recommendation selection. */
.pico-export-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid #d5e0e8;
  border-radius: 18px;
  background: #fff;
  color: #000;
  box-shadow: 0 24px 70px rgba(19, 45, 67, .24);
}
.pico-export-dialog::backdrop {
  background: rgba(17, 39, 57, .40);
}
.pico-export-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 16px;
  border-bottom: 1px solid rgba(18, 62, 116, .10);
}
.pico-export-dialog-head h2 {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 1.28rem;
}
.pico-export-dialog-head .icon-button {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}
.pico-export-dialog-body {
  padding: 18px 26px 22px;
}
.pico-export-question-label {
  margin: 0 0 16px;
  color: #000;
  line-height: 1.45;
}
.pico-export-select-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}
.pico-export-select-all input,
.pico-export-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
}
.pico-export-list {
  display: grid;
  gap: 9px;
  max-height: min(410px, 48vh);
  overflow: auto;
  padding: 1px 2px 2px;
}
.pico-export-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid rgba(18, 62, 116, .16);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.pico-export-option:hover {
  background: #f8fbfe;
  border-color: rgba(18, 62, 116, .28);
}
.pico-export-option input {
  margin-top: 2px;
}
.pico-export-option-copy {
  display: grid;
  grid-template-columns: auto auto 1fr;
  column-gap: 9px;
  row-gap: 4px;
  min-width: 0;
  color: #000;
}
.pico-export-option-copy strong {
  color: var(--navy);
}
.pico-export-option-status {
  align-self: center;
  color: #5d6972;
  font-size: .78rem;
  font-weight: 600;
}
.pico-export-option-preview {
  grid-column: 1 / -1;
  color: #000;
  line-height: 1.4;
}
.pico-export-dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}
.pico-export-dialog-actions .button:disabled {
  opacity: .45;
  cursor: default;
}

/* Recommendation rows return to their standard one-action layout now that export is PICO-level. */
.project-overview .recommendation-overview-row { grid-template-rows: auto; }
.project-overview .recommendation-overview-meta,
.project-overview .recommendation-overview-main,
.project-overview .recommendation-overview-actions,
.project-overview .recommendation-order-actions { grid-row: 1; }
.project-overview .recommendation-order-actions { grid-column: 4; }
@media (max-width: 900px) {
  .project-overview .recommendation-overview-meta { grid-row: 1 / span 2; }
  .project-overview .recommendation-overview-main { grid-column: 2; grid-row: 1; }
  .project-overview .recommendation-overview-actions { grid-column: 2; grid-row: 2; justify-self: start; }
  .project-overview .recommendation-order-actions { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 620px) {
  .project-overview .recommendation-overview-meta { grid-column: 1; grid-row: 1; }
  .project-overview .recommendation-overview-main { grid-column: 1; grid-row: 2; }
  .project-overview .recommendation-overview-actions { grid-column: 1; grid-row: 3; }
  .project-overview .recommendation-order-actions { grid-column: 2; grid-row: 1 / span 3; }
  .pico-export-dialog-head { padding: 20px 20px 14px; }
  .pico-export-dialog-body { padding: 16px 20px 20px; }
  .pico-export-dialog-actions .button { width: 100%; }
}

/* v498 — align PICO export label size with standard small controls and compact the recommendation-selection dialog. */
.project-overview .research-question-actions .pico-export-action {
  font-size: .92rem !important;
}
.pico-export-dialog-head h2 {
  font-size: 1.12rem;
}
.pico-export-dialog-body {
  font-size: .90rem;
}
.pico-export-option-status {
  font-size: .74rem;
}
.pico-export-dialog-actions .button {
  font-size: .92rem;
}

/* v499 — match PICO export control to the Project Overview export buttons. */
.project-overview .research-question-actions .pico-export-action {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: .70rem !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
}

/* v510: regular-weight informational text in Classification only. */
#drafting-classification .term-help-popover,
#drafting-classification .term-help-popover strong,
#drafting-classification .term-help-popover b {
  font-weight: 400;
}


/* v520 — plain beta status in the upper-right of the shared header */
.website-header .website-header-inner {
  position: relative;
}
.website-beta-text {
  position: absolute;
  top: 8px;
  right: 0;
  color: #475569;
  font-size: .8rem;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.25;
}
@media (max-width: 900px) {
  .website-header .website-header-inner { padding-top: 30px; }
}
