/* Who Said It? — design system (inspired by original frontend) */

@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --dark: #17191a;
  --dark-soft: #1f2223;
  --dark-muted: #2a2d2e;
  --beige: #e7e2d6;
  --beige-dim: #cfc9bd;
  --beige-dark: #b8b2a6;
  --green: #1b554f;
  --red: #d42926;
  --red-soft: #a82220;
  --text-on-dark: var(--beige);
  --text-on-beige: var(--dark);
  --font-mono: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --shadow-beige: 0 18px 40px rgba(0, 0, 0, 0.35);
  --header-h: 4.25rem;
  --max-width: 72rem;
  --transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-on-dark);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--beige);
  color: var(--dark);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* a:hover { color: var(--beige); } */

img, svg { display: block; max-width: 100%; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Background canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-main--narrow { width: min(100% - 2rem, 42rem); }
.site-main--game { width: min(100% - 1.5rem, 56rem); padding-top: 2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(23, 25, 26, 0.82);
  border-bottom: 1px solid rgba(231, 226, 214, 0.08);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--beige);
}

.brand-mark:hover { color: #fff; }

.brand-mark__text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__link {
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: lowercase;
  color: var(--beige-dim);
  padding: 0.35rem 0.15rem;
  transition: color var(--transition);
}

.site-nav__link:hover,
.site-nav__link.is-active { color: var(--beige); }

.site-nav__user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.35rem;
}

.site-nav__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid rgba(231, 226, 214, 0.25);
}

.site-nav__name {
  font-size: 0.8125rem;
  font-weight: 600;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  color: var(--beige-dim);
  font-size: 0.75rem;
}

.site-footer a {
  color: var(--beige);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.site-footer__note { margin-top: 0.35rem; opacity: 0.75; }

.pixel-heart {
  display: inline-flex;
  vertical-align: middle;
  transform: translateY(-1px);
  margin: 0 0.25rem;
  color: var(--beige);
}

.pixel-heart svg {
  display: block;
  image-rendering: pixelated;
}

/* Typography */
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: lowercase;
  margin: 0 0 0.5rem;
  color: var(--beige);
}

.page-title--hero {
  font-size: clamp(3rem, 10vw, 5.5rem);
  position: relative;
  display: inline-block;
}

.page-title__logo {
  position: absolute;
  left: calc(100% + 0.35rem);
  bottom: 52%;
  height: 0.55em;
  width: auto;
}

.page-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--beige-dim);
  text-transform: lowercase;
}

.page-subtitle--pixel {
  letter-spacing: 0.02em;
  font-weight: 600;
}

.highlight-box {
  background: var(--beige);
  color: var(--dark);
  padding: 0 0.12em;
}

