:root {
  color-scheme: light;
  --paper: #faf7f0;
  --paper-alt: #f3ede0;
  --card: #ffffff;
  --card-warm: #fffaf0;
  --ink: #1b2538;
  --ink-soft: #4e5666;
  --ink-muted: #6c7382;
  --line: #e2d9c8;
  --line-strong: #c8bca6;
  --accent: #b84a14;
  --accent-hover: #97390b;
  --accent-soft: #fff0e5;
  --ok: #14633a;
  --ok-bg: #ebf7f0;
  --ok-line: #b4dec4;
  --warn: #a6261c;
  --warn-bg: #fdf0ee;
  --warn-line: #eabcb7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(27, 37, 56, 0.05), 0 6px 20px rgba(27, 37, 56, 0.04);
  font-family: "Pretendard Variable", "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-link:hover { text-decoration: none; }
.brand-link img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #fff5e8;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  padding: 7px 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover {
  background: var(--paper-alt);
  color: var(--ink);
  text-decoration: none;
}
.nav a[aria-current="page"] {
  background: var(--ink);
  color: #ffffff;
}
.nav a.nav-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}
.nav a.nav-gold:hover {
  background: #fde68a;
  color: #78350f;
}
.nav a.nav-gold[aria-current="page"] {
  background: #b45309;
  color: #ffffff;
  border-color: #92400e;
}
.nav a.nav-admin {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.nav a.nav-admin:hover {
  background: #dbeafe;
  color: #1e3a8a;
}
.nav a.nav-admin[aria-current="page"] {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e40af;
}
.nav a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  margin-left: 4px;
}
.nav a.nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* ── Layout ── */
main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}
#tipDetailSection,
#tipDetailContent,
.tip-detail-body,
.tip-teaser-body {
  min-width: 0;
  max-width: 100%;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.section-sub {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.25; letter-spacing: -0.03em; }
h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.35; letter-spacing: -0.02em; }
h3 { margin: 18px 0 8px; font-size: 16px; line-height: 1.4; }
p { margin: 8px 0; color: var(--ink); }
.muted { color: var(--ink-soft); font-size: 14px; }
ul, ol { margin: 8px 0; padding-left: 20px; }
li + li { margin-top: 6px; }

/* ── Hero ── */
.hero {
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 750;
  margin-bottom: 12px;
}
.hero-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  width: 100%;
}
.btn-row:has(> :only-child) {
  grid-template-columns: 1fr;
}
.btn-row:has(> :nth-child(3)):not(:has(> :nth-child(4))) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
}
.btn-row:has(> :nth-child(4)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
}
.hero > .btn-row:not(:has(> :nth-child(3))),
.callout .btn-row:not(:has(> :nth-child(3))),
.tier-compare-body .btn-row:not(:has(> :nth-child(3))),
.viewer-banner-actions {
  max-width: 560px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-row > .btn,
.paywall-actions > .btn,
.tip-complete-btns > .btn,
.course-next-links > .btn {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  justify-content: center;
  text-align: center;
}
.viewer-banner-actions {
  margin-top: 10px;
}
.viewer-banner-actions > .btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--ink);
  color: #ffffff;
}
.btn-primary:hover { background: #2c3a54; }
.btn-accent {
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--paper-alt); border-color: var(--ink); }

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.fact-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fact-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
}

/* ── Diagram box ── */
.diagram-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.diagram-caption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* ── Grids & Cards ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.item-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item-card.white { background: #ffffff; }
.item-card h3 { margin: 0; font-size: 15.5px; }
.item-card p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.58; }

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon.ok { background: var(--ok-bg); color: var(--ok); }
.card-icon.ink { background: #e8edf5; color: var(--ink); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

/* ── Tables ── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tr:last-child td { border-bottom: none; }
th {
  background: var(--paper-alt);
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}
td strong { color: var(--ink); }

/* ── Badges / Pills ── */
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--paper-alt);
  color: var(--ink);
  white-space: nowrap;
}
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* ── Callouts ── */
.callout {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-warm);
  font-size: 14px;
}
.callout.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }

.em-action {
  color: var(--accent);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #e6ad87;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.em-warn { color: var(--warn); font-weight: 750; }
.em-ok { color: var(--ok); font-weight: 750; }

/* ── Code & Copy block ── */
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}
.code-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #1b2538;
  color: #f3f6fb;
  margin-top: 10px;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #131b2b;
  font-size: 12.5px;
  color: #c2ccde;
  font-weight: 600;
}
.copy-btn {
  background: #2b3954;
  color: #ffffff;
  border: 1px solid #415275;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.copy-btn:hover { background: #3b4d70; }
.code-box pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  background: transparent;
  border: none;
  color: #f3f6fb;
}

/* ── TOC chips ── */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.toc a {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  text-decoration: none;
}
.toc a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

