/* Krower mobile UI — the chrome drawn over the map.
 *
 * Implements the Claude Design handoff (five screens: splash, map home, layers
 * sheet, POI detail, offline manager). Map cartography is NOT styled here — that
 * lives in style.json and is deliberately untouched by this file.
 *
 * Webfonts come from ./fonts-ui/fonts.css (generated, self-hosted — see
 * scripts/web/fetch_ui_fonts.py for why they aren't a Google Fonts <link>).
 */

:root {
  /* brand */
  --brand: #2f66ad;      /* kobalt — primary */
  --brand-d: #244f7d;    /* darker, links/hover */
  --accent: #e0552b;     /* terakota — CTAs, location, navigate */
  --ink: #16202b;        /* text */
  --cream: #f6f2ea;      /* surfaces, sheets, pages */

  /* text ramp */
  --text-2: #5c6672;     /* secondary */
  --text-3: #8a929c;     /* muted, section labels */
  --on-white: #3d4854;   /* body on white */

  /* tracks / subtle fills */
  --track-off: #d9d6cf;
  --track-progress: #ece7dd;
  --chip-subtle: #f2efe8;

  /* POI category colours — mirror POI_CATEGORIES in app.js and the sprite
   * badges in scripts/web/build_sprite.py. Changing one means changing all. */
  --cat-water: #1e88e5;
  --cat-shelter: #6d4c41;
  --cat-campsite: #2e7d32;
  --cat-grocery: #8e24aa;
  --cat-restaurant: #e53935;
  --cat-zanocuj: #f2a71b;
  --cat-zanocuj-border: #e65100;

  /* radii */
  --r-pill: 999px;
  --r-tile: 14px;
  --r-card: 18px;
  --r-sheet: 26px;

  /* shadows */
  --sh-chip-on: 0 3px 10px rgba(20, 32, 43, 0.18);
  --sh-chip-off: 0 3px 10px rgba(20, 32, 43, 0.1);
  --sh-card: 0 4px 16px rgba(20, 32, 43, 0.07);
  --sh-fab: 0 6px 18px rgba(20, 32, 43, 0.2);
  --sh-fab-brand: 0 8px 22px rgba(47, 102, 173, 0.5);
  --sh-sheet: 0 -10px 40px rgba(20, 32, 43, 0.28);
  --sh-cta: 0 8px 22px rgba(224, 85, 43, 0.42);

  /* iOS safe areas — 0 in a desktop browser, real insets in the shell */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --display: 'Barlow Semi Condensed', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

/* The `hidden` attribute is only a UA `display: none`, so any author `display`
 * silently beats it — and most of the chrome below sets `display: flex`. Without
 * this, "hidden" elements render, and closed sheets keep their controls in the
 * tab order. */
[hidden] {
  display: none !important;
}

html,
body,
#map {
  margin: 0;
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--body);
  color: var(--ink);
  /* The chrome is a fixed overlay set; nothing should rubber-band or pan. */
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

/* Native-feeling controls: no text selection anywhere in the chrome, but leave
 * the map canvas alone (MapLibre manages its own interaction). */
.k-ui {
  user-select: none;
  -webkit-user-select: none;
}

.k-title {
  font-family: var(--display);
  font-weight: 700;
}

/* Section label, repeated across the layers sheet and the offline page. */
.k-section {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-3);
  text-transform: uppercase;
}

@keyframes kbounce {
  0%,
  80%,
  100% {
    transform: scale(0.5);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes kpulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes kspin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Bottom sheets — shared shell (03 Warstwy, 04 Punkt) ─────────────────── */

.k-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(20, 32, 43, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.k-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* The POI sheet scrims only the bottom of the map: the pin the user just tapped
 * is up there, and dimming it would hide the thing they're looking at. */
.k-scrim--poi {
  background: linear-gradient(rgba(20, 32, 43, 0) 40%, rgba(20, 32, 43, 0.28));
}

.k-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--sh-sheet);
  padding: 10px 20px calc(30px + var(--safe-b));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  touch-action: none; /* we own the vertical drag */
}

.k-sheet.is-open {
  transform: translateY(0);
}

/* While a finger is down, the sheet tracks it 1:1 — a transition here would
 * make the drag feel laggy. Re-enabled on release so it animates home. */
.k-sheet.is-dragging {
  transition: none;
}

.k-grab {
  width: 40px;
  height: 5px;
  flex: none;
  border-radius: var(--r-pill);
  background: rgba(20, 32, 43, 0.18);
  margin: 0 auto 14px;
}

.k-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.k-sheet__head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.3px;
}

.k-close {
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 32, 43, 0.07);
  color: var(--text-2);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

/* Only the sheet's contents scroll; the sheet itself is dragged. */
.k-sheet__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  margin: 0 -20px;
  padding: 0 20px;
}

/* ── 03 · Warstwy ────────────────────────────────────────────────────────── */

.k-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin: 9px 0 22px;
}