.page-lead {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  color: var(--beige-dim);
  font-size: 1rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  text-transform: lowercase;
  color: var(--beige);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn:hover:not(:disabled) { transform: translateY(-2px); }

.btn:active:not(:disabled) { transform: translateY(0); }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--beige {
  background: var(--beige);
  color: var(--dark);
  box-shadow: var(--shadow-beige);
}

.btn--beige:hover:not(:disabled) { background: #f0ebe1; }

.btn--dark {
  background: var(--dark-muted);
  color: var(--beige);
  border: 1px solid rgba(231, 226, 214, 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--beige-dim);
  border: 1px solid rgba(231, 226, 214, 0.18);
}

.btn--ghost:hover:not(:disabled) { color: var(--beige); border-color: rgba(231, 226, 214, 0.35); }

.btn--danger {
  background: rgba(212, 41, 38, 0.15);
  color: #ff8a88;
  border: 1px solid rgba(212, 41, 38, 0.35);
}

.btn--danger-solid {
  background: var(--red);
  color: var(--beige);
}

.btn--sm { padding: 0.55rem 0.9rem; font-size: 0.8125rem; }

.btn--lg { padding: 1rem 1.5rem; font-size: 1rem; }

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
}

.btn--play-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(16rem, 78vw);
  padding: 1.25rem 3.5rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: lowercase;
  text-decoration: none;
  border-radius: var(--radius-lg);
  background: var(--beige);
  color: var(--dark);
  box-shadow: var(--shadow-beige);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn--play-hero:hover {
  transform: translateY(-3px) scale(1.02);
  background: #f0ebe1;
  color: var(--dark);
}

.btn--play-hero:active {
  transform: translateY(-1px) scale(1);
}

.btn--block { width: 100%; }

.btn--twitch {
  background: #9146ff;
  color: #fff;
}

.btn--twitch:hover:not(:disabled) { background: #7c2cf5; }

/* Cards & panels */
.panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(231, 226, 214, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.panel--beige {
  background: var(--beige);
  color: var(--dark);
  border: none;
  box-shadow: var(--shadow-beige);
}

.card-beige {
  background: var(--beige);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-beige);
}

.card-beige__label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-beige__message {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
  min-height: 2.5rem;
}

.card-beige__message.is-typing::after,
.hint-bubble__text.is-typing::after {
  content: '▌';
  display: inline-block;
  margin-left: 0.08em;
  animation: typing-cursor 0.8s step-end infinite;
}

@keyframes typing-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.card-beige__context {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.card-beige__context-tag {
  display: inline-block;
  background: var(--dark);
  color: var(--beige);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.45rem;
  margin-left: 0.25rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .site-nav__name { display: none; }
}

.stat-tile {
  background: rgba(231, 226, 214, 0.04);
  border: 1px solid rgba(231, 226, 214, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.stat-tile__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--beige);
  line-height: 1;
}

.stat-tile__label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--beige-dim);
}

.stat-tile--accent {
  background: rgba(231, 226, 214, 0.07);
  border-color: rgba(231, 226, 214, 0.16);
}

.stat-tile--accent .stat-tile__value {
  font-size: 2rem;
}

.link-card {
  display: block;
  text-decoration: none;
  background: rgba(231, 226, 214, 0.03);
  border: 1px solid rgba(231, 226, 214, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.link-card:hover {
  background: rgba(231, 226, 214, 0.06);
  border-color: rgba(231, 226, 214, 0.2);
  transform: translateY(-2px);
  color: var(--beige);
}

.link-card__title {
  font-weight: 800;
  text-transform: lowercase;
  margin-bottom: 0.25rem;
}

.link-card__desc {
  font-size: 0.8125rem;
  color: var(--beige-dim);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: lowercase;
}

.status-pill__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--red);
}

.status-pill__dot--live { background: var(--green); box-shadow: 0 0 0 4px rgba(27, 85, 79, 0.25); }

/* Forms */
.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--beige-dim);
  text-transform: lowercase;
}

.input, .select, .textarea {
  width: 100%;
  background: rgba(231, 226, 214, 0.05);
  border: 1px solid rgba(231, 226, 214, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  color: var(--beige);
}

.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid rgba(231, 226, 214, 0.25);
  outline-offset: 1px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.checkbox-row input { margin-top: 0.2rem; accent-color: var(--beige); }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(231, 226, 214, 0.08);
  text-align: left;
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--beige-dim);
}

/* Alerts */
.alert {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.alert--success {
  background: rgba(27, 85, 79, 0.25);
  border: 1px solid rgba(27, 85, 79, 0.45);
  color: #8fd9cf;
}

.alert--error {
  background: rgba(212, 41, 38, 0.15);
  border: 1px solid rgba(212, 41, 38, 0.35);
  color: #ff9d9b;
}

.alert--info {
  background: rgba(231, 226, 214, 0.06);
  border: 1px solid rgba(231, 226, 214, 0.12);
  color: var(--beige-dim);
}

/* Game-specific */
.game-stage {
  color: var(--dark);
}

.game-message-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.game-message-card { flex: 1; min-width: 0; }

.lifelines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.lifeline-btn {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.lifeline-btn:hover:not(:disabled) { transform: scale(1.05); }

.lifeline-btn:disabled {
  background: var(--red);
  color: var(--beige);
  cursor: not-allowed;
  transform: none;
}

.lifeline-btn img, .lifeline-btn svg {
  width: 1.75rem;
  height: 1.75rem;
}

.hint-bubble {
  position: relative;
  margin-top: 1.5rem;
}

.hint-bubble__arrow {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--beige);
  transform: rotate(45deg) translateY(45%) translateX(25%);
  margin-left: 1.25rem;
}

.hint-bubble__content {
  background: var(--beige);
  color: var(--dark);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.hint-bubble__text {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.35rem;
}

.options-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .options-row {
    flex-direction: row;
    gap: 1rem;
  }
}

.option-btn {
  flex: 1;
  text-align: left;
  background: var(--beige);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.option-btn:hover:not(:disabled) { transform: scale(1.03); }

.option-btn:disabled { cursor: not-allowed; transform: none; }

.option-btn.is-correct { background: var(--green); color: var(--beige); }

.option-btn.is-wrong { background: var(--red); color: var(--beige); }

.streak-panel {
  margin: 2rem 0 1rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

.streak-panel__primary {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  color: var(--beige-dim);
}

.streak-panel__secondary {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  color: var(--beige-dim);
}

.game-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.info-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: none;
  background: var(--beige);
  color: var(--dark);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-beige);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: 85vh;
  overflow: auto;
  background: var(--beige);
  color: var(--dark);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-beige);
}

