/* a9wal.com — one stylesheet, RTL first, light + dark */
:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --ink: #1d2327;
  --ink-2: #4a5359;
  --muted: #7b8388;
  --line: #e6e0d4;
  --brand: #0f5c55;
  --brand-2: #0b4843;
  --brand-soft: #e3efec;
  --gold: #b8862b;
  --like: #0f7a5f;
  --dislike: #b3403a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 35, 39, .05), 0 4px 16px rgba(29, 35, 39, .05);
  --ui: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --quote: "Noto Naskh Arabic", "Traditional Arabic", "Amiri", serif;
  --on-brand: #ffffff; --fav: #d6455d;
  color-scheme: light;
}
/* dark: follows the phone/computer setting, unless the visitor chose with the ☾/☀ button (data-theme on <html>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121615; --paper: #1a201f; --ink: #e9ece9; --ink-2: #c3c9c6; --muted: #8d9692; --line: #2a3331;
    --brand: #5fbfb2; --brand-2: #7fd3c7; --brand-soft: #1d2d2b; --gold: #d8ad5c; --like: #4fc79f; --dislike: #ef7f78;
    --on-brand: #08201d; --fav: #ff7d93; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #121615; --paper: #1a201f; --ink: #e9ece9; --ink-2: #c3c9c6; --muted: #8d9692; --line: #2a3331;
    --brand: #5fbfb2; --brand-2: #7fd3c7; --brand-soft: #1d2d2b; --gold: #d8ad5c; --like: #4fc79f; --dislike: #ef7f78;
    --on-brand: #08201d; --fav: #ff7d93; --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--ui); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: 1.25rem; }
button { font: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.55rem; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; letter-spacing: 0; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo .mark { font-family: var(--quote); color: var(--gold); font-size: 2.4rem; line-height: 1; margin-top: .45em; }
.logo.small { font-size: 1.25rem; }
.search { display: flex; flex: 1; max-width: 420px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 16px; font: inherit; color: var(--ink); outline: none; }
.search button { border: 0; background: transparent; color: var(--muted); padding: 0 14px; cursor: pointer; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search.inline { max-width: 460px; margin-top: 12px; background: var(--paper); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav a[aria-current] { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.nav-random svg { width: 16px; height: 16px; }
.menu-btn { display: none; margin-inline-start: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 7px 9px; cursor: pointer; }
@media (max-width: 820px) {
  /* one row on phones: logo · search · menu */
  .top-in { gap: 8px; padding: 0 12px; min-height: 58px; flex-wrap: nowrap; position: relative; }
  .logo { font-size: 1.3rem; flex: none; }
  .logo .mark { font-size: 2rem; }
  .search { order: 0; flex: 1; max-width: none; min-width: 0; }
  .search input { padding: 8px 12px; font-size: 16px; }   /* 16px: iPhone does not zoom in on focus */
  .search button { padding: 0 10px; }
  .menu-btn { display: block; flex: none; margin: 0; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 2px; margin: 0;
         padding: 8px 12px 12px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
}

main.wrap { padding-top: 24px; padding-bottom: 48px; min-height: 60vh; }

/* ---------- hero */
.hero { text-align: center; padding: 28px 0 8px; }
.lead { color: var(--ink-2); font-size: 1.08rem; max-width: 720px; margin: 0 auto 1em; }
.page-head { margin: 8px 0 24px; }
.page-head .lead { margin-inline: 0; }
.stats { color: var(--muted); font-size: .92rem; margin: 0; }
.qod { margin: 28px auto 8px; max-width: 760px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 22px; box-shadow: var(--shadow); position: relative; }
.qod figcaption { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--gold); color: #fff; font-size: .82rem; font-weight: 600; padding: 2px 14px; border-radius: 999px; }
.qod blockquote { font-family: var(--quote); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.8; margin: 0; color: var(--ink); }
.qod a:hover { text-decoration: none; }
.qod-author { display: inline-block; margin-top: 10px; font-weight: 600; }

/* ---------- blocks */
.block { margin: 40px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.block-head h2 { margin: 0; padding-bottom: 8px; border-bottom: 3px solid var(--brand); margin-bottom: -2px; }
.block-head a { font-size: .92rem; white-space: nowrap; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- chips / topics */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); padding: 5px 14px; border-radius: 999px; font-size: .95rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.tcard strong { font-size: 1.2rem; color: var(--ink); }
.tcard span { color: var(--muted); font-size: .9rem; }
.tcard:hover { border-color: var(--brand); text-decoration: none; }

/* ---------- quote cards */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.qcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: border-color .15s; }
.qcard:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.qtext { color: var(--ink); display: block; padding: 20px 20px 6px; }
.qtext:hover { text-decoration: none; color: var(--ink); }
.qcard blockquote { margin: 0; font-family: var(--quote); font-size: 1.16rem; line-height: 1.95; position: relative; padding-top: 14px; }
.qcard blockquote::before { content: "”"; position: absolute; top: -18px; inset-inline-start: -4px; font-size: 3rem; color: var(--gold); opacity: .55; line-height: 1; }
.qcard blockquote.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.qfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 12px 14px; flex-wrap: wrap; }
.qauthor { font-weight: 600; font-size: .95rem; padding-inline-start: 8px; }
.qactions { display: flex; gap: 2px; margin-inline-start: auto; }
.act { border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 9px; cursor: pointer; font-size: .9rem; }
.act:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.act svg { width: 19px; height: 19px; }
.act .n { min-width: 1ch; font-variant-numeric: tabular-nums; }
.act.done { color: var(--brand); }