.k-area-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.k-area-row__swatch {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: rgba(242, 167, 27, 0.28);
  border: 1.5px solid var(--cat-zanocuj-border);
}

.k-area-row__text {
  flex: 1;
  min-width: 0;
}

.k-area-row__name {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.k-area-row__meta {
  display: block;
  color: var(--text-3);
  font-size: 13px;
}

/* iOS-style switch. Purely presentational — the whole row is the button. */
.k-switch {
  width: 48px;
  height: 29px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--track-off);
  position: relative;
  transition: background 0.2s ease;
}

.k-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.k-area-row[aria-pressed='true'] .k-switch {
  background: var(--brand);
}

.k-area-row[aria-pressed='true'] .k-switch::after {
  transform: translateX(19px);
}

.k-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 9px;
}

/* Deliberately large: the handoff calls out gloved, one-handed use in the
 * field, which is the situation this app exists for. */
.k-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: var(--r-tile);
  border: 1px solid rgba(20, 32, 43, 0.08);
  background: #fff;
  color: var(--on-white);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.k-tile__badge {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--cat);
}

.k-tile__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.k-tile__check {
  font-size: 13px;
  opacity: 0;
}

.k-tile.is-on {
  background: var(--cat);
  border-color: transparent;
  color: #fff;
}

.k-tile.is-on .k-tile__badge {
  background: rgba(255, 255, 255, 0.22);
}

.k-tile.is-on .k-tile__check {
  opacity: 1;
}

.k-tile--more {
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1.5px dashed rgba(20, 32, 43, 0.18);
  color: var(--text-3);
  font-size: 14px;
}

.k-tile:active {
  transform: scale(0.98);
}

/* ── 04 · Punkt — POI detail ─────────────────────────────────────────────── */

/* With the POI sheet up, the map chrome steps aside for the back button. */
body.is-poi .k-chips,
body.is-poi .k-fabs,
body.is-poi .k-scrim-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.k-back {
  position: absolute;
  top: calc(62px + var(--safe-t));
  left: 14px;
  z-index: 12;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(20, 32, 43, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.k-poi-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.k-poi-head__icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--cat);
  /* Shadow tinted by the category, per the handoff. color-mix keeps it derived
   * from --cat rather than hardcoding a second rgba per category. */
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cat) 40%, transparent);
}

.k-poi-head__text {
  flex: 1;
  min-width: 0;
}

.k-poi-head__text h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
}

.k-poi-head__cat {
  color: var(--cat);
  font-weight: 600;
  font-size: 14px;
  margin-top: 2px;
}

.k-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--r-tile);
  padding: 12px 14px;
  margin-bottom: 20px;
}

.k-stat__glyph {
  flex: none;
}

.k-stat__label {
  color: var(--text-3);
  font-size: 12.5px;
}

.k-stat__value {
  font-size: 22px;
}

.k-coords {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.k-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  box-shadow: var(--sh-cta);
  cursor: pointer;
}

.k-cta:active {
  transform: scale(0.98);
}

/* Selected-pin marker, drawn over the map by ui.js. Bigger than the sprite pins
 * so the tapped point stays findable once the sheet covers half the screen. */
.k-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.k-pin__dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cat);
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(20, 32, 43, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.k-pin__tail {
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  margin-top: -8px;
  box-shadow: 0 4px 5px rgba(20, 32, 43, 0.25);
}

/* ── Location puck — the mascot ──────────────────────────────────────────── */

/* "Mascot everywhere": the puck is the cow, not a generic blue dot. */
.k-puck {
  position: relative;
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.k-puck__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: kpulse 2.4s infinite ease-out;
}

.k-puck__face {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(20, 32, 43, 0.4);
  background: var(--brand);
}

.k-puck__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crops to the face; a centred crop lands on the muzzle. */
  object-position: 50% 42%;
}


/* ── 05 · Offline — region manager ───────────────────────────────────────── */

.k-page {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.k-page__nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(8px + var(--safe-t)) 12px 8px;
  border-bottom: 1px solid rgba(20, 32, 43, 0.06);
}

.k-page__nav h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.3px;
}

.k-page__back {
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  background: none;
  color: var(--on-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.k-page__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0 calc(40px + var(--safe-b));
}

.k-ocard {
  margin: 0 16px 22px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: var(--sh-card);
}

.k-ocard--list {
  padding: 0;
  overflow: hidden;
}

.k-osection {
  margin: 0 20px 9px;
}

.k-orow {
  display: flex;
  align-items: center;
  gap: 11px;
}

.k-orow__text {
  flex: 1;
  min-width: 0;
}

.k-oavatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
}

.k-oavatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k-otile {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 125, 50, 0.12);
}

.k-oname {
  font-weight: 600;
  font-size: 15px;
}

