@import url('../real-benchmarking/styles.css?v=20261027_02');

/* ==========================================================================
   REAL PROJECT 02 — Readability & Typography Overhaul + Missing Layout Rules
   ========================================================================== */

:root {
  --bg: #F6F9F4;
  --panel: #F6F9F4;
  --panel-2: #F6F9F4;
  --line: rgba(36,59,53,0.117);
  --text: #243B35;
  --text-dim: #243B35;
  --muted: #4A605A;
  --green: #27765B;
  --cyan: #2B5CA6;
  --violet: #5D4AA8;
  --orange: #856000;
  --max: 1280px;
}

body {
  font-size: 16.5px;
  line-height: 1.76;
  letter-spacing: -0.012em;
  color: var(--text);
}

/* Topbar & Navigation Readability */
.topbar-inner {
  min-height: 76px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #D7EEDD, #D2E0FB);
  border-color: rgba(39,118,91,0.65);
  color: #243B35;
  font-size: 1rem;
  font-weight: 900;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand small {
  font-size: 0.86rem;
  color: #4A605A;
}

.button {
  min-height: 44px;
  padding: 11px 20px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 11px;
}

/* Hero Typography & Proportions */
.hero {
  padding: 68px 24px 52px;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 54px;
}

.hero::before {
  background: radial-gradient(circle at 18% 22%, rgba(39,118,91,0.242), transparent 38%),
              radial-gradient(circle at 82% 12%, rgba(43,92,166,0.22), transparent 32%);
}

.eyebrow,
.kicker,
.nav-label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  line-height: 1.26;
  letter-spacing: -0.025em;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, #27765B, #2B5CA6 58%, #5D4AA8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 22px 0 28px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #243B35;
}

.hero-meta {
  margin-top: 34px;
  padding-top: 22px;
}

.hero-meta strong {
  font-size: 1.24rem;
  font-weight: 800;
  color: #243B35;
}

.hero-meta span {
  font-size: 0.92rem;
  color: #4A605A;
  margin-top: 4px;
}

/* Start Card & Scenario Cards */
.start-card {
  padding: 30px;
}

.start-card h2 {
  font-size: 1.42rem;
  margin-bottom: 20px;
}

.save-state {
  font-size: 0.84rem;
  padding: 5px 13px;
}

.field-label {
  font-size: 0.94rem;
  color: #243B35;
}

.text-input {
  font-size: 1rem;
  padding: 13px 16px;
  margin: 8px 0 18px;
}

.scenario-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.scenario-card article {
  padding: 16px 18px;
  border: 1px solid rgba(36,59,53,0.126);
  border-radius: 14px;
  background: rgba(246,249,244,0.65);
}

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

.scenario-card strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: #243B35;
}

.scenario-card span {
  margin-top: 6px;
  color: #243B35;
  font-size: 0.92rem;
  line-height: 1.58;
}

.setup-output {
  margin-top: 18px;
  padding: 16px 18px;
}

.setup-output > span {
  font-size: 0.88rem;
  color: #4A605A;
}

.setup-output code {
  font-size: 0.96rem;
  margin: 6px 0 10px;
}

.setup-output button {
  font-size: 0.9rem;
  color: #2B5CA6;
}

/* Progress Shell & Mission Map */
.progress-shell {
  padding: 30px 32px;
  margin-bottom: 38px;
}

.progress-summary h2 {
  font-size: 1.48rem;
}

.progress-summary > strong {
  font-size: 1.8rem;
}

.mission-node > span {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}

.mission-node strong {
  font-size: 1.04rem;
  color: #243B35;
}

.mission-node small {
  font-size: 0.88rem;
  color: #4A605A;
  margin-top: 3px;
}

/* Workspace & Side Navigation */
.workspace {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  margin-bottom: 100px;
}

.workspace-nav {
  padding: 20px 14px;
}

.nav-label {
  font-size: 0.86rem;
  color: #4A605A;
}

.side-tab,
.side-link {
  min-height: 72px;
  padding: 14px 12px;
}

.side-tab > span:first-child,
.side-link > span:first-child {
  font-size: 0.95rem;
}

.side-tab strong,
.side-link strong {
  font-size: 1rem;
  color: #243B35;
}

.side-tab small,
.side-link small {
  font-size: 0.86rem;
  color: #4A605A;
  margin-top: 4px;
}

.side-tab em {
  font-size: 0.86rem;
  color: #4A605A;
}

