/* 「테아에 필요한 행성」 이름표 목록(2026-10-14) — 은하 왼쪽 줄 판 · 첫 화면 탭이 같이 쓴다 */
.nd-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.nd-cat { border: 1px solid rgba(100,140,255,.3); background: rgba(255,255,255,.03); color: #dfe6ff; border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.nd-cat small { color: rgba(150,175,255,.55); margin-left: 5px; font-size: 11px; }
.nd-cat.on { background: rgba(74,158,255,.18); border-color: #4a9eff; color: #fff; }
.nd-list { display: flex; flex-direction: column; gap: 6px; }
/* 첫 글자 줄 · 찾기 · 더 보기(2026-10-15) — 칸 모양 하나, 격자로 맞춤 */
.nd-inis { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin: 0 0 8px; }
.nd-ini { height: 28px; border: 1px solid rgba(100,140,255,.22); background: rgba(255,255,255,.02); color: #cfd8ff; border-radius: 8px;
  font: inherit; font-size: 12px; cursor: pointer; padding: 0; white-space: nowrap; }
.nd-ini.on { background: rgba(74,158,255,.2); border-color: #4a9eff; color: #fff; }
.nd-ini:disabled { opacity: .3; cursor: default; }
.nd-find { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 0 10px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(100,140,255,.22); background: rgba(255,255,255,.03); }
.nd-find i { color: rgba(150,175,255,.6); font-size: 14px; }
.nd-q { flex: 1; min-width: 0; border: 0; background: none; color: #eaeeff; font: inherit; font-size: 13px; outline: none; }
.nd-more { width: 100%; margin-top: 8px; height: 34px; border-radius: 10px; border: 1px solid rgba(100,140,255,.3); background: none;
  color: #cfd8ff; font: inherit; font-size: 12.5px; cursor: pointer; }
.nd-more:hover { border-color: #4a9eff; color: #fff; }
.nd-one { width: 100%; margin-top: 6px; height: 30px; border: 0; background: none; color: rgba(150,175,255,.7); font: inherit; font-size: 12px; cursor: pointer; }
.nd-one:hover { color: #fff; }
.nd-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(100,140,255,.12); }
.nd-row:hover { border-color: rgba(100,140,255,.32); }
.nd-who { flex: 1; min-width: 0; font-size: 13.5px; color: #eaeeff; }
.nd-who b { font-weight: 600; }
.nd-role { color: #6eb3ff; font-size: 12.5px; }
.nd-to { margin-top: 3px; font-size: 12px; color: rgba(180,200,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-to i { font-size: 11px; opacity: .7; }
/* 기다리는 행성 수(2026-10-20) — 종류 칩의 숫자와 같은 결 */
.nd-n { flex: none; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(100,140,255,.3); background: rgba(74,158,255,.12); color: #cfe0ff; font-size: 11.5px; font-variant-numeric: tabular-nums; cursor: default; }
.nd-mk { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 9px; padding: 6px 11px; font: inherit; font-size: 12.5px;
  cursor: pointer; color: #fff; text-decoration: none; background: linear-gradient(135deg,#4a9eff,#8b5cf6); }
.nd-empty { color: rgba(150,175,255,.5); font-size: 12.5px; text-align: center; margin: 14px 0; }
/* 은하 — 왼쪽 줄 옆에 뜨는 판 */
#need-pop { position: fixed; top: 76px; left: 84px; z-index: 195; width: 380px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin;
  padding: 16px 16px 14px; border-radius: 16px; background: rgba(8,8,28,.96); border: 1px solid rgba(100,140,255,.22);
  box-shadow: 0 16px 48px rgba(0,0,20,.85); backdrop-filter: blur(20px); }
#need-pop[hidden] { display: none; }
#need-pop .nd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#need-pop .nd-head b { font-size: 15px; font-weight: 600; color: #fff; flex: 1; }
#need-pop .nd-head i { color: #6eb3ff; font-size: 18px; }
#need-pop .nd-x { background: none; border: 0; color: rgba(180,200,255,.6); cursor: pointer; font-size: 16px; padding: 2px; }
#need-pop .nd-lead { font-size: 12.5px; color: rgba(180,200,255,.66); margin: 0 0 12px; line-height: 1.5; }
#rail #need-btn { position: relative; }
#rail #need-btn .nd-dot { position: absolute; top: 10px; right: 18px; width: 7px; height: 7px; border-radius: 50%;
  background: #6eb3ff; box-shadow: 0 0 8px rgba(110,179,255,.9); }
#rail #need-btn .nd-dot[hidden] { display: none; }
/* 첫 화면 「테아에 필요한 행성」 탭 — 오늘 모자란 종류 밑 */
#need-home { padding: 10px 10px 4px; border-top: 1px solid rgba(100,140,255,.12); margin-top: 10px; }
#need-home .nd-lead { font-size: 12.5px; color: rgba(180,200,255,.66); margin: 0 2px 10px; line-height: 1.5; }
/* 「필요한」 · 「요즘 나온」 탭(2026-10-18) — 종류 칩 위, 밑줄 탭 */
.nd-srcs { display: flex; margin: 0 0 10px; border-bottom: 1px solid rgba(100,140,255,.18); }
.nd-src { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 7px 0;
  color: rgba(200,215,255,.6); font: inherit; font-size: 13px; cursor: pointer; }
.nd-src.on { color: #fff; border-bottom-color: #4a9eff; font-weight: 600; }
