/* DipidyDawg Client Intake app — shared by the intake app, the price menu, the cheat sheet and the customer quote.
   Brand: DipidyDawg orange, cocoa, cream and sage, with the website's fonts (Fraunces + Nunito Sans). */
:root {
  --ink: #2a1d15;
  --muted: #7a6455;
  --line: #ecd9c4;
  --bg: #fff8ef;
  --card: #ffffff;
  --brand: #e8711f;
  --brand-dark: #c95a0e;
  --brand-soft: #fde9d7;
  --cocoa: #3a2418;
  --cocoa-2: #5b3b29;
  --cream-2: #fbeedd;
  --sun: #f2b23a;
  --sun-soft: #fff4dc;
  --warn: #b42e1c;
  --warn-soft: #fdece8;
  --ok: #4f7f69;
  --ok-soft: #e3efe8;
  --radius: 16px;
  --shadow: 0 8px 24px -14px rgba(58, 36, 24, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3, .brand { font-family: 'Fraunces', Georgia, serif; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: .8rem; margin: 1rem 0 .5rem; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: var(--ink); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--cocoa); color: #fff; display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; flex-wrap: wrap; box-shadow: 0 2px 0 var(--brand); }
.brand { font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; margin-right: auto; color: #fff; text-decoration: none; display: flex; align-items: center; gap: .6rem; }
.top .brand img { height: 30px; width: auto; background: #fff8ef; padding: 5px 9px; border-radius: 10px; box-sizing: content-box; }
.top .brand span { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 700; font-size: 1.05rem; color: #fde3cf; }
.top nav a.on { background: var(--brand); }
.top nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.top nav a { color: #fff; text-decoration: none; padding: .55rem .8rem; border-radius: 10px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; }
.top nav a.on, .top nav a:hover { background: rgba(255, 255, 255, .16); }
.badge { background: var(--sun); color: #3b2a00; border-radius: 999px; padding: 0 .5rem; font-size: .8rem; font-weight: 700; }
.who { font-size: .85rem; opacity: .9; }
.who button { background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 8px; padding: .3rem .6rem; margin-left: .4rem; cursor: pointer; min-height: 36px; }

main { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card > h2:first-child { display: flex; align-items: center; gap: .5rem; }
.num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; flex: none; }

/* Two columns at tablet width: questions left, price right */
.quote-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .quote-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .price-col { position: sticky; top: 76px; }
  /* A long side column (the pet profile) scrolls with the page: stuck, its bottom could never be reached. */
  .price-col.side-long { position: static; }
}

/* Big choice buttons */
.choices { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choices.wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice { display: flex; flex-direction: column; justify-content: flex-start; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .7rem .85rem; min-height: 56px; cursor: pointer; transition: border-color .1s, background .1s; }
.choice b { display: block; font-size: 1rem; }
.choice span { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.choice .price { color: var(--brand); font-weight: 700; font-size: .9rem; }
.choice.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice:disabled { opacity: .45; cursor: not-allowed; }
.choice.warn.on { border-color: var(--warn); background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn); }

.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg .choice { flex: 1 1 110px; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 12px; padding: .75rem 1.2rem; min-height: 52px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sun { background: var(--sun); color: #3b2a00; }
.btn.danger { background: #fff; color: var(--warn); border: 2px solid var(--warn); }
.btn.small { min-height: 40px; padding: .4rem .8rem; font-size: .9rem; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.btn-row .btn { flex: 1 1 160px; }
.link { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; padding: .4rem 0; min-height: 40px; font-weight: 600; }

/* Fields */
.fields { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
label.f { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
label.f input, label.f select, label.f textarea, .search { display: block; width: 100%; margin-top: .25rem; padding: .7rem .8rem; min-height: 50px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem; }
label.f textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); }
.search { font-size: 1.1rem; margin: 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; min-height: 52px; font-weight: 600; }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--brand); }
.check.on { border-color: var(--ok); background: var(--ok-soft); }

/* Search results / lists */
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; margin-top: .6rem; }
.rows > * { min-width: 0; }
@media (max-width: 600px) { .row { flex-wrap: wrap; } .row .grow { flex-basis: 60%; } }
.row { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; min-height: 56px; cursor: pointer; text-align: left; width: 100%; text-decoration: none; color: inherit; }
.row:hover { border-color: var(--brand); }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; }
.row .grow span { display: block; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.chip.sun { background: var(--sun-soft); color: #7a5300; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }

/* Notices */
.note { border-radius: 12px; padding: .75rem .9rem; margin: .6rem 0; background: var(--sun-soft); border: 1px solid #f1d79a; }
.note.warn { background: var(--warn-soft); border-color: #f0c6ab; }
.note.ok { background: var(--ok-soft); border-color: #b9dfc6; }
.note b { display: block; margin-bottom: .2rem; }

/* Price breakdown */
.price-card { background: #fff; border: 2px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.1rem; }
.price-card h2 { margin-bottom: .4rem; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: 1.02rem; }
.lines li .amt { font-weight: 700; white-space: nowrap; }
.lines li.added { color: var(--warn); }
.lines li.added small { display: block; color: var(--muted); font-size: .78rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6rem; font-family: 'Fraunces', Georgia, serif; }
.total b { font-size: 2.2rem; color: var(--brand); }
.oneline { background: var(--bg); border-radius: 10px; padding: .6rem .75rem; margin-top: .6rem; font-size: .92rem; }
.profile-price { display: flex; justify-content: space-between; align-items: center; background: var(--sun-soft); border-radius: 10px; padding: .55rem .75rem; margin-top: .6rem; font-weight: 600; }
.empty { color: var(--muted); padding: 1rem 0; text-align: center; }
.def { font-size: .82rem; color: var(--muted); margin-top: .35rem; }

/* (i) tips */
.tip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font: italic 700 12px/1 Georgia, serif; color: var(--muted); background: none; cursor: pointer; padding: 0; flex: none; }
.pop-back { position: fixed; inset: 0; background: rgba(20, 30, 40, .45); display: grid; place-items: center; z-index: 50; padding: 1rem; }
.pop { background: #fff; border-radius: var(--radius); max-width: 440px; width: 100%; padding: 1.1rem 1.2rem; max-height: 85vh; overflow: auto; }
.pop .btn { width: 100%; margin-top: .8rem; }

/* Prices editor */
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: .35rem .3rem; text-align: left; border-bottom: 1px solid var(--line); }
.ptable th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ptable td:first-child { font-weight: 600; }
.ptable input { width: 100%; min-width: 64px; min-height: 44px; padding: .4rem .5rem; border: 2px solid var(--line); border-radius: 8px; font-size: 1rem; }
.ptable input.changed { border-color: var(--sun); background: var(--sun-soft); }
.scroll-x { overflow-x: auto; }

.toast { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; z-index: 60; box-shadow: 0 8px 30px rgba(0, 0, 0, .2); max-width: calc(100% - 2rem); }
.toast.err { background: var(--warn); }

.signin { max-width: 420px; margin: 8vh auto; }
.signin .brand { color: var(--brand); font-size: 1.8rem; justify-content: center; margin-bottom: .4rem; }

/* Printed / customer quote and menu */
.sheet { max-width: 720px; margin: 1rem auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 3px solid var(--brand); padding-bottom: .8rem; margin-bottom: 1rem; }
.sheet-head .brand { color: var(--brand); font-size: 1.6rem; }
.menu-table { width: 100%; border-collapse: collapse; margin-bottom: .5rem; }
.menu-table th, .menu-table td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-align: right; }
.menu-table th:first-child, .menu-table td:first-child { text-align: left; }
.menu-table thead th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.menu-table thead th small { display: block; font-weight: 400; }
.menu-table td b { color: var(--brand); }
.includes { font-size: .82rem; color: var(--muted); font-weight: 400; }

/* Lines for staff to say or do, under a heading */
.say { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 8px; padding: .45rem .7rem; margin: 0 0 .6rem; font-size: .9rem; color: var(--brand-dark); }
.hint { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: .55rem .75rem; margin-top: .5rem; font-size: .92rem; }
.warn-text { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.chip.big { font-size: 1.05rem; padding: .3rem .8rem; }
.banner { margin: 0 0 1rem; }
.lines li.credit .amt { color: var(--ok); }
.voided { opacity: .55; text-decoration: line-through; }
.price-card.voided { text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin: .6rem 0; }
.tile { background: var(--brand-soft); border-radius: 12px; padding: .6rem; text-align: center; }
.tile span { display: block; font: 800 1.35rem 'Fraunces', Georgia, serif; color: var(--brand); }
.tile small { color: var(--muted); }

/* Running total at the top on narrow screens, where the price card sits below the questions */
.mini-total { display: none; }
@media (max-width: 899px) {
  .mini-total { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: #fff; border: 2px solid var(--brand); border-radius: 12px; padding: .55rem .8rem; margin-bottom: .8rem; text-decoration: none; color: var(--ink); min-height: 48px; }
  .mini-total b { color: var(--brand); font-size: 1.2rem; }
  .mini-total span { font-size: .85rem; color: var(--brand); font-weight: 600; }
}

/* Phone quote */
.range { text-align: center; font: 800 2.4rem/1.1 'Fraunces', Georgia, serif; color: var(--brand); margin: .3rem 0; }
.range span { font-size: 1rem; color: var(--muted); margin: 0 .5rem; font-weight: 600; }
.range.small-range { font-size: 1.6rem; }
.script { background: var(--sun-soft); border-radius: 12px; padding: .7rem .9rem .7rem 2rem; margin: .3rem 0; font-size: 1rem; }
.script li { margin: .35rem 0; }
.script.waiting { opacity: .45; }
details summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: .3rem 0; min-height: 36px; }

/* Owner screens */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .8rem; }
.tab { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: .5rem .8rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.tab.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.ptable textarea, .ptable select { width: 100%; min-height: 44px; padding: .4rem .5rem; border: 2px solid var(--line); border-radius: 8px; font-size: .95rem; background: #fff; }
.ptable textarea { min-height: 60px; resize: vertical; }
.ptable textarea.changed, .ptable select.changed, label.f textarea.changed, label.f input.changed { border-color: var(--sun); background: var(--sun-soft); }
.ptable tr.muted input, .ptable tr.muted textarea { opacity: .5; }
.ptable.breeds input[type=number] { min-width: 70px; }
.ptable.breeds td:first-child input { min-width: 160px; }
.ptable.breeds textarea { min-width: 220px; }

/* Guide */
.guide-wrap { display: grid; gap: 1rem; }
@media (min-width: 900px) { .guide-wrap { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } .guide-nav { position: sticky; top: 76px; } }
.guide-nav { display: flex; flex-direction: column; gap: .15rem; padding: .6rem; }
.guide-nav a { text-decoration: none; padding: .5rem .6rem; border-radius: 8px; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.guide-nav a.on, .guide-nav a:hover { background: var(--brand-soft); }
.guide h2 { border-bottom: 3px solid var(--brand); padding-bottom: .35rem; }
.steps { padding-left: 1.4rem; margin: .4rem 0; }
.steps li { margin: .45rem 0; }
.tidy { padding-left: 1.2rem; }
.tidy li { margin: .45rem 0; }
.examples { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.example { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: #fff; }
.ex-head { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.menu-table.words td { font-size: .92rem; }

@media (max-width: 900px) { .guide-nav { flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 1280px) { .top nav a { padding: .5rem .55rem; } .who button { margin-left: .25rem; } }

@media (max-width: 600px) {
  main { padding: .75rem; }
  .top { padding: .3rem .75rem; gap: .2rem; }
  .top nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .top nav a { padding: .4rem .55rem; font-size: .92rem; white-space: nowrap; min-height: 40px; }
  .who { font-size: .78rem; }
  .price-col { order: 2; }
  .total b { font-size: 1.9rem; }
  .sheet { padding: 1rem; margin: .5rem; }
  .sheet-head > div:last-child { text-align: left !important; }
  .menu-table th, .menu-table td { padding: .4rem .2rem; font-size: .9rem; }
}

@media print {
  body { background: #fff; }
  .top, .no-print, .btn, .link, .tip { display: none !important; }
  main { padding: 0; }
  .sheet, .card, .price-card { border: 0; box-shadow: none; margin: 0; padding: 0; }
}

/* ===== DipidyDawg Client Intake: brand polish and new pieces ===== */
.top nav a.on { background: var(--brand); color: #fff; }
.top nav a:hover:not(.on) { background: rgba(255, 255, 255, .12); }
.who button { border-color: rgba(253, 227, 207, .5); }
.card { border-radius: var(--radius); box-shadow: var(--shadow); border-color: var(--line); }
h2 { font-size: 1.25rem; color: var(--cocoa); }
h3 { color: var(--brand-dark); }
.btn { border-radius: 999px; font-weight: 800; box-shadow: 0 8px 18px -12px rgba(232, 113, 31, .9); }
.btn.ghost { box-shadow: none; }
.btn.danger { box-shadow: none; }
.choice { border-radius: 14px; }
.choice.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.price-card { border-radius: 20px; box-shadow: var(--shadow); }
.total b { color: var(--brand-dark); font-family: 'Fraunces', Georgia, serif; }
.tile { background: var(--cream-2); }
.tile span { font-family: 'Fraunces', Georgia, serif; color: var(--cocoa); }
.say { background: var(--cream-2); border-left-color: var(--brand); }
.row:hover { border-color: var(--brand); box-shadow: var(--shadow); }

/* Texting consent */
.consent-box { margin-top: .9rem; border: 2px dashed var(--line); border-radius: 14px; padding: .7rem .8rem .8rem; background: #fffdf9; }
.consent-box.on { border-style: solid; border-color: #b9d4c6; background: var(--ok-soft); }
.consent-title { font-weight: 800; color: var(--cocoa); margin-bottom: .4rem; }
.consent-box .check { background: #fff; }
.ghl-line { margin-top: .6rem; font-size: .85rem; color: var(--muted); }

/* Groom status card on a saved quote */
.groom-card { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.groom-card.live { border-color: var(--brand); background: linear-gradient(180deg, #fff3e8, #fff); }
.groom-card.done { border-color: #b9d4c6; background: linear-gradient(180deg, var(--ok-soft), #fff); }
.groom-head { display: flex; gap: .75rem; align-items: center; }
.groom-head b { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.2rem; color: var(--cocoa); }
.groom-head span { display: block; font-size: .88rem; color: var(--muted); }
.groom-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); flex: none; }
.groom-card.live .groom-dot { background: var(--brand); box-shadow: 0 0 0 6px rgba(232, 113, 31, .18); animation: pulse 1.6s ease-in-out infinite; }
.groom-card.done .groom-dot { background: var(--ok); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(232, 113, 31, .06); } }
@media (prefers-reduced-motion: reduce) { .groom-card.live .groom-dot { animation: none; } }
.groom-btn { width: 100%; margin-top: .8rem; min-height: 56px; font-size: 1.05rem; }
.groom-card.live .groom-btn { background: var(--ok); box-shadow: 0 8px 18px -12px rgba(79, 127, 105, .9); }
.groom-card.live .groom-btn:hover { background: #3f6b57; }
.groom-card .link { display: inline-block; margin-top: .6rem; }
.text-status { margin-top: .55rem; font-size: .88rem; color: var(--muted); background: var(--cream-2); border-radius: 10px; padding: .45rem .65rem; }
.text-status.ok { color: #2f5d48; background: var(--ok-soft); }
.text-status.warn { color: var(--warn); background: var(--warn-soft); }

/* Today: status chips and tiles */
.chip.live { background: #fde3cf; color: var(--brand-dark); font-weight: 700; }
.tile.live { background: #fde3cf; }
.tile.ok { background: var(--ok-soft); }

@media (max-width: 600px) {
  .top .brand span { font-size: .85rem; }
  .top .brand img { height: 22px; padding: 4px 7px; }
  .top nav a { padding: .5rem .6rem; }
}

/* ---------- Scheduling: calendar, booking, appointments, staff, photos ---------- */
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; vertical-align: middle; flex: none; }
.dot.big { width: 1rem; height: 1rem; }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.cal-head h2 { margin: 0 auto 0 .2rem; flex: 1 1 220px; }
.cal-nav { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.cal-nav input[type=date] { padding: .45rem .5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 40px; }
.cal-scroll { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cal-grid { display: grid; position: relative; min-width: max-content; }
.cal-colhead { position: sticky; top: 0; z-index: 3; background: var(--cream-2); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: .45rem .6rem; display: flex; flex-direction: column; }
.cal-colhead b { font-family: 'Fraunces', Georgia, serif; }
.cal-colhead .dot { display: inline-block; }
.cal-colhead small { color: var(--muted); font-size: .75rem; }
.cal-grid > div:first-child { position: sticky; top: 0; left: 0; z-index: 4; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.cal-times { position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--line); }
.cal-hour { position: absolute; right: .4rem; font-size: .72rem; color: var(--muted); transform: translateY(-.1rem); white-space: nowrap; }
.cal-col { position: relative; border-left: 1px solid var(--line); cursor: copy;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 64px), repeating-linear-gradient(to bottom, #f6ece0 0 1px, transparent 1px 32px); }
.cal-col.ghl { cursor: default; background-color: #fbfaf8; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(122, 100, 85, .08) 0 6px, rgba(122, 100, 85, .14) 6px 12px); pointer-events: none; }
.cal-off span { display: block; padding: .3rem .5rem; font-size: .75rem; color: var(--muted); font-weight: 700; }
.cal-off.away { background: repeating-linear-gradient(135deg, rgba(180, 46, 28, .07) 0 6px, rgba(180, 46, 28, .13) 6px 12px); }
.cal-appt { position: absolute; left: 4px; right: 4px; z-index: 1; overflow: hidden; border-radius: 9px; padding: .3rem .45rem; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--c, #e8711f) 16%, #fff); border: 1px solid color-mix(in srgb, var(--c, #e8711f) 45%, #fff); border-left: 4px solid var(--c, #e8711f); font-size: .8rem; line-height: 1.25; cursor: pointer; }
.cal-appt:hover { box-shadow: var(--shadow); z-index: 2; }
.cal-appt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-appt span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-appt .st { position: absolute; top: .3rem; right: .35rem; font-style: normal; font-size: .68rem; font-weight: 800; background: #fff; border-radius: 999px; padding: 0 .4rem; }
.cal-appt.st-grooming { background: color-mix(in srgb, var(--sun) 30%, #fff); }
.cal-appt.st-done { opacity: .7; }
.cal-appt.st-done .st { color: var(--ok); }
.cal-appt.st-no-show, .cal-appt.st-cancelled { opacity: .45; text-decoration: line-through; }
.cal-appt.ghl { --c: #8a8a8a; background: #f1f1f1; cursor: default; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--warn); z-index: 2; pointer-events: none; }
.cal-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.week-day { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; min-height: 160px; display: flex; flex-direction: column; gap: .35rem; }
.week-day.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.week-day.closed { background: #faf6f1; }
.week-head { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.week-head span { font-size: .75rem; color: var(--muted); }
.week-appt { display: block; text-decoration: none; color: var(--ink); border-left: 4px solid var(--c, #e8711f); background: color-mix(in srgb, var(--c, #e8711f) 12%, #fff); border-radius: 8px; padding: .25rem .4rem; font-size: .78rem; line-height: 1.25; }
.week-appt b, .week-appt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-appt span { color: var(--muted); }
.week-appt.ghl { --c: #8a8a8a; }
.week-appt.st-done { opacity: .65; }
@media (max-width: 899px) { .week { grid-template-columns: 1fr; } .week-day { min-height: 0; } .cal-scroll { max-height: none; } }
.chip.st-booked { background: var(--brand-soft); }
.chip.st-checked-in { background: var(--sun-soft); color: #7a5300; }
.chip.st-grooming { background: var(--sun); color: var(--cocoa); }
.chip.st-done { background: var(--ok-soft); color: var(--ok); }
.chip.st-cancelled, .chip.st-no-show { background: var(--warn-soft); color: var(--warn); }
.appt-card { border-top: 6px solid var(--c, var(--brand)); }
.appt-top { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .5rem; }
.appt-when { display: flex; flex-direction: column; margin: .2rem 0 .6rem; }
.appt-when b { font: 700 1.25rem 'Fraunces', Georgia, serif; }
.appt-when span { color: var(--muted); }
.hist { list-style: none; padding: 0; margin: 0; font-size: .85rem; display: grid; gap: .3rem; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.shifts { display: grid; gap: .35rem; }
.shift-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.shift-row .check { min-width: 9.5rem; margin: 0; }
.shift-row input[type=time] { padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.due-row .grow span { white-space: normal; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.photo { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; display: flex; flex-direction: column; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--cream-2); }
.photo span { font-size: .72rem; color: var(--muted); padding: .25rem .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-big { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; background: #000; }
.file-btn { cursor: pointer; }
.file-btn.busy { opacity: .6; pointer-events: none; }
.file-btn.busy::after { content: ' · saving…'; }
.note.banner.ok { background: var(--ok-soft); border-color: var(--ok); }
.choice .dot, .seg .dot { display: inline-block; margin: 0 .3rem 0 0; }
.row .grow b span { display: inline; }
/* Month view (calendar and open times) */
.mon-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; margin-bottom: .3rem; }
.mon-dow span { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-left: .3rem; }
.mon-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.mon-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .3rem; min-height: 112px; display: flex; flex-direction: column; gap: .2rem; min-width: 0; font: inherit; text-align: left; color: var(--ink); }
.mon-cell.out { opacity: .5; }
.mon-cell.closed { background: #faf6f1; }
.mon-cell.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.mon-day { display: flex; justify-content: space-between; align-items: baseline; gap: .3rem; text-decoration: none; color: var(--ink); }
.mon-day b { font-family: 'Fraunces', Georgia, serif; }
.mon-day span { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.mon-appt { display: block; text-decoration: none; color: var(--ink); font-size: .72rem; line-height: 1.25; border-left: 3px solid var(--c, #e8711f); background: color-mix(in srgb, var(--c, #e8711f) 12%, #fff); border-radius: 5px; padding: .1rem .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-appt.st-done { opacity: .65; }
.mon-appt.st-no-show { opacity: .45; text-decoration: line-through; }
.mon-more { font-size: .72rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.av-mon .mon-cell { min-height: 64px; cursor: pointer; }
.av-mon .mon-cell:disabled { cursor: default; }
.av-mon .mon-cell:not(:disabled):hover { border-color: var(--brand); }
.av-n { font-size: .78rem; font-weight: 700; color: var(--ok); }
.av-mon .mon-cell.closed .av-n { color: var(--muted); font-weight: 600; }
@media (max-width: 700px) {
  .mon-cell { min-height: 58px; padding: .25rem; }
  .mon-appt, .mon-more { display: none; }
  .mon-day { flex-direction: column; gap: 0; }
  .mon-day span { font-size: .62rem; white-space: normal; }
  .mon-dow span { font-size: .62rem; padding: 0; text-align: center; }
  .av-n { font-size: .66rem; }
}
/* Open times on the booking page */
.av-head { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.av-head > b { font-family: 'Fraunces', Georgia, serif; min-width: 11rem; text-align: center; }
.av-modes { display: flex; gap: .3rem; margin-left: auto; }
.av-staff { padding: .45rem 0; border-top: 1px solid var(--line); }
.av-staff:first-of-type { border-top: 0; }
.av-staff > b { display: block; margin-bottom: .35rem; }
.av-week { display: grid; gap: .5rem; }
.av-day { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem; align-items: start; padding: .35rem 0; border-top: 1px solid var(--line); }
.av-day:first-child { border-top: 0; }
.av-day.today > b { color: var(--brand-dark); }
.slots { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.slot { font: inherit; font-size: .85rem; font-weight: 700; border: 1.5px solid var(--line); border-left: 4px solid var(--c, var(--brand)); background: #fff; border-radius: 9px; padding: .35rem .55rem; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-height: 40px; justify-content: center; }
.slot small { font-size: .68rem; font-weight: 600; color: var(--muted); }
.slot:hover { border-color: var(--brand); }
.slot.on { background: var(--brand); color: #fff; border-color: var(--brand-dark); }
.slot.on small { color: #fff; }
.slot.more { border-left-width: 1.5px; color: var(--brand-dark); }
.picked { margin-top: .7rem; padding: .55rem .75rem; border-radius: 10px; background: var(--brand-soft); font-size: .92rem; }
@media (max-width: 600px) { .av-day { grid-template-columns: 1fr; gap: .25rem; } .av-modes { margin-left: 0; } .av-head > b { min-width: 0; flex: 1; } }
/* Repeat visits list */
.rep-list { display: grid; gap: .35rem; margin-top: .6rem; }
.rep-row { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rep-row.warn { border-color: #f0b9ad; background: var(--warn-soft); }
.rep-row input[type=date], .rep-row select { padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; min-height: 38px; }
.rep-n { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex: none; }
/* Two apps, one look: DipidyDen (the CRM) gets a green accent so it's clear which one is open. */
.top.crm { box-shadow: 0 2px 0 var(--ok); }
.top.crm nav a.on { background: var(--ok); color: #fff; }
.top nav a.other-app { border: 1px solid rgba(255, 255, 255, .35); }
/* ---------- Reports (DipidyDen) ---------- */
.rep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; flex-wrap: wrap; }
.rep-head h2 { margin-bottom: .1rem; }
.rep-presets { margin-top: .7rem; }
.rep-presets .choice { flex: 1 1 100px; min-height: 44px; padding: .45rem .5rem; }
.rep-dates { margin-top: .5rem; max-width: 420px; }
.rep-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 1rem; }
.rep-tile { text-align: left; padding: .7rem .8rem; }
.rep-tile > span { font-size: 1.6rem; line-height: 1.1; }
.rep-tile .rep-label { display: block; color: var(--ink); font-weight: 700; font-size: .85rem; margin: .15rem 0 .2rem; }
.rep-tile small:last-child { display: block; font-size: .75rem; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.rep-grid .card { margin: 0; }
.rep-t td:first-child { width: 55%; }
.rep-t td:not(:first-child), .rep-t th:not(:first-child) { text-align: right; white-space: nowrap; }
.rep-bar { display: block; height: 6px; margin-top: .3rem; background: var(--cream-2); border-radius: 3px; overflow: hidden; }
.rep-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.rep-chart { position: relative; width: 100%; overflow: hidden; }
.rep-chart svg { display: block; }
.rc-bar { fill: var(--brand); }
.rc-grid { stroke: #efe4d8; stroke-width: 1; }
.rc-base { stroke: #d9c6b2; stroke-width: 1; }
.rc-tick { fill: var(--muted); font-size: 11px; font-family: 'Nunito Sans', system-ui, sans-serif; }
.rc-hit { fill: transparent; cursor: pointer; }
.rc-hit.on { fill: rgba(232, 113, 31, .08); }
.rc-tip { position: absolute; pointer-events: none; background: var(--cocoa); color: #fff; border-radius: 8px; padding: .35rem .55rem; font-size: .8rem; white-space: nowrap; box-shadow: var(--shadow); }
.rc-tip b, .rc-tip span { display: block; }
.rep-table { margin-top: .6rem; }
.rep-table summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); }
.rep-table table { margin-top: .4rem; }
@media (max-width: 600px) { .rep-grid { grid-template-columns: 1fr; } .rep-tile > span { font-size: 1.35rem; } }
@media print { .rep-grid { display: block; } .rep-grid .card { break-inside: avoid; margin-bottom: 1rem; } .rep-table { display: none; } }
.rep-actions { margin: 0; flex-wrap: nowrap; }
.rep-actions .btn { width: auto; flex: 0 0 auto; }
/* From the owner (My Pets) on the pet profile */
.owner-card.has { border-top: 4px solid var(--sun); }
.portal-url { width: 100%; margin-top: .45rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: .82rem; background: #fff; }
/* Groomer pay: pay-period bar and the grooms behind each total */
.pay-period { font-size: 1.05rem; margin: .2rem 0 .4rem; }
.pay-period b { font-family: 'Fraunces', Georgia, serif; }
.pay-bar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.pay-items summary { cursor: pointer; font-size: .8rem; color: var(--brand-dark); margin-top: .2rem; }
.pay-items ul { list-style: none; padding: 0; margin: .3rem 0 0; font-size: .82rem; }
.pay-items li { display: flex; justify-content: space-between; gap: .6rem; padding: .15rem 0; border-bottom: 1px dashed var(--line); }
@media print { .pay-items[open] summary, .pay-items summary { display: none; } }
.req-card { border-top: 6px solid var(--sun); }
/* Checkout at pickup (checkout.js): Regulars Club, then Book Before You Leave, then a plain next booking */
.checkout-card { background: #fff; border: 2px solid var(--brand); border-radius: 20px; padding: 1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.checkout-card h2 { margin-top: 0; }
.checkout-card h3 { display: flex; align-items: center; gap: .45rem; }
.co-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; font-weight: 700; flex: none; }
.co-weeks { margin-top: .5rem; }
.note.gift { margin-top: .6rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Snowbird Season Capture (Season Pass, VIP Return): profile, check-in, booking */
.snow-card { border-left: 4px solid #5b8fc4; }
.snow-card h2 .chip { vertical-align: middle; margin-left: .3rem; }
.note.snow { background: #eef4fb; border-color: #c6d9ee; }
.lines.gifts li { align-items: baseline; flex-wrap: wrap; gap: .2rem 1rem; }
.lines.gifts li .small { text-align: right; }
.note.sun { background: var(--sun-soft); border-color: #f1d79c; }
/* Printable grooming schedule (pet profile → Print schedule): only the sheet prints. */
#print-sheet { display: none; }
@media print {
  body.printing-sheet > *:not(#print-sheet) { display: none !important; }
  body.printing-sheet #print-sheet { display: block; color: #000; font: 12pt/1.45 'Nunito Sans', Arial, sans-serif; }
  #print-sheet .ps-head { display: flex; gap: 18px; align-items: center; border-bottom: 2px solid #e8711f; padding-bottom: 10px; font-size: 10pt; }
  #print-sheet .ps-head img { height: auto; }
  #print-sheet h1 { font: 700 20pt 'Fraunces', Georgia, serif; margin: 18px 0 2px; }
  #print-sheet .ps-sub { margin: 0 0 12px; color: #444; }
  #print-sheet table { width: 100%; border-collapse: collapse; }
  #print-sheet th, #print-sheet td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #ccc; }
  #print-sheet th { font-size: 9pt; text-transform: uppercase; letter-spacing: .05em; color: #555; }
  #print-sheet .ps-note { margin-top: 16px; }
  #print-sheet .ps-foot { margin-top: 22px; font-size: 9pt; color: #777; }
}
/* Long lists: 20 per page */
.pager { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.pager .btn:disabled { opacity: .4; cursor: default; }
@media print { .pager { display: none; } }
/* Prepaid packs (packs.js): the Grand Club and the Loyalty Pack */
.pack-card.on { border-top: 4px solid var(--ok); }
.pack-left { font-size: 1.05rem; }
.pack-dots { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0; }
.pack-dots span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; color: var(--ok); background: #fff; }
.pack-dots span.used { background: var(--ok); color: #fff; }
.pack-dots span.free { border-color: var(--sun); color: #7a5300; background: var(--sun-soft); }
.pack-dots span.free.used { background: var(--sun); color: var(--cocoa); }
.pack-bonus { list-style: none; margin: 0; padding: 0; }
.pack-bonus li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.pack-bonus li > span:first-child { flex: 1 1 180px; min-width: 0; }
.pack-bonus li.used > span:first-child b { color: var(--muted); text-decoration: line-through; }
.pack-offer { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.pack-offer .grow { flex: 1 1 200px; min-width: 0; }
.pack-offer .grow > * { display: block; }
.tile.warn { background: var(--sun-soft); }
.table-scroll .ptable { min-width: 640px; }
.row .grow b.chip { display: inline-block; margin: .1rem 0; }
/* Staff page: one section per tab */
.st-tabs { margin: 0 0 1rem; }
.st-panel .card { margin: 0 0 1rem; }
.st-one { max-width: 860px; }
.st-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .st-two { grid-template-columns: 1fr; } .st-two > * { max-width: 860px; } }
.st-two.st-hours { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.st-panel .shift-row .check { min-width: 7.5rem; }
@media (max-width: 1000px) { .st-two.st-hours { grid-template-columns: 1fr; } }
/* Pet profile pictures */
.pet-pic { width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-size: 1.4rem; }
.pet-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-pic.big { width: 96px; height: 96px; font-size: 3rem; }
.pet-pic.mid { width: 56px; height: 56px; font-size: 1.9rem; }
.pet-head { display: flex; gap: 1rem; align-items: center; margin: .2rem 0 .8rem; flex-wrap: wrap; }
.pet-head .btn-row { margin: 0; }
h2 .pet-pic { vertical-align: middle; margin-right: .3rem; }
.rep-attach { background: var(--cream-2); border-radius: 10px; padding: .5rem .75rem; margin: 0 0 .6rem; }
.rep-attach b { font-size: 1.2rem; color: var(--brand-dark); }

/* On/off switch (DipidyDen → Offers): a checkbox drawn as a toggle. */
.switch-row { display: flex; gap: .7rem; align-items: center; padding: .6rem .8rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; min-height: 52px; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; border-radius: 30px; background: #c9bcb0; transition: background .15s; }
.switch .slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .slider { background: var(--ok); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Offers screen (offers.js): short cards, number tiles, folded details, the Guide and glossary */
.of-sec { margin: 1.4rem 0 .4rem; }
.of-sec > h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .2rem; }
.offer-card { margin: .6rem 0; }
.offer-card.planned { border: 2px dashed var(--line); background: transparent; }
.of-head h3 { margin: 0; }
.of-short { margin: .5rem 0 .3rem; }
.of-tiles { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.of-tile { border: 1px solid var(--line); border-radius: 10px; padding: .3rem .6rem; background: #fff; min-width: 84px; }
.of-tile b { display: block; font-size: 1.15rem; line-height: 1.2; }
.of-tile span { font-size: .78rem; color: var(--muted); }
.of-tile.ok { border-color: #b9dfc6; background: var(--ok-soft); }
.of-tile.warn { border-color: #f0c6ab; background: var(--warn-soft); }
.of-test { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0; padding: .45rem .7rem; border-radius: 10px; background: #f1ecfb; border-left: 4px solid #7b4fd6; }
.of-about { border-left: 4px solid var(--brand); padding: .1rem 0 .1rem .8rem; margin: .3rem 0 .6rem; }
.of-about p { margin: .25rem 0; }
.of-about ol, .of-about ul { margin: .15rem 0 .3rem 1.2rem; padding: 0; }
.of-setting { background: var(--sun-soft); border: 1px solid #f1d79a; border-radius: 12px; padding: .7rem .8rem; margin: .3rem 0 .6rem; }
.g-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-grid .card { margin: 0; }
.g-row { border-top: 1px solid var(--line); padding: .2rem 0; }
.g-row > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--ink); }
.g-row > summary .chips { margin: 0; }
.g-name { font-weight: 700; margin-right: .2rem; }
.g-group { margin: 1rem 0 .3rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); }
.g-terms { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g-term { border: 1px solid var(--line); border-radius: 12px; padding: .45rem .7rem; background: #fff; }
.g-term > summary { color: var(--ink); }
.g-term > summary span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.g-term p { margin: .35rem 0 0; font-size: .9rem; }
.g-term .g-ex { color: var(--brand-dark); }

/* Scripts (resources.js): one folded card per moment, the words to say in a quote box */
.res-card > summary { display: flex; flex-direction: column; gap: .1rem; color: var(--ink); }
.res-card > summary b { font-size: 1.05rem; }
.res-step { border-top: 1px solid var(--line); padding: .6rem 0 .2rem; }
.res-step h3 { margin: 0 0 .3rem; font-size: .95rem; }
.res-say { background: var(--sun-soft); border-left: 4px solid var(--sun); border-radius: 8px; padding: .6rem .8rem; margin: 0 0 .4rem; font-size: 1.02rem; }
.res-next { font-size: .9rem; margin: .2rem 0; }
.res-obj { margin-top: .4rem; }
.res-obj p { margin: .4rem 0; font-size: .92rem; }

/* Feedback (feedback.js): one line per note, details folded */
.fb-list { margin-top: .6rem; }
.fb-item { border-top: 1px solid var(--line); padding: .35rem 0; }
.fb-item > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; color: var(--ink); font-weight: 600; }
.fb-item.fb-todo .fb-words { font-weight: 800; }
.fb-stars { color: #e0a100; letter-spacing: .05em; white-space: nowrap; }
.fb-stars.low { color: var(--warn); }
.fb-words { flex: 1 1 12rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fb-meta { font-weight: 400; font-size: .85rem; color: var(--muted); }
.fb-body { padding: .3rem 0 .6rem; }
.fb-comment { white-space: pre-wrap; margin: .2rem 0 .6rem; }

/* Test customer: what a test is, the first text, and the "what just happened" pop-up */
.tt-about { margin-top: .3rem; }
.tt-about summary { cursor: pointer; color: var(--brand, #e8711f); }
.tt-about p, .tt-about ol { margin: .35rem 0; white-space: normal; }
.tt-sms { margin: .3rem 0 .5rem; padding: .55rem .75rem; background: #eef6ff; border-left: 3px solid #4a90d9; border-radius: 10px; font-size: .9em; white-space: normal; }
.tt-warn { margin: .6rem 0; padding: .55rem .75rem; background: #fff4e5; border: 1px solid #f0b46a; border-radius: 8px; font-size: .9em; }
.tt-warn ul { margin: .3rem 0 0; padding-left: 1rem; }

/* ---------- Top menu: front-desk links, then Marketing / Settings drop-downs, then the app switcher ---------- */
.top nav { align-items: center; }
.top nav .navsep { width: 1px; align-self: stretch; margin: .45rem .3rem; background: rgba(255, 255, 255, .22); }
.navgrp { position: relative; }
.navgrp > summary { list-style: none; cursor: pointer; color: #fff; padding: .55rem .8rem; border-radius: 10px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; user-select: none; white-space: nowrap; }
.navgrp > summary::-webkit-details-marker { display: none; }
.navgrp > summary:hover, .navgrp[open] > summary { background: rgba(255, 255, 255, .14); }
.navgrp.on > summary { background: var(--brand); }
.top.crm .navgrp.on > summary { background: var(--ok); }
.navgrp .caret { font-size: .75rem; opacity: .8; transition: transform .15s; }
.navgrp[open] .caret { transform: rotate(180deg); }
.navmenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: #fffaf3; color: var(--cocoa); border-radius: 14px; padding: .4rem; box-shadow: 0 12px 32px rgba(58, 36, 24, .28), 0 0 0 1px rgba(58, 36, 24, .08); z-index: 30; display: grid; gap: .1rem; }
.top nav .navmenu a { color: var(--cocoa); display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; min-height: 52px; font-weight: 400; }
.top nav .navmenu a:hover { background: #fde3cf; }
.top nav .navmenu a.on, .top.crm nav .navmenu a.on { background: #fde3cf; color: var(--cocoa); box-shadow: inset 3px 0 0 var(--brand); }
.top.crm nav .navmenu a.on { box-shadow: inset 3px 0 0 var(--ok); }
.navmenu .ni { font-size: 1.25rem; width: 1.6rem; text-align: center; flex: none; }
.navmenu .nl { display: flex; flex-direction: column; line-height: 1.25; }
.navmenu .nl b { font-weight: 700; }
.navmenu .nl small { color: #7a5a45; font-size: .8rem; }
.top .apps { display: flex; gap: .2rem; align-items: center; margin-left: .2rem; }
.top .apps a { color: #fde3cf; text-decoration: none; font-size: .82rem; padding: .35rem .55rem; border-radius: 8px; border: 1px solid rgba(253, 227, 207, .35); white-space: nowrap; }
.top .apps a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

@media (max-width: 1180px) {
  /* Logo, app links and account on the first line; the menu gets its own full row underneath. */
  .top .brand { order: 1; }
  .top .apps { order: 2; }
  .top .who { order: 3; }
  .top nav { order: 4; width: 100%; }
  .navgrp > summary { padding: .5rem .6rem; }
}
@media (max-width: 600px) {
  .top .apps a { font-size: .75rem; padding: .25rem .45rem; }
  .navgrp > summary { padding: .4rem .55rem; font-size: .92rem; min-height: 40px; }
  .top nav .navsep { margin: .35rem .15rem; }
  /* On a phone the row scrolls sideways, so the open menu sits full width under the bar instead of inside it. */
  .navmenu { position: fixed; top: auto; left: .5rem; right: .5rem; min-width: 0; margin-top: .35rem; }
}

/* Pet profile: Send My Pets link */
.mypets-send { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .6rem 0 .2rem; padding: .55rem .7rem; border-radius: 12px; background: #fde3cf; }
.mypets-send .grow { flex: 1; min-width: 200px; }
/* DipidyDen Guide (den-guide.js): search hides sections, links and glossary rows. */
[data-dg-sec][hidden], [data-dg-nav][hidden], [data-dg-term][hidden], #dg-glossary[hidden] { display: none !important; }
.guide-nav .search { margin-bottom: .35rem; font-size: 1rem; }
.dg-table td, .dg-table th { text-align: left; vertical-align: top; }
.dg-table td:first-child { min-width: 9rem; }
/* Taps show they landed (app.js click handler), and the pet profile auto-save status (pets.js). */
.btn.tapped, button.tapped { transform: scale(.96); filter: brightness(.92); transition: transform .08s; }
.btn.busy, button.busy { opacity: .75; cursor: progress; }
.btn.busy::after { content: " …"; }
.pp-auto { font-size: .9rem; font-weight: 700; margin-left: .25rem; }
.pp-auto.pending { color: var(--muted, #7a5a45); }
.pp-auto.saved { color: #2f8a4a; }
.pp-auto.hold { color: #b8860b; }
.pp-auto.error { color: #c0392b; }
