:root {
  color-scheme: dark;
  --bg: #07080c; --space: #030409;
  --ink: #edebe5; --ink-2: #b5b3ab; --muted: #7e7c85; --faint: #55545c;
  --hair: rgba(255, 255, 255, 0.08); --hair-2: rgba(255, 255, 255, 0.16);
  --fill: rgba(255, 255, 255, 0.045); --fill-2: rgba(255, 255, 255, 0.09);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181;
  --light: #ffd98a; --light-soft: #fff4d6;
  --font: "Pretendard Variable", "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(255, 217, 138, 0.3); }
:focus-visible { outline: 2px solid var(--light); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.brand .mark { width: 8px; height: 8px; border-radius: 50%; background: var(--light-soft); box-shadow: 0 0 10px 2px rgba(255, 217, 138, 0.5); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--ink); color: #121212; font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background 0.15s, transform 0.1s; }
.btn:hover { background: #fff; }
.btn:active { transform: translateY(1px); }
.btn .en { font-weight: 500; font-size: 13px; color: #75716a; }
.btn.small { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn.ghost { background: var(--fill-2); color: var(--ink); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }
.text-link { color: var(--ink-2); font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--hair-2); padding-bottom: 1px; }
.text-link:hover { color: var(--ink); border-color: var(--ink-2); }
.muted { color: var(--muted); }
.en { color: var(--muted); font-weight: 500; font-size: 0.8em; letter-spacing: 0; }
/* 권한 이름은 심사 녹화 모드(?demo=1)에서만 보인다 */
.perm { display: none; font-family: var(--mono); font-size: 11.5px; color: var(--light); }
.demo .perm { display: inline; }

/* ---------- landing ---------- */
.sky-hero { --scrim: 0.4; position: relative; min-height: 100vh; min-height: min(100svh, 960px); display: flex; flex-direction: column; overflow: hidden; }
/* 영상 가운데의 금빛 별이 로그인 버튼 아래에 오도록 20% 내린다. 위쪽 끝은 부드럽게 사라지게.
   screen 합성: 영상의 검은 부분은 페이지 배경이 그대로 비친다 */
.hero-film { position: absolute; left: 0; right: 0; top: 20%; width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%); mask-image: linear-gradient(180deg, transparent, #000 15%); }
/* 아래쪽은 본문 배경으로 이어지게, 글자 뒤는 살짝 어둡게 눌러 읽기 쉽게 */
.sky-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent calc(100% - 260px), var(--bg)),
    radial-gradient(ellipse var(--scrim-size, 60% 40%) at 50% 48%, rgba(7, 8, 12, var(--scrim)) 45%, transparent 85%); }
@media (max-width: 760px) { .sky-hero { --scrim-size: 110% 36%; } }
.sky-hero > .wrap { position: relative; z-index: 1; width: 100%; }
.hero { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px 12vh; }
.hero h1 { font-size: clamp(56px, 11vw, 132px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin: 0; color: #f4efe4;
  text-shadow: 0 0 40px rgba(7, 8, 12, 0.9); }
.hero .lede { margin: 30px 0 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.8; color: var(--ink-2); max-width: 34em;
  text-shadow: 0 0 24px rgba(7, 8, 12, 0.95), 0 0 6px rgba(7, 8, 12, 0.9); }
.hero .cta { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero .fine { font-size: 13px; color: var(--muted); text-shadow: 0 0 16px rgba(7, 8, 12, 0.95), 0 0 4px rgba(7, 8, 12, 0.95); }
.notice { display: none; margin: 22px 0 0; font-size: 14px; color: var(--light-soft); }
.notice.on { display: block; }

.intro { padding-top: 112px; }
.intro h2, .closing h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 750; letter-spacing: -0.05em; line-height: 1.2; margin: 0; }
.intro-sub { color: var(--ink-2); font-size: 17px; line-height: 1.75; max-width: 34em; margin: 22px 0 0; }
.enc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 80px; }
.enc svg { display: block; height: 64px; width: 120px; margin-bottom: 22px; overflow: visible; }
.enc h3 { font-size: 18px; letter-spacing: -0.03em; margin: 0 0 6px; }
.enc p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.feature-list { margin: 128px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.feature-list > div { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--hair); }
.feature-list dt { font-size: 21px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.35; }
.feature-list dt .en { display: block; margin-top: 2px; font-size: 13.5px; }
.feature-list dd { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 34em; }
.closing { padding-top: 160px; padding-bottom: 160px; text-align: center; }
.closing p { color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 33em; margin: 22px auto 40px; }
@media (max-width: 760px) {
  .intro { padding-top: 64px; }
  /* 휴대폰: 밝기·거리·색은 그림 왼쪽, 글 오른쪽 한 줄씩 */
  .enc { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .enc > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .enc svg { grid-row: span 2; width: 96px; height: 52px; margin: 0; }
  .enc h3 { margin: 0; align-self: end; }
  .enc p { align-self: start; font-size: 15px; }
  .feature-list { margin-top: 88px; }
  .feature-list > div { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .closing { padding-top: 104px; padding-bottom: 104px; }
}

/* ---------- docs ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 24px 80px; }
.doc h1 { font-size: 34px; letter-spacing: -0.04em; margin: 12px 0 4px; }
.doc h2 { font-size: 19px; margin: 40px 0 8px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { border-bottom: 1px solid var(--hair); padding: 10px 8px; text-align: left; vertical-align: top; color: var(--ink-2); }
.doc th { color: var(--muted); font-weight: 500; }
.doc .lang { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--hair); }
.doc .meta { color: var(--muted); font-size: 13px; }
.doc .card { margin: 20px 0; padding: 18px 20px; border-radius: 14px; background: var(--fill); }

footer.site { border-top: 1px solid var(--hair); padding: 32px 0 52px; font-size: 13px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { text-decoration: none; color: var(--ink-2); }
footer.site a:hover { color: var(--ink); }
footer.site .company { line-height: 1.85; }
footer.site .company b { color: var(--ink-2); font-weight: 600; }

/* ---------- app ---------- */
.userbox { display: flex; align-items: center; gap: 12px; font-size: 14px; min-width: 0; }
.userbox .who { min-width: 0; }
.userbox .text-link { white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #1c1c22; flex: none; }
.avatar.lg { width: 56px; height: 56px; }
@media (max-width: 520px) { .userbox .who .muted { display: none; } .userbox .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* 대시보드 첫 화면: 화면 전체가 대화 은하이고, 메뉴와 요약은 그 위에 겹쳐 올린다 */
.universe { --pr: max(20px, calc((100% - 1120px) / 2 + 24px)); position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--space); }
.universe .gx { position: absolute; inset: 0; height: auto; min-height: 0; }
.universe .gx .gx-panel { top: 84px; }
.universe .gx .gx-focusbar { top: 84px; }
.uni-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 4, 9, 0.85), rgba(3, 4, 9, 0)); }
.uni-nav a, .uni-nav button, .uni-nav img { pointer-events: auto; }
.uni-head { position: absolute; top: 92px; left: var(--pr); z-index: 5; width: min(400px, calc(100% - 2 * var(--pr))); pointer-events: none;
  text-shadow: 0 1px 14px rgba(3, 4, 9, 0.95), 0 0 3px rgba(3, 4, 9, 0.9); }
.uni-head a, .uni-head button { pointer-events: auto; }
.uni-head.is-loading h1, .uni-head.is-loading .sub, .uni-head.is-loading .uni-actions { display: none; }
.uni-eyebrow { margin: 0; font-size: 12.5px; color: var(--muted); }
.uni-owner { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.uni-head h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.25; margin: 4px 0 0; }
.uni-head h1 .lit { color: var(--light-soft); text-shadow: 0 0 24px rgba(255, 217, 138, 0.5); }
.uni-head .sub { color: var(--ink-2); font-size: 14px; line-height: 1.65; margin: 8px 0 0; }
.uni-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.uni-actions .btn.small { height: 38px; padding: 0 16px; font-size: 13.5px; }
.uni-actions .text-link { font-size: 13.5px; }
/* 은하를 불러오는 동안: 가운데에서 별 하나가 궤도를 돈다 */
.gx-loader { display: grid; justify-items: center; gap: 20px; color: var(--ink-2); font-size: 15px; text-align: center; }
.gx-loader p { margin: 0; }
.gx-loader small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.gx-loader .orbit { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); animation: gx-spin 1.6s linear infinite; }
.gx-loader .orbit::before { content: ""; position: absolute; inset: 27px; border-radius: 50%; background: var(--light-soft); box-shadow: 0 0 16px 5px rgba(255, 217, 138, 0.45); }
.gx-loader .orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--light);
  box-shadow: 0 0 10px 3px rgba(255, 217, 138, 0.6); }
