/* Kohli — page furniture, built to the eight UI designs.
   Serif titles, circular actions, icon boxes, and the side menu. */

:root {
  /* Status colours. Used only to mean something — never decoration. */
  --blue:   #3B82F6;
  --purple: #A855F7;
  --green:  #22C55E;
  --blue-bg:   rgba(59, 130, 246, 0.14);
  --purple-bg: rgba(168, 85, 247, 0.14);
  --green-bg:  rgba(34, 197, 94, 0.14);
}
:root[data-appearance="dark"] {
  --blue:   #60A5FA;
  --purple: #C084FC;
  --green:  #4ADE80;
  --blue-bg:   rgba(96, 165, 250, 0.16);
  --purple-bg: rgba(192, 132, 252, 0.16);
  --green-bg:  rgba(74, 222, 128, 0.16);
}

/* ============ Page header ============ */

.page-head { padding: 6px 20px 18px; }

.page-head-top {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 6px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: -8px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 1.02em;
}
.back-link .icon { width: 21px; height: 21px; }
.back-link:active { background: var(--pressed); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: -9px;
  border-radius: 11px;
  color: var(--text);
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn:active { background: var(--pressed); }

.page-head-row { display: flex; align-items: flex-start; gap: 14px; }
.page-head-main { flex: 1; min-width: 0; }
.page-sub { color: var(--text-2); font-size: 0.94em; margin-top: 4px; }

.round-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0.5px solid var(--card-edge);
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--text);
  flex-shrink: 0;
  margin-top: 2px;
}
.round-btn .icon { width: 23px; height: 23px; }
.round-btn:active { background: var(--pressed); transform: scale(0.94); }

/* ============ Cards and rows ============ */

.card {
  background: var(--card);
  border: 0.5px solid var(--card-edge);
  border-radius: 20px;
  margin: 0 16px 12px;
  overflow: hidden;
}

.crow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  color: var(--text);
  text-align: left;
  background: transparent;
  position: relative;
}
.crow + .crow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 0.5px;
  background: var(--separator);
}
.crow.inset + .crow.inset::before { left: 72px; }
button.crow:active { background: var(--pressed); }

.crow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.crow-title { font-size: 1.06em; letter-spacing: -0.015em; }
.crow-title.serif { font-size: 1.28em; }
.crow-sub { font-size: 0.84em; color: var(--text-2); line-height: 1.35; }

/* Rounded-square icon container used on nearly every row */
.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 0.5px solid var(--card-edge);
  background: var(--fill);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text);
}
.icon-box .icon { width: 21px; height: 21px; }
.icon-box.lg { width: 64px; height: 64px; border-radius: 20px; }
.icon-box.lg .icon { width: 27px; height: 27px; }
.icon-box.round { border-radius: 50%; }
.icon-box.blue   { background: var(--blue-bg);   color: var(--blue);   border-color: transparent; }
.icon-box.purple { background: var(--purple-bg); color: var(--purple); border-color: transparent; }
.icon-box.green  { background: var(--green-bg);  color: var(--green);  border-color: transparent; }

/* Pills */
.pill {
  padding: 8px 15px;
  border-radius: 20px;
  border: 0.5px solid var(--separator);
  font-size: 0.82em;
  color: var(--text-2);
  flex-shrink: 0;
  white-space: nowrap;
}
.pill.solid { background: var(--fill); border-color: transparent; color: var(--text); }
.pill.green { background: var(--green-bg); color: var(--green); border-color: transparent; }
.pill.blue  { background: var(--blue-bg);  color: var(--blue);  border-color: transparent; }
.pill.act { color: var(--text); font-weight: 500; }
button.pill:active { background: var(--pressed); }

.dot-tiny { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--text-3); }
.dot-tiny.green { background: var(--green); }
.dot-tiny.blue { background: var(--blue); }

