* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: #f2f5fa;
  color: #15263e;
  font: 16px/1.6 system-ui, "Malgun Gothic", sans-serif;
}
main { max-width: 1180px; margin: 48px auto; padding: 0 24px; }

h1 { font-size: 36px; margin: 8px 0; }
h2 { font-size: 23px; margin: 8px 0 18px; }
.brand { font-weight: 700; color: #2459a6; margin: 0; }
.eyebrow { color: #2459a6; font-weight: 700; font-size: 14px; }
.muted { color: #576c85; font-size: 14px; }
.status { min-height: 1.6em; margin: 14px 0 0; }
.status.error { color: #b42318; }

header, .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.badge {
  padding: 6px 14px;
  border-radius: 24px;
  background: #dce9fc;
  color: #2459a6;
  white-space: nowrap;
  font-size: 14px;
}
.notice {
  color: #815314;
  background: #fff6e6;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
}

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
section {
  background: white;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  padding: 28px;
  margin: 16px 0;
}

form { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
form.stack { align-items: stretch; flex-direction: column; }
label { display: grid; gap: 6px; min-width: 0; }
input {
  padding: 12px;
  border: 1px solid #899bb2;
  border-radius: 8px;
  font: inherit;
  max-width: 100%;
  width: 100%;
  color: inherit;
}
button, .button {
  padding: 12px 20px;
  background: #2459a6;
  color: white;
  border: 0;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
button:disabled { opacity: .5; cursor: wait; }
.secondary { background: #e8eef7; color: #25476f; }
.danger { background: #b42318; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.section-head .actions { margin-top: 0; }

/* 원격 화면 */
#stage { position: relative; background: #111; border-radius: 8px; overflow: hidden; }
#screen {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
#stage.focused { outline: 3px solid #2459a6; }
/* 키보드 입력을 받는 보이지 않는 칸. 화면 밖으로 빼지 않아야 IME 조합창이 화면 근처에 뜬다. */
#key-sink {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  resize: none;
  overflow: hidden;
}
#viewer:fullscreen { margin: 0; border: 0; border-radius: 0; padding: 8px; background: #111; color: #dbe3ee; }
#viewer:fullscreen > p { display: none; }
#viewer:fullscreen #stage { height: calc(100vh - 70px); border-radius: 0; }
#viewer:fullscreen #screen { height: 100%; object-fit: contain; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid #e5eaf2; white-space: nowrap; }
#users > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #e5eaf2;
}
#invite-box { margin-top: 16px; }
footer { font-size: 13px; color: #576c85; margin: 24px 0; }

@media (max-width: 720px) {
  main { margin: 24px auto; padding: 0 16px; }
  .columns { grid-template-columns: 1fr; gap: 0; }
  header { align-items: start; }
  .badge { font-size: 11px; padding: 5px 8px; }
  h1 { font-size: 28px; }
  section { padding: 20px; }
  #join { align-items: stretch; flex-direction: column; }
  .section-head { flex-wrap: wrap; }
}

/* 고객 안내 화면 */
main.narrow { max-width: 720px; }
.steps { margin: 0; padding-left: 1.4em; }
.steps > li { padding: 6px 0 18px; }
.steps > li::marker { font-size: 23px; font-weight: 700; color: #2459a6; }
.steps h2 { margin: 0 0 10px; }
.button.big { font-size: 19px; padding: 16px 28px; }
footer a { margin-left: 12px; color: inherit; }
