:root {
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --fg: #0F172A;
  --muted: #f1f5f9;
  --muted-fg: #64748b;
  --border: #e2e8f0;
  --primary: #0EA5A4;
  --primary-2: #0d9492;
  --primary-fg: #ffffff;
  --secondary: #0F172A;
  --accent: #cbfbf6;
  --rose: #f43f5e;
  --emerald: #10b981;
  --amber: #f59e0b;
  --sky: #0ea5e9;
  --violet: #8b5cf6;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 16px rgb(0 0 0 / .04);
  --shadow-lg: 0 10px 36px rgb(0 0 0 / .08);
  --font: ui-sans-serif, system-ui, -apple-system, "Apple SD Gothic Neo",
    "Malgun Gothic", "Pretendard", "Noto Sans KR", sans-serif;
}
[data-theme="dark"] {
  --bg: #0a1424;
  --bg-2: #0f1c33;
  --fg: #e2e8f0;
  --muted: #1e293b;
  --muted-fg: #94a3b8;
  --border: #1e293b;
  --primary: #14b8b7;
  --primary-2: #2dd4d2;
  --secondary: #e2e8f0;
  --accent: #134e4a;
  --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 4px 16px rgb(0 0 0 / .25);
  --shadow-lg: 0 12px 36px rgb(0 0 0 / .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: 12px; }
.muted { color: var(--muted-fg); }
.small { font-size: 13px; }
.center { text-align: center; }
.accent { color: var(--primary); }
.w-full { width: 100%; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ====== GNB ====== */
.gnb {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .gnb { background: rgb(10 20 36 / .9); }
.nav { display: flex; align-items: center; gap: 12px; height: 64px; }
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: 8px; background: transparent; color: var(--fg);
  font-size: 18px; cursor: pointer;
}
@media (min-width: 1100px) { .hamburger { display: none; } }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; white-space: nowrap; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: var(--primary-fg); font-weight: 800;
}
.logo small { color: var(--muted-fg); font-weight: 400; margin-left: 4px; }
.nav-tree { display: none; flex: 1; justify-content: center; }
@media (min-width: 1100px) { .nav-tree { display: flex; } }
.menu { list-style: none; display: flex; gap: 2px; padding: 0; margin: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  font-weight: 500; font-size: 14px; white-space: nowrap;
}
.menu > li > a:hover { background: var(--muted); text-decoration: none; }
.menu > li > .sub {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 6px;
  min-width: 200px; list-style: none; margin: 6px 0 0;
}
.menu > li:hover > .sub, .menu > li:focus-within > .sub { display: block; }
.menu .sub a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.menu .sub a:hover { background: var(--muted); text-decoration: none; }

.nav-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-back { position: absolute; inset: 0; background: rgb(0 0 0 / .5); backdrop-filter: blur(2px); }
.drawer-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 86%; max-width: 360px;
  background: var(--bg); border-right: 1px solid var(--border);
  padding: 16px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.drawer-panel details { border-radius: 8px; }
.drawer-panel details > summary { padding: 10px 12px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 8px; }
.drawer-panel details > summary:hover { background: var(--muted); }
.drawer-panel details[open] { background: var(--bg-2); padding-bottom: 6px; }
.drawer-panel details > a { display: block; padding: 6px 24px; font-size: 14px; color: var(--muted-fg); }
.drawer-panel > a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.drawer-panel > a:hover { background: var(--muted); text-decoration: none; }
.drawer-panel > .btn { margin-top: auto; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--fg);
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-2); text-decoration: none; }
.btn-outline { border-color: var(--border); }
.btn-outline:hover { background: var(--muted); text-decoration: none; }
.btn-ghost:hover { background: var(--muted); }
.btn:active { transform: translateY(1px); }

