:root {
  --bg: #0b1220;
  --bg2: #121a2b;
  --card: #162033;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef9;
  --muted: #9aa8c0;
  --accent: #5eead4;
  --accent2: #fbbf24;
  --rose: #fb7185;
  --story: #a78bfa;
  --care: #34d399;
  --solve: #38bdf8;
  --make: #f472b6;
  --steward: #fbbf24;
  --bridge: #2dd4bf;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-family: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(94, 234, 212, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(167, 139, 250, 0.12), transparent 50%),
    var(--bg);
}

#app { max-width: 1240px; margin: 0 auto; padding: 24px 18px 80px; }

.site-header {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px;
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #06201b; font-weight: 800; letter-spacing: -0.03em;
}
.brand h1 {
  margin: 0; font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em;
}
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.tagline b { color: var(--accent); font-weight: 700; }
.header-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.header-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pill {
  font-size: 0.78rem; font-weight: 700; padding: 6px 10px; border-radius: 999px;
  background: rgba(94, 234, 212, 0.15); color: var(--accent); border: 1px solid rgba(94, 234, 212, 0.25);
}
.pill.soft { background: rgba(255,255,255,0.04); color: var(--muted); border-color: var(--line); }

/* KO / EN language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg2);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.06);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  cursor: pointer;
  min-width: 48px;
  transition: background .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--accent);
  color: #06201b;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn.active + .lang-btn,
.lang-btn + .lang-btn.active { border-left-color: transparent; }
html[lang="en"] .card-body .en,
html[lang="en"] .detail-main .en { font-size: 0.78rem; }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: var(--bg2); color: var(--muted);
  padding: 10px 14px; border-radius: 999px; font-weight: 700; cursor: pointer;
}
.tab.active { color: #06201b; background: var(--accent); border-color: transparent; }

.view { display: none; }
.view.active { display: block; }

.toolbar { display: grid; gap: 12px; margin-bottom: 18px; }
#search {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 1rem;
}
#search:focus { outline: 2px solid rgba(94, 234, 212, 0.45); border-color: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-chip { border-style: dashed; }
.theme-chip.active { background: #5eead4; color: #06201b; border-style: solid; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 7px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.chip.active { color: #0b1220; background: var(--text); }

/* Theme finder: three nowrap trays. Family .filters wrap must not apply here. */
.filters.theme-row {
  flex-wrap: nowrap;
  margin-top: 0;
  min-width: 0;
  max-width: 100%;
}
.filters.theme-row:not(.theme-finder) {
  overflow-x: auto;
  overflow-y: hidden;
}
.theme-finder,
.theme-finder.filters,
.theme-finder.theme-row,
#theme-finder {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
.theme-finder .theme-all {
  align-self: flex-start;
  border-style: solid;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
.theme-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.theme-section-label {
  grid-row: 1;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  word-break: keep-all;
}
.theme-scroller {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  overscroll-behavior-x: contain;
  padding: 4px 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 70%, transparent) transparent;
}
.theme-scroller::-webkit-scrollbar {
  height: 5px;
}
.theme-scroller::-webkit-scrollbar-track {
  background: transparent;
}
.theme-scroller::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 65%, transparent);
  border-radius: 999px;
}
.theme-section::after {
  content: "";
  grid-row: 2;
  grid-column: 1;
  justify-self: end;
  align-self: stretch;
  width: 2rem;
  margin-bottom: 8px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to right, transparent, var(--bg));
}
.theme-finder .theme-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  touch-action: manipulation;
}
.theme-scroller .theme-chip {
  scroll-snap-align: start;
}
.theme-finder .theme-chip.active {
  background: var(--accent);
  color: #06201b;
  border-style: solid;
}
.theme-finder .theme-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .theme-finder .theme-chip:hover:not(.active) {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    transition: color 0.15s ease, border-color 0.15s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-finder .theme-chip {
    transition: none;
  }
}
@media (min-width: 1280px) {
  .theme-scroller {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .18s ease, border-color .18s ease;
  box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-3px); border-color: rgba(94, 234, 212, 0.35); }
