:root {
  --pod-active: #1a4a07;
  --slot-active: #0a3d6b;
  --all-active: #444441;
  --dog-card: #a8d870;
  --feed-panel: #eaf3de;
  --med-panel: #e6f1fb;
  --current-row: #fffde7;
  --current-border: #ffd600;
  --sep-bg: #fcebeb;
  --sep-border: #e24b4a;
  --allergy-bg: #fffde7;
  --allergy-border: #ffd600;
  --caught-up: #eaf3de;

  --tab-inactive-bg: #e7eaee;
  --tab-inactive-text: #2c3440;
  --text: #1a2433;
  --muted: #5a6b82;
  --border: #dde3ec;
  --surface: #ffffff;
  --bg: #f1f4f8;
  --shadow: 0 2px 8px rgba(15, 30, 60, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: contain;
  overflow-x: hidden;
  max-width: 100vw;
}
button { font: inherit; cursor: pointer; border: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--slot-active); text-decoration: none; }

/* ======== Topbar ======== */
.topbar {
  display: flex; align-items: center; gap: 14px;
  background: #1a2433; color: #fff;
  padding: 10px 18px;
  position: sticky; top: var(--view-toggle-h, 0); z-index: 30;
}
.topbar-actions { display: contents; }
.topbar-menu-btn { display: none; font-size: 18px; line-height: 1; padding: 6px 12px; }