/* Uppercase section label */
.label {
  padding: 16px 20px 9px;
  font-size: 0.72em;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.label.plain { text-transform: none; letter-spacing: -0.01em; font-size: 1.1em; color: var(--text); font-weight: 600; }

/* Footnote under a card */
.card-note { padding: 2px 20px 18px; font-size: 0.78em; color: var(--text-2); line-height: 1.45; }

/* ============ Segmented pill (Jobs) ============ */

.seg {
  display: flex;
  margin: 0 16px 16px;
  padding: 4px;
  border-radius: 26px;
  border: 0.5px solid var(--card-edge);
  background: var(--card);
  gap: 4px;
}
.seg button {
  flex: 1;
  min-height: 42px;
  border-radius: 22px;
  font-size: 0.94em;
  color: var(--text-2);
  transition: background 0.28s var(--ease-out), color 0.2s ease;
}
.seg button.active {
  background: var(--fill);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.14);
}

/* ============ Big round checkbox ============ */

.check-big {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.6px solid var(--text-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.check-big .icon { width: 16px; height: 16px; color: var(--on-accent); opacity: 0; transform: scale(0.6); transition: opacity 0.18s ease, transform 0.18s ease; }
.check-big.on { background: var(--accent); border-color: var(--accent); }
.check-big.on .icon { opacity: 1; transform: none; }
.check-big:active { transform: scale(0.88); }

.more-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  flex-shrink: 0;
  letter-spacing: 2px;
  font-size: 1.1em;
}
.more-btn:active { background: var(--pressed); }

/* ============ Stat cards ============ */

.stat-pair { display: flex; gap: 12px; margin: 0 16px 16px; }
.stat-card {
  flex: 1;
  background: var(--card);
  border: 0.5px solid var(--card-edge);
  border-radius: 18px;
  padding: 22px 14px;
  text-align: center;
}
.stat-card b { display: block; font-size: 1.9em; font-weight: 400; letter-spacing: -0.03em; }
.stat-card b.serif { font-family: ui-serif, "New York", Georgia, serif; }
.stat-card small { display: block; margin-top: 5px; font-size: 0.8em; color: var(--text-2); }

/* ============ Avatar stack ============ */

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.68em;
  border: 2px solid var(--card);
}
.avatar-stack .avatar + .avatar { margin-left: -11px; }

/* ============ Calendar card ============ */

.cal-card { padding: 18px 10px 14px; }
.cal-top { display: flex; align-items: center; padding: 0 10px 16px; gap: 4px; }
.cal-month { font-size: 1.35em; letter-spacing: -0.02em; }
.cal-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.cal-nav .icon { width: 20px; height: 20px; }
.cal-nav:active { background: var(--pressed); color: var(--text); }