/* ── FAQ accordion ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 14px 16px;
}
details.faq-item[open] { background: #ffffff; }
details.faq-item summary {
  font-weight: 750;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  margin-top: 24px;
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink-soft);
  font-weight: 600;
}
.footer-links a:hover { color: var(--ink); }

/* ── Legacy section compatibility (legal.html) ── */
main > section:not(.section-card) {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-split, .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-split { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero, .section-card { padding: 20px; }
  .topbar-inner { padding: 10px 14px; }
  .nav a { padding: 6px 10px; font-size: 13.5px; }
}

/* ── Auth Button & Status in Header ── */
.auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}
.auth-btn {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.auth-btn:hover { background: var(--paper-alt); border-color: var(--ink); }
.auth-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

/* ── Tips Board ── */
.board-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.board-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tier-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tier-tab {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.tier-tab.active, .tier-tab:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.board-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.board-select {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.board-search {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #ffffff;
  font-size: 14px;
  min-width: 200px;
  color: var(--ink);
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  width: auto;
  flex: 0 0 auto;
  box-sizing: border-box;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
}
.tier-badge.tier-free, .pill.tier-free, .series-tier.tier-free {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
}
.tier-badge.tier-bronze, .pill.tier-bronze, .series-tier.tier-bronze {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}
.tier-badge.tier-silver, .pill.tier-silver, .series-tier.tier-silver {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}
.tier-badge.tier-gold, .pill.tier-gold, .series-tier.tier-gold {
  background: #fff7ed;
  border-color: #ea580c;
  color: #9a3412;
}
.skill-pill {
  background: #ffffff;
  color: var(--ink-muted);
}
.tip-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.tip-list-head {
  display: grid;
  grid-template-columns: 42px 210px minmax(0, 1fr) 190px;
  gap: 12px;
  padding: 10px 16px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink-soft);
  align-items: center;
}
.tip-list-head span:last-child { text-align: right; }
.tip-row {
  display: grid;
  grid-template-columns: 42px 210px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
  text-align: left;
  background: #ffffff;
  width: 100%;
  font: inherit;
  color: inherit;
}
.tip-row:last-child { border-bottom: none; }
.tip-row:hover { background: var(--card-warm); }
.tip-row.is-done {
  background: #f8fbf9;
}
.tip-row.is-done .tip-title {
  color: var(--ink-soft);
}
.tip-check-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
}
.tip-check-cell:hover {
  background: var(--accent-soft);
}
.tip-check-input {
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
  cursor: pointer;
  margin: 0;
}
.tip-row-link {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.tip-row-link:hover .tip-title {
  color: var(--accent);
}
.tip-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.tip-save-roadmap-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.tip-save-roadmap-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.tip-save-roadmap-btn.has-saved {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}
.tip-done-pill {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.tip-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.tip-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.tip-title {
  font-size: 15.5px;
  font-weight: 750;
  color: var(--ink);
  margin: 0;
}
.tip-summary {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 3px 0 0;
}
.tip-date {
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Tip Detail & Lock Gate ── */
.tip-detail-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tip-detail-body {
  font-size: 15px;
  line-height: 1.78;
}
.tip-detail-body h3 { margin-top: 22px; font-size: 17px; }
.tip-detail-body h4 { margin-top: 16px; font-size: 15.5px; }
.tip-detail-body blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--card-warm);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
}
.tip-detail-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.tip-md-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 12px 0;
}
.tip-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}
.tip-detail-body table,
.tip-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}
.tip-detail-body th,
.tip-detail-body td,
.tip-table-wrap th,
.tip-table-wrap td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.tip-table-wrap th:first-child,
.tip-table-wrap td:first-child {
  min-width: 112px;
  white-space: nowrap;
}
.tip-detail-body th,
.tip-table-wrap th {
  background: var(--paper-alt);
  font-weight: 750;
}
.tip-detail-body tr:last-child td,
.tip-table-wrap tr:last-child td { border-bottom: none; }
.code-block-wrap {
  position: relative;
  margin: 12px 0;
}
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #f3f6fb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.code-copy-btn:hover { background: rgba(255, 255, 255, 0.24); }
.code-copy-btn.copied { background: var(--ok); border-color: var(--ok); }
.tip-detail-body pre {
  background: #1b2538;
  color: #f3f6fb;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}
pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ── 7단 상세 템플릿 (tip-preview 표준) ── */
.tip-detail-section {
  margin-top: 22px;
  min-width: 0;
  max-width: 100%;
}
.tip-detail-section h3.sec-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink);
}
.tip-disclaimer-inline {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.why-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.why-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.why-card h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
  color: var(--ink);
}
.why-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.pentagon-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-top: 18px;
}
.pentagon-head {
  text-align: center;
  margin-bottom: 14px;
}
.pentagon-title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.pentagon-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.pentagon-example {
  margin: 6px 0 0;
  font-size: 14.5px;
  font-weight: 750;
  color: #1d4ed8;
}
.pentagon-visual {
  position: relative;
  max-width: 520px;
  margin: 18px auto 14px;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pentagon-visual svg {
  width: 240px;
  height: 222px;
  display: block;
}
.pentagon-grid {
  fill: none;
  stroke: #d6cebe;
  stroke-width: 1.2;
}
.pentagon-spoke {
  stroke: #dfd8ca;
  stroke-width: 1;
}
.pentagon-shape {
  fill: rgba(184, 74, 20, 0.18);
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.pentagon-dot {
  fill: var(--accent);
  stroke: #ffffff;
  stroke-width: 1.5;
}
.pentagon-labels {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}
.pentagon-labels .axis-item {
  position: absolute;
  width: 132px;
  text-align: center;
  line-height: 1.32;
}
.pentagon-labels dt {
  font-size: 13.5px;
  font-weight: 800;
}
.pentagon-labels dd {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.axis-c0 { color: #1d4ed8; }
.axis-c1 { color: #15803d; }
.axis-c2 { color: #7e22ce; }
.axis-c3 { color: #b45309; }
.axis-c4 { color: #be185d; }
.pos-0 { top: 0; left: 50%; transform: translateX(-50%); }
.pos-1 { top: 82px; right: 2px; text-align: left !important; }
.pos-2 { bottom: 10px; right: 30px; }
.pos-3 { bottom: 10px; left: 30px; }
.pos-4 { top: 82px; left: 2px; text-align: right !important; }
.pentagon-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 14px 0 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pentagon-reasons div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pentagon-reasons dt { font-size: 13px; font-weight: 800; }
.pentagon-reasons dd { margin: 0; font-size: 13px; color: var(--ink-soft); }
.prep-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  font-size: 14px;
}
.prep-box strong { color: var(--accent-hover); }
.prep-list { margin: 6px 0 0; padding-left: 18px; color: var(--ink); }
.prep-list li + li { margin-top: 4px; }

/* ── 하단 함께 보기 / 다음 글 공통 강조 컴포넌트 ── */
.next-actions-box {
  margin-top: 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.05);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.next-actions-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.next-actions-head strong {
  font-size: 15.5px;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: -0.01em;
}
.next-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.next-action-item {
  background: var(--paper);
  border: 1px solid #f3e8d8;
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.next-action-item:hover {
  border-color: #fdba74;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.08);
}
.next-action-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.65;
  font-size: 14px;
  color: var(--ink);
}
.next-action-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  max-width: 100%;
  line-height: 1.4;
  overflow-wrap: anywhere;
  flex-shrink: 0;
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}
.next-action-badge.is-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  white-space: nowrap;
}
.next-action-badge.is-connect {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.next-action-text {
  flex: 1 1 220px;
  min-width: 0;
}
.next-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.next-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.next-action-chip:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  text-decoration: none;
}
.next-action-disclaimer {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #fed7aa;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.step-captures {
  margin-top: 12px;
}
.step-captures .capture-figure img {
  max-height: 520px;
  object-fit: contain;
  background: #0f172a;
}
details.beginner-prep {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 15px;
  background: var(--paper);
}
details.beginner-prep summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.beginner-prep-body { margin-top: 12px; font-size: 14px; }
.beginner-prep-body h4 { margin: 14px 0 8px; font-size: 14.5px; color: var(--ink); }
.beginner-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--warn);
}
.agent-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}
.agent-box h3 { margin: 0 0 8px; font-size: 18px; }
.model-notice {
  margin-top: 12px;
  padding: 11px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  font-size: 13.5px;
  color: #1e3a8a;
}
.ab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
  margin-top: 12px;
}
.ab-card {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 8px;
  align-items: start;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--line);
}
.ab-card.before { background: var(--warn-bg); border-color: var(--warn-line); }
.ab-card.after { background: var(--ok-bg); border-color: var(--ok-line); }
.ab-badge {
  display: inline-block;
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.ab-card.before .ab-badge { background: var(--warn); color: #ffffff; }
.ab-card.after .ab-badge { background: var(--ok); color: #ffffff; }
.ab-card h4 { margin: 0; font-size: 16px; line-height: 1.42; }
.ab-figure {
  margin: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(27, 37, 56, 0.1);
  background: #ffffff;
}
.ab-figure img { display: block; width: 100%; height: auto; }
.ab-card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); }
.ab-card li + li { margin-top: 5px; }
.visual-flow-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 18px;
  box-shadow: var(--shadow);
}
.visual-flow-card h3 { margin: 0 0 6px; font-size: 18px; }
.visual-flow-figure {
  margin: 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}
