:root {
  --bg-base: #010204;
  --bg-primary: #03050a;
  --bg-secondary: #070b12;
  --text-primary: #f7fafc;
  --text-secondary: #b8c2d0;
  --border-soft: rgba(148, 163, 184, 0.16);
  --card-bg: rgba(6, 10, 17, 0.82);
  --panel-bg: rgba(2, 4, 8, 0.64);
  --nav-bg: rgba(2, 4, 9, 0.88);
  --accent-purple: #4558d9;
  --accent-blue: #2563eb;
  --accent-cyan: #38bdf8;
  --accent-pink: #bd3f8f;
  --hero-glow-a: rgba(37, 99, 235, 0.07);
  --hero-glow-b: rgba(56, 189, 248, 0.035);
  --shadow-soft: 0 20px 46px rgba(0, 0, 0, 0.58);
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.055), 0 12px 30px rgba(37, 99, 235, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --site-render-scale: 0.75;
  --site-render-viewport: calc(100vw / var(--site-render-scale));
  --shell-width: min(1440px, calc(var(--site-render-viewport) - 40px));
  --site-brightness-overlay: 0;
}

html[data-theme="overtone"] {
  --bg-base: #070015;
  --bg-primary: #13002f;
  --bg-secondary: #320075;
  --text-primary: #fff8ff;
  --text-secondary: #ecedff;
  --border-soft: rgba(0, 255, 255, 0.46);
  --card-bg: rgba(18, 2, 54, 0.8);
  --panel-bg: rgba(17, 1, 48, 0.72);
  --nav-bg: rgba(14, 0, 44, 0.88);
  --accent-purple: #b000ff;
  --accent-blue: #008cff;
  --accent-cyan: #00ffff;
  --accent-pink: #ff00cc;
  --hero-glow-a: rgba(0, 255, 255, 0.36);
  --hero-glow-b: rgba(255, 0, 204, 0.34);
  --shadow-soft: 0 24px 70px rgba(5, 0, 30, 0.62);
  --shadow-card: 0 24px 64px rgba(8, 0, 40, 0.54);
  --shadow-glow: 0 0 0 1px rgba(255, 0, 204, 0.2), 0 0 30px rgba(0, 255, 255, 0.24), 0 0 52px rgba(176, 0, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: #000;
  opacity: var(--site-brightness-overlay);
  transition: opacity 140ms ease;
}

section[id] {
  scroll-margin-top: 108px;
}

body {
  margin: 0;
  width: var(--site-render-viewport);
  min-height: 100vh;
  position: relative;
  zoom: var(--site-render-scale);
  overflow-x: hidden;
  font-family: "Pretendard", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, var(--hero-glow-a), transparent 32%),
    radial-gradient(circle at 84% 18%, var(--hero-glow-b), transparent 28%),
    linear-gradient(155deg, var(--bg-primary) 0%, var(--bg-secondary) 52%, var(--bg-base) 100%);
  line-height: 1.72;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  animation: pageFadeIn 320ms ease both;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.055), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(56, 189, 248, 0.028), transparent 24%),
    linear-gradient(155deg, #03050a 0%, #05070c 48%, #010204 100%);
}

html[data-theme="overtone"] body {
  background:
    radial-gradient(circle at 10% 4%, rgba(0, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(255, 0, 204, 0.34), transparent 29%),
    radial-gradient(circle at 58% 84%, rgba(176, 0, 255, 0.28), transparent 35%),
    linear-gradient(115deg, rgba(0, 255, 255, 0.1), transparent 36%, rgba(255, 0, 204, 0.12) 62%, transparent 78%),
    linear-gradient(145deg, #090019 0%, #190044 43%, #340078 100%);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.skip-link {
  display: none !important;
}

.skip-link:focus {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 58%);
  opacity: 0.35;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  opacity: 0.2;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(124, 58, 237, 0.08), transparent 18%),
    radial-gradient(circle at 88% 70%, rgba(6, 182, 212, 0.07), transparent 16%),
    linear-gradient(90deg, transparent 0 8%, rgba(124, 58, 237, 0.05) 8% 8.15%, transparent 8.15% 100%),
    linear-gradient(180deg, transparent 0 18%, rgba(6, 182, 212, 0.045) 18% 18.12%, transparent 18.12% 100%),
    linear-gradient(90deg, transparent 0 78%, rgba(6, 182, 212, 0.04) 78% 78.12%, transparent 78.12% 100%),
    linear-gradient(180deg, transparent 0 76%, rgba(124, 58, 237, 0.045) 76% 76.12%, transparent 76.12% 100%);
  opacity: 0.45;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

select,
option,
optgroup {
  background-color: #060b14;
  color: #f7fafc;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(34, 211, 238, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.55);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.55);
  outline-offset: 3px;
}

.shell {
  width: var(--shell-width);
  margin-left: max(0px, calc((var(--site-render-viewport) - var(--shell-width)) / 2));
  margin-right: max(0px, calc((var(--site-render-viewport) - var(--shell-width)) / 2));
}

@media (max-width: 760px) {
  :root {
    --site-render-scale: 1;
    --site-render-viewport: 100vw;
    --shell-width: min(100vw - 28px, 1120px);
  }
}

.background-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.background-glow-left {
  top: -120px;
  left: -120px;
  background: rgba(59, 130, 246, 0.6);
}

.background-glow-right {
  right: -120px;
  bottom: 12%;
  background: rgba(124, 58, 237, 0.44);
}

.equipment-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.equipment {
  position: absolute;
  opacity: 0.42;
  filter: blur(0.1px);
}

html[data-theme="dark"] .background-glow {
  opacity: 0.055;
}

html[data-theme="dark"] .equipment {
  opacity: 0.18;
}

html[data-theme="overtone"] .background-glow {
  opacity: 0.28;
}

html[data-theme="overtone"] .background-glow-left {
  background: rgba(0, 255, 255, 0.96);
}

html[data-theme="overtone"] .background-glow-right {
  background: rgba(255, 0, 204, 0.92);
}

html[data-theme="overtone"] .equipment {
  opacity: 0.42;
  filter: drop-shadow(0 0 14px rgba(0, 255, 255, 0.18)) drop-shadow(0 0 18px rgba(255, 0, 204, 0.12));
}

html.hide-background-objects .background-glow,
html.hide-background-objects .equipment-layer {
  opacity: 0 !important;
  visibility: hidden;
}

html.hide-background-objects main::before {
  opacity: 0 !important;
}

.wafer-rig {
  top: 16%;
  right: 6%;
  width: 320px;
  height: 320px;
}

.wafer-ring,
.wafer-grid,
.chip-core,
.chip-pin,
.arm-column,
.arm-beam,
.arm-head {
  position: absolute;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.08);
}

.wafer-ring {
  border-radius: 50%;
}

.wafer-ring-outer {
  inset: 0;
  background:
    radial-gradient(circle, rgba(124, 58, 237, 0.11), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.06), transparent 74%);
}

.wafer-ring-inner {
  inset: 44px;
}

.wafer-grid {
  inset: 72px;
  border-radius: 50%;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.08)) center/1px 100% no-repeat,
    linear-gradient(90deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.08)) center/100% 1px no-repeat,
    linear-gradient(rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.1)) 33% 0/1px 100% no-repeat,
    linear-gradient(rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.1)) 66% 0/1px 100% no-repeat,
    linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.1)) 0 33%/100% 1px no-repeat,
    linear-gradient(90deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.1)) 0 66%/100% 1px no-repeat,
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.07), transparent 72%);
}

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

.language-one-liner {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.52;
  max-width: 44ch;
  letter-spacing: 0.01em;
  color: rgba(125, 211, 252, 0.92);
}

.language-review-inline {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.58;
  color: rgba(125, 211, 252, 0.94);
}

.textbook-ready-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.08);
  color: rgba(186, 230, 253, 0.94);
  font-size: 0.72rem;
  line-height: 1;
}

.platform-shell-grid {
  align-items: start;
}

.platform-shell-grid > .learning-card,
.platform-shell-grid > .code-panel {
  height: 100%;
}

.category-card,
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-card h3,
.topic-card h3 {
  margin: 0;
}

.platform-link-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-link-stack a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.44);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.platform-link-stack a:hover,
.platform-link-stack a:focus-visible {
  color: var(--text-primary);
  border-color: rgba(6, 182, 212, 0.34);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-primary);
}

.platform-list,
.path-list {
  display: grid;
  gap: 12px;
}

.platform-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.36);
}

.platform-list-item p,
.path-list .platform-list-item p {
  margin: 0;
}

.path-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.path-block h3 {
  margin: 0;
}

.language-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.topic-card {
  min-height: 186px;
  justify-content: flex-start;
  padding: 18px 18px 16px;
  gap: 10px;
}

.topic-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 24ch;
}

.topic-card .topic-focus {
  margin-top: auto;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(6, 182, 212, 0.88);
}

.topic-card.mini {
  min-height: 0;
}

.topic-card h3 {
  font-size: 1rem;
  line-height: 1.28;
  max-width: 16ch;
}

.topic-card .step-number {
  position: static;
  top: auto;
  left: auto;
  min-width: 38px;
  min-height: 28px;
  padding: 0 9px;
  margin-bottom: 4px;
  font-size: 0.74rem;
}

.stage-rail-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.stage-rail-card.compact {
  gap: 14px;
}

.stage-rail-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-rail-head strong {
  display: block;
  margin: 0;
}

.stage-rail-head p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.68;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 16px;
  overflow: visible;
  padding-bottom: 0;
}

.stage-node {
  position: relative;
  min-height: 144px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.38);
}

.stage-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.22);
  color: var(--text-primary);
  font-size: 0.86rem;
}

.stage-node strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.stage-node p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.56;
  color: var(--text-secondary);
  max-width: 15ch;
}

.textbook-route-section {
  scroll-margin-top: 120px;
}

.textbook-route-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.textbook-route-card.compact {
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  padding-top: 22px;
  padding-bottom: 22px;
}

.textbook-route-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.textbook-route-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.68;
}

.textbook-flow-list {
  display: grid;
  gap: 10px;
}

.textbook-flow-list span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.34);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.48;
}

.textbook-flow-list b {
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.textbook-structure-card {
  display: grid;
  gap: 18px;
  padding: 22px 24px;
}

.textbook-structure-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.textbook-structure-head h3,
.textbook-structure-head p {
  margin: 0;
}

.textbook-structure-head h3 {
  margin-top: 4px;
  font-size: 1.08rem;
  line-height: 1.36;
}

.textbook-structure-head > p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.68;
}

.textbook-stage-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.textbook-stage-map-item {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 156px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.3);
}

.stage-map-title {
  display: grid;
  gap: 5px;
}

.stage-map-title strong {
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.32;
}

.stage-map-title span {
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.stage-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-map-chips a,
.stage-map-chips span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.72rem;
  line-height: 1.25;
}

.stage-map-chips a:hover,
.stage-map-chips a:focus-visible {
  color: var(--text-primary);
  border-color: rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.08);
}

.textbook-chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.textbook-chapter-card {
  min-height: 178px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chapter-order,
.chapter-stage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text-primary);
  font-size: 0.72rem;
  line-height: 1;
}

.chapter-order {
  min-width: 34px;
  height: 28px;
  font-family: var(--font-display);
}

.chapter-stage {
  min-height: 26px;
  padding: 0 9px;
  color: var(--text-secondary);
}

.textbook-chapter-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.32;
}

.textbook-chapter-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.textbook-chapter-card .topic-focus {
  margin-top: auto;
  color: rgba(125, 211, 252, 0.88);
  font-size: 0.78rem;
}

.textbook-check-grid,
.textbook-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chapter-position-strip {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 12px;
  align-items: center;
  width: auto;
  margin-top: 20px;
  padding: 14px 18px;
}

.chapter-position-strip span,
.chapter-position-strip em {
  color: var(--text-secondary);
  font-style: normal;
  font-size: 0.9rem;
}

.chapter-position-strip strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.textbook-nearby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.textbook-nearby-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.38);
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.textbook-nearby-row a.is-current {
  color: var(--text-primary);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.1);
}

.textbook-nearby-row span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.textbook-study-card {
  min-height: 188px;
}

.textbook-study-card h3,
.textbook-code-panel h3 {
  margin-bottom: 12px;
}

.textbook-study-card p,
.textbook-code-panel p {
  line-height: 1.72;
}

.textbook-mini-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(34, 211, 238, 0.06);
}

.textbook-mini-note strong {
  display: block;
  margin-bottom: 6px;
}

.textbook-mini-note p {
  margin: 0;
}

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

.chapter-nav-link {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-nav-link span {
  color: var(--accent-cyan);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.chapter-nav-link strong {
  color: var(--text-primary);
  line-height: 1.36;
}

.chapter-nav-link p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.52;
}

.chapter-nav-link.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.platform-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: rgba(6, 182, 212, 0.08);
  color: var(--text-primary);
  font-size: 0.92rem;
}

.concept-diagram {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.diagram-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: rgba(6, 182, 212, 0.06);
}

.diagram-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.22);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.diagram-step strong {
  font-size: 0.92rem;
  line-height: 1.34;
}

.diagram-arrow {
  color: rgba(6, 182, 212, 0.88);
  font-size: 1rem;
  font-weight: 700;
}

.outline-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.outline-list li + li {
  margin-top: 10px;
}

.empty-platform-state {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.empty-platform-state h1,
.empty-platform-state p {
  margin: 0;
}

.code-panel pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
  color: #d8f2ff;
  font-size: 0.9rem;
  line-height: 1.62;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.06);
}

.code-panel code {
  font-family: "Consolas", "Courier New", monospace;
  white-space: pre;
}

.compact-top-grid {
  margin-top: 18px;
}

.code-panel .stat-note {
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .breadcrumb {
    gap: 8px;
    font-size: 0.92rem;
  }

  .language-detail-grid {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .stage-node {
    flex: none;
    min-height: 0;
    padding: 18px 16px 16px;
  }

  .stage-node p {
    max-width: none;
  }

  .platform-list-item {
    padding: 12px 14px;
  }

  .code-panel pre {
    padding: 14px;
    font-size: 0.84rem;
  }
}

.chip-array {
  left: 4%;
  bottom: 14%;
  width: 260px;
  height: 260px;
}

.chip-core {
  inset: 54px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.11), rgba(59, 130, 246, 0.05)),
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.07), transparent 75%),
    rgba(15, 23, 42, 0.18);
}

.chip-pin {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.1), rgba(124, 58, 237, 0.07));
}

.chip-pin-top,
.chip-pin-bottom {
  left: 84px;
  width: 92px;
  height: 16px;
}

.chip-pin-top {
  top: 24px;
}

.chip-pin-bottom {
  bottom: 24px;
}

.chip-pin-left,
.chip-pin-right {
  top: 84px;
  width: 16px;
  height: 92px;
}

.chip-pin-left {
  left: 24px;
}

.chip-pin-right {
  right: 24px;
}