.cal-card .cal-head { padding: 0 4px 10px; }
.cal-card .cal-head span { font-size: 0.74em; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.cal-card .cal-grid { padding: 0 4px; gap: 4px 0; }
.cal-card .cal-day { max-height: 44px; font-size: 1em; }
.cal-card .cal-day.today:not(.selected) { font-weight: 400; }
.cal-card .cal-day.selected { background: #fff; color: #000; font-weight: 500; }
:root[data-appearance="light"] .cal-card .cal-day.selected { background: #000; color: #fff; }

/* ============ Chat ============ */

.chat-people {
  display: flex;
  gap: 20px;
  padding: 4px 20px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 0.5px solid var(--separator);
  margin-bottom: 8px;
}
.chat-people::-webkit-scrollbar { display: none; }
.chat-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--text);
}
.chat-person .avatar { width: 54px; height: 54px; font-size: 1.05em; font-weight: 400; }
.chat-person small { font-size: 0.76em; color: var(--text-2); }
.chat-person.me .avatar { box-shadow: 0 0 0 1.5px var(--text-2), 0 0 0 4px var(--bg); }
.chat-person.me small { color: var(--text); font-weight: 600; }
.chat-person.me { position: relative; }
.chat-person.me::after {
  content: "";
  position: absolute;
  top: 40px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bg);
}
:root[data-appearance="light"] .chat-person.me::after { background: #000; }

/* ============ Health ============ */

.health-hero {
  display: flex;
  gap: 16px;
  margin: 0 16px 8px;
  padding: 20px 18px;
  background: var(--card);
  border: 0.5px solid var(--card-edge);
  border-radius: 20px;
}
.health-left { flex: 1; min-width: 0; border-right: 0.5px solid var(--separator); padding-right: 16px; }
.health-left .cap { font-size: 0.84em; color: var(--text-2); }
.health-kcal { font-size: 2.5em; font-weight: 600; letter-spacing: -0.04em; margin: 6px 0 12px; }
.health-kcal small { font-size: 0.36em; font-weight: 400; color: var(--text-2); letter-spacing: 0; }

.health-metrics { flex: 1.1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.health-metric { display: flex; align-items: center; gap: 11px; }
.health-metric .icon-box { width: 34px; height: 34px; border-radius: 50%; }
.health-metric .icon-box .icon { width: 17px; height: 17px; }
.health-metric-main { min-width: 0; flex: 1; }
.health-metric-main .cap { font-size: 0.78em; color: var(--text-2); display: block; }
.health-metric-main b { font-size: 1.02em; font-weight: 600; }
.health-metric-main b span { font-size: 0.72em; font-weight: 400; color: var(--text-2); }

/* Water, tapped one glass at a time */
.water-card {
  margin: 0 16px 14px;
  padding: 15px 16px 13px;
  background: var(--card);
  border: 0.5px solid var(--card-edge);
  border-radius: 18px;
}
.water-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.water-head .cap { flex: 1; font-size: 0.8em; color: var(--text-2); }
.water-head b { font-size: 1.05em; font-weight: 600; letter-spacing: -0.02em; }
.water-note { margin-top: 11px; font-size: 0.74em; color: var(--text-2); }

.water-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.water-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--card-edge);
  background: var(--fill);
  color: var(--text);
  font-size: 1.2em;
  flex-shrink: 0;
}
.water-btn:active { background: var(--fill-strong); }
.water-glasses { flex: 1; display: flex; justify-content: space-between; gap: 2px; }
.glass {
  color: var(--text-3);
  padding: 6px 3px;
  border-radius: 9px;
  transition: color 0.25s ease, transform 0.25s var(--ease-spring);
}
.glass .icon { width: 22px; height: 22px; }
.glass.on { color: var(--blue); transform: scale(1.06); }
.glass:active { background: var(--pressed); }

.crow.on { background: var(--fill); }

.two-cards { display: flex; gap: 12px; margin: 0 16px 12px; }
.two-cards .card { flex: 1; margin: 0; }
.two-cards .crow { flex-direction: column; align-items: flex-start; gap: 11px; padding: 16px 15px; }
.two-cards .crow-title { font-size: 0.98em; font-weight: 600; }

/* ============ Family lines ============ */

.fam-line {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  color: var(--text);
  text-align: left;
  position: relative;
}
.fam-line + .fam-line::before {
  content: "";
  position: absolute;
  top: 0; left: 62px; right: 18px;
  height: 0.5px;
  background: var(--separator);
}
.fam-line:active { background: var(--pressed); }
.fam-line .avatar { width: 40px; height: 40px; font-size: 0.8em; }

.fam-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fam-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fam-top b { font-size: 0.98em; font-weight: 600; letter-spacing: -0.01em; }
.fam-where {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7em;
  color: var(--green);
  white-space: nowrap;
}
.fam-sub { font-size: 0.78em; color: var(--text-2); }
.fam-metrics { display: flex; align-items: stretch; gap: 6px; min-width: 0; }
.fam-metric { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 7px; border-radius: 9px; background: var(--fill); color: var(--text-2); }
.fam-metric .icon { width: 14px; height: 14px; flex-shrink: 0; }
.fam-metric > span { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.fam-metric b { color: var(--text); font-size: .69em; font-weight: 650; white-space: nowrap; }
.fam-metric small { color: var(--text-3); font-size: .6em; white-space: nowrap; }
.fam-metric.food .icon { color: var(--orange); }
.fam-metric.water .icon { color: var(--blue); }
.fam-metric.jobs .icon { color: var(--green); }

.today-brief { min-height: 136px; }
.today-brief-loading { display: flex; align-items: center; gap: 12px; padding: 22px 4px; }
.today-brief-loading > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.today-brief-loading b { font-size: .94em; font-weight: 600; }
.today-brief-loading small { color: var(--text-2); font-size: .75em; }
.today-brief-lines { display: grid; gap: 2px; }
.today-brief-line { display: flex; align-items: flex-start; gap: 11px; padding: 11px 2px; border-bottom: .5px solid var(--separator); }
.today-brief-line:last-child { border-bottom: 0; }
.today-brief-line > span { display: grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.today-brief-line .icon { width: 14px; height: 14px; }
.today-brief-line p { margin: 2px 0 0; color: var(--text); font-size: .86em; line-height: 1.45; }
.today-brief-note { margin: 10px 2px 0; color: var(--text-3); font-size: .68em; line-height: 1.4; }
.today-brief-empty { display: flex; align-items: center; gap: 10px; min-height: 110px; color: var(--text-2); font-size: .84em; line-height: 1.4; }
.today-brief-empty .icon { width: 18px; height: 18px; flex-shrink: 0; }
.today-brief-ask { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; }
.today-brief-ask .icon { width: 16px; height: 16px; }

@media (max-width: 410px) {
  .fam-line { align-items: flex-start; gap: 11px; }
  .fam-metrics { flex-wrap: wrap; }
  .fam-metric.jobs { display: none; }
  .spark { width: 54px; margin-top: 9px; }
}

.spark {
  width: 78px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text);
  opacity: 0.9;
}

/* ============ Shopping mode ============ */

.shop-pad { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 40px); }