.visual-flow-figure img { display: block; width: 100%; height: auto; }
.visual-flow-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.vf-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.vf-item strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.vf-item p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.capture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.capture-figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.capture-grid .capture-figure:only-child {
  grid-column: 1 / -1;
}
.capture-figure img { display: block; width: 100%; height: auto; }
.capture-figure figcaption {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.flow-row.flow-row-4 {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
}
.flow-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  height: 100%;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
}
.flow-step strong { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink); }
.flow-step p { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.flow-arrow { font-size: 20px; font-weight: 900; color: var(--accent); text-align: center; }
.prompt-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.prompt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.prompt-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.prompt-why { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-soft); }
.copy-btn {
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 750;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}
.copy-btn:hover { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.copy-btn.copied { background: var(--ok); color: #ffffff; border-color: var(--ok); }
.prompt-pre {
  margin: 0;
  background: #1b2538;
  color: #f8fafc;
  padding: 16px 15px;
  border-radius: 9px;
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}
.step-check {
  margin: 10px 0 0;
  padding: 9px 12px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ok);
}
details.full-prompt-wrap {
  margin-top: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fffdf9;
}
details.full-prompt-wrap summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
}
.paywall-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  min-height: 300px;
}
.paywall-mosaic {
  position: absolute;
  inset: 0;
  padding: 24px;
  filter: blur(7px);
  opacity: 0.45;
  user-select: none;
  pointer-events: none;
  display: grid;
  align-content: start;
  gap: 12px;
}
.pm-line {
  height: 14px;
  border-radius: 6px;
  background: #cbd5e1;
}
.pm-line.lg { width: 88%; }
.pm-line.md { width: 64%; }
.pm-line.sm { width: 42%; }
.pm-block {
  height: 68px;
  border-radius: 10px;
  background: #1e293b;
}
.paywall-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.94) 45%);
}
.paywall-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.paywall-card .tier-badge {
  width: auto;
  flex: 0 0 auto;
  padding: 4px 12px;
  font-size: 12.5px;
}
.paywall-card h3 { margin: 4px 0 8px; font-size: 18px; }
.paywall-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.paywall-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin-top: 16px;
}
.paywall-actions:has(> :nth-child(3)):not(:has(> :nth-child(4))) {
  grid-template-columns: 1fr;
}
.paywall-actions:has(> :nth-child(5)) > :last-child {
  grid-column: 1 / -1;
}
.series-box {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.series-box h3 { margin: 0 0 4px; font-size: 18px; }
.series-sub { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.series-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.series-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.series-item:last-child { border-bottom: none; }
.series-item.current {
  background: var(--accent-soft);
  font-weight: 750;
}
.series-item.recommended {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  transition: background 0.15s ease;
}
.series-item.recommended:hover {
  background: #dbeafe;
}
.series-item.recommended .series-link-btn {
  color: #1e40af;
  font-weight: 700;
}
.series-rec-badge {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #2563eb;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}
.series-num {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-muted);
  width: 24px;
  flex: 0 0 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.series-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  flex: 0 0 62px;
  box-sizing: border-box;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 0;
  border-radius: 999px;
  white-space: nowrap;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
}
.series-title-current { flex: 1; min-width: 0; }
.series-now {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.series-link-btn {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.series-link-btn:hover { color: var(--accent); text-decoration: underline; }
.series-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.pager-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.pager-btn:hover { background: #ffffff; border-color: var(--accent); }
.pager-btn.next { text-align: right; }
.pager-dir { font-size: 12px; font-weight: 750; color: var(--ink-muted); }
.pager-title { font-size: 14px; font-weight: 750; color: var(--ink); }
.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* ── Admin Panel ── */
.admin-panel {
  background: #f6f9ff;
  border: 1.5px solid #bfd1ef;
  border-radius: 14px;
  padding: 22px;
}
.admin-panel-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
}
.member-list-box {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #d5e1f4;
  border-radius: 12px;
  padding: 16px;
}
.member-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
}
.member-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13.5px;
}
.member-list li.member-empty {
  justify-content: center;
  color: var(--ink-muted);
  background: #ffffff;
  text-align: center;
  line-height: 1.55;
  padding: 14px;
}
.member-list li.member-group-title {
  background: transparent;
  border: none;
  padding: 8px 4px 2px;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink-soft);
  justify-content: flex-start;
}
.member-list li.member-group-title:first-child { margin-top: 0; }
.member-row-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.member-level {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ── Admin Member & Daily Real-time Usage Stats ── */
.admin-stats-box {
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #d5e1f4;
  border-radius: 12px;
  padding: 18px;
}
.stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.stats-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stats-controls select {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #ffffff;
  color: var(--ink);
}
.stats-auto-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
  cursor: pointer;
}
.stats-auto-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}
.live-dot, .online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 5px;
  vertical-align: middle;
}
.live-dot {
  animation: matoPulse 1.8s infinite;
}
@keyframes matoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.stats-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stats-kpi.accent { background: var(--accent-soft); border-color: #ebc2a8; }
.stats-kpi.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.stats-kpi-label {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 650;
}
.stats-kpi-value {
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats-subhead {
  margin: 18px 0 8px;
  font-size: 14px;
  color: var(--ink);
}
.stats-daily-list, .stats-account-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.stats-daily-list { max-height: 280px; overflow-y: auto; }
.stats-account-list { max-height: 380px; overflow-y: auto; }
.stats-daily-row {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.stats-daily-row:hover {
  background: var(--card-warm);
  border-color: var(--line-strong);
}
.stats-daily-row.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.stats-daily-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.stats-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.stats-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(27, 37, 56, 0.08);
  margin-top: 7px;
  overflow: hidden;
}
.stats-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}
.stats-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.stats-account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.stats-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stats-filter-pills .filter-tab {
  padding: 5px 11px;
  font-size: 12.5px;
}
.stats-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.stats-account-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats-account-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}
.stats-account-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stats-account-calls {
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.stats-account-calls strong {
  display: block;
  font-size: 16px;
  color: var(--accent);
}
.stats-account-calls span {
  font-size: 11.5px;
  color: var(--ink-muted);
}
.stats-account-empty {
  padding: 16px;
  text-align: center;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13.5px;
}
.roster-box textarea,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #ffffff;
  color: var(--ink);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.form-field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 44, 0.55);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.modal-card.wide { max-width: 720px; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}
