﻿/* ════════════════════════════════════════
   BENCHMARK — COMPONENTS
   Shared UI components: modals, forms,
   toasts, admin, check-ins, profile,
   shop items, streak, achievements.
════════════════════════════════════════ */


/* ── PHOTO CROP MODAL ────────────────── */

.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.crop-modal {
  background: #111;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.65);
}

.crop-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.crop-modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.crop-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

#cropCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#cropCanvas:active {
  cursor: grabbing;
}

.crop-aspect-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 16px 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.crop-aspect-btn {
  background: var(--btn-color-neutral-bg);
  border: var(--btn-style-border-width) solid var(--btn-color-neutral-border);
  color: var(--btn-color-neutral-ink);
  border-radius: var(--btn-style-radius);
  font-size: var(--btn-size-sm-font);
  font-weight: var(--btn-style-font-weight);
  padding: var(--btn-size-sm-py) var(--btn-size-sm-px);
  cursor: pointer;
  transition: var(--btn-style-transition);
  letter-spacing: 0.03em;
}

.crop-aspect-btn:hover {
  background: var(--btn-color-neutral-bg-hover);
  color: var(--btn-color-neutral-ink);
}

.crop-aspect-btn.active {
  background: var(--btn-color-primary-bg);
  border-color: var(--btn-color-primary-border);
  color: var(--btn-color-primary-ink);
}

.crop-hint {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.35);
  padding: 5px 12px 8px;
}

.crop-modal-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.crop-modal-footer .btn-secondary {
  flex: 0 0 auto;
}

/* Mobile: slide up from bottom */
@media (max-width: 479px) {
  .crop-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .crop-modal {
    border-radius: 14px 14px 0 0 !important;
    max-width: 100% !important;
  }
  .crop-aspect-btn {
    padding: var(--btn-size-sm-py) var(--btn-size-sm-px) !important;
    font-size: var(--btn-size-sm-font) !important;
  }
}


/* ── ACHIEVEMENT POPUP ───────────────── */

.achievement-popup-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-scrim);
  z-index: var(--z-popup);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.achievement-popup-overlay.open,
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.achievement-popup {
  background: var(--white);
  border-radius: var(--ui-modal-radius);
  padding: var(--space-8) var(--space-6) var(--space-6);
  max-width: 320px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.achievement-popup-overlay.open .achievement-popup {
  transform: scale(1);
}

.achievement-popup-x {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 28px;
  height: 28px;
  font-size: var(--text-base);
}

.achievement-popup-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.achievement-popup-status {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.achievement-popup-status.earned {
  background: rgba(31,125,62,0.1);
  color: var(--moss);
  border: 1px solid var(--moss-b30);
}

.achievement-popup-status.locked {
  background: rgba(196,180,154,0.2);
  color: var(--stone-dark);
  border: 1px solid var(--parchment);
}

.achievement-popup-desc {
  line-height: 1.5;
}

/* Difficulty label inside the achievement detail popup */
.achievement-popup-difficulty {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-2);
}
.achievement-popup-difficulty.ach-diff-easy      { background: #d4f4dd; color: #1a7a38; }
.achievement-popup-difficulty.ach-diff-medium    { background: #dde8ff; color: #2451b7; }
.achievement-popup-difficulty.ach-diff-hard      { background: #ffe8d0; color: #b74c10; }
.achievement-popup-difficulty.ach-diff-legendary { background: linear-gradient(90deg,#fff1c2,#fcd8ff); color: #7a3a9a; }

.achievement-popup-reward {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--moss);
}


/* ── ACHIEVEMENT UNLOCK TOAST ────────── */

@keyframes achSlideIn {
  0%   { transform: translateX(120%) scale(0.9); opacity: 0; }
  65%  { transform: translateX(-6%) scale(1.01); opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes achSlideOut {
  0%   { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(120%) scale(0.9); opacity: 0; }
}

@keyframes achShine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes achConfetti {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(60px) rotate(720deg); opacity: 0; }
}

.ach-unlock-popup {
  position: fixed;
  top: 70px;
  right: var(--space-6);
  z-index: var(--z-max);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  min-width: 240px;
  max-width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 2px solid var(--gold);
  animation: achSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: none;
}

.ach-unlock-popup.hiding {
  animation: achSlideOut 0.4s ease-in both;
}

.ach-unlock-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
  animation: achShine 1s linear infinite;
}

.ach-unlock-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  margin-bottom: 2px;
}

.ach-unlock-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--bark);
  margin-bottom: 1px;
}

.ach-unlock-desc {
  font-size: var(--text-sm);
  color: var(--stone-dark);
}

.ach-unlock-coins {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #c77d00;
  background: #fff7d6;
  border-radius: var(--radius-full);
  padding: 2px 10px;
}

.ach-confetti {
  position: fixed;
  pointer-events: none;
  z-index: calc(var(--z-max) - 1);
  font-size: var(--text-xl);
  animation: achConfetti 1.2s ease-out both;
}


/* ── MODAL SYSTEM ────────────────────── */

.welcome-modal {
  max-width: 420px;
}

@media (max-width: 1024px) {
  #welcomeModal,
  #addModal {
    align-items: flex-end !important;
  }

  #welcomeModal .welcome-modal {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + var(--space-6)) !important;
    animation: sheetUp 0.4s cubic-bezier(0.34,1.56,0.64,1) both !important;
  }

  @keyframes sheetUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  @keyframes benchCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
  }

  #addModal .modal {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - 56px) !important;
    max-height: calc(100dvh - 56px) !important;
    overflow-y: auto !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: var(--space-4) var(--space-4) calc(env(safe-area-inset-bottom, 0px) + var(--space-4)) !important;
    animation: sheetUp 0.35s cubic-bezier(0.34,1.56,0.64,1) both !important;
  }

  #addModal .modal-sub {
    font-size: var(--text-base) !important;
}

  #addModal textarea.form-input {
    min-height: 52px !important;
  }

  #addModal .upload-area {
    padding: var(--space-3) !important;
}

  #addModal .star-inp {
    font-size: var(--text-2xl) !important;
  }
}
.welcome-body {
  line-height: 1.75;
}

