:root {
  --red: #c8102e;
  --red-dark: #9a0c23;
  --gold: #ffd200;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5b6572;
  --border: #e3e6ea;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --radius-sm: 10px;

  /* Liquid-glass tokens */
  --glass-bg:        rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-bg-soft:   rgba(255, 255, 255, 0.38);
  --glass-border:    rgba(255, 255, 255, 0.7);
  --glass-blur:      saturate(180%) blur(22px);
  --glass-blur-lg:   saturate(180%) blur(36px);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -0.5px 0 rgba(20, 30, 60, 0.05),
    0 1px 2px rgba(20, 30, 60, 0.04),
    0 12px 32px -12px rgba(20, 30, 60, 0.18),
    0 4px 16px -6px rgba(20, 30, 60, 0.12);
  --glass-shadow-sm:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 2px rgba(20, 30, 60, 0.05),
    0 6px 18px -8px rgba(20, 30, 60, 0.16);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body {
  background: transparent;
  display: flex;
  flex-direction: column;
}
body > main.container { flex: 1 0 auto; max-width: 1040px; width: 100%; }
body > .site-footer { margin-top: auto; flex-shrink: 0; }

/* Soft ambient field — gives the frosted panels something subtle to refract.
 * Pastel-only, low opacity, no rainbow. */
body::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 50% at 10% 10%, rgba(255, 225, 200, 0.55), transparent 65%),
    radial-gradient(50% 45% at 92% 18%, rgba(245, 215, 220, 0.42), transparent 65%),
    radial-gradient(60% 55% at 22% 92%, rgba(215, 225, 245, 0.45), transparent 65%),
    radial-gradient(50% 45% at 90% 88%, rgba(225, 230, 240, 0.40), transparent 65%),
    var(--bg);
  filter: saturate(105%);
  animation: glass-drift 36s ease-in-out infinite alternate;
}

@keyframes glass-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-1%, 0.6%, 0) scale(1.02); }
  100% { transform: translate3d(1%, -0.6%, 0) scale(1.01); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Apple-glass boot loader — visible until JS sets the auth class on body. */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background:
    radial-gradient(55% 50% at 10% 10%, rgba(255, 225, 200, 0.55), transparent 65%),
    radial-gradient(50% 45% at 92% 18%, rgba(245, 215, 220, 0.42), transparent 65%),
    radial-gradient(60% 55% at 22% 92%, rgba(215, 225, 245, 0.45), transparent 65%),
    radial-gradient(50% 45% at 90% 88%, rgba(225, 230, 240, 0.40), transparent 65%),
    var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.boot-glass {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  backdrop-filter: var(--glass-blur-lg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--glass-shadow);
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  isolation: isolate;
}
.boot-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 55%);
  mix-blend-mode: overlay;
  opacity: 0.7;
}
.boot-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(20, 30, 60, 0.10);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: boot-spin 0.85s linear infinite;
}
.boot-label {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.2px;
}
@keyframes boot-spin {
  to { transform: rotate(360deg); }
}
body.signed-in .boot-loader,
body.signed-out .boot-loader {
  opacity: 0;
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .boot-spinner { animation-duration: 1.6s; }
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }

/* Header — solid Cardinal red */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(154, 12, 35, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.brand h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 0.2px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.brand .tagline {
  margin: 2px 0 0;
  font-size: 0.9rem;
  opacity: 0.92;
}
.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-btn {
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease, color 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 14px -6px rgba(0, 0, 0, 0.25);
}
.nav-btn:active { transform: translateY(1px); }
.nav-btn.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red-dark);
  border-color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 16px -6px rgba(0, 0, 0, 0.25);
}
/* Hide auth-dependent nav items by default so they don't flash on
 * first paint before JS finishes booting. Body starts without any
 * auth class; boot() sets signed-in/signed-out once it's decided. */
.auth-only  { display: none; }
.guest-only { display: none; }
body.signed-in  .auth-only  { display: inline-block; }
body.signed-out .guest-only { display: inline-block; }
.admin-only { display: none !important; }
body.admin.signed-in .admin-only { display: inline-block !important; }
body.signed-out main.container { padding-top: 48px; }
body.signed-out .ad-card { margin-bottom: 48px; }
.optional-tag { color: var(--muted); font-weight: 400; font-size: 0.85em; margin-left: 4px; }

