* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --tab-bar-h: 54px;
  --tab-bar-pad: 10px;
  --toast-bottom: calc(var(--tab-bar-h) + var(--tab-bar-pad) + env(safe-area-inset-bottom, 0px) + 8px);
}

body {
  background: linear-gradient(165deg, #f3faf6 0%, #f0f4f8 42%, #eef1f6 100%);
  font-family: system-ui, "Segoe UI", "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  color: #1e2f3e;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.app-main {
  flex: 1;
  padding: 16px 0 calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px) + 24px);
  overflow-x: hidden;
}

.tab-panel {
  display: none;
  animation: tab-in 0.22s ease;
}

.tab-panel.is-active {
  display: block;
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-container--tab {
  padding-top: 4px;
}

.header-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo__mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(30, 62, 47, 0.08);
}

.logo__text {
  font-size: clamp(1.15rem, 4.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #1d4f36, #218c6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.badge-mini {
  background: #e6edf6;
  padding: 6px 14px;
  border-radius: 60px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #2a6e4b;
}

.header-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(52vw, 220px);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid #dbe7e0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(42, 110, 75, 0.06);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-user-chip:active {
  transform: scale(0.98);
}

.header-user-chip__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f5ef, #d4ebe0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.header-user-chip__avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.header-user-chip__avatar-emoji {
  line-height: 1;
}

.header-user-chip__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.header-user-chip__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e3d2f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user-chip__sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-dialog-modal.modal {
  z-index: 5300;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
}

.app-dialog-modal .modal__card--app-dialog {
  margin: 0 auto;
  width: 100%;
  max-width: min(400px, 100%);
  max-height: min(90dvh, 480px);
  border-radius: 20px;
  padding: 22px 18px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.16);
}

.app-dialog-modal .modal__title {
  margin-bottom: 4px;
}

.app-dialog-modal__message {
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.app-dialog-modal__btns {
  margin-top: 0;
}

.app-dialog-modal__single {
  margin-top: 0;
}

.app-dialog-modal__single .auth-btn--block {
  margin-top: 0;
}

.auth-modal.modal {
  z-index: 5200;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
}

.auth-modal .modal__card--auth {
  margin: 0 auto;
  width: 100%;
  max-width: min(400px, 100%);
  max-height: min(90dvh, 620px);
  border-radius: 20px;
  padding: 22px 18px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.16);
}

.auth-modal-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.auth-modal-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 62, 47, 0.1), inset 0 0 0 1px rgba(42, 110, 75, 0.06);
}

.auth-modal .modal__title {
  margin-bottom: 4px;
  text-align: center;
}

.auth-form.auth-form--modal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
  margin-top: 8px;
}

.auth-form--modal .profile-input {
  margin-bottom: 12px;
}

.auth-form__extra--reg {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #eef2ed;
}

.auth-reg-row {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 14px 12px;
  align-items: end;
}

.auth-reg-row__field .profile-input {
  margin-bottom: 0;
}

.auth-reg-row__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.auth-reg-row__avatar .profile-label {
  width: 100%;
  text-align: center;
}

.auth-reg-row__avatar .auth-reg-avatar__clear {
  margin-top: 6px;
  padding: 0;
  font-size: 0.62rem;
}

@media (max-width: 340px) {
  .auth-reg-row {
    grid-template-columns: 1fr;
  }

  .auth-reg-row__avatar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
  }

  .auth-reg-row__avatar .profile-label {
    width: auto;
    text-align: left;
  }
}

.modal__close--auth {
  margin-top: 4px;
}

.stats-card {
  background: white;
  border-radius: 32px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.02);
  border: 1px solid #eef2ed;
}

.stats-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.total-time {
  font-size: 2rem;
  font-weight: 800;
  color: #236e4c;
}

.total-time small {
  font-size: 0.9rem;
  font-weight: 500;
  color: #7b8b9f;
}

.record-num {
  background: #ecfdf5;
  padding: 6px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #2b6e4f;
}

.stats-footnote {
  margin-top: 12px;
  font-size: 0.7rem;
  color: #8b9ab0;
  border-top: 1px solid #eef2ea;
  padding-top: 10px;
}

.active-session {
  background: #e7f3ef;
  border-radius: 28px;
  padding: 18px 20px;
  margin-bottom: 24px;
  border-left: 6px solid #2c7e5a;
}

.active-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2c7e5a;
  letter-spacing: 1px;
}

.active-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.active-seat-badge {
  background: #2c7e5a;
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
}