.demo-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
.demo-role-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  text-align: left;
}
.demo-role-btn:hover { background: var(--accent-soft); border-color: var(--accent); }

@media (max-width: 720px) {
  .tip-list-head { display: none; }
  .tip-row { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 10px; padding: 13px 12px; align-items: start; }
  .tip-check-cell { grid-row: 1 / span 3; margin-top: 2px; }
  .tip-row-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; justify-content: space-between; width: 100%; }
  .tip-date { text-align: left; }
  .quick-guide-grid { grid-template-columns: 1fr; }
  .board-mode-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .board-mode-btn { width: 100%; justify-content: center; text-align: center; font-size: 13px; padding: 9px 8px; }
  .roster-grid, .form-row-2, .form-row-3, .series-pager { grid-template-columns: 1fr; }
  .pager-btn.next { text-align: left; }
  .stats-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-account-toolbar .board-search, .board-controls .board-search, .gold-filter-bar .board-search { width: 100%; min-width: 0; }
  .pentagon-visual { min-height: auto; flex-direction: column; }
  .pentagon-labels {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    width: 100%;
  }
  .pentagon-labels .axis-item {
    position: static;
    width: auto;
    transform: none;
    text-align: left !important;
    background: var(--paper);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
  }
  .pentagon-reasons, .ab-grid, .why-grid, .visual-flow-items, .capture-grid { grid-template-columns: 1fr; row-gap: 12px; }
  .ab-card { display: block; grid-row: auto; }
  .ab-badge { margin-bottom: 8px; }
  .ab-card h4 { margin-bottom: 8px; }
  .ab-figure { margin-bottom: 10px; }
  .flow-row, .flow-row.flow-row-4 { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .tip-table-wrap th:first-child,
  .tip-table-wrap td:first-child { min-width: auto; white-space: nowrap; }
  .tip-table-wrap th {
    padding: 9px 10px;
    font-size: 13px;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .tip-table-wrap td {
    padding: 9px 10px;
    font-size: 13px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .tip-table-wrap:has(th:nth-child(4)) table { min-width: 600px; }
  .tip-table-wrap code { word-break: break-all; }
  .prompt-card { padding: 13px 12px; }
  .prompt-pre { padding: 14px 12px; font-size: 13px; line-height: 1.72; }
  .next-actions-box { padding: 14px 13px; }
  .next-action-row { flex-direction: column; gap: 6px; }
  .next-action-text { flex: 0 1 auto; width: 100%; }
  .next-action-chip { max-width: 100%; white-space: normal; line-height: 1.45; }
  .roadmap-erd-grid { grid-template-columns: 1fr; }
}

/* ── Admin 글감 ERD 로드맵 보드 ── */
.admin-roadmap-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #cfe0fb;
}
.roadmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.roadmap-head > div:first-child {
  flex: 1 1 280px;
  min-width: 0;
}
.roadmap-head .btn-row {
  flex: 0 1 280px;
  max-width: 280px;
  width: 100%;
  margin: 0;
}
.roadmap-iframe {
  width: 100%;
  height: min(78vh, 780px);
  min-height: 580px;
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f4f6fa;
  display: block;
}
.admin-roadmap-box.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  margin: 0;
  padding: 12px;
  background: #ffffff;
  border: 0;
  display: flex;
  flex-direction: column;
}
.admin-roadmap-box.is-fullscreen .roadmap-iframe {
  flex: 1;
  height: auto;
  min-height: 0;
}
.roadmap-add-form {
  margin-top: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}
.roadmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.roadmap-erd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.roadmap-col {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.roadmap-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #1b2538;
  color: #ffffff;
}
.roadmap-col-head strong { font-size: 14.5px; }
.roadmap-col-head .rm-cat-code {
  margin-left: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.roadmap-col-head .pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 11.5px;
}
.roadmap-col-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
}
.roadmap-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.roadmap-item.is-done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.roadmap-item.is-queued {
  border-color: var(--accent);
  background: #fff7ed;
}
.roadmap-item.is-dirty {
  box-shadow: 0 0 0 2px rgba(184, 74, 20, 0.25);
}
.roadmap-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.roadmap-checks {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rm-chk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
  cursor: pointer;
}
.rm-chk.queue { color: var(--accent); }
.roadmap-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rm-order-input {
  width: 44px;
  padding: 2px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 12px;
  text-align: center;
  background: #ffffff;
}
.rm-mini-select {
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #ffffff;
  color: var(--ink);
}
.rm-del-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.rm-del-btn:hover { color: var(--warn); }
.roadmap-item-title {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.45;
  word-break: keep-all;
}
.roadmap-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
}
.rm-slug {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(15, 23, 42, 0.06);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--ink-soft);
}
.rm-pub-link {
  border: 1px solid var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.rm-pub-link:hover { text-decoration: underline; }
.roadmap-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rm-link-chip {
  font-size: 11px;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.roadmap-empty {
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ── Prototype UX: Mode Tabs · Course · My Roadmap · Quick Guide ── */
.board-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.board-mode-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.14s ease;
}
@media (hover: hover) and (pointer: fine) {
  .board-mode-btn:not(.active):hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--card-warm);
  }
}
.board-mode-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.22);
}

.course-banner {
  background: linear-gradient(135deg, #fffaf3 0%, #ffffff 100%);
  border: 1px solid #f3d5a5;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.course-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.course-banner h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--ink);
}
.course-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.course-progress-stat {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
  background: #fffbeb;
  border: 1px solid #fcd34d;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.course-progress-bar {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: #f1e6d2;
  overflow: hidden;
}
.course-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b 0%, #16a34a 100%);
  transition: width 0.25s ease;
}
.course-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.course-stage-head:first-child {
  border-top: none;
}
.course-stage-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.course-stage-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.course-stage-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  white-space: nowrap;
}

.my-roadmap-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.roadmap-create-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.roadmap-create-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  background: #ffffff;
}
.roadmap-folder-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.roadmap-folder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.roadmap-folder-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
.roadmap-folder-del {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
}
.roadmap-folder-del:hover {
  opacity: 1;
}