.process-arm {
  left: 12%;
  top: 18%;
  width: 280px;
  height: 220px;
}

.arm-column {
  left: 24px;
  bottom: 10px;
  width: 24px;
  height: 150px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.1), rgba(124, 58, 237, 0.08)),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.08), transparent 70%);
}

.arm-beam {
  left: 42px;
  top: 56px;
  width: 164px;
  height: 20px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(124, 58, 237, 0.08)),
    radial-gradient(circle at 85% 50%, rgba(124, 58, 237, 0.08), transparent 60%);
}

.arm-head {
  right: 48px;
  top: 40px;
  width: 48px;
  height: 64px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 26%, rgba(124, 58, 237, 0.15), transparent 38%),
    radial-gradient(circle at 50% 65%, rgba(124, 58, 237, 0.07), transparent 72%),
    rgba(15, 23, 42, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 0 0;
  transition: transform 180ms ease, opacity 140ms ease;
  will-change: transform, opacity;
}

.site-header.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, calc(-100% - 28px), 0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 34px);
  padding: 15px clamp(20px, 2.3vw, 34px);
  position: relative;
  overflow: visible;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.05), transparent 24%, rgba(124, 58, 237, 0.045) 74%, rgba(34, 211, 238, 0.04)),
    var(--nav-bg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(2, 6, 23, 0.2);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(34, 211, 238, 0.16) 18% 18.2%, transparent 18.2% 54%, rgba(124, 58, 237, 0.15) 54% 54.18%, transparent 54.18% 100%),
    radial-gradient(circle at 18% 50%, rgba(34, 211, 238, 0.12), transparent 18%),
    radial-gradient(circle at 82% 50%, rgba(124, 58, 237, 0.11), transparent 20%);
  opacity: 0.86;
  z-index: 0;
}

.nav::after {
  content: "";
  position: absolute;
  left: clamp(24px, 3vw, 46px);
  right: clamp(24px, 3vw, 46px);
  bottom: 8px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.24), rgba(124, 58, 237, 0.18), transparent);
  opacity: 0.64;
  z-index: 0;
}

html[data-theme="dark"] .nav {
  border-color: rgba(148, 163, 184, 0.11);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
}

html[data-theme="overtone"] .nav {
  border-color: rgba(0, 255, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 0, 204, 0.16), 0 16px 38px rgba(2, 0, 18, 0.42), 0 0 42px rgba(0, 255, 255, 0.18);
}

.site-header.is-scrolled {
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
}

.site-header.is-scrolled .nav {
  background: rgba(4, 10, 28, 0.92);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.34);
}

.brand,
h1,
h2,
h3 {
  font-family: "Orbitron", "Pretendard", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 42px;
  position: relative;
  z-index: 1;
}

.brand::before {
  content: "";
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: url("icons/semiconductor-favicon-v20260517c.svg") center / contain no-repeat;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(56, 189, 248, 0.18);
}

.brand::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
  opacity: 0.52;
  pointer-events: none;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 0.8vw, 14px);
  flex: 1 1 auto;
  margin-left: auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.18);
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px clamp(10px, 0.9vw, 16px);
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid transparent;
  font-size: clamp(0.88rem, 0.28vw + 0.78rem, 0.98rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 180ms ease, text-shadow 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-links a::after {
  content: "01";
  margin-left: 9px;
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(125, 211, 252, 0.58);
}

.nav-links a:nth-child(2)::after {
  content: "02";
}

.nav-links a:nth-child(3)::after {
  content: "03";
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  text-shadow: 0 0 14px rgba(6, 182, 212, 0.16);
}

.nav-links a.is-active {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.24), rgba(6, 182, 212, 0.14));
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.12),
    0 0 0 1px rgba(6, 182, 212, 0.06),
    0 10px 24px rgba(12, 18, 38, 0.22);
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.12);
}

html[data-theme="overtone"] .nav-links a.is-active {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(176, 38, 255, 0.28), rgba(255, 43, 214, 0.16));
  border-color: rgba(0, 245, 255, 0.32);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.14), 0 0 28px rgba(255, 43, 214, 0.1);
}

.theme-switcher,
.locale-switcher {
  position: relative;
  z-index: 1;
}

.theme-switcher.is-open,
.locale-switcher.is-open,
.auth-switcher.is-open {
  z-index: 130;
}

.nav-links a.is-active::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.26);
}

.locale-switcher {
  position: relative;
  margin-left: 0;
  flex: 0 0 auto;
}

.theme-switcher {
  position: relative;
  flex: 0 0 auto;
}

.theme-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.34);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.theme-trigger:hover,
.theme-trigger:focus-visible,
.theme-switcher.is-open .theme-trigger {
  color: var(--text-primary);
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 10px 24px rgba(12, 18, 38, 0.18), 0 0 18px rgba(34, 211, 238, 0.08);
}

.theme-icon,
.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 68% 28%, var(--accent-pink, #ec4899) 0 16%, transparent 17%),
    radial-gradient(circle at 35% 64%, var(--accent-cyan) 0 24%, transparent 25%),
    linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.24);
}

.theme-switcher[data-theme="dark"] .theme-icon {
  background:
    radial-gradient(circle at 54% 48%, rgba(241, 245, 249, 0.74) 0 10%, transparent 11%),
    linear-gradient(90deg, transparent 0 22%, rgba(56, 189, 248, 0.36) 22% 26%, transparent 26% 74%, rgba(56, 189, 248, 0.28) 74% 78%, transparent 78%),
    linear-gradient(0deg, transparent 0 24%, rgba(37, 99, 235, 0.32) 24% 28%, transparent 28% 72%, rgba(37, 99, 235, 0.24) 72% 76%, transparent 76%),
    linear-gradient(135deg, #0b1220, #020306);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.18);
}

.theme-switcher[data-theme="overtone"] .theme-icon {
  background:
    radial-gradient(circle at 64% 34%, #ff2bd6 0 16%, transparent 17%),
    radial-gradient(circle at 30% 70%, #00f5ff 0 24%, transparent 25%),
    linear-gradient(135deg, #00a8ff, #b026ff 52%, #ff2bd6);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.34), 0 0 24px rgba(0, 245, 255, 0.22);
}

.theme-text,
.theme-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.theme-label,
.theme-option-label {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.theme-meta,
.theme-option-meta {
  color: var(--text-secondary);
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

.theme-caret {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  line-height: 1;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 286px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #050a1c;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 140;
}

html[data-theme="overtone"] .theme-menu,
html[data-theme="overtone"] .locale-menu {
  border-color: rgba(0, 245, 255, 0.24);
  background: #100329;
  box-shadow: 0 18px 44px rgba(2, 0, 18, 0.46), 0 0 28px rgba(255, 43, 214, 0.14);
}

.theme-switcher.is-open .theme-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.theme-option:hover,
.theme-option:focus-visible,
.theme-option.is-active {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(34, 211, 238, 0.22);
  color: var(--text-primary);
}

.theme-option.is-active {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.theme-swatch {
  flex: 0 0 auto;
}

.theme-swatch-dark {
  background:
    radial-gradient(circle at 54% 46%, rgba(248, 250, 252, 0.72) 0 10%, transparent 11%),
    linear-gradient(135deg, #0b1220, #020306);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.18);
}

.theme-swatch-overtone {
  background:
    radial-gradient(circle at 64% 34%, #ff2bd6 0 16%, transparent 17%),
    radial-gradient(circle at 30% 70%, #00f5ff 0 24%, transparent 25%),
    linear-gradient(135deg, #00a8ff, #b026ff 52%, #ff2bd6);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.34), 0 0 24px rgba(0, 245, 255, 0.22);
}

.theme-control-panel {
  margin-top: 8px;
  padding: 11px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 15px;
  background: #071026;
}

.theme-control-title {
  display: block;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-control-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(92px, 1.2fr) 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  color: var(--text-secondary);
}

.theme-control-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 0.76rem;
  line-height: 1.2;
}

.theme-control-copy small {
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.64rem;
}

.theme-range {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.theme-control-output {
  color: var(--text-primary);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.68rem;
  text-align: right;
}

.theme-object-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.42);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.theme-object-toggle:hover,
.theme-object-toggle:focus-visible,
.theme-object-toggle.is-active {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.22);
  color: var(--text-primary);
}

.theme-object-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: inset 0 0 0 3px rgba(2, 6, 23, 0.72);
}

.theme-object-toggle.is-active .theme-object-dot {
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.22);
}

.theme-object-label {
  font-size: 0.78rem;
}

.theme-object-state {
  color: var(--text-primary);
  font-size: 0.7rem;
}

.locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.34);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.locale-trigger:hover,
.locale-trigger:focus-visible,
.locale-switcher.is-open .locale-trigger {
  color: var(--text-primary);
  border-color: rgba(124, 58, 237, 0.24);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 10px 24px rgba(12, 18, 38, 0.18);
}

.locale-trigger .locale-flag {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.locale-trigger .locale-label {
  font-size: 0.9rem;
  line-height: 1;
}

.locale-caret {
  color: var(--accent-cyan);
  font-size: 0.82rem;
  line-height: 1;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 236px;
  max-height: 250px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #050a1c;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 140;
}

.locale-switcher.is-open .locale-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.auth-switcher {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.auth-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.34);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-trigger:hover,
.auth-trigger:focus-visible,
.auth-switcher.is-open .auth-trigger {
  color: var(--text-primary);
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 10px 24px rgba(12, 18, 38, 0.18), 0 0 18px rgba(34, 211, 238, 0.08);
}

.auth-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.18);
}

.auth-trigger.is-logged-in .auth-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.34);
}

.auth-trigger-text {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  padding: 16px;
  z-index: 140;
  pointer-events: auto;
}

.auth-account-menu.card {
  position: absolute;
  background: #050a1c;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.auth-account-menu[hidden] {
  display: none !important;
}

html[data-theme="overtone"] .auth-account-menu.card,
html[data-theme="overtone"] .auth-dialog.card,
html[data-theme="overtone"] .theme-control-panel {
  background: #100329;
}

.auth-account-menu strong,
.auth-account-menu span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account-email {
  margin: 5px 0 14px;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.auth-account-page {
  width: 100%;
  justify-content: center;
  margin-bottom: 8px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: #010309;
  pointer-events: auto;
}

.auth-dialog {
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  z-index: 1;
  padding: 28px;
  pointer-events: auto;
}

.auth-dialog.card {
  background: #050a1c;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.54);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.3rem;
}

.auth-dialog-head {
  padding-right: 30px;
}

.auth-dialog-head h2,
.auth-dialog-head p {
  margin-bottom: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 16px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.34);
}

.auth-tab {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 232, 240, 0.96) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, 0.96);
  cursor: pointer;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(15, 23, 42, 0.36);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.auth-tab:hover,
.auth-tab:focus-visible {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc;
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.08);
}

.auth-tab.is-active {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc;
  border-color: rgba(34, 211, 238, 0.34);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.32), rgba(124, 58, 237, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 18px rgba(34, 211, 238, 0.12);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.48);
  color: var(--text-primary);
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.auth-field-hint {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.auth-form .auth-remember-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -2px;
  cursor: pointer;
}

.auth-form .auth-remember-row input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin-top: 3px;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--accent-cyan);
}

.auth-remember-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auth-remember-copy strong {
  color: var(--text-primary);
  font-size: 0.84rem;
  line-height: 1.3;
}

.auth-remember-copy small {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc;
}

.auth-status {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.48);
}

.auth-status[data-status="success"] {
  border-color: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.18);
}

.auth-status[data-status="error"] {
  border-color: rgba(248, 113, 113, 0.34);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.2);
}

.onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.onboarding-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 9, 0.66);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.onboarding-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  transform: translateY(16px) scale(0.98);
  transition: transform 220ms ease;
}

.onboarding-modal.is-visible .onboarding-dialog {
  transform: translateY(0) scale(1);
}

.onboarding-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.58);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
}

.onboarding-head {
  padding-right: 34px;
}

.onboarding-head h2 {
  margin: 6px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.18;
}

.onboarding-head p {
  margin: 0;
  max-width: 60ch;
  color: var(--text-secondary);
  line-height: 1.7;
}

.onboarding-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.onboarding-route {
  display: grid;
  gap: 7px;
  min-height: 120px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.055), rgba(124, 58, 237, 0.04)),
    rgba(2, 6, 23, 0.34);
  color: var(--text-primary);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.onboarding-route:hover,
.onboarding-route:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.24), 0 0 18px rgba(34, 211, 238, 0.08);
}

.onboarding-route strong {
  font-size: 1rem;
  line-height: 1.35;
}

.onboarding-route span {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.onboarding-skip-today {
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary);
}

.onboarding-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.locale-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.locale-option:hover,
.locale-option:focus-visible,
.locale-option.is-active {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(124, 58, 237, 0.22);
  color: var(--text-primary);
}

.locale-option .locale-flag {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.locale-option .locale-flag-right {
  margin-left: auto;
}

.locale-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.locale-meta strong {
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 600;
}

.locale-meta span {
  color: var(--text-secondary);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body {
  top: 0 !important;
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  padding: 64px 0 28px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.mini-label,
.panel-topline {
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

.hero h1 span {
  display: block;
  white-space: normal;
}

.hero-text,
.section-heading p,
.card p,
.signal-card p {
  color: var(--text-secondary);
  overflow-wrap: break-word;
}

.hero-text {
  max-width: 58ch;
  font-size: 0.96rem;
  line-height: 1.68;
  margin-bottom: 20px;
}

.hero-text span {
  display: block;
  white-space: normal;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.hero-tags span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  width: fit-content;
  flex: 0 0 auto;
  white-space: normal;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.button:hover,
.button:focus-visible,
.card:not(.learning-compass):hover,
.card:not(.learning-compass):focus-within {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(124, 58, 237, 0.22));
  border-color: rgba(124, 58, 237, 0.2);
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
  box-shadow: var(--shadow-glow);
}

html[data-theme="dark"] .button.primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12));
  border-color: rgba(56, 189, 248, 0.18);
}

html[data-theme="overtone"] .button.primary {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.34), rgba(176, 38, 255, 0.42), rgba(255, 43, 214, 0.34));
  border-color: rgba(0, 245, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.2), 0 0 28px rgba(0, 245, 255, 0.34), 0 14px 34px rgba(255, 43, 214, 0.18);
}

.button.secondary {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

html[data-theme="dark"] .card {
  border-color: rgba(148, 163, 184, 0.13);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56);
}

html[data-theme="overtone"] .card {
  border-color: rgba(0, 245, 255, 0.24);
  box-shadow: var(--shadow-soft), 0 0 30px rgba(255, 43, 214, 0.08);
}

a.card {
  cursor: pointer;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.34), rgba(6, 182, 212, 0.18), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  top: 14px;
  right: 14px;
  border-top: 1px solid rgba(124, 58, 237, 0.16);
  border-right: 1px solid rgba(6, 182, 212, 0.12);
  border-top-right-radius: 16px;
  opacity: 0.7;
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.hero-panel,
.learning-card,
.diagram-card,
.quiz-card,
.search-card,
.process-flow-card,
.roadmap-visual-card {
  padding: 22px;
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.18);
}

