/* Dashboards hub mockup.
   Tokens from live nickdrake.ai everyday.css. Card layout matches
   the Today "What's Next" feature card. */

:root {
  color-scheme: dark;
  --ev-canvas: #07080a;
  --ev-card: #14171b;
  --ev-ink: #f6f3ee;
  --ev-muted: #a39e94;
  --ev-line: rgba(255, 244, 230, 0.08);
  --ev-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 40px rgba(0, 0, 0, 0.35);
  --ev-shadow-lift: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 48px rgba(0, 0, 0, 0.45);
  --ev-fill: #f4f1ea;
  --ev-fill-text: #14120f;
  --ev-action: #d5202a;
  --ev-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  --glow-strength: 34%;
  --pad-x: 16px;
  --content-max: 640px;
  --title-size: 34px;
  --title-leading: 1.05;
}

.accent-weekend {
  --accent: #d5202a;
  --accent-label: #dc4e55;
}
.accent-teams {
  --accent: #d5202a;
  --accent-label: #dc4e55;
}
.accent-groups {
  --accent: #d5202a;
  --accent-label: #dc4e55;
}
.accent-steps {
  --accent: #d5202a;
  --accent-label: #dc4e55;
}
.accent-baptisms {
  --accent: #1c6b66;
  --accent-label: #4e8a85;
}
.accent-guests {
  --accent: #d5202a;
  --accent-label: #dc4e55;
}
.accent-outreach {
  --accent: #3c78b4;
  --accent-label: #4d83b9;
}
.accent-next-steps {
  --accent: #3f4f7a;
  --accent-label: #747f9c;
}
.accent-kids {
  --accent: #3d6b4f;
  --accent-label: #648870;
}
.accent-data {
  --accent: #5c6570;
  --accent-label: #7b8189;
}

/* Light tokens: explicit Light, or System when the OS is light.
   data-theme="dark" keeps the :root dark tokens, even if the OS is light. */
