/* 중계 입구(relay.bomtobe.com). 승인된 시안(Main·PcList·PcListEmpty·PcListDesktop) 그대로의 어두운 화면 하나.
   720px 아래는 폰 배치, 그 위는 PC 브라우저 배치다. CSP 가 인라인 스타일과 바깥 글꼴을 막으므로 모든 모양이 이 파일에 있다. */
:root {
  color-scheme: dark;
  --bg: #15181d;
  --text: #edf1f7;
  --muted: #a0a9b6;
  --faint: #838c99;
  --line: #262c35;
  --card: #1d222a;
  --card-line: #343c48;
  --icon-bg: #262d37;
  --icon-text: #c8d7ed;
  --brand: #1c8d5e;
  --on: #56d69a;
  --link: #a4c8f7;
  --link-hover: #c5dcfa;
  --notice: #f2b3ad;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

h1, h2, p, ul, ol { margin: 0; }

button { font: inherit; }

/* 버튼 하나짜리 POST 폼(로그인·로그아웃)은 배치에서 빠진다. */
.inline-form { display: contents; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 로고 */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--brand); flex: 0 0 auto; }
.wordmark { font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: -1px; }
.wordmark-dot { color: var(--brand); }

/* 로그인(시안 Main) */
.signin {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 64px 26px 28px;
  display: flex;
  flex-direction: column;
}
.signin-main {
  flex: 1;
  width: 100%;
  max-width: 338px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.signin .brand { gap: 12px; margin-bottom: 40px; }
.signin .wordmark { font-size: 46px; letter-spacing: -2.5px; }
.signin h1 { font-size: 26px; line-height: 1.4; font-weight: 600; letter-spacing: -0.8px; }
.signin-lead {
  margin-top: 10px;
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}
.signin-form { width: 100%; margin-top: 32px; }
.notice {
  margin-top: 20px;
  color: var(--notice);
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}
.signin .notice + .signin-form { margin-top: 16px; }
.google {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #747775;
  border-radius: 6px;
  background: #ffffff;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}
.google:hover { background: #f8f9fa; }
.secure {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.signin-footer {
  text-align: center;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.8;
}
.signin-footer a { color: var(--muted); }

/* 로그인한 화면의 머리(시안 PcList·PcListDesktop) */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  height: 60px;
  flex: 0 0 auto;
  padding: 0 10px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.account { display: flex; align-items: center; gap: 10px; }
.avatar-box { width: 44px; height: 44px; display: grid; place-items: center; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #303d51;
  color: var(--icon-text);
  font-size: 13px;
  font-weight: 600;
}
.account-email, .account-signout { display: none; }
.account-email { color: var(--muted); font-size: 13px; line-height: 1.5; }

.text-button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.text-button:hover { color: var(--text); }

/* 목록 */
.content {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 16px;
}
.content h1 { font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: -0.6px; }
.lead {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hosts { list-style: none; margin-top: 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.host {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 14px 14px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}
a.host:hover { color: var(--text); border-color: #46505e; background: #212731; }
.host-off {
  grid-template-columns: 40px minmax(0, 1fr);
  border: 1px dashed #3a414c;
  background: transparent;
  color: #c3c9d2;
}
.host-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--icon-bg);
  color: var(--icon-text);
}
.host-off .host-icon { background: #1b1f26; color: var(--faint); }
.host-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.host-name { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.host-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.host-off .host-status { color: var(--faint); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--on); flex: 0 0 auto; }
.host-off .status-dot { background: transparent; border: 1.5px solid var(--faint); }
.host-open { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.host-open-label { display: none; }
.hint {
  margin: 18px 2px 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}
.content .notice { margin-top: 16px; }

.actions { margin-top: auto; padding-top: 16px; display: flex; justify-content: center; align-items: center; gap: 2px; }
.actions-separator { color: #4a525e; }

/* PC 없음(시안 PcListEmpty) */
.content-empty { padding-top: 44px; }
.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--card-line);
  background: #1b1f26;
  color: var(--muted);
}
.content-empty h1 { margin-top: 22px; }
.steps {
  margin-top: 28px;
  padding: 18px 18px 8px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: var(--card);
}
.steps h2 { font-size: 14px; line-height: 1.5; font-weight: 600; }
.steps ol { list-style: none; margin-top: 12px; padding: 0; display: flex; flex-direction: column; }
.steps li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #2b313b;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}
.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--icon-bg);
  color: var(--icon-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.button-secondary {
  margin-top: 20px;
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  background: #202630;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.button-secondary:hover { color: var(--text); background: #262d38; }

/* PC 브라우저(시안 PcListDesktop) */
@media (min-width: 720px) {
  .topbar {
    height: auto;
    min-height: 60px;
    padding: 8px 16px 8px 24px;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .topbar .brand { gap: 9px; }
  .topbar .brand-mark { width: 26px; height: 26px; }
  .topbar .wordmark { font-size: 24px; }
  .account { flex-wrap: wrap; }
  .avatar-box { width: auto; height: auto; }
  .avatar { width: 30px; height: 30px; }
  .account-email { display: inline; }
  .account-signout { display: contents; }

  .content { max-width: 600px; margin: 0 auto; padding: 64px 24px 48px; flex: 0 1 auto; }
  .content h1 { font-size: 28px; letter-spacing: -0.8px; }
  .lead { font-size: 15px; }
  .hosts { margin-top: 28px; }
  .host { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; padding: 14px 16px; }
  .host-off { grid-template-columns: 40px minmax(0, 1fr); }
  .host-open-label { display: inline; }

  .actions { margin-top: 24px; padding-top: 0; justify-content: flex-start; }
  .actions-separator, .actions .actions-signout { display: none; }
  .actions .switch { padding: 0 2px; text-decoration: underline; text-underline-offset: 3px; }
  .content-empty { padding-top: 64px; }
}