.metric-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric-list li,
.signal-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.metric-list strong {
  display: block;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-list span {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.signal-card h2 {
  margin: 8px 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
  word-break: keep-all;
}

.platform-hero .signal-card h2 {
  font-size: 1.32rem;
  line-height: 1.42;
}

.section {
  padding: 52px 0 0;
}

.compact-top {
  padding-top: 20px;
}

.section-heading {
  margin-bottom: 22px;
  max-width: 68ch;
}

.section-actions {
  margin-top: 16px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.64rem, 1.9vw, 2.2rem);
  line-height: 1.28;
}

.section-heading::after {
  content: "";
  display: block;
  width: 84px;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.6), rgba(6, 182, 212, 0.16));
}

.content-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.industry-brief-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.industry-brief-card {
  min-height: 316px;
  padding: 24px;
}

.industry-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.16);
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.industry-brief-card h3 {
  margin: 0 0 12px;
  font-size: 1.06rem;
  line-height: 1.36;
}

.industry-brief-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.72;
}

.industry-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.industry-keyword-row span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.76rem;
  line-height: 1.2;
}

.industry-flow-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) 1fr;
  align-items: start;
  gap: 16px;
  margin-top: 16px;
  padding: 22px 24px;
}

.industry-flow-card strong {
  color: var(--text-primary);
  font-size: 1.02rem;
}

.industry-flow-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.72;
}

.semiconductor-role-card {
  min-height: 236px;
}

.semiconductor-role-card p {
  margin-bottom: 16px;
}

.small-button {
  min-height: 38px;
  padding: 10px 14px;
  font-size: 0.93rem;
}

.intro-grid,
.process-grid,
.materials-grid,
.jobs-grid,
.glossary-grid,
.company-grid,
.industry-structure-grid,
.equipment-grid,
.interview-grid,
.support-grid,
.diagram-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-heavy {
  grid-column: span 2;
}

.learning-card h3,
.diagram-card h3,
.quiz-card h3,
.search-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.42;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.topic-list div,
.step-detail,
.qa-list,
.process-mini-diagram,
.equipment-diagram,
.roadmap-visual div,
.expand-panel,
.quiz-item {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.diagram-grid,
.support-grid {
  margin-top: 18px;
}

.related-links {
  margin-top: 18px;
  padding: 18px 20px;
}

.related-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.related-chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  line-height: 1.4;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.related-chip-row a:hover,
.related-chip-row a:focus-visible {
  transform: translateY(-2px);
  color: var(--text-primary);
  border-color: rgba(124, 58, 237, 0.24);
}

.diagram-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diagram-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.toggle-button,
.accordion-trigger,
.quiz-options button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
  color: var(--text-primary);
  border-radius: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  width: auto;
  max-width: max-content;
  align-self: flex-start;
  white-space: nowrap;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.04)),
    rgba(2, 6, 23, 0.42);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.04);
  cursor: pointer;
}

.toggle-button::before {
  content: "◦";
  color: var(--accent-cyan);
  font-size: 0.95rem;
  line-height: 1;
}

.glossary-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.toggle-arrow {
  display: inline-block;
  transition: transform 220ms ease, color 180ms ease;
  color: var(--accent-cyan);
}

.glossary-toggle.is-open .toggle-arrow {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

.glossary-toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--accent-cyan);
  transform: translateY(1px);
}

.toggle-button:hover,
.toggle-button:focus-visible,
.accordion-trigger:hover,
.accordion-trigger:focus-visible,
.quiz-options button:hover,
.quiz-options button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.08);
}

.pn-diagram,
.mosfet-diagram {
  min-height: 210px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.58));
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.pn-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

.pn-side,
.pn-barrier {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  font-family: "Orbitron", "Pretendard", sans-serif;
}

.p-side {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.18), transparent);
}

.n-side {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.18), transparent);
}

.pn-barrier {
  width: 120px;
  background: rgba(148, 163, 184, 0.08);
  border-left: 1px solid rgba(148, 163, 184, 0.14);
  border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.pn-side span {
  display: block;
  margin-top: 8px;
  font-family: "Pretendard", sans-serif;
  color: var(--text-secondary);
}

.mosfet-diagram {
  padding: 24px;
  display: grid;
  gap: 10px;
}

.mos-gate,
.mos-oxide,
.mos-channel,
.mos-substrate,
.mos-terminals span {
  text-align: center;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.3);
}

.mos-gate {
  background: rgba(124, 58, 237, 0.14);
}

.mos-oxide {
  background: rgba(148, 163, 184, 0.1);
}

.mos-channel {
  background: rgba(59, 130, 246, 0.12);
}

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

.mos-substrate {
  background: rgba(124, 58, 237, 0.1);
}

.band-card {
  gap: 18px;
}

.band-diagram-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.band-column {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.46));
}

.band-label,
.band-note {
  margin: 0;
}

.band-label {
  font-family: "Orbitron", "Pretendard", sans-serif;
  margin-bottom: 14px;
}

.band-note {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.band-rails {
  min-height: 170px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-items: center;
  justify-items: stretch;
  gap: 8px;
}

.band-rails.overlap {
  grid-template-rows: auto auto auto;
}

.band-rail,
.band-gap,
.band-gap-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-align: center;
}

.band-rail {
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.9rem;
}

.conduction-band {
  background: rgba(59, 130, 246, 0.18);
}

.valence-band {
  background: rgba(124, 58, 237, 0.18);
}

.band-gap {
  width: 8px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.9), rgba(124, 58, 237, 0.9));
}

.gap-wide {
  min-height: 72px;
}

.gap-mid {
  min-height: 38px;
}

.band-gap-label {
  color: var(--accent-cyan);
  font-size: 0.84rem;
}

.process-flow-card {
  margin-bottom: 18px;
}

.process-flow-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.process-flow-intro h3 {
  margin: 4px 0 0;
}

.process-flow-status {
  margin-bottom: 16px;
}

.process-flow-progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.process-flow-progress-fill {
  display: block;
  height: 100%;
  width: 12.5%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.9), rgba(59, 130, 246, 0.86), rgba(124, 58, 237, 0.82));
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.16);
  transition: width 220ms ease;
}

.process-flow-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.process-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.process-flow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.legend-substrate {
  background: #94a3b8;
}

.legend-oxide {
  background: #67e8f9;
}

.legend-resist {
  background: #a78bfa;
}

.legend-film {
  background: #60a5fa;
}

.legend-metal {
  background: #dbeafe;
}

.process-flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin-bottom: 18px;
}

.process-flow-step,
.process-mini-diagram span,
.equipment-diagram span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 14px;
  text-align: center;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.process-flow-step {
  min-width: 184px;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font: inherit;
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.68)),
    rgba(15, 23, 42, 0.56);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  position: relative;
  overflow: hidden;
  opacity: 0.9;
}

.process-flow-step:hover,
.process-flow-step:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.52);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.14);
  opacity: 1;
}

.process-flow-step.is-active {
  border-color: rgba(186, 230, 253, 0.76);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.16),
    0 18px 32px rgba(6, 182, 212, 0.16);
  opacity: 1;
}

.process-flow-step::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.92), rgba(124, 58, 237, 0.7));
  transform: scaleX(0.2);
  transform-origin: center;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.process-flow-step.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.process-flow-step strong,
.process-flow-step em {
  pointer-events: none;
}

.process-flow-step em {
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.flow-step-no {
  align-self: flex-start;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--accent-cyan);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.process-flow-step strong,
.process-flow-step em {
  display: block;
  text-align: left;
}

.flow-icon {
  display: block;
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(8, 15, 30, 0.96), rgba(3, 8, 20, 0.84));
  position: relative;
  overflow: hidden;
}

.flow-icon::before,
.flow-icon::after {
  content: "";
  position: absolute;
}

.flow-icon-oxidation::before {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 18px;
  background: #94a3b8;
}

.flow-icon-oxidation::after {
  left: 12px;
  right: 12px;
  bottom: 31px;
  height: 7px;
  background: #67e8f9;
}

.flow-icon-lithography::before {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 14px;
  background: #94a3b8;
  box-shadow: 0 -7px 0 #67e8f9;
}