.welcome-features {
  margin-bottom: var(--space-8);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bark-overlay);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal {
  background: var(--white);
  border-radius: var(--ui-modal-radius);
  padding: var(--ui-modal-padding);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--ui-modal-shadow);
  transform: translateY(18px) scale(0.97);
  transition: transform var(--transition-base);
  max-height: 90vh;
  overflow-y: auto;
  contain: paint;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal::-webkit-scrollbar {
  width: 14px;
}

.modal::-webkit-scrollbar-track {
  background: transparent;
}

.modal::-webkit-scrollbar-thumb {
  background: var(--stone);
  border-radius: 14px;
}

.modal-x {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  font-size: var(--text-md);
  flex-shrink: 0;
}
.confirm-modal {
  max-width: 360px;
}
.confirm-msg {
  color: var(--bark-light);
  line-height: 1.5;
}
.report-reason {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--parchment);
  background: var(--cream);
  transition: all var(--transition-fast);
}

.report-reason:hover {
  border-color: var(--amber);
  background: var(--reason-hover-bg);
}

.report-reason.selected {
  border-color: var(--amber);
  background: var(--reason-selected-bg);
  color: var(--amber);
  font-weight: var(--weight-semibold);
}


.modal-overlay-front {
  z-index: var(--z-popup);
}

.modal-compact {
  max-width: 400px;
}

.modal-sm {
  max-width: 360px;
}



/* ── LOADING STATES ─────────────────── */

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--parchment);
  border-top-color: var(--moss);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  color: var(--bark-light);
  font-size: var(--text-sm);
}

.inline-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--stone-dark);
  font-size: var(--text-sm);
}

.inline-status.is-compact {
  padding: var(--space-2) var(--space-3);
}

.inline-status.is-warning {
  background: rgba(255,60,40,0.1);
  color: var(--stone-dark);
}

.inline-status-spinner[hidden],
.inline-status-action[hidden] {
  display: none;
}

.inline-status-action {
  margin-left: auto;
}

/* ── PHOTO LAYOUT (primary + more) ── */

/* ── Photo Carousel ── */
.photo-carousel {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-2);
  background: var(--cream);
}

.photo-carousel-img-wrap {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.photo-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.12s ease;
  pointer-events: none;
}

.photo-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
  z-index: 2;
  padding: 0;
}

.photo-carousel:hover .photo-carousel-nav {
  opacity: 1;
}

.photo-carousel-nav:hover {
  background: rgba(0, 0, 0, 0.72);
}

.photo-carousel-prev { left: 8px; }
.photo-carousel-next { right: 8px; }

/* Mobile: show arrows and add touch indicator */
@media (max-width: 479px) {
  .photo-carousel {
    touch-action: pan-y;
  }
  .photo-carousel-nav {
    opacity: 1;
    touch-action: manipulation;
  }
  .photo-carousel-nav:active {
    background: rgba(0, 0, 0, 0.82);
  }
  .photo-carousel:hover .photo-carousel-nav {
    opacity: 1;
  }
}

@keyframes photoCarouselFlash {
  0% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0); }
  40% { box-shadow: inset 0 0 0 999px rgba(255,255,255,0.55); }
  100% { box-shadow: inset 0 0 0 999px rgba(255,255,255,0); }
}

.photo-carousel.is-flashing .photo-carousel-img-wrap,
.photo-carousel.is-flashing .photo-carousel-nav {
  animation: photoCarouselFlash 0.18s ease-out;
}

.photo-carousel-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.04em;
}