html[data-theme="light"] {
  color-scheme: light;
  --ev-canvas: #f3f1ec;
  --ev-card: #fffcf8;
  --ev-ink: #1c1915;
  --ev-muted: #6f6a62;
  --ev-line: rgba(40, 32, 20, 0.08);
  --ev-shadow: 0 1px 3px rgba(40, 32, 20, 0.05), 0 10px 28px rgba(40, 32, 20, 0.05);
  --ev-shadow-lift: 0 2px 6px rgba(40, 32, 20, 0.07), 0 16px 36px rgba(40, 32, 20, 0.08);
  --ev-fill: #1c1915;
  --ev-fill-text: #fffaf3;
  --glow-strength: 18%;
  --ev-up: #1b7a45;
  --ev-down: #b54a3c;
  --ev-live: #1b7a45;
  --ev-salv: #d5202a;
}
html[data-theme="light"] .accent-weekend { --accent-label: #d5202a; }
html[data-theme="light"] .accent-teams { --accent-label: #d5202a; }
html[data-theme="light"] .accent-groups { --accent-label: #d5202a; }
html[data-theme="light"] .accent-steps { --accent-label: #d5202a; }
html[data-theme="light"] .accent-baptisms { --accent-label: #1c6b66; }
html[data-theme="light"] .accent-guests { --accent-label: #d5202a; }
html[data-theme="light"] .accent-outreach { --accent-label: #3c78b4; }
html[data-theme="light"] .accent-next-steps { --accent-label: #3f4f7a; }
html[data-theme="light"] .accent-kids { --accent-label: #3d6b4f; }
html[data-theme="light"] .accent-data { --accent-label: #5c6570; }

@media (prefers-color-scheme: light) {
  html[data-theme="system"],
  html:not([data-theme]) {
    color-scheme: light;
    --ev-canvas: #f3f1ec;
    --ev-card: #fffcf8;
    --ev-ink: #1c1915;
    --ev-muted: #6f6a62;
    --ev-line: rgba(40, 32, 20, 0.08);
    --ev-shadow: 0 1px 3px rgba(40, 32, 20, 0.05), 0 10px 28px rgba(40, 32, 20, 0.05);
    --ev-shadow-lift: 0 2px 6px rgba(40, 32, 20, 0.07), 0 16px 36px rgba(40, 32, 20, 0.08);
    --ev-fill: #1c1915;
    --ev-fill-text: #fffaf3;
    --glow-strength: 18%;
    --ev-up: #1b7a45;
    --ev-down: #b54a3c;
    --ev-live: #1b7a45;
    --ev-salv: #d5202a;
  }
  html[data-theme="system"] .accent-weekend,
  html:not([data-theme]) .accent-weekend { --accent-label: #d5202a; }
  html[data-theme="system"] .accent-teams,
  html:not([data-theme]) .accent-teams { --accent-label: #d5202a; }
  html[data-theme="system"] .accent-groups,
  html:not([data-theme]) .accent-groups { --accent-label: #d5202a; }
  html[data-theme="system"] .accent-steps,
  html:not([data-theme]) .accent-steps { --accent-label: #d5202a; }
  html[data-theme="system"] .accent-baptisms,
  html:not([data-theme]) .accent-baptisms { --accent-label: #1c6b66; }
  html[data-theme="system"] .accent-guests,
  html:not([data-theme]) .accent-guests { --accent-label: #d5202a; }
  html[data-theme="system"] .accent-outreach,
  html:not([data-theme]) .accent-outreach { --accent-label: #3c78b4; }
  html[data-theme="system"] .accent-next-steps,
  html:not([data-theme]) .accent-next-steps { --accent-label: #3f4f7a; }
  html[data-theme="system"] .accent-kids,
  html:not([data-theme]) .accent-kids { --accent-label: #3d6b4f; }
  html[data-theme="system"] .accent-data,
  html:not([data-theme]) .accent-data { --accent-label: #5c6570; }
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--ev-canvas);
  color: var(--ev-ink);
  font-family: var(--ev-font);
  font-size: 14px;
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ev-fill);
  color: var(--ev-fill-text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  top: calc(8px + env(safe-area-inset-top, 0px));
}

.page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--pad-x) calc(48px + env(safe-area-inset-bottom, 0px));
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 22px;
  padding: 4px 2px 0;
  padding-right: 52px;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.page-title {
  margin: 0;
  font-size: var(--title-size);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--title-leading);
  color: var(--ev-ink);
}

.page-kicker {
  margin: 0 0 2px;
}

.pilot-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ev-action);
  color: #fffaf3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.page-sub {
  margin: 0;
  max-width: 36em;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1.35;
  color: var(--ev-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: -8px 0 4px -6px;
  margin-right: 52px;
  padding: 0 8px 0 4px;
  border-radius: 10px;
  color: var(--ev-muted);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.014em;
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.back-link:hover {
  color: var(--ev-ink);
}

.back-link:focus-visible {
  outline: 2px solid var(--ev-fill);
  outline-offset: 2px;
}

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.dash-list > li {
  display: flex;
  min-width: 0;
  align-items: stretch;
}

.dash-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  padding: 18px 18px 16px;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ev-card);
  box-shadow: var(--ev-shadow);
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dash-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -50px;
  top: -80px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) var(--glow-strength), transparent), transparent 68%);
  pointer-events: none;
}

.dash-card-icon,
.dash-card-copy {
  position: relative;
  z-index: 1;
}

.dash-card-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
}

.dash-card-icon svg {
  width: 18px;
  height: 18px;
}

.dash-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.dash-card-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-label);
  line-height: 1.2;
}

.dash-card-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ev-ink);
}

.dash-card-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ev-muted);
}

.dash-card:focus-visible {
  outline: 2px solid var(--ev-fill);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .dash-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .dash-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ev-shadow-lift);
  }

  .dash-card:active {
    transform: translateY(0);
    box-shadow: var(--ev-shadow);
  }
}

.placeholder-status {
  margin: 0 0 22px;
}

.status-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ev-muted);
}

.status-lead {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1.35;
  color: var(--ev-muted);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.skeleton-tile.skeleton-extra {
  display: none;
}

.skeleton-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ev-card);
  box-shadow: var(--ev-shadow);
  min-height: 96px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-wide {
  grid-column: 1 / -1;
  min-height: 180px;
}

.skeleton-list {
  grid-column: 1 / -1;
  min-height: 168px;
  gap: 14px;
  padding: 16px 16px 14px;
}

.skel-line,
.skel-block,
.skel-row {
  display: block;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ev-ink) 8%, var(--ev-card));
}

.skel-line {
  height: 10px;
  width: 42%;
}

.skel-line.w-24 { width: 24%; }
.skel-line.w-36 { width: 36%; }
.skel-line.w-56 { width: 56%; }
.skel-line.w-72 { width: 72%; }

.skel-block {
  flex: 1 1 auto;
  min-height: 64px;
  border-radius: 12px;
  width: 100%;
}

.skel-row {
  height: 14px;
  width: 100%;
  border-radius: 7px;
}

.skel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

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

.skel-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ev-ink) 10%, var(--ev-card));
}