/* Panels — frosted glass */
main.container { padding: 26px 20px 40px; }
.panel, .view {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  margin-bottom: 22px;
  isolation: isolate;
}
/* A faint top-edge highlight so the panel reads as a glass slab */
.panel::before, .view::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent 45%);
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.view-head h2 { margin: 0 0 4px; font-size: 1.2rem; }
.view-head p { margin: 0; }

/* Forms */
.stacked-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}
.stacked-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}
.stacked-form input,
.stacked-form select,
.stacked-form textarea {
  font: inherit;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(20, 30, 60, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.stacked-form input:focus,
.stacked-form select:focus,
.stacked-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--red);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 3px rgba(200, 16, 46, 0.18);
}
.stacked-form small { color: var(--muted); font-size: 0.8rem; }
.stacked-form .checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
}
.stacked-form .checkbox input { width: auto; margin-top: 3px; }

.s-input {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(20, 30, 60, 0.04);
}
.s-input .s-prefix {
  background: rgba(240, 241, 243, 0.7);
  color: var(--muted);
  padding: 10px 12px;
  border-right: 1px solid var(--border);
  font-weight: 600;
}
.s-input input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  flex: 1;
  box-shadow: none !important;
}

button.primary {
  background: linear-gradient(180deg, #d81d3a, var(--red-dark));
  color: #fff;
  border: 0;
  padding: 11px 18px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 6px 18px -6px rgba(154, 12, 35, 0.5);
  transition: transform 0.1s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
button.primary:hover {
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 10px 24px -8px rgba(154, 12, 35, 0.6);
}
button.primary:active { transform: translateY(1px); }
button.primary:disabled { opacity: 0.55; cursor: not-allowed; filter: saturate(0.7); }

.text-btn {
  background: transparent;
  border: 0;
  color: var(--red);
  cursor: pointer;
  font: inherit;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.text-btn:hover { text-decoration: underline; background: rgba(200, 16, 46, 0.06); }
.text-btn.danger { color: #a22; }

.icon-btn {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: var(--glass-shadow-sm);
  transition: background 0.15s, transform 0.1s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.92); }
.icon-btn:active { transform: translateY(1px); }

.row-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Filters */
.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}
.filter-row select {
  padding: 8px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background 0.15s, border-color 0.15s;
}
.filter-row select:hover { background: rgba(255, 255, 255, 0.92); }
.filter-row select:focus { outline: none; border-color: var(--red); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 3px rgba(200, 16, 46, 0.18); }

/* Calendar */
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px;
}
.cal-label { font-weight: 600; font-size: 1.05rem; }
.calendar-grid-head {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 2px 6px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.cal-day {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  min-height: 84px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font: inherit;
  color: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(20, 30, 60, 0.04);
  transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.15s ease, background 0.18s ease;
}
.cal-day:hover {
  border-color: rgba(200, 16, 46, 0.55);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 8px 20px -8px rgba(154, 12, 35, 0.25);
}
.cal-day.empty { cursor: default; opacity: 0.45; }
.cal-day.empty:hover { border-color: var(--border); }
.cal-day.today { outline: 2px solid var(--gold); }
.cal-day .date-num {
  font-weight: 600;
  font-size: 0.95rem;
}
.cal-day .count-pill {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  align-self: flex-start;
}
.cal-day.has-none .count-pill { display: none; }
.cal-day .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: auto;
}
.tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef0f3;
  color: var(--text);
  border: 1px solid var(--border);
}
.tag.morning { background: #fff6d9; border-color: #f1e3a3; }
.tag.afternoon { background: #e7efff; border-color: #c4d4ef; }

/* Day detail */
.day-detail {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.day-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.day-detail-head h3 { margin: 0; font-size: 1.05rem; }

/* Block list */
.block-list {
  display: grid;
  gap: 10px;
}
.block-card {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--glass-shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.12s ease;
}
.block-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(20, 30, 60, 0.05),
    0 12px 28px -10px rgba(20, 30, 60, 0.18);
}
.block-card .meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}
.block-card .meta .title {
  font-weight: 600;
}
.block-card .meta .sub {
  color: var(--muted);
  font-size: 0.88rem;
}
.block-card .contact {
  font-size: 0.9rem;
}
.block-card .contact a { color: var(--red); text-decoration: none; }
.block-card .contact a:hover { text-decoration: underline; }
.block-card .notes {
  width: 100%;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}
.block-card .actions { display: flex; gap: 8px; }

.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* PerioMaxer ad — dark glass */
.ad-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(27, 31, 36, 0.92), rgba(42, 51, 64, 0.88)),
    radial-gradient(120% 200% at 0% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 30px -12px rgba(20, 30, 60, 0.35);
}
.ad-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
}
.ad-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ad-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}
.ad-title { font-size: 1.1rem; font-weight: 700; }
.ad-sub { font-size: 0.88rem; opacity: 0.9; }