/* 최상단 초보자 친절 가이드 4칸 */
.quick-guide-box {
  background: linear-gradient(135deg, #fffdf9 0%, #fff7eb 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 22px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}
.quick-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.quick-guide-head strong {
  font-size: 16px;
  color: var(--ink);
}
.quick-guide-sub {
  font-size: 12.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
}
.quick-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-guide-item {
  background: #ffffff;
  border: 1px solid #f3e2c3;
  border-radius: 12px;
  padding: 12px 14px;
}
.quick-guide-item.is-effect {
  border-color: #bbf7d0;
  background: #f6fef9;
}
.quick-guide-item.is-skip {
  border-color: #e2e8f0;
  background: #f8fafc;
}
.qg-label {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 4px;
}
.quick-guide-item.is-effect .qg-label {
  color: #15803d;
}
.quick-guide-item.is-skip .qg-label {
  color: #475569;
}
.quick-guide-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  word-break: keep-all;
}

/* 상세 페이지 하단 완료 체크 & 면책 */
.board-toolbar[hidden],
#courseBannerBox[hidden],
#myRoadmapPanel[hidden],
#detailAdminActions[hidden] {
  display: none !important;
}
.tip-complete-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 22px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff3d6 100%);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.14);
}
.tip-complete-bar.is-done {
  border-color: #16a34a;
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.14);
}
.tip-complete-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
  background: #fde68a;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.tip-complete-bar.is-done .tip-complete-eyebrow {
  color: #15803d;
  background: #bbf7d0;
}
.tip-complete-info {
  flex: 1 1 260px;
  min-width: 0;
}
.tip-complete-info strong {
  display: block;
  font-size: 16.5px;
  font-weight: 850;
  color: var(--ink);
}
.tip-complete-info span {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 3px;
}
.tip-complete-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  flex: 1 1 380px;
  width: 100%;
}
.tip-complete-btns:has(> :nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tip-complete-btn {
  border-width: 1.5px;
  border-color: #d97706;
  background: #ffffff;
  color: #92400e;
  font-weight: 800;
}
.tip-complete-btn:hover {
  background: #fef3c7;
  border-color: #b45309;
}
.tip-complete-btn.is-done {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}
.series-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.series-box-head h3 {
  margin: 0;
}
.series-progress-pill {
  font-size: 12.5px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.series-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
}
.series-check-label:hover {
  background: var(--accent-soft);
}
.series-item.is-done {
  background: #f4fbf6;
}
.series-item.is-done .series-link-btn {
  color: var(--ink-soft);
}
.series-done-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  white-space: nowrap;
  flex-shrink: 0;
}
.tip-disclaimer-bottom {
  margin: 22px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.roadmap-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.roadmap-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .roadmap-picker-row:hover {
    border-color: var(--accent);
    background: var(--card-warm);
  }
}

/* 8개 상황별 코스 선택 카드 그리드 */
.course-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.course-pick-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.14s ease;
}
@media (hover: hover) and (pointer: fine) {
  .course-pick-card:not(.active):hover {
    border-color: #d6b892;
    background: #fffcf7;
  }
}
.course-pick-card.active {
  border-color: var(--accent);
  background: #fff8eb;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.14);
}
.cpc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}
.cpc-icon {
  font-size: 18px;
  line-height: 1;
}
.cpc-meta {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.course-pick-card.active .cpc-meta {
  background: #fde68a;
  border-color: #f59e0b;
  color: #92400e;
}
.cpc-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.38;
  color: var(--ink);
  word-break: keep-all;
}
.cpc-tier {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: auto;
}
@media (max-width: 960px) {
  .course-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .course-picker-grid { grid-template-columns: 1fr; }
}

/* ── 등급 비교 · 결제 전환 퍼널 · 정적 SSR 내부 링크 ── */
.tier-compare-details {
  margin: 0 0 16px;
  border: 1px solid #f2d59c;
  border-radius: 13px;
  background: #fffcf5;
  overflow: hidden;
}
.tier-compare-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tier-compare-details > summary::-webkit-details-marker { display: none; }
.tier-compare-details > summary::after {
  content: "펼쳐 보기 ▾";
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-ink);
  flex-shrink: 0;
}
.tier-compare-details[open] > summary::after { content: "접기 ▴"; }
.tier-compare-body {
  padding: 0 16px 16px;
  border-top: 1px solid #f4e2bc;
}
.tier-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 12px;
}
.tier-compare-table th,
.tier-compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}
.tier-compare-table th {
  background: var(--paper-alt);
  font-weight: 800;
}
.tier-compare-table tr:last-child td { border-bottom: none; }
.tier-sync-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.tier-sync-box strong { color: var(--ink); }
.paywall-sync-steps {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.paywall-sync-steps strong { display: block; margin-bottom: 4px; color: var(--ink); }
.paywall-tier-mini {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.free-membership-cta {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #f2d59c;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.free-membership-cta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.free-membership-cta h4 {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink);
}
.free-membership-cta p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.course-next-bridge {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
}
.course-next-bridge strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--ink);
}
.course-next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
}
.course-next-links:has(> :only-child) {
  grid-template-columns: 1fr;
}
.static-ssr-nav {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.static-ssr-nav h2 {
  margin: 0 0 8px;
  font-size: 16.5px;
}
.static-ssr-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.static-ssr-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 14px;
}
.static-ssr-board {
  display: grid;
  gap: 14px;
  padding: 6px 0;
}
.static-ssr-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
}
.static-ssr-group h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.static-ssr-group ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 14px;
}

/* ── 홈 3기둥 · 2갈래 인증 · 서버 인증 단체방 · /class/ · 유튜브 임베드 · 수익인증판 ── */
.eco-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.eco-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eco-card.is-highlight {
  border-color: #f2d59c;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
}
.eco-card h3 {
  margin: 2px 0 0;
  font-size: 17px;
  color: var(--ink);
}
.eco-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.eco-card .btn-row {
  margin-top: auto;
  padding-top: 6px;
}
@media (max-width: 820px) {
  .eco-pillars { grid-template-columns: 1fr; }
}

