:root {
  color-scheme: light;
  --ink: #0b1d34;
  --ink-2: #25384f;
  --ink-3: #5f6d82;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --soft: #edf1f3;
  --line: #d5dce1;
  --line-strong: #aebac5;
  --navy: #071d3a;
  --navy-2: #0c2e59;
  --accent: #d8ad55;
  --accent-ink: #4c3506;
  --danger: #b53a32;
  --success: #17674a;
  --focus: #1976d2;
  --shadow: 0 24px 70px rgb(7 29 58 / 12%);
  --radius: 6px;
  --shell: 1240px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef4f7;
  --ink-2: #c6d1da;
  --ink-3: #99a8b7;
  --paper: #071421;
  --surface: #0c2033;
  --soft: #102a40;
  --line: #294258;
  --line-strong: #476077;
  --navy: #041322;
  --navy-2: #0b315a;
  --accent: #e3b75d;
  --accent-ink: #2d1d00;
  --danger: #ff8b82;
  --success: #63cfa2;
  --focus: #7db9ff;
  --shadow: 0 24px 70px rgb(0 0 0 / 28%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eef4f7;
    --ink-2: #c6d1da;
    --ink-3: #99a8b7;
    --paper: #071421;
    --surface: #0c2033;
    --soft: #102a40;
    --line: #294258;
    --line-strong: #476077;
    --navy: #041322;
    --navy-2: #0b315a;
    --accent: #e3b75d;
    --accent-ink: #2d1d00;
    --danger: #ff8b82;
    --success: #63cfa2;
    --focus: #7db9ff;
    --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 146px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

h3 {
  letter-spacing: -0.02em;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--accent);
  color: var(--accent-ink);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 9999;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  margin-inline: auto;
  max-width: var(--shell);
  padding-inline: 28px;
  width: 100%;
}

.prototype-notice {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  position: relative;
  z-index: 60;
}

.prototype-notice__inner {
  align-items: center;
  display: flex;
  gap: 16px;
  min-height: 38px;
}

.prototype-notice strong {
  flex: 0 0 auto;
  letter-spacing: 0.06em;
}

.site-header {
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 14px;
  justify-self: start;
  text-decoration: none;
}

.brand img,
.site-footer img {
  height: 34px;
  object-fit: contain;
  object-position: left center;
  width: 88px;
}

.brand span {
  border-left: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding-left: 14px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: var(--ink-2);
  font-size: 0.86rem;
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  background: var(--accent);
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-self: end;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.icon-button:hover {
  background: var(--soft);
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--small {
  min-height: 40px;
  padding-inline: 16px;
}

.button--primary {
  background: var(--navy);
  color: #ffffff;
}

.button--primary:hover {
  background: var(--navy-2);
}

.button--ghost {
  background: transparent;
  border-color: var(--line-strong);
}

.button--ghost:hover {
  background: var(--surface);
  border-color: var(--ink-2);
}

.button--light {
  background: #ffffff;
  color: #071d3a;
}

.button--full {
  width: 100%;
}

.hero {
  padding: clamp(58px, 8vw, 112px) 0 0;
}

.hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(44px, 7vw, 92px);
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
}

.eyebrow {
  color: var(--ink-3);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero__parent {
  color: var(--accent-ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  margin-bottom: 3px;
}

html[data-theme="dark"] .hero__parent {
  color: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(4rem, 7.5vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  margin-bottom: 18px;
  max-width: 7em;
}

.hero__lead {
  color: var(--navy-2);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 600;
  margin-bottom: 18px;
}

html[data-theme="dark"] .hero__lead {
  color: #dcecff;
}

.hero__summary {
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 39em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.micro-copy {
  color: var(--ink-3);
  font-size: 0.75rem;
  margin: 12px 0 0;
}

.hero__visual {
  margin: 0;
  position: relative;
}

.hero__visual::before {
  border: 1px solid var(--accent);
  content: "";
  height: 42%;
  left: -18px;
  position: absolute;
  top: -18px;
  width: 46%;
  z-index: -1;
}

.hero__visual img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.hero__visual figcaption {
  background: var(--navy);
  bottom: -24px;
  color: #ffffff;
  max-width: 340px;
  padding: 18px 22px;
  position: absolute;
  right: -18px;
}

.hero__visual figcaption span {
  color: #d8ad55;
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}

.hero__visual figcaption strong {
  font-family: var(--serif);
  font-size: 1rem;
}

.context-panel {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  margin-top: 76px;
  padding: 0;
}

.context-panel__label {
  align-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  padding: 22px;
  writing-mode: vertical-rl;
}

.context-panel dl {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1.5fr;
  margin: 0;
}

.context-panel dl div {
  border-right: 1px solid var(--line);
  padding: 21px 22px;
}

.context-panel dt {
  color: var(--ink-3);
  font-size: 0.7rem;
  margin-bottom: 4px;
}

.context-panel dd {
  font-size: 0.82rem;
  margin: 0;
}

.context-panel > a {
  align-items: center;
  display: flex;
  font-size: 0.72rem;
  padding: 20px;
}

.section {
  padding-block: clamp(92px, 12vw, 176px);
}

.section--soft {
  background: var(--soft);
}

.section--ink {
  background: var(--navy);
  color: #ffffff;
}

.section--ink .eyebrow {
  color: #d8ad55;
}

.section--ink h2 {
  color: #ffffff;
}

.section-heading {
  max-width: 810px;
}

.section-heading--split {
  align-items: end;
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  max-width: none;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading--split > p,
.section-heading--split > div + p {
  color: var(--ink-3);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.section--ink .section-heading--split > p,
.section--ink .section-heading--split > div + p {
  color: #aebed0;
}

.concept-grid {
  display: grid;
  gap: 9vw;
  grid-template-columns: 0.8fr 1.2fr;
}

.concept-copy > p {
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.8;
}

.concept-principles {
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
}

.concept-principles article {
  border-right: 1px solid var(--line);
  padding: 26px 25px 0 0;
}

.concept-principles article:not(:first-child) {
  padding-left: 25px;
}

.concept-principles article:last-child {
  border-right: 0;
}

.concept-principles span {
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
}

html[data-theme="dark"] .concept-principles span {
  color: var(--accent);
}

.concept-principles h3 {
  font-size: 1rem;
  margin: 12px 0 8px;
}

.concept-principles p {
  color: var(--ink-3);
  font-size: 0.82rem;
  margin-bottom: 0;
}

.system-object-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin: 34px 0 0;
  padding: 18px 0;
  border-top: 1px solid #35506f;
  border-bottom: 1px solid #35506f;
  color: #aebed0;
  font-size: 0.82rem;
}

.system-object-note strong {
  color: #d8ad55;
}

.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
}

.journey li {
  border-left: 1px solid #35506f;
  min-height: 240px;
  padding: 20px 24px;
  position: relative;
}

.journey li::before {
  background: #d8ad55;
  content: "";
  height: 2px;
  left: -1px;
  position: absolute;
  top: 0;
  width: 48%;
}

.journey span {
  color: #d8ad55;
  font-size: 0.72rem;
  font-weight: 800;
}

.journey h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 70px 0 12px;
}

.journey p {
  color: #aebed0;
  font-size: 0.82rem;
}

.journey small {
  display: block;
  margin-top: 24px;
  color: #d8ad55;
  font-size: 0.72rem;
  font-weight: 800;
}

.directory-tools {
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 64px;
  padding-bottom: 20px;
}

.search-field {
  flex: 0 1 300px;
}

.search-field input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 46px;
  padding: 0 14px;
  width: 100%;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  min-height: 38px;
  padding: 0 15px;
}

.chip:hover,
.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.results-count {
  color: var(--ink-3);
  font-size: 0.75rem;
  margin: 18px 0;
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.guest-card {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 440px;
  padding: 30px;
  position: relative;
  transition: background-color 180ms ease, transform 180ms ease;
}

.guest-card:nth-child(-n + 3) {
  border-top: 1px solid var(--line);
}

.guest-card:nth-child(3n + 1) {
  border-left: 1px solid var(--line);
}

.guest-card:hover {
  background: color-mix(in srgb, var(--surface) 86%, var(--soft));
  transform: translateY(-4px);
  z-index: 1;
}

.guest-card__top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.role-mark {
  align-items: center;
  background: var(--navy);
  color: #d8ad55;
  display: flex;
  font-family: var(--serif);
  font-size: 1.4rem;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.status-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-3);
  display: inline-block;
  font-size: 0.66rem;
  line-height: 1;
  padding: 7px 10px;
}

.guest-card__type {
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 34px 0 8px;
}

html[data-theme="dark"] .guest-card__type {
  color: var(--accent);
}

.guest-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 15px;
}

.guest-card > p:not(.guest-card__type) {
  color: var(--ink-2);
  font-size: 0.84rem;
}

.guest-card ul {
  color: var(--ink-3);
  font-size: 0.76rem;
  margin: 20px 0 58px;
  padding-left: 18px;
}

.text-button {
  background: transparent;
  border: 0;
  bottom: 27px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  left: 27px;
  padding: 4px;
  position: absolute;
}

.text-button span {
  color: var(--accent-ink);
  margin-left: 7px;
}

html[data-theme="dark"] .text-button span {
  color: var(--accent);
}

.empty-filter {
  border: 1px dashed var(--line-strong);
  padding: 44px;
  text-align: center;
}

.empty-filter h3 {
  margin-bottom: 8px;
}

.empty-filter p {
  color: var(--ink-3);
  margin-bottom: 0;
}

.seat-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 340px;
  margin-top: 60px;
  min-width: 0;
}

.seat-map {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  min-width: 0;
}

.seat-map__legend {
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  gap: 20px;
}

.seat-map__legend span {
  align-items: center;
  display: flex;
  gap: 7px;
}

.dot {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.dot--guest {
  background: var(--accent);
}

.dot--applicant {
  background: var(--navy-2);
}

.dot--support {
  border: 1px solid var(--line-strong);
}

.tables {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 56px auto;
  max-width: 640px;
  min-width: 0;
  width: 100%;
}

.meeting-table {
  align-items: center;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 30px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.meeting-table::before,
.meeting-table::after {
  background: var(--navy-2);
  border: 4px solid var(--surface);
  border-radius: 50%;
  content: "";
  height: 24px;
  position: absolute;
  top: 16%;
  width: 24px;
}

.meeting-table::before {
  left: -8px;
}

.meeting-table::after {
  right: -8px;
}

.meeting-table:hover,
.meeting-table.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
  transform: scale(1.02);
}

.meeting-table__id {
  color: var(--ink-3);
  font-size: 0.68rem;
}

.meeting-table__core {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: var(--accent-ink);
  display: flex;
  font-family: var(--serif);
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
  margin: 9px 0;
  width: 42px;
}

.meeting-table > span:not(.meeting-table__id):not(.meeting-table__core) {
  font-size: 0.85rem;
  font-weight: 800;
}

.meeting-table small {
  color: var(--ink-3);
  font-size: 0.62rem;
  margin-top: 5px;
}

.seat-map__note {
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.72rem;
  margin: 0;
  padding-top: 18px;
}

.seat-detail {
  align-self: start;
  background: var(--navy);
  color: #ffffff;
  min-width: 0;
  padding: 32px;
  position: sticky;
  top: 112px;
}

.seat-detail .eyebrow {
  color: #d8ad55;
}

.seat-detail__title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.seat-detail__title > span:first-child {
  color: #d8ad55;
  font-size: 0.74rem;
  font-weight: 800;
}

.seat-detail .status-pill {
  border-color: #56708c;
  color: #aebed0;
}

.seat-detail h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 30px 0 40px;
}

.seat-detail dl {
  border-top: 1px solid #35506f;
  margin-bottom: 34px;
}

.seat-detail dl div {
  border-bottom: 1px solid #35506f;
  display: grid;
  font-size: 0.75rem;
  gap: 14px;
  grid-template-columns: 72px 1fr;
  padding: 13px 0;
}

.seat-detail dt {
  color: #8da1b7;
}

.seat-detail dd {
  margin: 0;
}

.seat-detail .button--primary {
  background: #ffffff;
  color: #071d3a;
}

.appointment-list {
  display: grid;
  gap: 14px;
  margin-top: 56px;
}

.appointment-item {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  padding: 26px;
}

.appointment-item__meta {
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  gap: 12px;
  margin-bottom: 7px;
}

.appointment-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 7px;
}

.appointment-item p {
  color: var(--ink-3);
  font-size: 0.76rem;
  margin: 0;
}

.appointment-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.appointment-item__actions button {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.72rem;
  min-height: 38px;
  padding: 0 13px;
}

.appointment-item__actions button:hover {
  background: var(--soft);
}

.appointment-item__actions .confirm-action {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.appointment-empty {
  align-items: center;
  border: 1px dashed var(--line-strong);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  margin-top: 56px;
  padding: 34px;
}

.appointment-empty > span {
  align-items: center;
  background: var(--soft);
  border-radius: 50%;
  display: flex;
  font-family: var(--serif);
  height: 58px;
  justify-content: center;
  width: 58px;
}

.appointment-empty h3 {
  margin-bottom: 4px;
}

.appointment-empty p {
  color: var(--ink-3);
  font-size: 0.82rem;
  margin: 0;
}

.online-section {
  overflow: hidden;
  position: relative;
}

.online-section::after {
  border: 1px solid #35506f;
  border-radius: 50%;
  content: "";
  height: 620px;
  position: absolute;
  right: -230px;
  top: -290px;
  width: 620px;
}

.online-grid {
  align-items: center;
  display: grid;
  gap: 12vw;
  grid-template-columns: 1fr 0.75fr;
  position: relative;
  z-index: 1;
}

.online-grid h2 {
  max-width: 8em;
}

.online-lead {
  color: #aebed0;
  max-width: 44em;
}

.online-card {
  border: 1px solid #35506f;
  padding: 32px;
}

.online-card__label {
  color: #d8ad55;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.online-card__status {
  align-items: center;
  color: #aebed0;
  display: flex;
  font-size: 0.72rem;
  gap: 8px;
}

.status-dot {
  background: #63cfa2;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.online-card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 36px 0;
}

.online-card dl {
  border-top: 1px solid #35506f;
}

.online-card dl div {
  border-bottom: 1px solid #35506f;
  display: grid;
  font-size: 0.72rem;
  gap: 15px;
  grid-template-columns: 76px 1fr;
  padding: 12px 0;
}

.online-card dt {
  color: #8da1b7;
}

.online-card dd {
  margin: 0;
}

.online-card > p:last-child {
  color: #8da1b7;
  font-size: 0.66rem;
  margin: 20px 0 0;
}

.rules-grid {
  display: grid;
  gap: 9vw;
  grid-template-columns: 0.7fr 1.3fr;
}

.rule-list {
  border-top: 1px solid var(--line-strong);
}

.rule-list article {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: 170px 1fr;
  padding: 26px 0;
}

.rule-list h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0;
}

.rule-list p {
  color: var(--ink-3);
  font-size: 0.84rem;
  margin: 0;
}

.site-footer {
  background: #041322;
  color: #ffffff;
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  gap: 8vw;
  grid-template-columns: 0.8fr 1.5fr 0.7fr;
}

.site-footer img {
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.site-footer h2 {
  color: #d8ad55;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
  color: #8da1b7;
  font-size: 0.72rem;
}

.drawer,
.lobby {
  background: transparent;
  border: 0;
  height: 100dvh;
  margin: 0 0 0 auto;
  max-height: none;
  max-width: 720px;
  padding: 0;
  width: min(720px, 100%);
}

.drawer::backdrop,
.lobby::backdrop {
  background: rgb(4 19 34 / 72%);
  backdrop-filter: blur(4px);
}

.drawer__panel,
.lobby__panel {
  background: var(--surface);
  color: var(--ink);
  height: 100%;
  margin: 0;
  overflow-y: auto;
  padding: 34px clamp(22px, 5vw, 54px) 46px;
}

.drawer__header,
.lobby__header {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 22px;
}

.drawer__header h2,
.lobby__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  margin: 0;
}

.form-notice {
  background: var(--soft);
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-size: 0.75rem;
  padding: 12px 14px;
}

.form-error-summary {
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 0.78rem;
  margin-bottom: 22px;
  padding: 12px 14px;
}

fieldset {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

legend,
.field > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.segmented-fieldset {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.segmented-fieldset legend {
  grid-column: 1 / -1;
}

.segmented-fieldset label {
  cursor: pointer;
  position: relative;
}

.segmented-fieldset input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.segmented-fieldset label > span {
  border: 1px solid var(--line);
  display: block;
  min-height: 82px;
  padding: 14px;
}

.segmented-fieldset strong,
.segmented-fieldset small {
  display: block;
}

.segmented-fieldset small {
  color: var(--ink-3);
  font-size: 0.68rem;
  margin-top: 4px;
}

.segmented-fieldset input:checked + span {
  border-color: var(--accent);
  box-shadow: inset 0 -3px var(--accent);
}

.segmented-fieldset input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.field {
  display: block;
  margin-bottom: 22px;
}

.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.field input,
.field select,
.field textarea {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  min-height: 47px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.field textarea {
  line-height: 1.55;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-3);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  color: var(--ink-3);
  display: block;
  font-size: 0.66rem;
  margin-top: 4px;
}

.field-error {
  color: var(--danger);
  display: block;
  font-size: 0.7rem;
  min-height: 1em;
  margin-top: 4px;
}

.time-fieldset > p {
  color: var(--ink-3);
  font-size: 0.7rem;
  margin: -4px 0 10px;
}

.time-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.time-options label {
  cursor: pointer;
  position: relative;
}

.time-options input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.time-options span {
  border: 1px solid var(--line);
  display: block;
  font-size: 0.68rem;
  padding: 12px;
}

.time-options input:checked + span {
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  border-color: var(--accent);
}

.time-options input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.consents {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
}

.consents label {
  align-items: flex-start;
  display: flex;
  font-size: 0.72rem;
  gap: 9px;
  margin-top: 12px;
}

.consents input {
  flex: 0 0 auto;
  margin-top: 5px;
}

.drawer__actions {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  bottom: -46px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 34px calc(clamp(22px, 5vw, 54px) * -1) -46px;
  padding: 16px clamp(22px, 5vw, 54px) calc(16px + env(safe-area-inset-bottom));
  position: sticky;
}

.lobby {
  margin: auto;
  max-width: 960px;
  width: min(960px, calc(100% - 40px));
}

.lobby__panel {
  height: auto;
  max-height: calc(100dvh - 40px);
}

.lobby__body {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 0.82fr;
}

.camera-preview {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
}

.camera-preview span {
  align-items: center;
  background: #d8ad55;
  border-radius: 50%;
  color: #4c3506;
  display: flex;
  font-family: var(--serif);
  font-size: 1.4rem;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.camera-preview p {
  color: #8da1b7;
  font-size: 0.7rem;
  margin: 18px 0 0;
}

.lobby-topic {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.lobby-topic + p {
  color: var(--ink-3);
  font-size: 0.72rem;
  margin-bottom: 20px;
}

.device-checks {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
}

.device-checks button {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 10px;
}

.device-checks button[aria-pressed="true"] {
  border-color: var(--success);
  box-shadow: inset 0 -3px var(--success);
}

.device-checks span,
.device-checks strong,
.device-checks small {
  display: block;
}

.device-checks strong {
  font-size: 0.78rem;
  margin: 5px 0 3px;
}

.device-checks small {
  color: var(--ink-3);
  font-size: 0.62rem;
}

.lobby-privacy {
  color: var(--ink-3);
  font-size: 0.66rem;
}

.join-status {
  color: var(--success);
  font-size: 0.72rem;
  margin: 8px 0 0;
  min-height: 1.2em;
  text-align: center;
}

.toast {
  background: var(--navy);
  bottom: 24px;
  color: #ffffff;
  font-size: 0.78rem;
  left: 50%;
  max-width: min(420px, calc(100% - 32px));
  padding: 13px 18px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 999;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 44px;
  }

  .hero__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .context-panel {
    grid-template-columns: auto 1fr;
  }

  .context-panel dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .context-panel dl div:nth-child(2) {
    border-right: 0;
  }

  .context-panel dl div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .context-panel > a {
    border-top: 1px solid var(--line);
    grid-column: 1 / -1;
    justify-content: center;
  }

  .guest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guest-card:nth-child(-n + 3) {
    border-top: 0;
  }

  .guest-card:nth-child(-n + 2) {
    border-top: 1px solid var(--line);
  }

  .guest-card:nth-child(3n + 1) {
    border-left: 0;
  }

  .guest-card:nth-child(2n + 1) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .shell {
    padding-inline: 20px;
  }

  .prototype-notice__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding-block: 8px;
  }

  .site-header__inner {
    min-height: 66px;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero__grid,
  .concept-grid,
  .rules-grid,
  .online-grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 54px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 17vw, 6.2rem);
  }

  .hero__visual figcaption {
    bottom: -18px;
    right: 0;
  }

  .context-panel {
    margin-inline: 20px;
    width: auto;
  }

  .section-heading--split {
    align-items: start;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .concept-grid {
    gap: 44px;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .journey li {
    border-bottom: 1px solid #35506f;
    min-height: auto;
    padding: 22px 16px 22px 65px;
  }

  .journey li::before {
    height: 45%;
    width: 2px;
  }

  .journey h3 {
    margin: 3px 0 7px;
  }

  .journey span {
    left: 17px;
    position: absolute;
    top: 27px;
  }

  .directory-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    flex-basis: auto;
  }

  .filter-chips {
    justify-content: flex-start;
  }

  .seat-layout {
    grid-template-columns: 1fr;
  }

  .seat-detail {
    position: static;
  }

  .online-grid {
    gap: 58px;
  }

  .online-grid h2 {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lobby__body {
    grid-template-columns: 1fr;
  }

  .camera-preview {
    min-height: 250px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 138px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 3.7rem);
    white-space: nowrap;
  }

  .system-object-note {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.35rem);
  }

  .section {
    padding-block: 90px;
  }

  .brand span {
    display: none;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .context-panel {
    grid-template-columns: 1fr;
  }

  .context-panel__label {
    padding: 10px 16px;
    writing-mode: horizontal-tb;
  }

  .context-panel dl {
    grid-template-columns: 1fr;
  }

  .context-panel dl div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 14px 17px;
  }

  .context-panel > a {
    grid-column: 1;
  }

  .concept-principles {
    grid-template-columns: 1fr;
  }

  .concept-principles article,
  .concept-principles article:not(:first-child) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 22px 0;
  }

  .guest-grid {
    grid-template-columns: 1fr;
  }

  .guest-card,
  .guest-card:nth-child(-n + 2),
  .guest-card:nth-child(2n + 1) {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .guest-card:first-child {
    border-top: 1px solid var(--line);
  }

  .tables {
    gap: 28px;
    margin-block: 45px;
  }

  .meeting-table {
    padding: 13px;
  }

  .meeting-table__core {
    height: 34px;
    width: 34px;
  }

  .meeting-table small {
    display: none;
  }

  .appointment-item,
  .appointment-empty {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .appointment-item__actions {
    justify-content: flex-start;
  }

  .rule-list article {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .field-row,
  .segmented-fieldset,
  .time-options {
    grid-template-columns: 1fr;
  }

  .drawer__actions .button {
    flex: 1;
    padding-inline: 12px;
  }

  .lobby {
    width: 100%;
  }

  .lobby__panel {
    max-height: 100dvh;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: clamp(2.55rem, 14vw, 3rem);
    white-space: normal;
  }
}
