/*
 * The owner side (v1.96.1): only what the staff app's design system (app.css) does not already have.
 * Colours, type, buttons (.btn-*), fields (.form-group), cards (.card), flashes, pills, the login card
 * and the language switch all come from app.css and its tokens, so the owner app looks like vetman
 * and follows the theme. Phone first; the layout widens at 760px.
 */

/* ---------- the owner app's colours (George, 2026-11-12 22:06 UTC) ----------
   Surfaces are the staff app's own: page ground, panels, cards, inputs and their borders come from app.css
   unchanged (no tint of any brand colour on a background or a field).
   --owner-ink    dark teal #1f6f78: filled buttons under white text, focus ring, links, selected text.
   --owner-accent coral #e0664f: only the logo, the paw badge, the active tab marker and tiny highlights.
   The logo and icon SVGs carry the same two values (owner_logo.py CORAL/TEAL). Warnings stay deep red. */
.o-body {
  --owner-accent: #e0664f;
  --owner-ink: #1f6f78;
  --primary: var(--owner-ink);
  --primary-dark: #185a62;
  --primary-text: var(--owner-ink);
  --primary-light: #EEF0F2;
  --action-bg: var(--owner-ink);
  --action-bg-hover: #185a62;
  --on-action: #ffffff;
  --accent: var(--owner-accent);
  color-scheme: light;
}
.o-body .btn-action { background: var(--action-bg); border-color: var(--action-bg); color: var(--on-action); }
.o-body .btn-action:hover { background: var(--action-bg-hover); border-color: var(--action-bg-hover); color: #fff; }
.o-body .btn:focus-visible, .o-body input:focus, .o-body select:focus, .o-body textarea:focus { outline-color: var(--primary); }
.o-body .form-group input:focus, .o-body .form-group select:focus, .o-body .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 111, 120, .18); }
.o-body .lang-seg a[aria-current="page"] { background: var(--primary-light); color: var(--primary-text); }
/* Signed out: the staff login's own ground and card (app.css .login-shell / .login-card), unchanged. */
.o-app-icon { width: 54px; height: 54px; border-radius: 14px; display: block; margin: 0 auto 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.o-bar-icon { width: 30px; height: 30px; border-radius: 8px; display: block; }
.o-bar-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
/* ---------- shared ---------- */
.o-body { background: var(--bg); color: var(--text-primary); font-family: var(--font-ui); }
.o-inline { display: inline; margin: 0; }
.o-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o-muted { color: var(--text-secondary); }
.o-small { font-size: var(--fs-small); }
.o-center { text-align: center; }
.o-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.o-big { font-size: 44px; color: var(--primary); display: inline-block; margin: 4px 0 10px; }
.o-wide { width: 100%; justify-content: center; padding-top: 11px; padding-bottom: 11px; }
.o-hint { font-size: 12px; color: var(--text-secondary); margin-top: 5px; }
.o-req { color: var(--danger-text); }
.o-danger { color: var(--danger-text); }
.o-label { display: block; font-size: var(--fs-small); font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }

/* Two choices as one control (document kind, sex): a segmented switch, never bare radios. */
.o-seg { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 3px; background: var(--field-bg, var(--bg-panel)); }
.o-seg label { flex: 1; margin: 0; cursor: pointer; }
.o-seg input { position: absolute; opacity: 0; pointer-events: none; }
.o-seg span { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 10px; border-radius: calc(var(--radius-md) - 2px);
  font-size: var(--fs-small); font-weight: 700; color: var(--text-secondary); text-align: center; line-height: 1.25; }
.o-seg input:checked + span { background: var(--primary-light); color: var(--owner-ink); box-shadow: inset 0 0 0 1px var(--owner-ink); }
.o-seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }

.o-consent { align-items: flex-start; font-weight: 400; font-size: var(--fs-small); line-height: 1.45; color: var(--text-secondary); }
.o-consent input { margin-top: 2px; flex: none; }
.form-group label.o-consent, .form-group label.o-consent span { font-weight: 400; display: flex; gap: 9px; }
/* Remember me (v1.98.0): the label over its hint, both beside the box, not three columns. */
.form-group.o-remember label.o-consent > span { display: block; }
.form-group.o-remember label.o-consent > span b { display: block; color: var(--text-primary); font-weight: 600; }
.form-group.o-remember label.o-consent > span .o-muted { display: block; margin-top: 2px; }
/* Under the dev debug bar (DEV only) the phone tab bar stays reachable. */
body.o-signed-in { padding-bottom: env(safe-area-inset-bottom); }
.o-code { font-size: 26px !important; letter-spacing: .35em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.o-row2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 480px) { .o-row2 { grid-template-columns: 1fr 1fr; } }

/* ---------- signed out: the staff login card ---------- */
.o-auth-top { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.o-auth .login-logo { margin-bottom: 22px; }
.o-auth .login-logo-img { height: auto; width: 100%; max-width: 270px; }
.o-auth-kicker { text-align: center; font-size: 15px; font-weight: 700; color: var(--owner-ink); letter-spacing: .01em; margin: 2px 0 22px; }
.o-auth h1.login-title { margin: 0 0 2px; }
.o-auth .login-sub { margin-bottom: 18px; line-height: 1.45; }
.o-auth .o-center .link { font-size: var(--fs-small); }
.o-auth > .o-center { margin-top: 14px; }

/* ---------- signed in: app bar, column, tab bar ---------- */
.o-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px;
  background: var(--bg-panel); border-bottom: 1px solid var(--border); }
/* The full owner logo (mark with paw + wordmark + tagline), sized like the staff header logo (app.css .app-header-logo img). */
.o-bar-logo img.o-bar-wordmark { height: 34px; width: auto; max-width: 46vw; display: block; }
@media (max-width: 600px) { .o-bar-logo img.o-bar-wordmark { height: 30px; } }
.o-bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.o-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--bg-panel);
  border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0, 0, 0, .04); }
.o-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; text-decoration: none;
  font-size: 11.5px; font-weight: 700; color: var(--text-secondary); }
.o-tabs a .ti { font-size: 22px; }
.o-tabs a { position: relative; }
.o-tabs a[aria-current="page"] { color: var(--owner-ink); }
/* The active tab marker: a short coral bar on the tab's top edge (phone) or under it (wide). */
.o-tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--owner-accent); }
.o-tabs a[aria-current="page"] .ti { color: var(--owner-accent); }
@media (min-width: 760px) {
  .o-tabs { position: static; border: 0; box-shadow: none; padding: 0; margin-left: 18px; gap: 4px; background: none; }
  .o-tabs a { flex: none; flex-direction: row; gap: 7px; padding: 8px 12px; border-radius: var(--radius-md); font-size: var(--fs-base); }
  .o-tabs a .ti { font-size: 18px; }
  .o-tabs a[aria-current="page"] { background: none; }
  .o-tabs a[aria-current="page"]::before { top: auto; bottom: -2px; left: 12px; right: 12px; border-radius: 3px; }
}
.o-main { max-width: 760px; margin: 0 auto; padding: 18px 16px 100px; }
@media (min-width: 760px) { .o-main { padding: 26px 24px 48px; } }
.o-foot { text-align: center; font-size: var(--fs-small); color: var(--text-tertiary, var(--text-secondary)); margin: 26px 0 0; }
.o-foot a { color: inherit; }