.auth-branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.auth-branch-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  background: #ffffff;
}
.auth-branch-card h3 {
  margin: 6px 0 6px;
  font-size: 15.5px;
  color: var(--ink);
}
.auth-branch-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .auth-branch-grid { grid-template-columns: 1fr; }
}

.ios-fee-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.auth-chip-btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: border-color 0.14s ease, background 0.14s ease;
}
.auth-chip-btn:hover {
  border-color: var(--accent);
  background: #fffaf0;
}

.class-price-card > .pill,
.eco-card > .pill,
.item-card > .pill,
.auth-branch-card > .pill {
  align-self: flex-start;
}
.member-community-slot {
  margin-top: 14px;
}
.member-community-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1.5px solid #86efac;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}
.member-community-card > div:first-child,
.class-cta-band > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}
.member-community-card .btn-row,
.class-cta-band .btn-row {
  flex: 1 1 420px;
  max-width: 480px;
  width: 100%;
  margin: 0;
}
.modal-card .member-community-card .btn-row {
  flex: 1 1 100%;
  max-width: 100%;
}
.modal-card form .btn-row {
  max-width: 320px;
  margin-left: auto;
}
.member-code-pill {
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 6px;
}

.class-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.class-price-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.class-price-card.is-primary {
  border-color: #f2d59c;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
}
.class-price-num {
  font-size: 24px;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.class-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.class-cta-band {
  margin-top: 18px;
  padding: 22px;
  border-radius: 15px;
  border: 1.5px solid #f2d59c;
  background: linear-gradient(135deg, #fff8eb 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .class-price-grid,
  .class-benefit-grid { grid-template-columns: 1fr; }
  .btn-row:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .btn-row:has(> :nth-child(3)):not(:has(> :nth-child(4))),
  .tip-complete-btns:has(> :nth-child(3)) {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .btn-row,
  .btn-row:has(> :nth-child(4)),
  .tip-complete-btns,
  .course-next-links {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .member-community-card .btn-row,
  .class-cta-band .btn-row {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .roadmap-head .btn-row,
  .modal-card form .btn-row {
    flex: 1 1 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .free-membership-cta-head .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .paywall-actions {
    grid-template-columns: 1fr;
  }
}

.yt-embed-box {
  margin: 16px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}
.yt-embed-box h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
}
.yt-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 10px;
  background: #0f172a;
}
.yt-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.proof-boards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.proof-board-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.proof-board-card h4 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.proof-board-img {
  width: 100%;
  height: auto;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: block;
}
.proof-board-placeholder {
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 20px 14px;
  text-align: center;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
}
.proof-board-placeholder strong {
  color: var(--ink-soft);
  font-size: 13.5px;
}
.proof-board-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
@media (max-width: 820px) {
  .proof-boards-grid { grid-template-columns: 1fr; }
}

/* ── /gold/ 골드전용 허브 · /tips/ 스포트라이트 · 주간 레이더 전용 radar-v1 ── */
.gold-hub-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 15px;
  border: 1.5px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 55%, #ffffff 100%);
}
.gold-hub-spotlight > div:first-child {
  flex: 1 1 340px;
  min-width: 0;
}
.gold-hub-spotlight h2 {
  margin: 6px 0 4px;
  font-size: 18.5px;
  line-height: 1.38;
  color: var(--ink);
}
.gold-hub-spotlight p {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-soft);
  line-height: 1.58;
}
.gold-hub-spotlight .btn-row {
  flex: 1 1 360px;
  max-width: 440px;
  margin: 0;
}
@media (max-width: 760px) {
  .gold-hub-spotlight .btn-row {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.gold-hero {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #ffffff 100%);
  border-color: #f59e0b;
}
.gold-latest-card {
  border: 1.5px solid #f59e0b;
  border-radius: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #fffdf7 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gold-latest-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.38;
  color: var(--ink);
}
.gold-latest-card .btn-row {
  max-width: 520px;
  margin: 4px 0 0;
}
.gold-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.radar-report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
}
.radar-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 18px;
}
.radar-kpi-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.radar-kpi-card.is-accent {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}
.radar-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}
.radar-kpi-value {
  font-size: 20px;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.radar-kpi-sub {
  font-size: 12.2px;
  color: var(--ink-soft);
  line-height: 1.45;
}
@media (max-width: 860px) {
  .radar-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .radar-kpi-grid { grid-template-columns: 1fr; }
}

.radar-roster-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fffdf9;
}
.radar-roster-box h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink);
}
.radar-badge-public {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.radar-badge-anon {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.radar-cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.radar-cycle-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #ffffff;
}
.radar-cycle-card.is-current {
  border-color: #f59e0b;
  background: #fffbeb;
}
.radar-cycle-card strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin: 4px 0;
}
.radar-cycle-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 820px) {
  .radar-cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .radar-cycle-grid { grid-template-columns: 1fr; }
}