.live-timer {
  font-family: ui-monospace, monospace;
  font-size: 1.8rem;
  font-weight: 800;
  background: white;
  padding: 4px 14px;
  border-radius: 60px;
  color: #1d523f;
  letter-spacing: 2px;
}

.btn-finish {
  background: #dc6b4a;
  border: none;
  color: white;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn-finish:active {
  transform: scale(0.96);
  background: #bc5335;
}

.empty-active {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #547a68;
  font-weight: 500;
  flex-wrap: wrap;
  margin-top: 8px;
}

.empty-active__hint {
  font-size: 0.75rem;
}

.empty-active--guest {
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.empty-active--guest:hover {
  background: rgba(255, 255, 255, 0.45);
}

.empty-active--guest:focus-visible {
  outline: 2px solid #2c7e5a;
  outline-offset: 2px;
}

.seats-section {
  background: white;
  border-radius: 36px;
  padding: 20px 16px;
  margin-bottom: 28px;
  border: 1px solid #eef2ec;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding: 0 4px;
  gap: 10px;
  flex-wrap: wrap;
}

.section-title {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  gap: 8px;
}

.section-title--sm {
  font-size: 1rem;
}

.legend {
  display: flex;
  gap: 16px;
  font-size: 0.7rem;
  flex-wrap: wrap;
}

.legend-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 20px;
  margin-right: 5px;
  vertical-align: middle;
}

.seats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  justify-items: center;
  align-items: center;
}

.seat-card {
  width: 100%;
  max-width: 72px;
  justify-self: center;
  background: #f1f7ef;
  border-radius: 24px;
  padding: 12px 6px;
  text-align: center;
  transition: 0.1s ease;
  cursor: pointer;
  border: 1px solid #dee8da;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.seat-card.free {
  background: #eef4ea;
  border-color: #cde0c4;
}

.seat-card.occupied {
  background: #ffe6e2;
  border-color: #f7c5ba;
}

.seat-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #2c5a3a;
}

.seat-card.occupied .seat-number {
  color: #b34332;
}

.seat-stats {
  font-size: 0.65rem;
  margin-top: 6px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.05);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 40px;
  color: #4b6b3e;
}

.seat-card.occupied .seat-stats {
  background: rgba(0, 0, 0, 0.08);
  color: #a33f2c;
}

.seat-card:active {
  transform: scale(0.96);
}

.facility-module {
  background: #fffef7;
  border-radius: 36px;
  padding: 18px 16px;
  margin-bottom: 28px;
  border: 1px solid #f0ede3;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.02);
}

.facility-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
  padding-left: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.facility-title__tag {
  font-size: 0.7rem;
  background: #f1efdf;
  padding: 2px 8px;
  border-radius: 30px;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.facility-item {
  background: #faf8f0;
  border-radius: 28px;
  padding: 12px 6px;
  text-align: center;
  transition: 0.1s;
  border: 1px solid #ece6d8;
}

.facility-icon {
  font-size: 1.7rem;
  display: block;
}

.facility-name {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 8px;
  color: #7c6b4a;
}

.history-section {
  background: white;
  border-radius: 32px;
  padding: 20px 16px;
  border: 1px solid #eef2ea;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}

.clear-btn {
  background: transparent;
  border: 1px solid #dce3dc;
  padding: 6px 15px;
  border-radius: 60px;
  font-size: 0.7rem;
  color: #8c9b7c;
  cursor: pointer;
}

.history-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: #fdfdf5;
  border-radius: 24px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ecf0e5;
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.history-seat {
  background: #eef2e7;
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  width: fit-content;
}

.history-meta {
  font-size: 0.65rem;
  color: #7c8b7c;
}

.history-duration {
  font-weight: 800;
  color: #2a6e4b;
  font-size: 1rem;
}

.empty-history {
  text-align: center;
  padding: 32px;
  color: #b9c4b0;
}

.page-footer {
  text-align: center;
  font-size: 0.6rem;
  color: #b1bfaa;
  margin-top: 20px;
}

.page-footer--tab {
  margin-top: 12px;
  margin-bottom: 8px;
}

.panel-head {
  margin-bottom: 16px;
}

.panel-head__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e2f3e;
  margin: 0 0 6px;
}

.panel-head__desc {
  margin: 0;
  font-size: 0.75rem;
  color: #8b9ab0;
  line-height: 1.45;
}

.stats-card--hero {
  margin-bottom: 14px;
}

.stat-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mini-stat {
  background: white;
  border-radius: 20px;
  padding: 12px 14px;
  border: 1px solid #eef2ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.mini-stat__label {
  display: block;
  font-size: 0.65rem;
  color: #8b9ab0;
  margin-bottom: 4px;
}

.mini-stat__val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #236e4c;
  font-variant-numeric: tabular-nums;
}