.flow-icon-lithography::after {
  left: 12px;
  right: 12px;
  bottom: 33px;
  height: 11px;
  background: linear-gradient(90deg, #a78bfa 0 24%, transparent 24% 36%, #a78bfa 36% 64%, transparent 64% 76%, #a78bfa 76% 100%);
}

.flow-icon-etching::before {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 18px;
  background: #94a3b8;
}

.flow-icon-etching::after {
  left: 20px;
  right: 20px;
  bottom: 30px;
  height: 16px;
  background: linear-gradient(90deg, #67e8f9 0 42%, transparent 42% 58%, #67e8f9 58% 100%);
  box-shadow: 0 -10px 0 0 #a78bfa;
}

.flow-icon-deposition::before {
  inset: 10px 12px 12px;
  border: 4px solid #60a5fa;
  border-bottom-width: 8px;
}

.flow-icon-deposition::after {
  left: 20px;
  right: 20px;
  bottom: 12px;
  height: 16px;
  background: #94a3b8;
}

.flow-icon-implantation::before {
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 20px;
  background:
    radial-gradient(circle, #c4b5fd 0 2px, transparent 2.4px) 0 0 / 16px 10px repeat,
    #94a3b8;
}

.flow-icon-implantation::after {
  left: 24px;
  right: 24px;
  top: 10px;
  height: 20px;
  background:
    linear-gradient(180deg, transparent 0 30%, #7dd3fc 30% 34%, transparent 34% 100%) 0 0 / 33.33% 100% repeat-x;
}

.flow-icon-cmp::before {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 16px;
  background: #94a3b8;
}

.flow-icon-cmp::after {
  left: 12px;
  right: 12px;
  top: 18px;
  height: 14px;
  background:
    linear-gradient(180deg, rgba(226, 232, 240, 0.86), rgba(226, 232, 240, 0.86)) center 0 / 100% 4px no-repeat,
    linear-gradient(90deg, transparent 0 8%, #60a5fa 8% 22%, transparent 22% 34%, #60a5fa 34% 52%, transparent 52% 66%, #60a5fa 66% 82%, transparent 82% 100%) center 100% / 100% 8px no-repeat;
}

.flow-icon-metallization::before {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 16px;
  background: #94a3b8;
}

.flow-icon-metallization::after {
  inset: 10px 14px 22px;
  background:
    linear-gradient(90deg, #dbeafe 0 40%, transparent 40% 52%, #dbeafe 52% 100%) 0 0 / 100% 6px no-repeat,
    linear-gradient(90deg, #dbeafe 0 58%, transparent 58% 72%, #dbeafe 72% 100%) 0 18px / 100% 6px no-repeat,
    linear-gradient(180deg, transparent 0 18%, #dbeafe 18% 78%, transparent 78% 100%) 50% 50% / 10px 100% no-repeat;
}

.flow-icon-packaging::before {
  left: 44px;
  right: 44px;
  top: 10px;
  height: 18px;
  background: #60a5fa;
  box-shadow: 0 10px 0 #a78bfa;
}

.flow-icon-packaging::after {
  left: 24px;
  right: 24px;
  bottom: 12px;
  height: 14px;
  background:
    radial-gradient(circle, #dbeafe 0 4px, transparent 4.2px) 0 0 / 18px 12px repeat,
    #94a3b8;
}

.flow-arrow {
  min-width: 28px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.process-visual-main {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.76));
}

.process-visual-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.process-visual-head h3 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.process-visual-change {
  max-width: 320px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  color: #e0f2fe;
  background: rgba(8, 145, 178, 0.14);
  border: 1px solid rgba(103, 232, 249, 0.18);
}

.process-visual-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.process-visual-canvas {
  min-height: 480px;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(6, 11, 24, 0.96), rgba(2, 6, 23, 0.86));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.process-visual-svg {
  width: 100%;
  height: 100%;
  min-height: 458px;
}

.process-visual-svg .wafer-svg-large {
  width: 100%;
  height: 100%;
  min-height: 458px;
  display: block;
}

.process-visual-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process-visual-summary {
  padding: 18px 20px;
}

.process-visual-summary h4,
.process-note-card h4 {
  margin: 0 0 10px;
}

.process-visual-summary p {
  margin: 0;
  line-height: 1.75;
}

.process-visual-notes {
  display: grid;
  gap: 14px;
}

.process-note-card {
  padding: 18px 20px;
}

.process-note-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.process-note-card li + li {
  margin-top: 8px;
}

.wafer-svg-large .svg-board {
  fill: rgba(8, 15, 30, 0.92);
  stroke: rgba(148, 163, 184, 0.24);
  stroke-width: 3;
}

.wafer-svg-large .svg-substrate {
  fill: #94a3b8;
  stroke: #e2e8f0;
  stroke-width: 4;
}

.wafer-svg-large .svg-oxide {
  fill: #67e8f9;
  stroke: #e0f2fe;
  stroke-width: 4;
}

.wafer-svg-large .svg-resist {
  fill: #a78bfa;
  stroke: #ede9fe;
  stroke-width: 4;
}

.wafer-svg-large .svg-film {
  fill: #60a5fa;
  stroke: #dbeafe;
  stroke-width: 4;
}

.wafer-svg-large .svg-metal,
.wafer-svg-large .svg-via,
.wafer-svg-large .svg-bump,
.wafer-svg-large .svg-pad {
  fill: #dbeafe;
  stroke: #f8fafc;
  stroke-width: 4;
}

.wafer-svg-large .svg-ion {
  fill: #c4b5fd;
  stroke: #f5f3ff;
  stroke-width: 2.2;
}

.wafer-svg-large .svg-arrow {
  fill: none;
  stroke: #7dd3fc;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wafer-svg-large .svg-surface-before,
.wafer-svg-large .svg-trench-line,
.wafer-svg-large .svg-outline-line {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wafer-svg-large .svg-surface-after {
  stroke: #f8fafc;
  stroke-width: 5;
  stroke-linecap: round;
}

.wafer-svg-large .svg-machine {
  fill: rgba(226, 232, 240, 0.22);
  stroke: rgba(226, 232, 240, 0.6);
  stroke-width: 2.5;
}

.wafer-svg-large .svg-label-box {
  fill: rgba(2, 6, 23, 0.78);
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1.8;
}

.wafer-svg-large .svg-label,
.wafer-svg-large .svg-caption,
.wafer-svg-large .svg-small-label {
  fill: #f8fafc;
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: rgba(2, 6, 23, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.wafer-svg-large .svg-label {
  font-size: 17px;
}

.wafer-svg-large .svg-caption {
  font-size: 13px;
  fill: #dbeafe;
}

.wafer-svg-large .svg-small-label {
  font-size: 12px;
  fill: #e2e8f0;
  stroke-width: 3px;
}

.svg-panel {
  fill: rgba(8, 15, 30, 0.92);
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 2;
}

.svg-substrate {
  fill: #94a3b8;
  stroke: #cbd5e1;
  stroke-width: 3.2;
}

.svg-oxide {
  fill: #67e8f9;
  stroke: #bae6fd;
  stroke-width: 3;
}

.svg-oxide-outline {
  fill: none;
  stroke: #67e8f9;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-resist {
  fill: #a78bfa;
  stroke: #ddd6fe;
  stroke-width: 3;
}

.svg-film {
  fill: #60a5fa;
  stroke: #dbeafe;
  stroke-width: 3;
}

.svg-arrow {
  fill: none;
  stroke: #7dd3fc;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-ion {
  fill: #c4b5fd;
  stroke: #f5f3ff;
  stroke-width: 1.8;
}

.svg-cmp-before {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 6;
  stroke-linecap: round;
}

.svg-cmp-after {
  stroke: #e2e8f0;
  stroke-width: 4.6;
  stroke-linecap: round;
}

.svg-cmp-pad {
  fill: rgba(226, 232, 240, 0.3);
  stroke: #cbd5e1;
  stroke-width: 1.8;
}

.svg-dielectric {
  fill: #60a5fa;
  opacity: 0.68;
  stroke: #bfdbfe;
  stroke-width: 2.8;
}

.svg-metal,
.svg-via,
.svg-bump,
.svg-lead {
  fill: #dbeafe;
  stroke: #e2e8f0;
  stroke-width: 3;
}

.svg-package-body {
  fill: #60a5fa;
  stroke: #bfdbfe;
  stroke-width: 3;
}

.svg-die {
  fill: #a78bfa;
  stroke: #ede9fe;
  stroke-width: 2.6;
}

.svg-etch-line {
  stroke: #f8fafc;
  stroke-width: 3.2;
  stroke-dasharray: 6 4;
}

.svg-label,
.svg-caption {
  fill: #e2e8f0;
  font-family: "Pretendard", sans-serif;
  font-size: 11px;
  font-weight: 600;
  dominant-baseline: middle;
  paint-order: stroke fill;
  stroke: rgba(2, 6, 23, 0.94);
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(15, 23, 42, 0.65));
}

.svg-caption {
  fill: #cbd5e1;
  font-size: 10px;
  font-weight: 500;
  stroke-width: 3px;
}

.svg-label {
  fill: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  stroke-width: 4px;
}

.svg-callout {
  stroke: #e2e8f0;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.process-grid .accordion-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.process-grid .accordion-card.is-linked {
  border-color: rgba(125, 211, 252, 0.38);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.08),
    0 14px 26px rgba(6, 182, 212, 0.08);
  transform: translateY(-1px);
}

.accordion-card {
  padding: 18px;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
}

.plus {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  transition: transform 220ms ease, color 180ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.38);
}

.accordion-trigger.is-open .plus {
  transform: rotate(180deg);
  color: var(--accent-purple);
}

.accordion-card .expand-panel {
  margin-top: 14px;
}

.process-mini-diagram,
.equipment-diagram {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.equipment-diagram {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-card {
  margin-bottom: 18px;
}

.glossary-search-hero {
  align-items: stretch;
}

.glossary-engine-section {
  padding-top: 16px;
}

.learning-search-card {
  padding: 28px;
  border-color: rgba(34, 211, 238, 0.18);
}

.local-agent-section {
  padding-top: 10px;
}

.local-agent-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-color: rgba(96, 165, 250, 0.16);
}

.local-agent-form {
  display: grid;
  gap: 10px;
}

.local-agent-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.local-agent-input {
  min-height: 62px;
  padding: 18px 22px;
  border-radius: 999px;
  font-size: 1.03rem;
}

.local-agent-submit {
  min-height: 58px;
  white-space: nowrap;
}

.local-agent-response {
  display: grid;
  margin-top: 18px;
}

.local-agent-answer-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.local-agent-core {
  border-color: rgba(96, 165, 250, 0.16);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(2, 6, 23, 0.28));
}

.local-agent-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.learning-search-input {
  min-height: 62px;
  padding: 18px 22px;
  border-radius: 999px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.learning-search-suggestions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.learning-search-suggestions > span {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.learning-search-memory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.learning-search-memory > div {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.learning-search-memory span {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 750;
}

.learning-search-memory .is-empty {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.learning-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.learning-result-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

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

.learning-result-action-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.learning-result-title {
  display: grid;
  gap: 6px;
}

.learning-result-title h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.18rem;
  line-height: 1.35;
}

.learning-result-title span {
  color: var(--accent-cyan);
  font: 700 0.78rem/1.4 "Orbitron", sans-serif;
}

.learning-result-tags,
.learning-related-row,
.learning-keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-result-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  background: rgba(34, 211, 238, 0.055);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.learning-result-summary {
  margin: 0;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.55;
}

.learning-result-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.68;
}

.learning-result-block {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.28);
}

.learning-result-block strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}

.learning-path-block {
  border-color: rgba(34, 211, 238, 0.16);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(15, 23, 42, 0.28));
}

.learning-path-label {
  color: var(--text-primary);
  font-weight: 750;
}

.learning-empty-note {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.learning-related-row button,
.learning-favorite-button,
.learning-keyword-row span,
.knowledge-bridge-link,
.community-knowledge-links a {
  min-height: 31px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.42);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.learning-related-row button {
  cursor: pointer;
}

.learning-related-row button:hover,
.learning-related-row button:focus-visible,
.learning-favorite-button:hover,
.learning-favorite-button:focus-visible,
.learning-favorite-button.is-active {
  color: var(--text-primary);
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
}

.learning-favorite-button {
  cursor: pointer;
}

.learning-section-link {
  justify-self: start;
}

.knowledge-bridge-block {
  border-color: rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.055), rgba(15, 23, 42, 0.3));
}

.knowledge-bridge-row,
.community-knowledge-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-community-search-card {
  grid-column: 1 / -1;
}

.search-community-bridge {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.search-community-bridge > span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.knowledge-post-link {
  display: grid;
  gap: 3px;
  min-width: min(100%, 220px);
  max-width: 320px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-secondary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.knowledge-post-link span {
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.knowledge-post-link strong {
  color: var(--text-primary);
  font-size: 0.84rem;
  line-height: 1.35;
}

.ad-slot {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 84px;
  padding: 14px 18px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.28);
  color: var(--text-muted);
  text-align: center;
  overflow: hidden;
}

.ad-slot-card {
  grid-column: 1 / -1;
  width: 100%;
}

.ad-slot-label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.ad-slot strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.3;
}

.ad-slot small {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.ad-slot-community,
.ad-slot-community-detail {
  min-height: 72px;
}

.ad-slot-mobile-bottom {
  display: none;
  min-height: 54px;
  margin-top: 16px;
  margin-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 12px;
}

.knowledge-bridge-link,
.community-knowledge-links a {
  text-decoration: none;
  color: var(--text-secondary);
  line-height: 1.25;
}

.knowledge-post-link:hover,
.knowledge-post-link:focus-visible,
.knowledge-bridge-link:hover,
.knowledge-bridge-link:focus-visible,
.community-knowledge-links a:hover,
.community-knowledge-links a:focus-visible {
  color: var(--text-primary);
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
}

.glossary-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 18px;
}

.glossary-toggle {
  min-width: 220px;
}

.collapsible-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  pointer-events: none;
  transition: max-height 320ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.collapsible-panel.is-open {
  max-height: 20000px;
  opacity: 1;
  margin-top: 6px;
  pointer-events: auto;
}

.search-label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

.qa-item {
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.qa-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.qa-item p {
  margin: 0;
}

.qa-item p + p {
  margin-top: 8px;
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.48);
  color: var(--text-primary);
  outline: none;
}

.search-input:focus {
  border-color: rgba(124, 58, 237, 0.32);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.search-hint {
  margin: 10px 0 0;
}

.search-meta {
  margin: 8px 0 0;
  color: var(--accent-cyan);
  font-size: 0.94rem;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.search-filter {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.search-filter:hover,
.search-filter:focus-visible,
.search-filter.is-active {
  transform: translateY(-1px);
  color: var(--text-primary);
  border-color: rgba(124, 58, 237, 0.3);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.06)),
    rgba(2, 6, 23, 0.46);
}

.advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-chip-line {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.advanced-diagram {
  position: relative;
  min-height: 170px;
  margin-top: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.62));
  overflow: hidden;
}

.tsv-diagram .stack,
.tsv-diagram .via,
.hbm-diagram .logic-base,
.hbm-diagram .memory-die,
.package3d-diagram .chip,
.package3d-diagram .interposer,
.package3d-diagram .substrate,
.chiplet-diagram .chiplet-block,
.chiplet-diagram .chiplet-link,
.photonics-diagram .electrical-chip,
.photonics-diagram .waveguide,
.photonics-diagram .light-pulse,
.photonics-diagram .optical-io {
  position: absolute;
}

.tsv-diagram .stack {
  left: 34px;
  right: 34px;
  height: 22px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.82), rgba(59, 130, 246, 0.58));
}

.tsv-diagram .stack-top { top: 26px; }
.tsv-diagram .stack-mid { top: 66px; }
.tsv-diagram .stack-bottom { top: 106px; }
.tsv-diagram .via {
  top: 20px;
  bottom: 20px;
  width: 10px;
  background: rgba(196, 181, 253, 0.96);
}
.tsv-diagram .via-left { left: 82px; }
.tsv-diagram .via-right { right: 82px; }

.hbm-diagram .logic-base {
  left: 28px;
  right: 28px;
  bottom: 20px;
  height: 26px;
  background: rgba(96, 165, 250, 0.78);
}

.hbm-diagram .memory-die {
  left: 62px;
  right: 62px;
  height: 18px;
  background: rgba(167, 139, 250, 0.84);
}

.hbm-diagram .die-1 { bottom: 54px; }
.hbm-diagram .die-2 { bottom: 76px; }
.hbm-diagram .die-3 { bottom: 98px; }
.hbm-diagram .die-4 { bottom: 120px; }

.package3d-diagram .chip {
  top: 30px;
  width: 60px;
  height: 38px;
  background: rgba(196, 181, 253, 0.86);
}

.package3d-diagram .chip-left { left: 32px; }
.package3d-diagram .chip-right { right: 32px; }

.package3d-diagram .interposer {
  left: 20px;
  right: 20px;
  bottom: 52px;
  height: 24px;
  background: rgba(103, 232, 249, 0.78);
}

.package3d-diagram .substrate {
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 20px;
  background: rgba(148, 163, 184, 0.42);
}

.chiplet-diagram .chiplet-block {
  width: 64px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.85rem;
}

.chiplet-diagram .cpu { top: 24px; left: 34px; background: rgba(103, 232, 249, 0.78); }
.chiplet-diagram .io { top: 24px; right: 34px; background: rgba(191, 219, 254, 0.82); }
.chiplet-diagram .ai { bottom: 26px; left: calc(50% - 32px); background: rgba(167, 139, 250, 0.82); }

.chiplet-diagram .chiplet-link {
  background: rgba(226, 232, 240, 0.85);
}

.chiplet-diagram .link-h {
  top: 44px;
  left: 98px;
  right: 98px;
  height: 4px;
}

.chiplet-diagram .link-v {
  top: 48px;
  left: calc(50% - 2px);
  width: 4px;
  bottom: 70px;
}

.photonics-diagram .electrical-chip,
.photonics-diagram .optical-io {
  top: 62px;
  width: 72px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.78);
}

.photonics-diagram .electrical-chip { left: 24px; }
.photonics-diagram .optical-io { right: 24px; background: rgba(167, 139, 250, 0.8); }

.photonics-diagram .waveguide {
  left: 96px;
  right: 96px;
  top: 80px;
  height: 6px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.98), rgba(255, 255, 255, 0.96), rgba(167, 139, 250, 0.98));
}

.photonics-diagram .light-pulse {
  top: 73px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.48);
}

.photonics-diagram .pulse-1 { left: 126px; }
.photonics-diagram .pulse-2 { right: 126px; }

.roadmap-visual {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-visual div {
  text-align: center;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-card {
  display: grid;
  gap: 18px;
}

.extra-quiz-grid {
  margin-top: 18px;
}

.quiz-question {
  margin-top: 0;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.quiz-options button {
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  width: fit-content;
  flex: 0 0 auto;
  white-space: nowrap;
  position: relative;
}

.button::after,
.related-chip-row a::after,
.search-filter::after,
.quiz-options button::after,
.toggle-button::after {
  content: "tap";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.24);
  color: #bae6fd;
  font-size: 0.6rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.related-chip-row a,
.search-filter,
.accordion-trigger,
.process-flow-step {
  cursor: pointer;
  position: relative;
}

.process-flow-step::after {
  content: "tap";
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.24);
  color: #bae6fd;
  font-size: 0.6rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.quiz-options button.correct {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
}

.quiz-options button.wrong {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
}

.quiz-feedback {
  margin: 0;
}

.quiz-explanations {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.quiz-explanation {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.quiz-explanation strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-cyan);
}

.domestic-company-card {
  margin-top: 18px;
  padding: 20px;
}

.section-heading-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading-inline::after,
.section-heading-inline h3::before {
  display: none;
}

.domestic-company-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-strip,
.highlight-box,
.info-table-wrap,
.merge-hero-card {
  padding: 22px 24px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-strip div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.summary-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-cyan);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.95rem;
}

.learning-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.path-guide-card {
  min-height: 210px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.path-guide-card::after {
  width: 72px;
  height: 72px;
  opacity: 0.9;
}

.search-path-card {
  border-color: rgba(96, 165, 250, 0.22);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.07), rgba(34, 211, 238, 0.045)),
    var(--card-bg);
}

.path-step {
  width: 44px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--text-primary);
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(168, 85, 247, 0.16));
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.78rem;
}

.path-guide-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.path-guide-card p {
  margin: 0;
  max-width: 24ch;
  line-height: 1.64;
}

.learning-flow-card {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.1)),
    var(--card-bg);
}

.learning-flow-card h3,
.learning-flow-card p {
  margin: 0;
}

.learning-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.learning-flow-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.34);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.learning-flow-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.74rem;
}

.compact-list,
.check-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.compact-list li + li,
.check-list li + li {
  margin-top: 8px;
}

.highlight-box {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(124, 58, 237, 0.12)),
    rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(103, 232, 249, 0.16);
}

.highlight-box h3,
.merge-hero-card h2,
.info-table-wrap h3 {
  margin-top: 0;
}

.highlight-box p:last-child,
.merge-hero-card p:last-child {
  margin-bottom: 0;
}

.ai-top-category {
  margin-top: 34px;
}

.ai-top-category .section-heading {
  margin-bottom: 18px;
}

