:root {
  --bg: #eef1f3; --panel: #ffffff; --panel-2: #f6f8f9; --ink: #1c2a33; --muted: #64748b; --line: #dde3e8; --line-2: #eef1f4;
  --brand: #0f766e; --brand-2: #115e59; --brand-ink: #ffffff; --brand-soft: #e3f2f0; --accent: #f59e0b; --accent-soft: #fff6e0;
  --danger: #b42318; --danger-soft: #fdecea; --ok: #15803d; --ok-soft: #e8f6ec; --warn-bar: #fff4d6; --warn-ink: #8a5a00;
  --top: #16252e; --top-ink: #e6edf1; --deep: #1d4f6e; --hero-ink: #ffffff; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 8px; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: only light;
}
/* Dark mode is chosen in the app (Settings → Appearance or My Profile), never from the device. */
:root[data-theme="dark"] { --bg: #0f171c; --panel: #172229; --panel-2: #1c2a32; --ink: #e4ebef; --muted: #94a3b0; --line: #2a3a44; --line-2: #22313a; --brand: #2bb3a4; --brand-2: #1f8f84; --brand-ink: #06201d; --brand-soft: #16312f; --accent: #f5b041; --accent-soft: #33290f; --danger: #f97066; --danger-soft: #3a1b18; --ok: #4ade80; --ok-soft: #133021; --warn-bar: #33290f; --warn-ink: #f5c86a; --top: #0b1216; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); }
body.noscroll { overflow: hidden; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h2 { font-size: 20px; margin: 0 0 12px; color: var(--brand); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 15px; margin: 16px 0 8px; } h4 { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.ic { flex: none; vertical-align: -3px; }
button { font: inherit; color: inherit; }

/* utilities */
.row { display: flex; align-items: center; } .gap { gap: 8px; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; gap: 8px; } .end { justify-content: flex-end; } .center { justify-content: center; text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; } .right { margin-left: auto; } .block { display: block; width: 100%; } .nowrap { white-space: nowrap; }
.mt { margin-top: 14px; } .mt-s { margin-top: 6px; } .mb { margin-bottom: 14px; } .mb-s { margin-bottom: 6px; } .mr { margin-right: 6px; } .pad { padding: 10px; }
.small { font-size: 12.5px; } .tiny { font-size: 10.5px; color: var(--muted); } .muted { color: var(--muted); } .red { color: var(--danger); } .green { color: var(--ok); } .b { font-weight: 700; } .r { text-align: right; }
.prewrap { white-space: pre-wrap; } .strike { text-decoration: line-through; opacity: .6; }
.w60 { width: 64px !important; } .w80 { width: 88px !important; } .w100 { width: 110px !important; } .w160 { width: 160px !important; } .w-auto { width: auto !important; }
.grid2, .grid3, .grid4 { display: grid; gap: 0 12px; } .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid2, .grid3, .grid4 { grid-template-columns: minmax(0, 1fr); } .hide-sm { display: none !important; } }

/* buttons & inputs */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font-weight: 550; min-height: 34px; text-decoration: none !important; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.btn:hover { background: var(--panel-2); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary, .btn.go { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .btn.primary:hover, .btn.go:hover { background: var(--brand-2); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.btn.light { background: rgba(255,255,255,.92); color: #16312f; border-color: transparent; } .btn.light:hover { background: #fff; }
.btn.sm { padding: 4px 10px; min-height: 30px; font-size: 13px; } .btn.xs { padding: 2px 8px; min-height: 24px; font-size: 12px; } .btn.lg { min-height: 46px; font-size: 16px; }
.btn.icon { padding: 6px; min-width: 36px; } .btn.sm.icon { min-width: 30px; } .btn.nav-btn { min-width: 76px; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 6px; cursor: pointer; color: inherit; display: inline-flex; } .icon-btn:hover { background: rgba(127,127,127,.15); } .icon-btn.sm { padding: 2px; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; } .link:hover { text-decoration: underline; } .link.muted { color: var(--muted); }
.inp { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; min-height: 34px; }
.inp:focus, .btn:focus-visible, .link:focus-visible, .tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
select.inp { padding-right: 26px; } textarea.inp { resize: vertical; } .inp.lg { font-size: 20px; min-height: 48px; } .inp.xs { min-height: 26px; padding: 2px 6px; font-size: 12px; width: auto; } .inp.center { text-align: center; }
.field { margin-bottom: 12px; min-width: 0; } .lbl { display: block; font-weight: 650; font-size: 13px; margin-bottom: 4px; } .req { color: var(--danger); font-weight: 500; font-size: 11.5px; } .opt { color: var(--muted); font-weight: 500; font-size: 11.5px; } .hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.chk { display: inline-flex; align-items: flex-start; gap: 6px; cursor: pointer; padding: 3px 0; margin-right: 12px; break-inside: avoid; } .chk input { margin-top: 3px; accent-color: var(--brand); } .chk.disabled { opacity: .6; }
.checklist { column-gap: 16px; } .checklist .chk { display: flex; margin-right: 0; }
@media (max-width: 640px) { .checklist { columns: 1 !important; } }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-err { color: var(--danger); margin-top: 8px; font-weight: 600; } .notice { padding: 10px 12px; border-radius: 6px; background: var(--brand-soft); } .notice.ok { background: var(--ok-soft); color: var(--ok); } .notice.err { background: var(--danger-soft); color: var(--danger); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; background: var(--panel-2); border: 1px solid var(--line); margin: 1px 2px 1px 0; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .pill.warn { background: var(--accent-soft); color: var(--warn-ink); border-color: transparent; } .pill.err { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill.st-awaiting { background: var(--accent-soft); color: var(--warn-ink); } .pill.st-active { background: var(--brand-soft); color: var(--brand); } .pill.st-complete { background: var(--ok-soft); color: var(--ok); }
.chip { display: inline-flex; gap: 5px; align-items: center; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.7); font-weight: 650; } .chip.warn { color: var(--danger); } .chip.sm { padding: 1px 6px; font-size: 12px; background: var(--panel-2); }
.swatch { display: inline-block; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.sdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); flex: none; } .sdot.inactive { background: #9aa4ad; } .sdot.blacklist { background: var(--danger); } .sdot.lead { background: var(--accent); }
.status-pill { padding: 2px 10px; border-radius: 99px; background: var(--ok); color: #fff; font-size: 12px; text-transform: capitalize; } .status-pill.inactive { background: #9aa4ad; } .status-pill.blacklist { background: var(--danger); } .status-pill.lead { background: var(--accent); color: #332200; }
.empty { padding: 26px 12px; text-align: center; color: var(--muted); background: var(--panel-2); border-radius: 6px; border: 1px dashed var(--line); } .empty.err { color: var(--danger); }
.loading { padding: 30px; text-align: center; color: var(--muted); } .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin-right: 8px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 10px 0; background: var(--panel-2); }
.banner { background: var(--panel-2); border: 1px solid var(--line); padding: 8px 12px; border-radius: 6px; margin: 8px 0; } .banner.err { background: var(--danger-soft); color: var(--danger); font-weight: 700; }

/* app shell */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; background: var(--top); color: var(--top-ink); border-bottom: 3px solid var(--accent); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--top-ink) !important; letter-spacing: .01em; font-size: 16px; text-decoration: none !important; }
.brand .ic { color: var(--accent); }
.top-actions { margin-left: auto; display: flex; gap: 4px; }
.search { position: relative; flex: 0 1 380px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 7px; padding: 0 10px; }
.search input { background: none; border: 0; color: inherit; font: inherit; padding: 8px 0; width: 100%; outline: none; } .search input::placeholder { color: rgba(230,237,241,.6); }
.search-drop { position: absolute; top: 40px; left: 0; right: 0; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.2); overflow: hidden; min-width: 300px; }
.search-drop button { display: flex; gap: 8px; align-items: center; width: 100%; background: none; border: 0; padding: 9px 12px; text-align: left; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.search-drop button.hi { background: var(--brand-soft); }
.shell { display: flex; align-items: flex-start; }
.content { flex: 1 1 auto; min-width: 0; padding: 14px; }
.rail { width: 250px; flex: none; padding: 14px 14px 14px 0; display: none; } @media (min-width: 1360px) { .rail { display: block; } }
.rail-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.rail-h { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 9px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.rail-row { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 7px 12px; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; color: inherit !important; text-decoration: none !important; }
.rail-row:hover { background: var(--panel-2); } .rail-more { display: block; text-align: center; padding: 7px; font-size: 13px; }
.drawer-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 90; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(330px, 92vw); background: var(--panel); color: var(--ink); overflow-y: auto; box-shadow: 8px 0 30px rgba(0,0,0,.25); padding-bottom: 20px; }
.drawer-user { display: flex; gap: 10px; align-items: center; padding: 16px; background: var(--brand); color: var(--brand-ink) !important; }
.drawer-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.drawer-quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); cursor: pointer; font-size: 12px; text-align: center; }
.dgroup { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 16px; border: 0; background: none; cursor: pointer; font-weight: 600; text-align: left; color: var(--ink) !important; border-bottom: 1px solid var(--line-2); text-decoration: none !important; }
.dgroup:hover { background: var(--panel-2); }
.dsub { background: var(--panel-2); } .dsub button { display: block; width: 100%; text-align: left; padding: 9px 16px 9px 44px; border: 0; background: none; cursor: pointer; } .dsub button:hover { color: var(--brand); }
.drawer-foot { padding: 14px 16px; font-size: 11.5px; color: var(--muted); }

/* page layout */
.side-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 800px) { .side-layout { grid-template-columns: minmax(0, 1fr); } }
.hcard { background: linear-gradient(135deg, var(--brand) 0%, var(--deep) 100%); color: var(--hero-ink); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.hcard-title { font-size: 22px; font-weight: 750; line-height: 1.15; } .hcard-owner { font-size: 14px; font-weight: 600; opacity: .9; margin-top: 2px; } .hcard-sub { margin-top: 6px; font-size: 13px; opacity: .92; }
.hcard-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hcard-actions:has(> :nth-child(5)) { gap: 7px; } .hcard-actions:has(> :nth-child(5)) .btn.icon { min-width: 32px; padding: 5px; }
.res-when { display: grid; gap: 10px; margin: 6px 0 14px; } .res-when-row { display: grid; grid-template-columns: 170px minmax(150px, 190px) minmax(120px, 150px); gap: 10px; align-items: center; } .res-when-h { font-weight: 700; }
@media (max-width: 640px) { .res-when-row { grid-template-columns: 1fr 1fr; } .res-when-h { grid-column: 1 / -1; } }
.home3 { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 12px; align-items: start; }
.home-panel { margin: 0; min-width: 0; padding: 14px 16px; }
.home-split { display: grid; grid-template-columns: minmax(330px, 1.05fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.home-cal, .home-day { min-width: 0; }
.home-cal .seg button { padding: 5px 9px; font-size: 12.5px; } .home-cal .nav-btn { min-width: 58px; } .home-cal .cal-title { font-size: 14.5px; }
.home-cal .month-h { font-size: 11px; padding: 4px 0; } .home-cal .mday { min-height: 70px; padding: 2px; } .home-cal .mday-n { font-size: 12px; padding: 0 5px; }
.home-cal .mcounts { gap: 3px; margin-top: 2px; } .home-cal .mcount { min-width: 22px; height: 22px; font-size: 11px; padding: 0 4px; }
.home-day-top { align-items: center; flex-wrap: wrap; } .home-day-h { margin: 0; font-size: 18px; line-height: 1.25; }
.home-rail { min-width: 0; } .home-rail .rail-box:first-child { margin-top: 0; }
.dlist { margin-top: 8px; border-top: 1px solid var(--line); max-height: calc(100vh - 190px); overflow-y: auto; }
.dl-row { display: flex; gap: 8px; width: 100%; text-align: left; padding: 7px 4px; border: 0; border-bottom: 1px solid var(--line-2); background: none; color: inherit; cursor: pointer; font: inherit; }
.dl-row:hover { background: var(--panel-2); } .dl-row.note { color: var(--muted); }
.dl-sqs { display: flex; flex-direction: column; gap: 3px; flex: none; } .dl-sq { width: 12px; height: 12px; border-radius: 2px; flex: none; margin-top: 3px; }
.dl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .dl-who { font-size: 13.5px; line-height: 1.35; } .dl-client { white-space: nowrap; }
.dl-time { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; } .dl-warn { color: var(--danger); display: inline-flex; }
@media (max-width: 1300px) { .home3 { grid-template-columns: minmax(0, 1fr); } .home-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .home-rail .rail-box { margin: 0; } }
@media (max-width: 1080px) { .home-split { grid-template-columns: minmax(0, 1fr); } .dlist { max-height: none; } }
@media (max-width: 800px) { .side-layout:has(.home3) .side .tabs, .side-layout:has(.home3) .side-foot { display: none; } .home-rail { grid-template-columns: minmax(0, 1fr); } .home-cal .mday { min-height: 54px; } }
.repeat { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--panel); margin-bottom: 10px; }
.repeat-l { display: inline-flex; align-items: center; gap: 6px; min-width: 80px; } .repeat .inp:not(.w60) { width: auto; }
.repeat-body { margin-top: 10px; display: grid; gap: 4px; } .repeat-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.repeat-opts .chk { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: var(--panel); color: inherit; border-radius: 99px; padding: 3px 10px; margin: 0 6px 4px 0; font: inherit; font-size: 12.5px; cursor: pointer; }
.chip-btn.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tip-box, .pay-methods { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.pm-h { font-weight: 750; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.tip-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.tip-add { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .tip-add select { flex: 1 1 auto; min-width: 0; }
.tip-amt { display: inline-flex; align-items: center; gap: 4px; } .tip-amt input { width: 90px; }
.pm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .pm-btn { justify-content: center; padding: 12px 8px; font-size: 15px; font-weight: 700; }
.pm-btn:not(:disabled):hover { border-color: var(--brand); color: var(--brand); }
.txn-view { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.txn-view .receipt { margin: 0; max-width: none; } .txn-detail { min-width: 0; }
@media (max-width: 900px) { .txn-view { grid-template-columns: minmax(0, 1fr); } }
.cs { position: relative; display: inline-block; min-width: 200px; max-width: 100%; }
.cs-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; } .cs-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-dot { width: 14px; height: 14px; border-radius: 3px; border: 1px solid; flex: none; display: inline-block; }
.cs-list { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 300px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; }
.cs-opt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.cs-opt:hover { background: var(--panel-2); } .cs-opt.on { background: var(--brand-soft); font-weight: 700; }
.hcard-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .hcard-row + .hcard-actions { margin-top: 8px; }
.ab-h { display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 4px; }
.ab-list { list-style: none; margin: 0; padding: 0; } .ab-list li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 0; font-size: 14px; } .ab-none { margin: 2px 0; }
.note-box { border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); padding: 8px 10px; min-height: 42px; white-space: pre-wrap; font-size: 14px; } .note-box.empty-note { color: var(--muted); font-style: italic; }
.ab-next { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 2px 0; } .ab-next .link { white-space: nowrap; font-weight: 700; }
.gnote-item { padding: 8px 0; border-bottom: 1px solid var(--line-2); } .gnote-item:last-child { border-bottom: 0; }
.alert-list li { display: flex; align-items: center; gap: 6px; } .alert-act { margin-left: auto; white-space: nowrap; font-weight: 700; font-size: 13.5px; }
.note-box.has-edit { position: relative; padding-right: 36px; } .note-edit { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; } .note-edit:hover { background: var(--panel); border-color: var(--line); color: var(--brand); }
.hovercard { position: fixed; z-index: 400; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.22); overflow: hidden; pointer-events: none; font-size: 13.5px; }
.hc-top { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-weight: 700; font-size: 12.5px; } .hc-top.ok { background: var(--ok-soft, #e6f6ec); color: var(--ok, #1a7f3c); } .hc-top.due { background: #fff4d6; color: #8a5a00; } .hc-wrap { word-break: break-all; } .hc-top.none { background: var(--danger-soft, #fde8e6); color: var(--danger, #c0362c); }
.hc-body { padding: 10px 12px 12px; } .hc-client { font-weight: 750; font-size: 15px; }
.hc-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; margin-top: 7px; } .hc-k { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding-top: 1px; }

.ev-nofuture { color: var(--danger); display: inline-flex; }
nav.tabs .tab.alert, nav.tabs .tab.alert .cnt { color: var(--danger) !important; font-weight: 700; } nav.tabs .tab.alert.on, nav.tabs .tab.alert.on .cnt { color: var(--brand-ink) !important; }
.btn.plus-badge { position: relative; } .btn.plus-badge::after { content: '+'; position: absolute; top: -6px; right: -6px; width: 17px; height: 17px; border-radius: 99px; background: var(--plus, #22a447); color: #fff; font: 800 14px/17px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--deep); }
.quick-add .btn.plus-badge::after { box-shadow: 0 0 0 2px var(--panel); } .quick-add { padding-top: 6px; }
.pcard { text-align: center; } .pcard .hcard-actions { justify-content: center; }
.avatar { width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,.2); margin: 0 auto 8px; display: grid; place-items: center; overflow: hidden; border: 3px solid rgba(255,255,255,.7); } .avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard-name { font-size: 18px; font-weight: 750; }
.tabs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; overflow: hidden; box-shadow: var(--shadow); }
.tab { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 11px 14px; color: var(--ink) !important; border-bottom: 1px solid var(--line-2); text-decoration: none !important; }
.tab:last-child { border-bottom: 0; } .tab:hover { background: var(--panel-2); } .tab .ic { color: var(--muted); }
.tab.on { background: var(--brand); color: var(--brand-ink) !important; font-weight: 700; } .tab.on .ic { color: var(--brand-ink); }
@media (min-width: 801px) { .tab.on::after { content: ""; position: absolute; right: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left-color: var(--brand); border-right: 0; } .tabs { overflow: visible; } }
@media (max-width: 800px) { .tab { padding: 10px 14px; } .side-foot { display: none; } }
.cnt { font-weight: 500; opacity: .85; }
.side-foot { display: flex; flex-direction: column; gap: 6px; padding: 12px 6px; font-size: 12.5px; } .side-foot a { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.main > .panel + .panel { margin-top: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; } .panel-head h2 { margin: 0; }
.panel-nav { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.alertbar { background: var(--warn-bar); border: 1px solid #f0d58a; border-radius: var(--radius); padding: 8px 12px; margin-bottom: 12px; }
:root[data-theme="dark"] .alertbar { border-color: #5b4815; }
.alert-list { margin: 8px 0 2px; padding: 0; list-style: none; } .alert-list li { padding: 3px 0; display: flex; gap: 6px; align-items: center; } .alert-list li.danger, .alert-list li.warn { color: var(--danger); } .alert-list li.info { color: var(--warn-ink); }
.kv { width: 100%; border-collapse: collapse; } .kv th { text-align: right; width: 38%; padding: 9px 12px; color: var(--ink); font-weight: 650; vertical-align: top; } .kv td { padding: 9px 12px; } .kv tr { border-bottom: 1px solid var(--line-2); } .kv .sub { font-size: 11px; color: var(--muted); font-weight: 400; }
.kv.compact th { width: 32%; padding: 6px 8px; font-size: 13px; } .kv.compact td { padding: 6px 8px; }
@media (max-width: 520px) { .kv th { width: 42%; } }
.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px; background: var(--panel-2); border-bottom: 1px solid var(--line); } .tbl td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--brand-soft); } .tbl tr.dim td { opacity: .55; } .tbl .r { text-align: right; } .tbl tr.b td { font-weight: 700; } .tbl tfoot th { background: var(--panel-2); color: var(--ink); font-size: 13px; text-transform: none; }
.tbl tr.expired td, .tbl tr.overdue td { color: var(--danger); }
@media (max-width: 700px) { .tbl.cards thead { display: none; } .tbl.cards tr { display: block; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 6px; }
  .tbl.cards td { display: flex; gap: 10px; border: 0; padding: 4px 6px; } .tbl.cards td[data-l]::before { content: attr(data-l) ":"; font-weight: 650; min-width: 110px; text-align: right; } .tbl.cards td.r { text-align: left; } }
.table-scroll { overflow-x: auto; }
.menu-wrap { position: relative; display: inline-block; }
.menu { position: absolute; z-index: 40; top: 100%; left: 0; min-width: 180px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 4px; margin-top: 4px; }
.menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; cursor: pointer; border-radius: 5px; color: var(--ink); } .menu button:hover { background: var(--brand-soft); } .menu button.danger { color: var(--danger); }
.hcard .menu { color: var(--ink); }
.toolbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: var(--panel-2); border: 1px solid var(--line); padding: 8px; border-radius: 6px; margin-bottom: 8px; flex-wrap: wrap; } .toolbar.wrap { justify-content: flex-start; }
.cards { display: flex; flex-direction: column; gap: 8px; }
.card-row { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; width: 100%; margin-bottom: 8px; } .card-row:hover, .card-row.on { border-color: var(--brand); background: var(--brand-soft); }
.list-row { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.note { padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 4px; margin-bottom: 8px; }
.thumb { width: 44px; height: 44px; border-radius: 6px; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); } .thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb.lg { width: 90px; height: auto; display: flex; flex-direction: column; }
.search-inp { max-width: 360px; }

/* overlays */
.ov-backdrop { position: fixed; inset: 0; height: 100vh; height: 100dvh; background: rgba(12, 20, 26, .55); display: flex; justify-content: flex-end; animation: fade .12s ease-out; }
.ov { width: 100%; background: var(--bg); height: 100%; max-height: 100vh; max-height: 100dvh; min-height: 0; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.3); animation: slide .16s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } } @keyframes fade { from { opacity: 0; } }
.ov-head { flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
@media (min-width: 801px) { .ov-head { cursor: move; touch-action: none; } .ov-head .icon-btn { cursor: pointer; } }
.ov.moved { animation: none; box-shadow: 0 16px 50px rgba(0,0,0,.4); } body.dragging, body.dragging * { user-select: none !important; cursor: move !important; }
.ov-title { font-size: 19px; font-weight: 750; } .ov-sub { font-size: 12.5px; color: var(--muted); }
.ov-body { flex: 1 1 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 18px; } .ov-foot { flex-shrink: 0; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel); }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--top); color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-weight: 600; max-width: 90vw; } .toast.err { background: var(--danger); }