.o-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-tertiary, var(--text-secondary)); margin-bottom: 6px; }
.o-crumbs a { color: var(--text-secondary); text-decoration: none; }
.o-crumbs a:hover { color: var(--primary-text); text-decoration: underline; }
.o-crumbs span { opacity: .5; }
.o-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.o-head-actions { display: flex; gap: 8px; }
.o-title { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.o-head .o-title { margin: 0; }
.o-title-note { font-weight: 400; margin-left: auto; }

.o-empty { text-align: center; color: var(--text-secondary); padding-top: 26px; padding-bottom: 26px; }
.o-empty p { max-width: 420px; margin: 0 auto; }

/* Animals: one row each, big touch target. */
.o-pets { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 640px) { .o-pets { grid-template-columns: 1fr 1fr; } }
.o-pet { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--text-primary); transition: border-color .15s, box-shadow .15s; }
.o-pet:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.o-pet-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--owner-accent); font-size: 24px; }
.o-pet-avatar-sm { width: 36px; height: 36px; font-size: 19px; }
.o-pet-text { display: flex; flex-direction: column; min-width: 0; }
.o-pet-name { font-weight: 700; font-size: 16px; }
.o-pet-meta { font-size: var(--fs-small); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-pet-go { margin-left: auto; color: var(--text-tertiary, var(--text-secondary)); font-size: 18px; }

.o-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
@media (min-width: 560px) { .o-facts { grid-template-columns: repeat(4, 1fr); } }
.o-facts > div { background: var(--bg); border-radius: var(--radius-md); padding: 8px 11px; min-width: 0; }
.o-facts-wide { grid-column: 1 / -1; }
.o-facts dt { font-size: 11.5px; color: var(--text-secondary); }
.o-facts dd { margin: 1px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.o-note { margin-top: 12px; }
.o-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.o-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.o-form-card { max-width: 560px; }
.o-form-pad { padding-top: 12px; }

.o-list { list-style: none; margin: 0 0 6px; padding: 0; }
.o-list li { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--border); position: relative; }
.o-list li:last-child { border-bottom: 0; }
.o-list-act { padding-right: 48px !important; }
.o-list-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; }
.o-date { font-weight: 700; font-size: var(--fs-small); color: var(--primary-text); }
.o-pill-late { background: var(--danger-bg); color: var(--danger-text); }
.o-pill-soon { background: var(--warn-bg); color: var(--warn-text); }
.o-pill-ok { background: var(--success-bg); color: var(--success-text); }

.o-details { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 4px; }
.o-details summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.o-details summary::-webkit-details-marker { display: none; }
.o-details summary::after { content: "\203A"; margin-left: auto; color: var(--text-secondary); font-size: 20px; transition: transform .15s; }
.o-details[open] summary::after { transform: rotate(90deg); }
.o-entry { padding: 12px 0; border-bottom: 1px solid var(--border); }
.o-entry:last-child { border-bottom: 0; }
.o-entry p { margin: 5px 0; line-height: 1.5; }
.o-entry-head { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.o-entry-split { justify-content: space-between; }
.o-k { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--text-secondary); text-transform: none; margin-right: 4px; }
.o-sub { margin-top: 10px; padding: 12px; border-radius: var(--radius-md); background: var(--bg); }
.o-sub-title { font-weight: 700; font-size: var(--fs-small); margin: 10px 0 6px; }
.o-sub .o-sub-title { margin-top: 0; }
.o-quiet-form { margin-top: 10px; }
.o-quiet-form .link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-secondary); text-decoration: underline; }
.o-rx { margin: 6px 0; padding-left: 18px; line-height: 1.5; }
.o-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); margin-top: 6px; }
.o-table td { padding: 6px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.o-flag { color: var(--danger-text); font-weight: 700; }
.o-flash-info { background: var(--info-bg); color: var(--info-text); }
.o-flash-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.o-search { display: flex; gap: 8px; margin-bottom: 8px; }
.o-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--field-bg, var(--bg-panel));
  color: var(--text-primary); font: inherit; font-size: 16px; }
.o-push { background: var(--bg-panel); }

/* DEV only (dev_outbox on): where the code went instead of an SMS. */
.o-devnote { margin: 14px 0 0; padding: 9px 12px; border: 1px dashed var(--border); border-radius: var(--radius-md); font-size: 12.5px; color: var(--text-secondary); text-align: center; }
.o-devnote a { color: var(--owner-ink); font-weight: 700; }

