@font-face {
  font-family: "Inter Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --tblr-font-sans-serif: "Inter Var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --app-brand: #206bc4;
}

/* Top loading bar shown during htmx navigation */
.page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000;
  background: var(--tblr-primary); opacity: 0; transition: width .4s ease, opacity .3s ease;
}
.page-progress.htmx-request { width: 85%; opacity: 1; transition: width 2s cubic-bezier(.1,.7,.3,1), opacity .1s; }

#app-main { min-height: 60vh; }
#app-main.htmx-swapping { opacity: .4; transition: opacity .12s; }
#app-main.htmx-settling > * { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* The two organisation logos (layouts/partials/brand_logos.php). A white pill keeps the
   black VMMC logo visible on the dark admin sidebar. */
.brand-logos {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: #fff; border-radius: 10px; padding: 4px 8px;
  box-shadow: 0 0 0 1px rgba(24, 36, 51, .08);
}
.brand-logos img { height: 40px; width: auto; display: block; object-fit: contain; }
.brand-logos-divider { width: 1px; align-self: stretch; margin: 2px 0; background: rgba(24, 36, 51, .15); }
/* Status page: the complainant's own note */
.track-note { background: var(--tblr-bg-surface-secondary, #f6f8fb); border-left: 3px solid var(--tblr-primary); border-radius: 6px; padding: .6rem .8rem; overflow-wrap: anywhere; }

/* My complaints (phones): tappable cards; long descriptions cut to two lines */
.my-complaint { border: 1px solid var(--tblr-border-color); transition: border-color .15s, box-shadow .15s; }
.my-complaint:active, .my-complaint:hover { border-color: var(--tblr-primary); box-shadow: 0 2px 8px rgba(24, 36, 51, .08); }
.my-complaint-clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* The header's Sign in / Dashboard slot: a wrapper htmx can replace, laid out as if absent */
#nav-account { display: contents; }
/* Never show it inside the page body, even for the instant before it's moved to the header */
#app-main #nav-account { display: none; }

/* Phones: two logos plus the buttons fill the header, so the logos shrink a little and the
   app name (the logos already say whose site it is) is hidden */
@media (max-width: 480px) {
  .public-nav .brand-logos { gap: 6px; padding: 3px 6px; }
  .public-nav .brand-logos img { height: 32px; }
  .public-nav .brand-text { display: none; }
}
.brand-logos-lg { gap: 12px; padding: 8px 14px; border-radius: 14px; }

/* Complaint list table: never wider than its card. If the columns still don't fit (tablet,
   phone), the table scrolls sideways inside the card instead of pushing the page. */
#complaints-table_wrapper .dt-layout-table > div { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* QR posters list: slightly tighter cells and an actions column that never wraps */
#qr-table th, #qr-table td { padding-left: .5rem; padding-right: .5rem; }
#qr-table td:last-child { white-space: nowrap; }
#complaints-table th, #complaints-table td { white-space: nowrap; padding-left: .5rem; padding-right: .5rem; }
#complaints-table td .text-truncate { white-space: nowrap; }
/* Its own small search box is replaced by the bigger one in the filter bar */
#complaints-table_wrapper .dt-search { display: none; }
.filter-bar .f-search { flex: 1 1 260px; max-width: 360px; }
.filter-bar .f-search .form-control { min-width: 0; }

/* Complaint list: count cards and building badges (they double as filter shortcuts) */
.summary-card { border: 1px solid var(--tblr-border-color); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.summary-card:hover, .summary-card:focus-visible { border-color: var(--tblr-primary); box-shadow: 0 2px 8px rgba(24, 36, 51, .08); }
.summary-card.summary-alert .summary-n { color: var(--tblr-red); }
.summary-badge { border: 0; cursor: pointer; font-size: .8rem; padding: .35rem .6rem; }
.summary-badge:hover { filter: brightness(.95); }
.min-w-0 { min-width: 0; }

/* Complaint form: Back + Submit. On phones Submit takes the full width (its label changes
   to "Uploading 45%…" while sending) and Back sits under it. */
.wiz-submit-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.wiz-submit-row [type=submit] { white-space: nowrap; }
@media (max-width: 575.98px) {
  .wiz-submit-row { flex-direction: column-reverse; align-items: stretch; }
  .wiz-submit-row [type=submit] { width: 100%; }
}
.brand-logos-lg img { height: 56px; }

.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  /* background: var(--tblr-primary); */
   color: #fff; font-size: 20px;
}

/* Tom Select on Tabler (its Bootstrap theme expects --bs-* variables) */
.ts-dropdown { background: var(--tblr-bg-surface, #fff); border: 1px solid var(--tblr-border-color); border-radius: 8px; box-shadow: 0 12px 28px rgba(24,36,51,.12); z-index: 1060; }
.ts-dropdown .optgroup-header { background: var(--tblr-bg-surface-secondary, #f6f8fb); color: var(--tblr-secondary); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 6px 12px; }
.ts-dropdown .option { padding: 8px 12px; }
.ts-dropdown .active { background: var(--tblr-primary-lt); color: var(--tblr-body-color); }
.ts-wrapper.single .ts-control, .ts-wrapper.multi .ts-control { background: var(--tblr-bg-forms, #fff); min-height: 38px; }
.ts-wrapper.is-invalid .ts-control, select.is-invalid + .ts-wrapper .ts-control { border-color: var(--tblr-danger); }

/* Tables */
.table-clickable tbody tr { cursor: pointer; }
div.dt-container .dt-search input { min-width: 220px; }
div.dt-container .dt-processing {
  position: fixed;
  bottom: 24px;
  left: 50%;
  top: auto;
  width: auto;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  z-index: 1055;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.dt-loading-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(24, 36, 51, .12);
  box-shadow: 0 12px 30px rgba(24, 36, 51, .18);
  font-size: .875rem;
  font-weight: 600;
  color: #182433;
}
div.dt-container.dt-is-loading .dt-layout-table,
div.dt-container.dt-is-loading .dt-paging {
  opacity: .55;
  pointer-events: none;
  transition: opacity .12s;
}
.dt-container .row:first-child { margin-bottom: .5rem; }
.filter-bar .form-select, .filter-bar .form-control { min-width: 150px; }

/* Flatpickr presets */
.flatpickr-calendar.fp-with-presets { width: auto !important; display: flex; }
.flatpickr-calendar.fp-with-presets.open { display: flex; }
.fp-presets { display: flex; flex-direction: column; padding: 8px; border-right: 1px solid var(--tblr-border-color); min-width: 130px; }
.fp-presets button {
  border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--tblr-body-color);
}
.fp-presets button:hover { background: var(--tblr-primary-lt); color: var(--tblr-primary); }
.fp-presets .fp-clear { margin-top: auto; color: var(--tblr-danger); }
.fp-body { display: flex; flex-direction: column; }
@media (max-width: 576px) {
  .flatpickr-calendar.fp-with-presets.open { flex-direction: column; }
  .fp-presets { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--tblr-border-color); }
}
.date-range-input { min-width: 240px; background: var(--tblr-bg-forms) !important; }

/* Tree builder (categories / locations) */
.tree-builder { border: 1px solid var(--tblr-border-color); border-radius: 12px; background: var(--tblr-bg-surface); overflow: hidden; }
.tree-crumb { padding: 10px 16px; border-bottom: 1px solid var(--tblr-border-color); font-size: 13px; color: var(--tblr-secondary); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tree-crumb a { color: inherit; cursor: pointer; }
.tree-crumb a:hover { color: var(--tblr-primary); }
.tree-cols { display: flex; overflow-x: auto; min-height: 440px; scroll-behavior: smooth; }
.tree-col { flex: 1 0 185px; max-width: 340px; min-width: 0; border-right: 1px solid var(--tblr-border-color); display: flex; flex-direction: column; }
.tree-col-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tblr-secondary); }
.tree-list { flex: 1; padding: 2px 6px 6px; min-height: 60px; }
.tree-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 2px 0; border-radius: 8px; cursor: pointer;
  font-size: 14px; border: 1px solid transparent; user-select: none;
}
.tree-item:hover { background: var(--tblr-bg-surface-secondary); }
.tree-item.active { background: var(--tblr-primary-lt); color: var(--tblr-primary); border-color: rgba(32,107,196,.25); }
.tree-item.inactive .tree-name { text-decoration: line-through; opacity: .55; }
.tree-item .handle { cursor: grab; color: var(--tblr-secondary); opacity: .5; }
.tree-item:hover .handle { opacity: 1; }
.tree-item .tree-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item .tree-icon { font-size: 18px; }
.tree-ghost { opacity: .4; background: var(--tblr-primary-lt); }
.tree-add { padding: 10px; border-top: 1px dashed var(--tblr-border-color); }
.tree-empty { padding: 18px 14px; font-size: 13px; color: var(--tblr-secondary); text-align: center; }
.tree-panel { position: sticky; top: 80px; }
.icon-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-height: 180px; overflow-y: auto; }
.icon-grid button { border: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface); border-radius: 6px; padding: 6px 0; font-size: 18px; }
.icon-grid button.active, .icon-grid button:hover { border-color: var(--tblr-primary); color: var(--tblr-primary); background: var(--tblr-primary-lt); }

/* Ticket timeline */
.timeline-thread { position: relative; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; }
.tl-icon { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.tl-bubble { flex: 1; border: 1px solid var(--tblr-border-color); border-radius: 10px; padding: 10px 14px; background: var(--tblr-bg-surface); }
.tl-bubble.note { background: #fff8e6; border-color: #f5d68a; }
.tl-meta { font-size: 12px; color: var(--tblr-secondary); }
.tl-event { font-size: 13px; color: var(--tblr-secondary); align-self: center; flex: 1; min-width: 0; }
.tl-bubble { min-width: 0; overflow-wrap: anywhere; }
/* Photo / video tiles, evidence upload and viewer */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-width: 560px; }
.media-tile {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer;
  border: 1px solid var(--tblr-border-color); background: #0f172a;
}
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.media-tile:hover { outline: 2px solid var(--tblr-primary); }
.media-play {
  position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); color: #fff; font-size: 18px; pointer-events: none;
}
.media-tile.picked { cursor: default; }
.media-size { position: absolute; left: 4px; bottom: 4px; font-size: 11px; color: #fff; background: rgba(0,0,0,.6); border-radius: 4px; padding: 0 5px; }
.media-remove {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.65); color: #fff; display: flex; align-items: center; justify-content: center;
}
.evidence-block { margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--tblr-green-lt); border: 1px solid rgba(47,179,68,.25); color: var(--tblr-body-color); }
.evidence-drop { border: 2px dashed var(--tblr-border-color); border-radius: 12px; padding: 16px; transition: border-color .15s, background .15s; }
.evidence-drop.dragging { border-color: var(--tblr-primary); background: var(--tblr-primary-lt); }
.media-full { max-width: 100%; max-height: 75vh; border-radius: 6px; }

.attach-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--tblr-border-color); }

