:root {
  --bg: #faf7f2; --card: #ffffff; --ink: #1f2933; --muted: #52606d; --line: #d9d2c5;
  --brand: #1f5f5b; --brand-ink: #ffffff; --accent: #b3541e;
  --warn-bg: #fff4c2; --warn-ink: #7a1212; --zebra: #f3eee4;
  --err-bg: #fde2e2; --err-ink: #7a1212; --ok-bg: #dff3e3; --ok-ink: #14532d;
  --radius: 12px;
  /* One canonical top-of-stack token for any modal/popup; only toasts may exceed it. */
  --z-overlay: 1000; --z-toast: 1100;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c; --card: #1e252b; --ink: #eef1f4; --muted: #b0bcc6; --line: #34404a;
    --brand: #6cc5bd; --brand-ink: #0b1a19; --accent: #f0a26e;
    --warn-bg: #4a3f0d; --warn-ink: #ffd9d9; --zebra: #252d34;
    --err-bg: #4d1f1f; --err-ink: #ffd9d9; --ok-bg: #1d4a2b; --ok-ink: #d6f5df;
  }
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 18px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
h1 { font-size: 1.6rem; margin: .4rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px 32px; flex: 1 0 auto; }
.topbar { background: var(--brand); color: var(--brand-ink); padding: 10px 16px; }
.brand { color: var(--brand-ink); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand-logo { height: 36px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; align-items: center; }
.nav a, .linkbtn { color: var(--brand-ink); font-size: 1rem; padding: 6px 0; text-decoration: none; }
.linkbtn { background: none; border: 0; cursor: pointer; font-family: inherit; text-decoration: underline; }
.inline { display: inline; margin: 0; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 16px; flex-shrink: 0; }
.muted { color: var(--muted); }
.back { margin: 12px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.flash { padding: 12px 14px; border-radius: var(--radius); margin: 12px 0; font-weight: 600; }
.flash-ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash-err { background: var(--err-bg); color: var(--err-ink); }
.stack > * + * { margin-top: 12px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field.check label { font-weight: 500; display: flex; gap: 8px; align-items: center; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=file], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
input[type=checkbox] { width: 22px; height: 22px; }
input.narrow { width: 7ch; }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 12px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; min-height: 48px; }
.btn.danger { background: var(--err-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
details.card > summary, details.row > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
details.row { padding: 6px 14px; border-bottom: 1px solid var(--line); }
details.row[open] { padding-bottom: 14px; }
details.row form { margin-top: 10px; }
.zebra > :nth-child(odd) { background: var(--zebra); }
.zebra { border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px;
  text-align: center; text-decoration: none; color: var(--ink); font-weight: 700; min-height: 96px; }
.tile .ico { display: block; font-size: 1.8rem; }
.tile small { display: block; color: var(--muted); font-weight: 400; }

/* Quick Sheet */
.countdown { text-align: center; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.countdown .l1 { font-size: 1.5rem; font-weight: 800; }
.countdown .l2 { font-size: 1.2rem; }
.countdown .l3 { opacity: .9; }
.important { border: 2px solid var(--accent); padding: 0; overflow: clip; }
.important h2 { padding: 12px 16px 0; }
.pet-row { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; }
.pet-row:nth-child(even) { background: var(--zebra); }
.photo { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; flex: 0 0 88px; background: var(--zebra); }
.photo.big { width: 100%; height: auto; max-height: 360px; flex: none; }
.nophoto { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.pet-row .info { flex: 1 1 10rem; min-width: 0; }
.pet-row h3 { margin: 0 0 4px; color: var(--muted); font-size: 1.1rem; }
.pet-row ul { margin: 0; padding-left: 1.1rem; }
.pet-row hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.rx { background: var(--warn-bg); color: var(--warn-ink); font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.kv { display: grid; grid-template-columns: minmax(7rem, 35%) 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.code { font: 700 1.9rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; background: var(--zebra); padding: 6px 12px; border-radius: 8px; display: inline-block; cursor: copy; }
.compass { text-decoration: none; font-size: 1.5rem; padding: 4px 8px; }
.emerg { border: 2px solid var(--err-ink); }
.emerg h2 { color: var(--err-ink); }
.contact + .contact { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.tel { font-weight: 700; font-size: 1.2rem; }
.vcf-link { font-size: .9rem; color: var(--muted); text-decoration: none; }
.vcf-link:hover { color: var(--brand); }
.note { padding: 10px 0; border-bottom: 1px solid var(--line); }
.note .meta { color: var(--muted); font-size: .9rem; }
pre.pin { font-size: 1.6rem; background: var(--warn-bg); color: var(--warn-ink); padding: 14px; border-radius: 10px; word-break: break-all; white-space: pre-wrap; }
.roster li { padding: 4px 0; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Sitter Sheet (sheet.php). Special needs are LOUD by design: they must never be buried or missed. */
.sheet-alert { border: 4px solid var(--err-ink); background: var(--warn-bg); color: var(--warn-ink); }
.sheet-alert h2 { color: var(--err-ink); margin: 0 0 6px; font-size: 1.35rem; letter-spacing: .02em; }
.sheet-alert ul { margin: 0; padding-left: 1.2rem; font-size: 1.15rem; font-weight: 700; }
.sheet-looks { font-weight: 400; font-size: .95rem; }
.sheet-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 10px; }
.sheet-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sheet-owner { margin: 10px 0 0; }
.sheet-home { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin: 0 0 16px; }
.sheet-access { flex: 1 1 16rem; min-width: 0; }
.sheet-dates { margin: 0 0 6px; }
.sheet-group { width: 13rem; max-width: 100%; height: auto; border-radius: 12px; flex: 0 1 13rem; object-fit: cover; }
.sheet-flagged { border: 3px solid var(--err-ink); }
.sheet-pers { margin: 8px 0 0; }

@media print {
  @page { size: letter; margin: 0.4in; }
  .topbar, .foot, .noprint, .back, .compass { display: none !important; }
  html, body { min-height: 0; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .card, .countdown { break-inside: avoid; border-color: #999; background: #fff; color: #000; }
  .wrap { max-width: none; padding: 0; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  h1 { font-size: 15pt; margin: 0 0 6px; }
  /* Sheet: compact so everything, including all pet tiles, lands on one page. */
  .card { padding: 8px 10px; margin: 0 0 8px; }
  .sheet-alert { border: 3pt solid #000 !important; background: #fff3b0 !important; color: #000 !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-alert h2 { font-size: 14pt; color: #000 !important; }
  .sheet-alert ul { font-size: 12pt; }
  .sheet-emerg h2, .sheet-home, .sheet-pets h3 { margin-bottom: 4px; }
  .sheet-emerg h2 { font-size: 12pt; margin-top: 0; }
  .sheet-tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sheet-tile { padding: 5px 8px; }
  .sheet-home { gap: 10px; margin: 0 0 8px; flex-wrap: nowrap; }
  .sheet-group { width: 2.1in; flex: 0 0 2.1in; max-height: 1.6in; }
  .sheet-pets .photo { width: 0.9in; height: 0.9in; flex: 0 0 0.9in; border-radius: 8px; }
  .sheet-pets .pet-row { gap: 8px; }
  .sheet-flagged { border: 2pt solid #000 !important; }
  .rx { -webkit-print-color-adjust: exact; print-color-adjust: exact; border: 1px solid #000; }
  .tel { font-size: 11pt; color: #000; text-decoration: none; }
  .kv { gap: 2px 10px; }
}

.pwwrap { position: relative; }
.pwwrap input { padding-right: 52px; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 44px; border: 0; background: none;
  font-size: 1.3rem; cursor: pointer; opacity: .75; color: var(--ink); }
.eye.on { opacity: 1; }

/* Suggestion text: visible but clearly not a value */
::placeholder { color: var(--muted); opacity: .55; font-style: italic; }

/* "Working..." overlay: direct child of <body>, uses the canonical overlay token */
.busy-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.busy-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px; text-align: center; max-width: 22rem; width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.spinner { width: 48px; height: 48px; margin: 0 auto 14px; border: 5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: tc-spin 0.9s linear infinite; }
@keyframes tc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* Collapsible / draggable sections */
.sec { padding: 0; overflow: clip; }
/* One line always: the title wraps its own text so the arrow (and rotating button) never drop to a new line. */
.sec-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; }
.sec-title { margin: 0; flex: 1 1 auto; min-width: 0; }
/* Rotating Expand all / Collapse all / Restore button: sits just left of the top-most section's arrow. */
.sec-cycle { margin-left: auto; flex-shrink: 0; white-space: nowrap; min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.sec-cycle + .sec-toggle { margin-left: 0; }
@media (max-width: 420px) { .sec-cycle { padding: 4px 8px; font-size: .8rem; min-height: 32px; } .sec-head:has(.sec-cycle) { gap: 6px; } }
.sec-reset { text-align: center; margin: 4px 0 0; font-size: .9rem; }
.sec-grip { cursor: grab; color: var(--muted); font-size: 1.2rem; line-height: 1; touch-action: none; padding: 6px; }
.sec-toggle { background: none; border: 0; color: var(--ink); font-size: 1rem; min-width: 44px; min-height: 44px; cursor: pointer; }
.sec-body { padding: 0 16px 16px; }
.sec.sec-collapsed .sec-body { display: none; }
.sec.sec-dragging { opacity: .6; }
.sec[data-sec-locked="1"] .sec-head { padding-left: 16px; }

/* Identity card at the top of the home page */
.identity-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; }
.identity-card .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; background: var(--zebra); }
.identity-card .avatar.nophoto { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.identity-card .role { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.identity-card .who { font-weight: 800; font-size: 1.15rem; }

/* Floating back-to-top button */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-overlay); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--brand); color: var(--brand-ink); font-size: 1.4rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transition: opacity .15s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Billing */
.letterhead { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.letterhead img { max-height: 64px; max-width: 160px; object-fit: contain; }
.letterhead .biz-name { font-weight: 800; font-size: 1.3rem; }
.inv-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.inv-table th, .inv-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.inv-table td.amt, .inv-table th.amt { text-align: right; white-space: nowrap; }
.inv-total { font-size: 1.3rem; font-weight: 800; text-align: right; margin-top: 8px; }
.paid-badge { display: inline-block; background: var(--ok-bg); color: var(--ok-ink); font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.due-badge { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* Owner dropdown in the nav */
.navdrop { position: relative; display: inline-block; }
.navdrop summary { list-style: none; cursor: pointer; color: var(--brand-ink); padding: 6px 0; }
.navdrop summary::-webkit-details-marker { display: none; }
.navdrop summary::after { content: ' \25BE'; }
.navdrop-panel { position: absolute; top: 100%; left: 0; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; min-width: 10rem; z-index: var(--z-overlay); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.navdrop-panel a { display: block; padding: 8px 10px; color: var(--ink); border-radius: 6px; }
.navdrop-panel a:hover { background: var(--zebra); }

/* Pet photo wrap: positions the floating edit icon */
.pet-photo-wrap { position: relative; display: block; }
.photo-fullsize-link { display: block; }
.photo-edit-btn { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff;
  border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; text-decoration: none; border: 2px solid rgba(255,255,255,.6); line-height: 1; }
.photo-edit-btn:hover { background: rgba(0,0,0,.8); }

/* Period name in countdown (italics, lighter than the main lines) */
.l-name { font-style: italic; opacity: .85; font-size: 1.05rem; margin: 2px 0; }

/* Section head is clickable: show pointer on the whole row except buttons/grip */
.sec-head { cursor: pointer; }
.sec-head .sec-grip { cursor: grab; }
.sec[data-sec-locked="1"] .sec-head { cursor: default; }

/* Check-in log rows */
.checkin-row { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.checkin-row:last-child { border-bottom: 0; }
.checkin-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.checkin-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.checkin-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--zebra); border-radius: 999px;
  padding: 3px 10px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.checkin-notes { color: var(--ink); margin-top: 4px; }
.checkin-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.checkin-photo { width: 140px; height: 140px; flex: 0 0 140px; border-radius: 10px; object-fit: cover; }
.checkin-checks { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 8px; }
.checkin-check { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 2px solid var(--line);
  border-radius: 10px; margin: 4px; cursor: pointer; font-weight: 600; user-select: none; }
.checkin-check input { display: none; }
.checkin-check:has(input:checked) { background: var(--ok-bg); border-color: var(--ok-ink); color: var(--ok-ink); }
.checkin-check span { font-size: 1rem; }

/* Photo lightbox / popover */
.photo-lightbox-trigger { cursor: zoom-in; display: block; }
.photo-lb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.78); z-index: var(--z-overlay);
  display: flex; align-items: center; justify-content: center; animation: lb-in .15s ease; }
@keyframes lb-in { from { opacity: 0 } to { opacity: 1 } }
.photo-lb-inner { position: relative; max-width: min(90vw, 640px); }
.photo-lb-inner img { max-width: 100%; max-height: 88vh; border-radius: 12px; display: block; }
.photo-lb-close { position: absolute; top: -16px; right: -16px; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: #1a1a1a; border: none; font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.45); z-index: 1; }
.photo-lb-close:hover { background: #eee; }
.photo-lb-edit { position: absolute; bottom: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.62); color: #fff; border: 2px solid rgba(255,255,255,.7); font-size: 1.15rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-lb-edit:hover { background: rgba(0,0,0,.88); }

/* Me page tiles (BB-style admin grid) */
.me-tiles-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: .95rem; }
.me-tiles-bar label { font-weight: 600; }
.me-tiles-bar select { width: auto; padding: 6px 10px; font-size: .95rem; }
.me-tiles-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.me-tiles-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .me-tiles-grid.cols-2 { grid-template-columns: 1fr; } }
.me-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 8px; border-left: 4px solid var(--brand); }
.me-tile h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.tile-grip { cursor: grab; color: var(--muted); font-size: 1.1rem; line-height: 1; user-select: none; flex-shrink: 0; touch-action: none; }
.tile-grip:active { cursor: grabbing; }
[draggable="true"] .tile-grip { color: var(--brand); }
.me-tile p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.me-tile .btn { align-self: flex-start; margin-top: 4px; }
.me-tile-dragging { opacity: .4; }
.me-tile-over { box-shadow: 0 0 0 3px var(--brand); }

/* Avatar wrap for lightbox + empty state */
.avatar-wrap { cursor: zoom-in; display: inline-block; }
.avatar-wrap:focus { outline: 2px solid var(--brand); border-radius: 50%; }

/* Tip calculator */
.tip-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-radio { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 2px solid var(--line);
  border-radius: 10px; cursor: pointer; font-weight: 600; }
.tip-radio:has(input:checked) { border-color: var(--brand); background: var(--zebra); }
.tip-radio input { display: none; }
.tip-result { margin-top: 16px; background: var(--zebra); border-radius: var(--radius); padding: 14px; }
.tip-breakdown { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.tip-total { font-size: 1.3rem; font-weight: 800; margin-top: 8px; }

/* Any photo that opens full size on tap (app.js marks it) */
img.zoomable { cursor: zoom-in; }
@media print { img.zoomable { cursor: auto; } }

/* Sign-up: honeypot field is off-screen for people, visible to naive bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Status pills (platform, business, connections) */
.status-badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--zebra); color: var(--ink); vertical-align: middle; }
.status-pending, .status-unverified { background: var(--warn-bg); color: var(--warn-ink); }
.status-active { background: var(--ok-bg); color: var(--ok-ink); }
.status-suspended, .status-rejected, .status-disabled, .status-declined, .status-ended { background: #f6d9d9; color: var(--err-ink); }

/* Client switcher in the top bar (business owners and staff) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.client-switch select { width: auto; max-width: 13rem; min-height: 36px; padding: 4px 8px; font-size: .95rem; border-radius: 8px; }

/* Hamburger nav */
.topbar-row { display: flex; align-items: center; justify-content: space-between; }
.nav-toggle { display: none; background: none; border: 0; color: var(--brand-ink); font-size: 1.5rem; cursor: pointer;
  padding: 4px 8px; min-width: 44px; min-height: 44px; line-height: 1; }
@media (max-width: 600px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav { margin-top: 0; }
  .nav-links { display: none; flex-direction: column; gap: 0; width: 100%; padding-top: 6px; }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links > a, .nav-links .linkbtn { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.2); display: block; }
  .nav-links > .inline { display: block; }
  .nav-links > .inline .linkbtn { padding: 10px 4px; }
  .nav-links .navdrop { display: block; }
  .nav-links .navdrop summary { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.2); }
  .nav-links .navdrop-panel { position: static; box-shadow: none; border: 0; background: rgba(0,0,0,.2); border-radius: 6px; margin: 0 0 4px; }
  .nav-links .navdrop-panel a { color: var(--brand-ink); }
}

/* Floating pet-edit button (bottom-right, fixed) */
.pet-float-edit { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-overlay); width: 52px; height: 52px;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 1.3rem; border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