/* ======== Top-level view toggle (Feeding & Meds / Daycare & Play) ======== */
.view-toggle {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 8px 14px;
  background: #0f1722;
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid #2a3a52;
}
.view-toggle-btn {
  background: rgba(255,255,255,0.08); color: #cbd6e5;
  border: 1px solid transparent;
  font-size: 15px; font-weight: 700;
  padding: 14px 18px; border-radius: 12px;
  cursor: pointer;
  min-height: 48px;
  transition: background-color 120ms ease, color 120ms ease;
}
.view-toggle-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.view-toggle-btn.active {
  background: var(--pod-active); color: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
/* Tasks tab alarm: any incontinence task past its deadline turns the tab red
   (wins over .active so it stays visible while you're on the tab). */
.view-toggle-btn.tab-overdue,
.view-toggle-btn.tab-overdue.active { background: #b91c1c; color: #fff; }
.view-toggle-btn.tab-overdue:hover { background: #991b1b; color: #fff; }
/* Grooming tab attention: a groom is done but its picture isn't marked taken. */
.view-toggle-btn.tab-attention,
.view-toggle-btn.tab-attention.active { background: #1d4ed8; color: #fff; }
.view-toggle-btn.tab-attention:hover { background: #1e40af; color: #fff; }

/* ======== Lodgers view ======== */
.lodgers-chrome { padding: 10px 14px 0; }
.lodgers-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lodgers-label { font-weight: 700; font-size: 14px; color: var(--text); }
.lodgers-select {
  flex: 0 1 220px; padding: 10px 12px; font-size: 15px; font-weight: 700;
  border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text);
}
#lodger-pods { display: flex; gap: 8px; flex-wrap: wrap; }
.lodger-pill { border: none; }
.lodgers-hint { padding: 24px 16px; color: var(--muted); font-size: 15px; }
.lodgers-round { padding: 12px 16px 4px; color: var(--muted); font-size: 14px; }
#lodger-board { padding-bottom: 24px; }
.lodger-pod-group { padding: 6px 14px 4px; }
.lodger-pod-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; color: var(--text);
  margin: 10px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.lodger-pod-count {
  font-size: 13px; font-weight: 800; color: var(--muted);
  background: var(--bg); border-radius: 999px; padding: 2px 10px;
}
.lodger-tiles {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* ======== Cleaning view ======== */
.cleaning-chrome { padding: 10px 14px 0; }
#cleaning-pods { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cleaning-pill { display: inline-flex; align-items: center; gap: 6px; }
.cleaning-pill .clean-badge { font-size: 13px; font-weight: 800; }
.cleaning-controls { margin: 4px 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cleaning-history-search { display: inline-flex; align-items: center; gap: 6px; }
.cleaning-history-search input {
  width: 90px; padding: 8px 10px; font-size: 14px; font-weight: 700;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
}
#cleaning-setup-toggle.primary-green { background: var(--pod-active); color: #fff; }
.cleaning-hint { padding: 8px 16px; color: var(--muted); font-size: 14px; }
.cleaning-rooms {
  display: grid; gap: 10px; padding: 4px 14px 24px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.clean-room {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 10px; text-align: center; cursor: pointer; user-select: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.clean-room.setup { cursor: default; }
.clean-room-num { font-size: 18px; font-weight: 800; color: var(--text); }
.clean-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.clean-chip {
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
}
.clean-chip.chip-disinfect { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }
.clean-room-by { font-size: 12px; font-weight: 700; color: #166534; min-height: 14px; }
.clean-room.done { background: #dcfce7; border-color: #86efac; }
.clean-setup-toggles { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.clean-toggle {
  font-size: 13px; font-weight: 700; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer;
}
.clean-toggle.on { background: var(--pod-active); color: #fff; border-color: var(--pod-active); }

/* View filter — hide elements whose data-view doesn't match active view.
   Composes with the existing inline display:none on alert pills (empty-state). */
.hidden-by-view { display: none !important; }
.topbar .title { font-weight: 700; font-size: 17px; flex: 1; }
.topbar .role-pill {
  background: rgba(255,255,255,.14);
  padding: 4px 12px; border-radius: 999px; font-size: 13px;
}
.topbar .topbtn {
  background: rgba(255,255,255,.12); color: #fff;
  padding: 7px 14px; border-radius: 8px; font-size: 13px;
}
.topbar .topbtn:hover { background: rgba(255,255,255,.22); }
.topbar .topbtn.add-dog { background: var(--pod-active); }
.topbar .topbtn.add-dog:hover { filter: brightness(1.15); background: var(--pod-active); }
.page-tabs .manager-checkout-only {
  background: #d3322f; color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 700;
  padding: 9px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.page-tabs .manager-checkout-only:hover { filter: brightness(1.1); }
.page-tabs .manager-checkout-only .mc-count {
  background: rgba(255,255,255,0.25); border-radius: 999px;
  padding: 1px 8px; font-weight: 800; min-width: 18px; text-align: center; font-size: 12px;
}

.staff-mgr { padding: 4px 0; }
.staff-table { width: 100%; border-collapse: collapse; }
.staff-table th, .staff-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: middle;
}
.staff-table th {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); font-weight: 700;
}
.staff-table tr.disabled { opacity: 0.55; }
.staff-table .staff-role {
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; font-size: 13px;
}
.staff-table .btn.small {
  padding: 6px 10px; font-size: 12px; margin-left: 4px;
}

.mc-list { display: flex; flex-direction: column; gap: 10px; }
.mc-row {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  padding: 12px 14px; background: #f5f7fa; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.mc-row:hover { background: #fff; border-color: var(--slot-active); box-shadow: var(--shadow); }
.mc-row .mc-row-head {
  display: flex; align-items: center; gap: 12px;
}
.mc-row .mc-row-title { display: flex; flex-direction: column; gap: 2px; }
.mc-row .mc-row-title strong { font-size: 16px; }
.mc-row .mc-row-title .ds-meta { color: var(--muted); font-size: 13px; }

.ds-results { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.ds-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 12px; background: #f5f7fa; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.ds-row:hover { background: #e6f1fb; border-color: var(--slot-active); }
.ds-row strong { font-size: 15px; }
.ds-row .ds-meta { color: var(--muted); font-size: 13px; }
.ds-empty { color: var(--muted); font-style: italic; padding: 8px 4px; }

/* ======== Add-Dog candidate picker ======== */
.ad-candidate-row { flex-direction: row !important; align-items: center !important; gap: 12px !important; }
.ad-candidate-row .ad-candidate-text { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.ad-candidate-row strong { font-size: 15px; }
.ad-candidate-row.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.ad-new-row { background: #e6f1fb !important; border-color: var(--slot-active) !important; }
.ad-new-plus {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--slot-active); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; flex-shrink: 0;
}
.ad-returning-banner {
  background: #e6f1fb; border: 1px solid #c1dbf1; color: #0a3d6b;
  margin-bottom: 14px; border-radius: 10px; padding: 10px 14px; font-size: 14px;
}
.toggle-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ======== Owner line on dog card ======== */
.dog-card .meta.owner-line { font-size: 13px; opacity: 0.85; margin-top: 2px; }

/* ======== History view ======== */
.history-header {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0 18px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.history-header .avatar { width: 80px; height: 80px; font-size: 28px; cursor: default; }
.history-header .avatar:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.history-header .h-name { font-size: 22px; font-weight: 800; }
.history-header .h-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.history-header .h-active-pill {
  display: inline-block; background: var(--pod-active); color: #fff;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-left: 8px;
}
.history-empty { padding: 30px 12px; text-align: center; color: var(--muted); font-style: italic; }

.stay-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px;
}
.stay-card.active { border-color: var(--pod-active); box-shadow: 0 2px 8px rgba(26,74,7,0.1); }
.stay-card-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  font-weight: 700; font-size: 15px;
}
.stay-card-head .stay-dates { color: var(--text); }
.stay-card-head .stay-meta { color: var(--muted); font-weight: 500; font-size: 13px; }
.stay-card .stay-notes { font-size: 13px; color: var(--muted); margin-top: 6px; font-style: italic; }
.stay-card .show-detail-btn {
  background: transparent; color: var(--slot-active); border: 0;
  padding: 6px 0; font-weight: 600; font-size: 13px; cursor: pointer; margin-top: 8px;
}
.stay-card .show-detail-btn:hover { text-decoration: underline; }
.stay-card .stay-detail { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }

/* Eating heatmap */
.eating-heatmap { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.eating-row { display: flex; align-items: center; gap: 6px; }
.eating-slot-label { width: 36px; font-size: 12px; font-weight: 700; color: var(--muted); }
.eating-cells { display: flex; gap: 2px; flex-wrap: wrap; }
.eating-cell {
  width: 14px; height: 14px; border-radius: 3px;
  background: #eee; border: 1px solid var(--border);
}
.eating-cell.eaten-good { background: #dff1e4; border-color: #88c89c; }
.eating-cell.eaten-mid { background: #fff2c1; border-color: #e6c05a; }
.eating-cell.eaten-bad { background: #fde2e2; border-color: #e08c8c; }
.eating-cell.empty { background: #f5f5f5; border-color: #ddd; }
.eating-cell.completed-no-rating { background: #e8e8f0; border-color: #c8c8d8; }
.eating-cell.future { background: transparent; border-style: dashed; opacity: 0.5; }
.eating-legend { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.eating-legend .swatch {
  display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  vertical-align: middle; margin-right: 4px; border: 1px solid var(--border);
}

/* ======== Login ======== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 4px; font-size: 26px; color: var(--pod-active); }
.login-card .sub { color: var(--muted); margin-bottom: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-weight: 600; font-size: 13px; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  background: #f5f7fa; border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; font-size: 15px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--slot-active); border-color: transparent;
}

/* Show/hide password toggle. Wrap injected by addPasswordToggles() at runtime. */
.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; padding-right: 44px !important; }
.pw-toggle {
  position: absolute;
  right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted);
  border: 0; border-radius: 6px;
  padding: 0; cursor: pointer;
}
.pw-toggle:hover { color: var(--text); background: rgba(15, 30, 60, 0.06); }
.pw-toggle:focus-visible { outline: 2px solid var(--slot-active); outline-offset: 2px; }
.pw-toggle svg { width: 18px; height: 18px; display: block; }
.form-field select.has-selection {
  background: var(--slot-active); color: #fff; font-weight: 700; border-color: var(--slot-active);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; background: var(--slot-active); color: #fff;
  border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }
.btn.primary-green { background: var(--pod-active); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--bg); }
.btn.danger { background: #c93333; }
.btn.success { background: #2e8b57; }
.btn.block { width: 100%; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.err { background: #fdeaea; color: #7c1c1c; border: 1px solid #f3bcbc; padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
.hints { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ======== Page tabs (top-level Feeding & Meds / Daycare) ======== */
.page-tabs {
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; padding: 8px 14px; gap: 0.5in;
  align-items: center;
  position: sticky;
  top: calc(var(--view-toggle-h, 0px) + var(--topbar-h, 48px));
  z-index: 6;
}
.tab.page {
  flex: 0 0 auto; font-size: 14px; font-weight: 700;
  padding: 9px 18px; border-radius: 10px;
  background: var(--tab-inactive-bg); color: var(--tab-inactive-text);
}
.tab.page.active { background: var(--pod-active); color: #fff; }

/* Left-side container. Board tabs live in per-program groups; the larger gap here
   separates one program from the next, and groups wrap as whole units when narrow. */
.page-tabs .page-tabs-left {
  display: inline-flex; align-items: center;
  flex-wrap: wrap; column-gap: 30px; row-gap: 10px;
}
.page-tabs .page-tabs-right {
  display: inline-flex; align-items: center; gap: 12px;
  margin-left: auto;
}
.page-tabs .topbtn.concern-alert {
  background: #f59e0b; color: #fff; border: 1px solid #d68303;
  font-size: 14px; font-weight: 700;
  padding: 9px 14px; border-radius: 10px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.page-tabs .topbtn.concern-alert:hover { background: #e58e00; }
/* Each program's AM/PM pair is a tight, unbreakable group: the two tabs sit close
   (but don't touch) and never split across rows. */
.page-tabs .board-tab-group {
  display: inline-flex; align-items: stretch; gap: 6px;
  flex: 0 0 auto;
}
/* All eight board tabs share one uniform size. Scoped to grouped tabs so the
   Feeding & Meds / Visit Notes tabs keep sizing to their own text. */
.page-tabs .board-tab-group .tab.page {
  width: 132px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; white-space: normal; line-height: 1.15;
  padding: 6px 10px;
}
.tab.page[data-page="daycare-am"],
.tab.page[data-page="daycare-pm"] {
  background: #2c79e6; color: #fff;
}
.tab.page[data-page="daycare-am"].active,
.tab.page[data-page="daycare-pm"].active {
  background: #1e5cb8; color: #fff;
}
.tab.page[data-page="daycare-am"]:hover,
.tab.page[data-page="daycare-pm"]:hover {
  filter: brightness(1.05);
}

/* ======== Daycare columns ======== */
.daycare-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  padding: 14px;
  overflow-x: auto;
}
.daycare-column { min-width: 0; }
.daycare-column .column-head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  font-weight: 700; font-size: 14px;
}
.daycare-column .column-head .swatch {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border);
  flex-shrink: 0;
}
.daycare-column .column-head .col-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.daycare-column .column-head .count {
  background: var(--tab-inactive-bg); color: var(--tab-inactive-text);
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.daycare-column .column-body {
  display: flex; flex-direction: column; gap: 10px;
}
.daycare-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; text-align: center;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  /* pan-y lets a plain swipe on a tile scroll the board (phones!). Moving a dog
     requires the hold-to-drag gesture in app.js, which preventDefaults touchmove
     once the tile is "lifted" so the browser can't hijack the drag as a scroll. */
  touch-action: pan-y;
}
/* Hold-to-drag: after a ~1/3s hold the tile "lifts" — drag it to a tab, or
   release in place for the collar color picker. */
.daycare-tile.drag-armed {
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  z-index: 5;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.daycare-tile .tile-badge {
  position: absolute; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%; border: none; padding: 0;
  font-size: 12px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 2;
}
.daycare-tile .tile-badge-perm  { top: 6px;    background: #2c79e6; }
.daycare-tile .tile-badge-visit { bottom: 6px; background: #f08a23; }
.daycare-tile .tile-badge:hover { filter: brightness(0.95); }

.note-popover {
  position: fixed; max-width: 280px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  padding: 10px 12px; z-index: 1100;
  font-size: 14px; line-height: 1.4; white-space: pre-wrap;
}
.note-popover .np-head {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.note-popover .np-close {
  background: transparent; border: none; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0; color: var(--muted);
}

/* ======== All-dogs roll-call dropdown (Feeding & Meds → double-tap All dogs) ======== */
.checkin-dropdown {
  position: fixed; width: 300px; max-width: calc(100vw - 12px);
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  z-index: 1100; overflow: hidden;
}
.checkin-dropdown .cd-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.checkin-dropdown .cd-count { font-weight: 800; font-size: 15px; color: var(--pod-active); }
.checkin-dropdown .cd-close {
  background: transparent; border: none; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0; color: var(--muted);
}
.checkin-dropdown .cd-sort {
  display: flex; gap: 6px; padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.checkin-dropdown .cd-sort-btn {
  flex: 1 1 0; padding: 7px 10px; cursor: pointer;
  font-size: 13px; font-weight: 700;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text);
}
.checkin-dropdown .cd-sort-btn.active {
  background: var(--pod-active); color: #fff; border-color: var(--pod-active);
}
.checkin-dropdown .cd-hint {
  padding: 6px 12px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.checkin-dropdown .cd-list { max-height: 60vh; overflow-y: auto; }
.checkin-dropdown .cd-empty { padding: 16px 12px; color: var(--muted); font-size: 14px; }
.checkin-dropdown .cd-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
}
.checkin-dropdown .cd-row:last-child { border-bottom: none; }
.checkin-dropdown .cd-row:hover { background: var(--bg); }
.checkin-dropdown .cd-room {
  min-width: 34px; text-align: center; font-weight: 800; font-size: 13px;
  color: var(--muted); background: var(--bg); border-radius: 6px; padding: 2px 4px;
}
.checkin-dropdown .cd-name { flex: 1 1 auto; font-weight: 700; font-size: 15px; word-break: break-word; }
.checkin-dropdown .cd-check { color: var(--pod-active); font-weight: 800; font-size: 18px; visibility: hidden; }
/* Grooming+daycare dogs appear twice in the roll call, highlighted amber. */
.checkin-dropdown .cd-row.dual { background: #fff3c4; }
.checkin-dropdown .cd-row.dual.present { background: #e4efb8; }
.checkin-dropdown .cd-tag { font-size: 11px; font-weight: 600; color: #8a5a00; margin-left: 6px; }
.checkin-dropdown .cd-row.present { background: #eaf6e0; }
.checkin-dropdown .cd-row.present .cd-check { visibility: visible; }
.daycare-tile:hover { border-color: var(--slot-active); box-shadow: var(--shadow); }
.daycare-tile .tile-name { font-weight: 700; font-size: 16px; line-height: 1.2; word-break: break-word; }
.daycare-tile .tile-room { font-size: 13px; font-weight: 700; }
.daycare-tile .tile-meta {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; margin-bottom: 4px;
  font-size: 13px; font-weight: 700;
}
.daycare-tile .tile-meta .tile-dates { white-space: nowrap; }
.daycare-tile .tile-session {
  align-self: flex-start; width: 100%; text-align: left;
  margin-top: auto;
  font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.daycare-tile .uncategorized-photo {
  width: 60px; height: 60px; border-radius: 50%;
  background: #fff; color: var(--pod-active);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; border: 1px solid var(--border);
}

/* Attendance — double-click toggles this class on the tile */
.daycare-tile.present {
  background: #dcfce7;
  border-color: #86efac;
}
.daycare-tile.present:hover { border-color: #4ade80; }

/* Drag-to-move between Daycare AM / PM tabs */
.daycare-tile.dragging-source { opacity: 0.4; pointer-events: none; }
.daycare-tile-drag-clone {
  position: fixed; pointer-events: none; z-index: 1000;
  transform: translate(-50%, -50%) rotate(2deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
body.daycare-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.pp-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.tab.page.drop-target-active {
  outline: 3px solid var(--pod-active);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--pod-active) 20%, white);
}

/* ======== Personal Play board ======== */
#personal-play-page {
  display: flex;
  flex-direction: row;
  height: calc(100vh - var(--topbar-h, 56px) - var(--page-tabs-h, 56px));
  background: var(--bg);
}
.pp-board {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-width: 0;
}
.pp-red-column {
  flex: 0 0 200px;
  background: var(--bg);
  border-right: 2px solid #d3322f;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.pp-red-column .column-head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 4px;
  min-height: 50px;
  border-bottom: 1px solid color-mix(in srgb, #d3322f 30%, transparent);
  font-weight: 700; font-size: 14px;
}
.pp-red-column .column-head .swatch {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
}
.pp-red-column .column-head .col-label { flex: 1; text-align: center; }
.pp-red-column .column-head .count {
  background: #d3322f; color: #fff;
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.pp-red-column .pp-red-body { display: flex; flex-direction: column; gap: 8px; }

.pp-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pp-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.pp-toolbar-info { font-weight: 600; font-size: 14px; color: var(--text, #1a2030); }

.pp-unassigned-strip {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--border);
  background: #fffbeb;
  overflow-x: auto;
}
.pp-unassigned-strip .pp-unassigned-label {
  font-weight: 700; font-size: 13px;
  color: #b45309;
  align-self: center;
  white-space: nowrap;
  padding-right: 8px;
  border-right: 1px solid color-mix(in srgb, #b45309 30%, transparent);
}
.pp-unassigned-strip .pp-unassigned-body {
  display: flex; gap: 10px; align-items: stretch;
}
.pp-unassigned-strip.drop-target-active {
  outline: 3px solid #f59e0b;
  outline-offset: -3px;
}

.pp-group-row {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  align-items: flex-start;
  overflow-x: auto;
  flex: 1;
  min-height: 0;
}
.pp-group-column {
  flex: 0 0 200px;
  min-width: 200px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  transition: background-color 120ms ease;
}
.pp-group-column.completed { background: #dcfce7; border-color: #86efac; }
.pp-group-column.has-incompatibility {
  border-top: 4px solid #d3322f;
  position: relative;
}
.pp-group-column.has-incompatibility::after {
  content: "⚠ Incompatible pair";
  position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  background: #d3322f; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.pp-group-column.drop-target-active {
  outline: 3px solid var(--pod-active);
  outline-offset: -3px;
  background: color-mix(in srgb, var(--pod-active) 12%, white);
}
.pp-group-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 4px;
  min-height: 50px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 14px;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
.pp-group-name { font-size: 15px; }
.pp-group-count {
  background: var(--tab-inactive-bg, #e5e7eb);
  color: var(--tab-inactive-text, #1f2937);
  padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.pp-group-count.over-cap { background: #fee2e2; color: #b91c1c; }
.pp-group-body { display: flex; flex-direction: column; gap: 8px; }

/* PP tile reuses .daycare-tile styling; .pp-tile is a hook for any future overrides */
.pp-tile { /* visually identical to .daycare-tile */ }

/* Incompatibility warning modal — red emphasis */
.modal.pp-incompat-modal {
  border: 3px solid #d3322f;
}
.modal.pp-incompat-modal .modal-header h2 {
  color: #d3322f;
}

/* Incompatibility section inside the edit-profile modal */
.ed-incompat-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ed-incompat-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: color-mix(in srgb, #d3322f 6%, white);
  border: 1px solid color-mix(in srgb, #d3322f 25%, var(--border));
  border-radius: 8px;
}
.ed-incompat-name { flex: 1; font-weight: 600; }
.ed-incompat-add { position: relative; }
.ed-incompat-add input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 8px;
}
.ed-incompat-results {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  margin-top: 4px;
  z-index: 10;
  max-height: 240px; overflow-y: auto;
}
.ed-incompat-result {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.ed-incompat-result:hover { background: #f3f4f6; }
.ed-incompat-empty { padding: 10px; color: var(--muted); font-size: 13px; }

/* Personal Play (red collar) tabs — solid red, white text */
.tab.page[data-page="personal-play-am"],
.tab.page[data-page="personal-play-pm"] {
  background: #c0392b; color: #fff;
}
.tab.page[data-page="personal-play-am"].active,
.tab.page[data-page="personal-play-pm"].active {
  background: #8e2418; color: #fff;
}
.tab.page[data-page="personal-play-am"]:hover,
.tab.page[data-page="personal-play-pm"]:hover {
  filter: brightness(1.05);
}

/* Small Group Play (purple collar) tabs — solid purple, white text */
.tab.page[data-page="small-group-play-am"],
.tab.page[data-page="small-group-play-pm"] {
  background: #9046d6; color: #fff;
}
.tab.page[data-page="small-group-play-am"].active,
.tab.page[data-page="small-group-play-pm"].active {
  background: #6f2eb0; color: #fff;
}
.tab.page[data-page="small-group-play-am"]:hover,
.tab.page[data-page="small-group-play-pm"]:hover {
  filter: brightness(1.05);
}

/* Potty Break tabs — solid green at all times, white text */
.tab.page[data-page="potty-break-am"],
.tab.page[data-page="potty-break-pm"] {
  background: #2ea043; color: #fff;
}
.tab.page[data-page="potty-break-am"].active,
.tab.page[data-page="potty-break-pm"].active {
  background: #1f7a31; color: #fff;
}
.tab.page[data-page="potty-break-am"]:hover,
.tab.page[data-page="potty-break-pm"]:hover {
  filter: brightness(1.05);
}

/* Shared count badge for the four PP/SGP tabs. White on translucent so it reads
   on both the red and the purple backgrounds. */
.tab.page .board-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

/* Personal Play (red-only) board: responsive tile grid filling full width. */
.pp-red-board { padding-bottom: 16px; }
.pp-red-header {
  padding: 14px 16px 4px 16px;
  font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 10px;
}
.pp-red-header .swatch {
  width: 14px; height: 14px; border-radius: 50%; background: #c0392b;
}
.pp-red-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 12px 14px 14px 14px;
}
.pp-red-empty {
  grid-column: 1 / -1;
  text-align: center; color: var(--muted); font-style: italic; padding: 24px 0;
}

/* ======== Visit Specific Notes tab + page ======== */
/* Sits on the right side of the page-tabs row, alongside the Manager Checkout
   Only pill. Solid navy blue (matches active slot tabs) with white text/badge. */
.page-tabs .visit-notes-tab {
  background: var(--slot-active);
  color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 700;
  padding: 9px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.page-tabs .visit-notes-tab:hover { filter: brightness(1.1); }
.page-tabs .visit-notes-tab.active {
  background: var(--slot-active); color: #fff;
  box-shadow: 0 1px 6px rgba(10, 61, 107, 0.35);
}
.visit-notes-tab .visit-notes-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
/* Group play notes pill — same size/shape as the Visit Notes pill, purple. */
.page-tabs .group-notes-pill {
  background: #7c3aed;
  color: #fff;
  border: none; cursor: pointer;
  font-size: 14px; font-weight: 700;
  padding: 9px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.page-tabs .group-notes-pill:hover { filter: brightness(1.1); }
.page-tabs .fast-pill { background: #c0392b; }
.page-tabs .lodging-notes-pill { background: #1f6f8b; }
.group-notes-pill .gn-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
#visit-notes-page { padding: 14px 18px; }
.visit-notes-list { display: flex; flex-direction: column; gap: 10px; }
.visit-notes-row {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid #c0392b;
  border-radius: 8px;
  padding: 12px 14px;
}
.visit-notes-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.visit-notes-dog-name { font-size: 17px; }
.visit-notes-room { color: var(--muted); font-size: 13px; }
.visit-notes-text {
  white-space: pre-wrap;
  line-height: 1.4;
  font-size: 14px;
}
.visit-notes-empty {
  color: var(--muted);
  font-style: italic;
  padding: 24px 0;
  text-align: center;
}

/* ======== Tabs ======== */
.tabs-wrap { background: #fff; border-bottom: 1px solid var(--border); }
.tabs-row {
  display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto;
  scrollbar-width: thin;
}
.tabs-row::-webkit-scrollbar { height: 6px; }
.tab {
  flex: 0 0 auto;
  background: var(--tab-inactive-bg); color: var(--tab-inactive-text);
  padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 17px;
  display: inline-flex; align-items: center; gap: 12px;
  border: 0;
}
.tab:hover { filter: brightness(0.97); }
.tab .badge {
  background: rgba(0,0,0,.15); color: inherit;
  border-radius: 999px; padding: 3px 12px; font-size: 16px; font-weight: 800;
  min-width: 32px; text-align: center;
  white-space: nowrap;
}
.tab.active { color: #fff; }
.tab.active .badge { background: rgba(255,255,255,.25); color: #fff; }
.tab.pod.active { background: var(--pod-active); }
/* Pod pill alarm: unmarked feedings/meds past their slot deadline. Active pod
   goes darker red so you can still tell where you are. */
.tab.pod.overdue { background: #b91c1c; color: #fff; }
.tab.pod.overdue .badge { background: rgba(255,255,255,.25); color: #fff; }
.tab.pod.overdue.active { background: #7f1d1d; }
.tab.slot.active { background: var(--slot-active); }
.tab.all.active { background: var(--all-active); }

.filter-indicator {
  background: var(--slot-active); color: #fff;
  padding: 6px 16px; font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.filter-indicator button {
  background: rgba(255,255,255,.2); color: #fff;
  padding: 4px 10px; border-radius: 6px; font-size: 12px;
}

/* ======== Dog nav ======== */
.dog-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: calc(var(--topbar-h, 48px) + var(--page-tabs-h, 50px)); z-index: 5;
  box-shadow: 0 2px 6px rgba(15, 30, 60, 0.05);
}
.dog-nav .arrow {
  width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg);
  font-size: 22px; font-weight: 700; color: var(--text);
}
.dog-nav .arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.dog-nav .counter { flex: 1; text-align: center; font-weight: 700; font-size: 16px; }
.dog-nav .counter small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 2px; }
.dog-nav .actions { display: flex; gap: 8px; }

/* ======== Main container ======== */
.main {
  max-width: 1100px; margin: 0 auto; padding: 16px;
}
.empty {
  background: #fff; border: 1px dashed var(--border); border-radius: 12px;
  padding: 28px; text-align: center; color: var(--muted);
}

/* ======== Dog card ======== */
.dog-card {
  background: var(--dog-card);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(26, 74, 7, 0.12);
  color: #1a2a0a;
}
.dog-card-top { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 62px; height: 62px; border-radius: 50%;
  background: #fff; color: var(--pod-active);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
  cursor: pointer; overflow: hidden;
  transition: box-shadow 0.15s;
}
.avatar:hover { box-shadow: 0 0 0 3px rgba(255,255,255,0.7), 0 2px 6px rgba(0,0,0,0.15); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-preview {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 12px;
  padding: 14px; min-height: 200px;
}
.av-preview img { max-width: 100%; max-height: 280px; border-radius: 12px; box-shadow: var(--shadow); }
.av-placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  background: #fff; color: var(--pod-active);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 36px;
  box-shadow: var(--shadow);
}
.dog-card .name { font-size: 24px; font-weight: 800; line-height: 1.1; }
.dog-card .meta { font-size: 13px; color: #2d3f13; margin-top: 4px; }
.dog-card .buttons { margin-left: auto; display: flex; gap: 8px; flex-shrink: 0; }
.dog-card .buttons .btn.ghost { background: #fff; }
.dog-card .buttons .btn.ghost:hover { background: #f0f0f0; }
.dog-card .manager-checkout-row { text-align: right; margin-top: 6px; }
.btn.attention { background: #f5d800; color: #2d3f13; }
.btn.attention:hover { filter: brightness(0.95); }
.dog-card .attention-section .notes-box,
.attention-section .notes-box {
  background: #fff7c2;
  border: 1px solid #f5d800;
}
.dog-card .attention-section .notes-label,
.attention-section .notes-label { color: #6b5b00; }

.btn.dietary { background: #f08a23; color: #fff; }
.btn.dietary:hover { filter: brightness(0.95); }
.btn.history { background: var(--slot-active); color: #fff; }
.btn.history:hover { filter: brightness(1.1); }
.dog-card .dietary-section .notes-box,
.dietary-section .notes-box {
  background: #fff2e3;
  border: 1px solid #f0b88a;
}
.dog-card .dietary-section .notes-label,
.dietary-section .notes-label { color: #8a4a00; }
.log-table .badge-see-manager {
  background: #fff2e3; color: #8a4a00; border: 1px solid #f08a23;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.log-table .action-inline {
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: nowrap;
}
.dog-card .manager-checkout-tag {
  display: inline-block;
  background: #d3322f;
  color: #fff;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.dog-card .slot-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.slot-pill {
  background: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #2d3f13; border: 1px solid rgba(0,0,0,0.08);
  display: inline-flex; align-items: center; gap: 4px;
}
.dog-card .notes-box {
  background: rgba(255,255,255,0.55); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; white-space: pre-wrap;
  min-height: 34px;
}
.dog-card .notes-section { margin-top: 12px; }
.dog-card .notes-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: #2d3f13; margin-bottom: 4px;
}

/* ======== Pre-checkout verification modal ======== */
.pre-co-section {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px;
  background: #fafaf7;
  transition: opacity 120ms ease;
}
.pre-co-section .pre-co-head {
  font-weight: 700; font-size: 14px; margin-bottom: 6px;
}
.pre-co-section .pre-co-check {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  cursor: pointer;
}
.pre-co-section .pre-co-check input { width: 18px; height: 18px; }
.pre-co-section.pre-co-locked {
  opacity: 0.45;
  pointer-events: none;
}

/* ======== Banners ======== */
.banner {
  padding: 12px 16px; border-radius: 10px; margin-top: 12px;
  border-left: 6px solid; font-size: 14px; font-weight: 600;
}
.banner.separate { background: var(--sep-bg); border-color: var(--sep-border); color: #7b1f1f; }
.banner.allergy { background: var(--allergy-bg); border-color: var(--allergy-border); color: #6b4e00; }
.banner.extended { background: #e8f7ea; border-color: #2e8b57; color: #1f5e38; }
.banner.caught-up { background: var(--caught-up); border-color: var(--pod-active); color: #1f4b0a; text-align: center; font-weight: 600; margin-top: 14px; }

/* ======== Panels ======== */
.panel {
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 16px;
  border: 1px solid var(--border);
}
.panel.feeding { background: var(--feed-panel); border-color: #cfe0b4; }
.panel.medication { background: var(--med-panel); border-color: #c1dbf1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-head h3 { margin: 0; font-size: 16px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; font-size: 14px; }
.kv .k { color: var(--muted); font-weight: 600; }
.kv .v { white-space: pre-wrap; }
.read-only-pill { background: rgba(0,0,0,.06); color: var(--muted); padding: 2px 10px; border-radius: 999px; font-size: 12px; }

.slot-chip {
  display: inline-block; background: #fff; color: var(--text);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px;
  margin-right: 6px; margin-bottom: 4px; font-size: 13px;
}
.meal-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; margin-top: 8px;
}
.meal-card .meal-head { font-weight: 700; color: var(--pod-active); margin-bottom: 4px; font-size: 14px; }
.meal-slot-head { font-weight: 700; color: var(--pod-active); font-size: 14px; margin: 12px 0 4px 0; }
.meal-slot-block { margin-bottom: 14px; }

.med-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-top: 10px;
}
.med-card .med-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.med-card .med-head .med-name { font-weight: 700; font-size: 16px; }
.as-needed { background: #e6f1fb; color: var(--slot-active); padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* ======== Log tables ======== */
.log-scroll {
  max-height: 55vh;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  margin-top: 10px;
}
/* Mouse-driven devices (notably Windows wheel mice): the wheel "latches" to the
   hovered scrollbox, so with the wide boxed log tables the page only scrolls
   from the right-hand gutter. On fine-pointer devices, let the tables run full
   length and scroll with the page. Touch devices keep the compact boxed logs. */
@media (hover: hover) and (pointer: fine) {
  .log-scroll { max-height: none; }
  /* Full-length tables scroll with the page — a sticky header row would pin
     behind the app's sticky top bars, so let it scroll normally instead. */
  .log-scroll .log-table thead th { position: static; }
}
.log-owner-notes {
  background: var(--feed-panel);
  border: 1px solid #cfe0b4;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.log-owner-notes strong { color: var(--pod-active); margin-right: 4px; }
#medication-log-section .log-owner-notes {
  background: var(--med-panel);
  border-color: #c1dbf1;
}
#medication-log-section .log-owner-notes strong { color: var(--slot-active); }
.log-table {
  width: 100%; border-collapse: collapse;
  background: #fff; font-size: 14px;
}
.log-scroll .log-table { margin-top: 0; }
.log-table thead th {
  position: sticky; top: 0; z-index: 2;
}
.log-table th, .log-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: middle;
}
.log-table th {
  background: #f3f6fa; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.log-table tr.current {
  background: var(--current-row) !important;
  border-left: 4px solid var(--current-border);
  box-shadow: inset 4px 0 0 var(--current-border);
}
/* Multi-item meal slot rows: drop the top border on continued rows so grouped items
   read as one block. The blank date/slot cells already convey grouping; no rails needed. */
.log-table tr.feed-item-continued td { border-top: 0; }
.log-table tr.scheduled td { color: var(--muted); background: #fafbfd; }
.log-table .badge-scheduled {
  background: #eaeaf2; color: #445; padding: 2px 8px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
}
.log-table .badge-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.log-table .badge-stack > span { margin-right: 0; }
.log-table .badge-separate { background: var(--sep-bg); color: var(--sep-border); border: 1px solid var(--sep-border); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-right: 4px; }
.log-table .badge-allergy { background: var(--allergy-bg); color: #7a5b00; border: 1px solid var(--allergy-border); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-right: 4px; }
.log-table .badge-extended { background: #e8f7ea; color: #1f5e38; border: 1px solid #9dd4ae; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-left: 4px; }
.log-table .badge-done { background: #e3f5ea; color: #1f7a43; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.log-table .badge-notneeded { background: #eaeaf2; color: #444; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.log-table .badge-urine { background: #e6f1fb; color: var(--slot-active); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid #b9d3ee; margin-right: 4px; }
.log-table .badge-added { background: var(--slot-active); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.log-table .badge-dietary-action {
  display: inline-block;
  background: #fff2e3; color: #8a4a00; border: 1px solid #f08a23;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; margin-top: 4px;
}
.log-table .badge-stool { background: #fff2c1; color: #856000; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid #e6c05a; margin-right: 4px; }
.log-table .badge-vomit { background: var(--sep-bg); color: var(--sep-border); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--sep-border); margin-right: 4px; }
/* Medical fast — shouts at staff to prevent accidental feeding. */
.badge-fasting {
  display: inline-block;
  background: #c93333;
  color: #fff;
  border: 1px solid #a81414;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(168,20,20,0.25);
}
.log-table tr.log-row.fasting td { background: #fdecec; }
.log-table tr.log-row.fasting.current td { background: #fbd5d5; }
.fasting-banner {
  background: #c93333;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(168,20,20,0.3);
}
.fasting-banner .reason { font-weight: 500; font-size: 13px; margin-top: 6px; opacity: 0.95; }
.fasting-banner-inline {
  background: #c93333;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.log-table .pending-text { color: var(--muted); font-style: italic; font-size: 13px; }
.log-table .undo-btn, .log-table .delete-btn {
  padding: 5px 10px; background: var(--bg); color: var(--text);
  border-radius: 6px; font-size: 12px; border: 1px solid var(--border);
}
/* Tap-safety: push the ✕ away from the green action button so staff don't
   mis-tap on phones. Both feeding-log and medication-log .action-cell rows
   share the same .delete-btn. */
.log-table .delete-btn { margin-left: 20px; }
.log-table .complete-btn { background: var(--pod-active); color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.log-table .given-btn { background: var(--slot-active); color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; }
.log-table .notneeded-btn { background: #888; color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; margin-left: 4px; }
.log-table .record-btn { background: #fff; color: var(--slot-active); border: 1px solid var(--slot-active); padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }

.eaten-pill {
  display: inline-block;
  padding: 3px 12px; border-radius: 999px;
  font-weight: 800; font-size: 13px;
  border: 1px solid transparent;
}
.eaten-pill.eaten-bad { background: #fde2e2; color: #a81414; border-color: #f1a3a3; }
.eaten-pill.eaten-mid { background: #fff2c1; color: #7a5b00; border-color: #e6c05a; }
.eaten-pill.eaten-good { background: #dff1e4; color: #1e6f3b; border-color: #9dd4ae; }

/* Eaten toggle buttons in the Record Amount modal: tint the outline by color,
   and fill the button fully once selected. */
.toggle-btn.eaten-toggle.eaten-bad { border-color: #f1a3a3; color: #a81414; }
.toggle-btn.eaten-toggle.eaten-mid { border-color: #e6c05a; color: #7a5b00; }
.toggle-btn.eaten-toggle.eaten-good { border-color: #9dd4ae; color: #1e6f3b; }
.toggle-btn.eaten-toggle.eaten-bad.on { background: #c93333; border-color: #c93333; color: #fff; }
.toggle-btn.eaten-toggle.eaten-mid.on { background: #e6b800; border-color: #e6b800; color: #221a00; }
.toggle-btn.eaten-toggle.eaten-good.on { background: #2e8b57; border-color: #2e8b57; color: #fff; }
.log-table .thumb { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; cursor: pointer; border: 1px solid var(--border); }

/* ======== Modal ======== */
#modal-root { position: fixed; inset: 0; pointer-events: none; z-index: 100; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(15,30,60,.5);
  pointer-events: auto; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
}
.modal.wide { max-width: 800px; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-btn {
  background: #fff; border: 2px solid var(--border); color: var(--text);
  padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px;
}
.toggle-btn.on { background: var(--slot-active); color: #fff; border-color: var(--slot-active); }
.toggle-btn.feed-on.on { background: var(--pod-active); border-color: var(--pod-active); }

.info-card {
  background: var(--bg); border-radius: 10px; padding: 12px 14px;
  margin-bottom: 12px; font-size: 14px; line-height: 1.5;
}
.info-card strong { color: var(--pod-active); }
.live-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--slot-active); }

.calendar {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-top: 8px;
}
.calendar .cal-day {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: #f5f7fa; color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: default;
}
.calendar .cal-day.stay {
  background: #fff; border: 2px solid var(--border); color: var(--text); cursor: pointer;
}
.calendar .cal-day.stay.picked {
  background: var(--slot-active); color: #fff; border-color: var(--slot-active);
}

/* ======== Toast ======== */
#toast-root {
  position: fixed; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; pointer-events: none; z-index: 90;
}
.toast {
  pointer-events: auto;
  background: #1a2433; color: #fff;
  padding: 12px 18px; border-radius: 12px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: 14px;
  max-width: calc(100vw - 32px);
}
.toast .undo-btn {
  background: #f5b841; color: #221a00; padding: 6px 14px;
  border-radius: 8px; font-weight: 700; font-size: 13px;
}

/* ======== Photo viewer ======== */
.photo-viewer {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 110; padding: 20px;
}
.photo-viewer img { max-width: 95vw; max-height: 90vh; border-radius: 8px; }
.photo-viewer .close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.2); color: #fff; border-radius: 50%; width: 40px; height: 40px; font-size: 20px; }

.loading { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--border); border-top-color: var(--slot-active); border-radius: 50%; animation: spin 0.8s linear infinite; }
.center-loading { padding: 40px; display: flex; justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ======== Feeding Concern Alert system ======== */
.badge-treat {
  display: inline-block;
  background: #fff3d6; color: #8a6300;
  border: 1px solid #e5c97a;
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
  margin-left: 6px; vertical-align: middle;
  letter-spacing: 0.02em;
}
.meal-card.is-treat { background: rgba(255,243,214,0.35); }
.log-row.is-treat .eaten-cell, .log-row.is-treat .eaten-amount { opacity: 0.6; }
.log-row.is-treat td:first-child::before {
  content: "";
}
.badge-recurring-feed {
  display: inline-block;
  background: #ffe2cc; color: #8a3a00;
  border: 1px solid #e5a76a;
  font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-right: 6px;
}
.badge-medical-fast {
  display: inline-block;
  background: #e6f0ff; color: #1a4480;
  border: 1px solid #88aade;
  font-size: 11px; font-weight: 800;
  padding: 3px 9px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-right: 6px;
}
.topbtn.concern-alert {
  background: #f59e0b; color: #fff; border-color: #d68303;
  font-weight: 700;
}
.topbtn.concern-alert:hover { background: #e58e00; }
.concern-count {
  display: inline-block; min-width: 20px; margin-left: 6px;
  background: rgba(0,0,0,0.18); color: #fff;
  border-radius: 999px; font-size: 12px; padding: 0 7px; line-height: 18px;
  font-weight: 800; text-align: center;
}
.fc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; cursor: pointer; background: #fff;
}
.fc-card:hover { background: #fafafa; }
.fc-card .fc-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: #f0f0f0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #555; overflow: hidden;
}
.fc-card .fc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fc-card .fc-body { flex: 1; min-width: 0; }
.fc-card .fc-name { font-weight: 700; font-size: 15px; }
.fc-card .fc-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fc-card .fc-status-row { margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.fc-pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.fc-pill.improved { background: #d9f5e0; color: #14702f; border: 1px solid #6ec280; }
.fc-pill.recurring { background: #ffe2cc; color: #8a3a00; border: 1px solid #e5a76a; }
.fc-pill.removed { background: #eee; color: #555; border: 1px solid #ccc; }

.fc-heatmap { display: grid; gap: 4px; margin-top: 8px; }
.fc-heatmap .row { display: grid; grid-template-columns: 80px repeat(7, 1fr); gap: 4px; align-items: center; }
.fc-heatmap .row .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.fc-heatmap .cell {
  height: 26px; border-radius: 6px; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff; font-weight: 700;
}
.fc-heatmap .cell.eaten-good { background: #4f9d57; }
.fc-heatmap .cell.eaten-mid  { background: #e4a93a; color: #4a3300; }
.fc-heatmap .cell.eaten-bad  { background: #d3322f; }
.fc-heatmap .cell.empty      { background: #f0f0f0; color: #aaa; }
.fc-heatmap.is-treat-row .cell { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0 4px, transparent 4px 8px); }

.fc-obs-entry {
  border-left: 3px solid #ccc; padding: 6px 10px; margin-bottom: 8px;
  background: #fafafa; border-radius: 0 6px 6px 0;
}
.fc-obs-entry .meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.fc-obs-entry.worked { border-left-color: #4f9d57; background: #f1faf3; }
.fc-obs-entry .worked-tag {
  display: inline-block; background: #4f9d57; color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
  margin-left: 6px; text-transform: uppercase;
}
.fc-suggestion {
  background: #f9f9f9; border-left: 3px solid #88aade;
  padding: 8px 12px; margin-bottom: 6px; border-radius: 0 6px 6px 0; font-size: 14px;
}
.fc-suggestion .source {
  font-size: 11px; color: var(--muted); margin-top: 2px;
}

/* ======== Responsive ======== */
@media (max-width: 720px) {
  .topbar .title { font-size: 15px; }
  .dog-card-top { flex-wrap: wrap; }
  .dog-card .buttons {
    margin-left: 0; margin-top: 8px; width: 100%;
    flex-wrap: wrap;
  }
  .dog-card .buttons .btn { flex: 1 1 auto; min-width: 0; }
  .kv { grid-template-columns: 1fr; gap: 4px; }
  .kv .k { margin-top: 6px; }
  .log-table { font-size: 13px; }
  .log-table th, .log-table td { padding: 8px 8px; }
  .dog-nav .arrow { width: 40px; height: 40px; }
  .main { padding: 12px; }
  .fc-heatmap .row { grid-template-columns: 60px repeat(7, 1fr); }
}

/* ======== Phone (≤600px) ======== */
@media (max-width: 600px) {
  /* Bigger view-toggle buttons, easier to tap with a thumb. */
  .view-toggle-btn { font-size: 16px; padding: 16px 12px; min-height: 56px; }

  /* Hamburger replaces the inline utility buttons on phones. */
  .topbar-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar-actions {
    display: none;
    position: absolute;
    right: 12px; top: calc(var(--view-toggle-h, 0px) + var(--topbar-h, 48px) - 4px);
    background: #1a2433;
    border: 1px solid #2a3a52;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
    z-index: 50;
    min-width: 160px;
  }
  .topbar-actions.open {
    display: flex; flex-direction: column; gap: 6px;
  }
  .topbar-actions .topbtn { width: 100%; text-align: left; }

  /* On phones, give each program its own full-width row with AM/PM splitting it
     evenly — keeps the pairs grouped and avoids horizontal cut-off. */
  .page-tabs { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .page-tabs .page-tabs-left { flex-wrap: wrap; column-gap: 12px; row-gap: 10px; }
  .page-tabs .board-tab-group { flex: 1 1 100%; gap: 8px; }
  .page-tabs .board-tab-group .tab.page { flex: 1 1 0; width: auto; min-height: 40px; }
  .page-tabs .page-tabs-right {
    margin-left: 0; width: 100%;
    flex-wrap: wrap; gap: 8px;
    justify-content: flex-start;
  }
  .tab.page { font-size: 13px; padding: 8px 12px; }

  /* Tighten topbar on phones: bigger tap target on the title row, hide role pill text. */
  .topbar { padding: 8px 12px; gap: 8px; }
  .topbar .role-pill { display: none; }

  /* Phone: enlarge the action button + ✕, widen the gap so the green button
     is unmistakably the bigger, easier target and ✕ taps must be deliberate. */
  .log-table .delete-btn {
    margin-left: 28px;
    min-width: 40px; min-height: 40px;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1;
  }
  .log-table .complete-btn,
  .log-table .given-btn {
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* ===== Belongings tab ===== */
.belongings-day-head {
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 14px 10px;
}
.belongings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  padding: 0 14px;
}
.belongings-card {
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.belongings-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  background: #eef0f3;
}
.belongings-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px 10px;
  font-size: 13px;
}
.belongings-meta strong { font-size: 14px; }
.belongings-meta span { color: var(--muted); }
.belongings-caption { font-style: italic; }

/* Manager correction pencil — deliberately small and muted; sits in the date
   column, far from the feeding-flow buttons. */
.log-edit-btn {
  display: block;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.log-edit-btn:hover { color: var(--text); border-color: var(--muted); }

/* Stay Story review preview — the rendered letter inside the review modal */
.story-preview {
  max-height: 55vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f6f4ee;
}

/* Keyword-search match reasons under each result row */
.ds-match {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
}
.ds-match b { color: var(--pod-active); font-weight: 700; }

/* The one med still waiting in an otherwise-finished slot (e.g. the dose that
   comes 30 minutes after its slot-mates) */
.log-table tr.med-waiting td { background: #fff5e0; }

/* All Notes dropdown menu */
.all-notes-menu {
  position: fixed;
  z-index: 300;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 30, 40, 0.18);
  min-width: 240px;
  overflow: hidden;
}
.all-notes-menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}
.all-notes-menu button:hover { background: #f2f4f7; }
.all-notes-menu button + button { border-top: 1px solid var(--border); }
.all-notes-menu .anm-count {
  background: var(--pod-active);
  color: #fff;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 13px;
  font-weight: 700;
}