.ai-top-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ai-rank-card {
  min-height: 380px;
  padding: 25px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ai-rank-card h3 {
  margin: 2px 0 0;
  font-size: 1.22rem;
}

.ai-rank-card p {
  margin: 0;
  line-height: 1.72;
}

.ai-rank-card .compact-list {
  margin-top: auto;
  padding-top: 10px;
  line-height: 1.66;
}

.ai-rank-badge {
  width: fit-content;
  min-width: 42px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: inset 0 0 14px rgba(34, 211, 238, 0.06);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

html[data-theme="overtone"] .ai-rank-badge {
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(255, 43, 214, 0.18));
  border-color: rgba(255, 43, 214, 0.28);
  box-shadow:
    inset 0 0 16px rgba(0, 229, 255, 0.08),
    0 0 18px rgba(255, 43, 214, 0.08);
}

.ai-selection-brief {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ai-selection-brief > div {
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(4, 12, 30, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.ai-selection-brief h3,
.ai-selection-brief p {
  margin: 0;
}

.ai-selection-brief h3 {
  margin-top: 12px;
  font-size: 1.02rem;
}

.ai-selection-brief p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.66;
}

.ai-brief-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--accent-cyan);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(124, 58, 237, 0.1)),
    rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.ai-category-nav {
  margin: 24px 0 30px;
}

.ai-market-grid {
  margin: 24px 0 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ai-market-axis {
  padding: 20px 18px;
  min-height: 145px;
  position: relative;
  overflow: hidden;
}

.ai-market-axis::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -28px;
  top: -24px;
  border-radius: 26px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.ai-market-axis span {
  display: inline-flex;
  color: var(--accent-cyan);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.ai-market-axis strong {
  display: block;
  margin-top: 12px;
  line-height: 1.45;
  color: var(--text);
}

.ai-market-axis p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.ai-tool-category {
  margin-top: 46px;
  scroll-margin-top: 120px;
}

.ai-tool-category .section-heading {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ai-tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ai-tool-card {
  min-height: 360px;
  padding: 22px 21px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ai-tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ai-tool-card .compact-list {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.94rem;
  line-height: 1.62;
}

.ai-tool-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ai-tool-head h3 {
  margin: 7px 0 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.ai-logo-badge {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #dffbff;
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(124, 58, 237, 0.16)),
    rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(125, 211, 252, 0.24);
  box-shadow:
    inset 0 0 22px rgba(34, 211, 238, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.22);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.ai-logo-badge.has-real-logo {
  overflow: hidden;
  padding: 9px;
  color: #0f172a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.9)),
    rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(56, 189, 248, 0.08);
}

.ai-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.16));
}

.ai-logo-fallback {
  display: none;
}

.ai-logo-badge.is-logo-fallback {
  padding: 0;
  color: #dffbff;
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(124, 58, 237, 0.16)),
    rgba(2, 6, 23, 0.56);
}

.ai-logo-badge.is-logo-fallback .ai-logo-img {
  display: none;
}

.ai-logo-badge.is-logo-fallback .ai-logo-fallback {
  display: block;
}

html[data-theme="overtone"] .ai-logo-badge,
html[data-theme="overtone"] .ai-brief-icon {
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(255, 43, 214, 0.18), rgba(124, 58, 237, 0.16)),
    rgba(5, 4, 18, 0.68);
  border-color: rgba(255, 43, 214, 0.25);
  box-shadow:
    inset 0 0 24px rgba(0, 229, 255, 0.1),
    0 0 24px rgba(255, 43, 214, 0.08);
}

html[data-theme="overtone"] .ai-logo-badge.has-real-logo {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 245, 255, 0.92)),
    rgba(248, 250, 252, 0.94);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 22px rgba(0, 229, 255, 0.18),
    0 0 26px rgba(255, 43, 214, 0.12);
}

.ai-platform-guide-note {
  color: var(--muted);
  line-height: 1.7;
}

.software-language-cta {
  margin-top: 24px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(124, 58, 237, 0.12)),
    var(--card-bg);
}

.software-language-cta h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.28;
}

.software-language-cta p {
  margin: 0;
  max-width: 74ch;
  line-height: 1.72;
}

.software-language-cta .cta-button {
  flex: 0 0 auto;
  min-height: 54px;
  padding-inline: 24px;
}

.ai-route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ai-route-card {
  min-height: 238px;
  text-decoration: none;
}

.ai-route-card h3 {
  margin-top: 14px;
}

.ai-route-card p {
  margin-bottom: 0;
  line-height: 1.7;
}

.info-table-wrap {
  overflow-x: auto;
}

.info-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--text-secondary);
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  color: var(--text-primary);
  font-family: "Orbitron", "Pretendard", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  background: rgba(2, 6, 23, 0.46);
}

.info-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.34);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.merge-hero-card {
  text-align: center;
}

.merge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.merge-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  text-align: left;
}

.merge-detail-grid .learning-card {
  height: 100%;
}

.language-quality-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.language-quality-grid .learning-card {
  height: 100%;
}

.role-grid,
.language-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.language-card h3,
.role-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.language-card h3 span,
.role-card h3 span {
  color: var(--accent-cyan);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-note {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.searchable.is-hidden {
  display: none;
}

.search-empty {
  margin-top: 18px;
  padding: 20px 24px;
  text-align: center;
}

.search-empty h3 {
  margin: 0 0 8px;
}

.glossary-grid .glossary-item,
.glossary-grid-primary .glossary-item,
.search-card,
.search-empty {
  padding-left: 24px;
  padding-right: 20px;
}

.glossary-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.glossary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.glossary-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.glossary-tag-major {
  color: #e0f2fe;
  background: rgba(8, 145, 178, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.28);
}

.glossary-tag-minor {
  color: #d8b4fe;
  background: rgba(91, 33, 182, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.glossary-item h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 36px 0 calc(44px + env(safe-area-inset-bottom, 0px));
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
}

.footer-copy {
  min-width: 0;
  max-width: 74ch;
}

.footer-credit {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-note {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 62ch;
}

.footer-platform-meta {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-ai-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
  max-width: 78ch;
}

.footer-source-ratio,
.footer-source-tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.footer-source-label,
.footer-tech-label {
  color: var(--text-primary);
  font-weight: 700;
}

.footer-source-list,
.footer-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-ratio-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  color: var(--text-secondary);
}

.pwa-guide-panel {
  flex: 1 0 100%;
  max-width: 520px;
  margin-left: auto;
  padding: 12px 14px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 16px;
  background: rgba(6, 12, 26, 0.78);
  color: var(--text-secondary);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.16);
}

.pwa-guide-panel[hidden] {
  display: none;
}

.pwa-guide-panel strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.pwa-guide-panel p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-legal-links a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--accent-cyan);
}

.footer-legal-disclaimer {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-page .legal-document {
  padding: clamp(22px, 3vw, 30px);
}

.legal-document h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.legal-document h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
}

.legal-document p,
.legal-document li {
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-meta {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal-document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.22);
}

.auth-consent-row input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.auth-consent-row a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mypage-privacy-card {
  margin-top: 0;
}

.mypage-privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.content-legal-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-color: rgba(34, 211, 238, 0.18);
  background: rgba(6, 182, 212, 0.06);
}

.content-legal-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

.community-policy-note a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-legal-hint {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.auth-legal-hint a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.legal-document-page .platform-learning-summary,
body.legal-document-page .platform-balanced-depth,
body.legal-document-page .learning-compass,
body.legal-document-page .ad-slot,
body.legal-document-page .ad-slot-mobile-bottom,
body.legal-document-page .footer-platform-meta,
body.legal-document-page .pwa-guide-panel {
  display: none !important;
}

.footer-actions {
  flex: 0 0 auto;
  align-self: flex-end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-button {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.92);
  color: var(--text-primary);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(34, 211, 238, 0.06);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 14px, 0);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.app-toast[data-type="success"] {
  border-color: rgba(34, 197, 94, 0.28);
}

.app-toast[data-type="warning"] {
  border-color: rgba(251, 191, 36, 0.32);
}

html[data-theme="overtone"] .app-toast {
  border-color: rgba(0, 255, 255, 0.28);
  background: rgba(13, 0, 37, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 24px rgba(0, 255, 255, 0.12);
}

.offline-hero {
  min-height: calc(100vh - 240px);
  align-items: center;
}

.learning-compass {
  --compass-tab-width: 33px;
  --compass-tab-visible: 28px;
  position: fixed;
  top: 50%;
  right: 8px;
  z-index: 24;
  width: 282px;
  height: auto;
  max-height: min(458px, calc(100vh - 96px));
  padding: 14px 14px 14px calc(var(--compass-tab-width) + 11px);
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  align-content: start;
  background:
    linear-gradient(180deg, #070b13 0%, #04070d 100%);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transform: translate3d(0, -50%, 0);
  transition: transform 260ms ease, box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
}

html[data-theme="overtone"] .learning-compass {
  background:
    linear-gradient(180deg, #160030 0%, #0d001f 100%);
}

.learning-compass.is-collapsed {
  transform: translate3d(calc(100% - var(--compass-tab-visible)), -50%, 0);
}

.learning-compass-toggle {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--compass-tab-width);
  height: auto;
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  border-right: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 16px 0 0 16px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.44), rgba(15, 23, 42, 0.36)),
    rgba(4, 7, 13, 0.86);
  color: rgba(83, 98, 117, 0.42);
  cursor: pointer;
  box-shadow: -6px 0 22px rgba(0, 0, 0, 0.3);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.learning-compass-toggle:hover,
.learning-compass-toggle:focus-visible {
  color: rgba(107, 124, 146, 0.54);
  background:
    linear-gradient(180deg, rgba(51, 65, 85, 0.5), rgba(15, 23, 42, 0.46)),
    rgba(5, 9, 17, 0.94);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.34);
}

html[data-theme="overtone"] .learning-compass-toggle {
  border-right-color: rgba(0, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 204, 0.18)),
    rgba(18, 0, 52, 0.84);
  color: rgba(102, 82, 136, 0.48);
  box-shadow: -8px 0 28px rgba(255, 0, 204, 0.13), -4px 0 22px rgba(0, 255, 255, 0.11);
}

html[data-theme="overtone"] .learning-compass-toggle:hover,
html[data-theme="overtone"] .learning-compass-toggle:focus-visible {
  color: rgba(132, 100, 168, 0.62);
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.3), rgba(255, 0, 204, 0.26)),
    rgba(26, 0, 70, 0.92);
  box-shadow: -10px 0 34px rgba(255, 0, 204, 0.2), -4px 0 28px rgba(0, 255, 255, 0.16);
}

.learning-compass-toggle-mark {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 12px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  color: currentColor;
  transform: translateX(-50%);
}

.learning-compass-chevron {
  position: relative;
  display: block;
  width: 4px;
  flex: 0 0 4px;
  min-height: 0;
  opacity: 0.3;
}

.learning-compass-chevron::before,
.learning-compass-chevron::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 3px;
  height: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.36), currentColor 52%, rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 1px 0 1px rgba(255, 255, 255, 0.035),
    inset -1px 0 2px rgba(0, 0, 0, 0.58),
    1px 0 1px rgba(0, 0, 0, 0.34);
  transform-origin: center center;
}

.learning-compass-chevron::before {
  bottom: 50%;
  transform: translateX(-50%) skewX(-7deg);
}

.learning-compass-chevron::after {
  top: 50%;
  transform: translateX(-50%) skewX(7deg);
}

.learning-compass.is-collapsed .learning-compass-toggle-mark {
  transform: translateX(-50%);
}

html[data-theme="overtone"] .learning-compass-chevron::before,
html[data-theme="overtone"] .learning-compass-chevron::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), currentColor 55%, rgba(0, 255, 255, 0.055));
  box-shadow:
    inset 1px 0 1px rgba(255, 0, 204, 0.06),
    inset -1px 0 2px rgba(0, 0, 0, 0.62),
    1px 0 1px rgba(0, 0, 0, 0.36);
}

.learning-compass-head {
  display: grid;
  gap: 4px;
}

.learning-compass-head strong {
  display: block;
}

.learning-folder-panel {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.28);
}

.learning-folder-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.66rem;
  line-height: 1.2;
}

.learning-folder-path a,
.learning-folder-up,
.learning-folder-items a {
  color: var(--text-secondary);
}

.learning-folder-path a.is-current {
  color: var(--text-primary);
  font-weight: 700;
}

.folder-separator {
  opacity: 0.42;
}

.learning-folder-up {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 10px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  background: rgba(34, 211, 238, 0.06);
  font-size: 0.68rem;
  line-height: 1.2;
}

.learning-folder-branch {
  min-width: 0;
}

.learning-folder-branch summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.learning-folder-branch summary::-webkit-details-marker {
  display: none;
}

.learning-folder-icon,
.learning-folder-file {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
}

.learning-folder-icon {
  width: 14px;
  height: 10px;
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.62), rgba(129, 140, 248, 0.46));
}

.learning-folder-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -3px;
  width: 7px;
  height: 4px;
  border-radius: 3px 3px 0 0;
  background: rgba(34, 211, 238, 0.48);
}

.learning-folder-items {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.learning-folder-items a {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 6px;
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(15, 23, 42, 0.28);
  font-size: 0.67rem;
  line-height: 1.18;
}

.learning-folder-file {
  width: 9px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(148, 163, 184, 0.08);
}

.learning-folder-items a:hover,
.learning-folder-items a:focus-visible,
.learning-folder-items a.is-active,
.learning-folder-up:hover,
.learning-folder-up:focus-visible {
  color: var(--text-primary);
  border-color: rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.1);
}

.textbook-summary-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.22fr) 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
}

.textbook-summary-card h3 {
  margin: 6px 0 0;
  font-size: 1.18rem;
}

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

.textbook-summary-grid div {
  min-height: 132px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.textbook-summary-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.textbook-summary-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.66;
}

.platform-learning-summary {
  scroll-margin-top: 120px;
}

.platform-balanced-depth {
  scroll-margin-top: 120px;
}

.balanced-depth-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.balanced-depth-card {
  min-height: 218px;
  padding: 22px;
}

.balanced-depth-card h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.balanced-depth-card .compact-list {
  padding-left: 16px;
  font-size: 0.92rem;
  line-height: 1.64;
}

.balanced-depth-card .compact-list li + li {
  margin-top: 7px;
}

.section > .section-heading,
.section.is-reading-section > .section-heading {
  position: relative;
}

.section > .section-heading::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 8px;
  width: 4px;
  height: calc(100% - 16px);
  min-height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0.14;
  box-shadow: none;
}

.section.is-reading-section > .section-heading::before {
  opacity: 0.24;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.1);
}

.platform-learning-summary .section-heading {
  margin-bottom: 18px;
}

.platform-interaction-grid {
  margin-top: 18px;
}

.quick-review-card,
.flip-term-card {
  min-height: 220px;
}

.learning-answer {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 14px;
  color: var(--text-primary);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.16);
}

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