/* Schedule view */
.subpanel {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}
.subpanel:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.subpanel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.subpanel p.small,
.subpanel .small { font-size: 0.85rem; }

.import-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.import-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 12px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.import-tab.active {
  color: var(--text);
  border-bottom-color: var(--red);
  font-weight: 600;
}
.import-pane textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font: 0.88rem ui-monospace, Menlo, Consolas, monospace;
  resize: vertical;
  min-height: 120px;
}
.import-pane input[type="file"] {
  display: block;
  margin: 8px 0;
}

/* Drop zone */
@keyframes dropzone-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); }
}
@keyframes dropzone-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.drop-zone {
  position: relative;
  border: 2px dashed rgba(91, 101, 114, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin: 12px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.drop-zone:hover {
  border-color: var(--red);
  background: rgba(255, 245, 246, 0.6);
  transform: scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 24px -8px rgba(154, 12, 35, 0.25);
}
.drop-zone.drag-over {
  border-color: var(--red);
  background: rgba(255, 240, 242, 0.7);
  transform: scale(1.03);
  animation: dropzone-pulse 1.2s ease-in-out infinite;
}
.drop-zone input[type="file"] {
  display: none;
}
.drop-zone-inner {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.drop-zone-icon {
  width: 52px;
  height: 52px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  margin-bottom: 4px;
}
.drop-zone:hover .drop-zone-icon,
.drop-zone.drag-over .drop-zone-icon {
  color: var(--red);
  animation: dropzone-bounce 0.7s ease-in-out infinite;
}
.drop-zone-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.drop-zone-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.drop-zone-browse {
  background: none;
  border: none;
  color: var(--red);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
}

.example-screenshot {
  margin: 4px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px 14px;
}
.example-screenshot > summary {
  cursor: pointer;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
}
.example-screenshot > summary::-webkit-details-marker { display: none; }
.example-screenshot > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
.example-screenshot[open] > summary::before { content: "▾ "; }
.example-screenshot[open] > summary { margin-bottom: 8px; }
.example-screenshot-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.example-screenshot-tips {
  margin: 6px 0 0;
  padding-left: 20px;
}
.example-screenshot-tips li { margin-bottom: 4px; }

.checkbox.inline {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text);
}
.checkbox.inline input { width: auto; margin: 0; }

.schedule-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 130px 110px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.schedule-row.posted { background: rgba(253, 245, 230, 0.78); border-color: #f0d9a0; }
.schedule-row.urgent { background: rgba(255, 236, 236, 0.78); border-color: #f2a3a3; }
.schedule-row .sched-date { font-weight: 600; font-size: 0.92rem; }
.schedule-row .sched-time { color: var(--muted); font-size: 0.88rem; }
.schedule-row .sched-desc { font-size: 0.9rem; }
.schedule-row .sched-status { display: flex; gap: 4px; flex-wrap: wrap; }
.schedule-row .sched-actions { display: flex; gap: 8px; align-items: center; }
.schedule-row .posted-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* Done button row in My Blocks edit mode */
.my-blocks-done-row {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}

/* Urgent flag */
.urgent-badge {
  background: #b21a1a;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.urgent-toggle-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1.5px solid #c4848c;
  background: #fff;
  color: #b21a1a;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s, transform 0.1s, border-color 0.15s;
}
.urgent-toggle-btn:hover {
  background: #ffecec;
  border-color: #b21a1a;
}
.urgent-toggle-btn.active {
  background: #b21a1a;
  color: #fff;
  border-color: #b21a1a;
}
.urgent-toggle-btn.active:hover {
  background: #8a1313;
  border-color: #8a1313;
}
.urgent-toggle-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.block-card.urgent {
  border-color: #f2a3a3;
  background: #fff7f7;
}
.block-card .meta .title .urgent-badge {
  vertical-align: 2px;
}

/* Source badges in the admin day-detail (posted vs schedule-only). */
.source-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  vertical-align: 2px;
  text-transform: uppercase;
}
.source-badge.posted {
  background: var(--red);
  color: #fff;
}
.source-badge.schedule {
  background: #eef1f5;
  color: #4a5562;
  border: 1px solid var(--border);
}
.block-card.schedule-only {
  background: #fafbfc;
}

/* Calendar urgent day indicator */
.cal-day.has-urgent { border-color: #e07a7a; }
.cal-day.has-urgent:hover { border-color: #b21a1a; }
.urgent-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #b21a1a;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  margin-left: 4px;
}
@media (max-width: 700px) {
  .schedule-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 4px;
  }
  .schedule-row .sched-desc { grid-column: 1 / -1; }
  .schedule-row .sched-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

#reminder-time-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 240px;
  margin-bottom: 10px;
}
#reminder-time-label input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

/* Procedure Costs */
.costs-search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 320px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.costs-search input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}
.costs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--glass-shadow-sm);
}
.costs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.costs-table thead th {
  text-align: left;
  background: rgba(245, 246, 248, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  color: var(--text);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}
.costs-table th.num,
.costs-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.costs-table td.num.unknown {
  color: var(--muted);
  font-style: italic;
  font-size: 0.85rem;
}
.costs-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.costs-table tbody tr:last-child td { border-bottom: 0; }
.costs-table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.35); }
.costs-table td.code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  white-space: nowrap;
  color: var(--muted);
}
.costs-table td.freq {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
}
.costs-table td.preauth {
  white-space: nowrap;
  color: var(--muted);
}
.pa-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.costs-table td.empty-cell {
  text-align: center;
  padding: 20px;
  color: var(--muted);
}