/* booking rows / guests */
.brow { display: flex; gap: 12px; align-items: stretch; width: 100%; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; margin-bottom: 8px; }
.brow:hover { border-color: var(--brand); } .brow-bar { width: 5px; border-radius: 3px; flex: none; }
.brow-time { width: 118px; flex: none; font-size: 13px; color: var(--muted); } .brow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .brow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 560px) { .brow { flex-wrap: wrap; } .brow-time { width: auto; } }
.req { border-bottom: 1px solid var(--line-2); padding-bottom: 10px; margin-bottom: 10px; }
.gtile { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--panel); align-items: flex-start; } .gtile.sel { border-color: var(--brand); background: var(--brand-soft); }
.gtile-photo { width: 64px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); padding: 0; cursor: pointer; display: grid; place-items: center; }
.gtile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; } .gtile-photo:hover { border-color: var(--brand); }
.gtile-chk { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); } .gtile-main { flex: 1; min-width: 0; } .gtile-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px; background: var(--panel-2); border-radius: 6px; margin-bottom: 10px; } .bulk .inp { width: auto; }

/* calendar */
.cal-panel { padding: 14px; }
.cal-tools { margin-bottom: 10px; } .cal-title { font-weight: 750; font-size: 16px; text-align: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--panel); } .seg button { border: 0; background: none; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 13px; border-right: 1px solid var(--line); } .seg button:last-child { border-right: 0; } .seg button.on { background: var(--brand); color: var(--brand-ink); }
.cal-opts { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; } .cal-opts h3 { margin-top: 0; color: var(--brand); }
.cal-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; font-weight: 600; min-width: 150px; } .cal-chip.on { background: var(--brand-soft); border-color: var(--brand); }
.pop-wrap { position: relative; } .pop { position: absolute; z-index: 30; top: 100%; left: 0; margin-top: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.2); padding: 10px; } .pop.right { left: auto; right: 0; }
.minimonth { width: 250px; } .mm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 6px; } .mm-h { font-size: 11px; color: var(--muted); text-align: center; }
.mm-d { border: 0; background: none; padding: 6px 0; border-radius: 5px; cursor: pointer; font-size: 13px; } .mm-d:hover { background: var(--panel-2); } .mm-d.on { background: var(--brand); color: var(--brand-ink); }
.cal { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal-head, .cal-body { display: grid; }
.cal-head { background: var(--panel-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 8; }
.cal-hrs { padding: 8px 4px; font-weight: 700; font-size: 12px; text-align: center; align-self: end; }
.cal-colh { padding: 6px 4px; text-align: center; font-weight: 700; font-size: 13px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; } .cal-colh small { font-weight: 500; color: var(--muted); } .cal-colh.today { background: var(--brand-soft); color: var(--brand); }
.cal-scroll { max-height: calc(100vh - 290px); min-height: 420px; overflow: auto; }
.cal-times div { font-size: 11px; color: var(--muted); text-align: right; padding: 2px 6px 0 0; border-top: 1px solid var(--line-2); }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line-2) 0, var(--line-2) 1px, transparent 1px, transparent 48px); cursor: cell; }
.cal-col { background-color: var(--panel); } .cal-col.closed { background-color: var(--panel-2); }
.cal-sel { position: absolute; left: 0; right: 0; background: rgba(15, 118, 110, .25); border: 2px solid var(--brand); border-radius: 4px; pointer-events: none; z-index: 2; }
.ev { position: absolute; z-index: 3; overflow: hidden; background: color-mix(in srgb, var(--evc) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--evc) 45%, transparent); border-left-width: 4px; border-radius: 5px; padding: 2px 4px; font-size: 11.5px; line-height: 1.25; cursor: pointer; user-select: none; touch-action: none; }
.ev:hover { z-index: 5; box-shadow: 0 4px 14px rgba(0,0,0,.2); } .ev.dragging { opacity: .85; z-index: 6; box-shadow: 0 6px 20px rgba(0,0,0,.3); } .ev.done { opacity: .65; }
.ev.note { background: #fff6c2; color: #4a3b00; } .ev-t { font-weight: 700; } .ev-c { color: var(--muted); } .ev-n { font-style: italic; } .ev-icons { display: flex; gap: 2px; color: var(--muted); }
.ev-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; cursor: ns-resize; }
.month { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .month-h { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--panel-2); font-weight: 700; font-size: 12px; text-align: center; padding: 6px 0; }
.month-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } .mday { min-height: 104px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 3px; overflow: hidden; } .mday:nth-child(7n+1) { border-left: 0; }
.mday.other { background: var(--panel-2); opacity: .7; } .mday.today .mday-n { background: var(--brand); color: var(--brand-ink); }
.mday-n { border: 0; background: none; font-weight: 700; cursor: pointer; border-radius: 99px; padding: 1px 7px; }
.mday { cursor: pointer; background: var(--panel); } .mday.sel { box-shadow: inset 0 0 0 2px var(--brand); } .mday:hover { background: var(--brand-soft); } .mcounts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mcount { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 99px; background: var(--evc); font-size: 12px; font-weight: 700; box-shadow: 0 0 0 1px color-mix(in srgb, var(--evc) 70%, #000) inset; }
.mchip { display: block; width: 100%; text-align: left; font-size: 11px; padding: 2px 4px; margin-top: 2px; border: 0; border-left: 3px solid var(--evc); background: color-mix(in srgb, var(--evc) 14%, var(--panel)); border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.legend { margin-top: 10px; } .legend-box { padding: 10px; background: var(--panel-2); border-radius: 8px; margin-top: 6px; } .legend-box span { display: inline-flex; gap: 5px; align-items: center; }
.stops { padding-left: 20px; } .stops li { margin-bottom: 8px; }

/* reservation grid */
.rcal-wrap { overflow: auto; max-height: calc(100vh - 280px); border: 1px solid var(--line); border-radius: 8px; }
.rcal { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.rcal th, .rcal td { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); width: var(--cw); min-width: var(--cw); height: 46px; padding: 0; }
.rcal thead th { position: sticky; top: 0; z-index: 3; background: var(--panel-2); font-size: 12px; height: 44px; } .rcal thead th.today { background: var(--brand); color: var(--brand-ink); } .rcal thead th.today small { color: inherit; }
.rcal tr.gtotal td, .rcal tr.gtotal th { position: sticky; top: 44px; z-index: 3; background: var(--panel); text-align: center; font-weight: 700; height: 30px; }
.rcal .rcal-run { position: sticky; left: 0; z-index: 2; background: var(--panel); width: 160px; min-width: 160px; text-align: left; padding: 4px 8px; font-size: 12px; font-weight: 600; } .rcal thead .rcal-run, .rcal tr.gtotal .rcal-run { z-index: 4; }
.rcell { position: relative; cursor: cell; vertical-align: top; } .rcell:hover { background: var(--brand-soft); } .rcell.over { background: var(--danger-soft); }
.occ { position: absolute; bottom: 1px; left: 3px; font-size: 10px; color: var(--muted); }
.stay { position: absolute; top: 4px; left: 3px; z-index: 1; height: 24px; display: flex; align-items: center; gap: 3px; padding: 0 7px; border-radius: 4px; background: #263238; color: #fff; border: 0; font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.stay.st-checked-in { background: var(--brand); } .stay.st-checked-out { background: #9aa4ad; } .stay:hover { filter: brightness(1.15); }
.stay-key { display: inline-block; padding: 1px 8px; border-radius: 4px; color: #fff; background: #263238; margin-right: 4px; } .stay-key.st-checked-in { background: var(--brand); } .stay-key.st-checked-out { background: #9aa4ad; }

/* booking wizard */
.step-h { color: var(--brand); font-weight: 750; font-size: 16px; margin-bottom: 12px; } .step-h.sm { font-size: 14px; margin-bottom: 6px; }
.sub-h { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin: 22px -18px -18px; padding: 12px 18px; border-top: 1px solid var(--line); position: sticky; bottom: -18px; background: var(--bg); z-index: 5; }
@media (max-width: 640px) { .wiz-nav { margin: 22px -12px -12px; padding: 10px 12px; bottom: -12px; } }
.wiz-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 600; min-height: 42px; padding: 6px 14px 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font-family: inherit; }
.wiz-btn:hover { background: var(--panel-2); } .wiz-btn.go { padding: 6px 10px 6px 16px; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .wiz-btn.go:hover { background: var(--brand-2); } .wiz-btn:disabled { opacity: .55; cursor: not-allowed; }
.wiz-cal .cal-scroll { max-height: 380px; min-height: 300px; }
.adv { margin-top: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; }
.petcard { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 10px 0; background: var(--panel); } .petcard.off { opacity: .55; }
.pet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } .pet-head-name { font-size: 18px; font-weight: 750; }
.pet-thumb { width: 72px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); padding: 0; cursor: pointer; color: var(--muted); }
.pet-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .pet-thumb:hover { border-color: var(--brand); color: var(--brand); }
.pet-thumb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; } .pet-thumb-empty small { font-size: 10.5px; }
.svc-each { font-size: 13px; white-space: nowrap; } .svc-amt { min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.svc-total { border-bottom: 0 !important; border-top: 2px solid var(--line); font-weight: 750; }
.svc { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-2); } .svc-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); } .svc-pick { background: var(--panel-2); padding: 8px; border-radius: 6px; margin: 8px 0; }
.contact-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }

/* appointment view */
.appt { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: start; } @media (max-width: 760px) { .appt { grid-template-columns: minmax(0, 1fr); } }
.appt-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }

/* profiles */
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pet-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink) !important; text-decoration: none !important; text-align: center; background: var(--panel); } .pet-card:hover { border-color: var(--brand); } .pet-card.off { opacity: .6; }
.pet-img { width: 110px; height: 110px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; margin-bottom: 6px; } .pet-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; } .photo-grid figure { margin: 0; } .photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.map-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 320px; } .map-frame iframe { width: 100%; height: 100%; border: 0; } .map-frame .empty { height: 100%; display: grid; place-items: center; }
.faq { border-bottom: 1px solid var(--line-2); padding: 8px 0; } .faq summary { cursor: pointer; font-weight: 650; } .tips li { margin-bottom: 8px; }

/* charts */
.chart { width: 100%; height: auto; } .chart .grid { stroke: var(--line); } .chart .axis { fill: var(--muted); font-size: 11px; } .chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; } .chart .dotp { fill: var(--panel); stroke: var(--brand); stroke-width: 2.5; } .chart .bar { fill: var(--brand); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; overflow: hidden; } .stat { padding: 12px; text-align: center; border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; }
.stat-k { color: var(--brand); font-weight: 750; font-size: 12px; letter-spacing: .06em; } .stat-v { font-size: 18px; font-weight: 700; margin-top: 4px; }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* schedule */
.sched { width: 100%; border-collapse: collapse; min-width: 720px; } .sched th, .sched td { border: 1px solid var(--line-2); padding: 8px; text-align: center; font-size: 13px; } .sched thead th { background: var(--panel-2); } .sched thead th.today { background: var(--brand-soft); color: var(--brand); }
.sched tbody th { text-align: left; width: 150px; } .sched td.closed { background: var(--panel-2); color: var(--muted); } .sched td.on { background: var(--ok-soft); } .sched td.click { cursor: pointer; } .sched td.click:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.colors { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .color { width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; } .color.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--panel) inset; }