.card-img {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative; overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-img .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted); font-size: 0.85rem; font-weight: 700; padding: 16px; text-align: center;
}
.card-img .family-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 0.68rem; font-weight: 800; padding: 4px 8px; border-radius: 999px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); color: white;
}
.card-img .ai-badge {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  font-size: 0.68rem; font-weight: 800; padding: 4px 8px; border-radius: 999px;
  background: rgba(94, 234, 212, 0.9); color: #06201b;
}
/* Description on the picture — switches with KO/EN toggle */
.img-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.55) 55%, transparent 100%);
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  pointer-events: none;
}
.detail-hero-img {
  position: relative;
  overflow: hidden;
}
.detail-hero-img img,
.detail-hero-img .ph {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #0f172a; display: block;
}
.detail-hero-img .img-caption.detail-caption {
  font-size: 0.88rem;
  padding: 40px 18px 14px;
  -webkit-line-clamp: 4;
  font-weight: 600;
}
.card-body { padding: 14px 14px 16px; }
.card-body h3 { margin: 0 0 4px; font-size: 1.05rem; letter-spacing: -0.02em; }
.card-body .en { margin: 0 0 8px; color: var(--muted); font-size: 0.8rem; }
.card-body .one { margin: 0 0 10px; color: #c5d0e4; font-size: 0.86rem; line-height: 1.45; }
.muscles { display: flex; flex-wrap: wrap; gap: 6px; }
.muscles span {
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.15);
  padding: 3px 7px; border-radius: 999px;
}