@keyframes gx-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .universe { height: auto; overflow: visible; }
  .universe .gx { position: relative; display: flex; flex-direction: column; }
  .universe .gx .gx-canvas { order: -1; height: 100vh; height: 100svh; min-height: 520px; }
  .universe .gx.gx-loading { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; }
  .universe .gx .gx-focusbar { top: auto; bottom: 64px; }
  .uni-head { top: 72px; }
  .uni-head h1 { font-size: 22px; }
  .uni-head .sub { display: none; }
  .uni-actions { margin-top: 12px; }
}

.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding: 64px 0 88px; scroll-margin-top: 16px; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.035em; }
.hint { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.form { display: flex; gap: 8px; margin: 20px 0 0; flex-wrap: wrap; }
.input { flex: 1; min-width: 150px; height: 46px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; background: var(--fill); outline: none;
  transition: border-color 0.15s, background 0.15s; }
.input::placeholder { color: var(--faint); }
.input:focus { background: rgba(255, 255, 255, 0.065); border-color: rgba(255, 217, 138, 0.45); }
.form .btn.small { height: 46px; border-radius: 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill); }
.seg button { height: 40px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.result { margin-top: 24px; }
.status { font-size: 14.5px; color: var(--ink-2); padding: 4px 0; line-height: 1.7; }
.status.err { color: #f2a7a0; }
.status .en { display: block; margin-top: 4px; }
.pcard { display: flex; gap: 14px; align-items: flex-start; }
.pcard h3 { margin: 2px 0 0; font-size: 19px; letter-spacing: -0.03em; }
.pcard .bio { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }
.badge { font-size: 12.5px; font-weight: 500; color: var(--light); letter-spacing: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; margin: 24px 0; }
.stat b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.post { border-top: 1px solid var(--hair); padding: 14px 0; }
.post .who { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.post .who b { color: var(--ink); font-weight: 600; }
.post p { margin: 6px 0 0; font-size: 15px; white-space: pre-line; color: var(--ink-2); }
.post a { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.post a:hover { color: var(--ink); }
.authors { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.authors button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--fill); color: var(--ink-2); font-size: 13.5px; cursor: pointer; }
.authors button:hover { background: var(--fill-2); color: var(--ink); }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; } }
@media (max-width: 520px) { #searchForm .input { flex-basis: 100%; } #searchForm .btn { flex: 1; } }

/* ---------- 대화 은하 (galaxy.js) ---------- */
.galaxy-section { padding: 8px 0 0; scroll-margin-top: 0; }
.galaxy-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.galaxy-head .hint { margin: 0; }
.gx { --panel-w: 340px; --gap: 20px; --pr: max(var(--gap), calc((100% - 1120px) / 2 + 24px));
  --unk: #6f6e7d; --star: #c9c8d4; --edge: rgba(255, 224, 168, 0.6);
  position: relative; height: min(88vh, 900px); min-height: 620px; overflow: hidden;
  background: radial-gradient(ellipse 38% 45% at 42% 50%, rgba(255, 217, 138, 0.05), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--space) 10%, var(--space) 90%, var(--bg) 100%); }
.gx-loading { display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.gx .gx-canvas { position: absolute; inset: 0; }
.gx .gx-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.gx .gx-svg:active { cursor: grabbing; }
.gx .gx-toolbar { position: absolute; left: var(--pr); bottom: var(--gap); right: calc(var(--panel-w) + var(--pr) + 72px); z-index: 3;
  display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.gx .chip, .gx .gx-toggle { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink-2); font-size: 13px; white-space: nowrap; cursor: pointer; }
.gx .chip:hover, .gx .gx-toggle:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.gx .chip[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.gx .chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.gx .chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.gx .gx-toggle[hidden] { display: none; }
.gx .gx-zoom { position: absolute; right: calc(var(--panel-w) + var(--pr) + 16px); bottom: var(--gap); z-index: 3; display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; background: rgba(12, 13, 19, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.gx .gx-zoom button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.gx .gx-zoom button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.gx .gx-zoom .lvl { font-size: 10.5px; color: var(--muted); text-align: center; padding: 2px 0 7px; font-variant-numeric: tabular-nums; }
.gx .gx-focusbar { position: absolute; top: var(--gap); left: calc((100% - var(--panel-w) - var(--pr)) / 2); transform: translateX(-50%); z-index: 3;
  display: none; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  background: rgba(12, 13, 19, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.gx .gx-focusbar.on { display: flex; }
.gx .gx-focusbar button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.09); font-size: 13px; cursor: pointer; }
.gx .gx-focusbar button:hover { background: rgba(255, 255, 255, 0.15); }
.gx .gx-tip { position: absolute; pointer-events: none; z-index: 6; opacity: 0; transition: opacity 0.12s; max-width: 270px; padding: 10px 13px;
  border-radius: 12px; background: rgba(16, 17, 24, 0.96); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); font-size: 13px; line-height: 1.55; }
.gx .gx-tip .t-name { font-weight: 650; }
.gx .gx-tip .t-sub, .gx .gx-tip .t-quote { color: var(--ink-2); }
.gx .gx-panel { position: absolute; top: var(--gap); right: var(--pr); bottom: var(--gap); width: var(--panel-w); z-index: 4; overflow: auto;
  padding: 24px 22px; border-radius: 18px; background: rgba(10, 11, 16, 0.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }

/* marks */
.gx .nebula, .gx .edge, .gx .label, .gx .ringguide, .gx .ringtext { pointer-events: none; }
.gx .edge { transition: opacity 0.3s; }
.gx .node { cursor: pointer; transition: opacity 0.35s; outline: none; }
.gx .node.hidden { opacity: 0; pointer-events: none; }
.gx .dim { opacity: 0.08 !important; }
.gx .edge.hot { opacity: 0.95 !important; stroke: #fff !important; }
.gx .node.hl .mark { stroke: #fff !important; stroke-width: 2px !important; }
.gx .quiet .mark { animation: gx-twinkle 4.5s ease-in-out infinite; }
@keyframes gx-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.95; } }
.gx .skystar { fill: #b8bdd6; pointer-events: none; animation: gx-sky 6s ease-in-out infinite; }
@keyframes gx-sky { 0%, 100% { fill-opacity: 1; } 50% { fill-opacity: 0.35; } }
.gx .halo { pointer-events: none; opacity: var(--o); animation: gx-breathe 5s ease-in-out infinite; }
@keyframes gx-breathe { 0%, 100% { opacity: var(--o); } 50% { opacity: calc(var(--o) * 0.6); } }
.gx .core { fill: #fffaf0; pointer-events: none; }
.gx .label { font-size: calc(11.5px / var(--k, 1)); fill: var(--ink-2); paint-order: stroke; stroke: var(--space); stroke-width: calc(3px / var(--k, 1)); stroke-linejoin: round; display: none; }
.gx .me-label { font-size: calc(12.5px / var(--k, 1)); fill: var(--ink); font-weight: 700; display: inline; }
.gx .anchor-label { font-size: calc(15px / var(--k, 1)); font-weight: 700; fill: var(--ink); letter-spacing: -0.02em; paint-order: stroke; stroke: var(--space); stroke-width: calc(5px / var(--k, 1)); stroke-linejoin: round; }
.gx .anchor-count { font-size: calc(12px / var(--k, 1)); font-weight: 500; fill: var(--muted); letter-spacing: 0; }
.gx .ringguide { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-dasharray: 2 6; }
.gx .ringtext { font-size: calc(11px / var(--k, 1)); fill: var(--faint); }
.gx .layer { transition: opacity 0.9s ease; }
.gx:not(.in) .layer { opacity: 0; }

/* panel */
.gx-panel .glow-sum .big { display: flex; align-items: baseline; gap: 8px; }
.gx-panel .glow-sum .big b { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--light-soft);
  text-shadow: 0 0 26px rgba(255, 217, 138, 0.5); font-variant-numeric: tabular-nums; }
.gx-panel .glow-sum .big span { font-size: 15px; color: var(--ink-2); }
.gx-panel .glow-sum .muted { margin-top: 10px; }
.gx-panel h2 { font-size: 19px; margin: 0 0 4px; letter-spacing: -0.03em; line-height: 1.35; }
.gx-panel h3 { font-size: 12.5px; margin: 28px 0 8px; color: var(--muted); font-weight: 600; }
.gx-panel .muted { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 4px 0 0; }
.gx-panel .back { border: 0; background: none; color: var(--ink-2); font-size: 13px; padding: 0; cursor: pointer; margin-bottom: 14px; }
.gx-panel .back:hover { color: var(--ink); }
.gx-panel .rank { list-style: none; margin: 4px -8px 0; padding: 0; }
.gx-panel .rank li { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 10px; cursor: pointer; }
.gx-panel .rank li:hover { background: rgba(255, 255, 255, 0.06); }
.gx-panel .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.gx-panel .who { flex: 1; min-width: 0; }
.gx-panel .who b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-panel .who span { font-size: 12px; color: var(--muted); }
.gx-panel .cnt { font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gx-panel .meter { display: block; height: 2px; border-radius: 1px; margin-top: 6px; }
.gx-panel .badges { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 4px; }
.gx-panel .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.gx-panel .badge.hub { color: var(--light-soft); }
.gx-panel .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gx-panel .tile b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gx-panel .tile span { font-size: 12px; color: var(--muted); }
.gx-panel .quote { border-left: 2px solid var(--hair-2); padding: 2px 0 2px 12px; margin: 14px 0; }
.gx-panel .q-post, .gx-panel .q-date { font-size: 12px; color: var(--muted); }
.gx-panel .q-text { font-size: 14px; line-height: 1.65; white-space: pre-line; margin: 3px 0 0; color: var(--ink-2); }
.gx-panel .ext { display: inline-block; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hair-2); }
.gx-panel .ext:hover { color: var(--ink); }
.gx-panel .note { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin: 12px 0 0; }
.gx-panel .catbars { display: grid; gap: 8px; }
.gx-panel .catbar { display: grid; grid-template-columns: 96px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.gx-panel .catbar:hover { color: var(--ink); }
.gx-panel .catbar .track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.gx-panel .catbar .fill { height: 100%; border-radius: 3px; }
.gx-panel .catbar .v { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.gx-panel .legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13px; color: var(--ink-2); }
.gx-panel .legend li { display: flex; gap: 10px; align-items: center; }
.gx-panel .legend svg { flex: none; }
.gx-panel .pcard { display: flex; gap: 12px; align-items: center; }

@media (max-width: 900px) {
  .gx { height: auto; min-height: 0; overflow: visible; background: none; }
  .gx .gx-canvas { position: relative; height: 72vh; min-height: 460px; overflow: hidden;
    background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(255, 217, 138, 0.05), transparent 70%), var(--space); }
  .gx .gx-toolbar { position: static; padding: 0 16px 10px; flex-wrap: nowrap; overflow-x: auto; }
  .gx .gx-zoom { right: 12px; bottom: 12px; }
  .gx .gx-focusbar { left: 50%; top: 12px; max-width: calc(100% - 24px); }
  .gx .gx-panel { position: static; width: auto; margin: 16px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 8px 8px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gx .quiet .mark { animation: none; opacity: 0.55; }
  .gx .skystar, .gx .halo { animation: none; }
  .gx-loader .orbit { animation-duration: 6s; }
  .gx .layer, .gx .node, .gx .edge { transition: none; }
}

/* ---------- 심사 녹화 모드 자막 (?demo=1) ---------- */
.demo-caption { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 100; width: min(900px, calc(100% - 32px));
  background: rgba(8, 9, 16, 0.94); border: 1px solid rgba(255, 217, 138, 0.4); border-radius: 16px; padding: 14px 20px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6); font-size: 17px; line-height: 1.5; color: #fff; }
.demo-caption .demo-head { font-size: 12.5px; letter-spacing: 0.08em; color: var(--light); font-weight: 700; margin-bottom: 4px; }
.demo-caption code { font-family: var(--mono); letter-spacing: 0; color: #fff; background: rgba(255, 217, 138, 0.16); padding: 1px 6px; border-radius: 5px; }
.demo-caption.pop { animation: demo-pop 0.35s ease; }
@keyframes demo-pop { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