.flip-card {
  position: relative;
  min-height: 112px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 200ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.flip-card:hover,
.flip-card:focus-visible {
  border-color: rgba(34, 211, 238, 0.26);
  box-shadow: var(--shadow-glow);
}

.flip-card.is-flipped {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  display: grid;
  align-items: center;
  min-height: 78px;
  backface-visibility: hidden;
  line-height: 1.5;
}

.flip-front {
  font-weight: 700;
  font-size: 1.05rem;
}

.flip-back {
  position: absolute;
  inset: 16px;
  color: var(--text-secondary);
  transform: rotateY(180deg);
}

.learning-route-card {
  margin-top: 18px;
  padding: 18px;
}

.learning-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.learning-route-link,
.learning-related-block {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.learning-route-link span,
.learning-related-block > span {
  color: var(--accent-cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-route-link strong {
  color: var(--text-primary);
  font-size: 1.04rem;
}

.search-suggestions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.search-suggestions > span {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
}

.search-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-suggestion-row button {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(15, 23, 42, 0.48);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.search-suggestion-row button:hover,
.search-suggestion-row button:focus-visible {
  color: var(--text-primary);
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.32);
}

.search-empty-recommendations {
  margin-top: 14px;
}

.search-empty-recommendations p {
  flex-basis: 100%;
  margin: 0 0 4px;
}

.language-track-group {
  display: grid;
  gap: 16px;
}

.language-track-group + .language-track-group {
  margin-top: 28px;
}

.language-track-header {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 0 4px;
}

.language-track-header h3,
.language-track-header p {
  margin: 0;
}

.language-track-header > p {
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.language-track-core .language-link-card {
  border-color: rgba(34, 211, 238, 0.28);
}

.language-track-support .language-link-card {
  border-color: rgba(124, 58, 237, 0.22);
}

.language-track-general .language-link-card {
  opacity: 0.96;
}

@media (max-width: 1100px) {
  .hero,
  .intro-grid,
  .process-grid,
  .materials-grid,
  .jobs-grid,
  .glossary-grid,
  .learning-search-results,
  .company-grid,
  .industry-structure-grid,
  .equipment-grid,
  .interview-grid,
  .support-grid,
  .ai-top-grid,
  .ai-tool-grid,
  .ai-market-grid,
  .ai-selection-brief,
  .ai-route-grid,
  .merge-detail-grid,
  .language-quality-grid,
  .diagram-grid,
  .roadmap-visual {
    grid-template-columns: 1fr;
  }

  .ai-rank-card,
  .ai-tool-card {
    min-height: 0;
  }

  .software-language-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .text-heavy {
    grid-column: auto;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .metric-list {
    grid-template-columns: 1fr;
  }

  .process-flow {
    gap: 8px;
  }

  .band-diagram-board,
  .domestic-company-grid,
  .advanced-grid,
  .summary-strip,
  .learning-path-grid,
  .balanced-depth-grid,
  .language-track-grid,
  .learning-route-grid,
  .role-grid,
  .industry-brief-grid,
  .textbook-summary-card,
  .textbook-summary-grid,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .industry-flow-card {
    grid-template-columns: 1fr;
  }

  .textbook-structure-head {
    grid-template-columns: 1fr;
  }

  .textbook-stage-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-track-header {
    grid-template-columns: 1fr;
  }

  .learning-flow-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-visual-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.24;
  }

  .hero h1 span,
  .hero-text span {
    white-space: normal;
  }

  .nav {
    border-radius: 28px;
    padding: 16px 18px;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .locale-menu {
    width: 210px;
  }

  .wafer-rig {
    right: -40px;
    width: 240px;
    height: 240px;
    opacity: 0.24;
  }

  .chip-array {
    left: -30px;
    width: 200px;
    height: 200px;
    opacity: 0.22;
  }

  .process-arm {
    left: 2%;
    top: 12%;
    width: 220px;
    height: 180px;
    opacity: 0.2;
  }

  .process-flow-intro,
  .section-heading-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-visual-head {
    flex-direction: column;
  }

.process-flow-step {
  min-width: 552px;
  width: 552px !important;
  flex: 0 0 552px !important;
  max-width: 552px;
}

.process-flow {
  align-items: start;
}

.process-flow-step {
  align-self: start;
  height: auto;
}

.flow-diagram {
  display: flex !important;
  width: 100%;
  min-height: 118px;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: hidden;
  padding: 0 6px 2px 0;
}

.wafer-svg {
  display: block !important;
  width: 100% !important;
  height: 118px !important;
  min-height: 118px !important;
  max-height: 118px;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.wafer-svg-inline {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
}

.process-flow-step .svg-panel {
  fill: rgba(8, 15, 30, 0.96);
  stroke: rgba(148, 163, 184, 0.28);
  stroke-width: 2;
}

.process-flow-step svg,
.process-flow-step svg *,
.process-flow-step .flow-diagram * {
  opacity: 1 !important;
  visibility: visible !important;
}

.process-flow-step rect,
.process-flow-step path,
.process-flow-step line,
.process-flow-step circle,
.process-flow-step text {
  display: block;
}

.mini-wafer-card {
  display: grid;
  gap: 8px;
  width: 100%;
}

.mini-wafer-title {
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-wafer-copy {
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.45;
}

.mini-wafer {
  position: relative;
  height: 60px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.7));
  overflow: hidden;
}

.mini-layer {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 6px;
}

.mini-layer-substrate {
  bottom: 8px;
  height: 20px;
  background: #94a3b8;
}

.mini-layer-oxide {
  bottom: 30px;
  height: 8px;
  background: #67e8f9;
}

.mini-layer-resist {
  bottom: 40px;
  height: 10px;
  background: #a78bfa;
}

.mini-layer-resist.pattern {
  clip-path: polygon(0 100%, 0 15%, 22% 15%, 22% 100%, 40% 100%, 40% 15%, 58% 15%, 58% 100%, 76% 100%, 76% 15%, 100% 15%, 100% 100%);
}

.mini-wafer-etching .mini-layer-substrate.etched,
.mini-wafer-etching .mini-layer-oxide.etched,
.mini-wafer-deposition .mini-layer-substrate.etched {
  clip-path: polygon(0 100%, 0 0, 38% 0, 38% 100%, 48% 100%, 48% 0, 100% 0, 100% 100%);
}

.mini-layer-film {
  bottom: 26px;
  height: 16px;
  background: #60a5fa;
}

.mini-layer-film.cover {
  clip-path: polygon(0 100%, 0 25%, 34% 25%, 34% 100%, 52% 100%, 52% 25%, 100% 25%, 100% 100%);
}

.mini-ion {
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 10px rgba(196, 181, 253, 0.42);
}

.ion-1 { left: 20px; }
.ion-2 { left: 50%; transform: translateX(-50%); }
.ion-3 { right: 20px; }

.mini-wafer-cmp .mini-layer-film.bumpy {
  left: 8px;
  right: 8px;
  bottom: 24px;
  height: 18px;
  background: #60a5fa;
  clip-path: polygon(0 75%, 12% 45%, 24% 70%, 38% 35%, 50% 65%, 64% 28%, 78% 58%, 100% 38%, 100% 100%, 0 100%);
}

.mini-layer-flat {
  left: 8px;
  right: 8px;
  top: 12px;
  height: 4px;
  background: #f8fafc;
  border-radius: 999px;
}

.mini-line,
.mini-via {
  position: absolute;
  background: #dbeafe;
}

.mini-line {
  left: 16px;
  right: 16px;
  height: 5px;
  border-radius: 999px;
}

.mini-line-top { top: 14px; }
.mini-line-bottom { top: 34px; }

.mini-via {
  top: 19px;
  width: 6px;
  height: 20px;
  border-radius: 999px;
}

.mini-via-1 { left: 42px; }
.mini-via-2 { right: 42px; }

.mini-package-body,
.mini-package-die,
.mini-package-substrate,
.mini-package-ball {
  position: absolute;
}

.mini-package-body {
  left: 18px;
  right: 18px;
  top: 10px;
  height: 20px;
  border-radius: 8px;
  background: #60a5fa;
}

.mini-package-die {
  left: calc(50% - 16px);
  top: 15px;
  width: 32px;
  height: 10px;
  border-radius: 4px;
  background: #a78bfa;
}

.mini-package-substrate {
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 10px;
  border-radius: 6px;
  background: #94a3b8;
}

.mini-package-ball {
  bottom: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dbeafe;
}

.ball-1 { left: 30px; }
.ball-2 { left: calc(50% - 4px); }
.ball-3 { right: 30px; }

.process-flow-step .svg-label,
.process-flow-step .svg-caption {
  opacity: 1;
  visibility: visible;
  fill: #f8fafc;
  paint-order: stroke fill;
  stroke: rgba(2, 6, 23, 0.96);
  stroke-linejoin: round;
}

.process-flow-step .svg-label {
  font-size: 11.5px;
  font-weight: 700;
  stroke-width: 4px;
}

.process-flow-step .svg-caption {
  font-size: 10px;
  font-weight: 600;
  fill: #dbeafe;
  stroke-width: 3px;
}
}

@media (max-width: 640px) {
  :root {
    --shell-width: min(100vw - 28px, 1120px);
  }

  body {
    zoom: 1;
  }

  .site-header {
    padding-top: 14px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  .locale-switcher {
    margin-left: 0;
    align-self: stretch;
  }

  .theme-switcher {
    align-self: stretch;
    width: 100%;
  }

  .auth-switcher {
    align-self: stretch;
    width: 100%;
  }

  .auth-trigger {
    width: 100%;
    justify-content: center;
  }

  .auth-account-menu {
    position: absolute;
    left: 0;
    right: auto;
    width: min(100%, 250px);
  }

  .onboarding-modal {
    align-items: end;
    padding: 16px;
  }

  .onboarding-dialog {
    width: 100%;
    max-height: min(86vh, 720px);
    padding: 24px 18px 20px;
    border-radius: 26px 26px 18px 18px;
  }

  .onboarding-route-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-route {
    min-height: 0;
    padding: 16px;
  }

  .onboarding-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .onboarding-actions .button {
    width: 100%;
    justify-content: center;
  }

  .theme-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .locale-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .locale-menu {
    left: 0;
    right: auto;
    width: min(100%, 240px);
  }

  .theme-menu {
    left: 0;
    right: auto;
    width: min(100%, 286px);
  }

  .hero {
    padding-top: 48px;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    max-width: 100%;
  }

  .card {
    padding: 20px;
  }

  .card p,
  .section-heading p,
  .compact-list,
  .check-list {
    line-height: 1.66;
  }

  .learning-compass {
    --compass-tab-width: 30px;
    --compass-tab-visible: 25px;
    top: 50%;
    right: 6px;
    width: min(88vw, 273px);
    height: min(440px, calc(100vh - 96px));
    padding: 12px 12px 12px calc(var(--compass-tab-width) + 9px);
    gap: 8px;
  }

  .learning-compass-toggle {
    top: 0;
    bottom: 0;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .learning-compass-toggle-mark {
    top: 12px;
    bottom: 12px;
    width: 11px;
    gap: 3px;
  }

  .learning-compass-chevron {
    width: 3px;
    flex-basis: 3px;
  }

  .learning-compass-chevron::before,
  .learning-compass-chevron::after {
    width: 3px;
  }
  .learning-folder-panel {
    padding: 8px;
    gap: 6px;
  }

  .learning-folder-items a {
    min-height: 22px;
    font-size: 0.64rem;
  }

  .section > .section-heading::before,
  .section.is-reading-section > .section-heading::before {
    display: none;
  }

  .flip-card-row {
    grid-template-columns: 1fr;
  }

  .learning-route-link,
  .learning-related-block,
  .quick-review-card,
  .flip-term-card,
  .balanced-depth-card {
    min-height: 0;
  }

  .balanced-depth-card {
    padding: 18px;
  }

  .balanced-depth-card .compact-list {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .search-suggestion-row button,
  .learning-answer-toggle,
  .flip-card {
    min-height: 44px;
  }

  .hero h1 {
    font-size: clamp(1.78rem, 8vw, 2.45rem);
  }

  .hero h1 span,
  .hero-text span {
    white-space: normal;
  }

  .hero-tags {
    margin-bottom: 18px;
  }

  .hero-panel,
  .learning-card,
  .diagram-card,
  .quiz-card,
  .search-card,
  .learning-search-card,
  .learning-result-card,
  .process-flow-card,
  .roadmap-visual-card,
  .accordion-card {
    padding: 20px;
  }

  .learning-search-input {
    min-height: 56px;
    padding: 15px 18px;
    font-size: 0.98rem;
  }

  .local-agent-card,
  .local-agent-answer-card {
    padding: 20px;
  }

  .local-agent-input-row {
    grid-template-columns: 1fr;
  }

  .local-agent-input,
  .local-agent-submit {
    min-height: 54px;
    width: 100%;
  }

  .learning-search-memory {
    grid-template-columns: 1fr;
  }

  .learning-result-head {
    flex-direction: column;
  }

  .knowledge-post-link {
    width: 100%;
    max-width: 100%;
  }

  .ad-slot {
    min-height: 64px;
    padding: 12px;
    border-radius: 12px;
  }

  .ad-slot-mobile-bottom {
    display: grid;
  }

  .learning-result-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .diagram-header {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-button {
    min-height: 44px;
    padding: 11px 14px;
  }

  .pn-diagram,
  .process-mini-diagram,
  .equipment-diagram,
  .mos-terminals {
    grid-template-columns: 1fr;
  }

  .pn-barrier {
    width: auto;
    min-height: 70px;
  }

  .process-arm {
    display: none;
  }

  .wafer-rig {
    top: 10%;
    right: -70px;
  }

  .chip-array {
    bottom: 8%;
    left: -54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (hover: none) {
  .button:hover,
  .button:focus-visible,
  .card:not(.learning-compass):hover,
  .card:not(.learning-compass):focus-within {
    transform: none;
  }
}

@media (max-width: 720px) {
  .app-toast {
    width: calc(100vw - 28px);
    border-radius: 18px;
    font-size: 0.82rem;
  }

  .background-glow {
    filter: blur(42px);
    opacity: 0.06;
  }

  html[data-theme="overtone"] .background-glow {
    opacity: 0.14;
  }

  .equipment {
    opacity: 0.12;
    filter: none;
  }

  html[data-theme="overtone"] .equipment {
    opacity: 0.18;
    filter: none;
  }

  body::before,
  body::after,
  main::before {
    opacity: 0.12;
  }
}

/* Force horizontal process cards to use visible fixed-width flex tracks. */
.process-flow {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  padding-bottom: 8px !important;
}

.process-flow-step {
  min-width: 250px !important;
  width: 250px !important;
  max-width: 250px !important;
  flex: 0 0 250px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.flow-arrow {
  flex: 0 0 auto !important;
  align-self: center !important;
}

.process-flow-step {
  align-items: center !important;
}

.flow-diagram {
  justify-content: center !important;
  padding: 0 0 2px 0 !important;
}

.wafer-svg-inline {
  display: block !important;
  margin: 0 auto !important;
}

/* Final polish: make interactive cues feel intentional rather than patched-on. */
.button::after,
.related-chip-row a::after,
.toggle-button::after,
.process-flow-step::after {
  content: "" !important;
  flex: 0 0 auto !important;
  min-width: 7px !important;
  width: 7px !important;
  height: 7px !important;
  padding: 0 !important;
  margin-left: 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.88), rgba(124, 58, 237, 0.82)) !important;
  border: 0 !important;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.18) !important;
  opacity: 0.78 !important;
}

.process-flow-step::after {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  margin-left: 0 !important;
}

.search-filter::after,
.quiz-options button::after {
  content: none !important;
}

.button,
.related-chip-row a,
.toggle-button,
.accordion-trigger,
.process-flow-step,
.search-filter,
.quiz-options button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease !important;
}

.button:hover,
.button:focus-visible,
.related-chip-row a:hover,
.related-chip-row a:focus-visible,
.toggle-button:hover,
.toggle-button:focus-visible,
.accordion-trigger:hover,
.accordion-trigger:focus-visible,
.process-flow-step:hover,
.process-flow-step:focus-visible {
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
}

.process-flow-step strong,
.process-flow-step em {
  width: 100%;
  text-align: left;
}

.process-flow-step strong {
  margin-top: 2px;
}

.process-flow-card {
  overflow: hidden;
}

.process-flow::-webkit-scrollbar {
  height: 10px;
}

.process-flow::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.58);
  border-radius: 999px;
}

.process-flow::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.8), rgba(124, 58, 237, 0.72));
  border-radius: 999px;
}

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

.language-hub-grid-grouped {
  display: block;
}

.language-link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 208px;
  text-decoration: none;
  color: var(--text-primary);
}

.language-link-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.language-link-card p {
  margin: 0;
  color: var(--text-secondary);
}

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

.curriculum-step {
  position: relative;
  min-height: 168px;
  padding-top: 52px;
}

.curriculum-step h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.curriculum-step p {
  margin: 0;
  color: var(--text-secondary);
}

.step-number {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: rgba(8, 47, 73, 0.32);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 1080px) {
  .language-hub-grid,
  .curriculum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .language-hub-grid,
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
}

.software-pages .section-heading p,
.software-pages .learning-card p,
.software-pages .highlight-box p,
.software-pages .highlight-box li,
.software-pages .curriculum-step p,
.software-pages .language-link-card p,
.software-pages .summary-strip p,
.software-pages .info-table td,
.software-pages .info-table th,
.platform-refined .section-heading p,
.platform-refined .learning-card p,
.platform-refined .highlight-box p,
.platform-refined .highlight-box li,
.platform-refined .summary-strip p,
.platform-refined .info-table td,
.platform-refined .info-table th,
.platform-refined .related-links p {
  font-size: 0.95rem;
  line-height: 1.62;
}

.software-pages .section-heading p,
.software-pages .learning-card p,
.software-pages .highlight-box p,
.software-pages .curriculum-step p,
.software-pages .language-link-card p,
.platform-refined .section-heading p,
.platform-refined .learning-card p,
.platform-refined .highlight-box p,
.platform-refined .summary-strip p,
.platform-refined .related-links p {
  max-width: 66ch;
}

.platform-refined .section-heading,
.platform-refined .learning-card,
.platform-refined .summary-strip,
.platform-refined .related-links,
.platform-refined .info-table-wrap,
.platform-refined .highlight-box {
  align-items: flex-start;
}

.software-pages .section-heading h2 {
  max-width: 18ch;
}

.platform-refined .section-heading h2 {
  max-width: 20ch;
}

.software-pages .learning-card,
.software-pages .language-link-card,
.software-pages .curriculum-step,
.software-pages .info-table-wrap,
.software-pages .summary-strip,
.software-pages .highlight-box,
.platform-refined .learning-card,
.platform-refined .info-table-wrap,
.platform-refined .summary-strip,
.platform-refined .highlight-box,
.platform-refined .related-links {
  padding: 20px 22px;
}

.software-pages .summary-strip div,
.platform-refined .summary-strip div {
  padding: 14px 15px;
}

.software-pages .language-link-card {
  gap: 10px;
  min-height: 180px;
  justify-content: flex-start;
}

.software-pages .language-link-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  max-width: 16ch;
}

body[data-platform-page="languages"] .language-link-card {
  min-height: 208px;
  padding: 22px 22px 20px;
}

body[data-platform-page="languages"] .language-link-card h3 {
  max-width: 14ch;
}

body[data-platform-page="languages"] .language-link-card p {
  max-width: 34ch;
}

body[data-platform-page="languages"] .language-one-liner {
  max-width: 32ch;
}

.software-pages .curriculum-step {
  min-height: 156px;
  padding-top: 48px;
}

.software-pages .curriculum-step h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.software-pages .step-number {
  top: 16px;
  left: 16px;
  min-width: 38px;
  min-height: 28px;
  font-size: 0.76rem;
}

.software-pages .curriculum-step {
  min-height: 186px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.software-pages .curriculum-step .step-number {
  position: static;
  margin: 0;
  min-width: 40px;
  min-height: 30px;
  padding: 0 10px;
  flex: 0 0 auto;
}

.software-pages .curriculum-step h3 {
  margin: 0;
  max-width: 18ch;
}

.software-pages .curriculum-step p {
  max-width: 32ch;
}

.software-pages .info-table th,
.software-pages .info-table td {
  padding: 13px 14px;
  vertical-align: top;
}

.software-pages .role-card p {
  max-width: 60ch;
}

@media (max-width: 900px) {
  .software-pages .section-heading p,
  .software-pages .learning-card p,
  .software-pages .highlight-box p,
  .software-pages .curriculum-step p,
  .software-pages .language-link-card p {
    max-width: 54ch;
  }
}

.language-stat-grid {
  grid-template-columns: 1fr;
}

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

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.stat-card h3 {
  margin: 0;
}

.stat-card.compact {
  gap: 10px;
}

.stat-card.compact h3 {
  font-size: 1rem;
}

.stat-line {
  display: inline-grid;
  grid-template-columns: 104px minmax(180px, 248px) 28px;
  align-items: center;
  gap: 8px;
  justify-content: start;
  width: fit-content;
  max-width: 100%;
}

.stat-line span,
.stat-line strong {
  font-size: 0.9rem;
}

.stat-line strong {
  text-align: right;
  color: var(--text-secondary);
}

.slash-meter {
  --score: 0;
  position: relative;
  height: 14px;
  width: 100%;
  max-width: 248px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      135deg,
      rgba(18, 24, 44, 0.78) 0 5px,
      rgba(40, 45, 58, 0.62) 5px 6.5px,
      rgba(4, 6, 10, 0.92) 6.5px 7.5px
    );
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.slash-meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--score) * 10%);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.92), rgba(124, 58, 237, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 0 12px rgba(34, 211, 238, 0.14),
    inset -1px 0 0 rgba(148, 163, 184, 0.1);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.slash-meter::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 5px,
      rgba(40, 45, 58, 0.46) 5px 6.2px,
      rgba(4, 6, 10, 0.82) 6.2px 7.2px
    );
  pointer-events: none;
}