/* Mission Header & Facts Bar */
.mission-header {
  min-height: 230px;
  padding: 38px 40px;
}

.mission-header h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.38rem);
  line-height: 1.28;
  margin-bottom: 14px;
}

.mission-header p:last-child {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #243B35;
  max-width: 720px;
}

.mission-score strong {
  font-size: 3.4rem;
}

.mission-score span {
  font-size: 0.88rem;
  color: #4A605A;
}

.mission-facts {
  padding: 20px 32px;
  background: #F6F9F4;
}

.mission-facts span {
  font-size: 0.88rem;
  color: #4A605A;
}

.mission-facts strong {
  font-size: 1.02rem;
  color: #243B35;
  margin-top: 5px;
}

/* Mission Content Blocks */
.content-block {
  padding: 36px 34px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
}

.section-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(43,92,166,0.132);
  border: 1px solid rgba(43,92,166,0.3);
  color: #2B5CA6;
  font-size: 0.94rem;
  font-weight: 800;
}

.content-block h3 {
  font-size: 1.38rem;
  line-height: 1.35;
  margin: 0 0 12px;
  color: #243B35;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #243B35;
  margin: 0 0 16px;
}

.evidence-note {
  margin-top: 14px;
  padding: 15px 18px;
  border-left: 4px solid rgba(133,96,0,0.55);
  border-radius: 10px;
  background: rgba(133,96,0,0.121);
  color: #856000;
  font-size: 1rem;
  line-height: 1.72;
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.decision-strip span {
  padding: 16px 14px;
  border: 1px solid rgba(36,59,53,0.126);
  border-radius: 12px;
  background: rgba(246,249,244,0.65);
  text-align: center;
  color: #243B35;
  font-size: 0.95rem;
  line-height: 1.6;
}

.decision-strip b {
  display: block;
  color: #2B5CA6;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.folder-tree {
  padding: 20px 22px;
  border: 1px solid rgba(43,92,166,0.32);
  border-radius: 14px;
  background: #F6F9F4;
  color: #243B35;
  overflow-x: auto;
  font: 500 0.95rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

/* Code Cards, Step Lists, Trace Rows, Document Grids */
.code-card > div {
  padding: 12px 18px;
}

.code-card > div span {
  font-size: 0.88rem;
  color: #4A605A;
  font-weight: 700;
}

.code-card button {
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(39,118,91,0.132);
}

.code-card pre {
  padding: 20px 22px;
  font-size: 0.96rem;
  line-height: 1.78;
  color: #243B35;
}

.step-list li {
  padding: 18px 0 18px 20px;
  grid-template-columns: 195px 1fr;
  gap: 16px;
  border-left: 3px solid rgba(43,92,166,0.55);
}

.step-list strong {
  font-size: 1.04rem;
  color: #243B35;
}

.step-list span {
  font-size: 1.02rem;
  line-height: 1.72;
  color: #243B35;
}

.loop span,
.trace-row span {
  padding: 11px 16px;
  font-size: 0.95rem;
  color: #243B35;
  background: rgba(43,92,166,0.088);
  border-color: rgba(43,92,166,0.28);
}

.document-grid a {
  padding: 20px;
  background: rgba(246,249,244,0.65);
}

.document-grid em {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.document-grid strong {
  font-size: 1.08rem;
  margin: 8px 0;
}

.document-grid span {
  font-size: 0.95rem;
  line-height: 1.62;
  color: #243B35;
}

.document-grid small {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2B5CA6;
}

.plain-list {
  font-size: 1.04rem;
  line-height: 1.82;
  color: #243B35;
}

.plain-list li {
  margin: 8px 0;
}

/* Pass Gate Checklists */
.check-card {
  padding: 32px 34px;
}

.check-head h3 {
  font-size: 1.38rem;
}

.check-head > strong {
  font-size: 1.3rem;
}

.check-grid {
  gap: 12px;
}

.check-grid label {
  min-height: 62px;
  padding: 14px 16px;
  align-items: center;
}

.check-grid input {
  width: 20px;
  height: 20px;
  margin-top: 0;
}

.check-grid span {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #243B35;
}

.mission-footer {
  padding: 22px 32px;
}

.mission-footer > a {
  font-size: 0.96rem;
  color: #2B5CA6;
}

/* Section Headings & Resource Grids (#project-files, #resources) */
.resource-section,
.rubric-section {
  max-width: var(--max);
  margin: 0 auto 90px;
  padding: 0 24px;
  scroll-margin-top: 96px;
}

.section-heading {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.28;
  margin: 0;
}

.section-desc {
  margin: 10px 0 0;
  color: #4A605A;
  font-size: 1.05rem;
  line-height: 1.72;
  max-width: 820px;
}

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

.resource-grid a {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.resource-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(39,118,91,0.55);
  background: var(--panel-2);
  box-shadow: 0 16px 36px rgba(36,59,53,0.122);
}

.resource-grid a.is-highlight-card {
  background: linear-gradient(145deg, rgba(39,118,91,0.154), rgba(43,92,166,0.11));
  border-color: rgba(39,118,91,0.48);
}

.badge-pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(43,92,166,0.132);
  border: 1px solid rgba(43,92,166,0.3);
  color: #2B5CA6;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.badge-pill.badge-live {
  background: rgba(39,118,91,0.198);
  border-color: rgba(39,118,91,0.5);
  color: #27765B;
}

.resource-grid strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: #243B35;
  line-height: 1.4;
}

.resource-grid small {
  font-size: 0.96rem;
  line-height: 1.62;
  color: #4A605A;
}

/* Quick Subfile Links Strip */
.subfile-strip {
  margin-top: 18px;
  padding: 18px 22px;
  background: rgba(246,249,244,0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subfile-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #243B35;
  margin-right: 4px;
}

.subfile-strip a {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(36,59,53,0.108);
  color: #243B35;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.subfile-strip a:hover {
  border-color: var(--cyan);
  background: rgba(43,92,166,0.154);
  color: #243B35;
}

/* Evaluation Rubric */
.rubric-grid article {
  padding: 24px;
}

.rubric-grid article > span {
  font-size: 0.9rem;
  font-weight: 800;
}

.rubric-grid h3 {
  font-size: 1.22rem;
  min-height: 38px;
  margin: 8px 0 16px;
}

.rubric-grid dl div {
  padding: 10px 0;
  gap: 10px;
}

.rubric-grid dt {
  font-size: 0.94rem;
  color: #243B35;
}

.rubric-grid dd {
  font-size: 0.95rem;
  color: #27765B;
  white-space: nowrap;
}

.pass-rule {
  margin-top: 18px;
  padding: 20px 24px;
  align-items: center;
}

.pass-rule strong {
  font-size: 1.02rem;
}

.pass-rule span {
  font-size: 0.96rem;
  color: #243B35;
}

.safety {
  margin-top: 16px;
  padding: 20px 24px;
}

.safety summary {
  font-size: 1.02rem;
}

.safety ul {
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.76;
  color: #243B35;
}

.safety li {
  margin: 6px 0;
}

/* Action Section (Save Progress) */
.action-section {
  max-width: var(--max);
  margin: 0 auto 90px;
  padding: 0 24px;
}

.action-inner {
  padding: 34px 38px;
  background: linear-gradient(145deg, rgba(246,249,244,0.96), rgba(246,249,244,0.92));
  border: 1px solid rgba(39,118,91,0.32);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.action-inner h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #243B35;
}

.action-inner p:last-child {
  margin: 0;
  font-size: 1.02rem;
  color: #4A605A;
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  font-size: 0.92rem;
  color: #4A605A;
}

/* Markdown Preview Modal */
.doc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(36,59,53,0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.doc-modal-backdrop[hidden] {
  display: none !important;
}

.doc-modal-dialog {
  width: min(980px, 100%);
  max-height: 88vh;
  background: #F6F9F4;
  border: 1px solid rgba(36,59,53,0.144);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(36,59,53,0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.doc-modal-header {
  padding: 20px 26px;
  background: #F6F9F4;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-modal-path {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  color: #2B5CA6;
  margin-bottom: 4px;
}

.doc-modal-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: #243B35;
}

.doc-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.doc-modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  color: #243B35;
  font-size: 1.02rem;
  line-height: 1.8;
}

.doc-modal-body h1,
.doc-modal-body h2,
.doc-modal-body h3 {
  color: #243B35;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  line-height: 1.35;
}

.doc-modal-body h1:first-child,
.doc-modal-body h2:first-child {
  margin-top: 0;
}

.doc-modal-body h1 {
  font-size: 1.65rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.doc-modal-body h2 {
  font-size: 1.32rem;
  color: #2B5CA6;
}

.doc-modal-body h3 {
  font-size: 1.12rem;
  color: #27765B;
}

.doc-modal-body pre {
  padding: 16px 18px;
  background: #F6F9F4;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  font: 0.92rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #243B35;
}

.doc-modal-body code {
  padding: 2px 6px;
  background: rgba(43,92,166,0.132);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: #2B5CA6;
}

.doc-modal-body pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.doc-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.doc-modal-body th,
.doc-modal-body td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.doc-modal-body th {
  background: rgba(255,255,255,0.73);
  color: #243B35;
  font-weight: 700;
}

/* ==========================================================================
   Visual Folder Tree (Main Page & Markdown Preview Modal)
   ========================================================================== */

.visual-folder-tree {
  margin-top: 14px;
  padding: 22px 24px;
  background: #F6F9F4;
  border: 1px solid rgba(43,92,166,0.32);
  border-radius: 16px;
}

.vtree-root {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(36,59,53,0.108);
}

.vtree-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.vtree-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #243B35;
}

.vtree-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(39,118,91,0.176);
  border: 1px solid rgba(39,118,91,0.45);
  color: #27765B;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.vtree-children {
  margin-top: 14px;
  padding-left: 18px;
  border-left: 2px solid rgba(43,92,166,0.35);
  display: grid;
  gap: 12px;
}

.vtree-item {
  position: relative;
  padding: 14px 18px;
  background: rgba(246,249,244,0.85);
  border: 1px solid rgba(36,59,53,0.099);
  border-radius: 12px;
}

.vtree-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 24px;
  width: 18px;
  height: 2px;
  background: rgba(43,92,166,0.385);
}

.vtree-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vtree-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.vtree-tag.tag-cyan {
  background: rgba(43,92,166,0.165);
  border: 1px solid rgba(43,92,166,0.4);
  color: #2B5CA6;
}

.vtree-tag.tag-green {
  background: rgba(39,118,91,0.165);
  border: 1px solid rgba(39,118,91,0.4);
  color: #27765B;
}

.vtree-tag.tag-violet {
  background: rgba(93,74,168,0.176);
  border: 1px solid rgba(93,74,168,0.42);
  color: #2B5CA6;
}

.vtree-tag.tag-orange {
  background: rgba(133,96,0,0.176);
  border: 1px solid rgba(133,96,0,0.42);
  color: #856000;
}

.vtree-desc {
  margin: 6px 0 0 28px !important;
  font-size: 0.96rem !important;
  line-height: 1.62 !important;
  color: #4A605A !important;
}

/* Markdown Modal Folder Tree (.md-folder-tree) */
.md-folder-tree {
  margin: 16px 0 22px;
  padding: 20px 22px;
  background: #F6F9F4;
  border: 1px solid rgba(43,92,166,0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.md-tree-root {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(36,59,53,0.108);
  flex-wrap: wrap;
}

.md-tree-root-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.08rem;
  font-weight: 800;
  color: #243B35;
}

.md-tree-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(39,118,91,0.176);
  border: 1px solid rgba(39,118,91,0.45);
  color: #27765B;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.md-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(246,249,244,0.65);
  border: 1px solid rgba(36,59,53,0.08);
  flex-wrap: wrap;
}

.md-tree-row.is-folder {
  background: rgba(255,255,255,0.72);
  border-color: rgba(43,92,166,0.25);
  margin-top: 4px;
}

.md-tree-row.depth-1 {
  margin-left: 12px;
}

.md-tree-row.depth-2 {
  margin-left: 42px;
}

.md-tree-row.depth-3 {
  margin-left: 72px;
}

.md-tree-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.md-tree-branch {
  width: 14px;
  height: 12px;
  border-left: 2px solid rgba(43,92,166,0.45);
  border-bottom: 2px solid rgba(43,92,166,0.45);
  border-bottom-left-radius: 4px;
  flex-shrink: 0;
  transform: translateY(-3px);
}

.md-tree-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.md-tree-folder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.98rem;
  font-weight: 800;
  color: #2B5CA6;
}

.md-tree-file {
  padding: 2px 8px !important;
  background: rgba(255,255,255,0.73) !important;
  border: 1px solid rgba(36,59,53,0.09) !important;
  border-radius: 6px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94rem !important;
  color: #243B35 !important;
}

.md-tree-comment {
  font-size: 0.9rem;
  color: #4A605A;
  background: rgba(255,255,255,0.67);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(36,59,53,0.08);
}

@media (max-width: 980px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .decision-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .scenario-card,
  .decision-strip,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .step-list li {
    grid-template-columns: 1fr;
  }
  .action-inner {
    padding: 24px 20px;
  }
}
