/* ==========================================================================
   Qootales design system
   Warm paper background, forest green primary, terracotta for urgency (Lost),
   one reading order on every card. Override tokens from Elementor if needed.
   ========================================================================== */

:root {
  --qt-bg: #FAF7F2;
  --qt-surface: #FFFFFF;
  --qt-sunken: #F3EEE6;
  --qt-ink: #1C2520;
  --qt-ink-2: #44514A;
  --qt-muted: #626C66; /* 4.5:1+ on every background (was #75817A, 3.5:1) */
  --qt-line: #E6E0D5;
  --qt-line-2: #D6CEC0;

  /* The logo's own colors: green #2D6519, orange #1679A0 (orange is decorative only: 2.4:1 on white). */
  --qt-primary: #2D6519;
  --qt-primary-hover: #24521A;
  --qt-primary-soft: #E6F0DC;
  --qt-accent: #1679A0;
  --qt-accent-soft: #E3F3FA;
  --qt-accent-ink: #14739A;    /* orange TEXT: the logo hue at full saturation, 4.7:1+ on every background */
  --qt-accent-strong: #1679A0; /* orange FILLS: the logo orange itself... */
  --qt-on-accent: #24521A;     /* ...always with deep logo-green text on it (5.1:1); white on it fails */
  --qt-amber: #A88300;
  --qt-amber-soft: #FFF6D0;
  --qt-amber-ink: #6B5500;
  --qt-sky: #2F6E95;
  --qt-sky-soft: #E2EEF5;
  --qt-danger: #B42318;

  --qt-font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;             /* Nunito: body and every heading below h2 */
  --qt-font-display: "Nunito", system-ui, sans-serif;                                 /* sub-heads, prices, names */
  --qt-font-h: "hoss-round-wide", "Nunito", system-ui, sans-serif;                     /* Hoss Round Wide: h1 / h2 only */

  --qt-r-sm: 5px;
  --qt-r: 5px;
  --qt-r-lg: 5px;
  --qt-pill: 999px;
  --qt-shadow: 0 1px 2px rgba(28, 37, 32, .06), 0 1px 1px rgba(28, 37, 32, .04);
  --qt-shadow-lift: 0 10px 28px -10px rgba(28, 37, 32, .22), 0 2px 6px rgba(28, 37, 32, .06);
  --qt-focus: 0 0 0 3px rgba(45, 101, 25, .28);
}

.qt, .qt-form, .qt-inbox, .qt-msg { font-family: var(--qt-font); color: var(--qt-ink); font-size: 15px; line-height: 1.5; }
.qt *, .qt *::before, .qt *::after { box-sizing: border-box; }
.qt img { max-width: 100%; display: block; }
.qt .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.qt-ico { flex: none; }
/* Component display rules (flex/grid) must never beat the hidden attribute. */
.qt [hidden], .qt-form [hidden], .qt-modal [hidden] { display: none !important; }
:where(.qt, .qt-form) a:where(:not([class])) { color: var(--qt-primary); font-weight: 600; text-decoration: none; }
:where(.qt, .qt-form) a:where(:not([class])):hover { text-decoration: underline; }

.qt-h2 { font-family: var(--qt-font-display); font-weight: 600; font-size: clamp(1.45rem, 1.1rem + 1.25vw, 1.95rem); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.qt-h3 { font-family: var(--qt-font-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 .75rem; }
.qt-h4 { font-size: .95rem; font-weight: 700; margin: 0 0 .5rem; display: flex; align-items: center; gap: .4rem; }
.qt-eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--qt-muted); margin-bottom: .5rem; }

/* ---------- Buttons ---------- */
.qt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; padding: 0 1.1rem; border-radius: var(--qt-pill);
  font: 600 .92rem/1 var(--qt-font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.qt-btn:focus-visible { outline: none; box-shadow: var(--qt-focus); }
.qt-btn-primary { background: var(--qt-primary); color: #fff; }
.qt-btn-primary:hover { background: var(--qt-primary-hover); color: #fff; }
.qt-btn-dark { background: var(--qt-ink); color: #fff; }
.qt-btn-dark:hover { background: #000; color: #fff; }
.qt-btn-ghost { background: var(--qt-surface); color: var(--qt-ink); border-color: var(--qt-line-2); }
.qt-btn-ghost:hover { border-color: var(--qt-ink-2); }
.qt-btn-ghost.is-on { color: var(--qt-accent-ink); border-color: var(--qt-accent); }
.qt-btn-ghost.is-on .qt-ico { fill: currentColor; }
.qt-btn-icon { width: 42px; padding: 0; }
.qt-btn-block { width: 100%; }
.qt-link { background: none; border: 0; padding: 0; font: 600 .85rem var(--qt-font); color: var(--qt-primary); cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.qt-link:hover { text-decoration: underline; }
.qt-link-danger { color: var(--qt-danger); }

/* ---------- Tags, statuses, chips ---------- */
.qt-tag, .qt-status {
  display: inline-flex; align-items: center; height: 24px; padding: 0 .6rem; border-radius: var(--qt-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.qt-tag { background: var(--qt-ink); color: #fff; }
.qt-tag--donate, .qt-tag--found { background: var(--qt-primary); }
.qt-tag--lost { background: var(--qt-accent-strong); color: var(--qt-on-accent); }
.qt-tag--rescue { background: var(--qt-sky); }
.qt-tag--owner { background: var(--qt-ink-2); }
.qt-status { background: var(--qt-amber-soft); color: var(--qt-amber-ink); }
.qt-status--available, .qt-status--open { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-status--sold, .qt-status--donated, .qt-status--adopted, .qt-status--reunited, .qt-status--closed { background: var(--qt-sunken); color: var(--qt-ink-2); }

.qt-chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.qt-chip {
  display: inline-flex; align-items: center; gap: .3rem; height: 26px; padding: 0 .6rem;
  border-radius: var(--qt-pill); background: var(--qt-sunken); color: var(--qt-ink-2);
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.qt-chip--pet { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-chip-x { border: 1px solid var(--qt-line-2); background: var(--qt-surface); cursor: pointer; font-family: var(--qt-font); }
.qt-chip-x .qt-ico { width: 14px; height: 14px; }
.qt-chip-x:hover { border-color: var(--qt-ink-2); }

.qt-badges { display: inline-flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.qt-badge { display: inline-flex; align-items: center; gap: .25rem; height: 24px; padding: 0 .55rem; border-radius: var(--qt-pill); background: var(--qt-amber-soft); color: #6B5500; font-size: .75rem; font-weight: 600; }
.qt-badge-ico { font-size: .9rem; line-height: 1; }

.qt-lister { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.qt-lister .qt-av { border-radius: 50%; flex: none; }
.qt-lister-name { font-weight: 600; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Browse ---------- */
.qt-browse { max-width: 1320px; margin: 0 auto; }
.qt-browse-bar { margin: 0; }
.qt-bar-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.qt-bar-row {
  display: flex; gap: .5rem; align-items: center; padding: .5rem; background: var(--qt-surface);
  border: 1px solid var(--qt-line); border-radius: var(--qt-pill); box-shadow: var(--qt-shadow); margin-bottom: 1.5rem;
}
.qt-search { flex: 1 1 260px; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; min-height: 42px; color: var(--qt-muted); }
.qt-search + .qt-search { border-left: 1px solid var(--qt-line); }
.qt-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 .95rem var(--qt-font); color: var(--qt-ink); }
.qt-search-near { flex-basis: 200px; }
.qt-bar-row select { border-radius: var(--qt-pill); }

.qt-browse-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.qt-browse-body > *, .qt-results, .qt-browse-bar { min-width: 0; }

.qt-filters { position: sticky; top: calc(var(--qt-head-h, 88px) + 1rem); display: flex; flex-direction: column; gap: .25rem; }
.qt-filters-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .75rem; border-bottom: 1px solid var(--qt-line); }
.qt-filters-close { display: none; background: none; border: 0; cursor: pointer; }
.qt-fgroup { border-bottom: 1px solid var(--qt-line); padding: .75rem 0; }
.qt-fgroup summary { cursor: pointer; font-weight: 700; font-size: .88rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qt-fgroup summary::-webkit-details-marker { display: none; }
.qt-fgroup summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--qt-muted); border-bottom: 2px solid var(--qt-muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.qt-fgroup[open] summary::after { transform: rotate(-135deg); }
.qt-fgroup-body { display: flex; flex-direction: column; gap: .1rem; padding-top: .6rem; max-height: 260px; overflow: auto; }
.qt-fcheck { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .9rem; cursor: pointer; color: var(--qt-ink-2); }
.qt-fcheck input { width: 17px; height: 17px; accent-color: var(--qt-primary); margin: 0; }
.qt-fcheck:hover { color: var(--qt-ink); }
.qt-range { display: flex; align-items: end; gap: .5rem; }
.qt-range label { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; color: var(--qt-muted); flex: 1; min-width: 0; }
.qt-range .qt-input { width: 100%; }
.qt-filters > .qt-switch { margin-top: .9rem; }

.qt-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.qt-count { margin: 0; color: var(--qt-ink-2); }
.qt-count strong { color: var(--qt-ink); }
.qt-results-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.qt-filters-open { display: none; }
.qt-pill-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--qt-pill); background: var(--qt-primary); color: #fff; font-size: .72rem; }
.qt-sort { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--qt-muted); }
.qt-viewtoggle { display: inline-flex; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); padding: 3px; background: var(--qt-surface); }
.qt-viewtoggle label { display: grid; place-items: center; width: 34px; height: 32px; border-radius: var(--qt-pill); cursor: pointer; color: var(--qt-muted); }
.qt-viewtoggle input { position: absolute; opacity: 0; pointer-events: none; }
.qt-viewtoggle label:has(input:checked) { background: var(--qt-ink); color: #fff; }
.qt-active { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.qt-results.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s; }

/* ---------- Card (grid) ---------- */
.qt-grid { display: grid; gap: 1.25rem; }
.qt-grid--grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }

.qt-card {
  position: relative; display: flex; flex-direction: column; background: var(--qt-surface);
  border: 1px solid var(--qt-line); border-radius: var(--qt-r); overflow: hidden;
  box-shadow: var(--qt-shadow); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.qt-card:hover { box-shadow: var(--qt-shadow-lift); transform: translateY(-2px); border-color: var(--qt-line-2); }
.qt-card:focus-within { box-shadow: var(--qt-focus); }
.qt-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--qt-sunken); overflow: hidden; }
.qt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.qt-card:hover .qt-card-media img { transform: scale(1.03); }
.qt-card-media .qt-tag { position: absolute; top: .65rem; left: .65rem; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.qt-card-media .qt-status { position: absolute; bottom: .65rem; left: .65rem; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.qt-photocount { position: absolute; bottom: .65rem; right: .65rem; display: inline-flex; align-items: center; gap: .25rem; height: 24px; padding: 0 .5rem; border-radius: var(--qt-pill); background: rgba(28,37,32,.72); color: #fff; font-size: .72rem; font-weight: 600; }
.qt-photocount .qt-ico { width: 13px; height: 13px; }
.qt-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--qt-line-2); }
.qt-ph .qt-ico { width: 48px; height: 48px; }

.qt-save {
  position: absolute; top: .55rem; right: .55rem; z-index: 2; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; line-height: 0;
  background: rgba(255,255,255,.94); color: var(--qt-ink); box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: transform .12s, color .12s;
}
.qt-save:hover { transform: scale(1.08); }
.qt-save .qt-ico { display: block; width: 18px; height: 18px; margin: 0; }
.qt-save.is-on { color: var(--qt-primary); }
.qt-save.is-on .qt-ico { fill: currentColor; }

.qt-card-body { display: flex; flex-direction: column; gap: .4rem; padding: .85rem .95rem .7rem; flex: 1; }
.qt-card-headline { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.qt-card--item .qt-card-headline { color: var(--qt-ink); }
.qt-card-title { margin: 0; font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--qt-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt-card-title a { color: inherit; text-decoration: none; }
.qt-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.qt-card .qt-chips { margin-top: .15rem; }
.qt-card-meta { display: flex; align-items: center; gap: .75rem; margin: auto 0 0; padding-top: .35rem; font-size: .8rem; color: var(--qt-muted); white-space: nowrap; }
.qt-meta-loc { display: flex; align-items: center; gap: .25rem; min-width: 0; flex: 1; }
.qt-meta-loc > span { overflow: hidden; text-overflow: ellipsis; }
.qt-card-meta time { margin-left: auto; flex: none; }
.qt-card-meta .qt-ico { width: 14px; height: 14px; flex: none; }
.qt-dot { color: var(--qt-line-2); }
.qt-card-foot { display: flex; align-items: center; padding: .6rem .95rem; border-top: 1px solid var(--qt-line); position: relative; z-index: 2; }

.qt-card.is-closed .qt-card-media img { filter: grayscale(.85); opacity: .75; }
.qt-card.is-closed .qt-card-headline { color: var(--qt-muted); }

/* Lost cards get a terracotta edge so they jump out of a mixed list */
.qt-card--lost_found:has(.qt-tag--lost) { border-top: 3px solid var(--qt-accent); }

/* ---------- Card (list view): one row per listing, aligned columns ---------- */
.qt-grid--list { grid-template-columns: 1fr; gap: .6rem; }
.qt-grid--list .qt-card { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; }
.qt-grid--list .qt-card:hover { transform: none; }
.qt-grid--list .qt-card-media { grid-row: 1 / 3; height: 100%; aspect-ratio: auto; min-height: 112px; }
.qt-grid--list .qt-card-media .qt-tag { top: .45rem; left: .45rem; height: 20px; font-size: .65rem; }
.qt-grid--list .qt-card-media .qt-status, .qt-grid--list .qt-photocount { display: none; }
.qt-grid--list .qt-save { top: 50%; right: 1rem; transform: translateY(-50%); grid-column: 3; position: absolute; }
.qt-grid--list .qt-card-body { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 140px; grid-template-areas: "title head" "chips head" "meta head"; column-gap: 1rem; row-gap: .3rem; padding: .75rem 1rem; padding-right: 4rem; }
.qt-grid--list .qt-card-title { grid-area: title; font-size: 1rem; font-weight: 600; color: var(--qt-ink); -webkit-line-clamp: 1; }
.qt-grid--list .qt-card-headline { grid-area: head; text-align: right; align-self: center; }
.qt-grid--list .qt-chips { grid-area: chips; margin: 0; }
.qt-grid--list .qt-card-meta { grid-area: meta; margin: 0; padding: 0; justify-content: flex-start; }
.qt-grid--list .qt-meta-loc { flex: 0 1 auto; }
.qt-grid--list .qt-card-meta time { margin-left: 0; }
.qt-grid--list .qt-card-foot { display: none; }

.qt-empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--qt-line-2); border-radius: var(--qt-r-lg); color: var(--qt-ink-2); }
.qt-empty-state .qt-ico { width: 44px; height: 44px; color: var(--qt-line-2); margin-bottom: .75rem; }
.qt-empty-state h3 { margin: 0 0 .25rem; font-size: 1.1rem; }

.qt-pager { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; }
.qt-pager .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .8rem; border-radius: var(--qt-pill); border: 1px solid var(--qt-line); background: var(--qt-surface); color: var(--qt-ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.qt-pager .page-numbers.current { background: var(--qt-ink); color: #fff; border-color: var(--qt-ink); }

/* ---------- Detail ---------- */
.qt-detail { max-width: 1180px; margin: 0 auto; }
.qt-back { display: inline-block; margin-bottom: 1rem; font-weight: 600; font-size: .9rem; color: var(--qt-ink-2); text-decoration: none; }
.qt-back:hover { color: var(--qt-ink); }
.qt-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); grid-template-areas: "gallery summary" "main summary"; gap: 1.5rem 2.5rem; align-items: start; }
.qt-gallery { grid-area: gallery; }
.qt-gallery-main { aspect-ratio: 4 / 3; border-radius: var(--qt-r-lg); overflow: hidden; background: var(--qt-sunken); }
.qt-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.qt-gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.qt-thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--qt-r-sm); overflow: hidden; cursor: pointer; background: none; }
.qt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qt-thumb.is-on { border-color: var(--qt-ink); }

.qt-summary { grid-area: summary; position: sticky; top: calc(var(--qt-head-h, 88px) + 1rem); display: flex; flex-direction: column; gap: .85rem; padding: 1.5rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); box-shadow: var(--qt-shadow); }
.qt-summary-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.qt-summary-headline { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.qt-summary-title { margin: 0; font-family: var(--qt-font); font-size: 1.15rem; font-weight: 600; line-height: 1.35; color: var(--qt-ink-2); }
.qt-summary-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; margin: 0; color: var(--qt-muted); font-size: .88rem; }
.qt-summary-meta .qt-ico { width: 15px; height: 15px; }
.qt-summary-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .5rem; }
.qt-summary-actions .qt-btn { padding: 0 .6rem; font-size: .85rem; }
.qt-summary-lister { padding-top: .9rem; border-top: 1px solid var(--qt-line); }

.qt-detail-main { grid-area: main; }
.qt-section { margin-bottom: 2rem; }
.qt-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--qt-line); border-radius: var(--qt-r); overflow: hidden; background: var(--qt-surface); }
.qt-facts > div { padding: .8rem 1rem; border-bottom: 1px solid var(--qt-line); border-right: 1px solid var(--qt-line); margin: -1px -1px 0 0; }
.qt-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--qt-muted); margin: 0 0 .15rem; }
.qt-facts dd { margin: 0; font-weight: 600; }
.qt-prose { color: var(--qt-ink-2); white-space: pre-line; }
.qt-safety { padding: 1.1rem 1.25rem; background: var(--qt-sky-soft); border-radius: var(--qt-r); color: #1E4A66; }
.qt-safety ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; display: grid; gap: .25rem; }

.qt-owner { padding: 1rem; margin: 0 -.25rem; background: var(--qt-sunken); border-radius: var(--qt-r); }
.qt-owner .qt-form { gap: .75rem; }
.qt-owner-links { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; }
.qt-owner-links a { font-weight: 600; font-size: .85rem; color: var(--qt-primary); text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }
.qt-inline, .qt-form.qt-inline { display: inline; }

/* ---------- Forms ---------- */
.qt-formwrap { max-width: 1100px; margin: 0 auto; container: qtform / inline-size; }
.qt-account-main > form.qt-form { container: qtform / inline-size; }
.qt-formwrap > .qt-h2 { margin-bottom: 1.25rem; }
.qt-form { display: flex; flex-direction: column; gap: 1.25rem; margin: 0; }
.qt-fs { margin: 0; padding: 1.5rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); background: var(--qt-surface); display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.qt-fs legend { float: left; width: 100%; margin-bottom: .25rem; padding: 0; font-family: var(--qt-font-display); font-size: 1.15rem; font-weight: 600; }
.qt-fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.qt-fields-2 > .qt-field:has(.qt-checks), .qt-fields-2 > .qt-field:has(textarea) { grid-column: 1 / -1; }
.qt-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.qt-label { font-weight: 600; font-size: .88rem; }
.qt-req { color: var(--qt-accent-ink); }
.qt-opt { font-weight: 500; font-size: .78rem; color: var(--qt-muted); }
.qt-hint { margin: 0; font-size: .8rem; color: var(--qt-muted); }
.qt-input {
  width: 100%; min-height: 44px; padding: .55rem .85rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r);
  background: var(--qt-surface); font: 500 .95rem var(--qt-font); color: var(--qt-ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea.qt-input { min-height: 120px; resize: vertical; line-height: 1.5; }
.qt-input:focus { outline: none; border-color: var(--qt-primary); box-shadow: var(--qt-focus); }
.qt-input-sm { min-height: 38px; padding: .35rem .7rem; font-size: .88rem; width: auto; }
.qt-field.has-error .qt-input { border-color: var(--qt-danger); }
.qt-field-error { margin: 0; color: var(--qt-danger); font-size: .8rem; font-weight: 600; }
.qt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qt-seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.qt-seg-opt { position: relative; cursor: pointer; }
.qt-seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qt-seg-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); background: var(--qt-surface); font-weight: 600; font-size: .9rem; transition: all .12s; }
.qt-seg-opt input:checked + span { background: var(--qt-ink); border-color: var(--qt-ink); color: #fff; }
.qt-seg-opt input:focus-visible + span { box-shadow: var(--qt-focus); }
.qt-seg-wrap .qt-seg-opt span { min-height: 34px; padding: 0 .75rem; font-size: .82rem; }

.qt-checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.qt-check { position: relative; cursor: pointer; }
.qt-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qt-check span { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: 0 .9rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); font-weight: 600; font-size: .88rem; }
.qt-check input:checked + span { background: var(--qt-primary-soft); border-color: var(--qt-primary); color: var(--qt-primary); }
.qt-check input:checked + span::before { content: "✓"; }

.qt-switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; font-size: .9rem; position: relative; }
.qt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qt-switch-ui { position: relative; width: 40px; height: 24px; border-radius: var(--qt-pill); background: var(--qt-line-2); transition: background .15s; flex: none; }
.qt-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.qt-switch input:checked + .qt-switch-ui { background: var(--qt-primary); }
.qt-switch input:checked + .qt-switch-ui::after { transform: translateX(16px); }
.qt-switch input:focus-visible + .qt-switch-ui { box-shadow: var(--qt-focus); }
.qt-switch-sm { font-size: .85rem; font-weight: 500; color: var(--qt-ink-2); }

.qt-photos { display: flex; flex-wrap: wrap; gap: .6rem; }
.qt-photo, .qt-photo-add { position: relative; width: 104px; height: 104px; border-radius: var(--qt-r); overflow: hidden; cursor: pointer; }
.qt-photo img { width: 100%; height: 100%; object-fit: cover; }
.qt-photo:first-child::before { content: "Cover"; position: absolute; top: 6px; left: 6px; z-index: 1; padding: 2px 7px; border-radius: var(--qt-pill); background: rgba(28,37,32,.75); color: #fff; font-size: .68rem; font-weight: 700; }
.qt-photo input { position: absolute; opacity: 0; }
.qt-photo-x { position: absolute; inset: auto 0 0 0; padding: 4px; text-align: center; font-size: .72rem; font-weight: 700; background: rgba(28,37,32,.7); color: #fff; }
.qt-photo:has(input:checked) img { opacity: .3; }
.qt-photo:has(input:checked) .qt-photo-x { background: var(--qt-danger); }
.qt-photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border: 2px dashed var(--qt-line-2); color: var(--qt-ink-2); font-size: .8rem; font-weight: 600; }
.qt-photo-add:hover { border-color: var(--qt-primary); color: var(--qt-primary); }
.qt-photo.is-new img { outline: 2px solid var(--qt-primary); outline-offset: -2px; }

.qt-form-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.qt-form-actions .qt-btn { min-height: 48px; padding: 0 1.6rem; font-size: 1rem; }
.qt-owner .qt-form-actions .qt-btn { min-height: 40px; width: 100%; }

.qt-alert { padding: .8rem 1rem; border-radius: var(--qt-r-sm); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.qt-alert-error { background: #FDECEA; color: var(--qt-danger); }
.qt-alert-warn { background: var(--qt-amber-soft); color: #6B5500; }
.qt-alert-ok { background: var(--qt-primary-soft); color: var(--qt-primary); }

.qt-gate { max-width: 460px; margin: 3rem auto; text-align: center; padding: 2.5rem 2rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); }
.qt-gate > .qt-ico { width: 44px; height: 44px; color: var(--qt-primary); margin: 0 auto .75rem; }

/* ---------- Messaging ---------- */
.qt-inbox, .qt-msg { max-width: 760px; margin: 0 auto; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); overflow: hidden; }
.qt-inbox-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--qt-line); }
.qt-inbox-head h3 { margin: 0; font-family: var(--qt-font-display); }
.qt-pill { font-weight: 600; font-size: .85rem; color: var(--qt-primary); text-decoration: none; }
.qt-empty { padding: 2rem 1.25rem; color: var(--qt-muted); margin: 0; }
.qt-thread { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--qt-line); color: inherit; text-decoration: none; }
.qt-thread:hover { background: var(--qt-bg); }
.qt-thread .qt-av { border-radius: 50%; flex: none; }
.qt-thread-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.qt-thread-name { font-weight: 600; }
.qt-thread-about { font-size: .8rem; color: var(--qt-primary); font-weight: 600; }
.qt-thread-snip { font-size: .85rem; color: var(--qt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-thread.is-unread .qt-thread-snip { color: var(--qt-ink); font-weight: 600; }
.qt-thread time { font-size: .78rem; color: var(--qt-muted); align-self: flex-start; }
.qt-badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--qt-pill); background: var(--qt-accent-strong); color: var(--qt-on-accent); font-size: .72rem; }

.qt-msg-head { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--qt-line); flex-wrap: wrap; }
.qt-msg-head .qt-back { margin: 0; }
.qt-msg-id { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }
.qt-msg-id .qt-av { border-radius: 50%; }
.qt-msg-id > span { display: flex; flex-direction: column; min-width: 0; }
.qt-msg-about { font-size: .8rem; font-weight: 600; color: var(--qt-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-msg-actions { display: flex; gap: .9rem; font-size: .85rem; }
.qt-msg-actions a { color: var(--qt-ink-2); font-weight: 600; text-decoration: none; }
.qt-msg-log { height: min(60vh, 520px); overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; background: var(--qt-bg); }
.qt-msg-date { align-self: center; margin: .6rem 0 .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--qt-muted); }
.qt-msg-bubble { max-width: 75%; padding: .55rem .8rem; border-radius: var(--qt-r); display: flex; flex-direction: column; gap: .15rem; word-wrap: break-word; }
.qt-msg-bubble time { font-size: .68rem; opacity: .7; align-self: flex-end; }
.qt-msg-bubble.mine { align-self: flex-end; background: var(--qt-primary); color: #fff; border-bottom-right-radius: 4px; }
.qt-msg-bubble.theirs { align-self: flex-start; background: var(--qt-surface); border: 1px solid var(--qt-line); border-bottom-left-radius: 4px; }
.qt-msg-bubble.has-img { padding: 4px; }
.qt-msg-img { max-width: 260px; border-radius: var(--qt-r); display: block; }
.qt-msg-note { align-self: center; display: flex; gap: .5rem; align-items: center; padding: .4rem .8rem; border-radius: var(--qt-pill); background: var(--qt-amber-soft); color: #6B5500; font-size: .8rem; font-weight: 600; }
.qt-msg-note time { opacity: .7; font-weight: 500; }
.qt-msg-form { display: flex; align-items: flex-end; gap: .5rem; padding: .75rem; border-top: 1px solid var(--qt-line); }
.qt-msg-form.is-uploading { opacity: .6; pointer-events: none; }
.qt-msg-attach { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; color: var(--qt-ink-2); flex: none; }
.qt-msg-attach:hover { background: var(--qt-sunken); }
.qt-msg-input { flex: 1; min-height: 42px; max-height: 160px; padding: .6rem .9rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r); font: 500 .95rem var(--qt-font); resize: none; }
.qt-msg-input:focus { outline: none; border-color: var(--qt-primary); box-shadow: var(--qt-focus); }
.qt-msg-error { margin: 0; padding: 0 1rem .75rem; color: var(--qt-danger); font-size: .85rem; font-weight: 600; }
.qt-note { padding: 1rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }

/* ---------- Shared bits ---------- */
.qt-muted { color: var(--qt-muted); font-weight: 500; }
.qt-lede { margin: -.5rem 0 1.25rem; color: var(--qt-ink-2); }
.qt-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.qt-section-head .qt-h2, .qt-section-head .qt-h3 { margin: 0; }
.qt-tag--cat { background: rgba(255,255,255,.94); color: var(--qt-ink); }

/* ---------- Auth ---------- */
.qt-auth { max-width: 440px; margin: 2rem auto; padding: 2rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); box-shadow: var(--qt-shadow); display: flex; flex-direction: column; gap: 1.1rem; }
.qt-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--qt-sunken); border-radius: var(--qt-pill); }
.qt-auth-tab { min-height: 40px; border: 0; border-radius: var(--qt-pill); background: transparent; font: 600 .92rem var(--qt-font); color: var(--qt-ink-2); cursor: pointer; }
.qt-auth-tab.is-on { background: var(--qt-surface); color: var(--qt-ink); box-shadow: var(--qt-shadow); }
.qt-google { gap: .6rem; min-height: 46px; }
.qt-or { display: flex; align-items: center; gap: .75rem; color: var(--qt-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.qt-or::before, .qt-or::after { content: ""; flex: 1; height: 1px; background: var(--qt-line); }
.qt-auth .qt-form { gap: 1rem; }
.qt-auth .qt-form-actions .qt-btn { width: 100%; }
.qt-auth-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.qt-terms { align-items: flex-start; font-size: .85rem; }
.qt-terms input { margin-top: 2px; }
.qt-auth-switch { margin: 0; text-align: center; }
.qt-auth-switch .qt-link { gap: .4rem; }
.qt-auth-code-head { text-align: center; }
.qt-auth-code-head > .qt-ico { width: 40px; height: 40px; color: var(--qt-primary); margin: 0 auto .5rem; display: block; }
.qt-auth-code-head p { margin: 0; color: var(--qt-ink-2); font-size: .92rem; }
.qt-code-input { text-align: center; font-size: 1.6rem; font-weight: 700; letter-spacing: .5em; padding-left: 1.2rem; }

/* ---------- Account ---------- */
.qt-account { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.qt-account-nav { position: sticky; top: calc(var(--qt-head-h, 88px) + 1rem); display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.qt-account-id { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--qt-line); }
.qt-account-id .qt-av { border-radius: 50%; flex: none; }
.qt-account-id > div { display: flex; flex-direction: column; min-width: 0; }
.qt-account-id strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-account-nav nav { display: flex; flex-direction: column; gap: 2px; }
.qt-account-tab { display: flex; align-items: center; justify-content: space-between; padding: .6rem .8rem; border-radius: var(--qt-r); color: var(--qt-ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.qt-account-tab:hover { background: var(--qt-sunken); color: var(--qt-ink); }
.qt-account-tab.is-on { background: var(--qt-ink); color: #fff; }
.qt-account-out { margin-top: .5rem; color: var(--qt-muted); }
.qt-account-main > .qt-h2 { margin-bottom: 1.25rem; }
.qt-account-main .qt-form { max-width: 980px; }
.qt-avatar-edit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.qt-avatar-edit .qt-av { border-radius: 50%; }
.qt-avatar-edit .qt-preview { flex: none; width: 72px; height: 72px; max-width: none; object-fit: cover; border-radius: var(--qt-r); border: 2px solid var(--qt-primary); box-shadow: 0 0 0 3px var(--qt-primary-soft); }
.qt-avatar-edit .qt-preview[data-round] { border-radius: 50%; }

/* ---------- Pets ---------- */
.qt-pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.qt-petcard { background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); overflow: hidden; }
.qt-petcard-img { display: block; aspect-ratio: 1; background: var(--qt-sunken); }
.qt-petcard-img img { width: 100%; height: 100%; object-fit: cover; }
.qt-petcard-body { padding: .8rem .9rem; }
.qt-petcard-body h3 { margin: 0; font-size: 1.05rem; }
.qt-petcard-body p { margin: .15rem 0 .6rem; font-size: .85rem; color: var(--qt-muted); }
.qt-petcard-actions { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.qt-pet-row { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.qt-petchip { display: flex; align-items: center; gap: .65rem; padding: .45rem .9rem .45rem .45rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-pill); text-decoration: none; color: inherit; flex: none; }
.qt-petchip:hover { border-color: var(--qt-line-2); box-shadow: var(--qt-shadow); }
.qt-petchip-img { display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--qt-sunken); flex: none; }
.qt-petchip-img img { width: 100%; height: 100%; object-fit: cover; }
.qt-petchip-img .qt-ico { width: 22px; height: 22px; }
.qt-petchip-lg { width: 72px; height: 72px; }
.qt-petchip-txt { display: flex; flex-direction: column; line-height: 1.25; }
.qt-petchip-txt span { font-size: .78rem; color: var(--qt-muted); }
.qt-pet { max-width: 1080px; margin: 0 auto; }
.qt-pet-head { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 2rem; }
.qt-pet-photo { display: block; aspect-ratio: 1; border-radius: var(--qt-r-lg); overflow: hidden; background: var(--qt-sunken); }
.qt-pet-photo img { width: 100%; height: 100%; object-fit: cover; }
.qt-facts-inline { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin: 1rem 0; }

/* ---------- Member page ---------- */
.qt-member { max-width: 1180px; margin: 0 auto; }
.qt-member-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: start; padding: 1.75rem; margin-bottom: 2rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); }
.qt-member-head > .qt-av { border-radius: 50%; }
.qt-member-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; margin: .35rem 0 0; color: var(--qt-muted); font-size: .9rem; }
.qt-member-meta a { color: var(--qt-primary); font-weight: 600; text-decoration: none; }
.qt-member-meta .qt-ico { width: 15px; height: 15px; }
.qt-member-bio { margin: .75rem 0 0; color: var(--qt-ink-2); white-space: pre-line; max-width: 62ch; }
.qt-member-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Stories ---------- */
.qt-stories { max-width: 1320px; margin: 0 auto; }
.qt-story-filters { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.qt-tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--qt-line); }
.qt-tab { padding: .6rem 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--qt-ink-2); font-weight: 600; text-decoration: none; }
.qt-tab:hover { color: var(--qt-ink); }
.qt-tab.is-on { color: var(--qt-ink); border-color: var(--qt-ink); }
.qt-chiprow { display: flex; gap: .4rem; overflow-x: auto; padding: .15rem 2px .25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.qt-chiprow::-webkit-scrollbar { display: none; }
/* Phones swipe; the edge that has more pills fades (set by listings.js). Mouse users get wrapped rows instead. */
.qt-chiprow.has-more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.qt-chiprow.has-more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.qt-chiprow.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
@media (hover: hover) and (pointer: fine) { .qt-chiprow { flex-wrap: wrap; overflow: visible; row-gap: .45rem; -webkit-mask-image: none !important; mask-image: none !important; } }
.qt-fchip { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 .9rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); background: var(--qt-surface); color: var(--qt-ink-2); font-weight: 600; font-size: .85rem; text-decoration: none; }
.qt-fchip:hover { border-color: var(--qt-ink-2); color: var(--qt-ink); }
.qt-fchip.is-on { background: var(--qt-ink); border-color: var(--qt-ink); color: #fff; }
.qt-chiprow-sm .qt-fchip { height: 30px; font-size: .8rem; }
.qt-chiprow-sm .qt-fchip.is-on { background: var(--qt-primary); border-color: var(--qt-primary); }

.qt-grid--stories { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.qt-story-card { position: relative; display: flex; flex-direction: column; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); overflow: hidden; box-shadow: var(--qt-shadow); transition: box-shadow .2s, transform .2s; }
.qt-story-card:hover { box-shadow: var(--qt-shadow-lift); transform: translateY(-2px); }
.qt-story-card .qt-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.qt-story-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--qt-sunken); overflow: hidden; color: inherit; text-decoration: none; }
.qt-story-media img { width: 100%; height: 100%; object-fit: cover; }
.qt-story-media .qt-tag { position: absolute; top: .65rem; left: .65rem; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.qt-story-card.is-text .qt-story-media { background: linear-gradient(135deg, var(--qt-primary-soft), var(--qt-amber-soft)); display: flex; align-items: center; padding: 2.5rem 1.4rem 1.4rem; }
.qt-story-quote { font-family: var(--qt-font); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: var(--qt-ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.qt-story-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem .95rem .7rem; flex: 1; }
.qt-story-pet { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--qt-primary); }
.qt-story-title { font-size: 1.02rem; font-weight: 700; color: var(--qt-ink); }
.qt-story-excerpt { margin: 0; font-size: .88rem; color: var(--qt-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt-story-foot { justify-content: space-between; gap: .5rem; }
.qt-story-stats { display: flex; align-items: center; gap: .75rem; font-size: .82rem; color: var(--qt-muted); flex: none; position: relative; z-index: 2; }
.qt-stat { display: inline-flex; align-items: center; gap: .25rem; }
.qt-stat .qt-ico { width: 16px; height: 16px; }
.qt-like { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.qt-like .qt-ico { width: 17px; height: 17px; }
.qt-like.is-on { color: var(--qt-accent); }
.qt-like.is-on .qt-ico { fill: currentColor; }
.qt-btn.qt-like { padding: 0 1.1rem; }

.qt-story { max-width: 760px; margin: 0 auto; }
.qt-story-head { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; margin-bottom: 1.25rem; }
.qt-story-head .qt-tag--cat { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-story-byline { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .9rem; }
.qt-story .qt-gallery { margin-bottom: 1.5rem; }
.qt-story-video video { width: 100%; border-radius: var(--qt-r-lg); background: #000; margin-bottom: 1.25rem; }
.qt-story-text { font-size: 1.08rem; line-height: 1.7; color: var(--qt-ink); }
.qt-story-petbox { margin: 1.75rem 0 0; }
.qt-story-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; padding: 1rem 0; border-top: 1px solid var(--qt-line); border-bottom: 1px solid var(--qt-line); }

.qt-comments { display: flex; flex-direction: column; gap: 1rem; }
.qt-comment { display: flex; gap: .75rem; }
.qt-comment .qt-av, .qt-comment-form .qt-av { border-radius: 50%; flex: none; }
.qt-comment-body { flex: 1; min-width: 0; padding: .65rem .9rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-comment-head { display: flex; align-items: baseline; gap: .5rem; font-size: .88rem; }
.qt-comment-head a { color: var(--qt-ink); text-decoration: none; }
.qt-comment-head time { color: var(--qt-muted); font-size: .78rem; }
.qt-comment-body p { margin: .2rem 0 0; color: var(--qt-ink-2); word-wrap: break-word; }
.qt-comment-form { flex-direction: row; gap: .75rem; align-items: flex-start; }
.qt-comment-input { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: start; }
.qt-comment-input textarea { min-height: 44px; resize: vertical; }
.qt-comment-input .qt-field-error { grid-column: 1 / -1; }


/* ---------- Team dashboard ---------- */
.qt-manage { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.qt-manage .qt-account-id > .qt-ico { width: 36px; height: 36px; color: var(--qt-primary); }
.qt-account-team { color: var(--qt-primary); }
.qt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.qt-tile { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); color: inherit; text-decoration: none; }
a.qt-tile:hover { border-color: var(--qt-ink-2); }
.qt-tile-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--qt-muted); }
.qt-tile-num { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.qt-tile-sub { font-size: .82rem; color: var(--qt-muted); }
.qt-queue { display: flex; flex-direction: column; gap: .75rem; }
.qt-queue-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); gap: .75rem 1.25rem; padding: 1rem 1.1rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-queue-obj { display: flex; gap: .85rem; min-width: 0; }
.qt-queue-obj p { margin: .25rem 0 0; }
.qt-queue-obj a { color: var(--qt-ink); text-decoration: none; }
.qt-queue-thumb { flex: none; width: 72px; height: 72px; border-radius: var(--qt-r); overflow: hidden; background: var(--qt-sunken); display: grid; place-items: center; }
.qt-queue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qt-queue-why { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; font-size: .85rem; }
.qt-queue-note { margin: 0; color: var(--qt-ink-2); font-style: italic; }
.qt-queue-member { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 0; font-size: .85rem; }
.qt-queue-member .qt-av { border-radius: 50%; }
.qt-queue-member a { font-weight: 600; color: var(--qt-ink); }
.qt-queue-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: .4rem; padding-top: .75rem; border-top: 1px solid var(--qt-line); }
.qt-queue-video { grid-column: 1 / -1; max-height: 320px; width: 100%; border-radius: var(--qt-r); background: #000; }
.qt-manage-search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.qt-manage-search .qt-search { flex: 1 1 240px; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); background: var(--qt-surface); }
.qt-table-wrap { overflow-x: auto; border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); }
.qt-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.qt-table th { text-align: left; padding: .7rem .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--qt-muted); border-bottom: 1px solid var(--qt-line); white-space: nowrap; }
.qt-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--qt-line); vertical-align: middle; }
.qt-table tr:last-child td { border-bottom: 0; }
.qt-table a { color: var(--qt-ink); text-decoration: none; }
.qt-table .qt-queue-member { margin: 0; }
.qt-row-actions { flex-direction: row; gap: .35rem; align-items: center; flex-wrap: nowrap; }
.qt-btn-sm { min-height: 32px; padding: 0 .75rem; font-size: .8rem; }
.qt-activity { list-style: none; margin: 0; padding: 0; border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); }
.qt-activity li { padding: .6rem .9rem; border-bottom: 1px solid var(--qt-line); font-size: .88rem; }
.qt-activity li:last-child { border-bottom: 0; }
.qt-activity li.is-mod { background: var(--qt-sky-soft); }
.qt-activity time { color: var(--qt-muted); font-size: .78rem; margin-left: .35rem; }
.qt-activity a { color: var(--qt-primary); text-decoration: none; }
.qt-modal { border: 0; padding: 0; background: transparent; max-width: min(460px, calc(100vw - 32px)); width: 100%; }
.qt-modal::backdrop { background: rgba(28, 37, 32, .45); }
.qt-modal-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; background: var(--qt-surface); border-radius: var(--qt-r-lg); box-shadow: var(--qt-shadow-lift); }
.qt-modal-card .qt-h3 { margin: 0; }
.qt-report-reasons { display: flex; flex-direction: column; gap: .1rem; }
@media (max-width: 960px) {
  .qt-manage { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .qt-queue-item { grid-template-columns: 1fr; }
}


/* ---------- Community Hub ---------- */
.qt-hub { max-width: 980px; margin: 0 auto; }
.qt-hub-compose { margin-bottom: 1.5rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); }
.qt-hub-compose > summary { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none; color: var(--qt-muted); font-weight: 500; }
.qt-hub-compose > summary::-webkit-details-marker { display: none; }
.qt-hub-compose > summary .qt-av { border-radius: 50%; flex: none; }
.qt-hub-compose[open] > summary { border-bottom: 1px solid var(--qt-line); }
.qt-hub-compose > .qt-form { padding: 1.1rem; }
.qt-hub-compose--gate { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; }
.qt-hub-tools { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.qt-hub-tools .qt-chiprow { flex: 1 1 400px; }
.qt-hub-search .qt-search { border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); background: var(--qt-surface); min-width: 220px; }
.qt-threads { display: flex; flex-direction: column; border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); overflow: hidden; }
.qt-thread-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding: 1rem 1.1rem; border-bottom: 1px solid var(--qt-line); position: relative; }
.qt-thread-row:last-child { border-bottom: 0; }
.qt-thread-row:hover { background: var(--qt-bg); }
.qt-thread-row .qt-av { border-radius: 50%; }
.qt-thread-row h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.qt-thread-row h3 a { color: var(--qt-ink); text-decoration: none; }
.qt-thread-row h3 a::after { content: ""; position: absolute; inset: 0; }
.qt-thread-row-snip { margin: .2rem 0 .4rem; color: var(--qt-ink-2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt-thread-row-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 0; font-size: .8rem; color: var(--qt-muted); }
.qt-thread-row-stats { display: flex; gap: .9rem; color: var(--qt-muted); font-size: .85rem; padding-top: .2rem; }

/* ---------- Alerts ---------- */
.qt-alert-note { margin: 0 0 1rem; }
.qt-btn.is-on .qt-ico { fill: currentColor; }
.qt-alert-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); }
.qt-alert-list li { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-bottom: 1px solid var(--qt-line); }
.qt-alert-list li:last-child { border-bottom: 0; }
.qt-alert-list li > .qt-ico { color: var(--qt-primary); }
.qt-alert-list li > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.qt-alert-list a { color: var(--qt-ink); text-decoration: none; }
.qt-alert-list .qt-muted { font-size: .8rem; }
@media (max-width: 640px) {
  .qt-thread-row { grid-template-columns: auto minmax(0, 1fr); }
  .qt-thread-row-stats { grid-column: 2; padding: 0; }
  .qt-hub-search, .qt-hub-search .qt-search { width: 100%; }
}

.qt-av-initials { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; line-height: 1; font-family: var(--qt-font); vertical-align: middle; user-select: none; }


/* ---------- Support Qootales ---------- */
.qt-donate { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 2.5rem; align-items: start; }
.qt-donate-intro p { color: var(--qt-ink-2); font-size: 1.02rem; line-height: 1.6; }
.qt-donate-intro .qt-h2 { margin: .25rem 0 1rem; }
.qt-donate-card { padding: 1.75rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); box-shadow: var(--qt-shadow-lift); }
.qt-donate-freq { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.qt-donate-freq .qt-seg-opt span { justify-content: center; width: 100%; }
.qt-donate-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.qt-donate-amt { position: relative; cursor: pointer; }
.qt-donate-amt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qt-donate-amt span { display: grid; place-items: center; height: 56px; border: 1.5px solid var(--qt-line-2); border-radius: var(--qt-r); font-weight: 700; font-size: 1.1rem; transition: all .12s; }
.qt-donate-custom span { font-size: .9rem; }
.qt-donate-amt input:checked + span { border-color: var(--qt-primary); background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-donate-amt input:focus-visible + span { box-shadow: var(--qt-focus); }
.qt-money { display: flex; align-items: center; gap: .4rem; }
.qt-money span { font-weight: 700; font-size: 1.1rem; }
.qt-donate-go { min-height: 52px; font-size: 1.05rem; margin-top: .25rem; }
.qt-donate-secure { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .75rem 0 0; font-size: .8rem; color: var(--qt-muted); text-align: center; }
.qt-donate-secure .qt-ico { width: 14px; height: 14px; }
.qt-donate-thanks, .qt-donate-soon { text-align: center; }
.qt-donate-thanks > .qt-ico { width: 44px; height: 44px; color: var(--qt-accent); fill: currentColor; }
@media (max-width: 860px) { .qt-donate { grid-template-columns: 1fr; gap: 1.5rem; } .qt-donate-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ---------- Map view ---------- */
.qt-map { position: relative; height: min(56vh, 520px); margin-bottom: 1rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); overflow: hidden; background: var(--qt-sunken); z-index: 0; }
.qt-map-note { position: absolute; left: .75rem; bottom: .6rem; z-index: 500; margin: 0; padding: .3rem .65rem; border-radius: var(--qt-pill); background: rgba(255,255,255,.92); font-size: .76rem; color: var(--qt-ink-2); box-shadow: var(--qt-shadow); }
.qt-pin { display: inline-block; transform: translate(-50%, -100%); padding: .25rem .55rem; border-radius: var(--qt-pill); background: var(--qt-ink); color: #fff; font: 700 .78rem/1.2 var(--qt-font); white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.qt-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: inherit; }
.qt-pin { border-top-color: var(--qt-ink); }
.qt-pin--green { background: var(--qt-primary); border-top-color: var(--qt-primary); }
.qt-pin--lost { background: var(--qt-accent-strong); border-top-color: var(--qt-accent-strong); color: var(--qt-on-accent); }
.qt-pop { display: flex; gap: .6rem; align-items: center; color: var(--qt-ink); text-decoration: none; font-family: var(--qt-font); min-width: 180px; }
.qt-pop img { width: 52px; height: 52px; border-radius: var(--qt-r); object-fit: cover; flex: none; }
.qt-pop span { display: flex; flex-direction: column; font-size: .82rem; line-height: 1.3; }
.qt-pop strong { font-size: .95rem; }


/* ---------- Notification bell ---------- */
.qt-bell { position: relative; display: inline-flex; align-items: center; gap: .25rem; }
.qt-bell-btn, .qt-bell-msg { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--qt-ink); cursor: pointer; }
.qt-bell-btn:hover, .qt-bell-msg:hover { background: var(--qt-sunken); }
.qt-bell-btn .qt-ico, .qt-bell-msg .qt-ico { width: 22px; height: 22px; }
.qt-bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--qt-pill); background: var(--qt-accent-strong); color: var(--qt-on-accent); font: 700 .68rem/18px var(--qt-font); text-align: center; box-shadow: 0 0 0 2px var(--qt-surface); }
.qt-bell-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 9999; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); box-shadow: var(--qt-shadow-lift); }
.qt-bell-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--qt-line); position: sticky; top: 0; background: var(--qt-surface); }
.qt-bell-head a { font-weight: 600; font-size: .85rem; color: var(--qt-primary); text-decoration: none; }
.qt-notif { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem 1rem; border-bottom: 1px solid var(--qt-line); color: var(--qt-ink-2); text-decoration: none; font-size: .88rem; line-height: 1.4; }
.qt-notif:last-child { border-bottom: 0; }
.qt-notif:hover { background: var(--qt-bg); }
.qt-notif.is-unread { background: var(--qt-primary-soft); }
.qt-notif .qt-av { border-radius: 50%; flex: none; }
.qt-notif-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--qt-amber-soft); color: var(--qt-amber); flex: none; }
.qt-notif-txt { display: flex; flex-direction: column; gap: .15rem; }
.qt-notif-txt strong { color: var(--qt-ink); }
.qt-notif-txt time { font-size: .75rem; color: var(--qt-muted); }
.qt-notif-empty { margin: 0; padding: 1.5rem 1rem; text-align: center; color: var(--qt-muted); }
.qt-notif-page { border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); overflow: hidden; }
.qt-bell-signin { font-weight: 600; color: var(--qt-primary); text-decoration: none; }

/* ---------- Install App ---------- */
.qt-install { max-width: 560px; margin: 0 auto; text-align: center; }
.qt-install-hero img, .qt-install-icon { display: block; margin: 0 auto 1rem; border-radius: var(--qt-r); box-shadow: var(--qt-shadow-lift); }
.qt-install-icon { display: grid; place-items: center; width: 96px; height: 96px; background: var(--qt-primary); color: #fff; }
.qt-install-icon .qt-ico { width: 52px; height: 52px; }
.qt-install-hero p { color: var(--qt-ink-2); }
.qt-install-card { margin-top: 1.5rem; padding: 1.5rem; text-align: left; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); }
.qt-install-card ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.qt-install-card p { margin: 0 0 1rem; color: var(--qt-ink-2); }
.qt-install-done { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--qt-primary) !important; }


/* ---------- Misc (0.9) ---------- */
.qt-turnstile { min-height: 0; margin: -.25rem 0 0; }
.qt-strip { margin: 0 0 2.5rem; }
.qt-strip-row.qt-grid--grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.qt-danger-zone { margin-top: 2.5rem; padding: 1.25rem; border: 1px solid #F3C9C4; border-radius: var(--qt-r-lg); background: #FFF7F6; }
.qt-danger-zone .qt-btn-primary { background: var(--qt-danger); }
.qt-mail-log { margin: .5rem 0 1rem; font-size: .85rem; }
.qt-mail-log ul { margin: .5rem 0 0; padding-left: 1rem; color: var(--qt-danger); }
.qt-inline-form { flex-direction: row; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.qt-inline-form .qt-field { flex: 1 1 260px; }


/* ---------- Site header ---------- */
body.qt-site { background: var(--qt-bg); }
html.qt-noscroll { overflow: hidden; }
.qt-header { position: sticky; top: 0; z-index: 1000; background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .qt-header { top: 32px; }
.qt-header.is-scrolled { border-bottom-color: var(--qt-line); box-shadow: 0 4px 16px -12px rgba(28,37,32,.35); }
.qt-header-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 1.25rem; height: 68px; padding: 0 clamp(16px, 3vw, 32px); }
.qt-logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.qt-logo-img { max-height: 44px; width: auto; }
.qt-wordmark { font-family: var(--qt-font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: 0; color: var(--qt-primary); }
.qt-wordmark span { color: var(--qt-accent); }
.qt-nav { flex: 1; display: flex; align-items: center; gap: 1rem; }
.qt-nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0 auto 0 0; padding: 0; }
.qt-nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .75rem; border: 0; border-radius: var(--qt-pill); background: none; color: var(--qt-ink-2); font: 600 .92rem var(--qt-font); text-decoration: none; cursor: pointer; }
.qt-nav-link:hover, .qt-nav-link[aria-expanded="true"] { background: var(--qt-sunken); color: var(--qt-ink); }
.qt-nav-link.is-on { color: var(--qt-primary); }
.qt-nav-link svg { transition: transform .15s; }
.qt-nav-drop[aria-expanded="true"] svg { transform: rotate(180deg); }
.qt-nav-group, .qt-account-menu { position: relative; }
.qt-sub { position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; min-width: 220px; margin: 0; padding: .4rem; list-style: none; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); box-shadow: var(--qt-shadow-lift); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .12s, transform .12s, visibility .12s; }
.qt-sub-right { left: auto; right: 0; }
[aria-expanded="true"] + .qt-sub { opacity: 1; visibility: visible; transform: none; }
.qt-sub a { display: block; padding: .55rem .75rem; border-radius: var(--qt-r); color: var(--qt-ink); text-decoration: none; font-weight: 500; font-size: .92rem; }
.qt-sub a:hover, .qt-sub a[aria-current="page"] { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-sub-head { padding: .45rem .75rem .35rem; font-size: .78rem; font-weight: 700; color: var(--qt-muted); text-transform: uppercase; letter-spacing: .05em; }
.qt-nav-cta { display: flex; gap: .5rem; }
.qt-header-tools { display: flex; align-items: center; gap: .35rem; }
.qt-account-btn { display: grid; place-items: center; padding: 2px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.qt-account-btn[aria-expanded="true"] { border-color: var(--qt-primary); }
.qt-account-btn .qt-av { border-radius: 50%; display: block; }
/* Initials avatars always centre their letter (container rules above set display:block on .qt-av). */
span.qt-av-initials, .qt-account-btn span.qt-av-initials { display: grid; place-items: center; line-height: 1; text-align: center; }
.qt-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 9px; border: 0; border-radius: 50%; background: none; cursor: pointer; order: 3; }
.qt-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--qt-ink); transition: transform .2s, opacity .2s; }
.qt-header.is-open .qt-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.qt-header.is-open .qt-nav-toggle span:nth-child(2) { opacity: 0; }
.qt-header.is-open .qt-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.qt-nav-scrim { position: fixed; inset: 0; z-index: 999; background: rgba(28,37,32,.35); }
/* Hide the theme's own page wrapper header spacing */
.qt-site .site-header, .qt-site .site-footer { display: none; }

/* ---------- Site footer ---------- */
.qt-footer { background: #24521A; color: #DCE3DE; } /* deep logo green */
/* Footer pinned to the bottom on short pages: body is a column at least one screen tall; the gap grows to fill. */
body.qt-site { display: flex; flex-direction: column; min-height: 100vh; }
body.admin-bar.qt-site { min-height: calc(100vh - 32px); }
body.qt-site > * { flex-shrink: 0; }
body.qt-site > :not(#wpadminbar):not(.screen-reader-text):not(.skip-link):not(script):not(style) { width: 100%; }
.qt-footer-gap { flex: 1 0 4rem; }
/* Breathing room under the header on plugin pages (Elementor pages carry their own section padding). */
body.qt-site main.site-main { padding-top: clamp(1.75rem, 4vw, 3rem); }
.qt-footer-in { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: 3.5rem clamp(16px, 3vw, 32px) 2.5rem; }
.qt-footer .qt-wordmark { color: #fff; }
.qt-footer-brand p { margin: .75rem 0 1.25rem; color: #B9C4BD; max-width: 32ch; }
.qt-footer-col h2 { margin: 0 0 .9rem; font: 700 .78rem var(--qt-font); letter-spacing: .08em; text-transform: uppercase; color: #1679A0; }
.qt-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.qt-footer a { color: #DCE3DE; text-decoration: none; }
.qt-footer a:hover { color: #fff; text-decoration: underline; }
.qt-footer a.qt-btn { text-decoration: none; }
.qt-footer-base { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem clamp(16px, 3vw, 32px) 2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #9FAEA5; }
.qt-footer-base p { margin: 0; }
.qt-footer-quote { font-style: italic; }

@media (max-width: 1080px) {
  .qt-nav-toggle { display: flex; }
  .qt-header-tools { margin-left: auto; }
  .qt-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1001; width: min(360px, 88vw); flex-direction: column; align-items: stretch; gap: 1rem; padding: 84px 1.25rem 1.5rem; overflow-y: auto; background: var(--qt-surface); box-shadow: var(--qt-shadow-lift); transform: translateX(105%); transition: transform .25s; }
  .qt-header.is-open .qt-nav { transform: none; }
  .qt-header.is-open .qt-nav-toggle { position: relative; z-index: 1002; }
  .qt-nav-list { flex-direction: column; align-items: stretch; margin: 0; }
  .qt-nav-link { width: 100%; justify-content: space-between; padding: .8rem .75rem; font-size: 1rem; border-radius: var(--qt-r); }
  .qt-sub { position: static; display: none; min-width: 0; padding: 0 0 .4rem .5rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  [aria-expanded="true"] + .qt-sub { display: block; }
  .qt-account-menu .qt-sub { position: absolute; display: block; opacity: 0; visibility: hidden; padding: .4rem; border: 1px solid var(--qt-line); box-shadow: var(--qt-shadow-lift); }
  .qt-account-menu [aria-expanded="true"] + .qt-sub { opacity: 1; visibility: visible; }
  .qt-nav-cta { flex-direction: column; }
  .qt-nav-cta .qt-btn { width: 100%; min-height: 46px; }
  .qt-footer-in { grid-template-columns: 1fr 1fr; }
  .qt-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .qt-header { top: 46px; } body.admin-bar.qt-site { min-height: calc(100vh - 46px); } }
@media (max-width: 520px) { .qt-footer-in { grid-template-columns: 1fr; } .qt-header-in { height: 60px; } }


/* ---------- Badge tables ([qt_badges]) ---------- */
.qt-badge-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin: 1rem 0; }
.qt-badge-tier { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1rem .75rem; text-align: center; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-badge-tier-ico { font-size: 1.8rem; line-height: 1; margin-bottom: .25rem; }
.qt-badge-tier strong { font-size: .95rem; }
.qt-badge-tier span:last-child { font-size: .8rem; color: var(--qt-muted); }

/* ---------- Elementor content pages (classes set on native widgets) ---------- */
.qt-site .elementor-widget-heading .elementor-heading-title { font-family: var(--qt-font-display); color: var(--qt-ink); letter-spacing: -.015em; }
.qt-site .elementor-widget-text-editor { color: var(--qt-ink-2); font-family: var(--qt-font); font-size: 1.04rem; line-height: 1.7; }
.qt-site .elementor-widget-text-editor ol, .qt-site .elementor-widget-text-editor ul { padding-left: 1.25rem; display: grid; gap: .45rem; }
.qt-el-eyebrow .elementor-heading-title { font-family: var(--qt-font) !important; font-size: .8rem !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--qt-primary) !important; }
.qt-el-hero .elementor-heading-title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem) !important; line-height: 1.1; }
.qt-el-card { background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); box-shadow: var(--qt-shadow); transition: box-shadow .2s, transform .2s; }
.qt-el-card:hover { box-shadow: var(--qt-shadow-lift); transform: translateY(-2px); }
.qt-el-card .elementor-icon { color: var(--qt-primary); fill: var(--qt-primary); }
.qt-el-card .elementor-icon-box-title { font-family: var(--qt-font); font-weight: 700; }
.qt-el-card .elementor-icon-box-description { color: var(--qt-ink-2); }
.qt-el-band { background: var(--qt-primary-soft); border-radius: var(--qt-r-lg); }
.qt-el-dark { background: var(--qt-ink); border-radius: var(--qt-r-lg); }
.qt-el-dark .elementor-heading-title, .qt-el-dark .elementor-widget-text-editor { color: #fff !important; }
.qt-el-note { background: var(--qt-amber-soft); border-radius: var(--qt-r); }
.qt-el-note .elementor-widget-text-editor { color: #5c4210; }
.qt-site .elementor-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.5rem; border: 1px solid transparent; border-radius: var(--qt-pill); background: var(--qt-primary); color: #fff; font: 600 .95rem/1 var(--qt-font); transition: background .15s, border-color .15s; }
.qt-site .elementor-button:hover, .qt-site .elementor-button:focus-visible { background: var(--qt-primary-hover); color: #fff; }
.qt-el-btn-ghost .elementor-button:hover { border-color: var(--qt-ink) !important; }
.qt-el-btn-ghost .elementor-button { background: var(--qt-surface) !important; color: var(--qt-ink) !important; border: 1px solid var(--qt-line-2) !important; }
.qt-el-prose, .e-con.qt-el-prose { --content-width: 780px; max-width: 780px; margin-left: auto; margin-right: auto; } /* readable line length; Elementor sizes boxed containers from --content-width */
.qt-el-prose .elementor-widget-text-editor h2 { font-family: var(--qt-font-display); font-size: 1.3rem; margin: 2rem 0 .5rem; color: var(--qt-ink); }
:where(.qt-site) a { color: var(--qt-primary); } /* zero-specificity: beats the theme reset by load order, never beats a component (buttons, footer) */
:where(.qt-site) a:where(:hover) { color: var(--qt-primary-hover); }
.qt-site .elementor-widget-heading h1.elementor-heading-title { font-family: var(--qt-font-display); }
.qt-site .elementor-widget-heading h2.elementor-heading-title { font-family: var(--qt-font-display); font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; color: var(--qt-ink); }
.qt-site .elementor-widget-heading h3.elementor-heading-title { font-family: var(--qt-font-display); font-size: 1.25rem; line-height: 1.25; color: var(--qt-ink); }
.qt-el-prose .elementor-widget-heading h2.elementor-heading-title { margin-top: .75rem; }


/* ---------- Logged in as a member (team support) ---------- */
.qt-switch-bar { position: fixed; left: 50%; bottom: 16px; z-index: 100000; transform: translateX(-50%); width: auto !important; max-width: calc(100% - 32px); padding: .7rem 1.1rem; border-radius: var(--qt-pill); background: var(--qt-accent-strong); color: var(--qt-on-accent); font: 500 .92rem var(--qt-font); box-shadow: var(--qt-shadow-lift); text-align: center; }
.qt-switch-bar a { color: var(--qt-on-accent) !important; font-weight: 700; text-decoration: underline; margin-left: .35rem; }

/* Hello theme.css: `.page-content a { text-decoration: underline }` outranks component classes. */
.page-content .qt a, .comments-area .qt a, .page-content a.qt-btn { text-decoration: none; }
.page-content .qt .qt-prose a, .page-content .qt .qt-comment-body p a { text-decoration: underline; }


/* ---------- Dropdown checklist (pet type) ---------- */
.qt-fgroup--dd { padding: .9rem 0; }
.qt-flabel { display: block; margin-bottom: .45rem; font-weight: 700; font-size: .88rem; color: var(--qt-ink); }
.qt-dd { position: relative; }
.qt-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 44px; padding: 0 .85rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r); background: var(--qt-surface); color: var(--qt-ink); font: 500 .92rem var(--qt-font); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.qt-dd-btn:hover, .qt-dd-btn:focus { border-color: var(--qt-ink-2); background: var(--qt-surface); color: var(--qt-ink); }
.qt-dd-btn[aria-expanded="true"] { border-color: var(--qt-primary); box-shadow: 0 0 0 3px var(--qt-primary-soft); }
.qt-dd-btn svg { flex: none; color: var(--qt-muted); transition: transform .15s; }
.qt-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.qt-dd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-dd-panel { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; padding: .35rem .35rem 0; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); box-shadow: var(--qt-shadow-lift); }
.qt-dd-btn[aria-expanded="true"] + .qt-dd-panel { display: block; }
.qt-dd-list { max-height: 280px; overflow-y: auto; padding: .15rem .5rem; }
.qt-dd-foot { display: flex; align-items: center; justify-content: space-between; padding: .55rem .5rem; border-top: 1px solid var(--qt-line); }
.qt-dd:not([data-qt-dd-ready]) .qt-dd-btn { display: none; }
.qt-dd:not([data-qt-dd-ready]) .qt-dd-panel { display: block; position: static; box-shadow: none; }
.qt-stories .qt-results > .qt-tabs { margin-bottom: .75rem; }
@media (max-width: 960px) { .qt-filters .qt-dd-panel { position: static; box-shadow: none; margin-top: .4rem; } }


/* ---------- Brand heads + rotating search hints ---------- */
.qt-head-text { min-width: 0; }
.qt-brand-title em { font-style: normal; color: var(--qt-primary); }
.qt-intro { margin: .35rem 0 0; max-width: 62ch; color: var(--qt-ink-2); font-size: 1rem; }
.qt-bar-head { align-items: flex-end; }
.qt-search-side { width: 100%; }
.qt-search input::placeholder { transition: opacity .25s; }
.qt-search input.is-swapping::placeholder { opacity: 0; }


/* ---------- Impact + invite ---------- */
.qt-impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.qt-impact-tile { display: flex; flex-direction: column; gap: .25rem; padding: 1.4rem 1.25rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); background: var(--qt-surface); color: var(--qt-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.qt-impact-tile:hover { border-color: var(--qt-primary); transform: translateY(-2px); color: var(--qt-ink); }
.qt-impact-num { font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1 var(--qt-font-display); color: var(--qt-primary); }
.qt-impact-label { color: var(--qt-ink-2); font-weight: 500; }
.qt-invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--qt-r-lg); background: var(--qt-primary-soft); }
.qt-invite-text p { margin: .4rem 0 0; color: var(--qt-ink-2); }
.qt-invite-box .qt-input { width: 100%; background: var(--qt-surface); }
.qt-invite-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.qt-invite-count { margin: .65rem 0 0; font-size: .9rem; color: var(--qt-primary); font-weight: 600; }
@media (max-width: 760px) { .qt-invite { grid-template-columns: 1fr; } }


/* ---------- Team Dashboard > Lists: chip editor ---------- */
.qt-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.qt-listcard { padding: 1.1rem 1.15rem 1rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); background: var(--qt-surface); }
.qt-listcard-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .7rem; }
.qt-listcard-head .qt-h4 { margin: 0; }
.qt-chipbox { display: block; }
.qt-chipbox .qt-chipbox-input { width: 100%; }
.qt-tchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.qt-tchip { display: inline-flex; align-items: center; height: 32px; padding: 0 .2rem 0 .7rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); background: var(--qt-surface); font-size: .88rem; }
.qt-tchip.is-new { animation: qt-pop .25s ease-out; border-color: var(--qt-primary); }
@keyframes qt-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.qt-tchip-name { padding: 0; border: 0; background: none; color: var(--qt-ink); font: inherit; font-weight: 600; cursor: pointer; }
.qt-tchip-name:hover, .qt-tchip-name:focus { background: none; color: var(--qt-primary); text-decoration: underline; text-underline-offset: 3px; }
.qt-tchip-count { margin-left: .4rem; padding: 0 .4rem; border-radius: var(--qt-pill); background: var(--qt-sunken); color: var(--qt-muted); font-size: .75rem; font-weight: 700; line-height: 1.5; }
.qt-tchip-x { display: grid; place-items: center; width: 26px; height: 26px; margin-left: .15rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--qt-muted); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.qt-tchip-x:hover, .qt-tchip-x:focus { background: #FEECEB; color: #B42318; }
.qt-tchip-x:disabled { opacity: .3; cursor: not-allowed; background: none; color: var(--qt-muted); }
.qt-tchip-edit { width: 9em; height: 26px; padding: 0 .35rem; border: 1px solid var(--qt-primary); border-radius: var(--qt-r); font: inherit; font-size: .88rem; }
.qt-chipbox-msg { min-height: 1.2em; margin: .35rem 0 .5rem; font-size: .82rem; color: var(--qt-muted); }
.qt-chipbox-msg.is-error { color: #B42318; }


/* ---------- 404 ---------- */
.qt-404 { max-width: 760px; margin: 0 auto; padding: 1rem 0 2rem; text-align: center; }
.qt-404-paw { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: .75rem; border-radius: 50%; background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-404-paw svg { width: 34px; height: 34px; }
.qt-404 .qt-intro { margin: .5rem auto 1.75rem; }
.qt-404-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1.75rem; text-align: left; }
.qt-404-link { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); color: var(--qt-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.qt-404-link:hover { border-color: var(--qt-primary); transform: translateY(-2px); color: var(--qt-ink); }
.qt-404-link span { color: var(--qt-muted); font-size: .88rem; }


/* ---------- Resources (Community Hub) ---------- */
.qt-resources { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--qt-r-lg); background: var(--qt-primary-soft); }
.qt-resources-head { text-align: center; margin-bottom: 1.75rem; }
.qt-resources-head .qt-intro { margin: .4rem auto 0; }
.qt-eyebrow-pill { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .75rem; padding: .35rem .85rem; border-radius: var(--qt-pill); background: rgba(45, 106, 79, .12); color: var(--qt-primary); font-weight: 700; font-size: .85rem; }
.qt-eyebrow-pill svg { width: 16px; height: 16px; }
.qt-res-group + .qt-res-group { margin-top: 1.75rem; }
.qt-res-group-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font: 600 1.05rem var(--qt-font); color: var(--qt-ink); }
.qt-res-group-title svg { color: var(--qt-primary); }
.qt-res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; }
.qt-res-card { position: relative; display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 2.4rem 1rem 1rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); color: var(--qt-ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.qt-res-card:hover { border-color: var(--qt-primary); transform: translateY(-2px); box-shadow: 0 8px 20px -14px rgba(28,37,32,.4); color: var(--qt-ink); }
.qt-res-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--qt-r); background: var(--qt-accent-soft, #FBE7DE); color: var(--qt-accent); }
.qt-res-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.qt-res-name { font-weight: 700; }
.qt-res-tag { display: table; margin: .2rem 0 .1rem; padding: .05rem .5rem; border: 1px solid currentColor; border-radius: var(--qt-pill); color: var(--qt-accent-ink); font-size: .72rem; font-weight: 600; vertical-align: 2px; }
.qt-res-desc { color: var(--qt-ink-2); font-size: .88rem; line-height: 1.4; }
.qt-res-ext { position: absolute; top: 1rem; right: 1rem; color: var(--qt-muted); }
.qt-hub > .qt-invite { margin-top: 2rem; }
/* Dashboard editor */
.qt-res-edit-head { display: grid; grid-template-columns: 1fr 200px; gap: .75rem; margin-bottom: .75rem; }
.qt-res-rows { display: flex; flex-direction: column; gap: .4rem; }
.qt-res-row { display: grid; grid-template-columns: 1.1fr .7fr 1.6fr 1.3fr; gap: .4rem; }
.qt-res-row-head span { font-size: .75rem; font-weight: 700; color: var(--qt-muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) { .qt-res-row, .qt-res-edit-head { grid-template-columns: 1fr; } .qt-res-row-head { display: none; } .qt-res-row { padding-bottom: .5rem; border-bottom: 1px dashed var(--qt-line); } }


/* ---------- Menu icons ---------- */
.qt-nav-ico { flex: none; width: 18px; height: 18px; color: var(--qt-muted); transition: color .15s; }
.qt-nav-link { gap: .4rem; }
.qt-nav-link:hover .qt-nav-ico, .qt-nav-link.is-on .qt-nav-ico, .qt-nav-link[aria-expanded="true"] .qt-nav-ico { color: var(--qt-primary); }
.qt-sub a { display: flex; align-items: center; gap: .6rem; }
.qt-sub a:hover .qt-nav-ico, .qt-sub a[aria-current="page"] .qt-nav-ico { color: var(--qt-primary); }
@media (min-width: 1081px) and (max-width: 1240px) { .qt-nav-list > li > .qt-nav-link > .qt-nav-ico { display: none; } } /* tight desktop widths: keep the bar on one line */


/* ---------- Phones: section menu becomes a dropdown (listings.js builds it from the links) ---------- */
.qt-secmenu-btn { display: none; }
.qt-account-tab { justify-content: flex-start; gap: .65rem; }
.qt-account-tab > .qt-ico { flex: none; width: 18px; height: 18px; opacity: .75; }
.qt-account-tab.is-on > .qt-ico { opacity: 1; }
.qt-account-tab > span:not(.qt-badge-count) { flex: 1; }
@media (max-width: 960px) {
  .qt-account-nav.qt-has-select { position: relative; top: auto !important; }
  .qt-secmenu-btn { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 52px; padding: 0 1rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r); background: var(--qt-surface); color: var(--qt-ink); font: 700 1rem var(--qt-font); cursor: pointer; text-align: left; }
  .qt-secmenu-btn > .qt-ico { flex: none; width: 20px; height: 20px; color: var(--qt-primary); }
  .qt-secmenu-btn > span { flex: 1; }
  .qt-secmenu-chev { flex: none; color: var(--qt-muted); transition: transform .15s; }
  .qt-secmenu-btn[aria-expanded="true"] { border-color: var(--qt-primary); }
  .qt-secmenu-btn[aria-expanded="true"] .qt-secmenu-chev { transform: rotate(180deg); }
  .qt-has-select nav { display: none !important; }
  .qt-has-select.is-open nav { display: flex !important; flex-direction: column; position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 40; gap: 2px; padding: .4rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); box-shadow: var(--qt-shadow-lift); max-height: 70vh; overflow-y: auto; }
  .qt-has-select.is-open .qt-account-tab { min-height: 46px; font-size: 1rem; }
  .qt-tchip { height: 36px; }
  .qt-tchip-x { width: 34px; height: 34px; }
  .qt-input-sm { min-height: 40px; }
}
/* Off-canvas drawers (menu, filters) must never widen the page. clip, unlike hidden, keeps position: sticky working. */
html, body.qt-site { overflow-x: clip; }


/* ---------- Heading font: Hoss Round Wide (600 titles, 500 sub-heads) ---------- */
.qt-site .elementor-widget-heading .elementor-heading-title, .qt-brand-title, .qt-404 h1, .qt-h2 { font-weight: 600; letter-spacing: -.005em; }
.qt-site .elementor-widget-heading h3.elementor-heading-title, .qt-h3, .qt-fs legend, .qt-inbox-head h3 { font-weight: 500; }
.qt-el-eyebrow .elementor-heading-title { letter-spacing: .08em; }

/* Body font everywhere (Elementor text widgets included). */
body.qt-site, .qt-site .elementor-widget-text-editor, .qt-site .elementor-button { font-family: var(--qt-font); }


/* ================= Bespoke layer: details taken from the logo ================= */
/* Speech bubbles (the logo's Q and heart): one tighter corner on cards, a tail on eyebrow labels. */
.qt-el-eyebrow .elementor-heading-title, .qt-eyebrow-pill { position: relative; display: inline-block; padding: .4rem .85rem; border-radius: var(--qt-pill); background: var(--qt-primary-soft); color: var(--qt-primary) !important; }
.qt-eyebrow-pill { display: inline-flex; }
.qt-el-eyebrow .elementor-heading-title::after, .qt-eyebrow-pill::after { content: ""; position: absolute; left: 10px; bottom: -6px; width: 12px; height: 8px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
/* Hand-drawn orange underline under the highlighted word of a title (Adopt a <em>Qootie Pie</em>). */
.qt-brand-title em, .qt-el-hero em { font-style: normal; color: var(--qt-primary); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5c14-5 26-6 38-2.5s24 4 38-.5 26-5 40-1' fill='none' stroke='%231679A0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 100% / 100% .32em; padding-bottom: .12em; }
/* Tactile buttons: chunky, with a pressed-in base. */
.qt-btn-primary, .qt-site .elementor-button { box-shadow: 0 3px 0 rgba(0, 0, 0, .22); transition: transform .12s, box-shadow .12s, background .15s; }
.qt-btn-primary:hover, .qt-site .elementor-button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(0, 0, 0, .22); }
.qt-btn-primary:active, .qt-site .elementor-button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .22); }
.qt-btn-ghost { border-width: 1.5px; }
/* A faint paw trail walks across the green call-to-action band. */
.qt-el-band { position: relative; overflow: hidden; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'%3E%3Cg fill='%232D6519' fill-opacity='.07'%3E%3Cg transform='translate(18 112) rotate(-28)'%3E%3Cellipse cx='0' cy='0' rx='4' ry='5'/%3E%3Cellipse cx='9' cy='-6' rx='4' ry='5'/%3E%3Cellipse cx='19' cy='-6' rx='4' ry='5'/%3E%3Cellipse cx='28' cy='0' rx='4' ry='5'/%3E%3Cpath d='M14 4c-6 0-12 6-12 11 0 4 3 6 6 6 2 0 4-1 6-1s4 1 6 1c3 0 6-2 6-6 0-5-6-11-12-11z'/%3E%3C/g%3E%3Cg transform='translate(92 70) rotate(-18)'%3E%3Cellipse cx='0' cy='0' rx='4' ry='5'/%3E%3Cellipse cx='9' cy='-6' rx='4' ry='5'/%3E%3Cellipse cx='19' cy='-6' rx='4' ry='5'/%3E%3Cellipse cx='28' cy='0' rx='4' ry='5'/%3E%3Cpath d='M14 4c-6 0-12 6-12 11 0 4 3 6 6 6 2 0 4-1 6-1s4 1 6 1c3 0 6-2 6-6 0-5-6-11-12-11z'/%3E%3C/g%3E%3Cg transform='translate(166 30) rotate(-8)'%3E%3Cellipse cx='0' cy='0' rx='4' ry='5'/%3E%3Cellipse cx='9' cy='-6' rx='4' ry='5'/%3E%3Cellipse cx='19' cy='-6' rx='4' ry='5'/%3E%3Cellipse cx='28' cy='0' rx='4' ry='5'/%3E%3Cpath d='M14 4c-6 0-12 6-12 11 0 4 3 6 6 6 2 0 4-1 6-1s4 1 6 1c3 0 6-2 6-6 0-5-6-11-12-11z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 24px bottom 8px; }
/* The footer rises on a soft wave instead of a hard line. */
.qt-footer { position: relative; }
.qt-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22c120-14 240-20 360-12s240 22 360 18 240-22 360-24 240 8 360 14v22z' fill='%2324521A'/%3E%3C/svg%3E") no-repeat center / 100% 100%; pointer-events: none; }
.qt-footer-gap { flex-basis: 5.5rem; }
/* Logo orange as a quiet accent: focus ring, selection, card hover edge. */
::selection { background: var(--qt-accent-soft); color: var(--qt-ink); }
.qt-card:hover, .qt-story-card:hover, .qt-el-card:hover { border-color: var(--qt-accent); }
@media (prefers-reduced-motion: reduce) { .qt-btn-primary, .qt-site .elementor-button { transition: none; } }

/* Footer: white logo on the deep green; its call to action in the accessible orange. */
.qt-footer .qt-logo-invert { filter: brightness(0) invert(1); } /* only if the light logo (Asset 13) is missing */
.qt-footer .qt-btn-primary, .qt-footer a.qt-btn-primary { background: var(--qt-accent-strong); color: var(--qt-on-accent); }
.qt-footer .qt-btn-primary:hover, .qt-footer a.qt-btn-primary:hover { background: #1E8DB8; color: var(--qt-on-accent); }
.qt-footer-base { border-top-color: rgba(255,255,255,.14); }

/* Elementor buttons: logo orange + deep green text; hover brightens instead of browning. */
.qt-site .elementor-widget-button .elementor-button { background: var(--qt-accent-strong); color: var(--qt-on-accent); }
.qt-site .elementor-widget-button .elementor-button:hover, .qt-site .elementor-widget-button .elementor-button:focus-visible { background: #1E8DB8; color: var(--qt-on-accent); }
.qt-site .elementor-widget-button.qt-el-btn-ghost .elementor-button { background: var(--qt-surface) !important; color: var(--qt-ink) !important; }


/* ---------- Forms: section title + hint on the left third, fields on the right two-thirds (when the form is wide) ---------- */
.qt-fs-hint { display: block; margin-top: .35rem; font-family: var(--qt-font); font-size: .88rem; font-weight: 400; line-height: 1.45; color: var(--qt-muted); }
.qt-form-cols, .qt-form-main, .qt-form-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@container qtform (min-width: 900px) {
  /* Left third: the basics (title) and photos. Right two-thirds: description, details, location. */
  .qt-form-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
  .qt-form-main { grid-column: 2; grid-row: 1; }
  .qt-form-side { grid-column: 1; grid-row: 1; }
  .qt-form-cols > .is-sticky { position: sticky; top: var(--qt-sticky-top, 116px); }
  .qt-formwrap .qt-form-actions { padding-left: calc(33.333% + .5rem); }
}

/* Header buttons: larger, airier type and no tactile base (it muddied the small label). */
.qt-header .qt-nav-cta .qt-btn { min-height: 40px; padding: 0 1.15rem; font-size: .95rem; font-weight: 600; letter-spacing: .015em; line-height: 1; box-shadow: none; }
.qt-header .qt-nav-cta .qt-btn:hover { transform: none; box-shadow: none; }
.qt-header .qt-nav-cta .qt-btn-primary { background: var(--qt-primary); color: #fff; }
.qt-header .qt-nav-cta .qt-btn-primary:hover { background: var(--qt-primary-hover); color: #fff; }


/* ---------- Stories wall (social feed) ---------- */
.qt-wall { display: flex; flex-direction: column; gap: 1rem; max-width: 680px; }
.qt-wallpost { background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); overflow: hidden; }
.qt-wall-head { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem .5rem; }
.qt-wall-av { flex: none; line-height: 0; }
.qt-wall-av .qt-av { border-radius: 50%; }
.qt-wall-who { flex: 1; min-width: 0; }
.qt-wall-name { margin: 0; font-size: .95rem; line-height: 1.3; color: var(--qt-ink-2); }
.qt-wall-name a { font-weight: 600; color: var(--qt-ink); text-decoration: none; }
.qt-wall-name a:hover { text-decoration: underline; }
.qt-wall-meta { margin: .1rem 0 0; font-size: .8rem; color: var(--qt-muted); }
.qt-wall-meta a { color: inherit; text-decoration: none; }
.qt-wall-meta a:hover { text-decoration: underline; }
.qt-wall-cat { flex: none; }
.qt-wall-text { padding: .2rem 1.1rem .85rem; }
.qt-wall-title { margin: 0 0 .3rem; font-family: var(--qt-font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.qt-wall-title a { color: var(--qt-ink); text-decoration: none; }
.qt-wall-text p { margin: 0; color: var(--qt-ink-2); line-height: 1.55; }
.qt-wall-more { font-weight: 600; color: var(--qt-primary); text-decoration: none; }
.qt-wall-media { position: relative; display: block; background: var(--qt-sunken); line-height: 0; }
.qt-wall-media img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.qt-wall-more-photos { position: absolute; left: .65rem; bottom: .65rem; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem .3rem .45rem; border-radius: var(--qt-pill); background: rgba(28,37,32,.72); color: #fff; font-weight: 600; font-size: .85rem; line-height: 1.2; }
.qt-wall-counts { display: flex; justify-content: space-between; align-items: center; min-height: 2.4rem; padding: .5rem 1.1rem; font-size: .85rem; color: var(--qt-muted); }
.qt-wall-counts > span { display: inline-flex; align-items: center; gap: .35rem; }
.qt-wall-heart { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--qt-accent-strong); color: var(--qt-on-accent); }
.qt-wall-heart svg { width: 12px; height: 12px; fill: currentColor; }
.qt-wall-counts a { color: inherit; text-decoration: none; }
.qt-wall-counts a:hover { text-decoration: underline; }
.qt-wall-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; margin: 0 .6rem; padding: .3rem 0 .45rem; border-top: 1px solid var(--qt-line); }
.qt-wall-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 40px; padding: 0 .5rem; border: 0; border-radius: var(--qt-r); background: none; color: var(--qt-ink-2); font: 600 .9rem var(--qt-font); text-decoration: none; cursor: pointer; }
.qt-wall-btn:hover, .qt-wall-btn:focus-visible { background: var(--qt-sunken); color: var(--qt-ink); }
.qt-wall-btn svg { width: 20px; height: 20px; }
.qt-wall-btn.is-on { color: var(--qt-accent-ink); }
.qt-wall-btn.is-on svg { fill: currentColor; }
/* Photo on the right, full card height; author + text + actions together on the left. Photo on top on phones. */
.qt-wall { max-width: 760px; }
.qt-wallpost.has-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%); }
.qt-wall-main { display: flex; flex-direction: column; min-width: 0; }
.qt-wallpost.has-media .qt-wall-actions { grid-column: 1 / -1; }
.qt-wallpost.has-media .qt-wall-media { position: relative; min-height: 190px; margin: .85rem .85rem .6rem 0; border-radius: var(--qt-r); overflow: hidden; }
.qt-wallpost.has-media .qt-wall-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
.qt-wall-media .qt-wall-cat { position: absolute; top: .65rem; right: .65rem; line-height: 0; }
.qt-wall-media .qt-wall-cat .qt-tbadge { box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.2); }
@media (max-width: 560px) {
	.qt-wallpost.has-media { grid-template-columns: 1fr; }
	.qt-wallpost.has-media .qt-wall-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; margin: .75rem .75rem 0; }
}
@media (max-width: 520px) { .qt-wall-btn span:not(.screen-reader-text) { font-size: .85rem; } }


/* ---------- One content width everywhere: same as the header and footer ---------- */
:root { --qt-max: 1320px; --qt-gutter: clamp(16px, 3vw, 32px); }
body.qt-site main.site-main { width: 100%; max-width: var(--qt-max); margin-left: auto; margin-right: auto; padding-left: var(--qt-gutter); padding-right: var(--qt-gutter); }
.qt-browse, .qt-stories, .qt-detail, .qt-formwrap, .qt-account, .qt-pet, .qt-member, .qt-manage, .qt-donate, .qt-hub { max-width: none; }

/* ---------- Listing details: at a glance / health & home / cost ---------- */
.qt-fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.qt-fact { display: flex; align-items: center; gap: .7rem; padding: .75rem .85rem; border-radius: var(--qt-r); background: var(--qt-surface); border: 1px solid var(--qt-line); }
.qt-fact-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-fact-ico svg { width: 18px; height: 18px; }
.qt-fact-text { display: flex; flex-direction: column; min-width: 0; }
.qt-fact-label { font-size: .8rem; color: var(--qt-muted); }
.qt-fact-val { font-weight: 600; color: var(--qt-ink); overflow-wrap: anywhere; }
.qt-fact-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.qt-fact-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.qt-fact-checks li { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.qt-fact-checks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; }
.qt-fact-checks .is-yes svg { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-fact-checks .is-no { color: var(--qt-muted); }
.qt-fact-checks .is-no svg { background: var(--qt-sunken); color: var(--qt-muted); }
.qt-fact-money { display: flex; align-items: center; gap: .55rem; margin: 0 0 .4rem; }
.qt-fact-money svg { color: var(--qt-accent-ink); }
.qt-fact-money strong { margin-left: auto; font-size: 1.15rem; color: var(--qt-ink); }

/* ---------- Category / topic badges ---------- */
.qt-tbadge { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tc, #44514A); color: #fff; vertical-align: middle; }
.qt-tbadge svg { width: 15px; height: 15px; }
.qt-tbadge--md { width: 32px; height: 32px; }
.qt-tbadge--md svg { width: 17px; height: 17px; }
.qt-tlabel { display: inline-flex; align-items: center; gap: .5rem; }
.qt-fcheck .qt-tbadge { width: 22px; height: 22px; }
.qt-fcheck .qt-tbadge svg { width: 13px; height: 13px; }
.qt-card-tbadge { position: absolute; top: .65rem; right: .65rem; z-index: 1; line-height: 0; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 6px rgba(0,0,0,.15); }

/* Filter lists are short: show them whole (no inner scrollbar). */
.qt-fgroup-body { max-height: none; overflow: visible; }


/* ---------- Colour-coded category / topic chips (filters) ---------- */
.qt-catchips { display: flex; flex-direction: row; flex-wrap: wrap; gap: .4rem; }
.qt-catchip { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: 0 .75rem 0 .3rem; border: 1.5px solid color-mix(in srgb, var(--tc) 35%, transparent); border-radius: var(--qt-pill); background: var(--qt-surface); color: var(--qt-ink); font-size: .86rem; font-weight: 500; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.qt-catchip input { position: absolute; opacity: 0; pointer-events: none; }
.qt-catchip-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tc); color: #fff; }
.qt-catchip-ico svg { width: 14px; height: 14px; }
.qt-catchip:hover { border-color: var(--tc); }
.qt-catchip:has(input:checked) { background: var(--tc); border-color: var(--tc); color: #fff; }
.qt-catchip:has(input:checked) .qt-catchip-ico { background: rgba(255,255,255,.22); }
.qt-catchip:has(input:focus-visible) { outline: 2px solid var(--tc); outline-offset: 2px; }

/* Category / topic icons: bigger glyphs, heavier strokes; solid shapes drawn as pure fills (a thick stroke on a
   filled heart rounds away the notch between the lobes and it reads as a teardrop). */
.qt-tbadge, .qt-catchip-ico { width: 28px; height: 28px; }
.qt-tbadge svg, .qt-catchip-ico svg { width: 18px; height: 18px; stroke-width: 2.6; }
.qt-tbadge--md { width: 34px; height: 34px; }
.qt-tbadge--md svg { width: 21px; height: 21px; }
.qt-catchip { min-height: 38px; padding-left: .3rem; }
.qt-tbadge svg path[d^="M19 14c"], .qt-catchip-ico svg path[d^="M19 14c"],
.qt-tbadge svg path[d^="M9 3h6v6"], .qt-catchip-ico svg path[d^="M9 3h6v6"],
.qt-tbadge svg path[d^="M12 22a7 7"], .qt-catchip-ico svg path[d^="M12 22a7 7"],
.qt-tbadge svg path[d^="M10 2.5c"], .qt-catchip-ico svg path[d^="M10 2.5c"],
.qt-tbadge svg path[d^="M19 13.5c"], .qt-catchip-ico svg path[d^="M19 13.5c"] { fill: currentColor; stroke: none; }


.qt-wall-btn.qt-saved-on, .qt-wall-btn[data-qt-save].is-on { color: var(--qt-primary); }
.qt-wall-btn[data-qt-save].is-on svg { fill: currentColor; }
@media (max-width: 420px) { .qt-wall-btn { gap: .3rem; padding: 0 .2rem; } .qt-wall-btn > span:not(.screen-reader-text):not(.qt-react-ico) { font-size: .8rem; } }

.qt-wall-more-photos svg { width: 15px; height: 15px; }

/* ---------- Reactions (Facebook-style) ---------- */
.qt-react { position: relative; display: inline-flex; }
.qt-react--wall { display: flex; }
.qt-react--wall .qt-react-btn { width: 100%; }
.qt-react-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.qt-react--mini .qt-react-btn { min-width: 32px; min-height: 32px; padding: 0 .3rem; border: 0; border-radius: 50%; background: none; color: var(--qt-ink-2); cursor: pointer; }
.qt-react-ico { display: inline-grid; place-items: center; line-height: 1; }
.qt-react-ico svg { width: 20px; height: 20px; }
/* Idle Like: 15px paw in a thin ring. */
.qt-react-ico > svg { box-sizing: content-box; width: 15px; height: 15px; padding: 4px; border: 1.5px solid currentColor; border-radius: 50%; }
.qt-react-btn.is-on .qt-react-ico > svg, .qt-react-btn:not(.is-on) .qt-react-ico .qt-react-emo { display: none; }
.qt-react-emo { font-size: 1.15rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.qt-react-btn.is-on { color: #C8102E; }
.qt-react-btn.is-care, .qt-react-btn.is-haha, .qt-react-btn.is-wow, .qt-react-btn.is-sad { color: #8A6D00; }
.qt-react-btn.is-like { color: var(--qt-primary); }
.qt-react-paw { display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--qt-primary); color: #fff; vertical-align: middle; }
.qt-react-paw svg { width: 68%; height: 68%; fill: currentColor; stroke: none; }
.qt-react-emojis .qt-react-emo .qt-react-paw { width: 100%; height: 100%; }
.qt-react-menu button .qt-react-paw { width: 1.1em; height: 1.1em; }
.qt-react-menu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30; display: flex; gap: .15rem; padding: .3rem .4rem; border-radius: 999px; background: var(--qt-surface); box-shadow: 0 6px 22px rgba(28,37,32,.18), 0 0 0 1px var(--qt-line); opacity: 0; visibility: hidden; transform: translateY(6px) scale(.96); transform-origin: bottom left; transition: opacity .15s, transform .15s, visibility 0s .15s; }
.qt-react-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover bridge */
.qt-react--wall .qt-react-menu { left: .4rem; }
.qt-react-menu button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .12s; }
.qt-react-menu button span { font-size: 1.75rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.qt-react-menu button:hover, .qt-react-menu button:focus-visible { transform: translateY(-4px) scale(1.25); outline: none; }
.qt-react.is-open .qt-react-menu, .qt-react:has(:focus-visible) .qt-react-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .qt-react:hover .qt-react-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s .45s, transform .15s .45s, visibility 0s .45s; } }
.qt-react-sum { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--qt-muted); }
.qt-react-emojis { display: inline-flex; }
.qt-react-emojis .qt-react-emo { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: -5px; border-radius: 50%; background: var(--qt-surface); box-shadow: 0 0 0 2px var(--qt-surface); font-size: .9rem; }
.qt-react-emojis .qt-react-emo:first-child { margin-left: 0; }
.qt-story-actions .qt-react-sum { margin-right: .4rem; }
@media (max-width: 420px) { .qt-react-menu button { width: 36px; height: 36px; } .qt-react-menu button span { font-size: 1.5rem; } }


/* ---------- Member profile (social style) ---------- */
.qt-prof-head { margin-bottom: 1.5rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); overflow: hidden; }
.qt-prof-cover { height: clamp(140px, 22vw, 240px); background:
  radial-gradient(circle at 12% 30%, rgba(125,186,24,.55) 0 7%, transparent 7.5%),
  radial-gradient(circle at 88% 70%, rgba(255,255,255,.12) 0 12%, transparent 12.5%),
  radial-gradient(circle at 70% 18%, rgba(38,171,216,.4) 0 4%, transparent 4.5%),
  linear-gradient(120deg, #2D6519 0%, #2E6B3A 55%, #1679A0 130%); }
.qt-prof-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: end; padding: 0 1.75rem; margin-top: -64px; }
.qt-prof-av { line-height: 0; }
.qt-prof-av .qt-av { width: 168px; height: 168px; border-radius: 50%; border: 5px solid var(--qt-surface); background: var(--qt-surface); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.qt-prof-info { padding-bottom: .4rem; min-width: 0; }
.qt-prof-info h1 { margin: 0; }
.qt-prof-id .qt-member-actions { padding-bottom: .6rem; }
.qt-prof-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1rem 1.75rem 0; padding: 0; list-style: none; color: var(--qt-muted); font-size: .92rem; }
.qt-prof-stats strong { color: var(--qt-ink); font-weight: 700; }
.qt-prof-tabs { display: flex; gap: .25rem; margin: .9rem 1.25rem 0; border-top: 1px solid var(--qt-line); overflow-x: auto; scrollbar-width: none; }
.qt-prof-tabs::-webkit-scrollbar { display: none; }
.qt-prof-tabs a { display: inline-flex; align-items: center; gap: .4rem; flex: none; padding: .85rem .8rem .75rem; border-bottom: 3px solid transparent; color: var(--qt-ink-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.qt-prof-tabs a:hover { color: var(--qt-ink); background: var(--qt-sunken); }
.qt-prof-tabs a.is-on { color: var(--qt-primary); border-bottom-color: var(--qt-primary); }
.qt-prof-count { padding: .05rem .45rem; border-radius: var(--qt-pill); background: var(--qt-sunken); color: var(--qt-muted); font-size: .78rem; font-weight: 600; }
.qt-prof-tabs a.is-on .qt-prof-count { background: color-mix(in srgb, var(--qt-primary) 12%, transparent); color: var(--qt-primary); }
.qt-prof-cols { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.qt-prof-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--qt-head-h, 88px) + 1rem); }
.qt-prof-card { padding: 1.1rem 1.2rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-prof-card h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.qt-prof-card .qt-member-bio { margin: 0 0 .75rem; }
.qt-prof-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.qt-prof-card-head a { color: var(--qt-primary); font-weight: 600; font-size: .88rem; text-decoration: none; }
.qt-prof-facts { display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; list-style: none; color: var(--qt-ink-2); font-size: .92rem; }
.qt-prof-facts li { display: flex; align-items: center; gap: .55rem; }
.qt-prof-facts .qt-ico { width: 18px; height: 18px; color: var(--qt-muted); }
.qt-prof-facts a { color: var(--qt-ink); font-weight: 600; text-decoration: none; }
.qt-prof-facts a:hover { color: var(--qt-primary); }
.qt-prof-pets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.qt-prof-pets a { display: flex; flex-direction: column; gap: .3rem; color: var(--qt-ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.qt-prof-pets img, .qt-prof-petph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--qt-r); background: var(--qt-sunken); }
.qt-prof-petph { display: grid; place-items: center; color: var(--qt-line-2); }
.qt-prof-main .qt-wall { max-width: none; }
@media (max-width: 900px) {
  .qt-prof-cols { grid-template-columns: 1fr; }
  .qt-prof-side { position: static; }
}
@media (max-width: 640px) {
  .qt-prof-id { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-top: -56px; padding: 0 1rem; gap: .5rem; }
  .qt-prof-av .qt-av { width: 120px !important; height: 120px !important; font-size: 50px !important; } /* initials avatars carry inline sizes */
  .qt-prof-info .qt-member-meta, .qt-prof-info .qt-badges { justify-content: center; }
  .qt-prof-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: .9rem .75rem 0; text-align: center; font-size: .74rem; }
  .qt-prof-stats li { display: flex; flex-direction: column; gap: .05rem; }
  .qt-prof-stats strong { font-size: 1.1rem; }
  .qt-prof-tabs { margin: .75rem .5rem 0; }
}


.qt-prof-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; border-radius: var(--qt-r); overflow: hidden; }
.qt-prof-photos a { display: block; aspect-ratio: 1; background: var(--qt-sunken); }
.qt-prof-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qt-prof-faces { display: flex; flex-wrap: wrap; gap: .4rem; }
.qt-prof-faces a { line-height: 0; }
.qt-prof-faces .qt-av { width: 40px; height: 40px; border-radius: 50%; }
.qt-prof-top { display: flex; gap: .7rem; align-items: center; color: var(--qt-ink); text-decoration: none; }
.qt-prof-top img, .qt-prof-top .qt-prof-top-ph { flex: none; width: 64px; height: 64px; border-radius: var(--qt-r); object-fit: cover; background: var(--qt-sunken); display: grid; place-items: center; }
.qt-prof-top span { display: flex; flex-direction: column; gap: .15rem; font-size: .82rem; color: var(--qt-muted); }
.qt-prof-top strong { font-size: .95rem; color: var(--qt-ink); line-height: 1.3; }
.qt-prof-top:hover strong { color: var(--qt-primary); }

.qt-saved-tabs { margin: 0 0 1.25rem; border-top: 0; border-bottom: 1px solid var(--qt-line); }

/* ---------- Single story page ---------- */
.qt-storypage { max-width: none; }
.qt-storypage-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.5rem; align-items: start; }
.qt-storypage-main { min-width: 0; padding: 0 0 .5rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-storypage-main > * { margin-left: clamp(1rem, 3vw, 2rem); margin-right: clamp(1rem, 3vw, 2rem); }
.qt-storypage-main > .qt-sp-actions { margin-left: clamp(.6rem, 2vw, 1.4rem); margin-right: clamp(.6rem, 2vw, 1.4rem); }
.qt-sp-head { padding-top: 1.1rem; }
.qt-sp-author { padding: 0 0 .9rem; }
.qt-sp-tool { display: inline-flex; align-items: center; gap: .35rem; flex: none; min-height: 36px; padding: 0 .7rem; border: 0; border-radius: var(--qt-r); background: none; color: var(--qt-muted); font: 600 .85rem var(--qt-font); text-decoration: none; cursor: pointer; }
.qt-sp-tool:hover { background: var(--qt-sunken); color: var(--qt-ink); }
.qt-sp-tool .qt-ico { width: 18px; height: 18px; }
.qt-sp-cat { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .8rem .2rem .2rem; border-radius: var(--qt-pill); background: color-mix(in srgb, var(--tc) 12%, transparent); color: var(--tc); font-weight: 700; font-size: .88rem; text-decoration: none; }
.qt-sp-title { margin: .7rem 0 1.1rem; font-family: var(--qt-font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; color: var(--qt-ink); }
.qt-sp-gallery { margin-bottom: 1.4rem; }
.qt-sp-gallery .qt-gallery-main { position: relative; border-radius: var(--qt-r); overflow: hidden; }
.qt-sp-text { max-width: 66ch; font-size: 1.14rem; line-height: 1.8; color: var(--qt-ink); }
.qt-sp-text p { margin: 0 0 1.1em; }
.qt-rstrip { margin-top: 1.4rem; padding: 1rem; border-radius: var(--qt-r); background: var(--qt-sunken); text-align: center; }
.qt-rstrip-q { margin: 0 0 .7rem; font-weight: 700; color: var(--qt-ink); }
.qt-rstrip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.qt-rstrip-btn { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 70px; padding: .55rem .5rem .45rem; border: 1.5px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); color: var(--qt-ink-2); font: 600 .8rem var(--qt-font); cursor: pointer; transition: transform .12s, border-color .12s; }
.qt-rstrip-btn:hover { transform: translateY(-2px); border-color: var(--qt-line-2); }
.qt-rstrip-btn.is-on { border-color: var(--qt-primary); background: color-mix(in srgb, var(--qt-primary) 8%, var(--qt-surface)); color: var(--qt-primary); }
.qt-rstrip-glyph { font-size: 1.7rem; line-height: 1.1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.qt-rstrip-n { min-height: 1em; font-size: .78rem; color: var(--qt-muted); }
.qt-rstrip-n:empty::before { content: "\00a0"; }
.qt-sp-counts { padding-left: 0; padding-right: 0; }
.qt-storypage .qt-comments { margin-top: 1.25rem; }
.qt-storypage-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--qt-head-h, 88px) + 1rem); }
.qt-sp-authorlink { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; color: var(--qt-ink); text-decoration: none; }
.qt-sp-authorlink .qt-av { border-radius: 50%; flex: none; }
.qt-sp-authorlink > span:not(.qt-av) { display: flex; flex-direction: column; gap: .1rem; font-size: .86rem; }
.qt-sp-authorlink strong { font-size: 1.05rem; }
.qt-sp-bio { margin: .6rem 0 0; color: var(--qt-ink-2); font-size: .9rem; }
.qt-sp-authoractions { display: flex; gap: .5rem; margin-top: .8rem; }
.qt-sp-authoractions .qt-btn { flex: 1; justify-content: center; }
.qt-minilist { display: flex; flex-direction: column; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.qt-minilist a { display: flex; align-items: center; gap: .7rem; padding: .4rem; margin: 0 -.4rem; border-radius: var(--qt-r); color: var(--qt-ink); text-decoration: none; }
.qt-minilist a:hover { background: var(--qt-sunken); }
.qt-minilist-thumb { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: var(--qt-r); overflow: hidden; background: var(--qt-sunken); }
.qt-minilist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qt-minilist-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; font-size: .8rem; color: var(--qt-muted); }
.qt-minilist-txt strong { font-size: .92rem; line-height: 1.3; color: var(--qt-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt-sp-share { justify-content: center; }
.qt-sp-related { margin-top: 2.5rem; }
@media (max-width: 960px) {
  .qt-storypage-cols { grid-template-columns: 1fr; }
  .qt-storypage-side { position: static; }
}
@media (max-width: 520px) { .qt-rstrip-btn { min-width: 0; flex: 1 1 28%; } .qt-sp-text { font-size: 1.06rem; } }


/* ---------- Account panel (avatar menu) ---------- */
#qt-acct { min-width: 260px; }
#qt-acct a { display: flex; align-items: center; gap: .65rem; white-space: nowrap; }
#qt-acct a > span:not(.qt-badge-count):not(.qt-av) { flex: 1; }
#qt-acct .qt-nav-ico { flex: none; color: var(--qt-muted); }
#qt-acct a:hover .qt-nav-ico { color: var(--qt-primary); }
#qt-acct .qt-badge-count { margin-left: auto; }
.qt-acct-head { margin-bottom: .3rem; padding-bottom: .3rem; border-bottom: 1px solid var(--qt-line); }
.qt-acct-head a { padding: .5rem .6rem; }
.qt-acct-head .qt-av { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.qt-acct-head a > span:not(.qt-av) { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.qt-acct-head strong { overflow: hidden; text-overflow: ellipsis; color: var(--qt-ink); font-size: .98rem; }
.qt-acct-head a > span:not(.qt-av) > span { color: var(--qt-primary); font-size: .82rem; font-weight: 600; }
.qt-acct-out { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--qt-line); }
@media (max-width: 1080px) {
  /* Phones and tablets: a full-width panel under the header, big tap targets. */
  .qt-account-menu .qt-sub#qt-acct { position: fixed; top: calc(var(--qt-head-h, 64px) + .4rem); left: .75rem; right: .75rem; min-width: 0; max-height: calc(100vh - var(--qt-head-h, 64px) - 1.5rem); overflow-y: auto; padding: .5rem; border-radius: var(--qt-r); z-index: 1003; }
  #qt-acct a { min-height: 48px; padding: .65rem .75rem; font-size: 1rem; }
  #qt-acct .qt-acct-head a { min-height: 0; }
}


/* Account panel: anchored to the header (its backdrop-filter makes it the containing block) with a dimmed, blurred page behind. */
@media (max-width: 1080px) {
  .qt-account-menu .qt-sub#qt-acct { top: calc(100% + .4rem); }
  html.qt-acct-open body::after { content: ""; position: fixed; inset: 0; z-index: 999; background: rgba(28, 37, 32, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: qt-fade .15s ease-out; }
  html.qt-acct-open { overflow: hidden; }
}
@keyframes qt-fade { from { opacity: 0; } }


/* ---------- Listing cards: one look per type ---------- */
.qt-card-sub { margin: 0; font-size: .86rem; color: var(--qt-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-tag--listonly { display: none; }
/* Marketplace: the price leads. */
.qt-card--item .qt-card-media { aspect-ratio: 1; }
.qt-card--item .qt-card-headline { font-family: var(--qt-font-display); font-size: 1.35rem; color: var(--qt-ink); }
.qt-card--item .qt-card-title { font-size: .95rem; color: var(--qt-ink); -webkit-line-clamp: 1; }
.qt-cond { font-weight: 600; }
.qt-cond--like_new { color: var(--qt-primary); }
.qt-cond--well_loved { color: var(--qt-accent-ink); }
/* Adoption: the pet's face and name lead. */
.qt-card--adoption .qt-card-media { aspect-ratio: 4 / 5; }
.qt-card--adoption .qt-ca-name { font-family: var(--qt-font-display); font-size: 1.3rem; font-weight: 700; color: var(--qt-ink); -webkit-line-clamp: 1; }
.qt-ca-breed { color: var(--qt-primary); font-weight: 600; }
.qt-ca-sex, .qt-ca-age { position: relative; z-index: 0; font-family: var(--qt-font); font-size: .95rem; font-weight: 600; color: var(--qt-muted); }
.qt-ca-age { margin-left: .15rem; color: var(--qt-ink-2); }
.qt-ca-facts { margin: 0; font-size: .86rem; color: var(--qt-ink-2); }
.qt-ca-good { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .82rem; color: var(--qt-primary); font-weight: 600; }
.qt-ca-good .qt-ico { width: 15px; height: 15px; flex: none; }
.qt-ca-fee { position: absolute; right: .65rem; bottom: .65rem; padding: .25rem .6rem; border-radius: var(--qt-pill); background: rgba(255,255,255,.95); color: var(--qt-ink); font-size: .8rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
/* Lost & Found: urgency band, then where. */
.qt-card--lost_found { border-top: 0 !important; }
.qt-lf-band { display: flex; align-items: center; gap: .5rem; height: 2.3rem; padding: 0 .9rem; font-size: .85rem; font-weight: 600; }
.qt-lf-band strong { font-family: var(--qt-font-display); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.qt-lf-band--lost { background: #C8102E; color: #fff; }
.qt-lf-band--found { background: var(--qt-primary); color: #fff; }
.qt-lf-reward { margin-left: auto; padding: .1rem .5rem; border-radius: var(--qt-pill); background: #fff; color: #C8102E; font-size: .78rem; font-weight: 700; }
.qt-card--lost_found .qt-clf-name { font-family: var(--qt-font-display); font-size: 1.2rem; font-weight: 700; color: var(--qt-ink); -webkit-line-clamp: 1; }
.qt-clf-seen { display: flex; align-items: flex-start; gap: .4rem; margin: .1rem 0 0; font-size: .88rem; font-weight: 600; color: var(--qt-ink); }
.qt-clf-seen .qt-ico { width: 16px; height: 16px; flex: none; margin-top: .15rem; color: #C8102E; }
.qt-card--lost_found:has(.qt-lf-band--found) .qt-clf-seen .qt-ico { color: var(--qt-primary); }
.qt-clf-seen span { display: flex; flex-direction: column; min-width: 0; }
.qt-clf-seen small { font-size: .72rem; font-weight: 600; color: var(--qt-muted); text-transform: uppercase; letter-spacing: .05em; }
.qt-card--lost_found .qt-save { top: calc(2.3rem + .55rem); }
.qt-grid--list .qt-card--lost_found .qt-save { top: 50%; }
.qt-card.is-closed .qt-lf-band { filter: grayscale(1); opacity: .7; }
/* List view keeps the same essentials on one row. */
.qt-grid--list .qt-lf-band, .qt-grid--list .qt-ca-good, .qt-grid--list .qt-ca-fee, .qt-grid--list .qt-ca-facts { display: none; }
.qt-grid--list .qt-tag--listonly { display: inline-flex; }
.qt-grid--list .qt-card-sub { grid-area: chips; }
.qt-grid--list .qt-clf-seen { grid-area: head; font-size: .82rem; }
.qt-grid--list .qt-card--item .qt-card-media, .qt-grid--list .qt-card--adoption .qt-card-media { aspect-ratio: auto; }


/* ---------- Listing pages: one layout per type ---------- */
.qt-btn-cta { min-height: 50px; font-size: 1rem; }
.qt-detail-name { margin: 0; font-family: var(--qt-font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; color: var(--qt-ink); }
.qt-detail-name .qt-ca-sex, .qt-detail-name .qt-ca-age { font-size: 1.1rem; }
.qt-detail-sub { margin: -.35rem 0 0; font-weight: 600; color: var(--qt-ink-2); }
.qt-detail-prose { font-size: 1.05rem; line-height: 1.75; color: var(--qt-ink); }
.qt-lister-link { color: inherit; text-decoration: none; }
.qt-related { margin-top: 2.5rem; }
/* Lost & Found */
.qt-lf-hero { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.25rem; padding: 1rem 1.4rem; border-radius: var(--qt-r); color: #fff; }
.qt-lf-hero--lost { background: #C8102E; }
.qt-lf-hero--found { background: var(--qt-primary); }
.qt-lf-hero.is-closed { background: var(--qt-ink-2); }
.qt-lf-hero-txt { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.qt-lf-hero-txt strong { font-family: var(--qt-font-display); font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .04em; }
.qt-lf-hero-txt span { font-weight: 600; opacity: .92; }
.qt-lf-hero-reward { margin-left: auto; padding: .35rem .9rem; border-radius: var(--qt-pill); background: #fff; color: #C8102E; font-weight: 800; }
.qt-lf-id { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-lf-id li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .85rem; font-size: .9rem; }
.qt-lf-id li + li { border-top: 1px solid var(--qt-line); }
.qt-lf-id span { color: var(--qt-muted); }
.qt-lf-id strong { text-align: right; color: var(--qt-ink); }
.qt-lf-seen { display: flex; gap: .7rem; padding: .85rem; border-radius: var(--qt-r); background: var(--qt-sunken); }
.qt-lf-seen > .qt-ico { flex: none; width: 22px; height: 22px; color: #C8102E; }
.qt-detail--lost_found:has(.qt-lf-hero--found) .qt-lf-seen > .qt-ico { color: var(--qt-primary); }
.qt-lf-seen > div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.qt-lf-seen small { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--qt-muted); }
.qt-lf-seen strong { font-size: 1.05rem; color: var(--qt-ink); }
.qt-lf-seen span { font-size: .85rem; color: var(--qt-ink-2); }
.qt-lf-seen a { margin-top: .2rem; font-size: .85rem; font-weight: 600; color: var(--qt-primary); }
.qt-lf-share { min-height: 46px; }
.qt-lf-print { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; background: none; color: var(--qt-ink-2); font: 600 .88rem var(--qt-font); cursor: pointer; }
.qt-lf-print .qt-ico { width: 16px; height: 16px; }
@media print {
  .qt-header, .qt-footer, .qt-back, .qt-summary-actions, .qt-btn, .qt-lf-print, .qt-safety, .qt-related, .qt-owner, .qt-gallery-thumbs, #wpadminbar, .qt-summary-lister .qt-badges { display: none !important; }
  .qt-detail-grid { display: block !important; }
  .qt-summary { position: static !important; border: 0 !important; box-shadow: none !important; }
  .qt-lf-hero, .qt-lf-hero-reward { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Adoption */
.qt-ad-fee { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .7rem .85rem; border-radius: var(--qt-r); background: var(--qt-sunken); color: var(--qt-ink-2); }
.qt-ad-fee .qt-ico { color: var(--qt-accent-ink); }
.qt-ad-fee strong { color: var(--qt-ink); }
.qt-fact-checks--grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.qt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; counter-reset: qtstep; }
.qt-steps li { counter-increment: qtstep; display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1rem 1rem 3.2rem; position: relative; border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); font-size: .9rem; color: var(--qt-ink-2); }
.qt-steps li::before { content: counter(qtstep); position: absolute; left: 1rem; top: 1rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--qt-primary); color: #fff; font-weight: 700; font-size: .85rem; }
.qt-steps strong { color: var(--qt-ink); font-size: .98rem; }
/* Marketplace */
.qt-mk-title { color: var(--qt-ink); font-size: 1.25rem; }
.qt-mk-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.qt-mk-tags span { padding: .2rem .65rem; border-radius: var(--qt-pill); background: var(--qt-sunken); font-size: .82rem; font-weight: 600; color: var(--qt-ink-2); }
.qt-mk-tags .qt-cond-pill.qt-cond--like_new { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-mk-tags .qt-cond-pill.qt-cond--well_loved { background: var(--qt-amber-soft, #FDEBD9); color: var(--qt-accent-ink); }
.qt-mk-deliv { display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: .75rem .85rem; list-style: none; border: 1px solid var(--qt-line); border-radius: var(--qt-r); font-size: .9rem; font-weight: 600; color: var(--qt-ink); }
.qt-mk-deliv li { display: flex; align-items: center; gap: .55rem; }
.qt-mk-deliv .qt-ico { width: 18px; height: 18px; color: var(--qt-primary); }


/* ---------- News feed (signed-in home) ---------- */
.qt-feed { max-width: none; }
.qt-feed-cols { display: grid; grid-template-columns: 230px minmax(0, 680px) 300px; justify-content: center; gap: 1.5rem; align-items: start; }
.qt-feed-left, .qt-feed-right { position: sticky; top: calc(var(--qt-head-h, 88px) + 1rem); display: flex; flex-direction: column; gap: 1rem; }
.qt-feed-nav { display: flex; flex-direction: column; gap: 2px; }
.qt-feed-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--qt-r); color: var(--qt-ink-2); font-weight: 600; text-decoration: none; }
.qt-feed-nav a:hover { background: var(--qt-sunken); color: var(--qt-ink); }
.qt-feed-nav .qt-ico { width: 20px; height: 20px; color: var(--qt-primary); flex: none; }
.qt-feed-me { margin-bottom: .3rem; }
.qt-feed-me .qt-av { border-radius: 50%; flex: none; }
.qt-feed-me strong { color: var(--qt-ink); }
.qt-feed-compose { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; padding: 1rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-feed-compose > .qt-av { border-radius: 50%; }
.qt-feed-prompt { display: flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: var(--qt-pill); background: var(--qt-sunken); color: var(--qt-muted); text-decoration: none; }
.qt-feed-prompt:hover { background: var(--qt-line); color: var(--qt-ink-2); }
.qt-feed-quick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; padding-top: .6rem; border-top: 1px solid var(--qt-line); }
.qt-feed-quick a { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; border-radius: var(--qt-r); color: var(--qt-ink-2); font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.qt-feed-quick a:hover { background: var(--qt-sunken); }
.qt-feed-quick .qt-ico { width: 18px; height: 18px; color: var(--qt-primary); }
.qt-feed-tabs { margin: .75rem 0 1rem; border-top: 0; border-bottom: 1px solid var(--qt-line); }
.qt-feed-hint { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.qt-feed-list { display: flex; flex-direction: column; gap: 1rem; }
.qt-feed-item { position: relative; }
.qt-feed-item:not(.qt-feed-item--story) { padding-bottom: .9rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-feed-item:not(.qt-feed-item--story) > .qt-grid, .qt-feed-item:not(.qt-feed-item--story) > .qt-threads { margin: 0 1rem; }
.qt-feed-item .qt-grid--list .qt-card { box-shadow: none; }
.qt-feed-why { position: absolute; top: .7rem; right: .8rem; z-index: 3; display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--qt-pill); background: var(--qt-primary-soft); color: var(--qt-primary); font-size: .74rem; font-weight: 700; }
.qt-feed-why .qt-ico { width: 13px; height: 13px; }
.qt-feed-why--hot { background: #FDEBD9; color: var(--qt-accent-ink); }
.qt-feed-item--story .qt-feed-why { right: auto; left: auto; top: -.55rem; right: 1rem; }
.qt-feed-more { margin-top: 1rem; }
.qt-feed-people { display: flex; flex-direction: column; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.qt-feed-people li { display: flex; align-items: center; gap: .6rem; }
.qt-feed-people a { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; color: var(--qt-ink); text-decoration: none; }
.qt-feed-people .qt-av { border-radius: 50%; flex: none; }
.qt-feed-people a > span:not(.qt-av) { display: flex; flex-direction: column; min-width: 0; font-size: .8rem; color: var(--qt-muted); }
.qt-feed-people strong { font-size: .92rem; color: var(--qt-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1240px) { .qt-feed-cols { grid-template-columns: minmax(0, 680px) 300px; } .qt-feed-left { display: none; } }
@media (max-width: 960px) { .qt-feed-cols { grid-template-columns: minmax(0, 1fr); } .qt-feed-right { position: static; order: 2; } }
@media (max-width: 520px) { .qt-feed-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qt-feed-compose { padding: .8rem; } }


/* ---------- Feed v2: follow icons, two-column post bodies, filters under the shortcuts ---------- */
.qt-feed-headtools { display: flex; align-items: center; gap: .45rem; flex: none; margin-left: auto; }
.qt-followico { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1.5px solid var(--qt-line-2); border-radius: 50%; background: var(--qt-surface); color: var(--qt-ink-2); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.qt-followico .qt-ico { width: 17px; height: 17px; }
.qt-followico:hover { border-color: var(--qt-primary); color: var(--qt-primary); }
.qt-followico.is-on { border-color: var(--qt-primary); background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-feed-hot { display: inline-flex; align-items: center; gap: .2rem; margin-left: .35rem; color: var(--qt-accent-ink); font-weight: 600; }
.qt-feed-hot .qt-ico { width: 12px; height: 12px; }
.qt-feed .qt-wall-actions { grid-template-columns: repeat(3, 1fr); }
.qt-feed .qt-wall-btn[data-qt-save] { display: none; }
.qt-feed-post .qt-wall-head .qt-tag { position: static; box-shadow: none; }
.qt-fcard { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 1rem; margin: .1rem 1.1rem .4rem; color: inherit; text-decoration: none; }
.qt-fcard--text { grid-template-columns: 1fr; }
.qt-fcard-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--qt-r); overflow: hidden; background: var(--qt-sunken); }
.qt-fcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qt-fcard-media .qt-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--qt-line-2); }
.qt-fcard-media .qt-tag { position: absolute; top: .55rem; left: .55rem; }
.qt-fcard-seen { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; display: flex; align-items: flex-start; gap: .35rem; padding: .4rem .55rem; border-radius: var(--qt-r); background: rgba(255,255,255,.95); color: var(--qt-ink); font-size: .82rem; font-weight: 700; line-height: 1.25; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.qt-fcard-seen .qt-ico { flex: none; width: 15px; height: 15px; margin-top: .1rem; color: #C8102E; }
.qt-fcard-seen small { display: block; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--qt-muted); }
.qt-fcard-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; align-self: center; }
.qt-fcard-title { font-family: var(--qt-font-display); font-size: 1.2rem; line-height: 1.2; color: var(--qt-ink); }
.qt-fcard--item .qt-fcard-title { font-family: var(--qt-font); font-size: 1rem; }
.qt-fcard-price { font-family: var(--qt-font-display); font-size: 1.4rem; color: var(--qt-ink); }
.qt-fcard-sub { font-size: .9rem; color: var(--qt-ink-2); }
.qt-fcard-desc { font-size: .9rem; color: var(--qt-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qt-fcard-loc { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--qt-ink-2); }
.qt-fcard-loc .qt-ico { width: 14px; height: 14px; }
.qt-fcard-when { font-size: .8rem; color: var(--qt-muted); }
.qt-fcard:hover .qt-fcard-title { color: var(--qt-primary); }
.qt-feed-item--story .qt-wallpost, .qt-feed-post { border-color: var(--qt-line) !important; }
.qt-feed-item:not(.qt-feed-item--story) { padding: 0; background: none; border: 0; }
.qt-feed-nav hr { width: 100%; margin: .45rem 0; border: 0; border-top: 1px solid var(--qt-line); }
.qt-feed-nav .qt-badge-count { margin-left: auto; }
.qt-feed-left { max-height: calc(100vh - var(--qt-head-h, 88px) - 2rem); }
.qt-feed-filterbox { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: .9rem .2rem .5rem; border-top: 1px solid var(--qt-line); }
.qt-feed-filterbox::-webkit-scrollbar { display: none; }
.qt-feed-filters { display: flex; flex-direction: column; gap: .8rem; }
.qt-feed-filters-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 .5rem; }
.qt-feed-filters-head h2 { margin: 0; }
.qt-feed-filters-head a { font-size: .85rem; font-weight: 600; color: var(--qt-primary); text-decoration: none; }
.qt-feed-kinds { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; border: 0; }
.qt-feed-kinds legend { padding: 0 .5rem .3rem; font-size: .78rem; font-weight: 700; color: var(--qt-muted); text-transform: uppercase; letter-spacing: .05em; }
.qt-feed-kind { position: relative; display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: var(--qt-r); color: var(--qt-ink-2); font-weight: 600; cursor: pointer; }
.qt-feed-kind input { position: absolute; opacity: 0; pointer-events: none; }
.qt-feed-kind .qt-ico { width: 18px; height: 18px; color: var(--qt-muted); }
.qt-feed-kind:hover { background: var(--qt-sunken); }
.qt-feed-kind:has(input:checked) { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-feed-kind:has(input:checked) .qt-ico { color: var(--qt-primary); }
.qt-feed-kind:has(input:checked)::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--qt-primary); }
.qt-feed-kind:has(input:focus-visible) { outline: 2px solid var(--qt-primary); outline-offset: 1px; }
.qt-feed-filters .qt-dd { padding: 0 .3rem; }
.qt-feed-mfilters { display: none; margin-bottom: 1rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r); background: var(--qt-surface); }
.qt-feed-mfilters > summary { display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.qt-feed-mfilters > summary::-webkit-details-marker { display: none; }
.qt-feed-mfilters > .qt-feed-filters { padding: 0 .6rem .8rem; }
@media (max-width: 1240px) { .qt-feed-mfilters { display: block; } }
@media (max-width: 560px) { .qt-fcard { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: .7rem; margin: .1rem .8rem .4rem; } .qt-fcard-title { font-size: 1.05rem; } .qt-fcard-desc { -webkit-line-clamp: 2; } }

/* ---------- App menu (all pages) ---------- */
.qt-appmenu-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--qt-sunken); color: var(--qt-ink); cursor: pointer; }
.qt-appmenu-btn .qt-ico { width: 18px; height: 18px; }
.qt-appmenu-btn[aria-expanded="true"] { background: var(--qt-primary-soft); color: var(--qt-primary); }
#qt-appmenu { width: min(680px, calc(100vw - 2rem)); max-height: calc(100vh - var(--qt-head-h, 64px) - 1.5rem); overflow-y: auto; padding: 1rem; }
.qt-appmenu-title { margin: 0 0 .75rem; font-family: var(--qt-font-display); font-size: 1.4rem; color: var(--qt-ink); }
.qt-appmenu-cols { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; align-items: start; }
.qt-appmenu-main, .qt-appmenu-create { padding: .5rem; border-radius: var(--qt-r); background: var(--qt-bg, #FAF7F2); }
.qt-appmenu section + section { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--qt-line); }
.qt-appmenu h3 { margin: .3rem .5rem .2rem; font-size: .95rem; color: var(--qt-ink); }
.qt-appmenu ul { margin: 0; padding: 0; list-style: none; }
#qt-appmenu a { display: flex; align-items: center; gap: .7rem; padding: .5rem; white-space: normal; }
.qt-appmenu-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--qt-surface); color: var(--qt-primary); box-shadow: 0 0 0 1px var(--qt-line); }
.qt-appmenu-ico .qt-nav-ico { width: 18px; height: 18px; }
#qt-appmenu a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
#qt-appmenu strong { font-size: .92rem; color: var(--qt-ink); }
#qt-appmenu small { font-size: .78rem; font-weight: 400; color: var(--qt-muted); line-height: 1.3; }
@media (max-width: 1080px) {
  .qt-appmenu .qt-sub#qt-appmenu { position: fixed; top: calc(100% + .4rem); left: .75rem; right: .75rem; width: auto; display: block; opacity: 0; visibility: hidden; border: 1px solid var(--qt-line); box-shadow: var(--qt-shadow-lift); z-index: 1003; }
  .qt-appmenu [aria-expanded="true"] + .qt-sub#qt-appmenu { opacity: 1; visibility: visible; }
}
@media (max-width: 640px) { .qt-appmenu-cols { grid-template-columns: 1fr; } .qt-appmenu-create { order: -1; } }


/* ---------- Header v3: logo + search | icon tabs (post types) | tools ---------- */
.qt-header-in { gap: 1rem; }
.qt-header-search { position: relative; flex: 0 1 260px; min-width: 190px; }
.qt-sitesearch { position: relative; }
.qt-sitesearch-field { display: flex; align-items: center; gap: .5rem; height: 42px; padding: 0 .9rem; border-radius: var(--qt-pill); background: var(--qt-sunken); color: var(--qt-muted); }
.qt-sitesearch-field .qt-ico { width: 18px; height: 18px; flex: none; }
.qt-sitesearch-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--qt-ink); font: 500 .95rem var(--qt-font); outline: none; }
.qt-sitesearch-field:focus-within { box-shadow: 0 0 0 2px var(--qt-primary); background: var(--qt-surface); }
.qt-sitesearch-open { display: none; }
.qt-suggest { position: absolute; top: calc(100% + 6px); left: 0; width: max(100%, 340px); z-index: 1005; padding: .4rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); box-shadow: var(--qt-shadow-lift); }
.qt-suggest-item { display: flex; align-items: center; gap: .65rem; padding: .45rem .5rem; border-radius: var(--qt-r); color: var(--qt-ink); text-decoration: none; }
.qt-suggest-item:hover, .qt-suggest-item:focus { background: var(--qt-sunken); outline: none; }
.qt-suggest-img { flex: none; width: 40px; height: 40px; border-radius: var(--qt-r); overflow: hidden; background: var(--qt-sunken); }
.qt-suggest-img.is-round { border-radius: 50%; }
.qt-suggest-img img { width: 100%; height: 100%; object-fit: cover; }
.qt-suggest-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.qt-suggest-item strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-suggest-item small { font-size: .78rem; color: var(--qt-muted); }
.qt-suggest-all { display: block; margin-top: .2rem; padding: .55rem .5rem; border-top: 1px solid var(--qt-line); color: var(--qt-primary); font-weight: 600; font-size: .9rem; text-decoration: none; }
.qt-htabs { flex: 1; display: flex; justify-content: center; align-self: stretch; gap: .25rem; }
.qt-htab { position: relative; display: grid; place-items: center; width: clamp(48px, 6vw, 96px); color: var(--qt-ink-2); border-radius: var(--qt-r); text-decoration: none; }
.qt-htab .qt-nav-ico { width: 26px; height: 26px; }
.qt-htab:hover { background: var(--qt-sunken); }
.qt-htab.is-on { color: var(--qt-primary); background: none; }
.qt-htab.is-on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--qt-primary); }
.qt-tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qt-header-tools { margin-left: 0; }
.qt-nav-toggle[hidden] { display: none !important; }
@media (max-width: 1240px) { .qt-header-search { flex-basis: 200px; } .qt-header .qt-nav-cta .qt-btn-primary[href*="share"] { display: none; } }
@media (max-width: 1080px) {
  /* Phones and tablets: post-type tabs become a bottom bar; search opens from an icon. */
  .qt-htabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; height: calc(58px + env(safe-area-inset-bottom)); padding: 0 .25rem env(safe-area-inset-bottom); justify-content: space-around; gap: 0; background: var(--qt-surface); border-top: 1px solid var(--qt-line); box-shadow: 0 -4px 16px -12px rgba(28,37,32,.35); }
  .qt-htab { flex: 1; width: auto; border-radius: 0; }
  .qt-htab .qt-nav-ico { width: 24px; height: 24px; }
  .qt-htab.is-on::after { top: 0; bottom: auto; border-radius: 0 0 3px 3px; }
  body.qt-site { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .qt-header-search { flex: 0 0 auto; position: static; }
  .qt-sitesearch { display: none; }
  .qt-sitesearch-open { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--qt-sunken); color: var(--qt-ink); cursor: pointer; }
  .qt-sitesearch-open .qt-ico { width: 18px; height: 18px; }
  html.qt-searching .qt-sitesearch { display: block; position: absolute; left: .6rem; right: .6rem; top: 50%; transform: translateY(-50%); z-index: 1006; }
  html.qt-searching .qt-sitesearch-field { background: var(--qt-surface); box-shadow: 0 0 0 2px var(--qt-primary), var(--qt-shadow-lift); }
  .qt-suggest { width: 100%; }
  .qt-header-tools { margin-left: auto; }
}

/* ---------- Inline follow next to names ---------- */
.qt-followico { display: inline-flex; align-items: center; gap: .2rem; width: auto; height: auto; margin-left: .3rem; padding: 0 .1rem; border: 0; border-radius: var(--qt-r); background: none; color: var(--qt-primary); font: 700 .88rem var(--qt-font); vertical-align: baseline; cursor: pointer; }
.qt-followico::before { content: "·"; margin-right: .25rem; color: var(--qt-muted); font-weight: 400; }
.qt-followico .qt-ico { width: 15px; height: 15px; }
.qt-followico:hover { background: none; text-decoration: underline; color: var(--qt-primary); }
.qt-followico.is-on { background: none; color: var(--qt-primary); }
.qt-followico.is-on .qt-ico { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--qt-primary-soft); }
.qt-feed-people .qt-followico::before { content: none; }

/* ---------- Full-height sidebars (feed + browse), Facebook style ---------- */
.qt-side { position: sticky; top: var(--qt-head-h, 68px); align-self: start; height: calc(100vh - var(--qt-head-h, 68px)); max-height: none; overflow-y: auto; scrollbar-width: none; padding: 1rem .25rem 2rem; display: flex; flex-direction: column; gap: 0; }
.qt-side::-webkit-scrollbar { display: none; }
.qt-side-section { margin-top: 1rem; padding-top: 1rem; border-top: 6px solid var(--qt-sunken); border-radius: 0; }
.qt-side-h { margin: 0 .5rem .5rem; font-family: var(--qt-font-display); font-size: 1.15rem; color: var(--qt-ink); }
.qt-side-title h1 { margin: 0 .5rem .75rem; font-family: var(--qt-font-display); font-size: 1.6rem; color: var(--qt-ink); }
.qt-side-search { margin: 0 0 .75rem; }
.qt-side-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: .75rem; }
.qt-side-nav a { display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem; border-radius: var(--qt-r); color: var(--qt-ink); font-weight: 600; text-decoration: none; }
.qt-side-nav a:hover { background: var(--qt-sunken); }
.qt-side-nav a.is-on { background: var(--qt-primary-soft); }
.qt-side-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--qt-sunken); color: var(--qt-ink); }
.qt-side-nav a.is-on .qt-side-ico { background: var(--qt-primary); color: #fff; }
.qt-side-ico .qt-ico { width: 18px; height: 18px; }
.qt-side-loc { display: flex; flex-direction: column; gap: .5rem; padding: 0 .25rem; }
.qt-side-loc .qt-search, .qt-side-search { flex: none; min-width: 0; width: 100%; }
.qt-side-locrow { display: flex; gap: .4rem; }
.qt-side-locrow select { flex: 1; }
.qt-feed-left.qt-side { padding-top: 1rem; }
.qt-feed-left .qt-feed-filterbox { flex: none; overflow: visible; padding: 1rem .2rem 0; border-top: 6px solid var(--qt-sunken); }
.qt-side .qt-dd-panel { position: static; max-height: none; overflow: visible; box-shadow: none; margin-top: .35rem; }
.qt-feed-kind { padding: .4rem .5rem; }
.qt-feed-kind .qt-ico { box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 50%; background: var(--qt-sunken); color: var(--qt-ink); }
.qt-feed-kind:has(input:checked) { background: none; color: var(--qt-ink); }
.qt-feed-kind:has(input:checked) .qt-ico { background: var(--qt-primary); color: #fff; }
.qt-feed-kind:has(input:checked)::after { content: none; }
/* Browse pages: sidebar column + results. */
.qt-browse-form { display: block; }
.qt-browse-form .qt-browse-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.qt-browse-side { padding-right: .5rem; border-right: 1px solid var(--qt-line); }
@media (min-width: 961px) { .qt-browse-side .qt-filters { position: static; top: auto; } } /* phones keep the slide-in filter drawer */
.qt-browse-side .qt-filters-head { display: flex; justify-content: space-between; align-items: baseline; }
.qt-browse-side .qt-filters-head .qt-side-h { margin-bottom: .25rem; }
@media (max-width: 960px) {
  .qt-browse-form .qt-browse-body { grid-template-columns: 1fr; gap: 1rem; }
  .qt-browse-side { position: static; height: auto; overflow: visible; padding: 0; border-right: 0; }
  .qt-browse-side > .qt-side-section:not(.qt-filters) { display: none; }
  .qt-side-nav, .qt-side-top > .qt-btn { display: none; }
  .qt-side-title h1 { font-size: 1.4rem; }
}


/* ---------- Compact post footer (Facebook style) ---------- */
.qt-wall-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: .15rem; margin: 0 .6rem; padding: .35rem 0 .45rem; border-top: 1px solid var(--qt-line); }
.qt-bar-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 .7rem; border: 0; border-radius: var(--qt-r); background: none; color: var(--qt-ink-2); font: 700 .88rem var(--qt-font); text-decoration: none; cursor: pointer; }
.qt-bar-btn:hover, .qt-bar-btn:focus-visible { background: var(--qt-sunken); color: var(--qt-ink); }
.qt-bar-btn .qt-ico { width: 20px; height: 20px; }
.qt-bar-btn[data-qt-save].is-on { color: var(--qt-primary); }
.qt-bar-btn[data-qt-save].is-on .qt-ico { fill: currentColor; }
.qt-bar-n:empty { display: none; }
.qt-wall-bar .qt-react-ico > svg { width: 13px; height: 13px; padding: 3px; }
.qt-wall-bar .qt-react-emo { font-size: 1.15rem; }
.qt-wall-bar .qt-react-sum { margin-left: auto; padding-right: .35rem; }
.qt-wall-bar .qt-react-sum .qt-react-n { display: none; }
.qt-wall-bar .qt-react-menu { left: 0; }
.qt-feed .qt-wall-bar .qt-bar-btn[data-qt-save] { display: none; }


/* ---------- Header v4: full width, tabs centred on the page, roomier ---------- */
.qt-header-in { position: relative; max-width: none; height: 64px; gap: .75rem; padding: 0 16px; }
.qt-header-search { flex: 0 0 auto; width: 260px; min-width: 0; }
.qt-htabs { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); flex: none; height: auto; gap: .35rem; border: 0; }
.qt-htab { width: 104px; margin: 6px 0; border-radius: var(--qt-r); }
.qt-htab .qt-nav-ico { width: 27px; height: 27px; stroke-width: 1.85; }
.qt-htab.is-on::after { left: 0; right: 0; bottom: -6px; }
.qt-header-tools { margin-left: auto; gap: .5rem; }
.qt-header .qt-bell { gap: .5rem; }
@media (max-width: 1400px) { .qt-htab { width: 84px; } .qt-header-search { width: 230px; } }
@media (max-width: 1240px) { .qt-htab { width: 66px; } .qt-header-search { width: 200px; } }
@media (max-width: 1080px) {
  .qt-htabs { left: 0; right: 0; top: auto; bottom: 0; transform: none; gap: 0; border-top: 1px solid var(--qt-line); }
  .qt-htab { width: auto; margin: 0; }
  .qt-htab.is-on::after { top: 0; bottom: auto; }
  .qt-header-search { width: auto; }
}


/* ---------- Header v5: contained width, three columns that never overlap ---------- */
.qt-header-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); max-width: 1320px; height: 64px; gap: 1rem; padding: 0 clamp(16px, 3vw, 32px); }
.qt-header-in > .qt-logo { grid-column: 1; grid-row: 1; justify-self: start; }
.qt-header-search { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 232px; width: auto; max-width: 240px; min-width: 0; }
.qt-htabs { position: static; transform: none; grid-column: 2; grid-row: 1; align-self: stretch; height: auto; }
.qt-htab { width: 88px; }
.qt-header-tools { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
.qt-header-search .qt-sitesearch-field input[type="search"], .qt-header-search .qt-sitesearch-field input[type="search"]:focus { height: 100%; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; outline: none; }
@media (max-width: 1400px) { .qt-htab { width: 62px; } .qt-header-search { max-width: 210px; } }
@media (max-width: 1240px) { .qt-htab { width: 50px; } .qt-header-search { max-width: 180px; margin-left: 222px; } }
@media (max-width: 1080px) {
  .qt-header-in { display: flex; }
  .qt-header-search { margin-left: auto; max-width: none; }
  .qt-header-tools { margin-left: 0; }
  /* Post-type tabs: fixed bottom bar (the contained-header rules above must not pull them back into the header). */
  .qt-header .qt-htabs { position: fixed; left: 0; right: 0; top: auto; bottom: 0; transform: none; z-index: 1000; display: flex; justify-content: space-around; gap: 0; height: calc(58px + env(safe-area-inset-bottom)); padding: 0 .25rem env(safe-area-inset-bottom); background: var(--qt-surface); border-top: 1px solid var(--qt-line); box-shadow: 0 -4px 16px -12px rgba(28,37,32,.35); }
  .qt-header .qt-htab { flex: 1; width: auto; margin: 0; border-radius: 0; }
  .qt-header .qt-htab.is-on::after { top: 0; bottom: auto; left: 18%; right: 18%; border-radius: 0 0 3px 3px; }
}
@media (max-width: 1240px) { .qt-feed-left.qt-side { display: none; } }
@media (max-width: 1080px) {
  /* A backdrop-filter makes the header the containing block for position:fixed children, which pinned the
     bottom tab bar (and the menus) to the header. Solid header on phones; panels sit under it by --qt-head-h. */
  .qt-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--qt-bg, #FAF7F2); }
  .qt-account-menu .qt-sub#qt-acct, .qt-appmenu .qt-sub#qt-appmenu { top: calc(var(--qt-head-h, 64px) + .4rem); }
}
/* Tooltips (top nav, menu button). */
[data-tip] { position: relative; }
@media (hover: hover) and (min-width: 1081px) {
  [data-tip]::before { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); z-index: 1010; transform: translate(-50%, -4px); padding: .3rem .6rem; border-radius: var(--qt-r); background: var(--qt-ink); color: #fff; font: 600 .78rem var(--qt-font); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s .25s, transform .12s .25s; }
  [data-tip]:hover::before, [data-tip]:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Follow line + LOST pill placement ---------- */
.qt-wall-follow { margin: .1rem 0 0; line-height: 1.2; }
.qt-wall-follow .qt-followico { margin-left: 0; padding: 0; }
.qt-wall-follow .qt-followico::before { content: none; }
.qt-fcard-kind { position: static; align-self: flex-start; margin-bottom: .1rem; box-shadow: none; }

/* ---------- Reaction summary tooltip ---------- */
.qt-react-sum { position: relative; cursor: default; outline: none; }
.qt-react-tip { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; display: none; flex-direction: column; gap: .2rem; min-width: 150px; padding: .55rem .7rem; border-radius: var(--qt-r); background: var(--qt-ink); color: #fff; font-size: .82rem; font-weight: 500; box-shadow: var(--qt-shadow-lift); }
.qt-react-sum:hover .qt-react-tip, .qt-react-sum:focus .qt-react-tip { display: flex; }
.qt-react-tip-row { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.qt-react-tip-row strong { margin-left: auto; padding-left: .8rem; }
.qt-react-tip-g { display: inline-grid; place-items: center; width: 20px; font-size: 1rem; }
.qt-react-tip-g .qt-react-paw { width: 18px; height: 18px; }
.qt-wall-bar .qt-react-sum .qt-react-n { display: inline; font-size: .85rem; font-weight: 600; color: var(--qt-muted); }


/* ---------- Header icon buttons: same round, centred buttons ---------- */
.qt-header .qt-bell-btn, .qt-header .qt-bell-msg, .qt-header .qt-appmenu-btn, .qt-header .qt-sitesearch-open { box-sizing: border-box; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; margin: 0; line-height: 0; border-radius: 50%; background: var(--qt-sunken); color: var(--qt-ink); }
.qt-header .qt-bell-btn .qt-ico, .qt-header .qt-bell-msg .qt-ico { display: block; width: 20px; height: 20px; margin: 0; }
.qt-header .qt-bell-btn:hover, .qt-header .qt-bell-msg:hover, .qt-header .qt-bell-btn[aria-expanded="true"] { background: var(--qt-line); }
.qt-header .qt-bell-count { top: -3px; right: -3px; }
.qt-header .qt-bell { gap: .45rem; }
@media (max-width: 480px) {
  .qt-header-in { gap: .4rem; padding: 0 10px; }
  .qt-header .qt-logo img, .qt-header .qt-logo svg { max-height: 30px; width: auto; }
  .qt-header-tools, .qt-header .qt-bell { gap: .3rem; }
  .qt-header .qt-bell-btn, .qt-header .qt-bell-msg, .qt-header .qt-appmenu-btn, .qt-header .qt-sitesearch-open { width: 36px; height: 36px; }
  .qt-account-btn .qt-av { width: 32px; height: 32px; }
}


/* ---------- Search: an icon in the header tools; opens as a bar over the header (all sizes) ---------- */
.qt-header .qt-header-search { position: static; flex: none; width: auto; max-width: none; min-width: 0; margin: 0; grid-column: auto; grid-row: auto; }
.qt-header .qt-sitesearch { display: none; }
.qt-header .qt-sitesearch-open { display: grid; }
html.qt-searching .qt-header .qt-sitesearch { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100% - 1.5rem)); z-index: 1006; }
html.qt-searching .qt-header .qt-sitesearch-field { height: 48px; background: var(--qt-surface); box-shadow: 0 0 0 2px var(--qt-primary), var(--qt-shadow-lift); }
html.qt-searching .qt-header .qt-suggest { width: 100%; }
html.qt-searching body::after { content: ""; position: fixed; inset: 0; z-index: 999; background: rgba(28, 37, 32, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: qt-fade .15s ease-out; }


/* Active tab: colour + underline only (filling open icon paths drew a line across the house). */
.qt-htab.is-on .qt-nav-ico { stroke-width: 2.2; }
/* Avatar sits at the top of the author block. */
.qt-wall-head { align-items: flex-start; }
.qt-wall-av, .qt-wall-av:hover, .qt-feed-me, .qt-feed-people a, .qt-sp-authorlink { text-decoration: none !important; }
/* Lost & found in the feed on phones: photo full width with the last-seen tag, details below. */
@media (max-width: 560px) {
  .qt-fcard--lost_found { grid-template-columns: 1fr; gap: .7rem; }
  .qt-fcard--lost_found .qt-fcard-media { aspect-ratio: 16 / 10; }
  .qt-fcard--lost_found .qt-fcard-seen { left: .6rem; right: auto; max-width: calc(100% - 1.2rem); font-size: .88rem; }
  .qt-fcard--lost_found .qt-fcard-body { align-self: start; }
}


/* Narrow phones: keep the whole logo visible. */
@media (max-width: 400px) { .qt-header .qt-logo { flex: 0 1 auto; min-width: 0; } .qt-header .qt-logo img, .qt-header .qt-logo svg { max-width: 112px; height: auto; } }

.qt-btn.is-busy { position: relative; padding-left: 2.6rem; opacity: .9; cursor: progress; }
.qt-btn.is-busy::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: qt-spin .7s linear infinite; }
@keyframes qt-spin { to { transform: rotate(360deg); } }


/* ---------- Pet profile (same frame as member profiles) ---------- */
.qt-petprofile .qt-pet-cover { background:
  radial-gradient(circle at 85% 30%, rgba(255,255,255,.14) 0 10%, transparent 10.5%),
  radial-gradient(circle at 15% 70%, rgba(125,186,24,.5) 0 6%, transparent 6.5%),
  linear-gradient(120deg, #1679A0 -20%, #2E6B3A 55%, #2D6519 100%); }
.qt-pet-av { line-height: 0; }
.qt-pet-av img, .qt-pet-av .qt-ph { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 5px solid var(--qt-surface); background: var(--qt-sunken); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.qt-pet-owner { display: flex; align-items: center; gap: .5rem; margin: .45rem 0 0; font-size: .9rem; }
.qt-pet-owner a { display: inline-flex; align-items: center; gap: .4rem; color: var(--qt-ink-2); text-decoration: none; }
.qt-pet-owner .qt-av { border-radius: 50%; }
.qt-pet-owner strong { color: var(--qt-ink); }
.qt-pet-owner .qt-followico::before { content: "·"; }
.qt-pet-bday { color: var(--qt-accent-ink); font-weight: 600; }
.qt-pet-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem; }
.qt-pet-photos a { display: block; aspect-ratio: 1; border-radius: var(--qt-r); overflow: hidden; background: var(--qt-sunken); }
.qt-pet-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.qt-pet-photos a:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .qt-pet-av img, .qt-pet-av .qt-ph { width: 120px; height: 120px; } .qt-pet-owner { justify-content: center; } }

/* Signed-out header buttons never wrap; phones keep just "Sign in". */
.qt-header .qt-nav-cta { display: flex; flex-wrap: nowrap; gap: .4rem; white-space: nowrap; }
@media (max-width: 1080px) { .qt-header .qt-nav-cta { flex-direction: row; } .qt-header .qt-nav-cta .qt-btn { width: auto; min-height: 38px; } }
@media (max-width: 560px) { .qt-header .qt-nav-cta .qt-btn-primary { display: none; } }


/* Stories / Hub on the Facebook-style side layout. */
.qt-stories .qt-results > .qt-tabs, .qt-hub .qt-results > .qt-tabs { margin-top: 0; }
.qt-hub .qt-results > .qt-hub-compose { margin-bottom: 1rem; }
.qt-thread-row-stats .qt-react-sum { font-size: .82rem; }
.qt-thread-row-stats .qt-react-emojis .qt-react-emo { width: 20px; height: 20px; font-size: .8rem; }


/* ---------- Colour icons (two-tone): everything except the main nav tabs ---------- */
.qt-i-tales { --ic: #6E4B9E; }
.qt-i-t-tales { --ic: #6E4B9E; }
.qt-i-book { --ic: #6E4B9E; }
.qt-i-pen { --ic: #6E4B9E; }
.qt-i-feather { --ic: #6E4B9E; }
.qt-i-adopt { --ic: #D6336C; }
.qt-i-t-adopt { --ic: #D6336C; }
.qt-i-heart { --ic: #E03131; }
.qt-i-lostpaw { --ic: #C8102E; }
.qt-i-t-lost { --ic: #C8102E; }
.qt-i-flag { --ic: #C8102E; }
.qt-i-store { --ic: #1C8DB7; }
.qt-i-t-store { --ic: #1C8DB7; }
.qt-i-tag { --ic: #1C8DB7; }
.qt-i-bag { --ic: #1C8DB7; }
.qt-i-coin { --ic: #B08900; }
.qt-i-gift { --ic: #D6336C; }
.qt-i-hub { --ic: #0E7C86; }
.qt-i-t-hub { --ic: #0E7C86; }
.qt-i-user { --ic: #2E7D4F; }
.qt-i-user-plus { --ic: #2E7D4F; }
.qt-i-user-check { --ic: #2E7D4F; }
.qt-i-paw { --ic: #2D6519; }
.qt-i-chat { --ic: #2F6E95; }
.qt-i-mail { --ic: #2F6E95; }
.qt-i-share { --ic: #2F6E95; }
.qt-i-reply { --ic: #2F6E95; }
.qt-i-bell { --ic: #1679A0; }
.qt-i-bellplus { --ic: #1679A0; }
.qt-i-megaphone { --ic: #9C3D54; }
.qt-i-bookmark { --ic: #1679A0; }
.qt-i-pin { --ic: #C92A2A; }
.qt-i-locate { --ic: #C92A2A; }
.qt-i-map { --ic: #2F6E95; }
.qt-i-compass { --ic: #0E7C86; }
.qt-i-home { --ic: #2D6519; }
.qt-i-truck { --ic: #2F6E95; }
.qt-i-calendar { --ic: #7048E8; }
.qt-i-cake { --ic: #D6336C; }
.qt-i-photos { --ic: #0E7C86; }
.qt-i-camera { --ic: #0E7C86; }
.qt-i-palette { --ic: #AE3EC9; }
.qt-i-ruler { --ic: #5F6B66; }
.qt-i-box { --ic: #2F6E95; }
.qt-i-hash { --ic: #5F6B66; }
.qt-i-search { --ic: #2F6E95; }
.qt-i-sliders { --ic: #5F6B66; }
.qt-i-grid { --ic: #5F6B66; }
.qt-i-list { --ic: #5F6B66; }
.qt-i-check { --ic: #2E7D4F; }
.qt-i-x { --ic: #868E96; }
.qt-i-gear { --ic: #495057; }
.qt-i-shield { --ic: #495057; }
.qt-i-lock { --ic: #495057; }
.qt-i-logout { --ic: #868E96; }
.qt-i-info { --ic: #2F6E95; }
.qt-i-phone { --ic: #2E7D4F; }
.qt-i-news { --ic: #495057; }
.qt-i-bulb { --ic: #E0A100; }
.qt-i-plus { --ic: #2E7D4F; }
.qt-i-edit { --ic: #2F6E95; }
.qt-i-trash { --ic: #C92A2A; }
.qt-i-sparkle { --ic: #B83E76; }
.qt-i-leaf { --ic: #2E7D4F; }
.qt-i-smile { --ic: #1C8DB7; }
.qt-i-sun { --ic: #E0A100; }
.qt-i-cross { --ic: #C92A2A; }
.qt-i-droplet { --ic: #5B4CA8; }
.qt-i-lifebuoy { --ic: #0E7C86; }
.qt-i-target { --ic: #3F7F7A; }
.qt-i-coffee { --ic: #6E4B9E; }
.qt-i-help { --ic: #2F6E95; }
.qt-ico[class*="qt-i-"], .qt-nav-ico[class*="qt-i-"] { color: var(--ic, currentColor); }
/* Tiles: a soft tint of the icon's own colour behind it. */
.qt-side-ico, .qt-appmenu-ico, .qt-fact-ico { background: transparent !important; box-shadow: none !important; }
.qt-side-ico > svg, .qt-appmenu-ico > svg, .qt-fact-ico > svg, .qt-feed-nav a > svg, .qt-feed-kind > svg, #qt-acct a > svg, .qt-account-tab > svg, .qt-prof-facts li > svg, .qt-feed-quick a > svg {
  box-sizing: content-box; padding: 7px; border-radius: 50%; background: color-mix(in srgb, var(--ic, currentColor) 14%, transparent); opacity: 1 !important;
}
.qt-side-ico, .qt-appmenu-ico { width: auto !important; height: auto !important; }
.qt-feed-quick a > svg, .qt-prof-facts li > svg { padding: 5px; }
/* Selected: solid colour, white glyph. */
.qt-side-nav a.is-on .qt-side-ico > svg, .qt-feed-kind:has(input:checked) > svg, .qt-account-tab.is-on > svg { background: var(--ic, currentColor); color: #fff; }
.qt-side-nav a.is-on .qt-side-ico { background: transparent; }
/* Keep the plain inherited colour where an icon sits on a coloured fill or is part of the main nav / header tools. */
.qt-htabs .qt-nav-ico, .qt-btn-primary .qt-ico, .qt-btn-primary .qt-nav-ico, .qt-btn-dark .qt-ico, .qt-tag .qt-ico, .qt-tbadge .qt-ico, .qt-catchip-ico .qt-ico,
.qt-react-paw .qt-ico, .qt-ph .qt-ico, .qt-prof-petph .qt-ico, .qt-wall-more-photos .qt-ico, .qt-photocount .qt-ico, .qt-lf-band .qt-ico, .qt-lf-hero .qt-ico,
.qt-bell-btn .qt-ico, .qt-bell-msg .qt-ico, .qt-appmenu-btn .qt-ico, .qt-sitesearch-open .qt-ico, .qt-sitesearch-field .qt-ico, .qt-react-btn.is-on .qt-ico,
.qt-badge-count .qt-ico, .qt-followico.is-on .qt-ico, .qt-save.is-on .qt-ico, .qt-catchip:has(input:checked) .qt-ico { color: inherit; }
.qt-account-tab.is-on > svg { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }

/* Hoss Round Wide is only for h1 / h2 (site-wide, Elementor headings included). */
h1, h2, .qt-h1, .qt-h2 { font-family: var(--qt-font-h) !important; }
body, .qt-site { font-family: var(--qt-font); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .qt-browse-body { grid-template-columns: 1fr; }
  .qt-account { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .qt-account-nav { position: static; }
  .qt-account-nav nav { flex-direction: row; overflow-x: auto; gap: .3rem; }
  .qt-account-tab { flex: none; }
  .qt-account-out { margin-top: 0; }
  .qt-member-head { grid-template-columns: auto minmax(0, 1fr); }
  .qt-member-actions { grid-column: 1 / -1; }
  .qt-filters {
    position: fixed; inset: 0 auto 0 0; z-index: 9999; width: min(340px, 88vw); padding: 1.25rem;
    background: var(--qt-surface); box-shadow: var(--qt-shadow-lift); overflow-y: auto;
    transform: translateX(-105%); transition: transform .25s;
  }
  .qt-filters.is-open { transform: none; }
  .qt-filters-close, .qt-filters-open { display: inline-flex; }
  .qt-detail-grid { grid-template-columns: 1fr; grid-template-areas: "gallery" "summary" "main"; }
  .qt-summary { position: static; }
}
@media (max-width: 640px) {
  .qt-auth { padding: 1.25rem; margin: 1rem auto; }
  .qt-member-head { grid-template-columns: 1fr; padding: 1.25rem; }
  .qt-member-head > .qt-av { width: 80px; height: 80px; }
  .qt-pet-head { grid-template-columns: 1fr; }
  .qt-pet-photo { max-width: 240px; }
  .qt-grid--stories { grid-template-columns: 1fr; }
  .qt-hide-sm { display: none; }
  .qt-comment-input { grid-template-columns: 1fr; }
  .qt-bar-row { flex-wrap: wrap; border-radius: var(--qt-r); }
  .qt-search { flex-basis: 100%; }
  .qt-search + .qt-search { border-left: 0; border-top: 1px solid var(--qt-line); }
  .qt-bar-row .qt-btn-dark { flex: 1; }
  .qt-sort span { display: none; }
  .qt-grid--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .qt-grid--grid .qt-card-body { padding: .65rem .7rem .55rem; }
  .qt-grid--grid .qt-card-headline { font-size: 1.05rem; }
  .qt-grid--grid .qt-card-foot { display: none; }
  .qt-grid--grid .qt-chips .qt-chip:nth-child(n+3) { display: none; }
  .qt-grid--list .qt-card { grid-template-columns: 104px minmax(0, 1fr); }
  .qt-grid--list .qt-card-body { grid-template-columns: 1fr; grid-template-areas: "head" "title" "chips" "meta"; padding-right: 3.25rem; }
  .qt-grid--list .qt-card-headline { text-align: left; }
  .qt-fields-2 { grid-template-columns: 1fr; }
  .qt-fs { padding: 1.1rem; }
  .qt-summary-headline { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .qt *, .qt *::before, .qt *::after { transition: none !important; }
}
.qt-comments-empty { margin-bottom: .9rem; }
.qt-comments-empty h2 { margin-bottom: .2rem; }
.qt-comments-empty p { margin: 0; color: var(--qt-muted); }


/* ---------- Colour rows (0.41): each home row is a tinted band that sits on the one above ---------- */
.qt-band { --band: var(--qt-bg); --tone: var(--qt-primary); position: relative; z-index: 1; background: var(--band); }
.qt-band:not(.qt-band--hero):not(.qt-band--slim) { box-shadow: 0 -16px 30px -20px rgba(28, 37, 32, .35); }
.qt-band--hero { --band: radial-gradient(1100px 420px at 85% 0%, #D6EEF8 0%, rgba(255, 226, 207, 0) 70%), radial-gradient(900px 420px at 0% 100%, #DCE8DF 0%, rgba(220, 232, 223, 0) 70%), #FAF7F2; }
.qt-band--sage  { --band: #E6F0DC; }
.qt-band--green { --band: #2D6519; --tone: #1679A0; }
.qt-band--tales { --band: #F0EAF8; --tone: #6E4B9E; }
.qt-band--store { --band: #E3F3FA; --tone: #14739A; }
.qt-band--adopt { --band: #FBE6EE; --tone: #B8235A; }
.qt-band--lost  { --band: #FBE3E6; --tone: #B00E28; }
.qt-band--hub   { --band: #DFF0F1; --tone: #0B6A73; }
.qt-band--slim:has(.elementor-shortcode:empty):not(:has(.elementor-shortcode:not(:empty))) { display: none; }
.qt-band .qt-strip, .qt-band .qt-impact { margin: 0; }
.qt-band .qt-section-head { margin-bottom: 1.1rem; }

/* Section heads: a white icon tile in the row's colour + a pill link. */
.qt-strip-title { display: flex; align-items: center; gap: .7rem; }
.qt-strip-ico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--qt-r); background: #fff; box-shadow: 0 6px 14px -8px rgba(28, 37, 32, .4); }
.qt-strip-ico svg { width: 24px; height: 24px; }
.qt-band .qt-section-head .qt-link { padding: .45rem .95rem; border-radius: var(--qt-pill); background: #fff; color: var(--tone); font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px -8px rgba(28, 37, 32, .45); transition: background .15s, color .15s; }
.qt-band .qt-section-head .qt-link:hover { background: var(--tone); color: #fff; }

/* Cards lift off the coloured rows. */
.qt-band .qt-card, .qt-band .qt-story-card, .qt-band .qt-threads { border-color: transparent; box-shadow: 0 12px 26px -16px rgba(28, 37, 32, .38), 0 1px 2px rgba(28, 37, 32, .06); }
.qt-band .qt-card:hover, .qt-band .qt-story-card:hover { border-color: var(--tone); }

/* "Ways to make a difference": a colour per card. */
.qt-el-card.qt-tone-tales  { --tone: #6E4B9E; --tint: #F0EAF8; }
.qt-el-card.qt-tone-store  { --tone: #1C8DB7; --tint: #E3F3FA; }
.qt-el-card.qt-tone-adopt  { --tone: #D6336C; --tint: #FBE6EE; }
.qt-el-card.qt-tone-planet { --tone: #2E7D4F; --tint: #DCEFE2; }
.qt-el-card[class*="qt-tone-"] { border: 0; border-top: 4px solid var(--tone); box-shadow: 0 12px 26px -16px rgba(28, 37, 32, .38); }
.qt-el-card[class*="qt-tone-"] .elementor-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: var(--qt-r); background: var(--tint); color: var(--tone); fill: var(--tone); font-size: 30px; }
.qt-el-card[class*="qt-tone-"] .elementor-icon svg { width: 30px; height: 30px; fill: var(--tone); }
.qt-el-card[class*="qt-tone-"]:hover { border-color: var(--tone); }

/* Impact: the one dark row. */
.qt-band--green .qt-h2, .qt-band--green h2 { color: #fff; }
.qt-band--green .qt-impact-tile { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.qt-band--green .qt-impact-tile:hover { border-color: var(--qt-accent); background: rgba(255, 255, 255, .11); color: #fff; }
.qt-band--green .qt-impact-num { color: var(--qt-accent); font-size: clamp(2rem, 3.2vw, 2.7rem); }
.qt-band--green .qt-impact-label { color: rgba(255, 255, 255, .85); }

/* Closing call to action: deep green panel, orange button. */
.qt-band--cta .qt-el-band { background-color: var(--qt-primary); }
.qt-band--cta .qt-el-band .elementor-heading-title, .qt-band--cta .qt-el-band .elementor-widget-text-editor { color: #fff !important; }
.qt-band--cta .qt-el-band { background-image: none; }

@media (max-width: 767px) {
  .qt-strip-ico { width: 38px; height: 38px; }
  .qt-strip-ico svg { width: 21px; height: 21px; }
  .qt-band .qt-section-head .qt-link { padding: .35rem .75rem; font-size: .9rem; }
}


/* 0.41.1: strips fill their row (no empty fifth column); lost & found row in alert yellow. */
@media (min-width: 1025px) { .qt-strip-row.qt-grid--grid, .qt-strip-row.qt-grid--stories { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 1024px) { .qt-strip-row.qt-grid--grid, .qt-strip-row.qt-grid--stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qt-band--lost { --band: #FFF1C9; --tone: #B00E28; }

/* 0.41.2: hero keeps its single big card; the closing panel goes orange so it doesn't merge into the green footer. */
.qt-band--hero .qt-strip-row.qt-grid--stories, .qt-band--hero .qt-strip-row.qt-grid--grid { grid-template-columns: minmax(0, 1fr); }
.qt-band--cta .qt-el-band { background: linear-gradient(120deg, #1679A0 0%, #26ABD8 100%); }
.qt-band--cta .qt-el-band .elementor-heading-title, .qt-band--cta .qt-el-band .elementor-widget-text-editor { color: var(--qt-on-accent) !important; }
.qt-band--cta .qt-el-band .elementor-widget-button:not(.qt-el-btn-ghost) .elementor-button { background: var(--qt-primary) !important; color: #fff !important; }
.qt-band--cta { padding-bottom: 32px !important; }

/* 0.41.3: phones get two listing cards per line and two tales, so home rows stay short. */
@media (max-width: 640px) {
  .qt-band .qt-strip-row.qt-grid--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .qt-band:not(.qt-band--hero) .qt-strip--story .qt-strip-row > :nth-child(n+3) { display: none; }
  .qt-band { padding-top: 28px !important; padding-bottom: 28px !important; }
  .qt-band--slim { padding: 0 !important; }
}


/* 0.41.4: invite is its own row (members only); members skip the join panel; less dead space above the footer. */
/* a band hides only when every shortcode in it rendered nothing (e.g. Impact switched off); one empty widget beside real content must not hide the band */
.qt-band:has(.elementor-shortcode:empty):not(:has(.elementor-shortcode:not(:empty))) { display: none; }
body.logged-in .qt-band--cta { display: none; }
.qt-band--invite { --band: var(--qt-bg); }
.qt-band--invite .qt-invite { background: linear-gradient(120deg, #1679A0 0%, #26ABD8 100%); box-shadow: 0 14px 30px -18px rgba(20, 115, 154, .55); }
.qt-band--invite .qt-invite h2, .qt-band--invite .qt-invite .qt-h2, .qt-band--invite .qt-invite-text p { color: var(--qt-on-accent); }
.qt-band--invite .qt-invite-box .qt-input { border-color: transparent; }
.qt-band--invite .qt-invite-count { color: var(--qt-on-accent); }
body.home .qt-footer-gap { flex-basis: 2.5rem; }


/* ---------- 0.42: member pages wear their section colour ---------- */
body.qt-sec { --page: #EEF2EE; --tone: var(--qt-primary); --tint: #DCE8DF; background: var(--page); }
body.qt-sec-home  { --page: #EDF2EE; --tone: #2D6519; --tint: #D7E5DA; }
body.qt-sec-tales { --page: #F3EEFA; --tone: #6E4B9E; --tint: #E3D8F2; }
body.qt-sec-store { --page: #EEF7FB; --tone: #14739A; --tint: #CDE9F5; }
body.qt-sec-adopt { --page: #FCEEF3; --tone: #B8235A; --tint: #F8D3E0; }
body.qt-sec-lost  { --page: #FFF3F3; --tone: #B00E28; --tint: #F9D3D6; }
body.qt-sec-hub   { --page: #E8F4F5; --tone: #0B6A73; --tint: #C9E6E8; }
body.qt-sec .qt-header { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px -14px rgba(28, 37, 32, .45); }
body.qt-sec .site-main { padding-top: 20px; }
body.qt-sec .qt-footer-gap { flex-basis: 3rem; }

/* Every white panel lifts off the tinted page. */
body.qt-sec :is(.qt-card, .qt-story-card, .qt-wallpost, .qt-feed-compose, .qt-hub-compose, .qt-prof-card, .qt-res-card, .qt-threads, .qt-gate, .qt-rail-card, .qt-feed-right > *, .qt-pet-card, .qt-acct-card, .qt-panel) {
  border-color: transparent;
  box-shadow: 0 10px 24px -16px rgba(28, 37, 32, .4), 0 1px 2px rgba(28, 37, 32, .06);
}
body.qt-sec :is(.qt-card, .qt-story-card):hover { border-color: var(--tone); box-shadow: 0 16px 30px -16px rgba(28, 37, 32, .45); }

/* Sidebars: a white panel with the section colour along the top. */
@media (min-width: 961px) { body.qt-sec .qt-side { background: #fff; border-radius: var(--qt-r-lg); border-top: 4px solid var(--tone); box-shadow: 0 10px 24px -16px rgba(28, 37, 32, .4); padding: 1rem 1rem 1.1rem; } }
body.qt-sec .qt-side h1, body.qt-sec .qt-side .qt-h1, body.qt-sec .qt-side .qt-h2 { color: var(--tone); }
body.qt-sec .qt-side [aria-current="page"], body.qt-sec .qt-side .is-on { background: var(--tint); color: var(--qt-ink); }
body.qt-sec .qt-side input[type="search"], body.qt-sec .qt-side .qt-search { background: var(--page); }

/* Tabs, counts and the primary action pick up the colour. */
body.qt-sec .qt-tabs .is-on, body.qt-sec .qt-tabs [aria-selected="true"], body.qt-sec .qt-tabs [aria-current="page"] { color: var(--tone); border-color: var(--tone); }
body.qt-sec .qt-feed-compose .qt-feed-compose-input, body.qt-sec .qt-hub-compose .qt-input { background: var(--page); }
body.qt-sec .qt-feed-tip, body.qt-sec .qt-note { background: #fff; border-left: 4px solid var(--tone); }

/* 0.42.1: side panels hug their content; feed posts carry their type's colour along the top. */
.qt-feed-item { --ft: var(--qt-primary); }
.qt-feed-item--story { --ft: #6E4B9E; }
.qt-feed-item--item { --ft: #1C8DB7; }
.qt-feed-item--adoption { --ft: #D6336C; }
.qt-feed-item--lost_found { --ft: #C8102E; }
.qt-feed-item--thread { --ft: #0E7C86; }
body.qt-sec .qt-feed-item .qt-wallpost { border-top: 4px solid var(--ft); }


/* 0.42.2: Stories / Hub get a right rail on wide screens instead of empty space. */
.qt-railwrap > .qt-feed-right { display: none; }
@media (min-width: 1180px) {
  .qt-railwrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.5rem; align-items: start; }
  .qt-railwrap > .qt-feed-right { display: flex; }
  .qt-railwrap .qt-browse-form .qt-browse-body { grid-template-columns: 270px minmax(0, 1fr); gap: 1.5rem; }
  .qt-railwrap .qt-wall { max-width: none; }
}


/* ---------- 0.43 ---------- */
/* Sign-in: breathing room above the code link. */
.qt-auth-switch { margin-top: 1rem; }

/* Compact header once scrolled: shorter bar, icon-only logo. */
.qt-header-in { transition: height .2s ease; }
.qt-logo-icon { display: none; width: 40px; height: 40px; border-radius: var(--qt-r); }
.qt-header.is-scrolled .qt-header-in { height: 54px; }
.qt-header.is-scrolled .qt-logo-img, .qt-header.is-scrolled .qt-wordmark { display: none; }
.qt-header.is-scrolled .qt-logo-icon { display: block; }
.qt-header.is-scrolled .qt-htab { margin-top: 3px; margin-bottom: 3px; }
@media (max-width: 520px) { .qt-header.is-scrolled .qt-header-in { height: 52px; } .qt-logo-icon { width: 34px; height: 34px; } }

/* One sidebar width on every page. */
@media (min-width: 961px) {
  .qt-browse-form .qt-browse-body, .qt-railwrap .qt-browse-form .qt-browse-body { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (min-width: 1241px) { .qt-feed-cols { grid-template-columns: 280px minmax(0, 680px) 300px; } }

/* Sidebars run the full height under the header and out to the left edge; accent line on the right. */
@media (min-width: 961px) {
  body.qt-sec .qt-side {
    position: sticky; top: var(--qt-head-h, 68px); align-self: start;
    height: calc(100vh - var(--qt-head-h, 68px)); max-height: none;
    margin-top: -20px; padding: 1.75rem 1.25rem 2rem;
    overflow-y: auto; scrollbar-width: none;
    background: #fff; border: 0; border-right: 3px solid var(--tone); border-radius: 0;
    box-shadow: -280px 0 0 #fff, -560px 0 0 #fff, -840px 0 0 #fff, -1120px 0 0 #fff, -1400px 0 0 #fff, -1680px 0 0 #fff, -1960px 0 0 #fff, -2240px 0 0 #fff;
  }
  body.qt-sec .qt-side::-webkit-scrollbar { display: none; }
  body.qt-sec .qt-feed-left.qt-side { top: var(--qt-head-h, 68px); }
}

/* 0.43.1: listing pages: photo + details sit together on one white sheet instead of floating on the colour. */
body.qt-sec .qt-detail-grid > .qt-gallery, body.qt-sec .qt-detail-main { background: #fff; padding: 1.25rem; border-radius: var(--qt-r-lg); box-shadow: 0 10px 24px -16px rgba(28, 37, 32, .4), 0 1px 2px rgba(28, 37, 32, .06); }
body.qt-sec .qt-detail-main { margin-top: 1rem; }
body.qt-sec .qt-detail-main .qt-section:first-child, body.qt-sec .qt-detail-main > :first-child { margin-top: 0; }
@media (min-width: 961px) {
  body.qt-sec .qt-detail-grid { row-gap: 0; }
  body.qt-sec .qt-detail-grid > .qt-gallery { padding-bottom: .25rem; border-radius: var(--qt-r-lg) var(--qt-r-lg) 0 0; clip-path: inset(-40px -40px 0 -40px); }
  body.qt-sec .qt-detail-main { margin-top: 0; padding-top: 1rem; border-radius: 0 0 var(--qt-r-lg) var(--qt-r-lg); clip-path: inset(0 -40px -40px -40px); }
}
body.qt-sec .qt-detail-main :is(.qt-fact, .qt-facts > *, .qt-steps > li) { background: #fff; border: 1px solid var(--tint); }
.qt-related--empty .qt-empty-state { background: #fff; border-radius: var(--qt-r-lg); padding: 2rem 1.5rem; box-shadow: 0 10px 24px -16px rgba(28, 37, 32, .4); }
.qt-related--empty .qt-alert-note { margin: .75rem 0 0; font-weight: 600; color: var(--qt-primary); }

/* 0.43.5: everything in the header scales down with the compact (scrolled) header. */
.qt-header .qt-htab > .qt-nav-ico, .qt-header .qt-header-in > * > button, .qt-header .qt-account-btn .qt-av, .qt-header .qt-logo-icon { transition: width .2s ease, height .2s ease; }
.qt-header.is-scrolled .qt-htab > .qt-nav-ico { width: 21px; height: 21px; }
.qt-header.is-scrolled .qt-header-in button:not(.qt-nav-toggle), .qt-header.is-scrolled .qt-header-in .qt-bell > a, .qt-header.is-scrolled .qt-header-in a.qt-msg-btn { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
.qt-header.is-scrolled .qt-header-in button .qt-ico, .qt-header.is-scrolled .qt-header-in .qt-bell svg { width: 15px; height: 15px; }
.qt-header.is-scrolled .qt-account-btn .qt-av, .qt-header.is-scrolled .qt-account-btn img { width: 30px; height: 30px; }
.qt-header.is-scrolled .qt-logo-icon { width: 32px; height: 32px; }
.qt-header.is-scrolled .qt-nav-cta .qt-btn { min-height: 32px; padding-top: .3rem; padding-bottom: .3rem; font-size: .85rem; }

/* 0.43.6: phones were showing the icon next to the full logo; only one at a time. Tighter listing sheets on phones. */
.qt-header .qt-logo .qt-logo-icon { display: none; }
.qt-header.is-scrolled .qt-logo .qt-logo-icon { display: block; }
.qt-header.is-scrolled .qt-logo .qt-logo-img { display: none; }
@media (max-width: 640px) { body.qt-sec .qt-detail-grid > .qt-gallery, body.qt-sec .qt-detail-main { padding: .75rem; } }


/* ---------- 0.44: smart-sticky header ---------- */
.qt-header { transition: top .25s ease, border-color .2s, box-shadow .2s; }
.qt-header.qt-hide { top: calc(-1 * var(--qt-head-full, 80px)); box-shadow: none; }
.admin-bar .qt-header.qt-hide { top: calc(32px - var(--qt-head-full, 80px)); }
.qt-side, .qt-feed-left, .qt-feed-right, .qt-prof-side, .qt-storypage-side, .qt-summary, .qt-account-nav, .qt-filters { transition: top .25s ease, height .25s ease; }
@media (max-width: 1080px) { .qt-header.qt-hide { top: -80px; } } /* the phone tab bar is position:fixed inside the header, so it stays put */

/* ---------- 0.44: the lost & found flyer (print only) ---------- */
.qt-flyer { display: none; }
@media print {
  @page { size: letter portrait; margin: .35in; }
  body.qt-flyer-page > *:not(.qt-flyer) { display: none !important; }
  body.qt-flyer-page { background: #fff !important; }
  body.qt-flyer-page .qt-flyer { display: flex !important; flex-direction: column; height: 10.25in; font-family: var(--qt-font); color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qt-flyer { --fc: #C8102E; }
  .qt-flyer--found { --fc: #2D6519; }
  .qt-flyer-head { display: flex; align-items: center; justify-content: space-between; gap: .2in; padding: .14in .25in; background: var(--fc); color: #fff; border-radius: 5px; }
  .qt-flyer-head strong { font: 900 54pt/1 var(--qt-font-h); letter-spacing: .02em; }
  .qt-flyer-reward { flex: none; padding: .08in .18in; background: #FFD43B; color: #111; border-radius: 5px; font: 900 22pt/1.1 var(--qt-font); }
  .qt-flyer-photo { margin-top: .14in; height: 3.9in; border: 4px solid var(--fc); border-radius: 5px; overflow: hidden; }
  .qt-flyer-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .qt-flyer-body { flex: 1; display: flex; flex-direction: column; gap: .07in; padding-top: .1in; }
  .qt-flyer-name { margin: 0; font: 900 40pt/1 var(--qt-font-h); color: var(--fc); }
  .qt-flyer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .02in .3in; margin: 0; padding: 0; list-style: none; font-size: 13pt; }
  .qt-flyer-facts span { color: #555; margin-right: .08in; }
  .qt-flyer-seen { margin: .02in 0 0; padding: .07in .14in; border-left: 6px solid var(--fc); background: #F4F4F4; font-size: 15pt; }
  .qt-flyer-seen span { display: block; font-size: 9pt; font-weight: 800; letter-spacing: .08em; color: var(--fc); }
  .qt-flyer-seen em { font-style: normal; color: #444; margin-left: .12in; }
  .qt-flyer-desc { margin: 0; font-size: 12pt; line-height: 1.35; color: #222; }
  .qt-flyer-contact { margin-top: auto; display: flex; align-items: center; gap: .2in; padding: .1in .14in; border: 2px dashed var(--fc); border-radius: 5px; }
  .qt-flyer-qr { flex: none; width: 1.15in; height: 1.15in; }
  .qt-flyer-qr img, .qt-flyer-qr canvas { width: 100% !important; height: 100% !important; }
  .qt-flyer-contact > div:last-child { display: flex; flex-direction: column; gap: .02in; font-size: 11pt; }
  .qt-flyer-contact strong { font-size: 14pt; }
  .qt-flyer-contact b { font-size: 15pt; color: var(--fc); }
  .qt-flyer-contact small { color: #666; }
  .qt-flyer-tabs { display: grid; grid-template-columns: repeat(8, 1fr); height: 1.3in; margin-top: .12in; border-top: 2px dashed #888; }
  .qt-flyer-tabs > div { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .03in; border-right: 1px dashed #aaa; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 8.5pt; overflow: hidden; }
  .qt-flyer-tabs > div:last-child { border-right: 0; }
  .qt-flyer-tabs strong { font-size: 10pt; color: var(--fc); }
}


/* ---------- 0.45: animated logo (header). Layers share one 982x206 canvas. ---------- */
.qt-logo-anim { --lh: 44px; position: relative; display: block; height: var(--lh); width: calc(var(--lh) * 4.767); transition: width .45s cubic-bezier(.6, 0, .2, 1), height .3s ease; }
.qt-la { position: absolute; left: 0; top: 0; width: calc(var(--lh) * 4.767); height: var(--lh); max-width: none !important; max-height: none !important; transition: transform .45s cubic-bezier(.6, 0, .2, 1), clip-path .4s cubic-bezier(.6, 0, .2, 1), opacity .3s ease, width .3s ease, height .3s ease; }
.qt-la-mid { clip-path: inset(0 0 0 18%); }
.qt-la-heart { transform-origin: 86.25% 0; }
.qt-header.is-scrolled .qt-logo-anim { --lh: 34px; width: calc(var(--lh) * 4.767 * .275); }
.qt-header.is-scrolled .qt-la-mid { clip-path: inset(0 100% 0 18%); opacity: 0; transition-delay: 0s, 0s, .1s; }
.qt-header.is-scrolled .qt-la-heart { transform: translate(-70.2%, 4.5%) scale(.8); transition-delay: .05s; }
.qt-header .qt-logo .qt-logo-icon { display: none !important; }
.qt-header.is-scrolled .qt-logo .qt-logo-img { display: block; }
@media (max-width: 1080px) { .qt-logo-anim { --lh: 30px; } .qt-header.is-scrolled .qt-logo-anim { --lh: 30px; } }
@media (prefers-reduced-motion: reduce) { .qt-logo-anim, .qt-la { transition: none; } }

/* 0.45.1: compact header goes shorter, and the account avatar shrinks with it. */
.qt-header.is-scrolled .qt-header-in { height: 48px; }
.qt-header .qt-account-btn, .qt-header .qt-account-btn .qt-av { transition: width .2s ease, height .2s ease, font-size .2s ease; }
.qt-header.is-scrolled .qt-account-btn { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; padding: 0 !important; }
.qt-header.is-scrolled .qt-account-btn .qt-av { width: 28px !important; height: 28px !important; font-size: .8rem !important; }
.qt-header.is-scrolled .qt-logo-anim { --lh: 30px; }
.qt-header.is-scrolled .qt-htab { margin-top: 2px; margin-bottom: 2px; }


/* ---------- 0.46 ---------- */
/* Sidebar sits flush under the header (the theme's 48px top padding was winning). */
body.qt-sec.qt-site main.site-main { padding-top: 20px; }

/* Lost & found contact on the report. */
.qt-lf-contact { display: flex; flex-direction: column; gap: .45rem; padding: .85rem; border-radius: var(--qt-r); background: #FFF3F3; border: 1px solid #F9D3D6; }
.qt-lf-contact small { font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: #B00E28; }
.qt-lf-contact .qt-btn { justify-content: center; word-break: break-all; }

@media print {
  .qt-flyer-tabs { display: none !important; }
  .qt-flyer-contact { margin-top: auto; justify-content: space-between; gap: .3in; padding: .16in .2in; border: 3px solid var(--fc); }
  .qt-flyer-reach { display: flex; flex-direction: column; gap: .04in; }
  .qt-flyer-reach strong { font-size: 17pt; }
  .qt-flyer-phone { font: 900 30pt/1.05 var(--qt-font); color: var(--fc); }
  .qt-flyer-email { font: 800 17pt/1.2 var(--qt-font); color: var(--fc); word-break: break-all; }
  .qt-flyer-reach span { font-size: 11pt; color: #333; }
  .qt-flyer-reach em { font-style: normal; font-weight: 700; }
  .qt-flyer-qr { width: 1.7in; height: 1.7in; }
}

/* 0.46.2: older phone logo rules (width/height:auto on .qt-logo img) were blowing the animated layers up to full size. */
.qt-header .qt-logo .qt-la { width: calc(var(--lh) * 4.767) !important; height: var(--lh) !important; max-width: none !important; max-height: none !important; }
.qt-header .qt-logo { flex: none; }

/* 0.46.3: phones: two fact tiles per row, tighter section spacing inside the listing sheet. */
@media (max-width: 640px) {
  .qt-detail-main :is(.qt-facts, .qt-fact-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .qt-detail-main .qt-fact-checks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qt-detail-main .qt-fact { padding: .6rem .65rem; gap: .5rem; }
  .qt-detail-main .qt-fact-ico { width: 30px; height: 30px; flex: none; }
  .qt-detail-main .qt-section { margin-top: 1.1rem; margin-bottom: 0; }
  .qt-detail-main .qt-section:first-child { margin-top: 0; }
  .qt-detail-main .qt-section > p:last-child { margin-bottom: 0; }
  .qt-detail-main .qt-steps li { padding: .8rem .8rem .8rem 2.9rem; }
}

/* 0.46.5: the white sidebar column now also runs up under the header (no sliver while the header resizes or slides)
   and down to the footer wave; the accent line runs with it. */
@media (min-width: 961px) {
  body.qt-sec .qt-side {
    box-shadow:
      -3px -80px 0 #fff, 0 -80px 0 var(--tone),
      -3px 140px 0 #fff, 0 140px 0 var(--tone),
      -280px 30px 0 140px #fff, -560px 30px 0 140px #fff, -840px 30px 0 140px #fff, -1120px 30px 0 140px #fff,
      -1400px 30px 0 140px #fff, -1680px 30px 0 140px #fff, -1960px 30px 0 140px #fff, -2240px 30px 0 140px #fff;
  }
  body.qt-sec .qt-footer { z-index: 3; }
  body.qt-sec .qt-footer-gap { position: relative; z-index: 0; }
}

/* 0.46.6: big screens: roomier sidebar (wider column, more padding) and a slightly wider page. */
@media (min-width: 1600px) {
  body.qt-sec { --qt-max: 1440px; }
  body.qt-sec .qt-browse-form .qt-browse-body, body.qt-sec .qt-railwrap .qt-browse-form .qt-browse-body { grid-template-columns: 320px minmax(0, 1fr); gap: 2.25rem; }
  body.qt-sec .qt-feed-cols { grid-template-columns: 320px minmax(0, 680px) 300px; gap: 2rem; }
  body.qt-sec .qt-side { padding: 2.25rem 2rem 2.5rem 1.5rem; }
  body.qt-sec .qt-side > * + * { margin-top: .35rem; }
}

/* 0.46.7: more breathing room above the main column (sidebar still flush under the header). */
body.qt-sec.qt-site main.site-main { padding-top: 36px; }
@media (min-width: 961px) { body.qt-sec .qt-side { margin-top: -36px; } }
@media (max-width: 960px) { body.qt-sec.qt-site main.site-main { padding-top: 24px; } }

/* 0.46.8: room above the comments; more clearance above the footer wave on section pages. */
.qt-detail-main .qt-comments, .qt-storypage .qt-comments { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--qt-line); }
body.qt-sec .qt-footer-gap { flex-basis: 4.5rem; }

/* 0.46.9: My pets: two cards per row on phones. */
@media (max-width: 640px) {
  .qt-pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .qt-pet-grid .qt-petcard { font-size: .9rem; }
  .qt-pet-grid .qt-petcard > :not(.qt-petcard-img) { padding-left: .6rem; padding-right: .6rem; }
}

/* 0.47.0: flyer is always exactly one page: fixed page-height sheet, photo gives way to text, long text is clamped. */
@media print {
  html:has(body.qt-flyer-page), body.qt-flyer-page { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; display: block !important; }
  body.qt-flyer-page .qt-flyer { height: 10.2in; max-height: 10.2in; overflow: hidden; break-inside: avoid; page-break-inside: avoid; break-after: avoid; page-break-after: avoid; }
  .qt-flyer-photo { flex: 1 1 3.9in; height: auto; min-height: 2.4in; max-height: 4.2in; }
  .qt-flyer-body { flex: 0 0 auto; }
  .qt-flyer-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .qt-flyer-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .qt-flyer-email { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}

/* 0.47.1: the theme's print reset (black text, no backgrounds) was flattening the flyer's colours. */
@media print {
  .qt-flyer .qt-flyer-head { background: var(--fc) !important; color: #fff !important; }
  .qt-flyer .qt-flyer-head strong { color: #fff !important; }
  .qt-flyer .qt-flyer-reward { background: #FFD43B !important; color: #111 !important; }
  .qt-flyer .qt-flyer-name, .qt-flyer .qt-flyer-phone, .qt-flyer .qt-flyer-email, .qt-flyer .qt-flyer-seen span, .qt-flyer .qt-flyer-contact b { color: var(--fc) !important; }
  .qt-flyer .qt-flyer-seen { background: #F4F4F4 !important; }
  .qt-flyer, .qt-flyer * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ---------- 0.48: adoption goes purple-pink, lost & found goes red (no yellow) ---------- */
.qt-i-adopt, .qt-i-t-adopt { --ic: #A8278C; }
.qt-el-card.qt-tone-adopt { --tone: #A8278C; --tint: #F3E1F0; }
.qt-feed-item--adoption { --ft: #A8278C; }
.qt-band--adopt { --band: #F5E6F2; --tone: #8E1E76; }
.qt-band--lost  { --band: #FBE4E7; --tone: #B00E28; }
body.qt-sec-adopt { --page: #F8EDF6; --tone: #8E1E76; --tint: #EDCFE6; }
body.qt-sec-lost  { --page: #FDEEF0; --tone: #B00E28; --tint: #F7CDD3; }
.qt-lf-contact { background: #FDEEF0; border-color: #F7CDD3; }

/* ---------- 0.48: info pages (About, How it works, Tips, Contact, legal) ---------- */
.qt-band { --tint: #DCE8DF; }
.qt-band--tales { --tint: #E3D8F2; } .qt-band--store { --tint: #CDE9F5; } .qt-band--adopt { --tint: #EDCFE6; }
.qt-band--lost { --tint: #F7CDD3; } .qt-band--hub { --tint: #C9E6E8; } .qt-band--sage { --tint: #CFE0D3; --tone: #2D6519; }
.qt-band--white { --band: #fff; }
.qt-info-hero .elementor-heading-title { color: var(--qt-ink); }
.qt-info-hero .qt-el-eyebrow .elementor-heading-title { background: #fff; color: var(--tone) !important; }
.qt-el-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--qt-r-lg); box-shadow: 0 24px 40px -24px rgba(28, 37, 32, .55); }
.qt-el-photo { position: relative; }
.qt-el-photo::after { content: ""; position: absolute; inset: auto -14px -14px auto; width: 38%; height: 38%; border-radius: var(--qt-r-lg); background: var(--tone); opacity: .18; z-index: -1; }
.qt-el-photo--tilt img { transform: rotate(-1.5deg); }
.qt-info-section .elementor-widget-heading h2.elementor-heading-title { display: flex; align-items: center; gap: .6rem; }
.qt-el-kicker .elementor-heading-title { font-family: var(--qt-font) !important; font-size: .8rem !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--tone) !important; }
.qt-el-lead p { font-size: 1.08rem; line-height: 1.7; color: var(--qt-ink-2); }

/* Numbered steps / prompts as cards. */
.qt-el-numbered ol { list-style: none; margin: 0; padding: 0; counter-reset: qn; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .7rem; }
.qt-el-numbered ol li { counter-increment: qn; position: relative; margin: 0; padding: .9rem 1rem .9rem 3.3rem; background: #fff; border: 1px solid var(--tint); border-radius: var(--qt-r); line-height: 1.5; color: var(--qt-ink); box-shadow: 0 8px 18px -16px rgba(28, 37, 32, .5); }
.qt-el-numbered ol li::before { content: counter(qn); position: absolute; left: .9rem; top: .85rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--tone); color: #fff; font-weight: 800; font-size: .85rem; }
.qt-el-numbered--1col ol { grid-template-columns: 1fr; }

/* Check lists. */
.qt-el-checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; }
.qt-el-checks ul li { position: relative; margin: 0; padding: .8rem 1rem .8rem 3rem; background: #fff; border-radius: var(--qt-r); border-left: 4px solid var(--tone); box-shadow: 0 8px 18px -16px rgba(28, 37, 32, .5); }
.qt-el-checks ul li::before { content: ""; position: absolute; left: 1rem; top: .95rem; width: 1.1rem; height: 1.1rem; background: var(--tone); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* White sheet for long reading (legal, notices). */
.qt-el-sheet { background: #fff; border-radius: var(--qt-r-lg); box-shadow: 0 14px 30px -20px rgba(28, 37, 32, .45); }
.qt-el-sheet .elementor-widget-text-editor h2 { font-family: var(--qt-font-display); font-size: 1.2rem; margin: 1.8rem 0 .4rem; padding-top: 1.2rem; border-top: 1px solid var(--qt-line); color: var(--qt-ink); scroll-margin-top: 90px; }
.qt-el-sheet .elementor-widget-text-editor h2:first-of-type { margin-top: .5rem; padding-top: 0; border-top: 0; }
.qt-el-toc { position: sticky; top: calc(var(--qt-head-h, 68px) + 1rem); }
.qt-el-toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.qt-el-toc a { display: block; padding: .4rem .6rem; border-radius: var(--qt-r); color: var(--qt-ink-2); text-decoration: none; font-size: .92rem; }
.qt-el-toc a:hover { background: var(--tint); color: var(--qt-ink); }
.qt-el-note { border-left: 5px solid #A88300; }
@media (max-width: 767px) { .qt-el-toc { position: static; } .qt-el-photo::after { display: none; } }

/* 0.48.1: thin sidebar dividers; search boxes get a coloured border instead of a fill; no focus outlines on fields. */
.qt-side-section, .qt-feed-left .qt-feed-filterbox { border-top: 1px solid var(--qt-line); }
.qt-side .qt-search, .qt-side .qt-side-search, body.qt-sec .qt-side input[type="search"] { background: #fff !important; }
.qt-side .qt-search, .qt-side .qt-side-search { border: 1.5px solid var(--tint, var(--qt-line)); border-radius: var(--qt-r); transition: border-color .15s; }
.qt-side .qt-search:focus-within, .qt-side .qt-side-search:focus-within { border-color: var(--tone, var(--qt-primary)); }
.qt-side .qt-search input, .qt-side .qt-side-search input { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.qt input:focus, .qt select:focus, .qt textarea:focus, .qt-input:focus, .qt-site input:focus, .qt-site select:focus, .qt-site textarea:focus { outline: none !important; box-shadow: none !important; }
.qt-input:focus, .qt-site select:focus, .qt-site textarea:focus { border-color: var(--tone, var(--qt-primary)) !important; }

/* 0.48.3: the last band runs on down behind the footer wave (no cream strip in between). */
.qt-footer { z-index: 3; }
.qt-band:last-child:not(.qt-band--hero) { box-shadow: 0 -16px 30px -20px rgba(28, 37, 32, .35), 0 200px 0 0 var(--band); }
body.home .qt-band:last-child, body.home .qt-band--cta { box-shadow: 0 -16px 30px -20px rgba(28, 37, 32, .35), 0 200px 0 0 var(--band); }

/* 0.48.4: only the home page hides the join panel for members; that page's last visible row (invite) carries the run-out. */
body.logged-in:not(.home) .qt-band--cta { display: var(--display, flex); }
body.home.logged-in .qt-band--invite { box-shadow: 0 -16px 30px -20px rgba(28, 37, 32, .35), 0 200px 0 0 var(--band); }
.qt-band--cta { --band: #EEF7FB; }

/* 0.49: sidebar action button wears the section colour; FREE pill in brand orange. */
body.qt-sec .qt-side .qt-btn-primary { background: var(--tone) !important; border-color: var(--tone) !important; color: #fff !important; }
body.qt-sec .qt-side .qt-btn-primary:hover { filter: brightness(.9); }
.qt-tag--donate { background: var(--qt-accent-strong) !important; color: var(--qt-on-accent) !important; }

/* ---------- 0.49: the Journal ---------- */
.qt-journal { display: block; width: 100%; }
.qt-journal-in { width: 100%; max-width: var(--qt-max); margin: 0 auto; padding: 0 var(--qt-gutter); }
.qt-journal-in--narrow { max-width: 820px; }
.qt-journal .qt-band { padding: 3rem 0; }
.qt-journal-hero h1, .qt-jhero h1 { margin: .7rem 0 .5rem; font-family: var(--qt-font-h); font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.1; color: var(--qt-ink); max-width: 820px; }
.qt-journal-lead { margin: 0; max-width: 680px; font-size: 1.1rem; line-height: 1.65; color: var(--qt-ink-2); }
.qt-journal-hero .qt-eyebrow-pill { background: #fff; }
.qt-journal-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.qt-jpill { --pc: var(--qt-primary); display: inline-flex; align-items: center; padding: .3rem .8rem; border-radius: var(--qt-pill); background: #fff; border: 1.5px solid color-mix(in srgb, var(--pc) 35%, #fff); color: var(--pc); font-size: .82rem; font-weight: 700; text-decoration: none !important; }
.qt-jpill--hub { --pc: #0B6A73; } .qt-jpill--tales { --pc: #6E4B9E; } .qt-jpill--lost { --pc: #B00E28; } .qt-jpill--store { --pc: #14739A; } .qt-jpill--adopt { --pc: #8E1E76; }
.qt-jpill:hover, .qt-jpill.is-on { background: var(--pc); border-color: var(--pc); color: #fff; }
.qt-jgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.qt-jcard { --pc: var(--qt-primary); display: flex; flex-direction: column; background: #fff; border-radius: var(--qt-r-lg); overflow: hidden; border-top: 4px solid var(--pc); box-shadow: 0 14px 30px -20px rgba(28, 37, 32, .45); transition: transform .2s, box-shadow .2s; }
.qt-jcard--hub { --pc: #0B6A73; } .qt-jcard--tales { --pc: #6E4B9E; } .qt-jcard--lost { --pc: #B00E28; }
.qt-jcard:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -20px rgba(28, 37, 32, .5); }
.qt-jcard-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--qt-sunken); }
.qt-jcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.qt-jcard:hover .qt-jcard-img img { transform: scale(1.04); }
.qt-jcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.qt-jcard-title { margin: .1rem 0 0; font-family: var(--qt-font); font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.qt-jcard-title a { color: var(--qt-ink); text-decoration: none; }
.qt-jcard-title a:hover { color: var(--pc); }
.qt-jcard-excerpt { margin: 0; color: var(--qt-ink-2); line-height: 1.55; font-size: .95rem; }
.qt-jcard-meta { margin: auto 0 0; padding-top: .3rem; color: var(--qt-muted); font-size: .82rem; }
.qt-jcard--big { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 1.75rem; border-top: 0; border-left: 5px solid var(--pc); }
.qt-jcard--big .qt-jcard-img { aspect-ratio: auto; min-height: 320px; }
.qt-jcard--big .qt-jcard-body { justify-content: center; padding: 2rem 2.25rem; gap: .7rem; }
.qt-jcard--big .qt-jcard-title { font-family: var(--qt-font-h); font-size: clamp(1.5rem, 1rem + 1.5vw, 2.1rem); font-weight: 400; }
.qt-jcard--big .qt-jcard-excerpt { font-size: 1.05rem; }
.qt-jcard--big .qt-jcard-meta { margin-top: .4rem; }
.qt-journal-pages { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.qt-journal-pages .page-numbers { padding: .45rem .8rem; border-radius: var(--qt-r); background: #fff; border: 1px solid var(--qt-line); color: var(--qt-ink); text-decoration: none; }
.qt-journal-pages .current { background: var(--qt-primary); border-color: var(--qt-primary); color: #fff; }
.qt-journal-cta { padding: 2.5rem; border-radius: var(--qt-r-lg); background: linear-gradient(120deg, #1679A0 0%, #26ABD8 100%); color: var(--qt-on-accent); }
.qt-journal-cta h2 { margin: 0 0 .3rem; font-family: var(--qt-font-h); color: var(--qt-on-accent); }
.qt-journal-cta p { margin: 0 0 1.1rem; }
.qt-journal-cta .qt-btn-primary { background: var(--qt-primary); border-color: var(--qt-primary); color: #fff; }
/* Article */
.qt-jhero .qt-back { display: inline-block; margin-bottom: .9rem; color: var(--tone); font-weight: 700; text-decoration: none; }
.qt-jhero .qt-jcard-meta { margin-top: .8rem; }
.qt-jbody { padding-top: 2.5rem !important; }
.qt-jfigure { margin: 0 0 2rem; }
.qt-jcontent { font-size: 1.08rem; line-height: 1.75; color: var(--qt-ink); --tone: var(--qt-primary); --tint: #D7E5DA; }
.qt-jcontent h2 { margin: 2.2rem 0 .7rem; font-family: var(--qt-font); font-weight: 800; font-size: 1.45rem; color: var(--qt-ink); }
.qt-jcontent p { margin: 0 0 1.1rem; }
.qt-jcontent ol, .qt-jcontent ul { margin: 0 0 1.4rem !important; }
.qt-post-go a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .7rem 1.2rem; border-radius: var(--qt-pill); background: var(--qt-primary); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.qt-post-go a:hover { background: var(--qt-primary-hover); }
.qt-jmore h2 { margin: 0 0 1.25rem; font-family: var(--qt-font-h); }
@media (max-width: 1024px) { .qt-jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .qt-jgrid { grid-template-columns: 1fr; }
  .qt-jcard--big { grid-template-columns: 1fr; }
  .qt-jcard--big .qt-jcard-img { min-height: 0; aspect-ratio: 4 / 3; }
  .qt-jcard--big .qt-jcard-body { padding: 1.25rem; }
  .qt-journal .qt-band { padding: 2.25rem 0; }
}

/* 0.49.1: view toggle icons readable: plain ink icons, active one white on the section colour. */
.qt-viewtoggle label { width: 38px; height: 34px; color: var(--qt-ink-2); }
.qt-viewtoggle .qt-ico { --ic: currentColor; width: 19px; height: 19px; color: inherit !important; stroke: currentColor !important; }
.qt-viewtoggle .qt-ico * { fill: none !important; stroke: currentColor !important; }
.qt-viewtoggle label:hover { background: var(--qt-sunken); color: var(--qt-ink); }
.qt-viewtoggle label:has(input:checked) { background: var(--tone, var(--qt-primary)); color: #fff; }

/* 0.49.2: card shadows wrap all four sides (the old ones only showed below, so tops looked cut off). */
:root { --qt-lift: 0 0 0 1px rgba(28, 37, 32, .04), 0 2px 8px rgba(28, 37, 32, .07), 0 14px 30px -14px rgba(28, 37, 32, .26); }
.qt-el-sheet, .qt-el-card[class*="qt-tone-"], .qt-jcard, .qt-band .qt-card, .qt-band .qt-story-card, .qt-band .qt-threads,
body.qt-sec :is(.qt-card, .qt-story-card, .qt-wallpost, .qt-feed-compose, .qt-hub-compose, .qt-prof-card, .qt-res-card, .qt-threads, .qt-gate, .qt-rail-card, .qt-feed-right > *, .qt-pet-card, .qt-acct-card, .qt-panel),
body.qt-sec .qt-detail-grid > .qt-gallery, body.qt-sec .qt-detail-main, .qt-related--empty .qt-empty-state, .qt-band--green .qt-impact-tile { box-shadow: var(--qt-lift); }
.qt-el-numbered ol li, .qt-el-checks ul li { box-shadow: 0 0 0 1px rgba(28, 37, 32, .03), 0 2px 6px rgba(28, 37, 32, .06); }
@media (min-width: 961px) {
  body.qt-sec .qt-detail-grid > .qt-gallery { clip-path: inset(-40px -40px 0 -40px); }
  body.qt-sec .qt-detail-main { clip-path: inset(0 -40px -40px -40px); }
}
.qt-gpin { position: absolute; cursor: pointer; } /* .qt-pin inside already offsets itself above the point */
.gm-style .qt-pop { display: flex; gap: .6rem; align-items: center; max-width: 240px; color: var(--qt-ink); text-decoration: none; font-family: var(--qt-font); }
.gm-style .qt-pop img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--qt-r); }

/* 0.49.4: header and sidebar use the home page cream instead of white. */
body.qt-sec .qt-header { background: rgba(250, 247, 242, .95); }
@media (min-width: 961px) {
  body.qt-sec .qt-side {
    background: var(--qt-bg);
    box-shadow:
      -3px -80px 0 var(--qt-bg), 0 -80px 0 var(--tone),
      -3px 140px 0 var(--qt-bg), 0 140px 0 var(--tone),
      -280px 30px 0 140px var(--qt-bg), -560px 30px 0 140px var(--qt-bg), -840px 30px 0 140px var(--qt-bg), -1120px 30px 0 140px var(--qt-bg),
      -1400px 30px 0 140px var(--qt-bg), -1680px 30px 0 140px var(--qt-bg), -1960px 30px 0 140px var(--qt-bg), -2240px 30px 0 140px var(--qt-bg);
  }
}

/* 0.49.5: the feed's sidebar lines up with every other section's (same width, pinned to the left of the page, not centred). */
@media (min-width: 1241px) { .qt-feed-cols { grid-template-columns: 280px minmax(0, 1fr) 300px; justify-content: start; } }
@media (min-width: 1600px) { body.qt-sec .qt-feed-cols { grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 2.25rem; } }

/* 0.49.6: one content width everywhere (header, page body, footer), up to 1600px on big screens. */
:root { --qt-max: 1600px; }
body.qt-sec { --qt-max: 1600px; }
.qt-header-in, .qt-footer-in { max-width: var(--qt-max) !important; }
.qt-site .e-con.e-con-boxed { --content-width: min(100%, calc(var(--qt-max) - 2 * var(--qt-gutter))); }
.qt-site .e-con.qt-el-prose, .qt-site .qt-el-prose.e-con { --content-width: 780px; }

/* 0.49.8: tidier Google map pop-up. */
.gm-style .gm-style-iw-c { padding: 0 !important; border-radius: var(--qt-r-lg) !important; box-shadow: var(--qt-lift) !important; }
.gm-style .gm-style-iw-d { overflow: hidden !important; padding: 0 !important; max-height: none !important; }
.gm-style .qt-pop { display: flex; align-items: center; gap: .75rem; max-width: 280px; padding: .6rem .85rem .6rem .6rem; }
.gm-style .qt-pop img { flex: none; width: 76px; height: 60px; object-fit: cover; border-radius: var(--qt-r); }
.gm-style .qt-pop span { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.gm-style .qt-pop strong { font: 800 1rem/1.2 var(--qt-font); color: var(--qt-ink); }
.gm-style .qt-pop em { font-style: normal; font-size: .82rem; color: var(--qt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-style .qt-pop b { margin-top: .2rem; font-size: .8rem; color: var(--qt-primary); }

/* 0.49.9: when the tabs move to the bottom bar, the header tools sit at the right edge. */
@media (max-width: 1080px) { .qt-header .qt-header-in { display: flex; } .qt-header .qt-header-tools { margin-left: auto; justify-content: flex-end; } }

/* ---------- 0.50: what joining unlocks (members-only pages, for guests) ---------- */
.qt-gatepage { display: block; width: 100%; }
.qt-gatepage-band { padding: 3.5rem 0 4rem; }
.qt-gatepage-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 460px); gap: 3.5rem; align-items: start; width: 100%; max-width: var(--qt-max); margin: 0 auto; padding: 0 var(--qt-gutter); }
.qt-gatepage-info .qt-eyebrow-pill { background: #fff; color: var(--tone) !important; }
.qt-gatepage-info h1 { margin: .8rem 0 .6rem; font-family: var(--qt-font-h); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); line-height: 1.08; color: var(--qt-ink); }
.qt-gatepage-lead { margin: 0 0 1.6rem; max-width: 620px; font-size: 1.12rem; line-height: 1.65; color: var(--qt-ink-2); }
.qt-gatepage-perks { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.qt-gatepage-perks li { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; background: #fff; border-radius: var(--qt-r-lg); box-shadow: var(--qt-lift); }
.qt-gatepage-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--qt-r); background: var(--tint); }
.qt-gatepage-ico svg { width: 22px; height: 22px; }
.qt-gatepage-perks strong { display: block; margin-bottom: .1rem; color: var(--qt-ink); font-size: .98rem; }
.qt-gatepage-perks li span:last-child { color: var(--qt-ink-2); font-size: .9rem; line-height: 1.45; }
.qt-gatepage-photo { margin: 0 0 1.25rem; max-width: 620px; }
.qt-gatepage-free { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--qt-ink-2); font-weight: 600; font-size: .92rem; }
.qt-gatepage-free svg { width: 18px; height: 18px; color: var(--tone); }
.qt-gatepage-form { position: sticky; top: calc(var(--qt-head-h, 68px) + 1.25rem); }
.qt-gatepage-card { padding: 1.75rem; background: #fff; border-radius: var(--qt-r-lg); border-top: 5px solid var(--tone); box-shadow: var(--qt-lift); }
.qt-gatepage-card > h2 { margin: 0 0 .3rem; font-family: var(--qt-font-h); font-size: 1.6rem; color: var(--qt-ink); }
.qt-gatepage-card > p { margin: 0 0 1.1rem; color: var(--qt-ink-2); font-size: .95rem; }
.qt-gatepage-card .qt-auth { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.qt-gatepage-card .qt-btn-primary, .qt-gatepage-card button[type="submit"] { background: var(--tone); border-color: var(--tone); color: #fff; }
@media (max-width: 960px) {
  .qt-gatepage-in { grid-template-columns: 1fr; gap: 2rem; }
  .qt-gatepage-form { position: static; }
  .qt-gatepage-band { padding: 2rem 0 3rem; }
  .qt-gatepage-perks { grid-template-columns: 1fr; }
}
.qt-gatepage-perks li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- 0.51: public lost & found page (flyer QR / share link only) ---------- */
.qt-lfpub { display: block; width: 100%; padding: 2rem 0 3rem; background: #FDEEF0; }
.qt-lfpub--found { background: #EDF2EE; }
.qt-lfpub-in { max-width: 1000px; margin: 0 auto; padding: 0 var(--qt-gutter); }
.qt-lfpub-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-radius: var(--qt-r-lg) var(--qt-r-lg) 0 0; background: #C8102E; color: #fff; }
.qt-lfpub--found .qt-lfpub-head { background: var(--qt-primary); }
.qt-lfpub-head strong { font: 400 clamp(1.5rem, 1rem + 2vw, 2.3rem)/1.1 var(--qt-font-h); text-transform: uppercase; }
.qt-lfpub-head span { padding: .35rem .8rem; border-radius: var(--qt-pill); background: #fff; color: #B00E28; font-weight: 800; }
.qt-lfpub-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; background: #fff; border-radius: 0 0 var(--qt-r-lg) var(--qt-r-lg); box-shadow: var(--qt-lift); }
.qt-lfpub-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--qt-r); display: block; }
.qt-lfpub-body h1 { margin: 0; font-family: var(--qt-font-h); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--qt-ink); }
.qt-lfpub-sub { margin: .2rem 0 1rem; color: var(--qt-ink-2); }
.qt-lfpub-facts { list-style: none; margin: 0 0 1rem; padding: 0; border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-lfpub-facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; border-top: 1px solid var(--qt-line); }
.qt-lfpub-facts li:first-child { border-top: 0; }
.qt-lfpub-facts span { color: var(--qt-ink-2); }
.qt-lfpub-seen { margin: 0 0 1rem; padding: .7rem .9rem; border-left: 4px solid #C8102E; background: var(--qt-sunken); border-radius: 0 var(--qt-r) var(--qt-r) 0; }
.qt-lfpub-seen span { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #B00E28; }
.qt-lfpub-seen strong { font-size: 1.1rem; }
.qt-lfpub-seen em { font-style: normal; color: var(--qt-ink-2); }
.qt-lfpub-seen a { display: block; margin-top: .2rem; font-weight: 700; }
.qt-lfpub-desc { margin: 0 0 1rem; color: var(--qt-ink); line-height: 1.6; }
.qt-lfpub-note { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--qt-r); background: var(--qt-primary-soft); color: var(--qt-primary); font-weight: 700; }
.qt-lfpub-join { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--qt-line); }
.qt-lfpub-join p { margin: .2rem 0 .7rem; color: var(--qt-ink-2); font-size: .92rem; }
@media (max-width: 760px) { .qt-lfpub-grid { grid-template-columns: 1fr; padding: 1rem; } }


/* ---------- 0.52: new brand (leaf green + sky blue, no orange) ---------- */
:root { --qt-on-accent: #FFFFFF; --qt-accent-ink: #14739A; --qt-leaf: #7DBA18; --qt-sky: #26ABD8; }
.qt-band--hero { --band: radial-gradient(1100px 420px at 85% 0%, #D6EEF8 0%, rgba(214, 238, 248, 0) 70%), radial-gradient(900px 420px at 0% 100%, #E3F0CF 0%, rgba(227, 240, 207, 0) 70%), #FAF7F2; }
.qt-band--store { --band: #E3F3FA; --tone: #14739A; --tint: #CDE9F5; }
body.qt-sec-store { --page: #EEF7FB; --tone: #14739A; --tint: #CDE9F5; }
.qt-el-card.qt-tone-store { --tone: #1C8DB7; --tint: #E3F3FA; }
.qt-jpill--store { --pc: #14739A; }
.qt-tag--donate { background: var(--qt-sky) !important; color: #fff !important; }
.qt-band--green { --tone: var(--qt-leaf); }
.qt-band--green .qt-impact-num { color: #B2E531; }

/* Animated header logo, new mark: canvas 764x254 (ratio 3.008); the Q is the left 30%. */
.qt-logo-anim { width: calc(var(--lh) * 3.008); }
.qt-header .qt-logo .qt-la { width: calc(var(--lh) * 3.008) !important; }
.qt-la-mid { clip-path: inset(0 0 0 29%); }
.qt-la-heart { display: none !important; }
.qt-header.is-scrolled .qt-logo-anim { width: calc(var(--lh) * 3.008 * .31); }
.qt-header.is-scrolled .qt-la-mid { clip-path: inset(0 100% 0 29%); opacity: 0; }
.qt-logo-anim { --lh: 48px; }
.qt-header.is-scrolled .qt-logo-anim { --lh: 38px; }
@media (max-width: 1080px) { .qt-logo-anim, .qt-header.is-scrolled .qt-logo-anim { --lh: 36px; } }
.qt-footer .qt-logo img { filter: brightness(0) invert(1); }


/* ---------- 0.52.1 ---------- */
.qt-appmenu-soon { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: var(--qt-r); opacity: .5; cursor: default; }
.qt-appmenu-soon small { display: block; }
/* Leaf line above the home headline, in green. */
.qt-el-eyebrow .elementor-heading-title { display: inline-flex !important; align-items: center; gap: .45rem; color: var(--qt-primary) !important; }
.qt-el-eyebrow .elementor-heading-title::before { content: ""; flex: none; width: 1.05em; height: 1.05em; background: var(--qt-leaf, #7DBA18); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%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' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Hero rotator. */
.qt-hero-rot { position: relative; aspect-ratio: 4 / 3.4; width: 100%; }
.qt-hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.qt-hero-slide.is-on { opacity: 1; }
.qt-hero-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--qt-r-lg); box-shadow: 0 24px 40px -24px rgba(28, 37, 32, .55); }
.qt-hero-tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-radius: var(--qt-r-lg); background: #fff; box-shadow: var(--qt-lift); color: var(--qt-ink); text-decoration: none !important; font-size: .82rem; max-width: 240px; }
.qt-hero-tag span { display: flex; flex-direction: column; line-height: 1.25; color: var(--qt-ink-2); }
.qt-hero-tag strong { color: var(--qt-ink); font-size: .95rem; }
.qt-hero-tag svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: var(--qt-r); }
.qt-hero-tag--tales { left: -18px; bottom: 18%; }
.qt-hero-tag--tales svg { background: #F0EAF8; }
.qt-hero-tag--eco { right: -14px; top: 10%; }
.qt-hero-tag--eco svg { background: #E3F0CF; }
@media (max-width: 767px) { .qt-hero-tag--tales { left: 8px; bottom: 8px; } .qt-hero-tag--eco { right: 8px; top: 8px; } .qt-hero-tag { max-width: 200px; } }
/* Footer: the new full-colour logo on a light chip (it doesn't read on dark green, and white loses the face). */
.qt-footer .qt-logo { display: inline-flex; padding: .55rem .9rem; border-radius: var(--qt-r-lg); background: #FAF7F2; }
.qt-footer .qt-logo img, .qt-footer .qt-logo-invert { filter: none !important; max-height: 46px; width: auto; }
/* Anything after a sidebar layout (e.g. the Hub invite box) sits above the sidebar's run-out. */
.qt-railwrap ~ *, .qt-browse-form ~ * { position: relative; z-index: 2; }
/* About page eyebrow: a heart instead of the leaf. */
.qt-el-eyebrow--heart .elementor-heading-title::before { background: #D6336C; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.4 2.9 4.5 6.6 4.5c2.1 0 3.6 1.2 5.4 3.3 1.8-2.1 3.3-3.3 5.4-3.3 3.7 0 5.7 3.9 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.4 2.9 4.5 6.6 4.5c2.1 0 3.6 1.2 5.4 3.3 1.8-2.1 3.3-3.3 5.4-3.3 3.7 0 5.7 3.9 4.2 7.2C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }


/* 0.53: TM on the wordmark. */
.qt-header .qt-logo, .qt-footer .qt-logo { position: relative; }
.qt-header .qt-logo::after, .qt-footer .qt-logo::after { content: "\2122"; position: absolute; top: -2px; right: -12px; font: 700 .6rem/1 var(--qt-font); color: var(--qt-ink-2); }
.qt-footer .qt-logo::after { top: 4px; right: 4px; }
.qt-header.is-scrolled .qt-logo::after { display: none; }
.qt-donate-paypal { margin-top: .25rem; }


/* 0.53.1: listing extras. */
.qt-form:not(:has(input[name="lister_type"][value="rescue"]:checked)) .qt-field:has([name^="shelter_"]) { display: none; }
.qt-item-video { width: 100%; max-height: 480px; border-radius: var(--qt-r); background: #000; }
.qt-memory h2 { display: flex; align-items: center; gap: .5rem; }
.qt-memory h2 svg { width: 22px; height: 22px; }
.qt-memory p { margin: 0; padding: .9rem 1rem; border-left: 4px solid var(--tone, var(--qt-primary)); background: var(--qt-sunken); border-radius: 0 var(--qt-r) var(--qt-r) 0; font-style: italic; }
.qt-shelter { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.qt-shelter li { display: flex; align-items: center; gap: .5rem; }
.qt-shelter li svg { width: 18px; height: 18px; flex: none; }
.qt-shelter-name { margin: 0; font-size: 1.05rem; }

/* 0.53.2: status on every card view (the photo badge in grid, an inline pill in list / map). */
.qt-status-inline { display: none; align-self: flex-start; margin-bottom: .3rem; padding: .15rem .55rem; border-radius: var(--qt-pill); font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-grid--list .qt-status-inline, .qt-grid--map .qt-status-inline { display: inline-block; }
.qt-status-inline.qt-status--pending { background: #FFF4C2; color: #6B5500; }
.qt-status-inline.qt-status--sold, .qt-status-inline.qt-status--adopted, .qt-status-inline.qt-status--reunited, .qt-status-inline.qt-status--closed { background: #E6E3DD; color: #44514A; }
.qt-card-media .qt-status--available { background: rgba(255, 255, 255, .94); color: var(--qt-primary); }
.qt-alert-group { margin-top: 1.25rem; }
.qt-alert-group h3 { margin: 0 0 .5rem; }
.qt-alert-note { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.qt-alert-note a { font-weight: 700; }

/* 0.53.3: character counters; a cleaner "Start a post" composer. */
.qt-count { display: block; margin-top: .25rem; text-align: right; font-size: .78rem; color: var(--qt-muted); }
.qt-count.is-near { color: #B00E28; font-weight: 700; }
.qt-hub-compose { padding: 0; overflow: hidden; }
.qt-hub-compose > summary { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; cursor: pointer; list-style: none; }
.qt-hub-compose > summary::-webkit-details-marker { display: none; }
.qt-hub-compose > summary > span { flex: 1; padding: .65rem 1rem; border-radius: var(--qt-pill); background: var(--qt-sunken); color: var(--qt-muted); }
.qt-hub-compose[open] > summary { border-bottom: 1px solid var(--qt-line); }
.qt-hub-compose .qt-form { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.qt-hub-compose .qt-form .qt-field { margin: 0; }
.qt-hub-compose input[name="title"] { font-size: 1.1rem; font-weight: 700; padding: .75rem .9rem; }
.qt-hub-compose textarea { min-height: 150px; line-height: 1.55; resize: vertical; }
.qt-hub-compose .qt-seg { flex-wrap: wrap; gap: .4rem; background: none; padding: 0; border: 0; }
.qt-hub-compose .qt-seg-opt span { border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); padding: .35rem .8rem; background: #fff; }
.qt-hub-compose .qt-seg-opt input:checked + span { background: var(--tone, var(--qt-primary)); border-color: var(--tone, var(--qt-primary)); color: #fff; }
.qt-hub-compose .qt-form-actions, .qt-hub-compose .qt-actions { display: flex; justify-content: flex-end; gap: .5rem; }


/* 0.53.4: accounts & pets. */
.qt-usertype .is-soon { opacity: .5; cursor: not-allowed; }
.qt-usertype .is-soon small { display: block; font-size: .7rem; font-weight: 600; }
.qt-profile-pets { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--qt-line); }
.qt-other-field, .qt-other-filter { display: none; }
.qt-form:has(select[name="pet_type"] option[value="other"]:checked) .qt-other-field { display: block; }
.qt-fgroup:has(input[name="pet[]"][value="other"]:checked) .qt-other-filter { display: block; margin-top: .5rem; }
.qt-mine-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .5rem 0 0; }
.qt-pill-soft { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: var(--qt-pill); background: var(--qt-sunken); font-size: .78rem; font-weight: 700; color: var(--qt-ink-2); }
.qt-pill-soft svg { width: 14px; height: 14px; }


/* 0.54: feelings (several), votes, featured tale, threaded comments, emoji. */
.qt-vote-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border: 1.5px solid var(--qt-line-2); border-radius: var(--qt-pill); background: #fff; color: var(--qt-ink-2); font-weight: 700; cursor: pointer; }
.qt-vote-btn svg { width: 16px; height: 16px; }
.qt-vote-btn.is-on { border-color: #6E4B9E; background: #F0EAF8; color: #6E4B9E; }
.qt-vote-n:not(:empty)::before { content: "· "; }
.qt-featured { margin: 0 0 1.25rem; padding: 1rem; border-radius: var(--qt-r-lg); background: linear-gradient(135deg, #F0EAF8, #fff); box-shadow: var(--qt-lift); }
.qt-featured-kicker { display: flex; align-items: center; gap: .45rem; margin: 0 0 .75rem; font-weight: 800; color: #6E4B9E; }
.qt-featured-kicker svg { width: 20px; height: 20px; }
.qt-comment--reply { margin-left: 2.75rem; padding-left: .75rem; border-left: 2px solid var(--qt-line); }
.qt-comment-reply { display: inline-flex; align-items: center; gap: .3rem; margin-top: .25rem; padding: 0; border: 0; background: none; color: var(--qt-ink-2); font-size: .82rem; font-weight: 700; cursor: pointer; }
.qt-comment-reply svg { width: 14px; height: 14px; }
.qt-replying { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; font-size: .85rem; color: var(--qt-ink-2); }
.qt-comment-input { position: relative; }
.qt-comment-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.qt-emoji-btn { width: 38px; height: 38px; border: 1px solid var(--qt-line-2); border-radius: 50%; background: #fff; font-size: 1.15rem; cursor: pointer; }
.qt-emoji-pal { position: absolute; z-index: 20; bottom: 48px; left: 0; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: .4rem; background: #fff; border-radius: var(--qt-r-lg); box-shadow: var(--qt-lift); }
.qt-emoji-pal button { width: 34px; height: 34px; border: 0; border-radius: var(--qt-r); background: none; font-size: 1.2rem; cursor: pointer; }
.qt-emoji-pal button:hover { background: var(--qt-sunken); }
.qt-vote-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: .9rem 0 0; font-size: .85rem; }
.qt-install-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.qt-install-way { padding: 1rem 1.1rem; border-radius: var(--qt-r-lg); background: #fff; box-shadow: var(--qt-lift); }
.qt-install-way > svg { width: 26px; height: 26px; }
.qt-install-way ol { margin: .4rem 0 0; padding-left: 1.1rem; line-height: 1.55; }
@media (max-width: 760px) { .qt-install-ways { grid-template-columns: 1fr; } }


/* 0.55.2: tale page header: meta line, stats line, one action row. */
.qt-sp-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.qt-sp-titlebar .qt-sp-title { margin: .4rem 0 0; }
.qt-sp-meta { margin: .45rem 0 0; color: var(--qt-ink-2); font-size: .95rem; }
.qt-sp-meta a { color: var(--qt-primary); font-weight: 700; text-decoration: none; }
.qt-sp-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.25rem; margin: 1rem 0 0; padding: .7rem 0; list-style: none; border-top: 1px solid var(--qt-line); border-bottom: 1px solid var(--qt-line); font-size: .88rem; color: var(--qt-ink-2); }
.qt-sp-stats li { display: inline-flex; align-items: center; gap: .35rem; }
.qt-sp-stats svg { width: 16px; height: 16px; }
.qt-sp-stats a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.qt-sp-actionrow { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 1.25rem; }
.qt-sp-actionrow .qt-btn, .qt-sp-actionrow .qt-vote-btn, .qt-sp-actionrow .qt-follow { min-height: 40px; border-radius: var(--qt-pill); }
.qt-sp-actionrow .qt-btn.is-on { border-color: var(--qt-primary); color: var(--qt-primary); background: var(--qt-primary-soft); }


/* ---------- 0.55.4 ---------- */
/* Emoji picker: real-size emoji (WordPress swaps emoji for tiny images otherwise). */
.qt-emoji-pal { grid-template-columns: repeat(8, 40px); gap: 4px; padding: .5rem; }
.qt-emoji-pal button { width: 40px; height: 40px; font-size: 24px !important; line-height: 1; display: grid; place-items: center; padding: 0; }
.qt-emoji-btn { font-size: 20px !important; line-height: 1; display: grid; place-items: center; padding: 0; }
.qt-emoji-pal img.emoji, .qt-emoji-btn img.emoji { width: 24px !important; height: 24px !important; max-width: none !important; margin: 0 !important; }
.qt-comment-input textarea img.emoji { width: 1.2em !important; height: 1.2em !important; }

/* Footer: the darker leaf green, wave and all. */
.qt-footer { background: #1A3B10 !important; }
.qt-footer::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22c120-14 240-20 360-12s240 22 360 18 240-22 360-24 240 8 360 14v22z' fill='%231A3B10'/%3E%3C/svg%3E") !important; }

/* Tale actions that follow the reader. */
.qt-sp-follow-card { display: none; padding: 1rem; border-radius: var(--qt-r-lg); background: #fff; box-shadow: var(--qt-lift); }
.qt-sp-follow-title { margin: 0 0 .6rem; font-weight: 800; color: var(--qt-ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt-sp-follow-card .qt-sp-actionrow { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.qt-sp-follow-card .qt-sp-actionrow > * { width: 100%; justify-content: center; }
.qt-sp-follow-card .qt-sp-actionrow .qt-react { width: 100%; }
.qt-sp-follow-card .qt-sp-actionrow .qt-react .qt-btn { width: 100%; justify-content: center; }
.qt-sp-floatbar { display: none; }
@media (min-width: 961px) {
  body.qt-sp-row-away .qt-sp-follow-card { display: block; animation: qtFadeIn .2s ease; }
}
@media (max-width: 960px) {
  .qt-sp-floatbar { position: fixed; left: 8px; right: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 999; padding: .45rem; border-radius: var(--qt-pill); background: rgba(255, 255, 255, .97); box-shadow: 0 10px 30px -10px rgba(28, 37, 32, .45); transform: translateY(140%); transition: transform .25s ease; display: block; }
  body.qt-sp-row-away .qt-sp-floatbar { transform: none; }
  .qt-sp-floatbar .qt-sp-actionrow { margin: 0; flex-wrap: nowrap; justify-content: space-around; gap: .2rem; }
  .qt-sp-floatbar .qt-btn, .qt-sp-floatbar .qt-vote-btn, .qt-sp-floatbar .qt-follow { min-height: 40px; padding: .4rem .55rem; border: 0; background: none; }
  .qt-sp-floatbar .qt-btn span, .qt-sp-floatbar .qt-vote-btn [data-l], .qt-sp-floatbar .qt-follow span, .qt-sp-floatbar .qt-react-label { display: none; }
}
@keyframes qtFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }


/* 0.55.8: the following action bar is one line of icons with tooltips, sliding in. */
.qt-sp-follow-card .qt-sp-actionrow { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: .3rem; }
.qt-sp-follow-card .qt-sp-actionrow > *, .qt-sp-follow-card .qt-sp-actionrow .qt-react .qt-btn { width: auto; }
.qt-sp-actionrow--copy .qt-btn, .qt-sp-actionrow--copy .qt-vote-btn, .qt-sp-actionrow--copy .qt-follow { position: relative; width: 40px; height: 40px; min-height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.qt-sp-actionrow--copy .qt-btn > span, .qt-sp-actionrow--copy .qt-vote-btn > span, .qt-sp-actionrow--copy .qt-follow > span, .qt-sp-actionrow--copy .qt-react-label { display: none !important; }
.qt-sp-actionrow--copy .qt-react-emo { position: static; }
/* (copy tooltips use the site-wide [data-tip] tooltip) */
.qt-sp-follow-card { padding: .7rem .8rem; }
.qt-sp-follow-title { font-size: .85rem; margin-bottom: .5rem; }
@media (min-width: 961px) {
  body.qt-sp-row-away .qt-sp-follow-card { animation: qtSlideIn .35s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes qtSlideIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.qt-sp-actionrow--copy .qt-react { flex: none; width: 40px; }
.qt-sp-actionrow--copy .qt-react-btn > .qt-react-ico { display: grid !important; place-items: center; }
.qt-sp-actionrow--copy .qt-react-btn { width: 40px !important; height: 40px; padding: 0 !important; }
.qt-sp-follow-card .qt-sp-actionrow.qt-sp-actionrow--copy > *, .qt-sp-floatbar .qt-sp-actionrow.qt-sp-actionrow--copy > * { flex: 0 0 40px !important; width: 40px !important; min-width: 40px; height: 40px; }
.qt-sp-follow-card .qt-sp-actionrow.qt-sp-actionrow--copy { display: flex !important; justify-content: space-between; flex-wrap: nowrap; }
.qt-sp-actionrow--copy .qt-react .qt-btn { width: 40px !important; }


/* 0.56.6: tooltips flip to stay on screen (set by listings.js). */
@media (hover: hover) and (min-width: 1081px) {
  [data-tip][data-tip-al="start"]::before { left: 0; transform: translateY(-4px); }
  [data-tip][data-tip-al="start"]:hover::before, [data-tip][data-tip-al="start"]:focus-visible::before { transform: none; }
  [data-tip][data-tip-al="end"]::before { left: auto; right: 0; transform: translateY(-4px); }
  [data-tip][data-tip-al="end"]:hover::before, [data-tip][data-tip-al="end"]:focus-visible::before { transform: none; }
}

/* 0.56.7: Follow in the tale action row is a real button like its neighbours. */
.qt-sp-actionrow .qt-followico { gap: .4rem; min-height: 40px; margin: 0; padding: .45rem 1rem; border: 1.5px solid var(--qt-line-2); border-radius: var(--qt-pill); background: var(--qt-surface); color: var(--qt-primary); font-weight: 700; text-decoration: none !important; }
.qt-sp-actionrow .qt-followico::before { content: none; }
.qt-sp-actionrow .qt-followico .qt-ico { width: 17px; height: 17px; padding: 0; background: none; }
.qt-sp-actionrow .qt-followico:hover { border-color: var(--qt-primary); background: var(--qt-primary-soft); text-decoration: none; }
.qt-sp-actionrow .qt-followico.is-on { border-color: var(--qt-primary); background: var(--qt-primary-soft); }
.qt-sp-actionrow .qt-followico.is-on::after { content: "Following"; }
.qt-sp-actionrow.qt-sp-actionrow--copy .qt-followico { justify-content: center; padding: 0; border-radius: 50%; }
.qt-sp-actionrow.qt-sp-actionrow--copy .qt-followico::after, .qt-sp-actionrow.qt-sp-actionrow--copy .qt-followico span { display: none; }

/* 0.56.8: each emoji in the picker has its name as a tooltip; the React button's own tooltip
   steps aside the moment the picker opens (picker opens after .45s of hover). */
@media (hover: hover) and (min-width: 1081px) {
  .qt-react:hover .qt-react-btn[data-tip]:hover::before { transition: none; animation: qtTipBrief .45s linear forwards; }
  .qt-react-menu [data-tip]::before { top: auto; bottom: calc(100% + 8px); }
}
@keyframes qtTipBrief { 0%, 55% { opacity: 0; } 60%, 92% { opacity: 1; } 100% { opacity: 0; } }


/* 0.56.9: named Follow carries its own label, so no generated "Following". */
.qt-sp-actionrow .qt-followico--named.is-on::after { content: none; }

/* 0.57.0: phone floating bar: the React icon shows (only text labels hide), every icon borderless and alike. */
@media (max-width: 960px) {
  .qt-sp-floatbar .qt-sp-actionrow > * , .qt-sp-floatbar .qt-react-btn { border: 0 !important; background: none; box-shadow: none; }
  .qt-sp-floatbar .qt-react-btn > .qt-react-ico { display: grid !important; place-items: center; }
  .qt-sp-floatbar .qt-react-btn.is-on, .qt-sp-floatbar .qt-btn.is-on, .qt-sp-floatbar .qt-vote-btn.is-on, .qt-sp-floatbar .qt-followico.is-on { background: var(--qt-primary-soft); border-radius: 50%; }
  .qt-sp-floatbar .qt-react-emo img.emoji, .qt-sp-floatbar .qt-react-emo { font-size: 20px; }
}
@media (max-width: 960px) {
  .qt-sp-floatbar .qt-react-btn:not(.is-on) .qt-react-ico > svg { display: block !important; }
  .qt-sp-floatbar .qt-react-btn.is-on .qt-react-ico > .qt-react-emo { display: grid !important; place-items: center; }
  .qt-sp-floatbar .qt-react-emo img.emoji { width: 22px !important; height: 22px !important; margin: 0 !important; }
}

/* 0.57.6: voting is gold: the trophy, the Vote button when on, and the Featured tale heading. */
:root { --qt-gold: #D4A017; --qt-gold-ink: #8A6100; --qt-gold-soft: #FFF5D6; }
.qt-vote-btn svg, .qt-sp-stats .qt-i-trophy, .qt-featured-kicker svg { color: var(--qt-gold); }
.qt-vote-btn:hover { border-color: var(--qt-gold); }
.qt-vote-btn.is-on, .qt-sp-actionrow--copy .qt-vote-btn.is-on { border-color: var(--qt-gold); background: var(--qt-gold-soft); color: var(--qt-gold-ink); }
.qt-vote-btn.is-on svg { color: var(--qt-gold-ink); fill: var(--qt-gold); }
.qt-featured-kicker { color: var(--qt-gold-ink); }
@media (max-width: 960px) { .qt-sp-floatbar .qt-vote-btn.is-on { background: var(--qt-gold-soft); } }

/* 0.57.7: Save / bookmark is brand blue everywhere. */
.qt-i-bookmark { --ic: var(--qt-accent); color: var(--qt-accent); }
.qt-wall-btn[data-qt-save].is-on, .qt-bar-btn[data-qt-save].is-on, .qt-wall-btn.qt-saved-on { color: var(--qt-accent); }
.qt-btn[data-qt-save]:hover { border-color: var(--qt-accent); }
.qt-sp-actionrow .qt-btn[data-qt-save].is-on, .qt-sp-actionrow--copy .qt-btn[data-qt-save].is-on { border-color: var(--qt-accent); background: var(--qt-sky-soft); color: var(--qt-accent); }
.qt-btn[data-qt-save].is-on .qt-ico { fill: currentColor; }
@media (max-width: 960px) { .qt-sp-floatbar .qt-btn[data-qt-save].is-on { background: var(--qt-sky-soft); } }

/* 0.58.0: the feed's "·" before Follow was overriding the tooltip on the sticky copy. */
@media (hover: hover) and (min-width: 1081px) {
  .qt-sp-actionrow.qt-sp-actionrow--copy .qt-followico[data-tip]::before { content: attr(data-tip); margin: 0; color: #fff; font: 600 .78rem var(--qt-font); }
}

/* 0.58.1: the sticky action card keeps its place in the sidebar (no jump when it shows), and its icons
   pop in one after another so the feature gets noticed. Same stagger on the phone bar. */
@media (min-width: 961px) {
  .qt-sp-follow-card { display: block !important; visibility: hidden; opacity: 0; transform: translateY(10px); animation: none !important; transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  body.qt-sp-row-away .qt-sp-follow-card { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
.qt-sp-actionrow--copy > * { opacity: 0; transform: translateY(8px) scale(.6); transition: opacity .15s ease, transform .15s ease; }
body.qt-sp-row-away .qt-sp-actionrow--copy > * { opacity: 1; transform: none; transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
body.qt-sp-row-away .qt-sp-actionrow--copy > :nth-child(1) { transition-delay: .15s; }
body.qt-sp-row-away .qt-sp-actionrow--copy > :nth-child(2) { transition-delay: .22s; }
body.qt-sp-row-away .qt-sp-actionrow--copy > :nth-child(3) { transition-delay: .29s; }
body.qt-sp-row-away .qt-sp-actionrow--copy > :nth-child(4) { transition-delay: .36s; }
body.qt-sp-row-away .qt-sp-actionrow--copy > :nth-child(5) { transition-delay: .43s; }
body.qt-sp-row-away .qt-sp-actionrow--copy > :nth-child(6) { transition-delay: .50s; }
@media (prefers-reduced-motion: reduce) {
  .qt-sp-actionrow--copy > *, body.qt-sp-row-away .qt-sp-actionrow--copy > * { transition: none !important; transform: none; }
}


/* 0.58.4: tale page media up top, pills on the photo. */
.qt-sp-media { margin: 0 0 1.25rem; }
.qt-sp-media--two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
.qt-sp-media .qt-sp-gallery, .qt-sp-media .qt-sp-video { margin: 0; }
.qt-sp-media .qt-gallery-main { position: relative; border-radius: var(--qt-r-lg); overflow: hidden; }
.qt-sp-media .qt-gallery-main img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.qt-sp-media--two .qt-gallery-main img, .qt-sp-media--two .qt-sp-video video { aspect-ratio: 4 / 3; height: auto; max-height: none; object-fit: cover; }
.qt-sp-video { position: relative; border-radius: var(--qt-r-lg); overflow: hidden; background: #000; }
.qt-sp-video video { display: block; width: 100%; max-height: 520px; }
.qt-sp-media--two .qt-sp-video video { object-fit: contain; background: #000; }
.qt-sp-pills { position: absolute; left: .85rem; bottom: .85rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .4rem; pointer-events: none; }
.qt-sp-pill { pointer-events: auto; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: var(--qt-pill); font-size: .8rem; font-weight: 800; line-height: 1.2; text-decoration: none !important; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
.qt-sp-pill--cat { background: #fff; color: var(--tc, var(--qt-primary)); }
.qt-sp-pill--cat .qt-term-badge, .qt-sp-pill--cat svg { width: 18px; height: 18px; }
.qt-sp-pill--type { background: rgba(28, 37, 32, .82); color: #fff; }
.qt-sp-video .qt-sp-pills { bottom: auto; top: .85rem; }
.qt-sp-media .qt-wall-more-photos { left: auto; right: .85rem; }
@media (max-width: 700px) {
  .qt-sp-media--two { grid-template-columns: 1fr; }
}
.qt-sp-media .qt-gallery-main { aspect-ratio: 16 / 9; max-height: 520px; width: 100%; }
.qt-sp-media--two .qt-gallery-main { aspect-ratio: 4 / 3; max-height: none; }
.qt-sp-media .qt-gallery-main img { width: 100%; height: 100% !important; max-height: none !important; aspect-ratio: auto !important; object-fit: cover; object-position: center 35%; }
.qt-sp-media--two .qt-sp-video { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.qt-sp-media--two .qt-sp-video video { width: 100%; height: 100%; aspect-ratio: auto; }
.qt-gallery-thumbs { scrollbar-width: none; -ms-overflow-style: none; }
.qt-gallery-thumbs::-webkit-scrollbar { display: none; }
@media (max-width: 700px) { .qt-sp-media .qt-gallery-main { aspect-ratio: 4 / 3; } }

/* 0.58.8: more air around the tale's comment section. */
.qt-storypage .qt-comments { margin-top: 2.5rem; padding-top: 2.25rem; padding-bottom: 2.25rem; }


/* 0.59.0: Journal sidebar (search, browse by date, topics) + topic of the month. */
.qt-journal-cols { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.qt-journal-main { min-width: 0; }
.qt-journal-main .qt-jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1400px) { .qt-journal-main .qt-jgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qt-jside { position: sticky; top: calc(var(--qt-head-h, 64px) + 1rem); display: flex; flex-direction: column; gap: 1rem; }
.qt-jside-card { padding: 1rem 1.1rem; border-radius: var(--qt-r-lg); background: #fff; box-shadow: var(--qt-lift); }
.qt-jside-h { display: flex; align-items: center; gap: .45rem; margin: 0 0 .7rem; font: 800 .95rem var(--qt-font); color: var(--qt-ink); }
.qt-jside-h svg { width: 17px; height: 17px; color: var(--qt-primary); }
.qt-jside-form { display: flex; gap: .45rem; }
.qt-jside-form .qt-input { flex: 1; min-width: 0; min-height: 40px; }
.qt-jside-form .qt-btn { min-height: 40px; padding: .4rem .9rem; }
.qt-jside-topics { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.qt-jside-topics a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border-radius: var(--qt-r); color: var(--qt-ink-2); font-weight: 600; text-decoration: none; }
.qt-jside-topics a:hover, .qt-jside-topics a.is-on { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-jside-topics em { font-style: normal; font-size: .8rem; color: var(--qt-muted); }
.qt-jmonth-kicker { display: flex; align-items: center; gap: .45rem; margin: 0 0 .75rem; font-weight: 800; color: var(--qt-primary); }
.qt-jmonth-kicker svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .qt-journal-cols { grid-template-columns: 1fr; }
  .qt-jside { position: static; order: 2; }
}

/* 0.59.1: phone tale actions: an even 3 x 2 grid; Follow drops the name. */
@media (max-width: 600px) {
  .qt-sp-actionrow:not(.qt-sp-actionrow--copy) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .qt-sp-actionrow:not(.qt-sp-actionrow--copy) > *, .qt-sp-actionrow:not(.qt-sp-actionrow--copy) .qt-react, .qt-sp-actionrow:not(.qt-sp-actionrow--copy) .qt-react-btn { width: 100%; min-width: 0; justify-content: center; padding-left: .4rem; padding-right: .4rem; white-space: nowrap; }
  .qt-sp-actionrow .qt-follow-name { display: none; }
}

/* 0.59.6: minimal tables (Team Dashboard, account): no box, no column lines, no stripes; quiet row dividers. */
.qt-table-wrap { border: 0; border-radius: 0; background: none; }
.qt .qt-table, .qt .qt-table th, .qt .qt-table td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; background: none !important; }
.qt .qt-table th { padding: .5rem .75rem; border-bottom: 1px solid var(--qt-line) !important; font-size: .7rem; font-weight: 700; color: var(--qt-muted); }
.qt .qt-table td { padding: .85rem .75rem; border-bottom: 1px solid rgba(28, 37, 32, .06) !important; color: var(--qt-ink-2); }
.qt .qt-table tr:last-child td { border-bottom: 0 !important; }
.qt .qt-table tbody tr:hover td { background: rgba(28, 37, 32, .025) !important; }
.qt .qt-table td:first-child { color: var(--qt-ink); }
.qt .qt-table td:last-child { text-align: right; white-space: nowrap; }
.qt .qt-table td form { display: inline; }
.qt .qt-table td .qt-btn, .qt .qt-table td button { min-height: 0; padding: .25rem .5rem; border: 0 !important; border-radius: var(--qt-r); background: none !important; box-shadow: none; color: var(--qt-ink-2); font-size: .82rem; font-weight: 700; }
.qt .qt-table td .qt-btn:hover, .qt .qt-table td button:hover { background: rgba(28, 37, 32, .06) !important; color: var(--qt-ink); }
.qt .qt-table td button[value="delete"], .qt .qt-table td button[value*="ban"], .qt .qt-table td .qt-btn-danger { color: #B42318; }
.qt .qt-table td button[value="delete"]:hover, .qt .qt-table td .qt-btn-danger:hover { background: #FEECEB !important; color: #B42318; }

/* 0.59.8: members table: name over email (no ragged wrap), action dropdown + Apply on one line. */
.qt .qt-table .qt-queue-member { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: .6rem; align-items: center; margin: 0; line-height: 1.3; }
.qt .qt-table .qt-queue-member .qt-av { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; }
.qt .qt-table .qt-queue-member > a { font-weight: 700; color: var(--qt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt .qt-table .qt-queue-member > .qt-muted { grid-column: 2; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt .qt-table .qt-queue-member + .qt-chip { margin: .3rem 0 0 calc(28px + .6rem); font-size: .7rem; padding: .1rem .5rem; }
.qt .qt-table td { white-space: nowrap; }
.qt .qt-table td:first-child { white-space: normal; max-width: 340px; }
.qt .qt-table .qt-row-actions { display: inline-flex !important; align-items: center; gap: .35rem; flex-wrap: nowrap; margin: 0; }
.qt .qt-table .qt-row-actions select { width: auto; min-width: 9rem; min-height: 34px; padding-top: .3rem; padding-bottom: .3rem; font-size: .82rem; }
.qt .qt-table .qt-row-actions .qt-btn { flex: none; }
.qt .qt-table .qt-row-actions select { width: 11.5rem; min-width: 0; }

/* 0.60.0: activity lists match the minimal tables: no box, no tinted rows; team actions marked by a small dot. */
.qt .qt-activity { border: 0; border-radius: 0; background: none; }
.qt .qt-activity li { position: relative; padding: .7rem .25rem .7rem 1.1rem; border-bottom: 1px solid rgba(28, 37, 32, .06); color: var(--qt-ink-2); }
.qt .qt-activity li.is-mod { background: none; }
.qt .qt-activity li::before { content: ""; position: absolute; left: .2rem; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%; background: var(--qt-line-2); }
.qt .qt-activity li.is-mod::before { background: var(--qt-accent); }
.qt .qt-activity li:hover { background: rgba(28, 37, 32, .025); }

/* 0.60.1: "Replying to X" sits on its own row above the reply box instead of taking the box's grid cell. */
.qt-comment-input .qt-replying { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; color: var(--qt-ink-2); }
.qt-comment-input .qt-replying[hidden] { display: none; }


/* 0.60.2: nested replies to any depth. Each level indents with a thread line; past 4 levels the
   indent stops growing (still threaded) so deep chains stay readable on phones. */
.qt-comment-kids { display: flex; flex-direction: column; gap: .75rem; margin: -.25rem 0 0 1.1rem; padding-left: 1.1rem; border-left: 2px solid var(--qt-line); }
.qt-comment-kids--flat { margin-left: 0; padding-left: 0; border-left: 0; }
.qt-comment-kids .qt-comment--reply { margin-left: 0; }
@media (max-width: 600px) { .qt-comment-kids { margin-left: .5rem; padding-left: .65rem; } }

/* 0.60.3: a calmer "Start a post" composer: white fields with fine borders, quiet labels, compact topic chips. */
.qt-hub-compose .qt-form { gap: 1rem; padding: 1.25rem 1.4rem 1.25rem; }
.qt-hub-compose .qt-label { font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--qt-muted); margin-bottom: .35rem; }
.qt-hub-compose .qt-label .qt-req, .qt-hub-compose .qt-label abbr { display: none; }
body.qt-sec .qt-hub-compose .qt-input, .qt-hub-compose .qt-input { background: #fff !important; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r); box-shadow: none; }
.qt-hub-compose .qt-input:focus { border-color: var(--qt-primary); box-shadow: 0 0 0 3px var(--qt-primary-soft); outline: 0; }
.qt-hub-compose input[name="title"] { font-size: 1.05rem; font-weight: 700; padding: .65rem .85rem; }
.qt-hub-compose textarea { min-height: 120px; padding: .75rem .85rem; font-size: .98rem; }
.qt-hub-compose .qt-input::placeholder { color: var(--qt-muted); font-weight: 400; }
.qt-hub-compose .qt-seg { gap: .35rem; flex-wrap: wrap; }
.qt-hub-compose .qt-seg-opt span { padding: .3rem .75rem; font-size: .82rem; min-height: 0; }
.qt-hub-compose .qt-form-actions, .qt-hub-compose .qt-actions { margin-top: 0; padding-top: .9rem; border-top: 1px solid var(--qt-line); display: flex; justify-content: flex-end; gap: .5rem; }
.qt-hub-compose .qt-form-actions .qt-btn, .qt-hub-compose .qt-actions .qt-btn { min-height: 38px; padding: .45rem 1.2rem; }
.qt-comment-kids .qt-comment--reply { margin-left: 0; padding-left: 0; border-left: 0; }
.qt-av-initials, span.qt-av-initials { color: #fff !important; }

/* 0.60.7: the avatar sits inside the comment card (the card is the whole comment, not just the text). */
.qt-comment { align-items: flex-start; gap: .7rem; padding: .75rem .9rem; background: var(--qt-surface); border: 1px solid var(--qt-line); border-radius: var(--qt-r); }
.qt-comment > .qt-av { width: 32px !important; height: 32px !important; font-size: 13px !important; margin-top: .1rem; }
.qt-comment-body { padding: 0; background: none; border: 0; border-radius: 0; }

/* 0.60.9: photo + video side by side: the listing gallery's grid-area leaked in and pushed the photo into a
   stray column. Photo left, video right, equal 4:3 frames. */
.qt-sp-media .qt-gallery { grid-area: auto; }
.qt-sp-media--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.qt-sp-media--two > .qt-sp-gallery { grid-column: 1; grid-row: 1; }
.qt-sp-media--two > .qt-sp-video { grid-column: 2; grid-row: 1; }
.qt-sp-media--two .qt-gallery-main, .qt-sp-media--two .qt-sp-video { width: 100%; aspect-ratio: 4 / 3; }
@media (max-width: 700px) {
  .qt-sp-media--two { grid-template-columns: 1fr !important; }
  .qt-sp-media--two > .qt-sp-video { grid-column: 1; grid-row: 2; }
}


/* 0.61.1: "Ready to share?" band: white button on the blue gradient (green on blue was too low contrast). */
.qt-band--cta .qt-el-band .elementor-widget-button:not(.qt-el-btn-ghost) .elementor-button { background: #fff !important; color: var(--qt-primary) !important; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.qt-band--cta .qt-el-band .elementor-widget-button:not(.qt-el-btn-ghost) .elementor-button:hover { background: #F2FAF0 !important; }
/* Any primary Elementor button: brand green, never the old accent orange. */
.qt-site .elementor-widget-button:not(.qt-el-btn-ghost) .elementor-button[style*="FF853F"], .qt-site .elementor-button.elementor-button-accent { background: var(--qt-primary) !important; color: #fff !important; }

/* Numbered prompts: a clean two-column list with large numerals and fine dividers (no tiles). */
.qt-el-numbered ol { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 2.5rem; }
.qt-el-numbered ol li { padding: 1rem 0 1rem 3.1rem; background: none !important; border: 0; border-bottom: 1px solid var(--tint, var(--qt-line)); border-radius: 0; box-shadow: none !important; line-height: 1.55; }
.qt-el-numbered ol li::before { left: 0; top: .9rem; width: 2.1rem; height: 2.1rem; background: none; border: 2px solid var(--tone); color: var(--tone); font-size: .95rem; font-weight: 800; }

/* Guidelines: a simple check list in two columns (no tiles, no side bars). */
.qt-el-checks ul { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 2.5rem; }
.qt-el-checks ul li { padding: .85rem 0 .85rem 2.1rem; background: none !important; border: 0; border-bottom: 1px solid rgba(28, 37, 32, .08); border-radius: 0; box-shadow: none !important; line-height: 1.55; }
.qt-el-checks ul li::before { left: 0; top: 1.05rem; }

/* 0.61.2: Filter feed: a selected type gets a soft accent fill and accent border, not just a filled icon. */
.qt-feed-kind { border: 1.5px solid transparent; }
.qt-feed-kind:has(input:checked) { background: var(--qt-primary-soft) !important; border-color: var(--qt-primary); color: var(--qt-primary) !important; }
.qt-feed-kind:has(input:checked)::after { content: "" !important; width: 16px; height: 16px; margin-left: auto; border-radius: 0; background: var(--qt-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 0.61.5: "Remove this key" under a saved key in Team Dashboard > Settings. */
.qt-key-remove { display: inline-flex; align-items: center; gap: .4rem; margin: -.35rem 0 .9rem; font-size: .82rem; font-weight: 700; color: #B42318; cursor: pointer; }
.qt-key-remove input { width: 16px; height: 16px; accent-color: #B42318; }


/* 0.61.6: saved keys: masked value, Saved, Edit / Remove on one line. */
.qt-key { margin: 0 0 1rem; }
.qt-key .qt-label { display: block; margin-bottom: .4rem; }
.qt-key-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.qt-key-row[hidden], .qt-key-edit[hidden], .qt-key-gone[hidden] { display: none; }
.qt-key-val { padding: .3rem .6rem; border-radius: var(--qt-r); background: var(--qt-primary-soft); color: var(--qt-primary); font: 700 .9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.qt-key-saved { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 700; color: var(--qt-primary); }
.qt-key-saved svg { width: 14px; height: 14px; }
.qt-key-btn { margin-left: .25rem; padding: .25rem .6rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r); background: #fff; color: var(--qt-ink-2); font-size: .8rem; font-weight: 700; cursor: pointer; }
.qt-key-btn:hover { border-color: var(--qt-ink-2); color: var(--qt-ink); }
.qt-key-row .qt-key-btn + .qt-key-btn { margin-left: 0; }
.qt-key-btn--remove { color: #B42318; }
.qt-key-btn--remove:hover { border-color: #B42318; color: #B42318; background: #FEECEB; }
.qt-key-edit { margin-top: .6rem; }
.qt-key-edit .qt-field > .qt-label, .qt-key-edit .qt-label { display: none; }
.qt-key-gone { margin: .2rem 0 0; font-size: .85rem; color: #B42318; font-weight: 600; }


/* 0.61.7: key connection status. */
.qt-key-saved em { font-style: normal; font-weight: 600; color: var(--qt-muted); margin-left: .25rem; }
.qt-key-saved.is-fail { color: #B42318; }
.qt-key-saved.is-fail em { color: #B42318; opacity: .85; }
.qt-key-saved.is-plain { color: var(--qt-ink-2); }
.qt-key-val.is-fail { background: #FEECEB; color: #B42318; }


/* 0.61.9: Account settings: one page, section links at the top, sections separated by space + a rule. */
.qt-set-nav { position: sticky; top: calc(var(--qt-head-h, 64px) + .5rem); z-index: 5; display: flex; gap: .4rem; margin: 0 0 1.25rem; padding: .4rem; border-radius: var(--qt-pill); background: #fff; box-shadow: var(--qt-lift); width: max-content; max-width: 100%; }
.qt-set-nav a { padding: .4rem .9rem; border-radius: var(--qt-pill); color: var(--qt-ink-2); font-weight: 700; font-size: .88rem; text-decoration: none !important; }
.qt-set-nav a:hover { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-set-sec { scroll-margin-top: calc(var(--qt-head-h, 64px) + 4rem); }
.qt-set-sec + .qt-set-sec { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--qt-line); }
.qt-set-sec > .qt-h3, .qt-set-sec > .qt-alert + .qt-h3 { margin: 0 0 1rem; font-size: 1.35rem; }
.qt-set-sec .qt-profile-pets { margin-top: 2rem; }
.qt-set-sec .qt-profile-pets .qt-h2 { font-size: 1.35rem; margin: 0 0 1rem; font-family: var(--qt-font-h); }
html.qt-head-hidden .qt-set-nav { top: calc(var(--qt-admin-h, 0px) + .5rem); }
.admin-bar .qt-set-nav { --qt-admin-h: 32px; }
@media (max-width: 782px) { .admin-bar .qt-set-nav { --qt-admin-h: 46px; } }
@media (max-width: 600px) { .qt-set-nav { width: 100%; justify-content: space-between; } .qt-set-nav a { flex: 1; text-align: center; padding: .45rem .5rem; } }

/* 0.62.2 (Smitha 10-20): light sage footer so the full-colour logo (eyelash included) shows with no white box; no TM mark. */
.qt-footer { background: #DCE7D3 !important; color: #2F3B33; }
.qt-footer::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22c120-14 240-20 360-12s240 22 360 18 240-22 360-24 240 8 360 14v22z' fill='%23DCE7D3'/%3E%3C/svg%3E") !important; }
.qt-footer .qt-logo { padding: 0; background: none !important; border-radius: 0; }
.qt-footer .qt-logo img { filter: none !important; max-height: 52px; }
.qt-footer .qt-wordmark { color: #1F4D29; }
.qt-footer-brand p { color: #46524A; }
.qt-footer-col h2 { color: #1F4D29; }
.qt-footer a { color: #2F3B33; }
.qt-footer a:hover { color: #1F4D29; }
.qt-footer-base { border-top-color: rgba(31, 77, 41, .15) !important; color: #46524A; }
.qt-footer-base a { color: #1F4D29; }
.qt-footer .qt-btn-primary, .qt-footer a.qt-btn-primary { background: var(--qt-primary) !important; color: #fff !important; }
.qt-footer .qt-btn-primary:hover, .qt-footer a.qt-btn-primary:hover { background: #2D6519 !important; text-decoration: none; }
.qt-header .qt-logo::after, .qt-footer .qt-logo::after { content: none !important; }
/* Home hero photo rotator: on phones its column was flex-shrunk to 0 height (photos hidden behind the next band). */
.e-con:has(> .elementor-widget-shortcode .qt-hero-rot), .elementor-widget-shortcode:has(.qt-hero-rot) { flex-shrink: 0 !important; min-height: max-content; }
@media (max-width: 1024px) {
  .e-con:has(> .elementor-widget-shortcode .qt-hero-rot) { flex: 0 0 100% !important; width: 100% !important; max-width: 100%; }
  .elementor-widget-shortcode:has(.qt-hero-rot) { width: 100% !important; }
  .qt-hero-rot { width: 100%; height: auto; min-height: 220px; }
}

/* 0.62.4: notifications panel on phones spans the screen under the header instead of hanging off the left edge. */
@media (max-width: 600px) {
  .qt-bell-panel { position: fixed; top: calc(var(--qt-head-h, 64px) + 6px); left: 8px; right: 8px; width: auto; max-height: calc(100vh - var(--qt-head-h, 64px) - 90px); }
}


/* 0.62.5: drafts. */
.qt-pill-draft { background: var(--qt-amber-soft) !important; color: #6B5500 !important; }
.qt-pill-draft svg { width: 13px; height: 13px; }
.qt-form-actions { flex-wrap: wrap; }

/* =====================================================================
   0.62.6: post composer (Share a tale + every listing form).
   One centred column, numbered steps, a roomy photo drop area, quiet fields,
   and an action bar that stays in reach at the bottom of the screen.
   ===================================================================== */
.qt-formwrap { --fx: var(--tone, var(--qt-primary)); max-width: 820px !important; margin: 0 auto; padding-bottom: 1rem; counter-reset: qtstep; }
.qt-formwrap > .qt-h2 { margin: .5rem 0 .4rem; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); text-align: left; }
.qt-formwrap > .qt-lede { margin: 0 0 1.75rem; font-size: 1.02rem; color: var(--qt-ink-2); }
.qt-formwrap > .qt-lede a { color: var(--fx); font-weight: 700; }
/* single column: the story / details first, photos after */
.qt-formwrap .qt-form-cols { display: flex !important; flex-direction: column; gap: 1rem; }
.qt-formwrap .qt-form-main, .qt-formwrap .qt-form-side { display: contents; }
/* sections keep their natural order (tales: who, story, photos; listings: basics, photos, details...) */
.qt-formwrap .qt-form-cols > .is-sticky { position: static; }

/* step cards */
.qt-formwrap .qt-fs { counter-increment: qtstep; position: relative; padding: 1.4rem 1.6rem 1.6rem 4.4rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); background: var(--qt-surface); box-shadow: 0 1px 2px rgba(28, 37, 32, .04); gap: 1.15rem; }
.qt-formwrap .qt-fs::before { content: counter(qtstep); position: absolute; left: 1.4rem; top: 1.35rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--fx); color: var(--fx); font: 800 .9rem/1 var(--qt-font); }
.qt-formwrap .qt-fs:focus-within { border-color: color-mix(in srgb, var(--fx) 45%, var(--qt-line)); box-shadow: 0 6px 24px -14px rgba(28, 37, 32, .35); }
.qt-formwrap .qt-fs:focus-within::before { background: var(--fx); color: #fff; }
.qt-formwrap .qt-fs legend { font-family: var(--qt-font-h); font-size: 1.2rem; font-weight: 400; margin-bottom: .1rem; }
.qt-formwrap .qt-fs-hint { font-size: .9rem; }

/* fields */
.qt-formwrap .qt-label { font-size: .82rem; font-weight: 800; color: var(--qt-ink); margin-bottom: .4rem; }
.qt-formwrap .qt-opt { font-weight: 600; color: var(--qt-muted); }
.qt-formwrap .qt-req { color: var(--fx); }
.qt-formwrap .qt-input { background: #fff !important; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r); min-height: 46px; padding: .65rem .85rem; font-size: 1rem; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.qt-formwrap .qt-input:hover { border-color: color-mix(in srgb, var(--qt-ink) 30%, var(--qt-line-2)); }
.qt-formwrap .qt-input:focus { border-color: var(--fx); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fx) 18%, transparent); outline: 0; }
.qt-formwrap .qt-input::placeholder { color: var(--qt-muted); }
.qt-formwrap input[name="title"] { font-size: 1.15rem; font-weight: 700; min-height: 52px; }
.qt-formwrap textarea.qt-input { min-height: 170px; line-height: 1.65; resize: vertical; }
.qt-formwrap .qt-hint { font-size: .84rem; color: var(--qt-muted); }
.qt-formwrap .qt-fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

/* chips / segmented */
.qt-formwrap .qt-seg { gap: .4rem; flex-wrap: wrap; }
.qt-formwrap .qt-seg-opt span { min-height: 38px; padding: .45rem .95rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); background: #fff; font-size: .88rem; font-weight: 700; color: var(--qt-ink-2); transition: all .15s; }
.qt-formwrap .qt-seg-opt:hover span { border-color: var(--fx); color: var(--fx); }
.qt-formwrap .qt-seg-opt input:checked + span { background: var(--fx); border-color: var(--fx); color: #fff; box-shadow: 0 4px 12px -6px var(--fx); }

/* photos: a real drop area */
.qt-formwrap .qt-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; }
.qt-formwrap .qt-photo, .qt-formwrap .qt-photo-add { width: auto; height: auto; aspect-ratio: 1; border-radius: var(--qt-r-lg); }
.qt-formwrap .qt-photo-add { grid-column: 1 / -1; aspect-ratio: auto; min-height: 150px; flex-direction: column; gap: .5rem; border: 2px dashed color-mix(in srgb, var(--fx) 35%, var(--qt-line-2)); background: color-mix(in srgb, var(--fx) 5%, #fff); color: var(--qt-ink-2); font-size: .95rem; transition: all .15s; }
.qt-formwrap .qt-photo-add svg { width: 30px; height: 30px; color: var(--fx); }
.qt-formwrap .qt-photo-add span::after { content: " · JPG, PNG or WebP"; font-weight: 500; color: var(--qt-muted); }
.qt-formwrap .qt-photo-add:hover, .qt-formwrap .qt-photo-add.is-drag { border-color: var(--fx); background: color-mix(in srgb, var(--fx) 10%, #fff); color: var(--fx); }
.qt-formwrap .qt-photo ~ .qt-photo-add { grid-column: auto; aspect-ratio: 1; min-height: 0; }
.qt-formwrap .qt-photo ~ .qt-photo-add span::after { content: none; }
.qt-formwrap input[type="file"].qt-input { padding: .45rem; min-height: 0; font-size: .9rem; color: var(--qt-ink-2); }
.qt-formwrap input[type="file"]::file-selector-button { margin-right: .75rem; padding: .45rem .9rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); background: var(--qt-surface); color: var(--qt-ink); font: 700 .85rem var(--qt-font); cursor: pointer; }
.qt-formwrap input[type="file"]::file-selector-button:hover { border-color: var(--fx); color: var(--fx); }

/* action bar that stays in reach */
.qt-formwrap .qt-form-actions { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; justify-content: flex-end; align-items: center; gap: .6rem; margin-top: 1.25rem; padding: .7rem .8rem .7rem 1.2rem !important; border: 1px solid var(--qt-line); border-radius: var(--qt-pill); background: color-mix(in srgb, var(--qt-surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 32px -16px rgba(28, 37, 32, .45); }
.qt-formwrap .qt-form-actions::before { content: "Changes are saved when you click a button"; margin-right: auto; font-size: .82rem; color: var(--qt-muted); }
.qt-formwrap .qt-form-actions .qt-btn { min-height: 44px; padding: .55rem 1.3rem; }
.qt-formwrap .qt-form-actions .qt-btn-primary { background: var(--fx); border-color: var(--fx); }
@media (max-width: 960px) { .qt-formwrap .qt-form-actions { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 600px) {
  .qt-formwrap .qt-fs { padding: 1.15rem 1.1rem 1.25rem 1.1rem; }
  .qt-formwrap .qt-fs::before { position: static; margin-bottom: -.35rem; }
  .qt-formwrap .qt-form-actions { border-radius: var(--qt-r-lg); padding: .6rem !important; }
  .qt-formwrap .qt-form-actions::before { display: none; }
  .qt-formwrap .qt-form-actions .qt-btn { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
  .qt-formwrap .qt-fs::before { position: absolute; left: auto; right: 1rem; top: 1.1rem; width: 1.6rem; height: 1.6rem; margin: 0; font-size: .8rem; }
  .qt-formwrap .qt-fs legend { padding-right: 2.2rem; }
}

/* =====================================================================
   0.62.9: one light brand-blue background on every page. Post-type colours
   (tales purple, adopt magenta, lost red, shop blue, hub teal) stay only in
   small accents: icons, pills, borders, buttons, step numbers.
   ===================================================================== */
:root { --qt-bg: #EEF6FA; --qt-page-line: #D5E6EF; }
body.qt-site, body.qt-sec, body.qt-sec-home, body.qt-sec-tales, body.qt-sec-store, body.qt-sec-adopt, body.qt-sec-lost, body.qt-sec-hub { --page: #EEF6FA; --tint: #D5E6EF; background: #EEF6FA; }
/* header and sidebar: white panels on the blue */
.qt-header, body.qt-sec .qt-header { background: rgba(255, 255, 255, .94) !important; }
@media (max-width: 1080px) { .qt-header { background: #fff !important; } }
@media (min-width: 961px) {
  body.qt-sec .qt-side {
    background: #fff;
    box-shadow:
      -3px -80px 0 #fff, 0 -80px 0 var(--tone),
      -3px 140px 0 #fff, 0 140px 0 var(--tone),
      -280px 30px 0 140px #fff, -560px 30px 0 140px #fff, -840px 30px 0 140px #fff, -1120px 30px 0 140px #fff,
      -1400px 30px 0 140px #fff, -1680px 30px 0 140px #fff, -1960px 30px 0 140px #fff, -2240px 30px 0 140px #fff;
  }
}
.qt-appmenu-main, .qt-appmenu-create { background: #EEF6FA; }
/* bands: the post-type washes go; the band keeps its accent (eyebrow, icons, buttons) through --tone */
.qt-band--sage, .qt-band--tales, .qt-band--store, .qt-band--adopt, .qt-band--lost, .qt-band--hub, .qt-band--invite, .qt-band--cta { --band: #EEF6FA; --tint: #D5E6EF; }
.qt-band--white { --band: #fff; }
.qt-band--hero { --band: radial-gradient(1100px 420px at 85% 0%, #D6EEF8 0%, rgba(214, 238, 248, 0) 70%), radial-gradient(900px 420px at 0% 100%, #E3F0F6 0%, rgba(227, 240, 246, 0) 70%), #EEF6FA; }
/* alternate white / blue on stacked bands so sections still read as sections */
.qt-band--sage:nth-of-type(even), .qt-band--tales:nth-of-type(even), .qt-band--store:nth-of-type(even), .qt-band--adopt:nth-of-type(even), .qt-band--lost:nth-of-type(even), .qt-band--hub:nth-of-type(even) { --band: #F7FBFD; }


/* 0.63.0: Lost / Found field wrappers sit in the details grid like plain fields. */
.qt-kindf { min-width: 0; }
.qt-kindf[hidden] { display: none !important; }

/* 0.63.0: Tales use the brand green accent; Community Hub takes the purple. */
body.qt-sec-tales { --tone: #2D6519; }
body.qt-sec-hub   { --tone: #6E4B9E; }
.qt-band--tales { --tone: #2D6519; }
.qt-band--hub   { --tone: #6E4B9E; }
.qt-el-card.qt-tone-tales { --tone: #2D6519; --tint: #E6F0DD; }
.qt-el-card.qt-tone-hub   { --tone: #6E4B9E; --tint: #F0EAF8; }
.qt-i-tales, .qt-i-t-tales, .qt-i-book, .qt-i-pen, .qt-i-feather { --ic: #2D6519; }
.qt-i-hub, .qt-i-t-hub { --ic: #6E4B9E; }
.qt-feed-item--story  { --ft: #2D6519; }
.qt-feed-item--thread { --ft: #6E4B9E; }
.qt-jpill--tales, .qt-jcard--tales { --pc: #2D6519; }
.qt-jpill--hub, .qt-jcard--hub { --pc: #6E4B9E; }


/* 0.63.2: invite card: white card on the page colour; the band around it covers the sidebar's extension. */
.qt-invite { background: #fff !important; border: 1px solid var(--qt-line); box-shadow: 0 10px 28px -18px rgba(28, 37, 32, .35), 0 0 0 100vmax var(--page, var(--qt-bg)) !important; clip-path: inset(-3rem -100vmax); z-index: 3; }
.qt-invite .qt-h2 { font-size: clamp(1.35rem, 1rem + 1vw, 1.7rem); }
.qt-invite-box .qt-input { background: var(--qt-bg) !important; border-color: var(--qt-line-2); font-size: .92rem; }
.qt-band--invite .qt-invite { background: linear-gradient(120deg, #1679A0 0%, #26ABD8 100%) !important; border: 0; box-shadow: 0 14px 30px -18px rgba(20, 115, 154, .55) !important; clip-path: none; }

/* =====================================================================
   0.63.3: no more tan. Lines, hovers and sunken fills use cool greys that sit
   with the light blue page; card outlines go (cards are set off by shadow).
   ===================================================================== */
:root {
  --qt-line: #E1E7EC;
  --qt-line-2: #C9D2DA;
  --qt-sunken: #EDF1F4;
}
:is(.qt-card, .qt-story-card, .qt-wallpost, .qt-feed-compose, .qt-hub-compose, .qt-prof-card, .qt-rail-card, .qt-pet-card, .qt-petcard, .qt-acct-card, .qt-res-card, .qt-threads, .qt-gate, .qt-comment, .qt-invite, .qt-jcard, .qt-jside-card, .qt-formwrap .qt-fs, .qt-fs, .qt-table-wrap, .qt-feed-right > *, .qt-side-card, .qt-sp-follow-card, .qt-lf-contact, .qt-detail-card, .qt-notif-page, .qt-bell-panel) { border-color: transparent !important; }
:is(.qt-card, .qt-story-card, .qt-wallpost, .qt-prof-card, .qt-rail-card, .qt-pet-card, .qt-petcard, .qt-res-card, .qt-comment, .qt-jcard, .qt-fs) { box-shadow: 0 1px 2px rgba(23, 43, 56, .05), 0 4px 14px -8px rgba(23, 43, 56, .18); }
.qt-appmenu-main, .qt-appmenu-create { background: var(--qt-bg); }


/* =====================================================================
   0.64.0: pop-up post writers.
   ===================================================================== */
button.qt-feed-prompt { flex: 1; text-align: left; border: 0; cursor: pointer; font: inherit; }
.qt-compose-modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: var(--qt-r-lg); background: #fff; color: var(--qt-ink); box-shadow: 0 30px 80px -20px rgba(15, 30, 40, .45); overflow: hidden; }
.qt-compose-modal[open] { display: flex; flex-direction: column; animation: qtPop .18s ease-out; }
.qt-compose-modal::backdrop { background: rgba(20, 32, 40, .55); backdrop-filter: blur(2px); }
@keyframes qtPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.qt-compose-form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 40px); }
.qt-compose-head { position: relative; display: flex; align-items: center; justify-content: center; padding: 1rem 3.5rem; border-bottom: 1px solid var(--qt-line); }
.qt-compose-head h2 { margin: 0; font: 800 1.15rem var(--qt-font); }
.qt-compose-x { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--qt-sunken); color: var(--qt-ink-2); cursor: pointer; }
.qt-compose-x:hover { background: var(--qt-line); color: var(--qt-ink); }
.qt-compose-x svg { width: 18px; height: 18px; }
.qt-compose-body { display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1.1rem .5rem; overflow-y: auto; }
.qt-compose-who { display: flex; align-items: center; gap: .65rem; }
.qt-compose-who .qt-av { border-radius: 50%; }
.qt-compose-who strong { display: block; font-size: .98rem; }
.qt-compose-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.qt-pill-select { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--qt-r); background: var(--qt-sunken); font-size: .8rem; font-weight: 700; color: var(--qt-ink-2); }
.qt-pill-select[hidden] { display: none; }
.qt-pill-select svg { width: 13px; height: 13px; }
.qt-pill-select select { border: 0; background: transparent; font: inherit; color: inherit; padding: .15rem 0; cursor: pointer; }
.qt-compose-title { border: 0; padding: .2rem 0; font: 800 1.05rem var(--qt-font); color: var(--qt-ink); background: transparent; }
.qt-compose-title:focus, .qt-compose-text:focus { outline: 0; }
.qt-compose-text { border: 0; padding: 0; min-height: 110px; resize: none; font: 400 1.3rem/1.45 var(--qt-font); color: var(--qt-ink); background: transparent; }
.qt-compose-text::placeholder, .qt-compose-title::placeholder { color: var(--qt-muted); }
.qt-compose-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.qt-compose-photos .qt-photo { width: auto; height: auto; aspect-ratio: 1; }
.qt-compose-photos .qt-photo-add { display: none; }
.qt-compose-cats { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.qt-compose-label { margin-right: .25rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--qt-muted); }
.qt-compose-cats .qt-seg-opt span { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-pill); font-size: .8rem; font-weight: 700; color: var(--qt-ink-2); cursor: pointer; }
.qt-compose-cats .qt-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qt-compose-cats .qt-seg-opt input:checked + span { background: var(--qt-primary); border-color: var(--qt-primary); color: #fff; }
.qt-compose-cats .qt-seg-opt input:focus-visible + span { outline: 2px solid var(--qt-primary); outline-offset: 2px; }
.qt-compose-add { display: flex; align-items: center; gap: .35rem; margin: .5rem 1.1rem 0; padding: .55rem .6rem .55rem 1rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r-lg); }
.qt-compose-add > span { margin-right: auto; font-weight: 800; font-size: .92rem; }
.qt-compose-tool { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--qt-primary); cursor: pointer; }
.qt-compose-tool:hover { background: var(--qt-sunken); }
.qt-compose-tool svg { width: 22px; height: 22px; }
.qt-compose-tool + .qt-compose-tool svg { color: var(--qt-accent); }
.qt-compose-foot { display: flex; gap: .5rem; padding: .8rem 1.1rem 1.1rem; }
.qt-compose-foot .qt-btn { min-height: 42px; }
.qt-compose-foot .qt-btn-primary { flex: 1; justify-content: center; }
.qt-compose-foot .qt-btn-primary:disabled { background: var(--qt-sunken) !important; border-color: var(--qt-sunken) !important; color: var(--qt-muted) !important; box-shadow: none; cursor: not-allowed; }

/* Hub composer: the open <details> becomes a centred dialog over a dimmed page */
.qt-hub-compose[open] > .qt-form { position: fixed; z-index: 10001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 0 1.25rem 1.25rem !important; border-radius: var(--qt-r-lg); background: #fff; box-shadow: 0 30px 80px -20px rgba(15, 30, 40, .45); animation: qtPop .18s ease-out; }
.qt-hub-compose[open] > .qt-form .qt-compose-head { margin: 0 -1.25rem .75rem; }
.qt-hub-compose:not([open]) .qt-compose-head { display: none; }
.qt-hub-compose-backdrop { display: none; }
.qt-hub-compose[open] .qt-hub-compose-backdrop { display: block; position: fixed; inset: 0; z-index: 10000; background: rgba(20, 32, 40, .55); backdrop-filter: blur(2px); }
.qt-hub-compose[open] > summary { border-bottom: 0; }
.qt-compose-add { width: auto; box-sizing: border-box; max-width: calc(100% - 2.2rem); }
.qt-compose-cats .qt-seg-opt { position: relative; display: inline-flex; }
.qt-compose-cats .qt-seg-opt span { display: inline-flex; align-items: center; min-height: 30px; height: auto; line-height: 1.2; padding: .25rem .75rem; }

/* 0.64.2: pop-up writer: title and text get outlined fields. */
.qt-compose-title, .qt-compose-text { width: 100%; box-sizing: border-box; border: 1px solid var(--qt-line-2) !important; border-radius: var(--qt-r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.qt-compose-title { padding: .6rem .8rem; font-size: 1rem; }
.qt-compose-text { padding: .7rem .8rem; min-height: 120px; font-size: 1.1rem; }
.qt-compose-title:focus, .qt-compose-text:focus { border-color: var(--qt-primary) !important; box-shadow: 0 0 0 3px rgba(45, 101, 25, .15); }

.qt-compose-need { margin: .6rem 1.1rem 0; min-height: 1.2em; font-size: .85rem; color: var(--qt-muted); }
.qt-compose-need:empty { display: none; }
.qt-compose-body > .qt-alert { margin: 0; }
/* hub pop-up: animate without fighting the centring transform */
@keyframes qtPopC { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
.qt-hub-compose[open] > .qt-form { animation: qtPopC .18s ease-out; }
.qt-compose-tool svg, .qt-compose-x svg { display: block; margin: 0 !important; flex: none; } .qt-compose-tool, .qt-compose-x { padding: 0; line-height: 0; }


/* =====================================================================
   0.65.0: post kind picker, embedded forms, recent-post cards, followers-only.
   ===================================================================== */
.qt-compose-back { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--qt-sunken); color: var(--qt-ink-2); cursor: pointer; }
.qt-compose-back[hidden] { display: none; }
.qt-compose-back svg { width: 18px; height: 18px; margin: 0; }
.qt-compose-pane[hidden], .qt-compose-pick[hidden] { display: none !important; }
.qt-compose-pane { display: flex; flex-direction: column; min-height: 0; }
.qt-compose-pick { padding: 1.1rem 1.1rem 1.3rem; overflow-y: auto; }
.qt-compose-q { margin: 0 0 .85rem; font-weight: 800; color: var(--qt-ink); }
.qt-compose-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.qt-compose-kind { --k: var(--qt-primary); display: flex; align-items: center; gap: .75rem; padding: .85rem .9rem; border: 1px solid var(--qt-line); border-radius: var(--qt-r-lg); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.qt-compose-kind:hover, .qt-compose-kind:focus-visible { border-color: var(--k); box-shadow: 0 6px 18px -12px var(--k); transform: translateY(-1px); outline: 0; }
.qt-compose-kind strong { display: block; font-size: .98rem; color: var(--qt-ink); }
.qt-compose-kind small { display: block; margin-top: .1rem; font-size: .8rem; line-height: 1.35; color: var(--qt-muted); }
.qt-compose-kind-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--k) 12%, #fff); color: var(--k); }
.qt-compose-kind-ico svg { width: 22px; height: 22px; margin: 0; --ic: var(--k); color: var(--k); }
.qt-compose-kind--tale { --k: #2D6519; } .qt-compose-kind--adoption { --k: #8E1E76; } .qt-compose-kind--lost { --k: #B00E28; }
.qt-compose-kind--found { --k: #1679A0; } .qt-compose-kind--item { --k: #14739A; } .qt-compose-kind--thread { --k: #6E4B9E; }
@media (max-width: 480px) { .qt-compose-kinds { grid-template-columns: 1fr; } }
.qt-compose-modal.is-wide { width: min(860px, calc(100vw - 24px)); }
.qt-compose-framewrap { height: min(78vh, 900px); }
.qt-compose-frame { flex: 1; width: 100%; height: 100%; border: 0; background: var(--qt-bg); }
.qt-compose-modal.is-loading .qt-compose-framewrap { background: var(--qt-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='14' fill='none' stroke='%232D6519' stroke-width='3' stroke-dasharray='60 30'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 20 20' to='360 20 20' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 40px no-repeat; }
.qt-feed-quick button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

/* forms opened inside the pop-up: just the form */
body.qt-embed .qt-header, body.qt-embed .qt-footer, body.qt-embed .qt-footer-gap, body.qt-embed .qt-back, body.qt-embed #wpadminbar, body.qt-embed .qt-formwrap > .qt-h2 { display: none !important; }
html:has(body.qt-embed) { margin-top: 0 !important; }
body.qt-embed { padding-top: 0 !important; background: var(--qt-bg); }
body.qt-embed .qt-formwrap { padding: 1rem 1rem 0; }
body.qt-embed .qt-formwrap .qt-form-actions { bottom: 10px; }

/* your recent posts on top of the feed */
.qt-mine-recent { display: flex; flex-direction: column; gap: .6rem; margin: 0 0 1rem; }
.qt-mine-recent-item { position: relative; display: flex; align-items: center; gap: .85rem; padding: .75rem 2.8rem .75rem .75rem; border-radius: var(--qt-r-lg); background: #fff; box-shadow: 0 1px 2px rgba(23, 43, 56, .05), 0 4px 14px -8px rgba(23, 43, 56, .18); }
.qt-mine-recent-item.is-new { box-shadow: 0 0 0 2px var(--qt-primary), 0 8px 22px -12px rgba(45, 101, 25, .5); animation: qtPop .3s ease-out; }
.qt-mine-recent-img { flex: none; width: 64px; height: 64px; border-radius: var(--qt-r); overflow: hidden; background: var(--qt-sunken); display: grid; place-items: center; }
.qt-mine-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.qt-mine-recent-ph svg { width: 26px; height: 26px; color: var(--qt-muted); }
.qt-mine-recent-txt { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.qt-mine-recent-txt small { font-size: .78rem; color: var(--qt-muted); }
.qt-mine-recent-txt a { color: var(--qt-ink); text-decoration: none; }
.qt-mine-recent-txt strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qt-mine-status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .3rem; font-size: .82rem; font-weight: 800; }
.qt-mine-status svg { width: 15px; height: 15px; }
.qt-mine-status em { font-style: normal; font-weight: 500; color: var(--qt-muted); }
.qt-mine-status--live { color: var(--qt-primary); }
.qt-mine-status--pending { color: #6B5500; }
.qt-mine-status--followers { color: var(--qt-accent); }
.qt-mine-status--private { color: var(--qt-ink-2); }
.qt-mine-recent-x { position: absolute; top: .55rem; right: .55rem; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--qt-muted); cursor: pointer; }
.qt-mine-recent-x:hover { background: var(--qt-sunken); color: var(--qt-ink); }
.qt-mine-recent-x svg { width: 15px; height: 15px; margin: 0; }
.qt-sp-vis { display: inline-flex; align-items: center; gap: .25rem; color: var(--qt-accent); font-weight: 700; }
.qt-sp-vis svg { width: 14px; height: 14px; }

/* 0.65.1: app menu: one column (Create first), lighter panel fills, easier to scan. */
.qt-appmenu-cols { display: flex !important; flex-direction: column; gap: .75rem; }
.qt-appmenu-create { order: -1; }
.qt-appmenu-main, .qt-appmenu-create { background: #F7FBFD !important; }
@media (min-width: 641px) { .qt-appmenu .qt-sub#qt-appmenu { width: min(440px, calc(100vw - 24px)) !important; } }
.qt-appmenu-create ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .25rem; }
@media (max-width: 400px) { .qt-appmenu-create ul { grid-template-columns: 1fr; } }
.qt-appmenu-main, .qt-appmenu-create { width: 100%; box-sizing: border-box; }
.qt-compose-kind > span:last-child { min-width: 0; } .qt-compose-kind small { white-space: normal; overflow: visible; text-overflow: clip; }


/* 0.66.0: quick-form fields in the pop-up */
.qt-compose-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; }
.qt-compose-field { display: block; min-width: 0; }
.qt-compose-field[hidden] { display: none; }
.qt-compose-input { width: 100%; box-sizing: border-box; min-height: 42px; padding: .55rem .75rem; border: 1px solid var(--qt-line-2); border-radius: var(--qt-r); background: #fff; font: 600 .95rem var(--qt-font); color: var(--qt-ink); transition: border-color .15s, box-shadow .15s; }
.qt-compose-input:focus { outline: 0; border-color: var(--qt-primary); box-shadow: 0 0 0 3px rgba(45, 101, 25, .15); }
.qt-compose-input::placeholder { color: var(--qt-muted); font-weight: 500; }
.qt-compose-check { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; font-weight: 700; font-size: .92rem; color: var(--qt-ink-2); }
.qt-compose-check input { width: 18px; height: 18px; accent-color: var(--qt-primary); }
.qt-compose-modal .qt-compose-pane:not([data-qt-compose-pane="tale"]) .qt-compose-text { min-height: 90px; font-size: 1.02rem; }
.qt-compose-modal { width: min(600px, calc(100vw - 24px)); }

/* 0.66.0: Adoption accent: a brighter raspberry pink. */
body.qt-sec-adopt { --tone: #C2368C; }
.qt-band--adopt { --tone: #C2368C; }
.qt-el-card.qt-tone-adopt { --tone: #C2368C; }
.qt-i-adopt, .qt-i-t-adopt { --ic: #C2368C; }
.qt-feed-item--adoption { --ft: #C2368C; }
.qt-compose-kind--adoption { --k: #C2368C; }
[data-qt-compose-pane="thread"] .qt-compose-add { display: none; }
/* character counts under every limited field (pop-up and full forms) */
input + .qt-count { margin-top: .2rem; }
.qt-compose-modal .qt-count { font-size: .72rem; }
.qt-count.is-near { color: #B42318; font-weight: 700; }

/* 0.66.3: post pop-up on phones: a full-screen sheet; the fields scroll, the buttons stay at the bottom. */
@media (max-width: 600px) {
  .qt-compose-modal, .qt-compose-modal.is-wide { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .qt-compose-modal[open] { display: flex; }
  .qt-compose-pane, .qt-compose-pick { flex: 1; min-height: 0; }
  .qt-compose-form { flex: 1; max-height: none; min-height: 0; }
  .qt-compose-body { flex: 1; min-height: 0; overflow-y: auto; padding: .9rem .9rem .5rem; }
  .qt-compose-pick { overflow-y: auto; padding: 1rem .9rem calc(1rem + env(safe-area-inset-bottom)); }
  .qt-compose-head { padding: calc(.8rem + env(safe-area-inset-top)) 3.25rem .8rem; }
  .qt-compose-add { margin: .4rem .9rem 0; }
  .qt-compose-need { margin: .5rem .9rem 0; }
  .qt-compose-foot { padding: .7rem .9rem calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--qt-line); background: #fff; }
  .qt-compose-row { grid-template-columns: 1fr 1fr; }
  .qt-compose-text { font-size: 1.1rem; }
  .qt-compose-pills { gap: .3rem; }
  .qt-pill-select { max-width: 100%; }
  .qt-pill-select select { max-width: 9.5rem; text-overflow: ellipsis; }
  .qt-compose-modal::backdrop { background: #fff; }
}
/* WordPress admin bar (Ivywild only): our initials badge at admin-bar size */
#wpadminbar .qt-av-initials { display: inline-grid !important; width: 18px !important; height: 18px !important; margin: -3px 0 0 6px; font-size: 10px !important; vertical-align: middle; float: none; }
.qt-compose-body { scrollbar-width: none; } .qt-compose-body::-webkit-scrollbar { display: none; }


/* 0.67.0: map pop-up tags + status */
.qt-pop-tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .2rem; }
.qt-pop-tag, .qt-pop-status { font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .1rem .45rem; border-radius: var(--qt-pill); line-height: 1.4; }
.qt-pop-tag { background: var(--qt-accent); color: #fff; }
.qt-pop-tag--lost { background: #B00E28; } .qt-pop-tag--found, .qt-pop-tag--donate { background: var(--qt-primary); } .qt-pop-tag--rescue { background: #1679A0; }
.qt-pop-status { background: var(--qt-primary-soft); color: var(--qt-primary); }
.qt-pop-status--pending { background: #FFF4C2; color: #6B5500; }
.qt-pop-status--adopted, .qt-pop-status--sold, .qt-pop-status--reunited, .qt-pop-status--closed { background: var(--qt-sunken); color: var(--qt-ink-2); }

/* 0.67.1: status tags in list view: sized to their text, never stretched or squeezed. */
.qt-grid--list :is(.qt-status, .qt-status-inline) { display: inline-flex !important; align-items: center; width: max-content !important; max-width: 100%; white-space: nowrap; justify-self: start; align-self: start; flex: none; }
.qt-grid--list .qt-card-head :is(.qt-status, .qt-status-inline) { justify-self: end; }
.qt-pop-tags { display: flex !important; flex-direction: row !important; }
.qt-pop-tags i { display: inline-block !important; width: auto !important; flex: none; }
.qt-pop-status--seen { background: #FDECEE; color: #B00E28; }
/* map pins: lost = red, found / free = green */
.qt-pin--lost { background: #B00E28 !important; color: #fff !important; } .qt-pin--lost::after { border-top-color: #B00E28 !important; }
.qt-pin--green { background: #2D6519 !important; color: #fff !important; } .qt-pin--green::after { border-top-color: #2D6519 !important; }
.qt-grid--list .qt-card-media > .qt-status { display: none !important; } /* list view already shows the status beside the title */


/* 0.68.0: map pop-up pills = card pills; linked hover; no duplicate photo status in map view. */
.qt-grid--map .qt-card-media > .qt-status { display: none !important; }
.qt-pop .qt-tag { position: static; height: 20px; padding: 0 .5rem; font-size: .64rem; box-shadow: none; }
.qt-pop .qt-status-inline { display: inline-block !important; margin: 0; font-size: .64rem; padding: .12rem .5rem; }
.qt-status-inline.qt-status--seen { background: #FDECEE; color: #B00E28; }
.qt-pin { transition: transform .15s ease, box-shadow .15s ease; }
.qt-pin.is-hot, [data-qt-pin].is-hot > .qt-pin { transform: translate(-50%, -100%) scale(1.18); box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .45); }
.qt-gpin.is-hot { z-index: 50; }
.leaflet-marker-icon:has(.qt-pin.is-hot) { z-index: 9999 !important; }
.qt-card { transition: box-shadow .15s ease, transform .15s ease; }
.qt-card.is-hot { box-shadow: 0 0 0 2px var(--tone, var(--qt-primary)), 0 10px 26px -14px rgba(23, 43, 56, .45) !important; transform: translateY(-1px); }
.qt-pop .qt-tag, .qt-pop .qt-status-inline { display: inline-flex !important; align-items: center; height: 20px; line-height: 1; padding: 0 .5rem; vertical-align: middle; }

/* 0.68.3: map view: list and map side by side in their own boxes; only the list scrolls. */
@media (min-width: 900px) {
  .qt-results:has(> .qt-map) { --qt-mapv-h: calc(100vh - var(--qt-head-h, 64px) - 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "sr sr" "bar bar" "list map" "pager map"; column-gap: 1rem; align-items: start; }
  .qt-results:has(> .qt-map) > .screen-reader-text { grid-area: sr; }
  .qt-results:has(> .qt-map) > .qt-results-bar { grid-area: bar; }
  .qt-results:has(> .qt-map) > .qt-map { grid-area: map; position: sticky; top: calc(var(--qt-head-h, 64px) + 1rem); height: var(--qt-mapv-h); min-height: 420px; margin: 0; border-radius: var(--qt-r-lg); overflow: hidden; }
  .qt-results:has(> .qt-map) > .qt-grid--list { grid-area: list; position: relative; height: var(--qt-mapv-h); min-height: 420px; overflow-y: auto; padding: 2px 6px 12px 2px; scrollbar-width: thin; scrollbar-color: var(--qt-line-2) transparent; overscroll-behavior: contain; }
  .qt-results:has(> .qt-map) > .qt-pager { grid-area: pager; }
  .qt-results:has(> .qt-map) .qt-grid--list .qt-card-body { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 900px) {
  /* the list box: cards keep their natural height (the box scrolls) and sit snugly, no empty columns */
  .qt-results:has(> .qt-map) > .qt-grid--list { display: flex !important; flex-direction: column; gap: .6rem; align-content: start; }
  .qt-results:has(> .qt-map) > .qt-grid--list > .qt-card { flex: none; grid-template-columns: 112px minmax(0, 1fr); min-height: 0; }
  .qt-results:has(> .qt-map) > .qt-grid--list .qt-card-media { min-height: 112px; }
  .qt-results:has(> .qt-map) > .qt-grid--list .qt-card-body { grid-template-columns: minmax(0, 1fr) auto !important; column-gap: .75rem; padding: .7rem .8rem; }
  .qt-results:has(> .qt-map) > .qt-map { top: calc(var(--qt-head-h, 64px) + .75rem); }
}
@media (min-width: 900px) {
  /* map-view cards: price top-right, save button bottom-right, never on top of each other */
  .qt-results:has(> .qt-map) > .qt-grid--list .qt-save { top: auto !important; bottom: .55rem; right: .55rem; }
  .qt-results:has(> .qt-map) > .qt-grid--list .qt-card-headline { align-self: start; padding-right: .1rem; }
}

/* 0.68.6: map view stacked: map on top in its own box, the list below in its own scrolling box (both fit the screen). */
@media (min-width: 900px) {
  .qt-results:has(> .qt-map) { --qt-mapv-map: clamp(260px, 40vh, 460px); --qt-mapv-list: calc(100vh - var(--qt-head-h, 64px) - var(--qt-mapv-map) - 130px); grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "sr" "bar" "map" "list" "pager" !important; row-gap: .75rem; }
  .qt-results:has(> .qt-map) > .qt-map { position: relative !important; top: auto !important; height: var(--qt-mapv-map) !important; min-height: 0 !important; }
  .qt-results:has(> .qt-map) > .qt-grid--list { height: auto !important; max-height: max(320px, var(--qt-mapv-list)); min-height: 0 !important; }
}
/* selected (pop-up open): stays lit until the pop-up closes */
.qt-card.is-selected { box-shadow: 0 0 0 2px var(--tone, var(--qt-primary)), 0 10px 26px -14px rgba(23, 43, 56, .45) !important; background: color-mix(in srgb, var(--tone, var(--qt-primary)) 5%, #fff); }
.qt-pin.is-selected, [data-qt-pin].is-selected > .qt-pin { transform: translate(-50%, -100%) scale(1.2); box-shadow: 0 0 0 3px #fff, 0 6px 16px -4px rgba(0, 0, 0, .45); }
.qt-gpin.is-selected { z-index: 60; }
/* pop-up pills: a row, text centred (the pop-up's column layout must not reach them) */
.gm-style .qt-pop .qt-pop-tags, .qt-pop .qt-pop-tags { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 2px 0 .3rem; font-size: inherit; line-height: 1; }
.gm-style .qt-pop .qt-pop-tags > span, .qt-pop .qt-pop-tags > span { flex-direction: row !important; justify-content: center; align-items: center; height: 20px; line-height: 1 !important; padding: 0 .55rem !important; font-size: .64rem !important; gap: 0; min-width: 0; }
.qt-pin::after { bottom: -5px !important; margin-top: -1px; border-width: 6px 5px 0 !important; transform: translateY(-1px); } /* caret overlaps the bubble by 1px: no hairline gap */


/* 0.69.1: pin clusters */
.qt-pin--cluster { min-width: 30px; height: 30px; padding: 0 .55rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--tone, var(--qt-primary)); color: #fff; font-size: .85rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 4px 12px -2px rgba(0, 0, 0, .35); cursor: pointer; transform: translate(-50%, -50%) !important; }
.qt-pin--cluster::after { display: none !important; }
.qt-gcluster { z-index: 20; }
.qt-gcluster.is-hot > .qt-pin--cluster, .qt-gcluster:hover > .qt-pin--cluster { transform: translate(-50%, -50%) scale(1.15) !important; }
.qt-about-heart { display: inline-flex; vertical-align: -2px; color: #D6336C; } .qt-about-heart svg { width: 15px; height: 15px; fill: currentColor; }


/* 0.69.3: pop-up writer extras */
.qt-compose-other { display: none !important; }
.qt-compose-form:has(select[name="pet_type"] option[value="other"]:checked) .qt-compose-other { display: block !important; }
.qt-compose-memory { min-height: 0; }
.qt-compose-video { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border: 1px dashed var(--qt-line, #C9D6DE); border-radius: 5px; font-size: .88rem; font-weight: 700; color: var(--qt-ink-2, #3A4A55); cursor: pointer; max-width: 100%; }
.qt-compose-video svg { width: 18px; height: 18px; flex: none; color: #14739A; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qt-compose-video span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-compose-video:hover { border-color: #14739A; }


/* 0.69.4: "Other" text boxes */
.qt-compose-other-item, .qt-other-item, .qt-other-country, .qt-other-topic { display: none !important; }
.qt-compose-form:has(select[name="tax_qt_item_type"] option[value="other"]:checked) .qt-compose-other-item,
.qt-form:has(select[name="tax_qt_item_type"] option[value="other"]:checked) .qt-other-item,
form:has(select[name="country"] option[value="OTHER"]:checked) .qt-other-country,
form:has(select[name="topic"] option[value="other"]:checked) .qt-other-topic { display: block !important; }

/* 0.69.4: character counters inside the text box, bottom-right */
.qt-count-wrap { position: relative; display: block; width: 100%; min-width: 0; flex: 1 1 auto; }
.qt-count-wrap > input, .qt-count-wrap > textarea { width: 100%; }
.qt-count-wrap > input { padding-right: 4.6rem !important; }
.qt-count-wrap--area > textarea { padding-bottom: 1.7rem !important; }
.qt-count-wrap > .qt-count { position: absolute; right: .6rem; bottom: .45rem; margin: 0 !important; font-size: .7rem; line-height: 1; color: var(--qt-muted, #6B7A84); pointer-events: none; background: transparent; }
.qt-count-wrap:not(.qt-count-wrap--area) > .qt-count { top: 50%; bottom: auto; transform: translateY(-50%); }
.qt-count-wrap > .qt-count.is-near { color: #B00E28; font-weight: 700; }


/* 0.69.5: live profanity feedback */
.qt-prof-note { display: flex; align-items: center; gap: .35rem; margin: .3rem 0 0; font-size: .8rem; font-weight: 700; color: #B00E28; }
.qt-prof-note::before { content: ""; flex: none; width: 14px; height: 14px; background: #B00E28; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22L12 2zm1 15h-2v-2h2v2zm0-4h-2V9h2v4z'/%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%3Cpath d='M12 2 1 21h22L12 2zm1 15h-2v-2h2v2zm0-4h-2V9h2v4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.qt-prof-note[hidden] { display: none; }
textarea.has-prof, input.has-prof { border-color: #B00E28 !important; box-shadow: 0 0 0 1px #B00E28 !important; }


/* 0.69.6: invite card in the right sidebar */
.qt-invite.qt-invite-card { display: block; margin: 0; padding: 1.1rem 1.2rem; box-shadow: none; }
.qt-invite-card .qt-invite-text h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.qt-invite-card .qt-invite-text p { margin: 0 0 .7rem; font-size: .85rem; color: var(--qt-ink-2); }
.qt-invite-card .qt-invite-box { display: flex; flex-direction: column; gap: .5rem; width: 100%; max-width: none; }
.qt-invite-card .qt-invite-box .qt-input { width: 100%; height: 36px; padding: 0 .6rem; font-size: .78rem; text-overflow: ellipsis; }
.qt-invite-card .qt-invite-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.qt-invite-card .qt-invite-actions .qt-btn { flex: 1 1 auto; min-height: 34px; padding: .35rem .7rem; font-size: .82rem; justify-content: center; }
.qt-invite-card .qt-invite-count { margin: .2rem 0 0; font-size: .78rem; }


/* 0.69.7: load more */
.qt-load-more { margin: 1rem auto 0; max-width: 320px; }
.qt-load-more[aria-busy="true"] { opacity: .7; pointer-events: none; }


/* 0.69.9: photo picker */
.qt-photo.is-new { position: relative; }
.qt-photo-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: rgba(23, 35, 30, .78); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.qt-photo-del:hover { background: #B00E28; }
.qt-photo-add.is-full { opacity: .45; cursor: not-allowed; }
.qt-photo-msg { margin: .35rem 0 0; font-size: .8rem; font-weight: 700; color: #B00E28; }
.qt-photo-msg[hidden] { display: none; }
.qt-file-clear { display: inline-block; margin-top: .35rem; font-size: .82rem; color: #B00E28; }
.qt-file-clear[hidden] { display: none; }


/* 0.70.1: feed filter "Other" box + in-place filtering */
.qt-feed-filters:has(input[name="pet[]"][value="other"]:checked) .qt-feed-other { display: block; margin-top: .5rem; }
.qt-feed-main.is-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }


/* 0.70.4: folded replies */
.qt-comment-more { display: inline-flex; align-items: center; gap: .35rem; margin: .1rem 0 .6rem 3rem; padding: .25rem .6rem; border: 0; border-radius: 5px; background: none; color: #14739A; font: 700 .82rem var(--qt-font); cursor: pointer; }
.qt-comment-more:hover { background: #E2EEF5; }
.qt-comment-more svg { width: 15px; height: 15px; }
.qt-comment-kids[hidden] { display: none; }

/* 0.70.4: photo zoom */
[data-qt-gallery] .qt-gallery-main img { cursor: zoom-in; }
.qt-zoom { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; background: rgba(12, 18, 15, .94); }
.qt-zoom[hidden] { display: none; }
.qt-zoom img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 5px; cursor: zoom-in; transition: transform .2s ease; user-select: none; }
.qt-zoom img.is-zoom { transform: scale(2); cursor: zoom-out; }
.qt-zoom-x, .qt-zoom-nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.qt-zoom-x { top: 14px; right: 14px; font-size: 26px; }
.qt-zoom-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.qt-zoom-next { right: 14px; top: 50%; transform: translateY(-50%); }
.qt-zoom-x:hover, .qt-zoom-nav:hover { background: rgba(255, 255, 255, .28); }
.qt-zoom-nav[hidden] { display: none; }
.qt-zoom-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; font-weight: 700; }
html.qt-zoom-on { overflow: hidden; }


/* 0.70.5: removed posts + team tools */
.qt-pill-removed { background: #FDECEE !important; color: #B00E28 !important; max-width: 100%; white-space: normal; text-align: left; }
.qt-mine-recent-status--removed, .qt-mine-recent .is-removed { color: #B00E28; }
.qt-mod-remove { color: #B00E28 !important; }
.qt-mod-restore { color: #2D6519 !important; }


/* 0.70.6: footer "Invite a friend" card (prominent, not a menu link) */
.qt-footer-invite { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .8rem .9rem; border-radius: 5px; background: #fff; box-shadow: 0 6px 18px -12px rgba(23, 43, 56, .35); max-width: 360px; }
.qt-footer-invite-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: #FCE4EC; color: #D6336C; }
.qt-footer-invite-ico svg { width: 20px; height: 20px; fill: currentColor; }
.qt-footer-invite div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qt-footer-invite strong { font-size: .95rem; color: var(--qt-ink); }
.qt-footer-invite div span { font-size: .78rem; color: var(--qt-ink-2); }
.qt-footer-invite-btn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .35rem; background: #2D6519 !important; color: #fff !important; }
.qt-footer-invite-btn svg { width: 15px; height: 15px; }

/* 0.70.6: hero photo tags sit on the corners, off the subject */
.qt-hero-tag--tales { left: -26px; bottom: -22px; top: auto; }
.qt-hero-tag--eco { right: -22px; top: -20px; bottom: auto; }
@media (max-width: 767px) { .qt-hero-rot { margin-bottom: 1.4rem; } .qt-hero-tag--tales { left: -4px; bottom: -18px; } .qt-hero-tag--eco { right: -4px; top: -16px; } }


/* 0.70.7: expand-to-full-editor button, left of Close */
.qt-compose-expand { position: absolute; right: 3.4rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--qt-sunken); color: var(--qt-ink-2); text-decoration: none !important; }
.qt-compose-expand:hover { background: var(--qt-line); color: var(--qt-ink); }
.qt-compose-expand svg { width: 17px; height: 17px; margin: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qt-compose-expand[hidden] { display: none; }
.qt-compose-head:has(.qt-compose-expand:not([hidden])) { padding-right: 6.2rem; padding-left: 6.2rem; }


/* 0.71.0: expand busy */
.qt-compose-expand.is-busy { pointer-events: none; opacity: .5; }

/* 0.71.1: sidebar invite card: no full-width page band (that rule is for the old full-width invite section) */
.qt-invite.qt-invite-card { box-shadow: none !important; clip-path: none !important; z-index: auto; }

/* 0.71.3: sign-up (gate) pages: two equal columns; photo fills its column */
@media (min-width: 961px) {
  .qt-gatepage-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
  .qt-gatepage-info h1 { font-size: clamp(2rem, 1.2rem + 1.8vw, 2.7rem); }
  .qt-gatepage-photo, .qt-gatepage-lead { max-width: none; }
  .qt-gatepage-photo img { width: 100%; height: auto; }
}


/* 0.71.4: background posting card */
.qt-mine-recent-item.is-posting { opacity: .85; }
.qt-mine-recent-item.is-posting .qt-mine-recent-img img { filter: saturate(.8); }
.qt-spin { display: inline-block; width: 12px; height: 12px; margin-right: .35rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: qtSpin .7s linear infinite; }
@keyframes qtSpin { to { transform: rotate(360deg); } }
.qt-ajax-errors { margin-bottom: .75rem; }


/* 0.71.8: held queue reasons + deny */
.qt-queue-why-held { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0; padding: .55rem .75rem; border-radius: 5px; background: #FFF7E0; color: #5B4600; font-size: .88rem; }
.qt-queue-why-held svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.qt-queue-decide { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; }
.qt-deny > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.qt-deny > summary::-webkit-details-marker { display: none; }
.qt-deny[open] { flex-basis: 100%; }
.qt-deny-box { display: grid; gap: .4rem; margin-top: .5rem; max-width: 480px; }
.qt-btn-danger { background: #B00E28 !important; border-color: #B00E28 !important; color: #fff !important; justify-self: start; }
.qt-denied .qt-btn { margin-top: .5rem; }

/* 0.71.8: compact invite card in the sidebar */
.qt-invite-mini { display: flex; align-items: center; gap: .7rem; padding: .85rem .9rem; }
.qt-invite-mini > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qt-invite-mini strong { font-size: .95rem; color: var(--qt-ink); }
.qt-invite-mini > div span { font-size: .78rem; color: var(--qt-ink-2); }


/* 0.71.9: Delete kept apart from Approve / Deny */
.qt-del { margin-top: .75rem; padding-top: .6rem; border-top: 1px dashed var(--qt-line); }
.qt-del > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; cursor: pointer; }
.qt-del > summary::-webkit-details-marker { display: none; }
.qt-del > summary svg { width: 15px; height: 15px; }
.qt-del-box { display: grid; gap: .5rem; margin-top: .5rem; max-width: 520px; }
.qt-del-note { margin: 0; font-size: .82rem; color: var(--qt-ink-2); }
.qt-del-reasons { display: grid; gap: .25rem; }
.qt-del-box .qt-btn-danger { justify-self: start; }

/* 0.72.0: footer opens with a brand-blue "Invite a friend" strip; no wave */
.qt-footer::before, .qt-footer::after { display: none !important; content: none !important; }
.qt-footer { padding-top: 0 !important; }
.qt-footer-strip { background: #1679A0; color: #fff; }
.qt-footer-strip-in { display: flex; align-items: center; gap: .9rem; width: 100%; max-width: var(--qt-max); margin: 0 auto; padding: .95rem var(--qt-gutter); }
.qt-footer-strip-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; }
.qt-footer-strip-ico svg { width: 19px; height: 19px; fill: #fff; stroke: none; }
.qt-footer-strip p { flex: 1; min-width: 0; margin: 0; font-size: 1rem; color: #fff; }
.qt-footer-strip p strong { color: #fff; }
.qt-footer-strip-btn { flex: none; display: inline-flex; align-items: center; gap: .4rem; background: #fff !important; border-color: #fff !important; color: #14739A !important; font-weight: 800; }
.qt-footer-strip-btn svg { width: 16px; height: 16px; }
.qt-footer-strip-btn:hover { background: #E2EEF5 !important; }
.qt-footer-strip + .qt-footer-in { padding-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 640px) { .qt-footer-strip-in { flex-wrap: wrap; } .qt-footer-strip p { flex-basis: calc(100% - 3rem); font-size: .92rem; } .qt-footer-strip-btn { width: 100%; justify-content: center; } }

/* 0.73.3: sign-up (gate) pages, desktop: right half is a full-height white panel; the form sits centered
   both ways at 66% of it (stays in view while the left side scrolls). */
@media (min-width: 961px) {
  .qt-gatepage-band { padding: 0 !important; }
  .qt-gatepage-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; max-width: none; padding: 0; align-items: stretch; }
  .qt-gatepage-info { padding: 3.5rem clamp(2rem, 4vw, 4rem) 4rem max(var(--qt-gutter), calc((100vw - var(--qt-max)) / 2 + var(--qt-gutter))); }
  .qt-gatepage-form { position: relative; top: auto; background: #fff; box-shadow: -1px 0 0 var(--qt-line); }
  .qt-gatepage-form > * { position: sticky; top: var(--qt-head-h, 68px); }
  .qt-gatepage-form-in, .qt-gatepage-form > .qt-gatepage-card { min-height: calc(100vh - var(--qt-head-h, 68px)); }
  .qt-gatepage-card { display: flex; flex-direction: column; justify-content: center; width: 66%; max-width: 560px; margin: 0 auto; padding: 3rem 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
}

/* 0.73.4: sign-up pages: the white panel runs all the way down to the footer (no spacer gap) */
@media (min-width: 961px) {
  body:has(.qt-gatepage) .qt-footer-gap { display: none; }
  .qt-gatepage { flex: 1 0 auto; display: flex; flex-direction: column; }
  .qt-gatepage-band { flex: 1 0 auto; display: flex; }
  .qt-gatepage-band > .qt-gatepage-in { flex: 1; }
}

/* 0.73.5: more breathing room in the left (info) panel of the sign-up pages */
@media (min-width: 961px) {
  .qt-gatepage-info { padding: clamp(3.5rem, 6vh, 5.5rem) clamp(3rem, 5.5vw, 6rem) clamp(4rem, 7vh, 6rem) max(clamp(2.5rem, 5vw, 5rem), calc((100vw - var(--qt-max)) / 2 + clamp(2.5rem, 5vw, 5rem))); }
}


/* 0.75.0: "Other" box under the Pet type dropdown sits below the open panel, never under it */
.qt-fgroup--dd { position: relative; }
.qt-fgroup--dd .qt-other-filter { position: relative; z-index: 1; }
.qt-dd-panel { z-index: 30; }
.qt-fgroup--dd:has(.qt-dd-btn[aria-expanded="true"]) .qt-other-filter { visibility: hidden; }


/* 0.75.0: video frames on cards */
.qt-vframe { position: relative; display: block; width: 100%; height: 100%; min-height: 160px; background: #1C2520; overflow: hidden; }
.qt-vframe video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.qt-vframe-play { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; padding-left: 3px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #1C2520; font-size: 18px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.qt-wall-media .qt-vframe { aspect-ratio: 4 / 3; }
/* 0.75.0: the video already on a post (edit forms) */
.qt-cur-video { display: flex; gap: .75rem; align-items: flex-start; margin: .4rem 0 .6rem; padding: .6rem; border: 1px solid var(--qt-line); border-radius: 5px; background: #F4F9FB; }
.qt-cur-video video { flex: none; width: 112px; height: 72px; object-fit: cover; border-radius: 5px; background: #1C2520; }
.qt-cur-video > div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; font-size: .85rem; }
.qt-cur-video strong { color: #2D6519; }
.qt-cur-video span { overflow-wrap: anywhere; }
/* 0.75.0: upload progress */
.qt-upload { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; background: rgba(12, 18, 15, .45); }
.qt-upload-card { display: flex; flex-direction: column; gap: .45rem; width: min(420px, calc(100vw - 32px)); padding: 1.3rem 1.4rem; border-radius: 5px; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.qt-upload-card span { font-size: .88rem; color: var(--qt-ink-2); }
.qt-upload-bar { height: 8px; border-radius: 999px; background: #E2EEF5; overflow: hidden; }
.qt-upload-bar i { display: block; height: 100%; background: #14739A; transition: width .2s ease; }
.qt-upload-card em { font-style: normal; font-weight: 800; color: #14739A; font-size: .85rem; }

/* 0.75.3: password show / hide eye */
.qt-pw-wrap { position: relative; display: block; }
.qt-pw-wrap > input { width: 100%; padding-right: 2.8rem !important; }
.qt-pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--qt-ink-2); cursor: pointer; }
.qt-pw-eye:hover { color: #14739A; background: #E2EEF5; }
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; } /* Edge's own eye: ours replaces it */


/* 0.76.0: Messages, Messenger-style */
.qt-chat { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: 0; height: calc(100vh - var(--qt-head-h, 68px) - 2.5rem); min-height: 520px; max-width: 1280px; margin: 1.25rem auto; background: #fff; border: 1px solid var(--qt-line); border-radius: 5px; overflow: hidden; box-shadow: 0 10px 30px -22px rgba(23, 43, 56, .35); }
.qt-chat-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--qt-line); }
.qt-chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .5rem; }
.qt-chat-title { margin: 0; font-family: var(--qt-font-h); font-size: 1.6rem; color: var(--qt-ink); }
.qt-chat-iconbtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: #EEF3F6; color: var(--qt-ink); text-decoration: none !important; }
.qt-chat-iconbtn:hover { background: #E2EEF5; color: #14739A; }
.qt-chat-iconbtn svg { width: 18px; height: 18px; }
.qt-chat-search { display: flex; align-items: center; gap: .5rem; margin: .25rem 1rem .6rem; padding: 0 .85rem; height: 40px; border-radius: 999px; background: #EEF3F6; color: var(--qt-ink-2); }
.qt-chat-search svg { width: 17px; height: 17px; flex: none; }
.qt-chat-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; box-shadow: none !important; outline: none; font: inherit; color: var(--qt-ink); padding: 0 !important; }
.qt-chat-filters { display: flex; gap: .35rem; padding: 0 1rem .6rem; }
.qt-chat-filter { padding: .4rem .85rem; border: 0; border-radius: 999px; background: none; color: var(--qt-ink-2); font: 700 .88rem var(--qt-font); cursor: pointer; }
.qt-chat-filter:hover { background: #EEF3F6; }
.qt-chat-filter.is-on { background: #E2EEF5; color: #14739A; }
.qt-chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 .5rem .75rem; scrollbar-width: thin; }
.qt-chat-item { position: relative; display: flex; align-items: center; gap: .75rem; padding: .55rem .6rem; border-radius: 5px; color: var(--qt-ink) !important; text-decoration: none !important; }
.qt-chat-item[hidden] { display: none; }
.qt-chat-item:hover { background: #F2F6F8; }
.qt-chat-item.is-on { background: #E2EEF5; }
.qt-chat-item .qt-av { flex: none; width: 52px; height: 52px; border-radius: 999px; }
.qt-chat-item-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qt-chat-item-name { font-weight: 600; font-size: .95rem; }
.qt-chat-item-about { font-size: .74rem; color: #2D6519; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-chat-item-snip { display: flex; gap: .2rem; font-size: .82rem; color: var(--qt-ink-2); white-space: nowrap; min-width: 0; }
.qt-chat-item-snip span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qt-chat-item.is-unread .qt-chat-item-name, .qt-chat-item.is-unread .qt-chat-item-snip { font-weight: 800; color: var(--qt-ink); }
.qt-chat-dot { flex: none; width: 12px; height: 12px; margin-left: auto; border-radius: 999px; background: #14739A; }
.qt-chat-empty { margin: 1rem; color: var(--qt-ink-2); font-size: .9rem; }
.qt-chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #F7FAFB; }
.qt-chat-none { margin: auto; text-align: center; color: var(--qt-ink-2); padding: 2rem; }
.qt-chat-none svg { width: 64px; height: 64px; color: #14739A; opacity: .8; }
.qt-chat-none h2 { margin: .6rem 0 .3rem; font-family: var(--qt-font-h); font-size: 1.3rem; color: var(--qt-ink); }
.qt-chat-none p { margin: 0; font-size: .9rem; }
/* the open conversation fills the right side */
.qt-chat .qt-msg { display: flex; flex-direction: column; flex: 1; min-height: 0; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.qt-chat .qt-msg-head { flex: none; background: #fff; border-bottom: 1px solid var(--qt-line); padding: .6rem 1rem; }
.qt-chat .qt-msg-head .qt-back { display: none; }
.qt-chat .qt-msg-log { flex: 1; min-height: 0; max-height: none !important; height: auto !important; overflow-y: auto; padding: 1rem; }
.qt-chat .qt-msg-form { flex: none; background: #fff; border-top: 1px solid var(--qt-line); margin: 0; }
@media (max-width: 760px) {
  .qt-chat { grid-template-columns: 1fr; height: calc(100dvh - var(--qt-head-h, 60px) - .5rem); margin: .25rem 0 0; border-radius: 0; border-left: 0; border-right: 0; }
  .qt-chat.has-open .qt-chat-side { display: none; }
  .qt-chat:not(.has-open) .qt-chat-main { display: none; }
  .qt-chat-side { border-right: 0; }
  .qt-chat .qt-msg-head .qt-back { display: inline-flex; align-items: center; gap: .2rem; margin-right: .5rem; font-weight: 700; }
}
.qt-chat { height: calc(100vh - var(--qt-head-h, 68px) - var(--wp-admin--admin-bar--height, 0px) - 2.5rem); }
@media (max-width: 760px) { .qt-chat { height: calc(100dvh - var(--qt-head-h, 60px) - var(--wp-admin--admin-bar--height, 0px) - .5rem); } }

/* 0.76.2: Messages on phones: clear the bottom tab bar; tidy chat header */
@media (max-width: 760px) {
  .qt-chat { height: calc(100dvh - var(--qt-head-h, 60px) - var(--wp-admin--admin-bar--height, 0px) - 58px - env(safe-area-inset-bottom, 0px) - .5rem); }
  .qt-chat .qt-msg-head { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; }
  .qt-chat .qt-msg-head .qt-back span { display: none; }
  .qt-chat .qt-msg-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; }
  .qt-chat .qt-msg-id > span { display: flex; flex-direction: column; min-width: 0; }
  .qt-chat .qt-msg-id strong, .qt-chat .qt-msg-about { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .qt-chat .qt-msg-actions { flex: none; display: flex; gap: .5rem; font-size: .8rem; }
}

/* 0.76.3: chat back arrow, bigger tap target */
.qt-chat .qt-msg-head .qt-back { align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 .25rem 0 -.25rem; border-radius: 999px; color: var(--qt-ink) !important; }
.qt-chat .qt-msg-head .qt-back:hover { background: #EEF3F6; }
.qt-chat .qt-msg-head .qt-back svg { width: 26px; height: 26px; stroke-width: 2.4; }

/* 0.76.3: no underlines on any site link (hover shows a colour change instead) */
body:not(.wp-admin) a, body:not(.wp-admin) a:hover, body:not(.wp-admin) a:focus, body:not(.wp-admin) a *, body:not(.wp-admin) .qt a { text-decoration: none !important; }
body:not(.wp-admin) .qt a:not(.qt-btn):not([class*="qt-chat-item"]):hover, body:not(.wp-admin) .qt-footer a:hover { opacity: .8; }

/* 0.76.4: chats list never wider than the screen (long titles get "…") */
.qt-chat-side, .qt-chat-main { min-width: 0; }
.qt-chat-item-main { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.qt-chat-item-name, .qt-chat-item-about, .qt-chat-item-snip { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qt-chat-search { min-width: 0; }
@media (max-width: 760px) { .qt-chat { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; } }
.qt-pettype-wrap[hidden] { display: none !important; }


/* 0.77.0: inline quick-add pet */
.qt-quickpet-open { display: inline-flex; align-items: center; gap: .3rem; margin: .35rem 0 .75rem; font-weight: 700; color: #2D6519 !important; }
.qt-quickpet-open svg { width: 15px; height: 15px; }
.qt-quickpet-open[hidden] { display: none; }
.qt-quickpet { display: grid; gap: .5rem; margin: .4rem 0 1rem; padding: .85rem; border: 1px dashed #A9C7B2; border-radius: 5px; background: #F4F9F1; }
.qt-quickpet[hidden] { display: none; }
.qt-quickpet-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .5rem; }
.qt-quickpet-other[hidden] { display: none; }
.qt-quickpet-foot { display: flex; justify-content: flex-end; gap: .5rem; }
.qt-quickpet-msg { margin: 0; font-size: .82rem; font-weight: 700; color: #B00E28; }
.qt-quickpet-msg[hidden] { display: none; }
.qt-quickpet .qt-hint { margin: 0; font-size: .78rem; }
@media (max-width: 480px) { .qt-quickpet-row { grid-template-columns: 1fr; } }

/* 0.77.1: breathing room under the Held for review tabs */
.qt-held-tabs { margin: .25rem 0 1.25rem !important; }
.qt-held-tabs + .qt-lede, .qt-held-tabs ~ .qt-lede { margin: 0 0 1.25rem; }


/* 0.79.0: tale page video: controls never clipped */
.qt-sp-video video, .qt-story-video.qt-sp-video video { margin: 0 !important; }
.qt-sp-media--two .qt-sp-video { overflow: visible; }
.qt-sp-media--two .qt-sp-video video { border-radius: var(--qt-r-lg); }
/* 0.79.0: phone feed quick buttons (they became buttons; the old styles targeted links) */
.qt-feed-quick button { justify-content: center; min-height: 40px; padding: 0 .4rem; border-radius: var(--qt-r); color: var(--qt-ink-2); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.qt-feed-quick button:hover { background: var(--qt-sunken); }
.qt-feed-quick button > svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 5px; background: var(--qt-sunken); color: var(--qt-primary); }
@media (max-width: 520px) { .qt-feed-quick button { justify-content: flex-start; padding: 0 .5rem; background: var(--qt-page, #F4F8F6); } }
/* 0.79.0: invite shows once on phones (the footer strip) */
@media (max-width: 960px) { .qt-feed-right .qt-invite-mini { display: none; } .qt-feed-right:not(:has(> :not(.qt-invite-mini))) { display: none; } }
.qt-feed-railcards { display: grid; gap: 1rem; margin: 1rem 0; }
.qt-feed-railcards > * { background: var(--qt-surface); border-radius: var(--qt-r); padding: 1rem; }
/* 0.79.0: Who to follow > find members */
.qt-findmem { position: relative; margin: .2rem 0 .7rem; }
.qt-findmem > svg { position: absolute; left: .7rem; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--qt-ink-3, #75817A); pointer-events: none; }
.qt-findmem input { width: 100%; height: 38px; padding: 0 .75rem 0 2.1rem; border: 1px solid var(--qt-line); border-radius: 5px; background: var(--qt-page, #fff); font: inherit; font-size: .88rem; }
/* 0.79.0: comment edit + My comments */
.qt-comment-edited { font-size: .75rem; color: var(--qt-ink-3, #75817A); font-style: italic; }
.qt-cedit { display: grid; gap: .4rem; margin: .3rem 0 .4rem; }
.qt-cedit-foot { display: flex; justify-content: flex-end; gap: .4rem; }
.qt-cedit-msg { margin: 0; font-size: .82rem; font-weight: 700; color: #B00E28; }
.qt-cedit-msg[hidden] { display: none; }
.qt-mycomments { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.qt-mycomments a { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem; border-radius: 5px; background: var(--qt-surface); color: inherit; }
.qt-mycomments a:hover { background: var(--qt-sunken); }
.qt-mycomments-on { font-size: .8rem; color: var(--qt-ink-2); }
.qt-mycomments-text { color: var(--qt-ink); }
/* 0.79.0: shelter details under "Listed by" */
.qt-shelter-fields { margin: .2rem 0 1rem; padding: .85rem; border-radius: 5px; background: #F4F9FB; }
.qt-shelter-fields[hidden] { display: none; }
.qt-shelter-fields .qt-hint { display: flex; align-items: center; gap: .35rem; margin: 0 0 .6rem; }
.qt-shelter-fields .qt-hint svg { width: 16px; height: 16px; color: #14739A; }


/* 0.80.0: quick-add pet in the pop-up writer */
.qt-compose-quickpet .qt-quickpet-open { margin: .35rem 0 0; font-size: .85rem; }
.qt-compose-quickpet .qt-quickpet { margin: .5rem 0 0; }
.qt-compose-pills .qt-pill-select[hidden] { display: none; }


/* 0.81.0: profile cover photo */
.qt-prof-cover { position: relative; }
.qt-prof-cover.has-photo { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.qt-cover-btn { position: absolute; right: .85rem; bottom: .85rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 5px; background: rgba(255,255,255,.92); color: var(--qt-ink) !important; font-size: .85rem; font-weight: 700; box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); }
.qt-cover-btn svg { width: 16px; height: 16px; }
.qt-cover-btn:hover { background: #fff; }
.qt-cover-edit { display: grid; gap: .6rem; }
.qt-cover-prev { height: 110px; border-radius: 5px; background: #E7F0EA center / cover no-repeat; border: 1px dashed #A9C7B2; }
.qt-cover-prev[style] { border-style: solid; border-color: transparent; }
.qt-cover-btns { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 600px) { .qt-cover-btn span { display: none; } .qt-cover-btn { padding: .5rem; } }

/* 0.81.1: profile photo sits on top of the cover */
.qt-prof-av { position: relative; z-index: 3; }


/* 0.82.0: media slider (video first, then photos) */
.qt-slider-stage { position: relative; }
.qt-slider-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.qt-slider-track::-webkit-scrollbar { display: none; }
.qt-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.qt-slider .qt-slide img { display: block; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover; }
.qt-slide--video, .qt-slide video { background: #000; }
.qt-slide video { display: block; width: 100%; height: 100%; object-fit: contain; }
.qt-slider-nav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1C2520; font-size: 28px; line-height: 1; cursor: pointer; transform: translateY(-50%); box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .45); transition: opacity .2s; }
.qt-slider-prev { left: .7rem; }
.qt-slider-next { right: .7rem; }
.qt-slider-nav[disabled] { opacity: 0; pointer-events: none; }
.qt-slider-count { position: absolute; top: .75rem; right: .75rem; z-index: 3; padding: .2rem .55rem; border-radius: 999px; background: rgba(12, 18, 15, .6); color: #fff; font-size: .78rem; font-weight: 700; pointer-events: none; }
.qt-slider .qt-sp-pills { top: .85rem; bottom: auto; }
.qt-thumb-vid { position: relative; display: block; width: 100%; height: 100%; background: #1C2520; }
.qt-thumb-vid video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.qt-thumb-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; padding-left: 2px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #1C2520; font-size: 11px; transform: translate(-50%, -50%); }
@media (hover: none) { .qt-slider-nav { width: 34px; height: 34px; font-size: 24px; } }

/* 0.82.1: phone action bar centered (inset 8px both sides, no forced full width) */
@media (max-width: 960px) { .qt-sp-floatbar { width: auto !important; max-width: none !important; box-sizing: border-box; } }
/* 0.82.2: phone action bar icons match the circled like (25px) */
@media (max-width: 960px) { .qt-sp-floatbar .qt-btn > svg, .qt-sp-floatbar .qt-followico > svg, .qt-sp-floatbar .qt-vote-btn > svg, .qt-sp-floatbar .qt-follow > svg { width: 25px !important; height: 25px !important; } }

/* 0.82.3: feed quick links (now links to the full create pages) */
.qt-feed-quick a > svg { flex: none; width: 28px !important; height: 28px !important; padding: 5px; border-radius: 5px; background: var(--qt-sunken); color: var(--qt-primary); }
@media (max-width: 520px) { .qt-feed-quick a { justify-content: flex-start; padding: 0 .5rem; background: var(--qt-page, #F4F8F6); } }


/* 0.83.0: create pages without step numbers */
.qt-formwrap .qt-fs { padding-left: 1.6rem; }
.qt-formwrap .qt-fs::before { content: none !important; display: none !important; }
.qt-formwrap .qt-fs legend { padding-right: 0 !important; }
@media (max-width: 700px) { .qt-formwrap .qt-fs { padding-left: 1.1rem; } }
/* 0.83.0: invite card shows once on phones on every page (the footer strip) */
@media (max-width: 960px) { .qt-invite-mini { display: none !important; } }
/* 0.83.0: feed prompt is a link now */
a.qt-feed-prompt { display: flex; align-items: center; color: var(--qt-ink-2) !important; text-decoration: none; }


/* 0.84.0: settings search */
.qt-set-search { position: sticky; top: calc(var(--qt-head-h, 64px) + .5rem); z-index: 5; margin: 0 0 1rem; }
.qt-set-search-box { position: relative; display: block; }
.qt-set-search-box > svg { position: absolute; left: .85rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--qt-ink-3, #75817A); pointer-events: none; }
.qt-set-search-box input { width: 100%; height: 46px; padding: 0 1rem 0 2.6rem; border: 1px solid var(--qt-line); border-radius: 5px; background: var(--qt-surface, #fff); font: inherit; box-shadow: 0 6px 20px -14px rgba(28, 37, 32, .35); }
.qt-set-search-none { margin: .6rem 0 0; font-weight: 700; color: var(--qt-ink-2); }
.qt-set-search-none[hidden], [data-qt-set-sec][hidden], [data-qt-set-sec] > [hidden] { display: none !important; }


/* 0.85.0: "Invite a friend" lives in the footer strip only */
.qt-invite-mini { display: none !important; }
/* 0.85.0: pet birthdays card */
.qt-bday-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.qt-bday-list a { display: flex; align-items: center; gap: .65rem; color: inherit; }
.qt-bday-list img, .qt-bday-list .qt-pet-ph { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.qt-bday-list span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qt-bday-list small { color: var(--qt-ink-2); font-size: .8rem; }
.qt-feed-right .qt-featured { padding: 1rem; }
.qt-feed-right .qt-featured .qt-featured-kicker { margin: 0 0 .6rem; font-size: .85rem; }
/* 0.85.0: can't react to / vote for your own post */
.qt-react.is-own .qt-react-menu { display: none !important; }
.qt-react-btn[disabled], .qt-vote-btn[disabled] { opacity: .45; cursor: not-allowed; }
/* 0.85.0: notifications for posts that are gone */
.qt-notif.is-gone { opacity: .6; cursor: default; }
/* 0.85.0: My listings tools */
.qt-mine-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start !important; gap: .5rem; }
.qt-mine-tools .qt-btn-delete { color: #B00E28 !important; background: transparent !important; border-color: #E8C3C9 !important; }
.qt-mine-tools .qt-btn-delete svg { width: 15px; height: 15px; }
/* 0.85.0: footer social icons */
.qt-footer-social { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.qt-footer-social > span { font-weight: 700; font-size: .85rem; }
.qt-footer-social > div { display: flex; gap: .5rem; }
.qt-footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--qt-primary, #2D6519); }
.qt-footer-social a:hover { background: #fff; }

/* 0.85.8: My comments / Messages icons get their own colour (selected state used currentColor = white) */
.qt-i-comment { --ic: #1F7A6B; }
.qt-i-mail { --ic: #2F6E95; }

/* 0.85.9: header bell + messages: a red "new" dot instead of a number */
.qt-bell-count { min-width: 0 !important; width: 11px; height: 11px; padding: 0 !important; border-radius: 50%; background: #D7263D !important; border: 2px solid var(--qt-surface, #fff); font-size: 0 !important; line-height: 0; color: transparent !important; box-sizing: content-box; }
.qt-header .qt-bell-count { top: 3px; right: 3px; }
.qt-bell-count[hidden] { display: none !important; }


/* 0.86.0: Contact page "Follow the community" card ([qt_social]) */
.qt-contact-follow { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.qt-contact-follow h3 { margin: 0; }
.qt-contact-follow .qt-footer-social { margin: 0; }
.qt-contact-follow .qt-footer-social a { background: var(--qt-sunken, #EDF1F4); }
.qt-contact-follow-ico svg { width: 34px; height: 34px; color: var(--qt-primary, #2D6519); }
/* 0.86.0: comment Delete */
.qt-comment-del { color: #B00E28 !important; }