.family-F-story .family-badge { color: #ede9fe; }
.family-F-care .family-badge { color: #d1fae5; }
.family-F-solve .family-badge { color: #e0f2fe; }
.family-F-make .family-badge { color: #fce7f3; }
.family-F-steward .family-badge { color: #fef3c7; }
.family-F-bridge .family-badge { color: #ccfbf1; }

.match-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 18px;
}
@media (max-width: 900px) {
  .match-layout { grid-template-columns: 1fr; }
}
.match-panel, .doctrine-card, .grow-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.match-panel h2, .match-results h2, .doctrine-card h2 { margin-top: 0; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.match-panel label { display: block; margin: 14px 0 6px; font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.match-panel select, .match-panel input {
  width: 100%; margin-bottom: 6px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--text);
}
.hint { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.chip-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 10px; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.chip-pick button.active { background: var(--accent); color: #06201b; border-color: transparent; }
.btn {
  border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; cursor: pointer; width: 100%; margin-top: 16px;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), #67e8f9); color: #06201b; }
.grow-card.hidden { display: none; }
.grow-card { margin-top: 16px; border-color: rgba(94, 234, 212, 0.35); }
.grow-card h3 { margin: 0 0 8px; color: var(--accent); }

.doctrine-card ul { line-height: 1.7; color: #c5d0e4; }
.footer-note { color: var(--muted); font-size: 0.85rem; margin-top: 24px; }

dialog {
  border: 0; padding: 0; border-radius: 20px; background: transparent;
  width: min(920px, 96vw); max-height: 92vh;
}
dialog::backdrop { background: rgba(3, 7, 18, 0.72); backdrop-filter: blur(6px); }
.detail-shell {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 20px;
  overflow: auto; max-height: 92vh; position: relative; box-shadow: var(--shadow);
}
.detail-shell .close {
  position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 5;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.5); color: white; font-size: 1.3rem; cursor: pointer;
}
.detail-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
}
@media (max-width: 760px) {
  .detail-hero { grid-template-columns: 1fr; }
}
.detail-hero-img .ph {
  display: grid; place-items: center; color: var(--muted); font-weight: 700; padding: 24px; text-align: center;
}
.detail-main { padding: 22px; }
.detail-main h2 { margin: 0 0 4px; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.8rem; }
.detail-main .en { color: var(--muted); margin: 0 0 12px; }
.detail-section { margin-top: 18px; }
.detail-section h4 {
  margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.detail-section p, .detail-section li { color: #c5d0e4; line-height: 1.55; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.strict {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fde68a; font-size: 0.86rem; font-weight: 600;
}
.score {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; color: var(--accent2);
}


/* AEO citation lines 2026-09-15 */
.hero-def {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42rem;
  opacity: 0.92;
}
.hope-line {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #c9e4ff;
}
.match-safety {
  margin-top: 0.35rem;
  font-weight: 600;
}
.signature {
  margin-top: 0.75rem;
  opacity: 0.85;
}
.doctrine-card a {
  color: #9ecbff;
}

/* ── 내 전공·좋아하는 분야로 보기 (major view) 2026-10-03 ── */
.tab.tab-major { font-weight: 800; }
.major-hero {
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.10), rgba(96, 165, 250, 0.06));
  border: 1px solid rgba(94, 234, 212, 0.28); border-radius: 20px; padding: 22px 20px 16px;
}
.major-hero h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 3.2vw, 1.8rem); letter-spacing: -0.02em; }
.major-lead { margin: 0 0 14px; color: #dbe5f5; line-height: 1.6; font-size: 1rem; }
.major-lead b { color: var(--accent); }
.major-search-row input {
  width: 100%; font-size: 1.08rem; padding: 14px 16px; border-radius: 14px;
  border: 2px solid rgba(94, 234, 212, 0.45); background: #0a1322; color: #fff; outline: none;
}
.major-search-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18); }
.major-step { margin: 14px 0 8px; font-weight: 800; color: #fff; font-size: 0.95rem; }
.major-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 10px 14px; border-radius: 999px; font-size: 0.98rem; font-weight: 700;
  background: #17233a; color: #f1f5ff; border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform .08s ease, background .15s ease;
}
.mchip:hover { background: #1f2f4d; transform: translateY(-1px); }
.mchip.active { background: var(--accent); color: #04211c; border-color: transparent; }
.mchip-icon { font-size: 1.1rem; }
.mchip-n {
  font-size: 0.74rem; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10); color: inherit;
}
.mchip.small { padding: 7px 11px; font-size: 0.86rem; }
.major-themes { margin-top: 12px; }
.major-themes summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: 6px 0; }
.major-themes .major-chips { margin-top: 8px; max-height: 240px; overflow: auto; }

.major-result { margin-top: 18px; scroll-margin-top: 12px; }
.major-empty {
  border: 1px dashed rgba(255, 255, 255, 0.22); border-radius: 18px; padding: 20px; text-align: center;
}
.major-empty p { margin: 0 0 10px; color: #e6edf9; }
.major-empty .major-chips { justify-content: center; }
.major-empty-title { font-size: 1.05rem; }
.flow-head { margin-bottom: 12px; }
.flow-title { margin: 0; font-size: 1.4rem; }
.flow-sum { margin: 4px 0 0; color: #cfd9ea; }
.flow-sum b { color: var(--accent); }
.major-related { margin: 8px 0 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.flow { display: grid; grid-template-columns: minmax(180px, 230px) 56px 1fr; gap: 14px; align-items: start; }
.flow-today {
  position: sticky; top: 12px; background: #fff; color: #0b1220; border-radius: 18px; padding: 16px;
}
.flow-today h3 { margin: 0 0 10px; font-size: 1.05rem; }
.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.today-list li {
  background: #eef2f8; border-radius: 10px; padding: 9px 11px; font-weight: 700; font-size: 0.98rem;
}
.flow-today .today-note { color: #4a5568; font-size: 0.8rem; margin: 10px 0 0; }
.flow-arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  padding-top: 40px; color: var(--accent); position: sticky; top: 12px;
}
.flow-arrow b { font-size: 2.4rem; line-height: 1; }
.flow-arrow span { font-size: 0.74rem; font-weight: 800; color: #cfe; white-space: nowrap; }
.flow-future { display: grid; gap: 16px; }
.fgroup { border-radius: 18px; padding: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.fgroup-tr { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.05); }
.fgroup-new { border-color: rgba(94, 234, 212, 0.45); background: rgba(94, 234, 212, 0.05); }
.fgroup-none { margin-top: 16px; }
.fgroup h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.fgroup-n { font-size: 0.8rem; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.fgroup-sub { margin: 4px 0 10px; color: #cfd9ea; font-size: 0.9rem; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.fcard {
  background: #141f33; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 12px 13px;
  cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .08s;
}
.fcard:hover, .fcard:focus { border-color: var(--accent); transform: translateY(-1px); outline: none; }
.fcard-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; flex-wrap: wrap; }
.kind-badge { font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.kind-tr { background: #fbbf24; color: #2a1a00; }
.kind-new { background: #5eead4; color: #032019; }
.kind-none { background: rgba(255,255,255,0.14); color: #e8eef9; }
.fcard-fam { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.fcard h4 { margin: 2px 0 0; font-size: 1.05rem; color: #fff; line-height: 1.35; }
.fcard-change { margin: 0; color: #e3eaf6; font-size: 0.9rem; line-height: 1.45; }
.fcard-gist { margin: 0; color: #93a3bd; font-size: 0.78rem; line-height: 1.4; }
.fcard-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.fcard-skills span {
  font-size: 0.74rem; font-weight: 700; padding: 3px 8px; border-radius: 8px;
  background: rgba(96, 165, 250, 0.16); color: #cfe1ff;
}
.fcard-basis { margin: 2px 0 0; font-size: 0.72rem; color: #9fb0c9; }
.fcard-hits { color: #7f90aa; }
.more-btn {
  margin-top: 10px; width: 100%; padding: 10px; border-radius: 12px; cursor: pointer; font-weight: 800;
  background: transparent; color: var(--accent); border: 1px dashed rgba(94, 234, 212, 0.5); font-size: 0.95rem;
}
.basis-note {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 0.86rem; line-height: 1.55;
  background: rgba(96, 165, 250, 0.08); border: 1px solid rgba(96, 165, 250, 0.25); color: #d6e4fb;
}
.major-hope { text-align: center; margin-top: 20px; font-size: 0.95rem; }

@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .flow-today, .flow-arrow { position: static; }
  .flow-arrow { flex-direction: row; padding-top: 0; justify-content: center; }
  .flow-arrow b { transform: rotate(90deg); font-size: 2rem; }
  .today-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .fgrid { grid-template-columns: 1fr; }
  .mchip { font-size: 0.92rem; padding: 9px 12px; }
  .major-hero { padding: 18px 14px 12px; }
}
@media (min-width: 1100px) {
  .flow-future { grid-template-columns: 1fr 1fr; align-items: start; }
  .flow-future .fgrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .major-chips:not(.small) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .major-chips:not(.small) .mchip { font-size: 0.86rem; padding: 8px 9px; gap: 4px; justify-content: flex-start; }
  .mchip-n { font-size: 0.68rem; padding: 1px 5px; margin-left: auto; }
}

/* ── 오늘의 직업 (today jobs) 2026-10-03b ── */
.accent { color: var(--accent); }
.tj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tj-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 5px 12px 5px 5px;
  border-radius: 999px; background: #17233a; color: #f1f5ff; border: 1px solid rgba(255,255,255,0.16);
  font-weight: 700; font-size: 0.95rem; transition: transform .08s, background .15s;
}
.tj-chip:hover { background: #1f2f4d; transform: translateY(-1px); }
.tj-chip.active { background: var(--accent); color: #04211c; border-color: transparent; }
.tj-ico { width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none; }
.tj-all { margin-top: 18px; text-align: left; display: grid; gap: 14px; }
.tj-field h4 { margin: 0 0 8px; color: #fff; font-size: 1rem; }
.major-chips.center { justify-content: center; }
.tj-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tj-row .tj-chip { font-size: 0.85rem; padding: 3px 10px 3px 3px; }
.tj-row .tj-ico { width: 30px; height: 30px; }
.flow-today.tj-card { text-align: center; }
.tj-big { width: 100%; max-width: 210px; height: auto; border-radius: 24px; display: block; margin: 0 auto 10px; }
.tj-card h3 { margin: 4px 0 2px; font-size: 0.85rem; color: #4a5568; }
.tj-card-name { margin: 0; font-size: 1.5rem; font-weight: 800; color: #0b1220; }
.tj-card-en { margin: 0 0 8px; color: #4a5568; font-size: 0.85rem; }
.tj-card-task { margin: 0; background: #eef2f8; border-radius: 10px; padding: 8px 10px; font-weight: 700; font-size: 0.92rem; }
.tj-card-alias { margin: 8px 0 0; color: #4a5568; font-size: 0.8rem; }
.flow-today.tj-list .tj-chips { flex-direction: column; align-items: stretch; }
.flow-today.tj-list .tj-chip { background: #eef2f8; color: #0b1220; border-color: transparent; }
.flow-today.tj-list .tj-chip:hover { background: #dfe7f3; }
.flow-today.tj-list .mchip-n { margin-left: auto; background: rgba(0,0,0,0.08); }
.relg-대체 { border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.06); }
.relg-변모 { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.06); }
.relg-확장 { border-color: rgba(94, 234, 212, 0.5); background: rgba(94, 234, 212, 0.06); }
.fcard-why { margin: 0; color: #fff; font-size: 0.9rem; line-height: 1.45; font-weight: 600; }
.fcard-why b { color: var(--accent); }
.fcard.rel-대체 { border-left: 4px solid #fb7185; }
.fcard.rel-변모 { border-left: 4px solid #fbbf24; }
.fcard.rel-확장 { border-left: 4px solid #5eead4; }
@media (min-width: 1100px) {
  .flow-future.rel3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .tj-big { max-width: 160px; }
  .flow-today.tj-list .tj-chips { flex-direction: row; flex-wrap: wrap; }
  .tj-chip { font-size: 0.88rem; }
}