.photo-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  background: var(--cream);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.mob-shop-loading {
  flex: 1;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.coin-burst {
  position: fixed;
  font-weight: 800;
  color: #b8860b;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  pointer-events: none;
  z-index: 99999;
}

/* Leaderboard under-development banner */
.lb-under-dev {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.lb-under-dev-icon { font-size: 40px; }
.lb-under-dev-sub {
  color: var(--bark-light);
  max-width: 300px;
  line-height: 1.5;
}

/* Reaction row same height */
/* Header avatar same height as banner buttons */
.user-avatar {
  height: 36px !important;
  width: 36px !important;
  min-width: 36px !important;
}


/* HEADER BUTTON HEIGHT ALIGNMENT (override previous rule) */

.header-user-row .btn-ghost,
.header-coin-badge,
.header-streak-badge {
  height: 36px;
  box-sizing: border-box;
}

/* ── FORM SYSTEM ─────────────────────── */
.form-label {
  color: var(--bark-light);
  letter-spacing: 0.5px;
}

.form-input {
  border: 1.5px solid var(--parchment);
  outline: none;
  transition: border-color var(--transition-base);
}

.form-input:focus {
  border-color: var(--moss);
  background: var(--white);
}

.form-input::placeholder {
  color: var(--stone);
}

textarea.form-input {
  resize: vertical;
  min-height: 40px;
}
.form-tag {
  border: 1.5px solid var(--parchment);
  transition: all var(--transition-fast);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.form-tag.selected {
  background: var(--moss);
  color: var(--white);
  border-color: var(--moss);
}

.form-tag:hover:not(.selected) {
  border-color: var(--moss);
  color: var(--moss);
}

.tags-details {
  border: 1.5px solid var(--parchment);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.edit-picker-details {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 0;
}

.edit-picker-details summary {
  transition: background var(--transition-base);
}

.edit-picker-details summary:hover {
  background: var(--parchment) !important;
  border-radius: var(--radius-md);
}

.edit-picker-details summary .picker-arrow {
  display: inline-block;
  transition: transform var(--transition-slow);
  font-style: normal;
}

.edit-picker-details[open] summary .picker-arrow {
  transform: rotate(-180deg);
}

.edit-picker-details > :not(summary) {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease;
  opacity: 0;
}

.edit-picker-details[open] > :not(summary) {
  max-height: 600px;
  opacity: 1;
}

.tags-summary {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--bark);
  background: var(--cream);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  -webkit-user-select: none;
  user-select: none;
}

.tags-summary::-webkit-details-marker,
.profile-section-summary::-webkit-details-marker {
  display: none;
}

.tags-summary::after {
  content: '▾';
  margin-left: auto;
  font-size: var(--text-sm);
  transition: transform var(--transition-slow);
}

.tags-details[open] .tags-summary::after {
  transform: rotate(-180deg);
}

.tags-details .form-tags {
  overflow: hidden;
}

.tags-count {
  font-size: var(--text-sm);
  color: var(--moss);
  font-weight: var(--weight-bold);
}

.upload-area {
  border: 2px dashed var(--stone);
  padding: var(--space-5);
  transition: all var(--transition-base);
}

.upload-area:hover {
  border-color: var(--moss);
  background: var(--moss-t04);
}

.upload-area input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-text strong {
  color: var(--moss);
}
.img-preview-box {
  position: relative;
  margin-top: var(--space-3);
}
.img-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
}

.img-preview-card {
  position: relative;
}

.img-preview-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.img-preview-actions {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: flex;
  gap: 6px;
}

.img-primary-btn {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.5);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 2px 8px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.img-primary-btn:hover {
  background: rgba(0,0,0,0.68);
}

.img-primary-btn.is-active {
  background: rgba(31,125,62,0.92);
  border-color: rgba(31,125,62,0.92);
}

.img-remove {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: var(--bark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-preview-actions .img-remove {
  position: static;
  background: rgba(61, 43, 31, 0.82);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.img-crop-btn {
  position: absolute;
  top: var(--space-2);
  right: 30px;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 2px 8px;
  font-size: var(--text-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: background var(--transition-fast);
}
.img-crop-btn:hover { background: rgba(0,0,0,0.75); }

.img-preview-actions .img-crop-btn {
  position: static;
  right: auto;
}

.checkin-crop-btn {
  margin-top: 6px;
  font-size: var(--text-sm);
  padding: 5px 14px;
}

.star-inp {
  font-size: var(--text-2xl);
  cursor: pointer;
  color: var(--stone);
  transition: all var(--transition-fast);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.star-inp.filled {
  color: var(--gold);
}

.star-inp:hover {
  transform: scale(1.2);
}

.form-help-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--stone-dark);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  cursor: pointer;
  color: var(--stone-dark);
  flex-shrink: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.form-tags-scroll {
  max-height: 160px;
  overflow-y: auto;
}

.tos-error {
  margin-bottom: var(--space-2);
  margin-top: 0;
}

.signup-tos-row {
  margin: var(--space-3) 0 var(--space-1);
}

.signup-tos-check {
  margin-top: var(--space-1);
  accent-color: var(--moss);
  cursor: pointer;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.signup-tos-label {
  font-size: var(--text-base);
  color: var(--stone-dark);
  cursor: pointer;
  line-height: 1.5;
}

.no-resize {
  resize: none;
}


/* ── TOAST ───────────────────────────── */

.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translate(-50%, calc(100% + 120px));
  opacity: 0;
  background: var(--bark);
  color: var(--cream);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  z-index: 9999;
  transition: transform var(--transition-spring), opacity var(--transition-base);
  pointer-events: none;
  box-shadow: 0 6px 24px var(--shadow-deep);
  white-space: nowrap;
  max-width: calc(100% - var(--space-8));
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .toast {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
    padding: var(--space-3) var(--space-4);
    white-space: normal;
    text-align: center;
  }
}


/* ── LEAFLET POPUP ───────────────────── */

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 20px var(--shadow-deep) !important;
  font-family: var(--font-primary) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
}

.leaflet-popup-tip-container,
.checkin-photo-input {
  display: none;
}


/* ── UTILITY CLASSES ─────────────────── */

.welcome-overlay {
  z-index: calc(var(--z-nav) + 10);
}

.welcome-logo-img {
  height: 2.2rem;
  margin: 0 auto;
}


/* ── ADMIN UI ────────────────────────── */

.admin-section-title {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  margin: var(--space-4) 0 var(--space-3);
  color: var(--bark);
}


.admin-all-benches-section {
  margin: var(--space-4) 0 var(--space-3);
}

/* Always-expanded variant used in admin modal to replace details/summary */

#adminAllList {
  max-height: 60vh;
  overflow-y: auto;
}

.admin-all-benches-section summary {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--bark);
  cursor: pointer;
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.admin-all-benches-section summary:hover {
  color: var(--moss);
}

.admin-all-benches-section[open] summary {
  margin-bottom: var(--space-3);
}

.admin-bench-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--parchment);
  margin-bottom: var(--space-2);
  background: var(--cream);
  transition: all var(--transition-fast);
}

.admin-bench-row.flagged {
  border-color: var(--btn-danger-border);
  background: var(--danger-surface-soft);
}

.admin-bench-meta {
  margin-top: 2px;
}

.admin-count-pill {
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
}

.admin-count-pill.warn {
  background: var(--warn-pill-bg);
  color: var(--warn-pill-text);
}

.admin-count-pill.danger {
  background: var(--btn-danger-bg);
  color: var(--red);
}

.admin-empty-note {
  padding: var(--space-2) 0;
}

.admin-dev-tools {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle, #e5e7eb);
}

.admin-debug-info {
  background: var(--cream, #f9f7f3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid var(--stone, #e0ddd8);
}

.admin-debug-item {
  font-size: var(--text-sm);
}

.admin-debug-label {
  min-width: 110px;
}

.admin-debug-val {
  color: var(--bark);
  word-break: break-word;
}

.admin-debug-val-compact {
  font-size: 0.75em;
}


.profile-admin-section {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.profile-admin-section-title {
  margin-top: 0 !important;
}

.profile-admin-btn-override {
  --profile-action-border: rgba(100,160,220,0.35);
  --profile-action-bg: rgba(100,160,220,0.06);
  --profile-action-color: #1a5fa0;
}

.admin-new-user-pill {
  background: var(--warn-pill-bg);
  color: var(--warn-pill-text);
  font-size: var(--text-xs);
  padding: 1px var(--space-2);
  border-radius: var(--radius-full);
  font-weight: var(--weight-bold);
}

.admin-avatar-36 {
  width: var(--avatar-md);
  height: var(--avatar-md);
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.admin-avatar-fill-36 {
  width: var(--avatar-md);
  height: var(--avatar-md);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.admin-report-card {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.admin-report-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.admin-report-pill {
  background: var(--btn-danger-bg);
  color: var(--danger-accent);
  padding: 2px 7px;
  margin-right: var(--space-1);
  font-size: var(--text-sm);
}

.admin-avatar-32 {
  width: var(--avatar-sm);
  height: var(--avatar-sm);
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.admin-avatar-fill-32 {
  width: var(--avatar-sm);
  height: var(--avatar-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.admin-user-main {
  flex: 1;
  min-width: 100px;
}

.admin-user-id-fade {
  opacity: 0.5;
}


/* ── PROFILE SYSTEM ──────────────────── */

.global-stats-shell {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.global-stats-header {
  padding: var(--space-5) var(--space-5) 0;
  border-bottom: 1px solid var(--parchment);
}

.global-stats-title {
  font-family: var(--font-primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.edit-avatar-group {
  text-align: center;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-3);
}

.edit-avatar-name-label {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-top: var(--space-2);
  min-height: 1.2em;
}

.edit-avatar-change-hint {
  margin-bottom: var(--space-2);
}

.edit-avatar-preview {
  width: var(--avatar-xl);
  height: var(--avatar-xl);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin: 0 auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.edit-avatar-image {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.edit-avatar-initials {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}

.edit-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

#editAvatarPreview:hover .edit-avatar-overlay {
  opacity: 1;
}

/* Rainbow border: edit-avatar-image ignores padding (position:absolute;inset:0),
   so inset it explicitly to expose the 3px conic-gradient ring */
#editAvatarPreview.avatar-border-rainbow .edit-avatar-image,
#editAvatarPreview.avatar-border-rainbow .edit-avatar-overlay {
  inset: 3px !important;
  width: calc(100% - 6px) !important;
  height: calc(100% - 6px) !important;
  border-radius: 50% !important;
}

.btn-inline-text {
  background: none;
  border: none;
  color: var(--moss);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.edit-home-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--parchment);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.edit-home-meta {
  line-height: 1.5;
}

#editHomeShowBtn {
  display: none;
}

.username-change-info {
  font-size: var(--text-sm);
  color: var(--stone-dark);
  float: right;
}

.edit-picker {
  margin-bottom: var(--space-2);
}

.edit-picker-summary {
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bark);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.profile-tags-hint {
  font-weight: var(--weight-normal);
  text-transform: none;
  font-size: var(--text-sm);
}

.edit-picker-panel {
  display: flex;
  flex-wrap: wrap;
  margin-top: var(--space-2);
  background: var(--cream);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-3);
  border: 1px solid var(--parchment);
  border-top: none;
}

.edit-picker-panel.tight {
  gap: var(--space-2);
}

.edit-picker-panel.wide {
  gap: var(--space-3);
}

.tnc-scroll-modal {
  position: relative;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
}

.tnc-body {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--bark);
}

.tnc-section-title {
  font-weight: var(--weight-bold);
  margin: var(--space-4) 0 var(--space-1);
}

.level-section.level-section-plain {
  border-bottom: 1px solid var(--parchment);
}

.level-section.level-section-special {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.level-badge.level-badge-blue {
  color: rgba(71,206,255,0.8);
}

.level-badge.level-badge-green {
  color: rgba(31,125,62,0.9);
}

.level-badge.level-badge-orange {
  color: rgba(232,168,130,0.8);
}

.level-next.level-next-plain {
  color: var(--bark);
  font-weight: var(--weight-semibold);
  opacity: 1;
}

.level-next.level-next-special {
  color: rgba(255,255,255,0.9);
  font-weight: var(--weight-bold);
  opacity: 1;
}

.level-bar-wrap.level-bar-wrap-plain {
  background: var(--parchment);
}

.level-bar-wrap.level-bar-wrap-special {
  background: rgba(255,255,255,0.08);
}

.profile-badge,
.profile-tag-pill,
.profile-user-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  letter-spacing: 0.6px;
  line-height: 1.2;
  background: var(--profile-pill-bg, rgba(31,125,62,0.1));
  border: 1px solid var(--profile-pill-border, rgba(31,125,62,0.25));
  color: var(--profile-pill-color, var(--moss));
  font-weight: var(--profile-pill-weight, inherit);
}

.profile-tag-pill-default {
  --profile-pill-bg: rgba(31,125,62,0.1);
  --profile-pill-border: rgba(31,125,62,0.25);
  --profile-pill-color: var(--moss);
  --profile-pill-weight: var(--weight-semibold);
}

.profile-user-tag {
  --profile-pill-bg: rgba(77,150,255,0.12);
  --profile-pill-border: rgba(77,150,255,0.3);
  --profile-pill-color: var(--bark);
  --profile-pill-weight: var(--weight-semibold);
}

.profile-empty-note {
  font-size: var(--text-base);
  text-align: center;
  padding: var(--space-4) 0;
  color: var(--profile-empty-note-color, var(--stone-dark));
}

.profile-modal-avatar-img,
.checkin-avatar-img {
  border-radius: var(--radius-full);
  object-fit: cover;
}

.profile-section-summary {
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--profile-summary-bg, var(--cream));
  border: 1.5px solid var(--profile-summary-border, var(--parchment));
}

.profile-section-text {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--profile-summary-text-color, var(--bark));
}

.profile-section-arrow {
  font-size: var(--text-sm);
  color: var(--profile-summary-arrow-color, var(--stone-dark));
  opacity: var(--profile-summary-arrow-opacity, 1);
}

.profile-bench-list-spaced {
  margin-top: var(--space-1);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: var(--space-2);
  padding-bottom: var(--space-4);
}

/* Profile header with just avatar centered */

/* Action buttons row: Sign Out, Edit Profile, Dark Mode */
.profile-actions-row {
  margin: var(--space-2) 0 var(--space-3);
}

.profile-action-chip {
  min-height: 32px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
}

.panel-refresh-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--parchment);
  background: var(--white);
  color: var(--stone-dark);
  margin: 0;
}

.panel-refresh-btn:hover {
  transform: rotate(20deg);
}

.panel-refresh-btn:disabled,
.panel-refresh-btn.is-cooldown {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: none;
}

.panel-refresh-btn.is-loading .tab-refresh-icon {
  animation: tabRefreshSpin 0.9s linear infinite;
}

.profile-stats-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-2) 0 var(--space-2);
}

.profile-stat {
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-1);
  text-align: center;
  background: linear-gradient(160deg, rgba(31,125,62,0.08) 0%, rgba(255,255,255,0.95) 100%);
  border: 1px solid rgba(31,125,62,0.18);
  box-shadow: none;
}

.profile-stat-icon {
  font-size: var(--text-sm);
  line-height: 1;
  opacity: 0.7;
}

.profile-stat-num {
  font-size: clamp(1.45rem, 4.5vw, 1.8rem);
  line-height: 1;
  font-weight: var(--weight-bold);
  color: var(--moss);
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .profile-stat {
  background: linear-gradient(160deg, rgba(45,100,70,0.22) 0%, rgba(20,38,30,0.95) 100%);
  border-color: rgba(120,200,140,0.26);
  box-shadow: none;
}

[data-theme="dark"] .profile-stat-num {
  color: #8ddf9e;
  text-shadow: none;
}

[data-theme="dark"] .profile-stat-label {
  color: rgba(220,235,225,0.78);
}

/* Center email verification status */
.profile-verified,
.profile-unverified {
  text-align: center;
  margin: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.profile-verified {
  color: #4a9d4f;
}

.profile-unverified {
  color: var(--amber);
}

.profile-meta-row {
  margin: var(--space-2);
}

.profile-meta-sep {
  opacity: 0.55;
  margin: 0 var(--space-1);
}

.profile-admin-btn,
.profile-logout-btn {
  width: auto;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
  border: 1.5px solid var(--profile-action-border, var(--parchment));
  background: var(--profile-action-bg, transparent);
  color: var(--profile-action-color, var(--bark));
}

.profile-admin-btn {
  --profile-action-border: rgba(255,193,7,0.35);
  --profile-action-bg: rgba(255,193,7,0.06);
  --profile-action-color: #a07800;
}

.profile-logout-btn {
  --profile-action-border: rgba(220,53,69,0.4);
  --profile-action-bg: rgba(220,53,69,0.1);
  --profile-action-color: #e0513a;
}

.profile-modal-avatar-shell,
.checkin-avatar-btn {
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.profile-modal-avatar-shell {
  width: var(--avatar-xl);
  height: var(--avatar-xl);
  margin: 0 auto var(--space-3);
}

.avatar-border-vinyl,
.avatar-border-city {
  transform: scale(0.9);
  transform-origin: center;
}

.profile-modal-avatar-img,
.checkin-avatar-img {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-modal-avatar-shell .edit-avatar-image {
  display: block;
}

.profile-modal-avatar-fallback {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.profile-tagline-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
  margin: var(--space-1) 0;
}

.profile-tag-pill,
.profile-user-tag {
  margin: 0;
}

.profile-actions-row:empty {
  display: none;
}

.profile-section-details {
  margin: var(--space-3) 0 0;
}

.profile-report-btn {
  margin-top: 0;
  width: 100%;
  padding: var(--space-2);
  border-radius: var(--radius-full);
  border: 1.5px solid #e0513a;
  background: transparent;
  color: #e0513a;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-family: var(--font-primary);
}

@media (max-width: 479px) {
  .profile-action-chip {
    min-height: 30px;
    font-size: var(--text-xs);
    padding: 0 var(--space-2);
  }
  .panel-refresh-btn {
    min-height: 32px;
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
  .profile-meta-row {
    font-size: var(--text-xs);
  }
  .profile-stat-label {
      font-size: 12px;
    letter-spacing: 0.2px;
  }
}

.profile-engagement-toast {
  position: fixed;
  top: 70px;
  right: var(--space-6);
  z-index: var(--z-max);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  min-width: 240px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 2px solid #4d96ff;
  animation: achSlideIn 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: none;
}

.profile-engagement-toast.hiding {
  animation: achSlideOut 0.35s ease-in both;
}

.profile-engagement-toast-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4d96ff;
}

.profile-engagement-toast-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--bark);
  margin-top: 2px;
}

.profile-engagement-toast-body {
  font-size: var(--text-sm);
  color: var(--stone-dark);
  margin-top: 2px;
}


/* ── CHECK-IN SYSTEM ─────────────────── */

.checkin-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--parchment);
}

.checkin-avatar-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  overflow: hidden;
  flex-shrink: 0;
}
.checkin-condition-pill {
  color: var(--checkin-condition-color, var(--stone-dark));
}

.checkin-condition-excellent { --checkin-condition-color: #1f7d3e; }
.checkin-condition-good      { --checkin-condition-color: #2a9e50; }
.checkin-condition-fair      { --checkin-condition-color: #cc7a00; }
.checkin-condition-poor      { --checkin-condition-color: #c0392b; }

.checkin-time {
  margin-left: auto;
}

.checkin-delete-btn {
  width: 20px;
  height: 20px;
  margin-left: var(--space-1);
  border: 1px solid var(--parchment);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--stone-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.checkin-delete-btn:hover {
  background: var(--cream);
  color: var(--bark);
  border-color: var(--stone);
}

.checkin-rating-row {
  margin: 2px 0;
}

.checkin-rating-star {
  color: #ddd;
  font-size: var(--text-base);
}

.checkin-rating-star.is-filled,
.checkin-input-star.is-filled {
  color: #f5a623;
}

.checkin-note {
  margin-top: 2px;
  line-height: 1.45;
}

.checkin-empty {
  font-size: var(--text-base);
  padding: var(--space-3) 0;
}

.checkin-modal-title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
}

.checkin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
}

.checkin-modal-backdrop--mobile {
  display: block;
}

.checkin-modal-surface {
  z-index: 3101;
  background: var(--white);
  overflow-y: auto;
}

.checkin-modal-surface--desktop {
  position: relative;
  width: min(380px, 92vw);
  max-height: 85vh;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.28);
  animation: shopPopIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

.checkin-modal-surface--mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90dvh;
  padding: 20px 18px calc(env(safe-area-inset-bottom,0px) + 16px);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.28);
  animation: sheetUp 0.35s cubic-bezier(0.32,0.72,0,1) both;
}

.checkin-modal-close {
  width: 28px;
  height: 28px;
}

.checkin-field-wide {
  margin-bottom: var(--space-5);
}

.checkin-field-label {
  letter-spacing: 0.5px;
}

.checkin-field-optional {
  font-weight: var(--weight-normal);
  text-transform: none;
}

.checkin-input-star {
  font-size: var(--text-2xl);
  cursor: pointer;
  transition: transform var(--transition-fast), color var(--transition-fast);
  color: #ddd;
}

.checkin-input-star.is-popped {
  transform: scale(1.3);
}
.checkin-condition-btn {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 2px solid var(--parchment);
  background: var(--cream);
  color: var(--stone-dark);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  --checkin-condition-color: var(--stone-dark);
  --checkin-condition-bg: var(--cream);
}

.checkin-condition-btn[data-condition="excellent"] {
  --checkin-condition-color: #1f7d3e;
  --checkin-condition-bg: rgba(31,125,62,0.13);
}

.checkin-condition-btn[data-condition="good"] {
  --checkin-condition-color: #2a9e50;
  --checkin-condition-bg: rgba(42,158,80,0.13);
}

.checkin-condition-btn[data-condition="fair"] {
  --checkin-condition-color: #cc7a00;
  --checkin-condition-bg: rgba(204,122,0,0.13);
}

.checkin-condition-btn[data-condition="poor"] {
  --checkin-condition-color: #c0392b;
  --checkin-condition-bg: rgba(192,57,43,0.13);
}

.checkin-condition-btn.is-active {
  border-color: var(--checkin-condition-color);
  background: var(--checkin-condition-bg);
  color: var(--checkin-condition-color);
}

.checkin-note-input {
  border: 1.5px solid var(--parchment);
  font-family: var(--font-primary);
  resize: none;
  box-sizing: border-box;
  outline: none;
}

.checkin-note-input.is-focused,
.checkin-photo-label:hover {
  border-color: var(--moss);
}

.checkin-photo-label {
  padding: var(--space-3) var(--space-4);
  border: 1.5px dashed var(--parchment);
  transition: border-color var(--transition-fast);
}

.checkin-photo-preview-wrap {
  width: var(--avatar-lg);
  height: var(--avatar-lg);
}

.checkin-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.checkin-photo-text {
  font-size: inherit;
}

.bench-reaction-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin: var(--space-1) 0 var(--space-2);
}

.bench-reaction-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--parchment);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--white);
  color: var(--stone-dark);
}