/* OAuth buttons */
.oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 14px; border-radius: 10px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  margin-bottom: 8px;
}
.oauth:hover { background: var(--muted); }
.oauth-kakao { background: #FEE500; color: #191600; border-color: transparent; }
.oauth-kakao:hover { background: #ffd900; }
.oauth-naver { background: #03C75A; color: #fff; border-color: transparent; }
.oauth-naver:hover { background: #02b052; }
.oauth-apple { background: #000; color: #fff; border-color: transparent; }
.oauth-apple:hover { background: #1a1a1a; }
.g-icon { width: 18px; height: 18px; border-radius: 50%; background:
  conic-gradient(from 90deg, #4285f4 0deg 90deg, #34a853 90deg 180deg, #fbbc05 180deg 270deg, #ea4335 270deg 360deg);
  flex: 0 0 auto; }
.k-icon, .n-icon, .a-icon {
  width: 18px; height: 18px; border-radius: 4px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
}
.k-icon { background: rgb(0 0 0 / .15); color: inherit; }
.n-icon { background: rgb(255 255 255 / .25); color: #fff; }
.a-icon { background: transparent; }

.divider { display: flex; align-items: center; gap: 10px; color: var(--muted-fg); font-size: 12px; margin: 12px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.hint { color: var(--muted-fg); font-style: italic; text-align: center; margin-top: 8px; }

/* ====== Hero ====== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 8%, var(--bg)), var(--bg) 60%, color-mix(in srgb, var(--secondary) 6%, var(--bg)));
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 48px 20px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; padding: 72px 20px; gap: 48px; align-items: center; }
}
.hero h1 { font-size: 32px; line-height: 1.2; margin: 12px 0 16px; letter-spacing: -0.02em; }
@media (min-width: 700px) { .hero h1 { font-size: 44px; } }
.lead { font-size: 15px; color: var(--muted-fg); margin: 0 0 24px; max-width: 580px; }
.lead strong { color: var(--fg); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--muted-fg);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-cards .card { padding: 18px; border-radius: 14px; transition: transform .15s, box-shadow .15s; border: 1px solid transparent; }
.hero-cards .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.hero-cards .card h3 { margin: 0 0 4px; font-size: 15px; }
.hero-cards .card p { margin: 0; font-size: 12px; color: var(--muted-fg); }
.grad-emerald { background: linear-gradient(135deg, #ecfdf5, #ccfbf1); }
.grad-sky { background: linear-gradient(135deg, #eff6ff, #e0e7ff); }
.grad-amber { background: linear-gradient(135deg, #fffbeb, #ffedd5); }
.grad-rose { background: linear-gradient(135deg, #fdf2f8, #ffe4e6); }
[data-theme="dark"] .grad-emerald { background: linear-gradient(135deg, #064e3b80, #134e4a80); }
[data-theme="dark"] .grad-sky { background: linear-gradient(135deg, #1e3a8a80, #312e8180); }
[data-theme="dark"] .grad-amber { background: linear-gradient(135deg, #78350f80, #7c2d1280); }
[data-theme="dark"] .grad-rose { background: linear-gradient(135deg, #831843aa, #881337aa); }

/* ====== Main 3-column grid ====== */
.main-grid {
  display: grid; gap: 18px; padding: 36px 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .main-grid { grid-template-columns: 280px 1fr; } }
@media (min-width: 1200px) { .main-grid { grid-template-columns: 270px 1fr 270px; } }
.side { display: flex; flex-direction: column; gap: 14px; }
.center { display: flex; flex-direction: column; gap: 18px; }

/* Card / Panel */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.panel { padding: 0; overflow: hidden; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.panel-head h3 { margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.link { font-size: 12px; color: var(--primary); font-weight: 500; }

/* Login card */
.login-card { display: flex; flex-direction: column; }
.login-head { margin-bottom: 12px; }
.login-head h3 { margin: 4px 0 0; font-size: 17px; }

/* Banner slot */
.banner-slot {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--bg)), var(--bg));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  text-decoration: none;
}
.banner-slot strong { font-size: 15px; }
.banner-slot:hover { box-shadow: var(--shadow); text-decoration: none; }
.banner-slot.alt { background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 18%, var(--bg)), var(--bg)); border-color: color-mix(in srgb, var(--violet) 30%, transparent); }

/* Post list */
.post-list { list-style: none; padding: 6px 0; margin: 0; }
.post-list li { padding: 10px 18px; border-bottom: 1px dashed var(--border); }
.post-list li:last-child { border-bottom: 0; }
.post-list a { display: flex; align-items: center; gap: 10px; }
.post-list .ttl { flex: 1; font-weight: 500; font-size: 14px; }
.post-list .meta { font-size: 12px; color: var(--muted-fg); white-space: nowrap; }
.post-list .pin { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); font-weight: 700; }

/* Oneline */
.oneline { list-style: none; padding: 10px 18px 14px; margin: 0; }
.oneline li {
  display: flex; gap: 8px; padding: 8px 10px; border-radius: 8px;
  background: var(--bg-2); margin-bottom: 6px;
}
.oneline .who { color: var(--primary); font-weight: 700; flex: 0 0 auto; font-size: 13px; }
.oneline .msg { flex: 1; font-size: 13px; }
.oneline .when { font-size: 11px; color: var(--muted-fg); flex: 0 0 auto; }

/* Gallery */
.gallery { list-style: none; padding: 14px 18px; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(6, 1fr); } }
.gallery li {
  aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background-size: cover; background-position: center;
  position: relative; cursor: pointer;
}
.gallery li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgb(0 0 0 / .35)); }
.gallery li span { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 11px; z-index: 1; }

/* Hot list */
.hot-list { list-style: none; padding: 14px 18px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 720px) { .hot-list { grid-template-columns: repeat(4, 1fr); } }
.hot-list li { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.hot-list .price { color: var(--primary); font-weight: 700; }
.hot-list .h-tag {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.hot-list .h-hot { background: color-mix(in srgb, var(--rose) 14%, transparent); color: var(--rose); }
.hot-list .h-new { background: color-mix(in srgb, var(--sky) 14%, transparent); color: var(--sky); }

/* Seminar */
.seminar-list { list-style: none; padding: 10px 18px 14px; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .seminar-list { grid-template-columns: 1fr 1fr; } }
.seminar-list li {
  display: flex; gap: 12px; padding: 10px; border: 1px solid var(--border);
  border-radius: 10px;
}
.seminar-list .date {
  flex: 0 0 56px; text-align: center; padding: 8px 6px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary); border-radius: 8px; font-weight: 700;
}
.seminar-list .date .d { font-size: 18px; line-height: 1; }
.seminar-list .date .m { font-size: 10px; }
.seminar-list .info { flex: 1; min-width: 0; }
.seminar-list .info b { display: block; font-size: 14px; }
.seminar-list .info .where { font-size: 12px; color: var(--muted-fg); margin-top: 2px; }
.seminar-list .progress { height: 4px; background: var(--muted); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.seminar-list .progress > span { display: block; height: 100%; background: var(--primary); }

/* Best */
.best-list { padding: 10px 18px 14px; margin: 0; counter-reset: best; }
.best-list li { list-style: none; counter-increment: best; padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.best-list li::before {
  content: counter(best); flex: 0 0 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--muted); font-weight: 800; font-size: 11px;
}
.best-list li:nth-child(-n+3)::before { background: var(--primary); color: var(--primary-fg); }

/* Course list */
.course-list { list-style: none; padding: 6px 18px 14px; margin: 0; }
.course-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.course-list li:last-child { border-bottom: 0; }
.course-list .ct { font-weight: 500; font-size: 13px; }
.course-list .cm { font-size: 11px; color: var(--muted-fg); }

/* Forum list */
.forum-list { list-style: none; padding: 10px 18px 14px; margin: 0; }
.forum-list li { padding: 6px 0; font-size: 13px; }
.forum-list a { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.bg-emerald { background: var(--emerald); }
.bg-sky { background: var(--sky); }
.bg-amber { background: var(--amber); }
.bg-rose { background: var(--rose); }

/* ====== Migration section ====== */
.migration {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  margin-top: 30px;
}
.section-head { text-align: center; margin: 0 auto 36px; max-width: 720px; }
.section-head h2 { font-size: 28px; margin: 12px 0 8px; letter-spacing: -0.01em; }
@media (min-width: 700px) { .section-head h2 { font-size: 34px; } }
.section-head p { margin: 0; }

.options { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
@media (min-width: 800px) { .options { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; } }
.opt {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column;
}
.opt-tag { color: var(--muted-fg); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.opt h3 { margin: 8px 0 12px; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }
.opt ul { padding: 0; margin: 0 0 8px; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.opt ul b { color: var(--fg); }
.opt-recommend {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, var(--bg)), var(--bg));
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 12%, transparent);
  position: relative;
}
.opt-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--primary); color: var(--primary-fg);
  font-size: 11px; font-weight: 800; margin-left: 6px;
}

/* Timeline */
.timeline { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 36px; }
.timeline-head h3 { margin: 0; font-size: 18px; }
.timeline-head p { margin-top: 4px; }
.steps {
  list-style: none; counter-reset: stp; padding: 24px 0 0; margin: 0;
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(7, 1fr); } }
.steps li {
  counter-increment: stp; position: relative; padding: 14px 12px 12px;
  border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--muted-fg);
}
.steps li b { display: block; color: var(--fg); font-size: 13px; margin-bottom: 4px; }
.steps li::before {
  content: counter(stp);
  position: absolute; top: -10px; left: 12px;
  background: var(--primary); color: var(--primary-fg);
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 11px; font-weight: 800;
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto 36px; }
.faq h3 { font-size: 22px; margin: 0 0 16px; text-align: center; }
.faq details {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 18px; margin-bottom: 8px;
}
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.faq summary { padding: 14px 0; font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.faq summary::after { content: "＋"; float: right; color: var(--muted-fg); }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 0 14px; margin: 0; color: var(--muted-fg); font-size: 14px; }

/* CTA banner */
.cta-banner {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  padding: 28px 32px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.cta-banner h2 { margin: 0; font-size: 22px; }
.cta-banner p { margin: 4px 0 0; color: rgb(255 255 255 / .8); }
.cta-banner .btn-primary { background: #fff; color: var(--secondary); }
.cta-banner .btn-primary:hover { background: rgb(255 255 255 / .9); }

/* ====== Modal ====== */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgb(0 0 0 / .55); backdrop-filter: blur(2px); }
.modal-panel {
  position: relative; background: var(--bg); border-radius: 16px;
  width: 100%; max-width: 400px; padding: 22px;
  box-shadow: var(--shadow-lg); animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-body label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; margin-top: 10px; }
.modal-body input { width: 100%; }

input, select, textarea {
  font-family: inherit; font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--fg);
}

/* ====== Footer ====== */
.footer { background: var(--muted); margin-top: 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 24px; padding: 40px 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { margin: 0 0 8px; font-size: 13px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer ul a { color: var(--muted-fg); }
.footer-bottom { padding: 18px 20px; border-top: 1px solid var(--border); }

/* ====== Sub pages ====== */
.page { padding: 48px 20px; }
.page h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.01em; }
.crumbs { font-size: 12px; color: var(--muted-fg); margin-bottom: 8px; }
.crumbs a { color: var(--muted-fg); }

/* Tables */
.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-fg); }
tr:last-child td { border-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid currentColor; }
.pill-ok { color: var(--emerald); background: color-mix(in srgb, var(--emerald) 10%, transparent); }
.pill-bad { color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, transparent); }
.pill-warn { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }

code { background: var(--muted); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
pre { background: var(--muted); padding: 14px; border-radius: var(--radius); overflow: auto; font-size: 12px; }
textarea { min-height: 100px; resize: vertical; font-family: ui-monospace, SFMono-Regular, monospace; width: 100%; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }

.scores { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 24px; }
.score { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.score b { font-size: 26px; font-weight: 800; }
.score .neo { color: var(--emerald); }
.score .old { color: var(--rose); text-decoration: line-through; opacity: .8; }
.score .bar { height: 6px; background: var(--muted); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.score .bar > span { display: block; height: 100%; background: var(--emerald); }