/* Footer — frosted glass */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
}
.footer-links a:hover { color: var(--red); }

/* Toast — dark glass pill */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(27, 31, 36, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px -8px rgba(0, 0, 0, 0.35);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .brand h1 { font-size: 1.1rem; }
  .cal-day {
    min-height: 64px;
    padding: 4px 5px;
    gap: 3px;
  }
  .cal-day .date-num { font-size: 0.85rem; }
  .cal-day .count-pill {
    padding: 1px 6px;
    font-size: 0.68rem;
    min-width: 18px;
    text-align: center;
  }
  .cal-day .tag { padding: 1px 5px; font-size: 0.6rem; }
  .calendar-grid-head, .calendar-grid { gap: 4px; }
  .calendar-grid-head { font-size: 0.68rem; letter-spacing: 0.3px; padding: 0 0 4px; }
  .urgent-dot { width: 14px; height: 14px; font-size: 0.65rem; margin-left: 2px; }
  .nav-btn { padding: 6px 9px; font-size: 0.85rem; }
  .block-card { padding: 10px 12px; }
  .block-card .meta { min-width: 0; }
}

/* Assist view */
.assist-tabs {
  display: flex;
  gap: 4px;
  margin: 6px 0 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.assist-tab {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 0.92rem;
}
.assist-tab:hover { color: var(--text); }
.assist-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}

.assist-filter-row { margin-bottom: 10px; }