.k-oname--big {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.k-omuted {
  color: var(--text-3);
  font-size: 13px;
}

.k-ook {
  color: #2e7d32;
  font-weight: 600;
  font-size: 13px;
}

.k-ovalue {
  font-size: 16px;
  flex: none;
}

/* Composition bar. Always full — it shows what the download is made of, not
 * how much of the device it fills; see the note in ui.js. */
.k-bar {
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--track-progress);
  overflow: hidden;
  display: flex;
  margin-top: 13px;
}

.k-legend {
  display: flex;
  gap: 16px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-3);
}

.k-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.k-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.k-chips-mini {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.k-chips-mini span {
  font-size: 12px;
  color: var(--on-white);
  background: var(--chip-subtle);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

.k-oitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(20, 32, 43, 0.06);
}

.k-oitem:last-child {
  border-bottom: 0;
}

.k-odl {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 102, 173, 0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nothing behind these buttons yet (the download manager is a later step), so
 * they read as unavailable rather than pretending to work. */
.k-odl[disabled] {
  opacity: 0.4;
}

.k-soon {
  font-size: 12px;
  color: var(--text-3);
  background: var(--chip-subtle);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  flex: none;
}

/* ── 01 · Start — splash ─────────────────────────────────────────────────── */

.k-splash {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: radial-gradient(120% 90% at 50% 22%, #3a76c2 0%, #2f66ad 42%, #234f7d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  transition: opacity 0.45s ease;
}

.k-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.k-splash-mascot {
  position: relative;
  width: 168px;
  height: 168px;
  margin-bottom: 34px;
}

/* Translucent plate behind the icon, so the mascot reads as an app icon rather
 * than a sticker floating on the gradient. */
.k-splash-mascot::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.1);
}

.k-splash-mascot img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.k-splash-word {
  margin: 0;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
}

.k-splash-tag {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  text-align: center;
  max-width: 250px;
  line-height: 1.45;
}

.k-dots {
  display: flex;
  gap: 9px;
  margin-top: 46px;
}

.k-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: kbounce 1.2s infinite both;
}

.k-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.k-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.k-splash-foot {
  position: absolute;
  bottom: calc(56px + var(--safe-b));
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

/* ── 02 · Mapa — scrim, chips, FABs ──────────────────────────────────────── */

.k-scrim-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(150px + var(--safe-t));
  background: linear-gradient(rgba(246, 242, 234, 0.92), rgba(246, 242, 234, 0));
  pointer-events: none;
  z-index: 1;
}

.k-chips {
  position: absolute;
  top: calc(62px + var(--safe-t));
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 9px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  /* The row scrolls; the map underneath must not pan with it. */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.k-chips::-webkit-scrollbar {
  display: none;
}

.k-chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 6px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  /* Every chip shares one shape — only the fill says on or off. An explicit
   * handoff requirement: mixed chip designs made the row hard to scan. */
  background: #fff;
  color: var(--on-white);
  box-shadow: var(--sh-chip-off);
  transition: background 0.15s ease, color 0.15s ease;
}

.k-chip__badge {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  /* Off: solid category colour, so the colour key is legible even when the
   * layer is hidden. On: the chip itself carries the colour. */
  background: var(--cat);
}

.k-chip.is-on {
  background: var(--cat);
  color: #fff;
  box-shadow: var(--sh-chip-on);
}

.k-chip.is-on .k-chip__badge {
  background: rgba(255, 255, 255, 0.24);
}

.k-fabs {
  position: absolute;
  right: 14px;
  bottom: calc(52px + var(--safe-b));
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 13px;
  /* flex-end, not center: the locate row grows leftward when its label opens,
   * and the FABs must stay pinned to the right edge. */
  align-items: flex-end;
}

.k-locate-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.k-fab-locate {
  width: 52px;
  height: 52px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--sh-fab);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* One button, three faces — only the one matching locationState is shown.
 * `unavailable` has no face: the whole row is removed (see .is-loc-unavailable). */
.k-loc-icon {
  display: none;
}

.k-fabs[data-loc='on'] .k-loc-icon[data-state='on'],
.k-fabs[data-loc='off'] .k-loc-icon[data-state='off'],
.k-fabs[data-loc='acquiring'] .k-loc-icon[data-state='acquiring'] {
  display: block;
}

.k-spin {
  animation: kspin 0.9s linear infinite;
  transform-origin: center;
}

/* Insecure origin: geolocation can never work here, and Settings wouldn't help.
 * A disabled button would be a control that can never do anything, so the row
 * goes entirely. */
.k-fabs[data-loc='unavailable'] .k-locate-row {
  display: none;
}

.k-loc-label {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sh-fab);
  padding: 9px 15px;
  text-align: right;
  max-width: 60vw;
}

.k-loc-label__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.15;
  white-space: nowrap;
}

.k-loc-label__action {
  display: block;
  margin: 2px 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand);
  cursor: pointer;
  white-space: nowrap;
}

.k-fab-layers {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 22px;
  background: var(--brand);
  box-shadow: var(--sh-fab-brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
}

.k-fab-layers span {
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.k-fab-locate:active,
.k-fab-layers:active,
.k-chip:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