.skel-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    color-mix(in srgb, var(--ev-ink) 6%, transparent) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (min-width: 744px) {
  :root {
    --pad-x: 28px;
    --content-max: 1080px;
    --title-size: 28px;
    --title-leading: 1.1;
  }

  .page {
    padding-top: calc(36px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .page-header {
    margin-bottom: 28px;
  }

  .dash-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .skeleton-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }

  .skeleton-tile.skeleton-extra {
    display: flex;
  }

  .skeleton-wide,
  .skeleton-list {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .page {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-card,
  .skel-shimmer::after {
    transition: none;
    animation: none;
  }

  .dash-card:hover,
  .dash-card:active {
    transform: none;
  }

  .skel-shimmer::after {
    content: none;
  }
}

.nowrap {
  white-space: nowrap;
}

/* Attendance snapshot page */
:root {
  --ev-up: #3ccf7a;
  --ev-down: #e07a6a;
  --ev-live: #30d158;
  --ev-salv: #dc4e55;
}

.as-of { margin: 4px 0 0; font-size: 13px; font-weight: 500; color: var(--ev-muted); }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--ev-live) 16%, transparent);
  color: var(--ev-live); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3;
}
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ev-live); }
.att-stack { display: flex; flex-direction: column; gap: 14px; }
.att-card {
  position: relative; overflow: hidden; padding: 18px 18px 16px;
  border-radius: 24px; background: var(--ev-card); box-shadow: var(--ev-shadow);
}
.att-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -50px; top: -80px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, #d5202a) var(--glow-strength), transparent), transparent 68%);
  pointer-events: none;
}
.att-card > * { position: relative; z-index: 1; }
.att-card-kicker {
  margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-label); line-height: 1.2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.att-hero-value { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.att-hero-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--ev-muted); }