.stat-note {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .language-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .language-stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-line {
    grid-template-columns: 96px minmax(140px, 1fr) 28px;
    gap: 8px;
  }
}

body[data-platform-page="index"],
.software-pages,
.platform-refined {
  --shell-width: min(1400px, calc(var(--site-render-viewport) - 36px));
}

body[data-platform-page="index"] .hero-copy,
.software-pages .hero-copy,
.platform-refined .hero-copy {
  max-width: 680px;
}

body[data-platform-page="index"] .section-heading,
.software-pages .section-heading,
.platform-refined .section-heading {
  max-width: 64ch;
}

body[data-platform-page="index"] .section-heading p,
body[data-platform-page="index"] .hero-text,
.software-pages .section-heading p,
.software-pages .learning-card p,
.software-pages .highlight-box p,
.software-pages .highlight-box li,
.software-pages .curriculum-step p,
.software-pages .language-link-card p,
.software-pages .summary-strip p,
.software-pages .related-links p,
.platform-refined .section-heading p,
.platform-refined .learning-card p,
.platform-refined .highlight-box p,
.platform-refined .highlight-box li,
.platform-refined .summary-strip p,
.platform-refined .related-links p {
  max-width: 60ch;
}

body[data-platform-page="index"] .hero-text,
.software-pages .hero-text,
.platform-refined .hero-text {
  font-size: 0.97rem;
}

.software-pages .learning-card,
.software-pages .language-link-card,
.software-pages .curriculum-step,
.software-pages .summary-strip,
.software-pages .related-links,
.software-pages .info-table-wrap,
.platform-refined .learning-card,
.platform-refined .summary-strip,
.platform-refined .related-links,
.platform-refined .info-table-wrap,
.platform-refined .highlight-box {
  padding: 22px 24px;
}

.software-pages .summary-strip,
.platform-refined .summary-strip {
  gap: 16px;
}

.software-pages .summary-strip div,
.platform-refined .summary-strip div {
  padding: 18px 18px 16px;
}

.software-pages .section-heading h2,
.platform-refined .section-heading h2 {
  max-width: 16ch;
}

.software-pages .language-link-card h3,
.platform-refined .learning-card h3 {
  line-height: 1.34;
}

@media (max-width: 900px) {
  body[data-platform-page="index"],
  .software-pages,
  .platform-refined {
    --shell-width: min(100vw - 28px, 1000px);
  }

  .software-pages .learning-card,
  .software-pages .language-link-card,
  .software-pages .curriculum-step,
  .software-pages .summary-strip,
  .software-pages .related-links,
  .software-pages .info-table-wrap,
  .platform-refined .learning-card,
  .platform-refined .summary-strip,
  .platform-refined .related-links,
  .platform-refined .info-table-wrap,
  .platform-refined .highlight-box {
    padding: 20px 18px;
  }
}

body[data-platform-page="index"] .summary-strip div,
body[data-platform-page="index"] .category-card,
body[data-platform-page="index"] .company-grid > .learning-card,
body[data-platform-page="index"] .highlight-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

body[data-platform-page="index"] .category-card,
body[data-platform-page="index"] .company-grid > .learning-card,
body[data-platform-page="index"] .highlight-box,
body[data-platform-page="index"] .summary-strip div {
  padding: 22px 22px 20px;
}

body[data-platform-page="index"] .category-card h3,
body[data-platform-page="index"] .company-grid > .learning-card h3,
body[data-platform-page="index"] .highlight-box h3,
body[data-platform-page="index"] .summary-strip strong {
  max-width: 18ch;
  line-height: 1.34;
}

body[data-platform-page="index"] .category-card > p:not(.eyebrow),
body[data-platform-page="index"] .company-grid > .learning-card > p,
body[data-platform-page="index"] .summary-strip p,
body[data-platform-page="index"] .highlight-box p,
body[data-platform-page="index"] .compact-list {
  max-width: 34ch;
}

body[data-platform-page="index"] .platform-link-stack {
  margin-top: auto;
  max-width: 100%;
}

body[data-platform-page="index"] .platform-link-stack a {
  max-width: fit-content;
}

body[data-platform-page="index"] .company-grid {
  align-items: start;
}

body[data-platform-page="index"] .hero-actions .button {
  min-width: 170px;
}

@media (max-width: 900px) {
  body[data-platform-page="index"] .category-card,
  body[data-platform-page="index"] .company-grid > .learning-card,
  body[data-platform-page="index"] .highlight-box,
  body[data-platform-page="index"] .summary-strip div {
    padding: 20px 18px;
  }

  body[data-platform-page="index"] .category-card > p:not(.eyebrow),
  body[data-platform-page="index"] .company-grid > .learning-card > p,
  body[data-platform-page="index"] .summary-strip p,
  body[data-platform-page="index"] .highlight-box p,
  body[data-platform-page="index"] .compact-list {
    max-width: none;
  }
}

#software-language-stats .stat-card,
#languages-stat-grid .stat-card {
  display: grid !important;
  justify-items: center !important;
  align-items: start !important;
  gap: 6px;
}

#software-language-stats .stat-group,
#languages-stat-grid .stat-group {
  display: grid;
  gap: 6px;
  margin-top: -10px;
}

#software-language-stats .stat-line,
#languages-stat-grid .stat-line {
  display: inline-grid !important;
  grid-template-columns: 84px 172px 22px !important;
  gap: 6px !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#software-language-stats .slash-meter,
#languages-stat-grid .slash-meter {
  width: 172px !important;
  max-width: 172px !important;
}

#software-language-stats .stat-line span,
#languages-stat-grid .stat-line span {
  font-size: 0.88rem;
}

#software-language-stats .stat-line strong,
#languages-stat-grid .stat-line strong {
  width: 22px;
  text-align: right;
}

#software-language-stats .stat-card h3,
#languages-stat-grid .stat-card h3 {
  align-self: center !important;
  text-align: center;
  margin-top: 4px;
}

body[data-platform-page="language-hub"],
body[data-platform-page="language-topic"] {
  --shell-width: min(1440px, calc(var(--site-render-viewport) - 36px));
}

body[data-platform-page="language-hub"] .hero-copy,
body[data-platform-page="language-topic"] .hero-copy {
  max-width: 820px;
}

body[data-platform-page="language-hub"] .section-heading,
body[data-platform-page="language-topic"] .section-heading {
  max-width: 70ch;
}

body[data-platform-page="language-hub"] .platform-shell-grid,
body[data-platform-page="language-topic"] .platform-shell-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body[data-platform-page="language-hub"] .language-detail-grid,
body[data-platform-page="language-topic"] .language-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body[data-platform-page="language-hub"] .stage-rail-card,
body[data-platform-page="language-topic"] .stage-rail-card,
body[data-platform-page="language-hub"] .learning-card,
body[data-platform-page="language-topic"] .learning-card,
body[data-platform-page="language-hub"] .code-panel,
body[data-platform-page="language-topic"] .code-panel,
body[data-platform-page="language-hub"] .related-links,
body[data-platform-page="language-topic"] .related-links {
  padding-left: 28px;
  padding-right: 28px;
}

body[data-platform-page="language-hub"] .learning-card .button {
  margin-top: 16px;
}

.textbook-practical-work-section .textbook-study-card,
.textbook-practical-work-section .textbook-code-panel {
  min-height: 230px;
}

body[data-platform-page="language-hub"] .stage-rail-card,
body[data-platform-page="language-topic"] .stage-rail-card {
  max-width: none;
  padding-top: 30px;
  padding-bottom: 28px;
}

body[data-platform-page="language-hub"] .topic-card,
body[data-platform-page="language-topic"] .topic-card {
  min-height: 194px;
  padding: 20px 20px 18px;
}

body[data-platform-page="language-hub"] .topic-card h3,
body[data-platform-page="language-topic"] .topic-card h3 {
  max-width: 17ch;
}