.mini-stat__unit {
  font-size: 0.65rem;
  color: #7b8b9f;
  margin-left: 2px;
}

.chart-card {
  background: white;
  border-radius: 28px;
  padding: 16px 16px 14px;
  border: 1px solid #eef2ec;
  margin-bottom: 12px;
}

.chart-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e2f3e;
  margin-bottom: 12px;
}

.chart-card__hint {
  margin: 10px 0 0;
  font-size: 0.62rem;
  color: #9aa8b8;
  line-height: 1.4;
}

.week-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  min-height: 112px;
  padding: 4px 2px 0;
}

.week-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.week-bar__track {
  width: 100%;
  height: 88px;
  border-radius: 10px;
  background: #eef2f7;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4px;
}

.week-bar__fill {
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, #6ee7a8, #2a6e4b);
  min-height: 3px;
  transition: height 0.25s ease;
}

.week-bar__val {
  font-size: 0.55rem;
  color: #5a6f7e;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-bar__label {
  font-size: 0.58rem;
  color: #8b9ab0;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 22px;
  padding: 12px 14px;
  border: 1px solid #eef2ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rank-row--top {
  border-color: rgba(42, 110, 75, 0.25);
  background: linear-gradient(135deg, #f6fffb, #fff);
}

.rank-medal {
  width: 2rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #7b8b9f;
  flex-shrink: 0;
}

.rank-row--top .rank-medal {
  font-size: 1.1rem;
}

.rank-main {
  flex: 1;
  min-width: 0;
}

.rank-seat {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e2f3e;
}

.rank-meta {
  font-size: 0.65rem;
  color: #8b9ab0;
  margin-top: 2px;
}

.rank-mins {
  font-weight: 800;
  font-size: 1rem;
  color: #2a6e4b;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.rank-empty {
  text-align: center;
  padding: 48px 20px;
  color: #b9c4b0;
  font-size: 0.85rem;
  background: white;
  border-radius: 28px;
  border: 1px dashed #dce3dc;
}

.panel-head--profile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-avatar-stack {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e7f3ef, #fff);
  border: 1px solid #cde0c4;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(42, 110, 75, 0.1);
}

.profile-avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-upload {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(180deg, #4ade80, #2a6e4b);
  color: #fff;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(42, 110, 75, 0.25);
  padding: 0;
  line-height: 1;
}

.profile-avatar-upload:active {
  transform: scale(0.95);
}

.profile-avatar:focus-visible {
  outline: 2px solid #2a6e4b;
  outline-offset: 2px;
}

.profile-fields {
  flex: 1;
  min-width: 0;
}

.profile-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #8b9ab0;
  margin-bottom: 4px;
}

.profile-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #dce3dc;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  margin-bottom: 8px;
}

.profile-input:focus {
  outline: none;
  border-color: #2a6e4b;
  box-shadow: 0 0 0 3px rgba(42, 110, 75, 0.12);
}

.profile-summary {
  margin: 0;
  font-size: 0.72rem;
  color: #5a6f7e;
}

.me-card {
  background: white;
  border-radius: 24px;
  padding: 4px 0;
  margin-bottom: 14px;
  border: 1px solid #eef2ed;
  overflow: hidden;
}

.me-card__title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8b9ab0;
  padding: 12px 16px 6px;
  margin: 0;
  letter-spacing: 0.04em;
}

.me-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: none;
  border-top: 1px solid #f0f3f0;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  color: #1e2f3e;
}

.me-card .me-row:first-of-type {
  border-top: none;
}

.me-row:active {
  background: #f7faf8;
}

.me-row__icon {
  font-size: 1.15rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.me-row__text {
  flex: 1;
  font-weight: 600;
}

.me-row__chev {
  color: #c5d0c8;
  font-size: 1.1rem;
  font-weight: 300;
}

.me-row--danger .me-row__text {
  color: #b34332;
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  min-height: var(--tab-bar-h);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e8ecf0;
  box-shadow: 0 -4px 20px rgba(30, 47, 62, 0.06);
  z-index: 100;
}

.tab-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 4px 2px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  color: #9aa5b8;
  -webkit-tap-highlight-color: transparent;
}

.tab-bar__item.is-active {
  color: #236e4c;
}

.tab-bar__icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.tab-bar__icon svg {
  display: block;
}

