.guest-room {
  --guest-ink: #274190;
  --guest-rule: #b5c6d8;
  background: #f4f5fb;
  color: var(--ink);
  padding-block: clamp(34px, 5.7vw, 86px);
}
.guest-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 0 clamp(32px, 7vw, 100px);
}
.guest-heading {
  --title-size: clamp(3.4rem, 6vw, 6rem);
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 12px;
  color: var(--guest-ink);
}
#guest-title {
  margin: 0;
  color: #234cce;
  font: 400 var(--title-size)/1.04 var(--font-display);
  letter-spacing: -.065em;
}
#guest-title span { display: block; font-size: 1.24em; }
.preview-tag { font-size: .8rem; font-weight: 700; }
.guest-illustration {
  display: flex;
  position: absolute;
  align-items: flex-end;
  top: calc(var(--title-size) * -.15);
  left: calc(var(--title-size) * 1.48);
  width: calc(var(--title-size) * 1.39);
  height: calc(var(--title-size) * 1.2);
  pointer-events: none;
}
.guest-illustration img { display: block; height: 85%; width: auto; }
.guest-illustration img:last-child { height: 110%; margin-left: -16%; }
.guest-board, .guest-panel { grid-column: 2; min-width: 0; }
.guest-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 47px;
  border-bottom: 2px solid var(--guest-ink);
}
.guest-board-heading h3, .guest-panel h3 { margin: 0; letter-spacing: -.035em; line-height: 1.25; }
.guest-board-heading h3 { font-size: 1.09rem; }
#guest-count {
  margin-inline-start: .28em;
  color: var(--guest-ink);
  font-size: .85rem;
  font-weight: 650;
  white-space: nowrap;
}
.guest-room .text-link { color: var(--guest-ink); }
.guest-room .guest-write-link, .guest-room .guest-meet {
  min-width: 44px;
  gap: 7px;
  font-size: .86rem;
}
.guest-write-link::after, .guest-meet::after {
  content: '';
  display: inline-block;
  width: .45em;
  height: .45em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.guest-meet::after { transform: rotate(-45deg); }
#guest-entries { list-style: none; margin: 0; padding: 0; }
#guest-entries li { padding-block: clamp(17px, 2vw, 28px) 9px; border-bottom: 1px solid var(--guest-rule); }
#guest-entries li > p {
  max-width: 34em;
  margin: 0;
  font-family: "AppleMyungjo", "Noto Serif CJK KR", "Batang", serif;
  font-size: clamp(1.18rem, 1.7vw, 1.58rem);
  line-height: 1.55;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.guest-signature {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
}
.guest-signature strong { min-width: 0; overflow-wrap: anywhere; font-size: .88rem; }
.guest-meet { margin-left: auto; flex: none; }
.guest-avatar { position: relative; display: block; flex: none; width: 32px; height: 40px; overflow: hidden; }
.guest-avatar img { position: absolute; display: block; max-width: none; image-rendering: pixelated; }
#guest-empty {
  padding-block: 24px;
  border-bottom: 1px solid var(--guest-rule);
  color: var(--guest-ink);
}
.guest-board-links, .guest-actions, .guest-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; }
.guest-board-links:has(> :not([hidden])) { margin-top: 5px; }
.guest-tools {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--guest-rule);
}
.guest-tools label { font-size: .875rem; font-weight: 700; }
.guest-pages { justify-content: end; }
.guest-pages .button { min-height: 44px; min-width: 44px; padding: 6px; font-size: .85rem; }
.guest-pages .button:disabled { cursor: default; }
#guest-page { font-size: .85rem; font-variant-numeric: tabular-nums; }
.guest-panel { padding-top: clamp(22px, 3vw, 42px); scroll-margin-top: 16px; }
.guest-panel h3 { margin-bottom: 8px; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.guest-panel .guest-actions:has(> :not([hidden])) { margin-top: 12px; }
.guest-panel .button--primary { background: var(--guest-ink); }
.guest-panel .button--primary:hover { background: #172a64; }
.guest-room .button--quiet { text-decoration: underline; text-underline-offset: 4px; }
#guest-eligibility { font-weight: 650; }
#guest-account:has(+ #guest-form:not([hidden])) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 10px;
  font-size: .9rem;
}
#guest-account:has(+ #guest-form:not([hidden])) .guest-actions { margin: 0; }
#guest-account:has(+ #guest-form:not([hidden])) :is(#guest-switch, #guest-signout) {
  min-height: 44px;
  padding: 2px 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .82rem;
}
#guest-account:has(+ #guest-form:not([hidden])) + #guest-form { margin-top: 8px; }
#guest-public-message, #guest-login > p { color: #485569; }
#guest-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 20px; }
.guest-field-label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
#guest-form label { font-weight: 700; }
#guest-form small { font-size: .85rem; color: #485569; }
#guest-form input:not([type]), #guest-form textarea, #guest-search {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #77889a;
  border-radius: 2px;
  background: #fffefa;
  padding: 10px 12px;
  font-size: max(16px, 1rem);
  color: var(--ink);
  line-height: 1.5;
}
#guest-form [aria-invalid="true"] { outline: 2px solid #a02745; }
#guest-nickname { margin-bottom: 8px; }
#guest-form textarea { min-height: 88px; resize: vertical; }
.guest-character { margin: 0 0 8px; padding: 12px 0; border-block: 1px solid var(--guest-rule); }
.guest-character figcaption { color: var(--guest-ink); font-size: .83rem; font-weight: 700; }
.guest-post-preview {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  column-gap: 12px;
  padding-top: 3px;
  overflow-wrap: anywhere;
}
.guest-post-preview .guest-avatar { grid-row: 1 / span 2; width: 48px; height: 60px; }
.guest-post-preview p { grid-column: 2; margin: 0; }
.guest-post-preview:has(p:not([hidden])) strong { align-self: end; }
.guest-post-preview p:not([hidden]) { align-self: start; }
.guest-opt-in { display: flex; min-height: 44px; align-items: center; gap: 8px; font-size: .94rem; line-height: 1.45; }
.guest-opt-in input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--guest-ink); }
#guest-form .guest-actions { margin-top: 0; }
#guest-status:empty { display: none; }
#guest-status { margin-top: 12px; font-size: .94rem; font-weight: 700; }
@media (max-width: 900px) {
  .guest-tools { grid-template-columns: minmax(0, 1fr) auto; }
  .guest-tools label { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .guest-layout { display: block; }
  .guest-heading {
    --title-size: clamp(2.35rem, 7.7vw, 3.4rem);
    width: fit-content;
    padding-top: .35em;
    margin: 4px 0 14px;
  }
  #guest-title span { display: inline; font-size: 1em; }
  .guest-illustration {
    height: calc(var(--title-size) * 1.54);
    width: calc(var(--title-size) * 1.58);
    top: calc(var(--title-size) * -.38);
    left: calc(100% + 3px);
  }
}
@media (max-width: 480px) {
  .guest-tools { grid-template-columns: minmax(0, 1fr); }
  .guest-pages { justify-content: start; }
}
