@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500;6..96,600;6..96,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #1f1712;
  --ink-soft: #54463d;
  --sand: #f4ede6;
  --cream: rgba(255, 249, 242, 0.84);
  --glass: rgba(255, 249, 242, 0.72);
  --brand: #b48e5a;
  --brand-deep: #8c6740;
  --brand-pale: #ddc29a;
  --line: rgba(75, 54, 37, 0.15);
  --success: #2d8a69;
  --warning: #d48c33;
  --danger: #bf4f4a;
  --shadow: 0 30px 70px rgba(34, 24, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(232, 214, 193, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(12, 9, 7, 0.18), transparent 48%),
    #e9dfd3;
}

body.prototype-body {
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(23, 17, 13, 0.52), rgba(23, 17, 13, 0.38)),
    url("./assets/hero.jpg");
  background-size: cover;
  background-position: center;
}

.kiosk-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.kiosk-stage {
  width: min(1180px, 100%);
  min-height: min(90vh, 900px);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(248, 239, 230, 0.28), rgba(248, 239, 230, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.kiosk-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  color: #f9f2ea;
  background: linear-gradient(180deg, rgba(18, 14, 11, 0.55), transparent);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(247, 240, 232, 0.96), rgba(239, 230, 220, 0.96));
  border: 1px solid rgba(59, 42, 26, 0.08);
  box-shadow: 0 16px 34px rgba(22, 14, 10, 0.14);
}

.brand-lockup img {
  width: 88px;
  height: auto;
  display: block;
}

.brand-lockup .wordmark-logo {
  width: clamp(220px, 28vw, 340px);
  mix-blend-mode: multiply;
  display: block;
}

.brand-meta {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.brand-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.78;
}

.brand-property {
  margin: 0;
  color: #3a2b20;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.brand-title {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.9;
  margin: 0;
}

.surface-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(14px);
}

.welcome-panel,
.confirmation-panel,
.directory-panel {
  width: min(1020px, calc(100% - 64px));
  margin: 34px auto 0;
  border-radius: 28px;
  padding: clamp(26px, 4vw, 48px);
  box-shadow: 0 20px 50px rgba(23, 15, 9, 0.14);
}

.welcome-panel {
  min-height: calc(100% - 120px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  cursor: pointer;
}

.welcome-tap-zone:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--ink-soft);
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--brand);
}

.hero-title {
  font-family: "Bodoni Moda", serif;
  font-size: clamp(48px, 6.2vw, 86px);
  line-height: 0.96;
  margin: 0;
  max-width: 620px;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 640px;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}

.hero-guidance {
  max-width: 700px;
  margin: 8px 0 0;
  color: #3e352f;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  font-weight: 700;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.primary-button,
.secondary-button,
.inline-filter {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.primary-button {
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

#open-directory {
  padding: 22px 42px;
  min-width: 196px;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
}

.primary-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(88, 61, 42, 0.12);
}

.directory-panel {
  display: grid;
  gap: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.section-title {
  font-family: "Bodoni Moda", serif;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.02em;
}

.section-copy {
  margin: 6px 0 0;
  color: var(--ink-soft);
  max-width: 620px;
}

.directory-intro {
  max-width: none;
  color: #4b4b4b;
}

.request-error {
  margin: -6px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(191, 79, 74, 0.1);
  border: 1px solid rgba(191, 79, 74, 0.16);
  color: #842d2b;
  font-weight: 700;
}

.list-shell {
  display: grid;
  gap: 12px;
}

.list-header,
.list-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(90px, 0.7fr) auto;
  gap: 16px;
  align-items: center;
}

.list-header {
  padding: 0 20px;
  color: #6b6b6b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.list-row {
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.person-name {
  font-family: "Bodoni Moda", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.06;
  color: #181311;
}

.person-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}

.person-detail {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  color: #423a34;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.room-detail {
  display: none;
}

.detail-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7168;
  font-weight: 900;
}

.person-detail span:last-child {
  color: #221c18;
  font-weight: 700;
}

.person-meta {
  color: #4d4d4d;
  font-size: 16px;
}

.phone-detail span:last-child {
  font-weight: 900;
  color: #111111;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.checkin-button {
  min-width: 150px;
  justify-self: end;
}

