#check-in {
  --ci-paper: #f9f4ea;
  --ci-ink: #2d3025;
  --ci-muted: #625f50;
  --ci-line: #d7cdbc;
  --ci-pressed: #e7e3d1;
  --ci-accent: #464f36;
  width: min(720px, calc(100% - 34px));
  max-width: none;
  max-height: min(850px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: auto;
  scroll-padding: 20px 0 95px;
  background: var(--ci-paper);
  color: var(--ci-ink);
  border: 1px solid #e8decf;
  border-radius: 13px;
  box-shadow: 0 24px 95px #100d0abf;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b8ad99 var(--ci-paper);
}

#check-in::backdrop { background: #181710b8; backdrop-filter: blur(11px); }

#check-in .ci-header {
  padding: 15px clamp(20px, 4vw, 30px);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ci-line);
}

#check-in .ci-brand { font: 20px/1 var(--serif); letter-spacing: -.045em; }
#check-in .ci-progress { color: var(--ci-muted); font-size: 11px; font-weight: 600; }

#check-in .ci-banner {
  position: relative;
  overflow: hidden;
  background: #333e30;
  min-height: 130px;
}

#check-in .ci-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

#check-in .ci-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #251d1445, transparent 75%);
}

#check-in .ci-content { min-width: 0; padding: 24px clamp(20px, 4vw, 32px) 17px; }
#check-in .ci-title {
  margin: 0;
  outline: 0;
  color: var(--ci-ink);
  font: 400 clamp(31px, 6vw, 43px)/1.06 var(--serif);
  letter-spacing: -.039em;
  text-wrap: pretty;
}

#check-in .ci-description {
  margin: 9px 0 16px;
  color: var(--ci-muted);
  font-size: 13px;
  line-height: 1.52;
}

#check-in .ci-choice-group {
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

#check-in .ci-field-title {
  margin: 0;
  padding: 0 0 7px;
  color: var(--ci-muted);
  font: 650 12px/1.4 Arial, sans-serif;
}

#check-in .ci-areas { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#check-in .ci-area[data-area="all"] { grid-column: span 2; }

#check-in :is(.ci-area, .ci-situation, .ci-support, .ci-secondary) {
  border: 1px solid var(--ci-line);
  border-radius: 5px;
  background: #fffdf755;
  color: var(--ci-ink);
  padding: 9px 11px;
  text-align: left;
  font: 600 12px/1.3 Arial, sans-serif;
  min-height: 44px;
}

#check-in :is(.ci-area, .ci-situation, .ci-support, .ci-secondary):hover {
  border-color: #9d9077;
  background: #f0e9dc;
}

#check-in :is(.ci-area, .ci-situation, .ci-support)[aria-pressed="true"] {
  border-color: #737a58;
  background: var(--ci-pressed);
  box-shadow: inset 3px 0 #737a58;
}

#check-in .ci-situations { display: flex; flex-wrap: wrap; gap: 6px; }
#check-in .ci-situation { font-weight: 500; }
#check-in .ci-support { display: block; width: 100%; padding: 9px 13px; }
#check-in .ci-support + .ci-support { margin-top: 6px; }
#check-in .ci-option-detail { display: block; margin-top: 4px; color: var(--ci-muted); font-weight: 400; }

#check-in .ci-match {
  margin: 0 0 14px;
  padding: 9px 12px;
  color: #4d553c;
  background: #eae7d8;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

#check-in .ci-details { border-top: 1px solid var(--ci-line); }
#check-in .ci-details summary {
  padding: 13px 2px;
  min-height: 44px;
  color: #544c38;
  font: 600 12px/1.3 Arial, sans-serif;
  cursor: pointer;
}

#check-in .ci-details summary:focus-visible { outline: 2px solid #725b34; outline-offset: 2px; }
#check-in :is(.ci-tone, .ci-private-input) {
  margin: 0;
  color: var(--ci-ink);
  background: #fffdf7;
  border-color: #a99f8b;
  font-size: 16px;
}

#check-in .ci-private-input { min-height: 80px; }
#check-in .ci-note, #check-in .ci-suggestion p { margin: 6px 0; font-size: 12px; line-height: 1.5; }
#check-in .ci-suggestion button { text-align: left; }

#check-in .ci-actions {
  position: sticky;
  z-index: 1;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px clamp(16px, 3vw, 30px) calc(12px + env(safe-area-inset-bottom));
  background: var(--ci-paper);
  border-top: 1px solid var(--ci-line);
}

#check-in :is(.ci-link, .ci-primary) {
  min-height: 44px;
  padding: 8px 10px;
  font: 600 12px/1.3 Arial, sans-serif;
}

#check-in .ci-link { color: #554937; }
#check-in .ci-link:hover { color: #3d432b; text-decoration: underline; }

#check-in .ci-primary {
  padding-inline: clamp(13px, 3vw, 24px);
  background: var(--ci-accent);
  color: #fff9ee;
  border-radius: 4px;
}

#check-in .ci-primary:hover { background: #383f2b; color: #fff9ee; }

#check-in .ci-current {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  margin-bottom: 12px;
  background: var(--ci-pressed);
  color: var(--ci-muted);
  border-radius: 5px;
  font-size: 12px;
}

#check-in .ci-current .ci-field-title { padding: 0; }
#check-in .ci-current strong { color: var(--ci-ink); font: 24px/1.15 var(--serif); }
#check-in .ci-secondary { width: 100%; text-align: center; }
#check-in .ci-pause { display: block; margin: 1px auto -8px; }

@media (min-width: 620px) {
  #check-in[open] { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
  #check-in .ci-header { grid-column: 1 / -1; }
  #check-in .ci-banner { grid-column: 1; grid-row: 2 / span 2; }
  #check-in .ci-content { grid-column: 2; }
  #check-in .ci-actions { grid-column: 2; }
}

@media (max-width: 619px) {
  #check-in { width: min(520px, calc(100% - 20px)); }
  #check-in .ci-banner { min-height: clamp(64px, 18dvh, 136px); }
}

@media (max-width: 360px), (max-height: 520px) {
  #check-in .ci-banner { min-height: 66px; }
  #check-in .ci-content { padding-top: 17px; }
  #check-in .ci-description { margin-bottom: 12px; }
  #check-in .ci-actions { padding-block: 8px; }
}

#check-in .ci-area-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0 0 15px;
  padding: 8px 12px;
  color: var(--ci-ink);
  background: var(--ci-pressed);
  border: 1px solid var(--ci-line);
  border-radius: 5px;
  font: 600 12px/1.35 Arial, sans-serif;
  text-align: left;
}

#check-in .ci-area-summary:hover { color: var(--ci-ink); background: #ddd9c7; }
#check-in .ci-area-link { color: #534b36; font-weight: 400; text-align: right; }