/* POS */
.pos { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); } .pos.return { background: var(--danger-soft); }
.pos-head { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; background: var(--top); color: var(--top-ink); border-bottom: 3px solid var(--accent); }
.pos-bar { display: flex; gap: 8px; padding: 12px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.pos-body { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 14px; padding: 14px; flex: 1; } @media (max-width: 900px) { .pos-body { grid-template-columns: minmax(0, 1fr); } }
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.pos-item { display: flex; flex-direction: column; gap: 2px; padding: 12px; min-height: 86px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; } .pos-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.pos-cart { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 14px; }
.cart-lines { margin-top: 10px; max-height: 42vh; overflow-y: auto; } .cart-line { display: flex; gap: 6px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.totals { width: 100%; margin: 10px 0; border-collapse: collapse; } .totals td { padding: 4px 0; } .totals td:last-child { text-align: right; } .totals .big td { font-size: 20px; font-weight: 800; border-top: 2px solid var(--line); padding-top: 8px; }
.pay-total { font-size: 22px; margin-bottom: 14px; } .pay-sum { margin: 14px 0; font-weight: 700; font-size: 16px; }
.receipt-wrap { padding: 20px; } .receipt { background: #fff; color: #111; max-width: 440px; margin: auto; padding: 22px; border-radius: 8px; box-shadow: var(--shadow); } .receipt table { width: 100%; border-collapse: collapse; margin: 10px 0; } .receipt td, .receipt th { padding: 4px 0; border-bottom: 1px solid #eee; text-align: left; } .receipt .r { text-align: right; } .receipt h1 { font-size: 20px; margin: 0; } .receipt .muted { color: #666; }

/* login & public */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--top) 0%, var(--deep) 100%); }
.login { width: 100%; max-width: 380px; background: var(--panel); padding: 26px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-brand { display: flex; flex-direction: column; gap: 4px; align-items: center; margin: -6px 0 16px; } .login-logo { width: min(260px, 80%); height: auto; display: block; border-radius: 14px; } .login-name { font-size: 24px; font-weight: 800; color: var(--ink); }
.clock-face { font-size: 44px; font-weight: 300; text-align: center; background: var(--panel-2); border-radius: 8px; padding: 14px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.pin { font-size: 28px; text-align: center; letter-spacing: .3em; min-height: 56px; margin-bottom: 10px; }
.public { min-height: 100vh; background: var(--bg); } .public-head { background: linear-gradient(135deg, var(--brand), var(--deep)); color: var(--hero-ink); padding: 22px 16px; } .public-head > div { max-width: 760px; margin: auto; } .public-name { font-size: 26px; font-weight: 800; }
.public-main { max-width: 760px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; } .public-intro { margin: 0; } .public-foot { text-align: center; padding: 20px; }
.slot-days { display: flex; flex-direction: column; gap: 10px; } .slot-day { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; } @media (max-width: 520px) { .slot-day { grid-template-columns: 1fr; } }

@media (max-width: 640px) { .content { padding: 8px; } .panel { padding: 12px; } .topbar { gap: 6px; padding: 0 8px; } .brand span { display: none; } .search { flex: 1 1 auto; } .ov-body { padding: 12px; } .cal-chip { min-width: 0; } }
@media print { .topbar, .side, .rail, .panel-nav, .btn, .toolbar, .legend, .toasts { display: none !important; } .side-layout { display: block; } .panel { box-shadow: none; border: 0; } body { background: #fff; } }
.cal-times { position: sticky; left: 0; z-index: 4; background: var(--panel); border-right: 1px solid var(--line); }
.cal-hrs { position: sticky; left: 0; z-index: 9; background: var(--panel-2); }

.alert-checks { display: grid; gap: 4px; margin: 10px 0; } .alert-check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; } .alert-check input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; }

/* ---- phones & tablets ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.kv td { overflow-wrap: anywhere; }
@media (max-width: 800px), (pointer: coarse) {
  /* iPhone/iPad zoom into any text box smaller than 16px and stay zoomed in; 16px stops that */
  .inp, .inp.xs, input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px; }
}
@media (max-width: 800px) {
  /* wide tables scroll sideways inside their panel instead of pushing the whole screen wider */
  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tbl th, .tbl td { padding: 7px 6px; }
}
@media (max-width: 560px) {
  .kv.compact th, .kv.compact td { display: block; width: auto; text-align: left; }
  .kv.compact th { padding: 8px 6px 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
  .kv.compact td { padding: 2px 6px 8px; }
}
@media (max-width: 560px) {
  .btn.nav-btn { min-width: 40px; padding-left: 8px; padding-right: 8px; }
  .seg button { padding: 7px 9px; }
  .cal-tools .row.between.mt-s { flex-wrap: wrap; row-gap: 6px; }
  .cal-tools .row.between.mt-s > .cal-title { order: -1; flex: 1 1 100%; }
  .gtile { flex-wrap: wrap; } .gtile-main .row { flex-wrap: wrap; }
  .gtile-actions { flex: 1 1 100%; justify-content: flex-start; }
}

.notice-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 10px; border-radius: 8px; background: var(--brand-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); font-size: 13.5px; }
/* readable text on every colour theme, light and dark */
.chip { color: #1c2a33; } .chip.warn { color: #b42318; }
:root[data-theme="dark"] .chip { background: rgba(255,255,255,.1); color: var(--ink); } :root[data-theme="dark"] .chip.warn { color: var(--danger); }
.stay.st-checked-in { color: var(--brand-ink); }
.plink { cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; } .plink:hover { text-decoration-color: currentColor; } .plink:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 2px; }
.dnc-box { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; } .dnc-box input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--danger); flex-shrink: 0; } .dnc-box.on { border-color: var(--danger); background: var(--danger-soft); }
.pill.dnc { background: var(--danger); color: #fff; }
.phone-text { display: inline-flex; align-items: center; gap: 8px; } .phone-text .link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sms-thread { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; padding: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; min-height: 90px; }
.sms-msg { align-self: flex-end; max-width: 85%; display: flex; flex-direction: column; align-items: flex-end; }
.sms-bubble { background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.35; }
.sms-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; text-align: right; }
.preset-pick { margin-bottom: 8px; } .preset-list { display: grid; gap: 8px; margin-top: 10px; } .preset-row { display: flex; gap: 8px; align-items: flex-start; } .preset-row textarea { flex: 1; } .preset-tools { display: flex; flex-direction: column; gap: 2px; }
.clink { display: inline-flex; align-items: center; gap: 4px; } .text-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; color: var(--brand); opacity: .85; } .text-ic:hover { opacity: 1; background: var(--brand-soft); } .text-ic:focus-visible { outline: 2px solid var(--brand); }
.hcard .text-ic { color: inherit; } .hcard .text-ic:hover { background: rgba(255,255,255,.18); }
.brand-ic { width: 30px; height: 30px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.85); background: #fefdfa; } .public-foot-ic { width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; }
.menu-btn { margin-left: -6px; }
/* menu: clear hover / keyboard feedback */
.drawer-quick button { color: var(--ink); transition: background .12s, border-color .12s, color .12s; }
.drawer-quick button:hover, .drawer-quick button:focus-visible { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.dgroup:hover, .dgroup:focus-visible { background: var(--brand-soft); color: var(--brand) !important; }
.dsub button { color: var(--ink); } .dsub button:hover, .dsub button:focus-visible { background: var(--brand-soft); color: var(--brand); }
:root[data-theme="dark"] .drawer-quick button:hover, :root[data-theme="dark"] .dgroup:hover, :root[data-theme="dark"] .dsub button:hover { color: var(--ink) !important; }
/* Desktop: windows open in the middle of the screen with a quick zoom, like an app launching on a phone */
@media (min-width: 801px) {
  .ov-backdrop { justify-content: center; align-items: center; padding: 24px; }
  .ov { height: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: pop .24s cubic-bezier(.18, .89, .32, 1.15); transform-origin: 50% 50%; }
  .ov-body { flex: 1 1 auto; }
}
@keyframes pop { from { transform: scale(.8); opacity: 0; } 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ov, .ov-backdrop { animation: none !important; } }
.small-h { margin-top: 12px; font-size: 13px; color: var(--muted); }
.alert-msg { display: flex; gap: 12px; align-items: flex-start; } .alert-msg .ic { color: var(--danger); flex-shrink: 0; margin-top: 2px; } .alert-msg p { margin: 0; font-size: 15px; line-height: 1.45; }
.clone { text-align: center; } .clone-next { font-weight: 750; font-size: 16px; margin: 4px 0 10px; } .clone-next.ok { color: var(--ok); } .clone-next.none { color: var(--danger); }
.clone-help { color: var(--ink); margin: 0 auto 16px; max-width: 520px; }
.clone-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; } .clone-grid .clone-btn { grid-column: span var(--span, 3); }
@media (max-width: 560px) { .clone-grid .clone-btn { grid-column: span 6; } }
.clone-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--ink); font: inherit; font-size: 17px; font-weight: 650; cursor: pointer; transition: background .12s, border-color .12s, transform .08s; }
.clone-btn:hover { background: var(--brand-soft); border-color: var(--brand); } .clone-btn:active { transform: scale(.97); }
.clone-btn small { font-size: 13px; font-weight: 600; color: var(--muted); } .clone-btn em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.clone-btn.avg { border-color: var(--brand); } .clone-btn.avg small { color: var(--brand); }
.choice-list { display: grid; gap: 8px; } .btn.choice { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 52px; padding: 8px 14px; text-align: left; font-size: 15px; font-weight: 650; white-space: normal; }
.btn.choice small { font-size: 12.5px; font-weight: 500; opacity: .85; } .btn.danger-outline { border-color: var(--danger); color: var(--danger); background: var(--panel); } .btn.danger-outline:hover { background: var(--danger-soft); }
.app-form { max-width: 760px; margin: 0 auto; } .app-title { margin: 0 0 8px; font-size: 26px; color: var(--brand); }
.app-form fieldset { border: 0; padding: 0; margin: 0; } .app-form legend { font-size: 18px; font-weight: 750; margin-bottom: 12px; padding: 0; }
.app-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 8px 0 18px; flex-wrap: wrap; } .app-steps li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--panel-2); color: var(--muted); font-weight: 650; font-size: 13.5px; }
.app-steps li span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; } .app-steps li.on { background: var(--brand-soft); color: var(--brand); } .app-steps li.on span, .app-steps li.done span { background: var(--brand); color: var(--brand-ink); }
.app-pet { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--panel); } .app-pet h3 { margin: 0 0 6px; }
.app-waiver { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; } .app-waiver h3 { margin: 0 0 8px; }
.app-waiver-body { white-space: pre-wrap; max-height: 320px; overflow-y: auto; padding: 10px 12px; background: var(--panel-2); border-radius: 8px; font-size: 14px; line-height: 1.5; }
.app-agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border: 2px solid var(--brand); border-radius: 8px; background: var(--brand-soft); cursor: pointer; font-size: 15px; } .app-agree input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex-shrink: 0; }
.app-done h2 { margin: 10px 0 6px; } .app-done .ic { color: var(--ok); } .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Client-facing branding (application form, online booking) */
.public.branded { font-family: Lato, system-ui, sans-serif; color: var(--ink); }
.public.branded .public-head { background: var(--pb-head); color: #fff; padding: 18px 16px 16px; text-align: center; border-bottom: 4px solid var(--brand); }
.public.branded .public-name, .public.branded h1, .public.branded h2, .public.branded h3, .public.branded legend { font-family: Comfortaa, Lato, system-ui, sans-serif; }
.pb-logo { display: block; margin: 0 auto; max-width: min(300px, 80vw); max-height: 80px; height: auto; } .pb-logo-a { display: inline-block; }
.pb-tagline { font-family: Comfortaa, Lato, sans-serif; font-weight: 700; margin-top: 8px; font-size: 15px; color: var(--pb-accent, #fff); }
.pb-contact { margin-top: 4px; color: rgba(255,255,255,.8); } .pb-contact a { color: #fff; }
.public.branded .app-title { color: var(--ink); text-align: center; font-weight: 700; }
.public.branded .app-title::after { content: ""; display: block; width: 18px; height: 18px; margin: 8px auto 0; background: var(--pb-accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='5' cy='10' rx='2.3' ry='3'/%3E%3Cellipse cx='9.5' cy='5.5' rx='2.3' ry='3.1'/%3E%3Cellipse cx='14.5' cy='5.5' rx='2.3' ry='3.1'/%3E%3Cellipse cx='19' cy='10' rx='2.3' ry='3'/%3E%3Cpath d='M12 11c-3 0-6.5 4.2-6.5 7 0 2 1.6 3 3.3 3 1.3 0 2.1-.6 3.2-.6s1.9.6 3.2.6c1.7 0 3.3-1 3.3-3 0-2.8-3.5-7-6.5-7z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='5' cy='10' rx='2.3' ry='3'/%3E%3Cellipse cx='9.5' cy='5.5' rx='2.3' ry='3.1'/%3E%3Cellipse cx='14.5' cy='5.5' rx='2.3' ry='3.1'/%3E%3Cellipse cx='19' cy='10' rx='2.3' ry='3'/%3E%3Cpath d='M12 11c-3 0-6.5 4.2-6.5 7 0 2 1.6 3 3.3 3 1.3 0 2.1-.6 3.2-.6s1.9.6 3.2.6c1.7 0 3.3-1 3.3-3 0-2.8-3.5-7-6.5-7z'/%3E%3C/svg%3E") center/contain no-repeat; }
.public.branded .app-title { position: relative; }
.public.branded .app-steps { justify-content: center; }
.public.branded .btn.primary { border-radius: 99px; padding-left: 22px; padding-right: 22px; font-weight: 700; }
.public.branded .btn.primary:hover { filter: brightness(.88); }
.public.branded .panel { border-color: var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.public.branded .inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.public.branded .app-done .ic { color: var(--brand); }
.public.branded .public-foot a { color: var(--brand); font-weight: 700; }
.brand-prev { border-radius: 10px; padding: 14px; display: grid; place-items: center; min-height: 70px; margin-bottom: 10px; color: #fff; } .brand-prev img { max-width: 260px; max-height: 64px; }

/* Phone dashboard: accordion */
.dash-m .hcard { margin-bottom: 12px; }
.dash-acc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dash-acc-item + .dash-acc-item { border-top: 1px solid var(--line-2); }
.dash-acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; background: none; border: 0; font: inherit; font-size: 16px; color: var(--ink); text-align: left; cursor: pointer; }
.dash-acc-head .ic { color: var(--muted); transition: transform .18s; }
.dash-acc-item.open .dash-acc-head { background: var(--brand); color: var(--brand-ink); font-weight: 700; } .dash-acc-item.open .dash-acc-head .ic { color: var(--brand-ink); transform: rotate(180deg); }
.dash-acc-head.alert { color: var(--danger); font-weight: 700; } .dash-acc-item.open .dash-acc-head.alert { color: var(--brand-ink); }
.dash-cnt { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); font-size: 14px; font-weight: 700; display: inline-grid; place-items: center; }
.dash-cnt.has { background: var(--brand); color: var(--brand-ink); } .dash-cnt.has.alert { background: var(--danger); color: #fff; }
.dash-acc-item.open .dash-cnt { background: rgba(255,255,255,.22); color: var(--brand-ink); }
.dash-acc-body { padding: 12px; background: var(--panel); animation: dropIn .18s ease-out; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.dash-acc-body .tbl { font-size: 14px; }
.dash-acc-body .tbl, .dash-acc-body .tbl tbody, .dash-acc-body .tbl tr, .dash-acc-body .tbl td { display: block; width: 100%; }
.dash-acc-body .tbl thead { display: none; } .dash-acc-body .tbl { min-width: 0 !important; }
.dash-acc-body .tbl tr { padding: 10px 4px; border-bottom: 1px solid var(--line-2); } .dash-acc-body .tbl tr:last-child { border-bottom: 0; }
.dash-acc-body .tbl td { padding: 2px 0 !important; border: 0 !important; overflow-wrap: anywhere; } .dash-acc-body .tbl td:first-child { font-size: 16px; }
.dash-acc-body .tbl td:empty { display: none; }

/* iOS date inputs: keep them inside their box and left-aligned like other fields */
input[type="date"].inp, input[type="time"].inp { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 42px; text-align: left; }
input[type="date"].inp::-webkit-date-and-time-value, input[type="time"].inp::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field .cs { display: block; width: 100%; }
/* Appointment reschedule form */
.resched { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.resched h3 { margin: 0 0 12px; }
.resched .field { margin-bottom: 14px; }
.resched-actions { margin-top: 6px; }
@media (max-width: 800px) {
  .resched-when { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .resched-when > :first-child { grid-column: 1 / -1; }
  .resched-who { display: grid; grid-template-columns: 1fr; gap: 0; }
  .resched-actions .btn { flex: 1; justify-content: center; min-height: 46px; font-size: 16px; }
  .ov h3 { font-size: 17px; }
  .ov ul.small li { margin-bottom: 4px; line-height: 1.45; }
}

.app-sched { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); } .app-sched h3 { margin: 0 0 10px; }
.app-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.app-choice { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--panel); cursor: pointer; font-size: 15px; }
.app-choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.app-choice.on { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
@media (max-width: 800px) { .app-choice { flex: 1 1 calc(50% - 8px); } }
.remind-when { margin: 6px 0 4px 28px; display: grid; gap: 8px; } .remind-row { margin-left: 26px; } .remind-row .inp, .remind-row select { width: auto; min-width: 140px; }
.pet-editing th, .pet-editing td { background: var(--brand-soft); } .pet-editing .cs, .pet-editing select { min-width: 200px; }
.app-photo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.app-photo-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.app-photo-add { display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--brand); background: var(--panel); }
.app-photo-add:hover, .app-photo-add:focus-within { border-color: var(--brand); }
.app-photo .btn { position: relative; cursor: pointer; }
.app-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.app-photo-add { position: relative; }
.dash-lbl { display: inline-flex; align-items: center; gap: 8px; }
.dash-split { display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.dash-chip { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--c); color: #fff; font-size: 14px; font-weight: 800; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.dash-acc-item.open .dash-chip { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.dash-split { flex-wrap: nowrap; gap: 4px; }
.dash-chip { min-width: 24px; height: 24px; padding: 0 6px; font-size: 13px; }
.dash-lbl { white-space: nowrap; gap: 6px; }
@media (max-width: 400px) { .dash-acc-head { padding-inline: 12px; gap: 6px; } .dash-lbl { font-size: 15px; } .dash-acc-head .dash-lbl + .row { gap: 4px; } }
.brow-time { width: 74px; color: var(--ink); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; } .brow-time b { font-weight: 600; color: var(--muted); font-size: 12px; }
/* Pet status bubbles: each status has its own color; tap to change it in place */
.pill.st-inbound { background: var(--panel-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.pill.st-active { background: rgba(37, 99, 235, .12); color: #1d4ed8; }
.pill.st-prep { background: rgba(147, 51, 234, .12); color: #7e22ce; }
.pill.st-awaiting { background: rgba(217, 119, 6, .14); color: #b45309; }
.pill.st-complete { background: rgba(22, 163, 74, .13); color: #15803d; }
:root[data-theme="dark"] .pill.st-active { color: #93b4ff; } :root[data-theme="dark"] .pill.st-prep { color: #d3a6ff; } :root[data-theme="dark"] .pill.st-awaiting { color: #f5c06a; } :root[data-theme="dark"] .pill.st-complete { color: #6ee79a; }
.pill.st-pick { position: relative; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 700; padding-right: 8px; }
.pill.st-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.pill.st-pick:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.pill.st-pick.busy { opacity: .6; }
.brow:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.dl-states { margin-top: 5px; } .dl-row:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.drawer-dev { display: flex; align-items: center; gap: 10px; margin: 8px 12px; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #7a4a00 !important; text-decoration: none !important; border: 1px dashed #e0a030; }
.drawer-dev span { display: grid; line-height: 1.25; } .drawer-dev small { font-size: 12px; opacity: .8; }
.drawer-dev:hover { background: #ffeac2; }
/* Checked out at the register: the whole appointment turns gray */
.brow.checked-out, .dl-row.checked-out { background: var(--panel-2); color: var(--muted); }
.brow.checked-out .pill, .dl-row.checked-out .pill { background: var(--line-2) !important; color: var(--muted) !important; box-shadow: none; }
.brow.checked-out .plink, .brow.checked-out .clink, .dl-row.checked-out .plink, .dl-row.checked-out a { color: var(--muted) !important; }
.brow.checked-out .brow-bar { background: #b8c1c8 !important; opacity: 1; } .dl-row.checked-out .dl-sq { filter: grayscale(1); opacity: .6; }
.brow.checked-out .chip.warn, .dl-row.checked-out .dl-warn { color: var(--danger) !important; }
.brow.checked-out b, .brow.checked-out .brow-time, .dl-row.checked-out .dl-who { color: var(--muted); }

.hc-alerts span:last-child { color: var(--danger); }
.stat-sub { font-size: 11px; color: var(--muted); margin-top: -2px; }
.stat-split { display: grid; gap: 1px; margin-top: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-btn { border: 0; border-radius: 6px; font: inherit; font-weight: 650; cursor: pointer; } .chip-btn:hover { filter: brightness(.95); }
.glance-next { font-size: 14px; align-self: center; }
.texts-list { display: grid; gap: 8px; }
.text-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: grid; gap: 4px; }
.text-body { white-space: pre-wrap; background: var(--panel-2); border-radius: 10px; padding: 8px 10px; font-size: 14.5px; }
.svc-last { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--brand-soft); display: grid; gap: 4px; }
.svc-last-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.svc-last-price { font-variant-numeric: tabular-nums; }
.stat-total { background: var(--brand-soft); }
/* Send New Client Form (Dashboard) */
.sendapp { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sendapp-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.sendapp.open .sendapp-head { background: var(--brand-soft); color: var(--brand); }
.sendapp-body { padding: 10px 14px 14px; display: grid; gap: 6px; } .sendapp-body .btn { margin-top: 4px; } .sendapp-body .opt { color: var(--muted); font-weight: 500; font-size: 12px; }
/* Upcoming appointments card on client + pet profiles */
.upc { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.upc-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.upc-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 12px; text-align: center; margin-left: 4px; }
.upc-empty { padding: 10px 14px; }
.upc-list { list-style: none; margin: 0; padding: 4px 0; }
.upc-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 14px 7px 12px; background: none; border: 0; border-left: 4px solid var(--c); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.upc-item:hover { background: var(--hover, rgba(0,0,0,.04)); }
.upc-when { font-weight: 700; } .upc-sub { font-size: 12.5px; color: var(--muted); }
.upc-more { display: block; padding: 4px 14px 10px; }
.upc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px 10px; } .upc-head { gap: 6px; padding: 10px 12px; }
.sms-input { resize: vertical; min-height: 80px; max-height: 60vh; line-height: 1.4; } .sms-long .sms-thread { max-height: 26vh; }
.drawer-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.7); flex: none; }
/* Dashboard tools under Send New Client Form */
.dashtools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.dashtool { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.dashtool:hover { background: var(--brand-soft); color: var(--brand); }
/* Sticky notes: float above every screen */
.stickies { position: fixed; inset: 0; pointer-events: none; z-index: 900; }
.sticky { position: fixed; width: 220px; min-height: 150px; display: flex; flex-direction: column; pointer-events: auto; border-radius: 4px 4px 4px 14px; box-shadow: 0 8px 22px rgba(0,0,0,.25); color: #3a3000; }
.sticky-yellow { background: #fff3a8; } .sticky-pink { background: #ffd1dc; color: #4a1024; } .sticky-blue { background: #cfe8ff; color: #0d2c4a; } .sticky-green { background: #d4f5c9; color: #173d0c; }
.sticky-bar, .calc-bar { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; cursor: grab; touch-action: none; user-select: none; background: rgba(0,0,0,.07); border-radius: 4px 4px 0 0; font-size: 12px; font-weight: 700; }
.sticky-meta { flex: 1; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-x { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.sticky-x:hover { background: rgba(0,0,0,.12); }
.sticky-text { flex: 1; min-height: 120px; resize: both; border: 0; background: transparent; padding: 8px 10px 12px; font-family: inherit; font-size: 15px; line-height: 1.4; color: inherit; outline: none; }
.sticky-text::placeholder { color: inherit; opacity: .5; }
@media (max-width: 800px) { .sticky { width: 180px; } .sticky-text { font-size: 16px; min-height: 100px; } }
/* Calculator */
.calc { position: fixed; z-index: 950; width: 250px; background: #1f2326; color: #fff; border-radius: 14px; box-shadow: 0 14px 36px rgba(0,0,0,.35); overflow: hidden; }
.calc-bar { background: rgba(255,255,255,.08); color: #e6e6e6; }
.calc-screen { padding: 10px 14px 6px; text-align: right; min-height: 70px; }
.calc-expr { font-size: 28px; font-weight: 300; overflow-wrap: anywhere; line-height: 1.15; }
.calc-res { font-size: 15px; color: #a9b1b6; min-height: 20px; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px 12px 14px; }
.calc-k { height: 46px; border: 0; border-radius: 23px; background: #3b4145; color: #fff; font-family: inherit; font-size: 19px; font-weight: 500; cursor: pointer; }
.calc-k:hover { filter: brightness(1.15); } .calc-k.fn { background: #8b9296; color: #111; } .calc-k.op { background: var(--brand, #bd1e24); } .calc-k.eq { background: #f6ab4a; color: #111; }
.dashtool { flex-direction: column; gap: 4px; padding: 10px 8px 9px; font-size: 13.5px; }
.dashtool-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid #dfe4e8; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.dashtool:hover .dashtool-ic { border-color: var(--brand); }
.rundown-pv pre { white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.5; margin: 6px 0 0; max-height: 420px; overflow: auto; }
.danger-zone { border: 1px solid #e3a7a7; background: #fff6f6; border-radius: var(--radius); padding: 12px 16px; } .danger-zone h3 { margin-top: 0; color: #a4161a; }
/* Zebra striping: every other row shaded so long lists are easier to follow */
:root { --zebra: #edf1f4; } :root[data-theme="dark"] { --zebra: rgba(255,255,255,.04); }
.tbl tbody tr:nth-child(even) > td, .kv tbody tr:nth-child(even) > th, .kv tbody tr:nth-child(even) > td { background: var(--zebra); }
.kv.compact tbody tr > th, .kv.compact tbody tr > td { background: none; } /* short pet cards inside forms stay plain */