/* ---------- clinics (George, 2026-11-12 22:27 UTC): one card per clinic ---------- */
.o-clinics { display: grid; gap: 14px; }
@media (min-width: 760px) { .o-clinics { grid-template-columns: 1fr 1fr; align-items: start; } }
.o-clinic { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.o-clinic-head { display: flex; align-items: center; gap: 14px; }
.o-clinic-logo { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.o-clinic-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; letter-spacing: .02em;
  color: var(--owner-ink); background: var(--bg); }
.o-clinic-id { min-width: 0; }
.o-clinic-name { font-size: 18px; line-height: 1.3; font-weight: 800; margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }
.o-clinic-where { margin: 3px 0 0; font-size: var(--fs-small); color: var(--text-secondary); }
.o-clinic-where .ti { color: var(--owner-accent); }
.o-clinic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.o-clinic-actions .btn { flex: 1 1 auto; justify-content: center; }
.o-clinic-facts { margin: 0; display: grid; gap: 10px; }
.o-clinic-facts > div { display: grid; grid-template-columns: 116px 1fr; gap: 10px; align-items: baseline; }
.o-clinic-facts dt { font-size: var(--fs-small); color: var(--text-secondary); }
.o-clinic-facts dd { margin: 0; font-weight: 600; }
.o-clinic-hour { display: block; }
.o-clinic-pets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.o-clinic-pets a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: var(--text-primary); font-weight: 600; background: var(--bg-panel); }
.o-clinic-pets a:hover { border-color: var(--owner-ink); }
.o-pet-avatar-xs { width: 30px; height: 30px; font-size: 16px; }
.o-pet-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.o-clinic-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; padding-top: 10px;
  border-top: 1px solid var(--border); font-size: 12px; color: var(--text-tertiary, var(--text-secondary)); }
/* A quiet text button: the rare, undoable-looking actions (remove a clinic) never look like a main row. */
.o-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--text-secondary); text-decoration: underline; cursor: pointer; }
.o-linkbtn:hover { color: var(--danger-text); }

/* ---------- dark theme (v1.97.0, George 2026-11-12 22:38 UTC) ----------
   The staff app's own dark theme (app.css html[data-theme="dark"]: grounds, panels, borders, text), stamped
   by the layout's inline script before the first paint. Only the two owner colours are lifted for a dark
   ground (the logo's dark variant uses the same pair), measured on the dark panel #1E293B:
   teal #5FB3BB 6.0:1, coral #F08A74 6.0:1; a teal button carries the page ground as ink, 7.4:1. */
html[data-theme="dark"] .o-body {
  --owner-accent: #F08A74;
  --owner-ink: #5FB3BB;
  --primary: var(--owner-ink);
  --primary-dark: #7CC6CD;
  --primary-text: #8ED0D6;
  --primary-light: color-mix(in srgb, var(--owner-ink) 22%, var(--bg-panel));
  --action-bg: var(--owner-ink);
  --action-bg-hover: #7CC6CD;
  --on-action: #0F172A;
  color-scheme: dark;
}
html[data-theme="dark"] .o-body .btn-action:hover { color: #0F172A; }
html[data-theme="dark"] .o-body .form-group input:focus, html[data-theme="dark"] .o-body .form-group select:focus,
html[data-theme="dark"] .o-body .form-group textarea:focus { box-shadow: 0 0 0 3px rgba(95, 179, 187, .25); }
.o-logo-dark { display: none !important; }
html[data-theme="dark"] .o-logo-light { display: none !important; }
html[data-theme="dark"] .o-logo-dark { display: block !important; }
html[data-theme="dark"] .o-clinic-logo { border-color: transparent; }

/* ---------- header avatar, photos, profile (v1.97.0) ---------- */
.o-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  overflow: hidden; background: var(--primary-light); color: var(--owner-ink); font-weight: 800; font-size: 14px; text-decoration: none;
  border: 2px solid var(--bg-panel); box-shadow: 0 0 0 1px var(--border); }