/* Public portal */
/* Footer sits at the bottom of the screen on short pages: the body is a full-height
   column and the main area takes the spare space */
.public-body { background: #f6f8fb; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.public-body > #app-main { flex: 1 0 auto; min-height: 0; }
.public-nav { background: #fff; border-bottom: 1px solid var(--tblr-border-color); position: sticky; top: 0; z-index: 100; }
.public-nav .fs-3 { white-space: nowrap; }

/* Public portal on phones: 16px inputs (stops iOS zoom-on-focus), 44px tap targets, tighter spacing */
@media (max-width: 767.98px) {
  .public-body .form-control, .public-body .form-select { font-size: 16px; min-height: 44px; }
  .public-body .btn { min-height: 44px; }
  .public-body .btn-icon { min-width: 44px; }
  .public-body .captcha-input { max-width: none; }
  .public-body .container-xl { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 2rem 0 1.5rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero .btn-lg { width: 100%; }
  .stream-card { padding: 16px; }
  .choice { min-height: 56px; padding: 14px; }
  .public-footer a { display: inline-block; padding: 12px 0; }
  .public-nav .btn-ghost-secondary { min-width: 44px; }
  .wiz-crumb .badge { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; }
  .rating-stars button { font-size: 34px; min-width: 48px; min-height: 48px; padding: 4px; }
  #rate-form .btn:not(.captcha-refresh), #reopen-form [type=submit], #track-form [type=submit] { width: 100%; }
  .steps { overflow-x: auto; }
  /* Five progress steps on a phone: each gets an equal slot and its label wraps inside it */
  .steps .step-item { flex: 1 1 0; min-width: 0; font-size: .72rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
  .hero .badge { white-space: normal; text-align: left; line-height: 1.4; }
}
@media (max-width: 359.98px) {
  .public-nav .brand-text { display: none; }
}
@media (max-width: 420px) { .public-nav .fs-3 { font-size: 1rem !important; } .public-nav .btn { padding-left: .6rem; padding-right: .6rem; } }
.public-footer { border-top: 1px solid var(--tblr-border-color); background: #fff; margin-top: 3rem; flex-shrink: 0; }
.hero { padding: 4.5rem 0 3rem; background: radial-gradient(1000px 400px at 10% -10%, rgba(32,107,196,.12), transparent), radial-gradient(800px 300px at 100% 0, rgba(47,179,68,.08), transparent); }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hero .lead { color: var(--tblr-secondary); font-size: 1.15rem; }
.stream-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 14px; border: 1px solid var(--tblr-border-color);
  background: #fff; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; height: 100%;
}
.stream-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(24,36,51,.08); border-color: var(--tblr-primary); color: inherit; }
.stream-card .ic { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; background: var(--tblr-primary-lt); color: var(--tblr-primary); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--tblr-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* Complaint wizard */
.wizard { max-width: 860px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.wizard-steps .ws { flex: 1; height: 6px; border-radius: 3px; background: var(--tblr-border-color); transition: background .3s; }
.wizard-steps .ws.done { background: var(--tblr-primary); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; border: 1.5px solid var(--tblr-border-color); background: #fff;
  cursor: pointer; transition: all .15s; text-align: left; width: 100%; font-size: 15px;
}
.choice:hover { border-color: var(--tblr-primary); background: var(--tblr-primary-lt); }
.choice:focus-visible { outline: 3px solid rgba(32,107,196,.35); }
.choice .ic { font-size: 24px; color: var(--tblr-primary); }
.choice .chev { margin-left: auto; color: var(--tblr-secondary); }
.choice.other { border-style: dashed; color: var(--tblr-secondary); }
.choice.selected { border-color: var(--tblr-primary); background: var(--tblr-primary-lt); }
.wiz-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.wiz-crumb .badge { font-size: 13px; padding: 6px 10px; }
.wiz-pane { animation: fadeIn .2s ease; }
.success-check { width: 76px; height: 76px; border-radius: 50%; background: var(--tblr-success-lt); color: var(--tblr-success); display: inline-flex; align-items: center; justify-content: center; font-size: 42px; }
.ticket-no { font-family: var(--tblr-font-monospace); font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; }
.rating-stars button { border: 0; background: none; font-size: 28px; color: #d0d5dd; padding: 0 2px; }
.rating-stars button.on { color: #f59f00; }

/* Captcha */
.captcha-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-img { border-radius: 8px; border: 1px solid var(--tblr-border-color); background: #f1f5f9; user-select: none; }
.captcha-input { flex: 1 1 140px; max-width: 220px; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; }
.captcha-input::placeholder { letter-spacing: normal; text-transform: none; font-weight: 400; }
.captcha-refresh.spinning i { animation: spin .5s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(900px 400px at 0 0, rgba(32,107,196,.14), transparent), #f6f8fb; }

/* QR posters */
.qr-thumb { flex: none; display: inline-flex; padding: 3px; border: 1px solid var(--tblr-border-color); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.qr-thumb:hover { border-color: var(--tblr-primary); box-shadow: 0 0 0 3px rgba(32,107,196,.12); }
.qr-thumb img { display: block; width: 52px; height: 52px; max-width: none; border-radius: 4px; }
.qr-preview-wrap { position: sticky; top: 76px; }
.qr-preview { background: #e9edf3; border-radius: 12px; padding: 18px; display: flex; justify-content: center; overflow: hidden; }
.qr-preview-inner { box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 14px 40px -12px rgba(15,23,42,.3); background: #fff; min-height: 200px; width: max-content; }
.logo-pick { display: flex; align-items: center; gap: 14px; }
.logo-pick-img { width: 132px; height: 72px; border: 1.5px dashed var(--tblr-border-color); border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 50% / 14px 14px; overflow: hidden; }
.logo-pick-img img { max-width: 118px; max-height: 60px; object-fit: contain; }
.accent-swatch { cursor: pointer; margin: 0; }
.accent-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.accent-swatch span { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 16px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); transition: transform .12s, box-shadow .12s; }
.accent-swatch span i { opacity: 0; }
.accent-swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #94a3b8; transform: scale(1.05); }
.accent-swatch input:checked + span i { opacity: 1; }
.accent-swatch input:focus-visible + span { outline: 3px solid rgba(32,107,196,.5); outline-offset: 3px; }
@media (max-width: 991.98px) { .qr-preview-wrap { position: static; } }

/* Share dialog */
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.qs-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--tblr-border-color); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; min-height: 64px; }
.qs-opt:hover:not(:disabled) { border-color: var(--tblr-primary); background: var(--tblr-primary-lt); }
.qs-opt:disabled { opacity: .55; cursor: progress; }
.qs-opt strong { display: block; font-size: 14px; color: var(--tblr-body-color); }
.qs-opt small { display: block; font-size: 12px; color: var(--tblr-secondary); line-height: 1.3; }
.qs-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--tblr-primary-lt); color: var(--tblr-primary); font-size: 20px; }
.qs-wa .qs-ic { background: #e7f8ee; color: #1a9e55; }
.qs-native { grid-column: 1 / -1; }
.qs-url { margin-top: 14px; display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--tblr-secondary); word-break: break-all; }
@media (max-width: 480px) { .qs-grid { grid-template-columns: 1fr; } }
.table-scroll .dt-layout-table { overflow-x: auto; }
.tree-add-toggle { gap: 4px; padding: 2px 8px; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.tree-add-toggle i { font-size: 14px; margin: 0; }

/* Geofence gate on the complaint form */
.wizard.geo-locked > :not(#geo-gate) { display: none !important; }
.geo-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 40px; background: var(--tblr-primary-lt); color: var(--tblr-primary); }
.geo-gate[data-state="asking"] .geo-icon { animation: geoPulse 1.6s ease-in-out infinite; }
.geo-gate[data-state="outside"] .geo-icon,
.geo-gate[data-state="waiting"] .geo-icon { background: var(--tblr-warning-lt); color: var(--tblr-warning); }
.geo-gate[data-state="denied"] .geo-icon { background: var(--tblr-danger-lt); color: var(--tblr-danger); }
.geo-gate #geo-help { background: var(--tblr-bg-surface-secondary, #f6f8fb); border-radius: 8px; padding: 12px 16px; }
.geo-gate #geo-help ol { padding-left: 1.2rem; }
.geo-badge { font-size: .875rem; font-weight: 500; }
@keyframes geoPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(32, 107, 196, .35); } 50% { box-shadow: 0 0 0 14px rgba(32, 107, 196, 0); } }

/* Settings: "How to get the coordinates" side note */
.geo-help { font-size: .8125rem; }
.geo-help ol li, .geo-help ul li { margin-bottom: .25rem; }
@media (min-width: 992px) { .geo-help { position: sticky; top: 1rem; } }

/* Locations builder: type picker next to the "Add …" field */
.tree-add .tree-add-type { flex: 0 0 auto; width: auto; max-width: 7.5rem; }

/* Admin dashboard: wave skeleton loaders while stats fetch */
.dash-skel {
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(90deg, #e9eef5 25%, #f6f9fd 50%, #e9eef5 75%);
  background-size: 200% 100%;
  animation: dashWave 1.35s ease-in-out infinite;
  vertical-align: middle;
}
.dash-skel-kpi { width: 4.5rem; height: 1.75rem; border-radius: 8px; }
.dash-skel-sm { width: 3.25rem; height: 1rem; }
.dash-skel-line { display: block; height: 0.85rem; border-radius: 6px; }

.dash-chart-wrap { position: relative; }
.dash-chart-loader {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 6px 4px;
  background: var(--tblr-bg-surface, #fff);
  z-index: 2;
}
.dash-shell.is-loading .dash-chart-loader { display: flex; }

.dash-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 12px;
}
.dash-chart-bars span { flex: 1; border-radius: 8px 8px 4px 4px; }

.dash-chart-donut {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.dash-skel-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
}
.dash-skel-ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: var(--tblr-bg-surface, #fff);
}

@keyframes dashWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-skel { animation: none; }
}