.assist-section { margin-top: 18px; }
.assist-section:first-child { margin-top: 0; }
.assist-section-head {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.assist-section-head::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
  flex-shrink: 0;
}
.assist-section-upcoming .assist-section-head::before { background: #c4d4ef; }
.assist-section-sub { margin: 4px 0 10px; }

.block-card.assist-card .meta .title .proc-pill {
  display: inline-block;
  background: #eef1f5;
  color: #4a5562;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 6px;
  letter-spacing: 0.2px;
  vertical-align: 2px;
  text-transform: uppercase;
}
.block-card.assist-card .chair-pill {
  display: inline-block;
  background: #fff6d9;
  border: 1px solid #f1e3a3;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 2px;
  color: #5b4a00;
}
.block-card.assist-card.scheduled-only {
  background: #fafbfc;
  border-style: dashed;
}
.block-card.assist-card .visibility-note {
  width: 100%;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* Holo Pokémon-card system. CSS vars are driven by JS:
 *   --holo-x / --holo-y  : light source (cursor or scroll progress) in %
 *   --holo-angle         : prismatic-band angle
 *   --holo-conic         : rainbow-band rotation (linear, no center pinch)
 *   --holo-rx / --holo-ry: 3D tilt (rotateY / rotateX) in deg
 *   --holo-glare         : 0..1, intensity of cursor glare spot
 *   --holo-foil          : 0..1, opacity boost when cursor is over the card
 * Layers (bottom to top):
 *   1. element background (gold gradient on the banner)
 *   2. .holo::before      — prismatic band + soft spotlight (screen blend)
 *   3. .holo-foil         — linear rainbow band + diagonal foil stripes (hard-light)
 *   4. .holo-foil::before — sparkle dots, masked to the cursor (screen)
 *   5. .holo-foil::after  — bright cursor glare spot (screen)
 *   6. content
 *   7. .admin-banner::after — diagonal sweep (admin banner only) */
@property --holo-x      { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --holo-y      { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@property --holo-angle  { syntax: '<angle>';      inherits: true; initial-value: 110deg; }
@property --holo-conic  { syntax: '<angle>';      inherits: true; initial-value: 220deg; }
@property --holo-rx     { syntax: '<angle>';      inherits: true; initial-value: 0deg; }
@property --holo-ry     { syntax: '<angle>';      inherits: true; initial-value: 0deg; }
@property --holo-glare  { syntax: '<number>';     inherits: true; initial-value: 0; }
@property --holo-foil   { syntax: '<number>';     inherits: true; initial-value: 0.55; }

.holo {
  position: relative;
  isolation: isolate;
  transform-style: flat;
  transform:
    perspective(900px)
    rotateY(var(--holo-rx, 0deg))
    rotateX(var(--holo-ry, 0deg));
  transform-origin: 50% 50%;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    --holo-glare 0.18s ease,
    --holo-foil 0.25s ease;
  will-change: transform;
}
.holo.is-pressed {
  transition-duration: 0.08s, 0.18s, 0.25s;
  transform:
    perspective(900px)
    rotateY(var(--holo-rx, 0deg))
    rotateX(var(--holo-ry, 0deg))
    scale(0.965);
}
.holo.is-pressed.is-hot {
  --holo-glare: 1.25;
  --holo-foil: 1;
}
.holo.is-hot {
  --holo-glare: 1;
  --holo-foil: 0.9;
}
.holo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      var(--holo-angle, 110deg),
      transparent 22%,
      rgba(255, 220, 130, 0.45) 42%,
      rgba(255, 130, 210, 0.50) 50%,
      rgba(130, 200, 255, 0.45) 58%,
      rgba(170, 255, 210, 0.40) 72%,
      transparent 86%
    ),
    radial-gradient(
      circle at var(--holo-x, 50%) var(--holo-y, 30%),
      rgba(255, 255, 255, 0.30),
      transparent 55%
    );
  mix-blend-mode: screen;
  opacity: 0.95;
  z-index: 0;
}
/* Foil layer: rainbow conic + diagonal foil stripes, masked to a
 * spotlight that follows --holo-x/--holo-y. The mask makes the rainbow
 * read as a real reflection instead of a flat tint, and the diagonal
 * stripes are the foil texture. Selector bumped to .holo > .holo-foil
 * so .admin-banner > * doesn't force it back into the flow. */
.holo > .holo-foil {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  background:
    linear-gradient(
      var(--holo-conic, 220deg),
      hsla(350, 100%, 60%, 0.95) 0%,
      hsla(40,  100%, 60%, 0.95) 14%,
      hsla(140, 100%, 55%, 0.95) 28%,
      hsla(200, 100%, 60%, 0.95) 42%,
      hsla(280, 100%, 65%, 0.95) 57%,
      hsla(330, 100%, 65%, 0.95) 71%,
      hsla(40,  100%, 60%, 0.95) 85%,
      hsla(350, 100%, 60%, 0.95) 100%
    ),
    repeating-linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.0) 0px,
      rgba(255, 255, 255, 0.32) 2px,
      rgba(255, 255, 255, 0.0) 4px,
      rgba(255, 255, 255, 0.0) 9px
    );
  mix-blend-mode: hard-light;
  opacity: var(--holo-foil, 0.55);
  -webkit-mask-image: radial-gradient(
    ellipse 75% 130% at var(--holo-x, 50%) var(--holo-y, 50%),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 25%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0) 95%
  );
  mask-image: radial-gradient(
    ellipse 75% 130% at var(--holo-x, 50%) var(--holo-y, 50%),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 25%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0) 95%
  );
}
.holo-foil::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0.8px,
    transparent 1.6px
  );
  background-size: 22px 22px;
  mix-blend-mode: screen;
  opacity: 0.75;
  -webkit-mask-image: radial-gradient(
    ellipse 60% 60% at var(--holo-x, 50%) var(--holo-y, 50%),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  mask-image: radial-gradient(
    ellipse 60% 60% at var(--holo-x, 50%) var(--holo-y, 50%),
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0) 70%
  );
  animation: holo-sparkle-drift 7s linear infinite;
}
.holo-foil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--holo-x, 50%) var(--holo-y, 50%),
    rgba(255, 255, 255, 0.7),
    transparent 24%
  );
  mix-blend-mode: screen;
  opacity: var(--holo-glare, 0);
}
@keyframes holo-sparkle-drift {
  from { background-position: 0 0; }
  to   { background-position: 22px 22px; }
}
.block-card.assist-card.holo {
  border-color: rgba(255, 195, 80, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(20, 30, 60, 0.05),
    0 8px 22px -10px rgba(255, 170, 60, 0.35),
    0 12px 28px -10px rgba(20, 30, 60, 0.18);
}
.block-card.assist-card.holo.is-hot {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 6px rgba(20, 30, 60, 0.06),
    0 14px 30px -10px rgba(255, 170, 60, 0.55),
    0 18px 36px -10px rgba(20, 30, 60, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .holo {
    transform: none !important;
    transition: none;
  }
  .holo-foil::before { animation: none; }
}

/* Admin signature banner — only on the admin view.
 * Layering: .holo::before adds the scroll/tilt-driven holographic wash;
 * .admin-banner::after adds an always-on diagonal shine sweep so the
 * banner reads as "shiny" even on a static page. Children are bumped
 * above both overlays so text stays crisp. */
.admin-banner {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 195, 80, 0.55);
  background:
    linear-gradient(110deg, #fff7e0 0%, #ffe9b8 25%, #fff2c9 50%, #ffe0b0 75%, #fff7e0 100%);
  background-size: 220% 100%;
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 2px rgba(20, 30, 60, 0.05),
    0 10px 26px -10px rgba(255, 170, 60, 0.55),
    0 14px 30px -10px rgba(20, 30, 60, 0.18);
  text-align: center;
  animation: admin-banner-bg 8s ease-in-out infinite;
}
.admin-banner > * {
  position: relative;
  z-index: 2;
}
.admin-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.85) 49%,
    rgba(255, 240, 200, 0.7) 51%,
    transparent 65%
  );
  transform: translateX(-130%);
  mix-blend-mode: screen;
  animation: admin-banner-shine 4.5s ease-in-out infinite;
  z-index: 1;
}
@keyframes admin-banner-shine {
  0%   { transform: translateX(-130%); }
  55%  { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
@keyframes admin-banner-bg {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.admin-banner-line {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text);
}
.admin-banner-line a {
  color: var(--red);
  text-decoration: none;
}
.admin-banner-line a:hover { text-decoration: underline; }
.admin-banner-name {
  margin-top: 4px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(110deg, #b8860b 0%, #d4af37 25%, #fff1b0 45%, #fff7d6 50%, #fff1b0 55%, #d4af37 75%, #b8860b 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: admin-banner-gold 5s ease-in-out infinite;
}
@keyframes admin-banner-gold {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-banner,
  .admin-banner::after,
  .admin-banner-name { animation: none; }
}

/* Admin view */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.admin-tab {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
.admin-tools { margin-left: auto; display: flex; gap: 8px; }

.admin-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.admin-stat {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--glass-shadow-sm);
}
.admin-stat span { font-size: 1.35rem; font-weight: 700; }
.admin-stat small { color: var(--muted); font-size: 0.78rem; }

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-user-row {
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  overflow: hidden;
  box-shadow: var(--glass-shadow-sm);
}
.admin-user-row.expanded { border-color: var(--red); }
.admin-user-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  flex-wrap: wrap;
}
.admin-user-main:hover { background: #fafbfc; }
.admin-user-name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.admin-user-name .small { font-weight: 400; font-size: 0.82rem; }
.admin-user-meta {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.admin-user-detail {
  padding: 0 14px 14px 14px;
  border-top: 1px dashed var(--border);
  display: none;
}
.admin-user-row.expanded .admin-user-detail { display: block; }
.admin-user-detail-section { margin-top: 10px; font-size: 0.9rem; }
.admin-list { margin: 4px 0 0; padding-left: 18px; font-size: 0.88rem; }
.admin-list li { margin: 2px 0; }

.small { font-size: 0.82rem; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #b3b9c3;
  display: inline-block;
}
.status-dot.online { background: #2fa84f; box-shadow: 0 0 0 3px rgba(47, 168, 79, 0.18); }

@media (max-width: 600px) {
  .admin-stats { gap: 6px; }
  .admin-stat { min-width: 90px; padding: 8px 10px; }
  .admin-stat span { font-size: 1.1rem; }
  .admin-user-meta { gap: 8px; font-size: 0.78rem; }
  .admin-tools { margin-left: 0; }
}