.shop-progress { margin: 0 16px 18px; }
.shop-count { font-size: 0.92em; color: var(--text-2); margin-bottom: 9px; }
.shop-total { font-size: 0.78em; color: var(--text-2); margin-top: 9px; }

.shop-aisle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px 10px;
  font-size: 0.76em;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-2);
}
.shop-aisle span {
  margin-left: auto;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.05em;
  color: var(--text-3);
}

.shop-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 18px;
  color: var(--text);
  text-align: left;
  position: relative;
}
.shop-row + .shop-row::before {
  content: "";
  position: absolute;
  top: 0; left: 64px; right: 18px;
  height: 0.5px;
  background: var(--separator);
}
.shop-row:active { background: var(--pressed); }
.shop-row .check-big { width: 34px; height: 34px; }
.shop-row .check-big .icon { width: 18px; height: 18px; }

.shop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shop-name { font-size: 1.18em; letter-spacing: -0.015em; }
.shop-for { font-size: 0.78em; color: var(--text-2); }

.shop-row.done .shop-name { color: var(--text-3); text-decoration: line-through; }

.shop-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}
.shop-price b { font-size: 1.02em; font-weight: 600; letter-spacing: -0.02em; }
.shop-price i { font-size: 0.66em; font-style: normal; color: var(--text-2); }

/* ============ Map ============ */