.o-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o-avatar:hover { box-shadow: 0 0 0 2px var(--owner-accent); }
@media (min-width: 760px) { .o-tab-profile { display: none !important; } }
.o-photo-row, .o-profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.o-profile-head { margin-bottom: 14px; }
.o-photo { flex: none; width: 96px; height: 96px; border-radius: 20px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--owner-accent); font-size: 44px; border: 1px solid var(--border); }
.o-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o-photo-round { border-radius: 50%; }
.o-initials { font-size: 34px; font-weight: 800; color: var(--owner-ink); }
.o-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.o-photo-actions form { margin: 0; }
.o-profile-name { font-size: 19px; font-weight: 800; color: var(--text-primary); overflow-wrap: anywhere; }
.o-file-btn { cursor: pointer; position: relative; }
.o-file-btn.is-busy { opacity: .6; pointer-events: none; }
.o-kv { margin: 0 0 8px; display: grid; gap: 8px; }
.o-kv > div { display: grid; grid-template-columns: 128px 1fr; gap: 10px; align-items: baseline; }
.o-kv dt { font-size: var(--fs-small); color: var(--text-secondary); }
.o-kv dd { margin: 0; overflow-wrap: anywhere; }
.o-kv .pill { margin-left: 4px; }
.o-id-line { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.o-inline-note { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 0 0 6px; }
.o-inline-form { display: flex; gap: 8px; margin: 8px 0 6px; }
.o-inline-form input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--field-bg, var(--bg-panel)); color: var(--text-primary); }
.o-device { gap: 2px; }
.o-subcard { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.o-label-gap { margin-top: 12px; }
.o-details summary { cursor: pointer; color: var(--owner-ink); font-weight: 600; padding: 8px 0; }
.o-danger-zone { margin: 22px 0 6px; }
.o-danger-zone .o-linkbtn { font-size: 13px; }
.o-clinic-facts dd { font-weight: 500; }
/* app.css whitens the staff wordmark on dark grounds with a filter; the owner logo has its own dark variant. */
.o-body img.o-logo-dark, .o-body img.o-logo-light { filter: none !important; }
#reminders .checkbox-label { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 8px; font-weight: 400; line-height: 1.4; }
#reminders .checkbox-label input { margin-top: 3px; flex: none; }
.o-seg span { min-height: 38px; }

/* ---------- sign-in / sign-up backgrounds (George, 2026-11-12 23:33 UTC: the shapes version; the dog-and-cat pair
   owner-login-{light,dark}.webp stays in the folder) ----------
   Soft teal and coral shapes in two corners, the card on the plain middle; pinned to the window so a long form
   scrolls over it. The same picture on every screen: a crop only trims the corners. */
.o-signed-out .login-shell {
  background-color: #d5e3ed;
  background-image: url(/assets/img/owner-pwa/owner-login-shapes-light.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html[data-theme="dark"] .o-signed-out .login-shell {
  background-color: #0d1820;
  background-image: url(/assets/img/owner-pwa/owner-login-shapes-dark.webp);
}
@media (max-width: 760px) {
  /* a portrait phone sees a narrow slice of a wide picture: the right edge, where the teal band and the coral corner are */
  .o-signed-out .login-shell { background-attachment: scroll; background-position: 96% center; }
}
/* light/dark switch on the sign-in pages (George, 2026-11-12 23:14 UTC) */
.o-auth-top { gap: 8px; align-items: center; }
.o-theme-toggle .o-when-dark { display: none; }
html[data-theme="dark"] .o-theme-toggle .o-when-dark { display: inline; }
html[data-theme="dark"] .o-theme-toggle .o-when-light { display: none; }
/* ---------- inner pages: the same waves, calmer (George, 2026-11-12 23:52 UTC) ----------
   A fixed layer behind the page (a pseudo-element, since iOS ignores background-attachment: fixed), faded; header,
   tab bar, cards, lists and forms keep their solid surfaces. Off: drop the `o-bg` class from <body> in layout.php. */
body.o-signed-in.o-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url(/assets/img/owner-pwa/owner-login-shapes-light.webp) center / cover no-repeat;
  opacity: .55;
}
html[data-theme="dark"] body.o-signed-in.o-bg::before {
  background-image: url(/assets/img/owner-pwa/owner-login-shapes-dark.webp);
  opacity: .8;
}
@media (max-width: 760px) {
  body.o-signed-in.o-bg::before { opacity: .3; background-position: 96% center; }
  html[data-theme="dark"] body.o-signed-in.o-bg::before { opacity: .55; }
}

/* ---------- install bar (v1.97.8): phones only, built by owner.js; above the tab bar when signed in ---------- */
.o-install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; background: var(--bg-panel); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.o-signed-in .o-install-bar { bottom: calc(74px + env(safe-area-inset-bottom)); }
.o-install-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.o-install-text span { color: var(--text-secondary); }
.o-install-bar .btn-action { flex: none; }

/* phone tab bar (George, 2026-11-13 00:16 UTC: „მენიუს უჭირს"): one line per label, the first tab's short name */
.o-tab-short { display: none; }
@media (max-width: 759px) {
  .o-tabs a { min-width: 0; padding: 7px 2px 8px; font-size: 11px; }
  .o-tabs a { justify-content: center; text-align: center; min-height: 54px; }
  .o-tabs a span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
  .o-tabs .o-tab-long { display: none; }
  .o-tabs .o-tab-short { display: block; }
}

/* Home overview (v1.99.0): right now, coming up, recently. One column on a phone, two from 900px with „recently" across. */
.o-ov { display: grid; gap: 14px; margin-bottom: 18px; }
.o-ov .card { margin: 0; }
@media (min-width: 900px) { .o-ov { grid-template-columns: 1fr 1fr; align-items: start; } .o-ov-recent { grid-column: 1 / -1; } }
.o-ov-block .card-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); margin: 0 0 4px; }
.o-ov-block .card-title .pill { margin-left: auto; }
.o-ov-list { list-style: none; margin: 0; padding: 0; }
.o-ov-item { border-bottom: 1px solid var(--border); }
.o-ov-list:last-child .o-ov-item:last-child, .o-ov-more .o-ov-item:last-child { border-bottom: 0; }
.o-ov-link { display: flex; align-items: flex-start; gap: 11px; padding: 11px 2px; color: inherit; text-decoration: none; border-radius: var(--radius-md); }
.o-ov-link:hover .o-ov-main, .o-ov-link:focus-visible .o-ov-main { color: var(--primary-text); }
.o-ov-link .o-pet-avatar { margin-top: 1px; }
.o-ov-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.o-ov-top { font-size: var(--fs-small); color: var(--text-secondary); overflow-wrap: anywhere; }
.o-ov-top b { color: var(--text-primary); }
.o-ov-main { display: flex; gap: 6px; align-items: baseline; color: var(--text-primary); line-height: 1.4; overflow-wrap: anywhere; }
.o-ov-main > .ti { color: var(--owner-accent, var(--primary)); flex: none; }
.o-ov-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-small); }
.o-ov-meds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.o-ov-meds .pill { margin-left: 2px; }
.o-ov-note { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--text-secondary); }
.o-ov-go { flex: none; align-self: center; color: var(--text-tertiary, var(--text-secondary)); font-size: 17px; }
.o-ov-link > .o-pill-new { align-self: center; flex: none; }
.o-pill-new { background: var(--primary-light); color: var(--primary-text); font-weight: 700; }
.o-pill-wait { background: var(--info-bg); color: var(--info-text); }
.o-ov-more summary { cursor: pointer; list-style: none; padding: 8px 2px 2px; font-size: var(--fs-small); font-weight: 700; color: var(--primary-text); display: inline-flex; align-items: center; gap: 4px; }
.o-ov-more summary::-webkit-details-marker { display: none; }
.o-ov-more[open] summary .ti { transform: rotate(180deg); }
.o-ov-more[open] summary { margin-bottom: 2px; }
.o-ov-action { margin-top: 10px; }