.directory-panel .secondary-button {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.kiosk-chrome > .secondary-button {
  background: rgba(255, 250, 245, 0.92);
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.confirmation-panel {
  min-height: calc(100% - 120px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
}

.confirmation-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(45, 138, 105, 0.12);
  color: var(--success);
  border-radius: 999px;
  font-weight: 700;
}

.confirmation-name {
  font-size: 18px;
  color: var(--ink-soft);
}

.countdown-note {
  color: var(--ink-soft);
  font-size: 15px;
}

.hidden {
  display: none !important;
}

.admin-shell {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(194, 169, 137, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f1ea, #ece1d4);
}

.admin-app {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-radius: 28px;
}

.admin-title {
  margin-top: 8px;
}

.admin-session {
  min-width: min(100%, 360px);
}

.session-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.session-email {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  word-break: break-word;
}

.admin-gate {
  display: grid;
  gap: 18px;
}

.auth-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.auth-field {
  flex: 1 1 320px;
}

.status-banner,
.access-note {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}

.access-note {
  background: rgba(212, 140, 51, 0.12);
  border: 1px solid rgba(212, 140, 51, 0.18);
  color: #82551e;
  line-height: 1.5;
}

.access-note code {
  font-size: 12px;
}

.admin-property-focus {
  font-size: clamp(28px, 4vw, 40px);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.admin-panel {
  padding: 24px;
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(32, 20, 10, 0.08);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.metric-label {
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 800;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.custom-range-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.date-field {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.date-field input {
  appearance: none;
  border: 1px solid rgba(75, 54, 37, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  min-width: 170px;
}

.inline-filter {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(75, 54, 37, 0.14);
  color: var(--ink);
  font-weight: 700;
}

.inline-filter.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.analytics-table th {
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.status-delivered {
  background: rgba(45, 138, 105, 0.14);
  color: var(--success);
}

.status-sent {
  background: rgba(212, 140, 51, 0.16);
  color: var(--warning);
}

.status-failed {
  background: rgba(191, 79, 74, 0.14);
  color: var(--danger);
}

.subtle {
  color: var(--ink-soft);
}

.layout-stack {
  display: grid;
  gap: 18px;
}

.property-builder {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 20px;
  margin-top: 18px;
}

.property-list {
  display: grid;
  gap: 12px;
}

.property-card {
  appearance: none;
  border: 1px solid rgba(75, 54, 37, 0.12);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(28, 19, 11, 0.05);
}

.property-card.active {
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: 0 14px 28px rgba(20, 12, 8, 0.1);
}

.property-card-name {
  font-size: 20px;
  font-weight: 800;
}

.property-card-meta {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  word-break: break-word;
}

.property-card-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.property-form {
  display: grid;
  gap: 14px;
}

.roster-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 20px;
  margin-top: 18px;
}

.roster-table-wrap {
  overflow-x: auto;
}

.action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-field input,
.form-field textarea,
.form-field select {
  appearance: none;
  border: 1px solid rgba(75, 54, 37, 0.14);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

@media (max-width: 980px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .property-builder,
  .roster-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .list-header,
  .list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .list-header div:nth-child(2) {
    display: none;
  }

  .person-meta {
    display: none;
  }

  .room-detail {
    display: inline-flex;
  }

  .checkin-col {
    justify-self: end;
  }

  .checkin-button {
    min-width: 132px;
    padding: 16px 24px;
  }

  #open-directory {
    min-width: 176px;
    padding: 20px 36px;
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  .kiosk-shell,
  .admin-shell {
    padding: 14px;
  }

  .kiosk-stage {
    min-height: calc(100vh - 28px);
  }

  .welcome-panel,
  .confirmation-panel,
  .directory-panel {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  .brand-lockup img {
    width: 70px;
  }

  .brand-lockup .wordmark-logo {
    width: min(260px, 62vw);
  }

  .brand-lockup {
    padding: 14px 16px;
    gap: 10px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .auth-form {
    flex-direction: column;
    align-items: stretch;
  }

  .list-header,
  .list-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .list-row {
    gap: 10px;
  }

  .person-name {
    font-size: 18px;
  }

  .person-detail {
    font-size: 13px;
  }

  .checkin-button {
    min-width: 118px;
    padding: 14px 20px;
  }

  #open-directory {
    min-width: 164px;
    padding: 18px 32px;
    font-size: 18px;
  }
}

@media (max-width: 520px) {
  .list-header {
    display: none;
  }

  .list-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .checkin-col {
    justify-self: start;
  }

  .checkin-button {
    min-width: 0;
  }
}