.bench-reaction-stat {
  justify-content: center;
  min-height: 40px;
  padding: var(--space-1) var(--space-3);
  border: 1.5px solid var(--parchment);
  background: var(--cream);
  color: var(--stone-dark);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.bench-reaction-btn-like.is-active {
  background: rgba(245,166,35,0.12);
  color: #c47d00;
  border-color: #f5a623;
}


/* ── ACHIEVEMENTS ────────────────────── */

.achievements-title-blue {
  color: rgba(71,206,255,0.5);
}

.achievements-title-orange {
  color: rgba(204,120,92,0.5);
}

.achievement-clickable {
  cursor: pointer;
}

.achievements-grid .achievement.locked.achievement-theme-blue,
.achievements-grid .achievement.locked.achievement-theme-orange {
  opacity: 1;
  filter: none;
}

.achievements-grid .achievement.earned.achievement-theme-blue {
  background: rgba(71,206,255,0.1);
  border-color: rgba(71,206,255,0.4);
  color: rgba(71,206,255,0.9);
}

.achievements-grid .achievement.earned.achievement-theme-orange {
  background: rgba(204,120,92,0.1);
  border-color: rgba(204,120,92,0.4);
  color: rgba(204,120,92,0.9);
}

.achievements-grid .achievement.locked.achievement-theme-blue {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
}

.achievements-grid .achievement.locked.achievement-theme-orange {
  background: transparent;
  border-color: rgba(196,180,154,0.3);
  color: rgba(196,180,154,0.5);
}


/* ── LEADERBOARD ─────────────────────── */

.lb-period-tabs {
  border-bottom: 1px solid var(--parchment);
}

.lb-period-tab {
  padding: var(--space-2) 0;
  border: none;
  background: none;
  color: var(--stone-dark);
  border-bottom: 2px solid transparent;
}

.lb-period-tab.active-period {
  color: var(--moss);
  border-bottom-color: var(--moss);
}

.lb-stats-bar {
  border-bottom: 1px solid var(--parchment);
  background: var(--cream);
}

.lb-stats-cell {
  flex: 1;
  text-align: center;
  padding: var(--space-3) var(--space-1);
}

.lb-stats-cell-divided {
  border-right: 1px solid var(--parchment);
}

.lb-stats-value {
  font-family: var(--font-primary);
}

.lb-stats-label {
  letter-spacing: 0.4px;
}

.lb-list-shell {
  padding: var(--space-2) var(--space-4);
}

.lb-empty {
  padding: var(--space-5);
}

[data-theme="dark"] .lb-period-tabs,
[data-theme="dark"] .lb-stats-bar {
  border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .lb-period-tab {
  color: rgba(255,255,255,0.45);
}

[data-theme="dark"] .lb-period-tab.active-period {
  color: rgba(255,255,255,0.95);
  border-bottom-color: rgba(255,255,255,0.9);
}

[data-theme="dark"] .lb-stats-bar {
  background: rgba(255,255,255,0.03);
}

[data-theme="dark"] .lb-stats-cell-divided {
  border-right-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .lb-stats-value {
  color: rgba(255,255,255,0.9);
}

[data-theme="dark"] .lb-empty {
  color: rgba(255,255,255,0.55);
}

.lb-notif-modal {
  max-width: 380px;
  text-align: center;
  padding: var(--space-8);
  background: var(--white);
  position: relative;
}

.lb-notif-modal.is-approved {
  border-top: 4px solid var(--moss);
}

.lb-notif-modal.is-rejected {
  border-top: 4px solid #e0513a;
}

.lb-notif-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: none;
  border: none;
  line-height: 1;
  font-size: var(--text-lg);
  cursor: pointer;
  color: var(--stone-dark);
}

.lb-notif-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
}

.lb-notif-modal.is-approved .lb-notif-title {
  color: var(--moss);
}

.lb-notif-modal.is-rejected .lb-notif-title {
  color: #e0513a;
}

.lb-notif-copy {
  margin: 0 0 var(--space-5);
  color: var(--ink-light);
  font-size: var(--text-md);
  line-height: 1.55;
}

.lb-notif-cta {
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  border: none;
  color: var(--white);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  cursor: pointer;
  font-family: var(--font-primary);
}

.lb-notif-cta.is-approved {
  background: var(--moss);
}

.lb-notif-cta.is-rejected {
  background: #e0513a;
}


/* ── REWARD PREVIEW ──────────────────── */


/* ── AVATAR BORDER VARIANTS ──────────── */

#editUsername:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--parchment);
}