.map-card {
  margin: 0 16px 10px;
  border-radius: 20px;
  overflow: hidden;
  border: 0.5px solid var(--card-edge);
  background: var(--card);
}
.map-card svg { display: block; width: 100%; height: auto; }
.map-card.live { height: 330px; background: var(--fill); }
.live-map {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  isolation: isolate;
}
.live-map.dragging { cursor: grabbing; }
.live-map-fallback { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--card); transition: opacity 180ms ease; }
.live-map-fallback .map-canvas { width: 100%; height: 100%; object-fit: cover; }
.live-map-fallback-status { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 82px); padding: 7px 9px; border-radius: 10px; background: var(--card); color: var(--text-2); font-size: .7em; box-shadow: var(--shadow-sm); }
.live-map-retry { display: none; position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 10px; background: var(--card); color: var(--accent); font-size: .72em; font-weight: 650; box-shadow: var(--shadow-sm); }
.live-map.tiles-failed .live-map-retry { display: block; }
.live-map.tiles-ready .live-map-fallback { opacity: 0; pointer-events: none; }
.live-map-stage { position: absolute; inset: 0; z-index: 1; opacity: 0; transform: translate3d(0,0,0); transition: opacity 180ms ease; }
.live-map:not(.tiles-ready) .live-map-stage { pointer-events: none; }
.live-map.tiles-ready .live-map-stage { opacity: 1; }
.live-map.dragging .live-map-stage { will-change: transform; }
.live-map-tiles { position: absolute; inset: 0; overflow: hidden; }
.live-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}
.live-map-pin { position: absolute; z-index: 2; transform: translate(-50%, -100%); text-align: center; pointer-events: none; }
.live-map-pin span { display: block; width: 27px; height: 27px; margin: auto; overflow: hidden; border: 3px solid var(--card); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 2px 7px rgba(0,0,0,.28); }
.live-map-pin.person span img { width: 100%; height: 100%; object-fit: cover; transform: rotate(45deg) scale(1.15); }
.live-map-pin.home span { background: var(--text); border-radius: 5px; transform: rotate(45deg); }
.live-map-pin.destination span { background: var(--green); border-radius: 50%; transform: none; }
.live-map-pin.destination span img { width: 100%; height: 100%; object-fit: cover; }
.live-map-pin.destination b { color: var(--green); }
.live-map-pin b { display: inline-block; max-width: 120px; margin-top: 4px; padding: 3px 6px; border-radius: 7px; background: var(--card); box-shadow: 0 1px 5px rgba(0,0,0,.15); font-size: .68em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-map-controls { position: absolute; z-index: 3; right: 10px; top: 10px; display: grid; overflow: hidden; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.live-map-controls button { width: 36px; height: 34px; background: var(--card); color: var(--text); font-size: 1.35em; line-height: 1; border-bottom: .5px solid var(--separator); }
.live-map-controls button:last-child { border-bottom: 0; }
.live-map-attribution { position: absolute; z-index: 3; right: 8px; bottom: 6px; padding: 2px 4px; background: rgba(255,255,255,.88); color: #333; font-size: 10px; line-height: 1.2; border-radius: 3px; }
.map-view-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 16px 12px; padding: 9px 11px; border-radius: 12px; background: var(--fill); color: var(--text-2); font-size: .78em; }
.map-view-choice span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.map-view-choice .icon { width: 15px; height: 15px; }
.map-view-choice button { flex-shrink: 0; color: var(--accent); font-weight: 600; font-size: 1em; }
:root[data-appearance="dark"] .live-map-tiles { filter: brightness(.72) saturate(.7) contrast(1.08); }
@media (prefers-reduced-motion: reduce) {
  .live-map-fallback, .live-map-stage { transition: none; }
}
.map-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 22px 16px;
  font-size: 0.8em;
  color: var(--text-2);
}

/* ============ Side menu ============ */

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  /* Same rule as .sheet-backdrop: no taps while invisible. */
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.menu-backdrop.in { opacity: 1; pointer-events: auto; }

.menu-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(310px, 84%);
  background: var(--bg);
  border-right: 0.5px solid var(--card-edge);
  padding: calc(var(--safe-top) + 22px) 0 calc(var(--safe-bottom) + 20px);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.36s var(--ease-spring);
  box-shadow: var(--lift-3);
}
.menu-backdrop.in .menu-panel { transform: none; }

.menu-head { display: flex; align-items: center; gap: 13px; padding: 0 22px 20px; }
.menu-head h2 { font-size: 1.55em; font-weight: 400; letter-spacing: -0.02em; }
.menu-head p { color: var(--text-2); font-size: 0.82em; margin-top: 3px; }

/* The family mark. Masked, so it takes the text colour and works in both
   light and dark without needing two files. */
.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("../assets/logo-mask.png") center / contain no-repeat;
  mask: url("../assets/logo-mask.png") center / contain no-repeat;
}
.brand-mark.sm { width: 26px; height: 26px; }
.brand-mark.lg { width: 64px; height: 64px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 22px;
  color: var(--text);
  text-align: left;
  position: relative;
}
.menu-item:active { background: var(--pressed); }
.menu-item .icon-box { width: 38px; height: 38px; border-radius: 11px; }
.menu-item .icon-box .icon { width: 19px; height: 19px; }
.menu-item b { font-size: 1em; font-weight: 500; flex: 1; }
.menu-item small { font-size: 0.78em; color: var(--text-2); }
.menu-item.on { background: var(--fill); }
.menu-item.on b { font-weight: 600; }
.menu-item.on::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--text);
}

.menu-sep { height: 0.5px; background: var(--separator); margin: 12px 22px; }
.menu-foot { padding: 16px 22px 0; font-size: 0.72em; color: var(--text-3); line-height: 1.6; }
.menu-foot b { display: block; color: var(--text-2); font-weight: 600; }

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