/* big single quote */
.qbig { padding: 36px 32px 16px; margin: 0 auto; max-width: 820px; }
.qbig blockquote { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.85; }
.qbig blockquote::before { font-size: 4.2rem; top: -26px; }
.qbig-author { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 18px; font-size: 1.1rem; }
.qbig .qfoot { padding: 18px 0 4px; border-top: 1px solid var(--line); margin-top: 20px; }
.qbig .qactions { margin-inline-start: 0; flex-wrap: wrap; }
.qnav { display: flex; justify-content: center; gap: 10px; margin: 22px 0; flex-wrap: wrap; }

/* ---------- authors */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.acard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: var(--shadow); color: var(--ink); }
.acard:hover { border-color: var(--brand); text-decoration: none; color: var(--ink); }
.acard strong { font-size: 1rem; line-height: 1.4; margin-top: 6px; }
.aabout { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.acard small { color: var(--brand); font-size: .8rem; font-weight: 600; }
.apic { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.apic img { width: 100%; height: 100%; object-fit: cover; }
.apic .initial { font-size: 2.2rem; font-weight: 700; color: var(--brand); }
.qbig-author .apic { width: 48px; height: 48px; }
.qbig-author .apic .initial { font-size: 1.2rem; }
.apic.big { width: 128px; height: 128px; border: 4px solid var(--paper); box-shadow: var(--shadow); }
.author-head { display: flex; gap: 24px; align-items: center; margin: 8px 0 24px; }
.author-head h1 { margin-bottom: .2em; }
.author-head .about { margin: 0 0 4px; color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 560px) { .author-head { flex-direction: column; text-align: center; } }
.bio { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; color: var(--ink-2); }

/* ---------- pager, buttons, forms */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 32px 0; }
.pager a, .pager b, .pager span { min-width: 40px; text-align: center; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.pager b { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.pager span { border: 0; background: none; }
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); padding: 9px 20px; border-radius: 11px; cursor: pointer; font-weight: 600; }
.btn:hover { background: var(--brand-2); color: var(--on-brand); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn svg { width: 18px; height: 18px; }
.more { text-align: center; margin-top: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ok { background: var(--brand-soft); color: var(--brand); padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.err { background: color-mix(in srgb, var(--dislike) 12%, transparent); color: var(--dislike); padding: 10px 14px; border-radius: 10px; margin: 0; }
.suggest details { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; }
.suggest summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.suggest .form { margin-top: 12px; max-width: none; }
.empty { text-align: center; color: var(--ink-2); padding: 40px 0; }
.empty .chips { justify-content: center; margin-top: 12px; }
.prose { max-width: 820px; }
.prose p { color: var(--ink-2); }
.codebox { position: relative; background: #0f1714; color: #d6e4df; border-radius: var(--radius); padding: 18px; overflow: auto; max-width: 760px; }
.codebox pre { margin: 0; font-size: .85rem; line-height: 1.6; }
.codebox .btn { position: absolute; top: 12px; left: 12px; }
.widget-demo { margin: 0 0 20px; }
.widget-demo iframe { border: 0; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }

/* ---------- ads */
.ad { grid-column: 1 / -1; margin: 8px 0; min-height: 90px; }
.ad-local { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .85rem; }

/* ---------- footer, toast */
.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 28px 0 10px; color: var(--ink-2); font-size: .94rem; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-in p { margin: 4px 0 0; max-width: 420px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.foot nav a { color: var(--ink-2); }
.foot .copy { color: var(--muted); font-size: .82rem; margin-top: 18px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: var(--bg); padding: 9px 18px; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- SEO text, FAQ, related pages */
.seo-text { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 36px 0 0; max-width: none; }
.seo-text h2 { font-size: 1.3rem; margin-top: 0; }
.seo-text h2 + p { margin-top: 0; }
.seo-text p { line-height: 1.95; }
.seo-text a { font-weight: 600; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin: 8px 0 0; }
.related { margin: 28px 0 0; }
.related h2 { font-size: 1.1rem; }
.backlink { background: var(--brand-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; }
/* reserve room for ads so the page does not jump (CLS); hide a slot Google left empty */
.ad { min-height: 280px; }
@media (min-width: 900px) { .ad { min-height: 120px; } }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-local { min-height: 90px; }
/* ad slots: a quiet label + a little air so ads never sit glued to a quote card */
.ad { position: relative; padding-top: 20px; margin: 12px 0; text-align: center; }
.ad-label { position: absolute; top: 0; inset-inline-start: 0; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.agrid .ad { grid-column: 1 / -1; }
.ad-local { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: .85rem; }

/* ---------- search suggestions */
.search { position: relative; overflow: visible; }
.search input { border-radius: 999px; }
.suggest-box { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14); padding: 6px; z-index: 30; display: none; max-height: 70vh; overflow: auto; }
.suggest-box.show { display: block; }
.suggest-box a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.suggest-box a:hover, .suggest-box a.sel { background: var(--brand-soft); text-decoration: none; }
.suggest-box img, .suggest-box .sg-i { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.suggest-box small { color: var(--muted); margin-inline-start: auto; font-size: .8rem; white-space: nowrap; }
.suggest-box .sg-all { justify-content: center; color: var(--brand); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* ---------- back to top */
.to-top { position: fixed; bottom: 18px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--brand); box-shadow: var(--shadow); cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 40; font-size: 1.2rem; }
.to-top.show { display: inline-flex; }
@media (max-width: 820px) { .to-top { bottom: 84px; } }   /* stays above the AdSense anchor ad */

/* ---------- quote image dialog */
.imgdlg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.imgdlg.show { display: flex; }
.imgdlg .box { background: var(--paper); border-radius: 16px; padding: 14px; max-width: 420px; width: 100%; text-align: center; }
.imgdlg img { width: 100%; height: auto; border-radius: 10px; display: block; }
.imgdlg .row { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.imgdlg .themes { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.imgdlg .themes button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.imgdlg .themes button.on { border-color: var(--ink); }

/* ---------- favorites */
.act.heart.on { color: var(--fav); }
.act.heart.on svg path { fill: currentColor; }
.nav-fav svg { width: 16px; height: 16px; }
.favn { background: var(--fav); color: #fff; border-radius: 999px; font-size: .72rem; line-height: 1.5; padding: 0 6px; font-weight: 600; }
.page-head .lead svg, .empty p svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--fav); }
.qcard.removing { opacity: 0; transform: scale(.97); transition: .2s; }

/* ---------- light / dark button */
.theme-btn { border: 0; background: transparent; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 500; }
.theme-btn:hover { background: var(--brand-soft); color: var(--brand); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .i-sun, .theme-btn .theme-txt { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: inline-flex; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
@media (max-width: 820px) {
  .theme-btn { padding: 11px 12px; justify-content: flex-start; }
  .theme-btn .theme-txt { display: inline; }
}
@media (min-width: 821px) and (max-width: 1080px) { .nav a { padding: 8px 8px; } .search { max-width: 260px; } }

/* ---------- categories */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 0 30px; }
.catgrid .tcard strong { font-size: 1.1rem; }
.cats { margin: 8px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.chip.sm { font-size: .82rem; padding: 2px 11px; }
.block.first { margin-top: 0; }
@media (max-width: 560px) { .cats { justify-content: center; } }

/* ---------- install as app */
.install { position: fixed; inset-inline: 12px; bottom: 12px; max-width: 460px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2); padding: 10px 12px; display: flex; align-items: center; gap: 10px; z-index: 45; }
.install[hidden] { display: none; }
.install img { border-radius: 10px; flex: none; }
.install p { margin: 0; flex: 1; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.install p b { display: block; color: var(--ink); font-size: .95rem; }
.install .btn.sm { padding: 6px 14px; font-size: .9rem; flex: none; }
.install-x { border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 6px; flex: none; }
@media (max-width: 820px) { .install { bottom: 76px; } }   /* above the AdSense anchor ad */
@media (display-mode: standalone) { .install { display: none !important; } }
[hidden] { display: none !important; }

/* ---------- the heart (like + save), double-tap, report, sort */
.qcard { position: relative; }
.act.heart svg { width: 20px; height: 20px; }
.act.heart.pop svg { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
.heart-burst { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--fav);
  pointer-events: none; animation: burst .7s ease forwards; z-index: 3; text-shadow: 0 4px 18px rgba(0,0,0,.18); }
@keyframes burst { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.15); opacity: .95; } 60% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.act.report { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.act.report svg { width: 17px; height: 17px; }
.report-box { position: absolute; inset-inline-end: 10px; bottom: 52px; z-index: 5; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18); padding: 10px; display: grid; gap: 4px; min-width: 210px; }
.report-box p { margin: 2px 6px 6px; font-size: .88rem; color: var(--muted); }
.report-box button { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; text-align: start; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.report-box button:hover { background: var(--brand-soft); color: var(--brand); }
.sortbar { display: inline-flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 0 16px; }
.sortbar a { padding: 4px 16px; border-radius: 999px; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.sortbar a:hover { text-decoration: none; color: var(--brand); }
.sortbar a.on { background: var(--brand); color: var(--on-brand); }
.qtext { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { .heart-burst, .act.heart.pop svg { animation: none; } .heart-burst { display: none; } }

/* where a quote comes from (autopilot quotes) */
.qsource{margin:14px 0 4px;padding-top:12px;border-top:1px dashed var(--line,#e3e0d6);font-size:.9rem;color:var(--muted,#6c757a)}
.qsource p{margin:.3em 0}.qsource .qorig{font-style:italic;text-align:left;line-height:1.6}.qsource a{color:inherit;text-decoration:underline}