.edit-border-pill {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  transition: transform var(--transition-base), outline var(--transition-base);
  background: var(--cream);
}

.edit-border-pill.is-selected {
  outline: 3px solid var(--moss);
  outline-offset: 3px;
  transform: scale(1.18);
}

.edit-border-pill.is-locked {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.edit-border-pill--none     { border: 2px solid var(--parchment); }
.edit-border-pill--gold     { border: 3px solid #ffd700; box-shadow: 0 0 8px  rgba(255,215,0,0.5); }
.edit-border-pill--silver   { border: 3px solid #c0c0c0; box-shadow: 0 0 6px  rgba(192,192,192,0.4); }
.edit-border-pill--fire     { border: 3px solid #ff6b35; box-shadow: 0 0 10px rgba(255,107,53,0.5); }
.edit-border-pill--ice      { border: 3px solid #47ceff; box-shadow: 0 0 10px rgba(71,206,255,0.4); }
.edit-border-pill--rainbow  { border: 3px solid #c77dff; box-shadow: 0 0 10px rgba(199,125,255,0.4); }
.edit-border-pill--nature   { border: 3px solid #6bcb77; box-shadow: 0 0 8px  rgba(107,203,119,0.5); }
.edit-border-pill--city     { border: 3px solid #686565; box-shadow: 0 0 8px  rgba(104,101,101,0.5); }

.avatar-html-shell-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-html-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  display: block;
}

.avatar-html-fallback {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--moss);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  line-height: 1;
  text-transform: uppercase;
}


/* ── STREAK POPUP ────────────────────── */

.streak-popup-shell {
  background: linear-gradient(160deg, #1a0a00 0%, #3d1a00 40%, #1a0a00 100%);
  border-radius: var(--radius-xl);
  width: 360px;
  max-width: 94vw;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: shopPopIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.streak-popup-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  z-index: var(--z-sidebar);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: var(--text-md);
  font-family: var(--font-primary);
}

.streak-popup-content {
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.streak-popup-flame {
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1;
  animation: fireBob 1.2s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 8px 20px rgba(255,107,53,0.7));
}

.streak-popup-count {
  font-family: var(--font-primary);
  font-size: clamp(3.5rem, 11vw, 6rem);
  color: white;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(255,107,53,0.6);
}

.streak-popup-label {
  font-size: var(--text-md);
  color: rgba(255,200,100,0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
}

.streak-popup-status {
  display: inline-block;
  padding: var(--space-1) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.streak-popup-status.is-active {
  background: rgba(107,203,119,0.2);
  color: #6bcb77;
  border: 1px solid rgba(107,203,119,0.4);
}

.streak-popup-status.is-warning {
  background: rgba(224,81,58,0.2);
  color: #e0513a;
  border: 1px solid rgba(224,81,58,0.4);
}

.streak-rings-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
}

.streak-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.streak-ring-icon {
  width: var(--avatar-md);
  height: var(--avatar-md);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  background: rgba(255,255,255,0.1);
}

.streak-ring-icon.is-active {
  background: linear-gradient(135deg, #ff6b35, #ffd700);
  box-shadow: 0 3px 10px rgba(255,107,53,0.5);
}

.streak-ring-icon.is-active.is-today {
  animation: streakPulse 1.8s ease-in-out infinite;
}

.streak-ring-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
}

.streak-ring-label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.streak-ring-label.is-active {
  color: rgba(255,255,255,0.9);
}

.streak-milestone-pill {
  padding: var(--space-2) var(--space-5);
  background: rgba(255,107,53,0.2);
  border: 1px solid rgba(255,107,53,0.4);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  color: rgba(255,220,100,0.9);
  font-weight: var(--weight-semibold);
}

.streak-reward-title {
  font-size: var(--text-2xs);
  font-weight: var(--weight-extrabold);
  text-transform: uppercase;
  color: rgba(255,200,100,0.55);
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.streak-reward {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-1);
}

.streak-reward.is-reached {
  background: rgba(255,200,80,0.18);
  border-color: rgba(255,200,80,0.45);
  animation: streakPulse 2.5s ease-in-out infinite;
}

.streak-reward-icon {
  font-size: var(--text-xl);
  filter: grayscale(1) opacity(0.3);
}

.streak-reward.is-reached .streak-reward-icon {
  filter: drop-shadow(0 2px 6px rgba(255,200,80,0.7));
}

.streak-reward-day {
  font-size: var(--text-2xs);
  font-weight: var(--weight-extrabold);
  color: rgba(255,255,255,0.28);
}

.streak-reward.is-reached .streak-reward-day {
  color: rgba(255,220,100,0.95);
}

.streak-reward-coins {
  font-size: var(--text-2xs);
  color: rgba(255,255,255,0.2);
  font-weight: var(--weight-bold);
}

.streak-reward.is-reached .streak-reward-coins {
  color: rgba(255,180,60,0.85);
}

.streak-reward-empty {
  color: #999;
  padding: 20px;
  text-align: center;
}

.streak-shield-box {
  background: rgba(77,150,255,0.12);
  border: 1px solid rgba(77,150,255,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.streak-shield-title {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: rgba(255,255,255,0.9);
}

.streak-shield-copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}


/* ── ADMIN PANEL SEARCH ────────────────── */

.admin-search-interface {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-3);
}

.admin-search-toggles {
  display: flex;
  gap: var(--space-2);
}

.admin-search-toggle {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 2px solid var(--parchment);
  background: var(--cream);
  color: var(--bark);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.admin-search-toggle:hover {
  border-color: var(--stone);
}

.admin-search-toggle.is-active {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--white);
}

.admin-search-form {
  display: flex;
  gap: var(--space-2);
}

.admin-search-input {
  flex: 1;
}

.admin-search-input,
.admin-search-input:focus {
  border-color: var(--parchment);
}

.admin-search-form .btn {
  min-width: 120px;
}

.admin-search-results-container {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.admin-loading,
.admin-error,
.admin-no-results {
  padding: var(--space-4) var(--space-3);
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius-md);
  color: var(--stone-dark);
}

.admin-error {
  background: rgba(224, 81, 58, 0.1);
  color: #e0513a;
}

.admin-no-results {
  color: var(--stone);
}

.admin-search-result-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.admin-search-result-card.flagged {
  border: 1.5px solid var(--btn-danger-border);
  background: var(--danger-surface-soft);
}

.admin-search-result-card--bench .admin-bench-card {
  animation: none;
  min-height: 72px;
}

.admin-search-result-card--bench .admin-bench-card .mob-bench-card-thumb-shell {
  width: 52px;
  height: 52px;
}

.admin-result-header {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.admin-result-name {
  font-weight: var(--weight-bold);
  color: var(--bark);
  font-size: var(--text-base);
}

.admin-result-meta {
  font-size: var(--text-sm);
  color: var(--stone);
}

.admin-result-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--stone-dark);
}

.admin-result-flagged {
  color: #e0513a;
  font-weight: var(--weight-semibold);
}

.admin-result-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.admin-result-actions .btn {
  flex: 1;
  min-width: 100px;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  object-fit: cover;
}

.admin-user-avatar.ui-avatar-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  color: var(--white);
}


/* ── BUG REPORT MODAL ────────────────── */

/* Bug report modal form */
#fp-bug .fp-title {
  color: #e0513a;
}

.bug-panel-sub {
  margin-bottom: var(--space-4);
}

.bug-details-counter {
  font-size: var(--text-xs);
  color: var(--stone-dark);
  float: right;
}

.bug-field-optional {
  font-size: var(--text-xs);
  color: var(--stone-dark);
}

.bug-bench-select {
  margin-top: var(--space-2);
}

.bug-modal-actions {
  margin-top: var(--space-4);
}

.form-required {
  color: #e0513a;
  font-weight: var(--weight-bold);
}

.bug-selected-bench {
  margin-top: var(--space-2);
}

.bug-selected-item {
  padding: var(--space-2) var(--space-3);
  background: rgba(31,125,62,0.1);
  border: 1px solid rgba(31,125,62,0.3);
  border-radius: var(--radius-md);
  color: var(--moss);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bug-screenshot-preview {
  margin-top: var(--space-3);
}

.bug-screenshot-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.bug-screenshot-thumb {
  display: block;
  width: 100%;
  max-width: 300px;
  max-height: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--parchment);
  object-fit: contain;
  background: var(--cream);
}

.bug-screenshot-remove {
  display: block;
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(220,53,69,0.15);
  border: 1px solid rgba(220,53,69,0.3);
  border-radius: var(--radius-sm);
  color: #e0513a;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
}

.bug-screenshot-remove:hover {
  background: rgba(220,53,69,0.3);
}

/* ── DB DIAGNOSTICS PANEL ───────────────── */

.bm-diag {
  position: fixed;
  top: 60px;
  left: 8px;
  z-index: 99999;
  background: rgba(8,10,20,0.95);
  color: #d4d4d4;
  font: 12px/1.5 "Onest", sans-serif;
  border: 1px solid #2a2d40;
  border-radius: 12px;
  width: min(96vw, 560px);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 36px rgba(0,0,0,.75);
  touch-action: none;
}

.bm-diag-head {
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2a2d40;
  cursor: grab;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,0.03);
  -webkit-user-select: none;
  user-select: none;
}

.bm-diag-title {
  color: #7cf;
  font-weight: 700;
  font-size: 14px;
}

.bm-diag-counts {
  flex: 1;
  font-size: 12px;
  letter-spacing: .02em;
}

.bm-diag-btn {
  all: unset;
  cursor: pointer;
  color: #fff;
  font-size: 12px;
  padding: 3px 7px;
  border: 1px solid #3a3d55;
  border-radius: 4px;
  line-height: 1.6;
}

.bm-diag-btn.is-min {
  font-size: 16px;
  padding: 0 8px;
  line-height: 1.5;
}

.bm-diag-docs {
  padding: 5px 12px;
  border-bottom: 1px solid #2a2d40;
  font-size: 11.5px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.02);
}

.bm-diag-cache {
  padding: 5px 12px;
  border-bottom: 1px solid #2a2d40;
  font-size: 11.5px;
  background: rgba(255,255,255,0.01);
}

.bm-diag-body {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.bm-diag-pill.is-read, .bm-diag-doc.is-read { color: #4db; }
.bm-diag-pill.is-write, .bm-diag-doc.is-write { color: #f77; }
.bm-diag-pill.is-delete, .bm-diag-doc.is-delete { color: #f84; }
.bm-diag-pill.is-count { color: #9af; }
.bm-diag-pill.is-worker { color: #fa0; }
.bm-diag-pill.is-event { color: #adf; }
.bm-diag-doc.is-label { color: #aaa; }
.bm-diag-doc.is-total { color: #fff; font-weight: 700; }

.bm-diag-row {
  padding: 2px 10px;
  border-bottom: 1px solid #10121c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-diag-row.is-slow { background: rgba(255,160,0,0.07); }
.bm-diag-row.is-very-slow { background: rgba(255,60,60,0.08); }
.bm-diag-time { color: #ccc; }
.bm-diag-type { font-weight: 700; }
.bm-diag-type.is-read { color: #4db; }
.bm-diag-type.is-write { color: #f77; }
.bm-diag-type.is-delete { color: #f84; }
.bm-diag-type.is-count { color: #9af; }
.bm-diag-type.is-worker { color: #fa0; }
.bm-diag-type.is-event { color: #adf; }
.bm-diag-label { color: #ccc; }
.bm-diag-caller { color: #ccc; }
.bm-diag-ms { color: #888; }
.bm-diag-ms.is-warm { color: #fe8; }
.bm-diag-ms.is-slow { color: #fa0; }
.bm-diag-ms.is-very-slow { color: #f55; }

.bm-diag-cache-empty { color: #555; }
.bm-diag-cache-row { margin-bottom: 3px; }
.bm-diag-cache-part.is-label { color: #aaa; }
.bm-diag-cache-part.is-default { color: #ccc; }
.bm-diag-cache-part.is-count { color: #9af; }
.bm-diag-cache-part.is-media { color: #9cf; }
.bm-diag-cache-part.is-ls { color: #777; }
.bm-diag-cache-part.is-ref { color: #777; }
.bm-diag-cache-part.is-ok { color: #7cf; }
.bm-diag-cache-part.is-warn { color: #fa0; }
.bm-diag-cache-part.is-danger { color: #f77; }
.bm-diag-cache-keys {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  white-space: normal;
}
.bm-diag-cache-key.is-ok { color: #9af; }
.bm-diag-cache-key.is-warn { color: #fa0; }
.bm-diag-cache-key.is-danger { color: #f77; }
