:root {
  color-scheme: dark;
  --bg: #08111d;
  --panel: rgba(16, 31, 48, .78);
  --line: rgba(155, 184, 208, .14);
  --text: #edf6ff;
  --muted: #8ea5b9;
  --cyan: #65e4dc;
  --blue: #76a9ff;
  --amber: #ffbf69;
  font-family: Inter, "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -5%, rgba(31, 109, 143, .28), transparent 32rem),
    radial-gradient(circle at 90% 25%, rgba(52, 67, 132, .2), transparent 28rem),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
button, input { font: inherit; }
.shell { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 72px; }
.topbar, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 15px; }
.brand-mark { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(101, 228, 220, .4); border-radius: 50%; background: rgba(101, 228, 220, .06); box-shadow: inset 0 0 22px rgba(101, 228, 220, .08); }
.brand-mark::before { content: ""; width: 30px; height: 17px; border: 2px solid var(--cyan); border-radius: 80% 12%; transform: rotate(45deg); }
.brand-mark i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
h1, h2, p { margin: 0; }
h1 { font-family: Georgia, serif; font-size: 29px; font-weight: 500; letter-spacing: .01em; }
h2 { font-size: 22px; font-weight: 650; }
.eyebrow { margin-bottom: 4px; color: var(--cyan); font-size: 10px; letter-spacing: .2em; font-weight: 800; }
.actions { display: flex; gap: 9px; }
.button { border: 1px solid var(--cyan); border-radius: 9px; padding: 10px 15px; color: #051114; background: var(--cyan); font-weight: 750; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button.secondary { color: var(--cyan); background: transparent; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.auth-panel { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid rgba(255, 191, 105, .35); border-radius: 14px; background: rgba(255, 191, 105, .07); }
.auth-panel.hidden { display: none; }
.auth-panel form { display: flex; gap: 8px; min-width: min(440px, 100%); }
.auth-panel input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; color: var(--text); background: rgba(0, 0, 0, .2); }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 38px; }
.summary article { position: relative; overflow: hidden; padding: 21px; min-height: 132px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); backdrop-filter: blur(14px); }
.summary article::after { content: ""; position: absolute; right: -22px; bottom: -42px; width: 90px; height: 90px; border: 1px solid rgba(118, 169, 255, .17); border-radius: 50%; }
.summary span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.summary strong { display: block; margin: 9px 0 3px; font-family: Georgia, serif; font-size: 39px; font-weight: 500; }
.summary small { color: var(--muted); }
.summary .attention strong { color: var(--amber); }
.section-head { margin: 48px 0 16px; }
.updated { color: var(--muted); font-size: 13px; }
.host-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.host-card { border: 1px solid var(--line); border-radius: 15px; background: var(--panel); overflow: hidden; }
.host-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.host-title h3 { margin: 0; font-size: 14px; letter-spacing: .04em; }
.host-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.session-list { display: grid; }
.session { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 16px; padding: 15px 19px; border-bottom: 1px solid rgba(155, 184, 208, .08); }
.session:last-child { border-bottom: 0; }
.session-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.session-status { color: var(--muted); font-size: 11px; }
.session-status.live { color: var(--cyan); }
.session-meta { display: flex; gap: 13px; color: var(--muted); font-size: 11px; }
.session-output { color: var(--blue); font-variant-numeric: tabular-nums; font-size: 12px; }
.empty { margin: 0; padding: 25px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 14px; }
.ask-list { display: grid; gap: 9px; }
.ask { display: grid; grid-template-columns: 11px 1fr auto; align-items: center; gap: 12px; padding: 14px 17px; border: 1px solid rgba(255, 191, 105, .22); border-radius: 12px; background: rgba(255, 191, 105, .06); }
.ask .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.ask strong { font-size: 13px; }
.ask small { color: var(--muted); }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: min(390px, calc(100% - 40px)); padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #14273b; box-shadow: 0 15px 45px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .shell { width: min(100% - 24px, 620px); padding-top: 24px; }
  .topbar { align-items: flex-start; }
  .actions { flex-direction: column; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .host-grid { grid-template-columns: 1fr; }
  .auth-panel { align-items: stretch; flex-direction: column; }
}
@media (max-width: 480px) {
  .brand-mark { width: 44px; height: 44px; }
  h1 { font-size: 25px; }
  .button { padding: 9px 11px; font-size: 12px; }
  .summary article { min-height: 112px; padding: 16px; }
  .summary strong { font-size: 32px; }
  .section-head { align-items: flex-end; margin-top: 37px; }
  .updated { max-width: 130px; text-align: right; }
  .auth-panel form { flex-direction: column; }
}