/* Ensure readable muted text on light modal background */
.modal__dialog .text-muted {
  color: rgba(23, 25, 26, 0.75);
}

.modal__dialog p {
  color: rgba(23, 25, 26, 0.9);
}

.modal__title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 900;
  text-transform: lowercase;
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--dark);
}

.lifeline-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.lifeline-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lifeline-list img { width: 2.5rem; height: 2.5rem; }

/* Emotes in messages */
.emote {
  height: 1.35em;
  vertical-align: middle;
  margin: 0 1px;
}

/* Hero landing */
.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 40rem;
  margin: 0 auto;
}

.hero__content .page-title--hero {
  margin: 0.25rem 0 0;
}

.hero__content .page-lead {
  margin: 0.5rem 0 0;
  max-width: 34rem;
}

.beta-banner {
  display: inline-block;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(231, 226, 214, 0.2);
  background: rgba(231, 226, 214, 0.08);
  color: var(--beige);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  max-width: 100%;
}

.beta-banner--compact {
  margin-bottom: 0.35rem;
}

.auth-page {
  padding-top: 3rem;
}

.auth-page__intro {
  margin-bottom: 2rem;
}

.auth-page__panel {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.page-title--auth {
  font-size: clamp(2rem, 8vw, 3.5rem);
}

/* Dashboard home */
.dash-home {
  max-width: 52rem;
  margin: 0 auto;
}

.dash-home__header {
  margin-bottom: 1.5rem;
}

.dash-home__profile {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.dash-home__avatar {
  border-radius: 999px;
  border: 2px solid rgba(231, 226, 214, 0.22);
  flex-shrink: 0;
}

.dash-home__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin-bottom: 0.25rem;
}

.dash-home__channel {
  color: var(--beige);
}

.dash-home__bot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.dash-home__hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(231, 226, 214, 0.08);
  border-bottom: 1px solid rgba(231, 226, 214, 0.08);
}

.dash-home__hero-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.dash-home__stats {
  margin-bottom: 2.5rem;
}

.dash-home__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.dash-home__stats-secondary {
  margin-top: 0;
}

.dash-home__manage {
  margin-bottom: 1rem;
}

.dash-home__links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .dash-home__stats-grid,
  .dash-home__links-grid {
    grid-template-columns: 1fr;
  }

  .dash-home__profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dash-home__bot {
    justify-content: center;
  }
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .game-message-row { flex-direction: column; }
  .lifelines { flex-direction: row; }
}

.feature-card {
  background: rgba(231, 226, 214, 0.03);
  border: 1px solid rgba(231, 226, 214, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: left;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  text-transform: lowercase;
}

.feature-card p {
  margin: 0;
  color: var(--beige-dim);
  font-size: 0.875rem;
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--beige);
  color: var(--dark);
  font-weight: 800;
}

/* Utility */
.stack-sm > * + * { margin-top: 0.75rem; }
.stack-md > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--beige-dim);
}

.range-field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.range-input {
  width: 100%;
  accent-color: var(--beige);
}

.range-field__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--beige-dim);
  text-transform: lowercase;
}

.range-field__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--beige);
  min-width: 2ch;
  text-align: center;
}

.access-status__details {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.access-status__details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--beige-dim);
  margin-bottom: 0.15rem;
}

.access-status__details dd {
  margin: 0;
  font-weight: 700;
}

.access-review-card__header {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.access-review-card__avatar {
  border-radius: 999px;
  border: 2px solid rgba(231, 226, 214, 0.15);
}

.access-review-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.access-review-card__stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--beige-dim);
}

.access-review-card__stats dd {
  margin: 0.1rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.access-review-card__note {
  margin: 0;
  font-size: 0.9375rem;
}

.access-review-card__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.text-muted { color: var(--beige-dim); }
.text-center { text-align: center; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 2rem; }
.hidden { display: none !important; }

/* Loading spinner */
.loading-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(23, 25, 26, 0.15);
  border-top-color: var(--dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* Notifications (main.js) */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-beige);
}

.notification-success { background: var(--green); color: var(--beige); }
.notification-error { background: var(--red); color: var(--beige); }
.notification-info { background: var(--beige); color: var(--dark); }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
