/* Shared auth pages — matches demo palette */
:root {
  --nav-row-height: 3.5rem;
  /* Above map/UI layers on demo/about/bookings; keeps fixed nav receiving clicks. */
  --site-nav-z-index: 6000;
  --page-bg: #061018;
  /* Content panels — flat faded brown (site accent, no gradient). */
  --card-bg: rgba(104, 66, 47, 0.14);
  --surface-inset: rgba(104, 66, 47, 0.08);
  --card-border: rgba(104, 66, 47, 0.38);
  --accent: #68422f;
  --text: #e8eef5;
  --text-muted: rgba(232, 238, 245, 0.72);
  --danger: #ff8a8a;
}

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

/* Keep `hidden` effective even when we set `display` on components (e.g. nav-auth-user). */
[hidden] {
  display: none !important;
}

html {
  height: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.site-nav {
  flex-shrink: 0;
  min-height: var(--nav-row-height);
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  background: var(--page-bg);
  border-bottom: 1px solid rgba(104, 66, 47, 0.14);
  position: relative;
  z-index: var(--site-nav-z-index);
}

.nav-auth,
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > li:not([hidden]) {
  display: flex;
  align-items: stretch;
}

.nav-menu > li:not([hidden]) > a.nav-link {
  display: inline-flex;
  align-items: center;
}

.site-nav a.nav-link {
  color: rgba(232, 238, 245, 0.85);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
  min-height: 2.75rem;
  box-sizing: border-box;
  pointer-events: auto;
}

.site-nav a.nav-link:hover {
  color: #F0E4DC;
  background-color: rgba(104, 66, 47, 0.14);
}

.site-nav .nav-sep {
  color: rgba(232, 238, 245, 0.28);
  font-size: 0.9375rem;
  padding: 0 0.35rem;
  user-select: none;
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 1.5rem) 2rem;
}

.auth-shell--contact-split {
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  max-width: 72rem;
  margin-inline: auto;
}

.auth-shell--contact-split > .auth-card {
  display: flex;
  flex-direction: column;
}