.tab-bar__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 460px) {
  .seats-grid {
    gap: 8px;
  }

  .seat-number {
    font-size: 1rem;
  }

  .live-timer {
    font-size: 1.3rem;
  }

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

button.clear-btn {
  background: transparent;
}

.seat-tag {
  font-size: 0.55rem;
  font-weight: 700;
  margin-top: 4px;
  color: #2c5a3a;
}

.seat-card.locked-mine {
  background: #ecfdf5;
  border-color: #6ee7a8;
  border-width: 2px;
}

.seat-card.locked-mine .seat-number {
  color: #166534;
}

.seat-card.locked-other {
  background: #eff6ff;
  border-color: #93c5fd;
}

.seat-card.locked-other .seat-number {
  color: #1d4ed8;
}

.seat-card.locked-other .seat-tag {
  color: #1e40af;
}

.me-guest {
  padding-bottom: 8px;
}

.me-guest-hero {
  position: relative;
  border-radius: 28px;
  padding: 28px 22px 26px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 40px rgba(30, 62, 47, 0.08);
  background: linear-gradient(165deg, #f8fdf9 0%, #eef6f1 45%, #e8f0ea 100%);
}

.me-guest-hero__bg {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 222, 128, 0.22), transparent 55%);
  pointer-events: none;
}

.me-guest-hero__brand {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(42, 110, 75, 0.12), inset 0 0 0 1px rgba(42, 110, 75, 0.08);
  display: grid;
  place-items: center;
}

.me-guest-hero__brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

.me-guest-hero__title {
  position: relative;
  margin: 0 0 22px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #143d2a;
  letter-spacing: 0.02em;
}

.me-guest-hero__cta {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #5ee9a8, #2a6e4b);
  box-shadow: 0 10px 28px rgba(42, 110, 75, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.me-guest-hero__cta:active {
  transform: scale(0.98);
}

.auth-reg-avatar__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px dashed #b8d4c4;
  background: #f8faf8;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.auth-reg-avatar__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.auth-reg-avatar__ph {
  font-size: 1.5rem;
  font-weight: 300;
  color: #94a3b8;
  line-height: 1;
}

.auth-reg-avatar__clear {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2a6e4b;
  cursor: pointer;
  font-family: inherit;
}

.me-auth-block {
  padding-bottom: 8px;
}

.auth-form {
  background: white;
  border-radius: 24px;
  padding: 16px 16px 18px;
  border: 1px solid #eef2ed;
  margin-bottom: 12px;
}

.auth-form__extra {
  margin-top: 8px;
}

.auth-form__btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.auth-btn {
  flex: 1;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}

.auth-btn--primary {
  background: linear-gradient(180deg, #5ee9a8, #2a6e4b);
  color: #fff;
}

.auth-btn--ghost {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.auth-btn--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-btn--block {
  width: 100%;
  margin-top: 12px;
}

.auth-btn--block.me-logout-btn {
  margin-top: 28px;
  margin-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

.auth-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: none;
  background: transparent;
  color: #2a6e4b;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.profile-meta {
  margin: 6px 0 4px;
  font-size: 0.72rem;
  color: #64748b;
}

.profile-meta__k {
  color: #94a3b8;
  font-weight: 600;
  margin-right: 2px;
}

.role-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
}

.role-pill--admin {
  background: #ecfdf5;
  color: #166534;
}

.admin-card {
  border-color: rgba(42, 110, 75, 0.2);
}

.admin-lead {
  margin: 0 16px 12px;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}

.admin-subtitle {
  margin: 12px 16px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e2f3e;
}

.admin-table-wrap {
  margin: 0 12px 12px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #eef2ed;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.admin-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
}

.admin-table__empty {
  text-align: center;
  color: #94a3b8;
  padding: 16px 8px !important;
}

.admin-mini-btn {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  color: #334155;
}

.admin-mini-btn--danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff5f5;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 22px 22px 18px 18px;
  padding: 18px 16px 14px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  z-index: 1;
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.modal__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e2f3e;
}

.modal__sub {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__btn {
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
}

.modal__btn--primary {
  background: linear-gradient(180deg, #4ade80, #2a6e4b);
  color: #fff;
}

.modal__btn--ghost {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.modal__btn--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.modal__close {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: var(--toast-bottom);
  transform: translateX(-50%) translateY(6px);
  max-width: min(92vw, 520px);
  padding: 10px 20px;
  border-radius: 999px;
  background: #1e3a2f;
  color: #f2f7e9;
  font-size: 0.82rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  line-height: 1.35;
}

.app-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