.radar-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 820px) {
  .radar-evidence-grid { grid-template-columns: 1fr; }
}
.radar-board-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.radar-board-card h4 {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.38;
}
.radar-mini-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.radar-mini-metrics:has(> :nth-child(3)):not(:has(> :nth-child(4))) > :last-child {
  grid-column: 1 / -1;
}
.radar-mini-metric {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  background: #faf7f0;
  min-width: 0;
}
.radar-mini-metric span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
  font-weight: 700;
}
.radar-mini-metric strong {
  display: block;
  font-size: 15px;
  font-weight: 850;
  color: var(--ink);
  margin-top: 2px;
  word-break: break-word;
}
.radar-mini-metric em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 700;
}
.radar-bar-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.radar-bar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.radar-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.radar-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.radar-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #0f766e;
}
.radar-bar-fill.is-warn { background: #dc2626; }
.radar-bar-fill.is-gold { background: #d97706; }
.radar-bar-fill.is-muted { background: #64748b; }

.proof-board-link {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.proof-board-link:hover {
  border-color: var(--accent);
}
.proof-board-source-note {
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.radar-gold-teaser-lock {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}
.radar-gold-teaser-lock h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #92400e;
}
.radar-gold-teaser-lock ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.8px;
  color: var(--ink-soft);
}

.radar-anatomy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
@media (max-width: 720px) {
  .radar-anatomy-grid { grid-template-columns: 1fr; }
}
.radar-anatomy-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}
.radar-anatomy-card strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin: 6px 0 4px;
}
.radar-anatomy-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}

.radar-merge-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
@media (max-width: 860px) {
  .radar-merge-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .radar-merge-steps { grid-template-columns: 1fr; }
}
.radar-merge-step {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px;
  background: #fffdf9;
}
.radar-merge-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 52px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  margin-bottom: 6px;
}
.radar-merge-step strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 3px;
}
.radar-merge-step p {
  margin: 0;
  font-size: 12.2px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.radar-issue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.radar-issue-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}
.radar-issue-card.is-warn {
  border-color: #fdba74;
  background: #fff7ed;
}
.radar-issue-card.is-ok {
  border-color: #86efac;
  background: #f0fdf4;
}
.radar-issue-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.radar-notes-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.8px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.radar-back-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── 상세 상단 퀵 점프 바 · Mato MCP 만능 프롬프트 · 네온 빈칸 하이라이트 ── */
.detail-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
  padding: 10px 12px;
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.quick-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.quick-jump-btn:hover {
  border-color: var(--ink);
  background: var(--paper-alt);
}
.quick-jump-btn.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.quick-jump-btn.is-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.quick-jump-btn.is-step0 {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}
.quick-jump-btn.is-step0:hover {
  background: #d1fae5;
  border-color: #34d399;
}
.quick-nav-course-pill {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.prompt-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.step-progress-pill {
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.step-progress-pill.is-all {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-line);
}
.mato-universal-bar {
  margin: 12px 0 14px;
  padding: 13px 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #fffaf0 100%);
  border: 1px solid var(--line-strong);
  border-left: 4px solid #1b2538;
  border-radius: 12px;
}
.mato-auto-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
  user-select: none;
}
.mato-auto-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #14633a;
  cursor: pointer;
}
.mato-auto-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.mato-auto-badge {
  font-size: 12px;
  font-weight: 750;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.mato-auto-badge.is-on {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-line);
}
.mato-universal-desc {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.mato-universal-reassure {
  margin: 6px 0 0;
  font-size: 12.6px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.mato-universal-reassure a {
  font-weight: 750;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prompt-card.is-step0-card {
  border: 1.5px solid #6ee7b7;
  background: linear-gradient(180deg, #f2fcf6 0%, #ffffff 100%);
}
.step0-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.step0-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.8px;
  font-weight: 800;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.step0-promoted-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f2fcf6;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.2px;
  color: #065f46;
}
.step-card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.step-card-foot .step-check {
  margin: 0;
  flex: 1 1 240px;
}
.error-help-copy-btn {
  flex-shrink: 0;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12.2px;
  font-weight: 700;
  cursor: pointer;
}
.error-help-copy-btn:hover {
  background: #ffedd5;
  border-color: #fb923c;
}
.error-help-copy-btn.copied {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
}
.mato-profile-details {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}
.mato-profile-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}
.mato-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.mato-profile-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.mato-profile-grid input,
.prompt-var-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
}
.mato-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  min-height: 34px;
}
.prompt-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step-done-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.step-done-toggle input {
  width: 15px;
  height: 15px;
  accent-color: var(--ok);
  cursor: pointer;
}
.prompt-card.is-step-done {
  border-color: var(--ok-line);
  background: #f5fbf7;
}
.prompt-card.is-step-done .step-done-toggle {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
}
.prompt-vars-panel {
  margin: 0 0 10px;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px dashed var(--line-strong);
  background: #ffffff;
}
.prompt-vars-panel summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink-soft);
}
.prompt-vars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}
.prompt-var-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.prompt-var-label {
  font-size: 11.8px;
  font-weight: 700;
  color: var(--ink-soft);
}
.prompt-pre mark.ph-token {
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 750;
}
.prompt-pre mark.ph-token.is-empty {
  background: rgba(250, 204, 21, 0.24);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.62);
}
.prompt-pre mark.ph-token.is-filled {
  background: rgba(52, 211, 153, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.52);
}
.prompt-copy-warn {
  margin: 8px 0 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn);
  font-size: 12.8px;
  font-weight: 650;
}
@media (max-width: 720px) {
  .detail-quick-nav { padding: 9px 10px; gap: 6px; }
  .quick-jump-btn { flex: 1 1 auto; justify-content: center; min-height: 40px; font-size: 12.5px; padding: 6px 10px; }
  .quick-nav-course-pill { margin-left: 0; width: 100%; text-align: center; }
  .mato-universal-bar { padding: 12px; }
  .mato-profile-grid, .prompt-vars-grid { grid-template-columns: 1fr; }
  .prompt-card-actions { width: 100%; justify-content: flex-end; }
  .step-card-foot { flex-direction: column; align-items: stretch; }
  .error-help-copy-btn { width: 100%; text-align: center; min-height: 38px; }
}