@media (min-width: 52rem) {
  .auth-shell--contact-split {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
  }

  .auth-shell--contact-split > .auth-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .auth-shell--contact-split > .auth-card > .auth-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .auth-shell--contact-split > .auth-card > .auth-form > .btn-primary {
    margin-top: auto;
  }
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  padding: clamp(1.35rem, 3vw, 1.75rem);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-lede {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-settings-wrap {
  max-width: 36rem;
}

.admin-settings-section-title {
  margin: 2rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-settings-section-title:first-of-type {
  margin-top: 0;
}

.admin-settings-subtitle {
  margin: 1.35rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #e8eef5);
}

.admin-banner-panel {
  margin-top: 0.5rem;
}

.admin-banner-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.admin-banner-slot {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(104, 66, 47, 0.28);
  background: rgba(6, 18, 28, 0.35);
}

.admin-banner-slot__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-banner-slot__preview {
  width: 100%;
  height: clamp(4.5rem, 14vh, 7rem);
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(104, 66, 47, 0.35);
  background: rgba(6, 18, 28, 0.45);
  object-fit: cover;
  display: block;
}

.admin-banner-slot__preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.admin-banner-upload-form {
  margin: 0;
}

.admin-banner-slot__delete {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(180, 70, 70, 0.45);
  background: rgba(120, 30, 30, 0.25);
  color: #ffb8b8;
  font-size: 0.78rem;
  cursor: pointer;
}

.admin-banner-slot__delete:hover {
  background: rgba(120, 30, 30, 0.42);
}

.admin-banner-slot__status {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  min-height: 1.25rem;
}

.admin-banner-slot__status--uploading {
  color: rgba(198, 220, 255, 0.92);
}

.admin-banner-slot__status--done {
  color: rgba(198, 255, 220, 0.96);
}

.admin-banner-slot__status--error {
  color: var(--danger);
}

.admin-banner-progress {
  width: 100%;
  height: 0.55rem;
  margin: 0.55rem 0 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-banner-progress:not([hidden]) {
  display: block;
}

.admin-banner-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(104, 66, 47, 0.85), rgba(139, 90, 66, 0.95));
  transition: width 0.15s ease;
}

.admin-banner-progress.is-indeterminate .admin-banner-progress__bar {
  width: 40%;
  background: linear-gradient(90deg, rgba(104, 66, 47, 0.2), rgba(104, 66, 47, 0.85), rgba(104, 66, 47, 0.2));
  animation: admin-banner-progress-slide 1.1s ease-in-out infinite;
}

@keyframes admin-banner-progress-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.admin-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-gallery-empty {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-gallery-item__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(104, 66, 47, 0.35);
  background: rgba(6, 18, 28, 0.45);
}

.admin-gallery-item__delete {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(180, 70, 70, 0.45);
  background: rgba(120, 30, 30, 0.25);
  color: #ffb8b8;
  font-size: 0.78rem;
  cursor: pointer;
}

.admin-gallery-item__delete:hover {
  background: rgba(120, 30, 30, 0.42);
}

.admin-gallery-upload-form {
  margin: 0;
}

.admin-settings-panel {
  margin-top: 0.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.admin-settings-panel .auth-form {
  margin: 0;
}

.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(104, 66, 47, 0.28);
  background: rgba(6, 18, 28, 0.65);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.oauth-btn:hover {
  background: rgba(104, 66, 47, 0.12);
  border-color: rgba(104, 66, 47, 0.45);
}

.oauth-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(104, 66, 47, 0.22);
}

.auth-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Same type size as `.auth-form label` — short notes directly under a field */
.auth-form .auth-form-muted-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Include :not([type]) — omitted type defaults to `text` in HTML but misses [type=text] selectors. */
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form input[type="number"],
.auth-form input:not([type]),
.auth-form input[type="file"],
.auth-form textarea {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(104, 66, 47, 0.25);
  background: rgba(6, 16, 24, 0.85);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* OTP / signup verification digit entry — match other fields’ tap height + more space above submit */
.auth-form input.auth-one-time-code {
  display: block;
  margin-bottom: 1.35rem;
  min-height: 2.75rem;
}

.auth-form textarea {
  resize: vertical;
  min-height: 7rem;
  font-family: inherit;
  line-height: 1.45;
}

/* tel / textarea often pick up lighter native styling or autofill tint vs email & text */
.auth-form input[type="tel"],
.auth-form textarea {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(6, 16, 24, 0.85);
}

/* Native selects styled like text inputs — avoids light OS chrome; drop menu anchors correctly without backdrop ancestors. */
.auth-form select,
.overview-table select {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.55rem 2.35rem 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(104, 66, 47, 0.25);
  background-color: rgba(6, 16, 24, 0.85);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%227%22 viewBox=%220 0 12 8%22%3E%3Cpath stroke=%22%2368422f%22 stroke-width=%221.25%22 fill=%22none%22 stroke-linecap=%22round%22 d=%22M1 1.5 L6 6.5 L11 1.5%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.75rem auto;
}

.auth-form select::-ms-expand {
  display: none;
}

.overview-table select::-ms-expand {
  display: none;
}

/* Contact / recruitment: custom country-code picker (native <select> popups are often full-viewport on Linux). */
.auth-form-phone-prefix-widget {
  position: relative;
  width: 100%;
  margin-bottom: 0.85rem;
}

.auth-form-phone-prefix-widget__trigger {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
  padding: 0.55rem 2.35rem 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(104, 66, 47, 0.25);
  background-color: rgba(6, 16, 24, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%227%22 viewBox=%220 0 12 8%22%3E%3Cpath stroke=%22%2368422f%22 stroke-width=%221.25%22 fill=%22none%22 stroke-linecap=%22round%22 d=%22M1 1.5 L6 6.5 L11 1.5%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.75rem auto;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.35;
  cursor: pointer;
}

.auth-form-phone-prefix-widget__trigger:focus {
  outline: none;
  border-color: rgba(104, 66, 47, 0.55);
  box-shadow: 0 0 0 2px rgba(104, 66, 47, 0.12);
}

.auth-form-phone-prefix-widget__dropdown {
  position: fixed;
  box-sizing: border-box;
  max-height: min(42vh, 19rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem 0;
  border-radius: 6px;
  border: 1px solid rgba(104, 66, 47, 0.38);
  background: #061018;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
  -webkit-overflow-scrolling: touch;
  /* left / top / width set in JS from trigger rect — avoids wrong anchor when ancestors scroll/transform */
  z-index: 6500;
}

.auth-form-phone-prefix-widget__option {
  padding: 0.48rem 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
}

.auth-form-phone-prefix-widget__option:hover,
.auth-form-phone-prefix-widget__option:focus {
  outline: none;
  background: rgba(104, 66, 47, 0.14);
}

.auth-form-phone-prefix-widget select.auth-form-phone-prefix-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.auth-form select option,
.auth-form select optgroup,
.overview-table select option,
.overview-table select optgroup {
  background-color: #061018;
  color: var(--text);
}

.overview-table select {
  width: 100%;
  max-width: 11rem;
  margin-bottom: 0;
  padding: 0.42rem 1.95rem 0.42rem 0.45rem;
  font-size: 0.84rem;
  border-color: rgba(104, 66, 47, 0.3);
  background-position: right 0.45rem center;
}

/* Browse / Choose file — match cyan UI (WebKit + standard). */
.auth-form input[type="file"]::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.42rem 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(104, 66, 47, 0.45);
  background: rgba(104, 66, 47, 0.16);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.auth-form input[type="file"]::file-selector-button:hover {
  background: rgba(104, 66, 47, 0.26);
  border-color: rgba(104, 66, 47, 0.6);
  filter: brightness(1.05);
}

.auth-form input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.65rem;
  padding: 0.42rem 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(104, 66, 47, 0.45);
  background: rgba(104, 66, 47, 0.16);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.auth-form input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(104, 66, 47, 0.26);
  border-color: rgba(104, 66, 47, 0.6);
  filter: brightness(1.05);
}

.auth-field-hint {
  margin: -0.55rem 0 0.85rem;
  font-size: 0.76rem;
  color: rgba(232, 238, 245, 0.52);
  line-height: 1.35;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: rgba(104, 66, 47, 0.55);
  box-shadow: 0 0 0 2px rgba(104, 66, 47, 0.12);
}

/* Kill Chrome/Safari yellow autofill so tel/email match other fields */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px rgba(6, 16, 24, 0.85) inset;
  border: 1px solid rgba(104, 66, 47, 0.25);
}

.auth-form input:-webkit-autofill:focus {
  border-color: rgba(104, 66, 47, 0.55);
  box-shadow:
    0 0 0 1000px rgba(6, 16, 24, 0.85) inset,
    0 0 0 2px rgba(104, 66, 47, 0.12);
}

.auth-form input::placeholder {
  color: rgba(232, 238, 245, 0.35);
}

.auth-form textarea::placeholder {
  color: rgba(232, 238, 245, 0.35);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"] {
  margin-top: 0.2rem;
}

.checkbox-row a {
  color: var(--accent);
}

/* Native controls default to a light fill; match dark UI everywhere auth.css is loaded. */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  background-color: #3d4349;
  border: 1px solid rgba(232, 238, 245, 0.28);
  cursor: pointer;
  vertical-align: middle;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

input[type="checkbox"] {
  border-radius: 4px;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: rgba(104, 66, 47, 0.45);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input[type="checkbox"]:checked {
  background-color: rgba(84, 53, 40, 0.35);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2368422f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 2.8 6-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem auto;
}

input[type="radio"]:checked {
  background-color: #3d4349;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 0.28rem var(--accent);
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Leaflet (demo map) uses checkboxes in layer controls — keep OS-native styling there. */
.leaflet-container input[type="checkbox"],
.leaflet-container input[type="radio"] {
  appearance: revert;
  -webkit-appearance: revert;
  width: revert;
  height: revert;
  margin: revert;
  flex-shrink: revert;
  background-color: revert;
  background-image: revert;
  border: revert;
  border-radius: revert;
  box-shadow: revert;
  cursor: revert;
  vertical-align: revert;
  transition: revert;
}

.btn-primary {
  width: 100%;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #543528 0%, #422318 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Contact page submit — lighter glass; fills ~opacity 0.2 (rgba); label stays opaque for readability. */
.auth-shell--contact-split .auth-form button.btn-primary {
  border: 1px solid rgba(104, 66, 47, 0.36);
  background: linear-gradient(
    165deg,
    rgba(212, 168, 138, 0.2) 0%,
    rgba(150, 105, 80, 0.2) 42%,
    rgba(104, 66, 47, 0.14) 100%
  );
  color: rgba(195, 170, 155, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(4, 14, 24, 0.15);
}

.auth-shell--contact-split .auth-form button.btn-primary:hover {
  filter: none;
  border-color: rgba(104, 66, 47, 0.5);
  background: linear-gradient(
    165deg,
    rgba(212, 168, 138, 0.26) 0%,
    rgba(150, 105, 80, 0.22) 42%,
    rgba(184, 128, 98, 0.18) 100%
  );
}

.auth-shell--contact-split .auth-form button.btn-primary:active {
  transform: translateY(1px);
  border-color: rgba(104, 66, 47, 0.42);
  background: linear-gradient(
    165deg,
    rgba(212, 168, 138, 0.2) 0%,
    rgba(104, 66, 47, 0.16) 100%
  );
}

.auth-footer {
  margin-top: 1.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.nav-auth-guest,
.nav-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.nav-user-session {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-user-icon-img {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}

.nav-user-name {
  font-size: 0.9375rem;
  color: rgba(232, 238, 245, 0.88);
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link-btn {
  font: inherit;
  font-size: 0.9375rem;
  color: rgba(232, 238, 245, 0.85);
  background: transparent;
  border: none;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  min-height: 2.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

.nav-link-btn:hover {
  color: #F0E4DC;
  background-color: rgba(104, 66, 47, 0.14);
}

.auth-meta {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: rgba(232, 238, 245, 0.55);
  text-align: center;
}

.row-between {
  display: flex;
  justify-content: flex-end;
  margin: -0.45rem 0 0.85rem;
}

.row-between a {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
}

.row-between a:hover {
  text-decoration: underline;
}

.field-hint {
  margin: -0.65rem 0 0.85rem;
  font-size: 0.75rem;
  color: rgba(232, 238, 245, 0.5);
}

.field-optional {
  color: rgba(232, 238, 245, 0.45);
}

.msg-error {
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  background: rgba(180, 60, 60, 0.25);
  border: 1px solid rgba(255, 138, 138, 0.35);
  color: var(--danger);
  display: none;
}

.msg-error.is-visible {
  display: block;
}

.msg-error a {
  color: var(--accent);
}

.msg-success {
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(198, 255, 220, 0.96);
  background: rgba(36, 110, 72, 0.28);
  border: 1px solid rgba(120, 220, 160, 0.42);
}

.msg-success[hidden] {
  display: none !important;
}

.registration-complete-badge {
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(198, 255, 220, 0.96);
  background: rgba(36, 110, 72, 0.35);
  border: 1px solid rgba(120, 220, 160, 0.4);
  text-align: center;
}

.btn-primary.btn-primary--inline {
  width: auto;
  display: inline-block;
  text-decoration: none;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.overview-cta-row {
  margin-top: 1.25rem;
  text-align: center;
}

.overview-main {
  flex: 1;
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  padding: calc(var(--nav-row-height) + 1.25rem) clamp(1rem, 4vw, 1.5rem) 2.5rem;
}

.overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.overview-stat {
  padding: 0.85rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.overview-stat strong {
  display: block;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: rgba(212, 168, 138, 0.98);
}

.overview-stat span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overview-panel {
  padding: clamp(1.1rem, 2.5vw, 1.35rem);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.overview-panel h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.overview-panel .overview-lede {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.overview-table th,
.overview-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(104, 66, 47, 0.16);
  vertical-align: middle;
}

.overview-table th {
  color: rgba(232, 238, 245, 0.88);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overview-toast {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: rgba(160, 240, 200, 0.92);
  min-height: 1.25rem;
}

.overview-dummy-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(232, 238, 245, 0.45);
}

.reg-verify-channel-fieldset {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(104, 66, 47, 0.22);
  background: rgba(6, 20, 32, 0.35);
}

.reg-verify-channel-fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(232, 238, 245, 0.88);
}

.reg-verify-radio-label {
  display: block;
  margin: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.reg-verify-radio-label input {
  margin-right: 0.45rem;
  vertical-align: middle;
}

.reg-verify-divider {
  margin: 1.35rem 0;
  border: 0;
  border-top: 1px solid rgba(104, 66, 47, 0.15);
}