.att-delta-up { color: var(--ev-up); font-weight: 650; }
.att-delta-down { color: var(--ev-down); font-weight: 650; }
.att-delta-flat { color: var(--ev-muted); font-weight: 650; }
.att-salv { color: var(--ev-salv); font-weight: 650; }
.att-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.att-metric { padding: 12px 12px 10px; border-radius: 16px; background: color-mix(in srgb, var(--ev-ink) 5%, var(--ev-card)); }
.att-metric-label { margin: 0 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ev-muted); }
.att-metric-value { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.att-metric-sub { margin: 2px 0 0; font-size: 12px; color: var(--ev-muted); }
.att-note { margin: 12px 0 0; font-size: 13px; color: var(--ev-muted); line-height: 1.4; }
.att-loc-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.att-loc-card { padding: 14px 16px 12px; border-radius: 24px; background: var(--ev-card); box-shadow: var(--ev-shadow); }
.att-loc-name { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-label); }
.att-loc-total { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.att-loc-break { margin: 4px 0 0; font-size: 12.5px; color: var(--ev-muted); font-variant-numeric: tabular-nums; }
.att-spark { width: 100%; height: auto; display: block; overflow: visible; }
.att-spark-line { stroke: #d5202a; stroke-width: 2.5; }
.att-spark-area { fill: color-mix(in srgb, #d5202a 18%, transparent); }
.att-chart-val { fill: var(--ev-ink); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.att-chart-lbl { fill: var(--ev-muted); font-size: 10px; font-weight: 600; }
.att-switcher { position: relative; }
.att-switcher > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.att-switcher-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.att-switcher-tabs label {
  cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ev-line);
  background: var(--ev-card); color: var(--ev-ink); font-size: 13px; font-weight: 650;
  min-height: 36px; display: inline-flex; align-items: center;
}
.att-panel { display: none; }
#att-loc-all:checked ~ .att-panel-all,
#att-loc-wp:checked ~ .att-panel-wp,
#att-loc-ov:checked ~ .att-panel-ov,
#att-loc-sf:checked ~ .att-panel-sf,
#att-loc-ws:checked ~ .att-panel-ws,
#att-loc-hw:checked ~ .att-panel-hw { display: block; }
#att-loc-all:checked ~ .att-switcher-tabs label[for="att-loc-all"],
#att-loc-wp:checked ~ .att-switcher-tabs label[for="att-loc-wp"],
#att-loc-ov:checked ~ .att-switcher-tabs label[for="att-loc-ov"],
#att-loc-sf:checked ~ .att-switcher-tabs label[for="att-loc-sf"],
#att-loc-ws:checked ~ .att-switcher-tabs label[for="att-loc-ws"],
#att-loc-hw:checked ~ .att-switcher-tabs label[for="att-loc-hw"] {
  background: var(--ev-fill); color: var(--ev-fill-text); border-color: var(--ev-fill);
}
.att-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 24px; background: var(--ev-card); box-shadow: var(--ev-shadow); }
.att-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; min-width: 520px; }
.att-table th, .att-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--ev-line); white-space: nowrap; }
.att-table th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ev-muted); background: color-mix(in srgb, var(--ev-ink) 4%, var(--ev-card));
}
.att-table th:first-child, .att-table td:first-child { text-align: left; font-weight: 650; position: sticky; left: 0; background: var(--ev-card); z-index: 1; }
.att-table th:first-child { background: color-mix(in srgb, var(--ev-ink) 4%, var(--ev-card)); }
.att-table .att-total { font-weight: 700; }
.att-table .att-salv-cell { color: var(--ev-salv); font-weight: 700; }
.att-table tr.att-live td, .att-table tr.att-live td:first-child { background: color-mix(in srgb, var(--ev-live) 8%, var(--ev-card)); }
.att-table tr.att-avg td, .att-table tr.att-avg td:first-child { background: color-mix(in srgb, var(--ev-ink) 5%, var(--ev-card)); font-weight: 650; }
.att-table tr.att-avg td:first-child { letter-spacing: 0.04em; font-size: 11px; text-transform: uppercase; }
.att-table .att-muted { color: var(--ev-muted); font-weight: 500; }
.att-table-wide { min-width: 980px; font-size: 12px; }
.att-table-wide th.group { text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; border-bottom: 0; padding-bottom: 2px; }
.att-footnote { margin: 8px 2px 0; font-size: 12px; color: var(--ev-muted); line-height: 1.4; }
.att-section-title { margin: 8px 2px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.att-more { margin: 10px 0 0; }
.att-more summary { cursor: pointer; font-weight: 650; color: var(--ev-ink); padding: 8px 2px; min-height: 44px; display: flex; align-items: center; }
@media (min-width: 744px) {
  .att-metrics { grid-template-columns: repeat(4, 1fr); }
  .att-loc-grid { grid-template-columns: 1fr 1fr; }
  .att-hero-value { font-size: 52px; }
}
@media (min-width: 1100px) {
  .att-loc-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Settings button and appearance menu */
.site-tools {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: calc(var(--pad-x) + env(safe-area-inset-right, 0px));
  z-index: 40;
}
@media (min-width: 744px) {
  .site-tools {
    right: max(
      calc(var(--pad-x) + env(safe-area-inset-right, 0px)),
      calc((100vw - var(--content-max)) / 2 + var(--pad-x))
    );
  }
}

.settings-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--ev-card);
  box-shadow: var(--ev-shadow);
  color: var(--ev-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
}
.settings-btn svg {
  width: 20px;
  height: 20px;
}
.settings-btn:hover,
.settings-btn[aria-expanded="true"] {
  color: var(--ev-ink);
}
.settings-btn:focus-visible {
  outline: 2px solid var(--ev-fill);
  outline-offset: 2px;
}

.settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(260px, calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  padding: 16px 16px 14px;
  border-radius: 24px;
  background: var(--ev-card);
  box-shadow: var(--ev-shadow-lift);
  color: var(--ev-ink);
}
.settings-menu[hidden] {
  display: none;
}

.settings-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ev-muted);
  line-height: 1.2;
}

.theme-seg {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ev-ink) 6%, var(--ev-card));
}
.theme-opt {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: var(--ev-muted);
  text-align: center;
}
.theme-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}
.theme-opt:has(input:checked) {
  background: var(--ev-fill);
  color: var(--ev-fill-text);
  box-shadow: var(--ev-shadow);
}
.theme-opt:has(input:focus-visible) {
  outline: 2px solid var(--ev-fill);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .settings-btn {
    transition: color 180ms ease, box-shadow 180ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-btn {
    transition: none;
  }
}

/* Hub main page: neutral dashboard cards (Nov 18). Scoped to .dash-list so
   dashboard pages are untouched. Icon tile keeps its own color. */
.dash-list .dash-card::after {
  content: none;
  background: none;
}

.dash-list .dash-card-kicker {
  color: var(--ev-muted);
}

.dash-list .dash-card {
  border: 1px solid var(--ev-line);
}

/* Dashboard pages: neutral cards (Nov 18). Same treatment as the hub list above, for every card a
   dashboard page uses: no radial glow, 1px line border, muted kicker labels. Icon tiles keep their color. */
.dash-card::after,
.att-card::after {
  content: none;
  background: none;
}

.dash-card,
.att-card,
.att-loc-card,
.att-table-wrap {
  border: 1px solid var(--ev-line);
}

.dash-card .dash-card-kicker,
.att-card-kicker,
.att-loc-name {
  color: var(--ev-muted);
}