body[data-platform-page="language-hub"] .topic-card p,
body[data-platform-page="language-topic"] .topic-card p {
  max-width: 26ch;
}

body[data-platform-page="certificates"] {
  --shell-width: min(1440px, calc(var(--site-render-viewport) - 40px));
}

body[data-platform-page="certificates"] .hero-copy {
  max-width: 860px;
}

.mypage-hero .hero-text {
  max-width: 760px;
}

.mypage-empty-state {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-inline: auto;
  padding: 30px;
  text-align: center;
}

.mypage-empty-state h2,
.mypage-empty-state p {
  margin: 0;
}

.mypage-empty-state p {
  color: var(--text-secondary);
  line-height: 1.72;
}

.mypage-empty-state .button {
  justify-self: center;
}

.mypage-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.mypage-profile-card,
.mypage-status-card {
  padding: 26px;
}

.mypage-profile-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mypage-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(circle at 35% 25%, rgba(34, 211, 238, 0.22), transparent 48%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.78));
  color: var(--text-primary);
  font: 800 1.05rem/1 "Orbitron", sans-serif;
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.08);
}

.mypage-profile-top h2,
.mypage-status-card h3 {
  margin: 0;
}

.mypage-profile-top p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

.mypage-grade-panel {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  background: rgba(56, 189, 248, 0.055);
}

.mypage-grade-badge {
  width: max-content;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-cyan);
  font-weight: 800;
}

.mypage-grade-panel p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.68;
}

.mypage-status-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mypage-status-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mypage-status-list span {
  color: var(--text-secondary);
}

.mypage-status-list strong {
  color: var(--text-primary);
  text-align: right;
}

.mypage-grade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mypage-grade-card,
.mypage-verification-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.mypage-grade-card.is-current-grade {
  border-color: rgba(34, 211, 238, 0.36);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.075), rgba(124, 58, 237, 0.055)),
    var(--card-bg);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22), 0 0 18px rgba(34, 211, 238, 0.08);
}

.mypage-grade-card h3,
.mypage-verification-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.42;
}

.mypage-grade-card p,
.mypage-verification-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.66;
}

.mypage-verification-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mypage-permission-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.mypage-permission-table div {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mypage-permission-table div:first-child {
  border-top: 0;
}

.mypage-permission-table strong {
  color: var(--text-primary);
}

.mypage-permission-table span {
  color: var(--text-secondary);
  line-height: 1.6;
}

.cert-hero .hero-text {
  max-width: 760px;
}

.source-chip-row {
  margin-top: 18px;
}

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

.cert-choice-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  min-height: 100%;
}

.cert-choice-card h3,
.cert-principle-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.42;
}

.cert-choice-card p,
.cert-principle-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.68;
}

.cert-choice-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.high-value-cert-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.high-value-cert-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.high-value-cert-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.42;
}

.high-value-cert-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.64;
}

.high-value-cert-card .compact-list {
  margin: 0;
}

.high-value-cert-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.cert-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.cert-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-pill-row > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(56, 189, 248, 0.07);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.35;
}

.cert-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-route-helper {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 22px;
}

.cert-route-helper strong {
  color: var(--text-primary);
  font-size: 1.02rem;
}

.cert-route-helper p {
  margin: 0;
  max-width: 920px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cert-route-card,
.cert-detail-card {
  padding: 24px;
}

.cert-route-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.cert-route-card.route-priority {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.055), rgba(124, 58, 237, 0.045)),
    var(--card-bg);
}

.cert-route-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.cert-route-top span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-cyan);
  font: 700 0.78rem/1 "Orbitron", sans-serif;
}

.cert-route-top strong {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.32);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.cert-route-card h3,
.cert-detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.cert-route-summary {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.66;
}

.cert-flow {
  display: grid;
  gap: 10px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

.cert-flow li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.38);
  color: var(--text-primary);
  font-weight: 650;
}

.cert-flow li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-family: "Orbitron", sans-serif;
}

.cert-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -11px;
  width: 1px;
  height: 11px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.42), transparent);
}

.cert-route-insight {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.13);
  background: rgba(56, 189, 248, 0.055);
}

.cert-route-insight strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.cert-route-insight p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.62;
}

.cert-route-meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert-route-meta-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.58;
}

.cert-route-meta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-cyan);
  opacity: 0.72;
}

.cert-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cert-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cert-card-head p {
  margin: 0;
  color: var(--text-secondary);
}

.cert-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.cert-badge-row span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.42);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

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

.cert-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.32);
}

.cert-meta-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.cert-meta-grid p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.62;
}

.cert-exam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cert-exam-card {
  padding: 24px;
}

.cert-exam-card h3 {
  margin: 0 0 16px;
  font-size: 1.08rem;
  line-height: 1.42;
}

.cert-exam-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.cert-exam-card dl div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.cert-exam-card dt {
  color: var(--accent-cyan);
  font-weight: 750;
  font-size: 0.86rem;
}

.cert-exam-card dd {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.62;
}

.cert-principle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cert-principle-card {
  display: grid;
  gap: 12px;
  padding: 22px;
}

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

.community-status-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px;
}

.community-status-card > div {
  flex: 1 1 520px;
  width: auto;
  max-width: none;
}

.community-status-card > .community-status-badge {
  flex: 0 0 auto;
  margin-top: 3px;
}

.community-status-card h2,
.community-card-head h3,
.community-board-card h3,
.community-flow-card h3 {
  margin: 0;
}

.community-status-card p,
.community-board-card p,
.community-flow-card p,
.community-empty-state p,
.community-post-item p,
.community-form-note {
  color: var(--text-muted);
}

.community-status-badge,
.community-lock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
}

.backend-health-card {
  align-items: flex-start;
}

.backend-health-url {
  margin: 12px 0 0;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  word-break: break-all;
}

.backend-health-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.backend-health-card[data-backend-health-state="connected"] .community-status-badge {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.backend-health-card[data-backend-health-state="error"] .community-status-badge {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.community-board-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-board-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  padding: 26px;
}

.community-board-card:not(.is-locked) {
  cursor: pointer;
}

.community-board-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--panel-strong) 82%, #000 18%);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 16%, transparent);
}

.community-board-card.is-active .community-board-open {
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-strong);
}

.community-board-top,
.community-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.community-card-head > div {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.community-card-head > span,
.community-board-top > span:last-child {
  margin-left: 0;
  align-self: flex-start;
}

.community-board-card .platform-pill-row {
  margin-top: auto;
  justify-content: flex-start;
  align-items: flex-start;
}

.community-board-card .platform-pill-row > span {
  max-width: 100%;
}

.community-board-summary {
  color: var(--accent-cyan);
  font-size: 0.92rem;
  line-height: 1.45;
}

.community-board-card.is-locked {
  opacity: 0.86;
}

.community-board-open[disabled],
.community-hosting-button[disabled],
.community-compose-form :disabled {
  cursor: not-allowed;
}

.community-board-open[disabled],
.community-hosting-button[disabled] {
  opacity: 0.68;
  filter: saturate(0.7);
}

.community-workspace-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.community-search-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.28fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 24px;
}

.community-search-bar label {
  display: grid;
  gap: 8px;
  color: var(--text-strong);
  font-weight: 750;
}

.community-search-bar input,
.community-search-bar select {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 82%, #000 18%);
  color: var(--text-strong);
  font: inherit;
  line-height: 1.5;
  padding: 13px 17px;
}

.community-search-bar select option,
.community-compose-form select option {
  background-color: #070b12;
  color: #f7fafc;
}

html[data-theme="overtone"] .community-search-bar select option,
html[data-theme="overtone"] .community-compose-form select option {
  background-color: #16002f;
  color: #fff8ff;
}

.community-post-list-card,
.community-composer-card {
  width: 100%;
  min-height: 0;
  padding: clamp(24px, 2.4vw, 34px);
}

.community-post-list-card .community-card-head,
.community-composer-card .community-card-head {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 10px;
}

.community-post-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.community-empty-state,
.community-post-item {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
  padding: 22px;
}

.community-post-item {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.community-post-title-row,
.community-post-meta,
.community-post-actions,
.community-tag-row {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.community-post-title-row {
  justify-content: flex-start;
}

.community-post-title-row strong {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.community-post-title-row span,
.community-tag-row span {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 5px 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.community-post-item p,
.community-comment-item p {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.community-knowledge-links {
  margin-top: 2px;
}

.community-knowledge-links > span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.community-post-meta {
  justify-content: flex-start;
  gap: 14px;
}

.community-post-item span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.community-post-item .community-knowledge-links > span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.community-post-actions .button {
  padding: 9px 13px;
  min-height: 38px;
  font-size: 0.84rem;
  white-space: normal;
}

.community-post-actions .button.is-active {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-strong);
}

.community-danger-action {
  border-color: color-mix(in srgb, var(--danger, #ef4444) 42%, transparent) !important;
  color: color-mix(in srgb, var(--danger, #ef4444) 86%, #fff 14%) !important;
}

.community-comment-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.community-comment-list,
.community-comment-form,
.community-comment-actions {
  display: grid;
  gap: 10px;
}

.community-comment-item {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  padding: 12px 14px;
}

.community-comment-item p {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.62;
}

.community-comment-item .button {
  margin-top: 10px;
  padding: 7px 11px;
  min-height: 34px;
  font-size: 0.78rem;
}

.community-comment-actions {
  grid-template-columns: repeat(auto-fit, minmax(82px, max-content));
  justify-content: start;
}

.community-comment-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.community-comment-form input {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 80%, #000 20%);
  color: var(--text-strong);
  font: inherit;
  padding: 11px 14px;
}

.community-compose-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.community-compose-form label {
  display: grid;
  gap: 8px;
  color: var(--text-strong);
  font-weight: 700;
}

.community-compose-form input,
.community-compose-form textarea,
.community-compose-form select {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel-strong) 80%, #000 20%);
  color: var(--text-strong);
  font: inherit;
  line-height: 1.6;
  padding: 13px 15px;
}

.community-compose-form textarea {
  resize: vertical;
  min-height: 148px;
}

.community-compose-form :disabled {
  opacity: 0.64;
}

.community-notice-section .community-status-card {
  align-items: stretch;
}

.community-notice-list,
.community-admin-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.community-notice-item,
.community-admin-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
  padding: 16px 18px;
}

.community-notice-item strong,
.community-admin-item strong {
  color: var(--text-strong);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.community-notice-item p,
.community-admin-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.64;
  overflow-wrap: anywhere;
}

.community-admin-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.95fr);
}

.community-admin-card {
  min-width: 0;
  padding: clamp(22px, 2.2vw, 32px);
}

.community-inline-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.community-inline-check input {
  width: auto;
  min-width: 18px;
}

.community-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.community-flow-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: clamp(24px, 2.2vw, 32px);
}

html[data-theme="overtone"] .community-status-badge,
html[data-theme="overtone"] .community-lock-chip {
  border-color: color-mix(in srgb, var(--accent-hot) 42%, transparent);
  background: color-mix(in srgb, var(--accent-hot) 14%, transparent);
  color: color-mix(in srgb, var(--accent-hot) 82%, #fff 18%);
}

.community-page .card {
  text-align: left;
}

.community-page .community-status-card,
.community-page .community-card-head,
.community-page .community-board-top,
.community-page .community-post-title-row,
.community-page .community-post-meta,
.community-page .community-post-actions,
.community-page .community-tag-row,
.community-page .platform-pill-row {
  justify-content: flex-start !important;
}

.community-page .community-status-badge,
.community-page .community-lock-chip,
.community-page [data-community-post-count],
.community-page .community-post-title-row span,
.community-page .community-post-meta span {
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-self: flex-start;
}

@media (max-width: 720px) {
  #software-language-stats .stat-line,
  #languages-stat-grid .stat-line {
    grid-template-columns: 88px 150px 22px !important;
  }

  #software-language-stats .slash-meter,
  #languages-stat-grid .slash-meter {
    width: 150px !important;
    max-width: 150px !important;
  }

  body[data-platform-page="language-hub"],
  body[data-platform-page="language-topic"] {
    --shell-width: min(100vw - 28px, 1120px);
  }

  body[data-platform-page="language-hub"] .platform-shell-grid,
  body[data-platform-page="language-topic"] .platform-shell-grid,
  body[data-platform-page="language-hub"] .language-detail-grid,
  body[data-platform-page="language-topic"] .language-detail-grid {
    grid-template-columns: 1fr;
  }

  .textbook-route-card,
  .textbook-route-card.compact,
  .textbook-check-grid,
  .textbook-detail-grid,
  .chapter-nav-grid {
    grid-template-columns: 1fr;
  }

  .textbook-chapter-grid {
    grid-template-columns: 1fr;
  }

  .chapter-position-strip {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body[data-platform-page="language-hub"] .stage-rail-card,
  body[data-platform-page="language-topic"] .stage-rail-card,
  body[data-platform-page="language-hub"] .learning-card,
  body[data-platform-page="language-topic"] .learning-card,
  body[data-platform-page="language-hub"] .code-panel,
  body[data-platform-page="language-topic"] .code-panel,
  body[data-platform-page="language-hub"] .related-links,
  body[data-platform-page="language-topic"] .related-links {
    padding-left: 20px;
    padding-right: 20px;
  }

  .textbook-summary-card,
  .industry-brief-card,
  .industry-flow-card,
  .textbook-structure-card {
    padding: 20px 18px;
  }

  .textbook-stage-map {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stage-node {
    min-height: 0;
    padding: 18px 16px 16px;
  }

  .stage-node p {
    max-width: none;
  }

  .cert-category-grid,
  .cert-choice-grid,
  .high-value-cert-grid,
  .cert-route-grid,
  .cert-detail-grid,
  .cert-exam-grid,
  .cert-principle-grid,
  .community-board-grid,
  .community-workspace-grid,
  .community-admin-grid,
  .community-flow-grid,
  .mypage-dashboard-grid,
  .mypage-grade-grid,
  .mypage-verification-grid,
  .cert-meta-grid {
    grid-template-columns: 1fr;
  }

  .community-search-bar,
  .community-comment-form {
    grid-template-columns: 1fr;
  }

  .community-post-title-row,
  .community-post-meta,
  .community-post-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-post-actions .button {
    width: 100%;
  }

  .community-comment-actions {
    grid-template-columns: 1fr;
  }

  .community-comment-actions .button {
    width: 100%;
  }

  .cert-choice-card,
  .cert-route-card,
  .cert-detail-card,
  .cert-exam-card,
  .cert-principle-card {
    padding: 20px 18px;
  }

  .cert-exam-card dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cert-card-head {
    flex-direction: column;
  }

  .community-status-card,
  .community-card-head,
  .community-board-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-status-card > div {
    flex-basis: auto;
    width: 100%;
  }

  .community-post-list-card,
  .community-composer-card {
    min-height: 0;
  }

  .mypage-profile-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .mypage-permission-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .concept-diagram {
    align-items: flex-start;
  }

  .diagram-arrow {
    display: none;
  }
}
