/* GlowCheck styles – mobile-first. Colours are defined once here as variables. */
:root {
  --bg: #fff6f1;
  --blush: #fbe4dc; --peach: #ffe3cf; --cream: #fff8f1;
  --rose: #b4584a;        /* rose-gold accent, 5.0:1 on cream */
  --rose-deep: #8f3f36;
  --rose-light: #e8b4a0;
  --glass: rgba(255, 255, 255, .62);
  --font-head: 'Fraunces', Georgia, serif;
  --ink: #3a221d;
  --muted: #6e5048;       /* darkened for WCAG AA contrast */
  --brand: #b4584a;       /* rose gold */
  --brand-2: #a8533f;     /* deep peach */
  --good: #1d7564;        /* score text on white needs 4.5:1 */
  --warn: #9a5a0a;
  --bad: #b23a48;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(143, 63, 54, 0.10);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0; font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 60% at 100% 0%, var(--peach) 0%, transparent 60%),
              radial-gradient(90% 50% at 0% 20%, var(--blush) 0%, transparent 65%),
              linear-gradient(180deg, var(--cream), var(--bg) 60%);
  min-height: 100vh; background-color: var(--bg); background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased; color: var(--ink); line-height: 1.5;
}
main { max-width: 520px; margin: 0 auto; padding: 0 16px 32px; }
h1, h2, .logo { font-family: var(--font-head); letter-spacing: -.01em; }
h2 { margin: 4px 0; font-weight: 600; }
h3 { margin: 0 0 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-btn:focus-within, .btn:focus-visible, .chip:focus-visible, .back:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); margin: 0; }
.center { text-align: center; }
.fine { font-size: .8rem; color: var(--muted); }

.topbar { display: flex; justify-content: space-between; align-items: center; max-width: 520px; margin: 0 auto; padding: 16px; }
.logo { font-weight: 700; font-size: 1.3rem; } .logo span { color: var(--rose); font-style: italic; }
.badge { background: #ffe8d6; color: var(--brand); padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; }

/* Glass surfaces shared by inner views */
.card, .tips-list, .concern { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.75); box-shadow: 0 14px 34px rgba(143,63,54,.10); border-radius: 24px; }
.card { padding: 18px; margin: 14px 0; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
input:not([type=checkbox]) {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid #eadbd2; border-radius: 12px; font: inherit; background: #fffdfb;
}
input:focus { outline: none; border-color: var(--brand); }

.file-btn { position: relative; margin: 10px 0; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 14px; font: inherit; font-weight: 700; cursor: pointer; text-align: center; transition: transform .1s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, #c06a58 0%, var(--rose) 45%, var(--rose-deep) 100%); color: #fff; box-shadow: 0 10px 24px rgba(143, 63, 54, .28), inset 0 1px 0 rgba(255,255,255,.3); border-radius: 999px; }
.btn.ghost { border-radius: 999px; background: rgba(255,255,255,.8); color: var(--brand); border: 1.5px solid #f1d3c4; }
.btn.big { padding: 18px; font-size: 1.05rem; margin: 12px 0; }
.btn.small { width: auto; padding: 8px 12px; font-size: .8rem; }
.back { background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); color: var(--rose-deep); font: inherit; font-weight: 700; font-size: .9rem;
  padding: 8px 14px 8px 10px; margin: 2px 0 6px; border-radius: 99px; cursor: pointer; }

/* Dashboard */
.product { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,227,207,.6)); }
.product > div { min-width: 0; overflow-wrap: anywhere; }
.product .btn { flex: none; margin-left: 12px; }
#productName { font-size: 1.6rem; line-height: 1.15; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(232,180,160,.35); }
.history li:last-child { border: 0; }
.history img, .thumb-ph { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rose-light); }
.history img { object-fit: cover; background: #f3e7df; flex: initial; }
.thumb-ph { background: linear-gradient(135deg, var(--blush), var(--peach)); }
.history .score { margin-left: auto; font-weight: 800; font-size: 1.2rem; font-family: var(--font-head); }

/* Verdict */
.verdict { border-left: 0; position: relative; overflow: hidden; padding-left: 22px; }
.verdict.keep { border-color: var(--good); } .verdict.adjust { border-color: var(--warn); } .verdict.stop { border-color: var(--bad); } .verdict.wait { border-color: var(--brand-2); }
.verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--muted); }
.verdict.keep::before { background: var(--good); } .verdict.adjust::before { background: var(--warn); }
.verdict.stop::before { background: var(--bad); } .verdict.wait::before { background: var(--rose); }
.verdict.keep { background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(214,240,230,.7)); }
.verdict.adjust { background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(255,236,205,.75)); }
.verdict.stop { background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(250,215,218,.75)); }
.verdict.wait { background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(251,228,220,.8)); }
.verdict .tag { display: inline-block; padding: 5px 14px; border-radius: 99px; color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .05em; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.keep .tag { background: var(--good); } .adjust .tag { background: var(--warn); } .stop .tag { background: var(--bad); } .wait .tag { background: var(--rose); }
.verdict ul { padding-left: 18px; margin: 8px 0 0; }
.verdict h3 { font-size: 1.3rem; }

/* Capture */
#view-capture h2 { font-size: 1.8rem; margin: 6px 0 10px; }
.tips-list { list-style: none; padding: 8px 18px; }
.tips-list li { padding: 10px 0; border-bottom: 1px solid rgba(232,180,160,.35); }
.tips-list li:last-child { border: 0; }
#YMK-module { margin-top: 12px; }

/* Loading */
#view-loading { padding-top: 40px; position: relative; }
.loading-photo { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; position: relative; z-index: 1; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--rose-light), 0 0 60px 20px rgba(247,185,168,.55); }
.scanline { width: 200px; height: 3px; margin: -110px auto 106px; border-radius: 3px; position: relative; z-index: 2; box-shadow: 0 0 12px rgba(255,255,255,.9);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), var(--rose-light), rgba(255,255,255,.95), transparent); }
@keyframes scan { 0%,100% { transform: translateY(-90px); } 50% { transform: translateY(90px); } }
#view-loading h2 { font-size: 1.6rem; }
#loadingMsg { display: inline-block; margin-top: 4px; padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.65); color: var(--rose-deep); font-weight: 600; font-size: .9rem; }
#view-loading::before { content: ""; position: absolute; left: 50%; top: 40px; width: 200px; height: 200px; margin-left: -100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,196,0) 55%, rgba(232,180,160,.5) 70%, transparent 72%); }

/* Results */
.score-hero { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, rgba(255,255,255,.8), rgba(251,228,220,.7)); }
.score-hero h2 { font-size: 1.5rem; }
.ring { --p: 0; width: 118px; height: 118px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--rose) calc(var(--p) * 1%), rgba(232,180,160,.3) 0); box-shadow: 0 8px 24px rgba(143,63,54,.15); }
.ring span { width: 94px; height: 94px; border-radius: 50%; background: #fffaf7; display: grid; place-items: center; font-size: 2rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
#deltaText { margin: 8px 0 0; }
.delta-badge { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; line-height: 1.3; }
.delta-badge.up { background: #dcf1e9; color: #155e50; }
.delta-badge.down { background: #fbe0e3; color: #9b2c3a; }
.delta-badge.neutral { background: #efe9e6; color: #5c4b45; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.switch { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; }
.photo-wrap { position: relative; border-radius: 18px; overflow: hidden; background: #000; }
.photo-wrap img { display: block; width: 100%; }
.photo-wrap .mask { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; mix-blend-mode: normal; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { border: 1.5px solid rgba(232,180,160,.7); background: rgba(255,255,255,.8); color: var(--ink); font-weight: 600; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .8rem; cursor: pointer; }
.chip.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.section-title { font-size: 1.3rem; margin: 22px 0 10px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.concern { padding: 14px 16px; }
.concern-head { display: flex; align-items: center; gap: 14px; }
.mini-ring { --p: 0; --c: var(--rose); width: 62px; height: 62px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(232,180,160,.28) 0); }
.mini-num { width: 48px; height: 48px; border-radius: 50%; background: #fffaf7; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.concern-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.concern-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; line-height: 1.25; }
.c-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--blush), var(--peach)); font-size: .85rem; margin-right: 4px; }
.concern .focus { font-size: .7rem; background: #ffe8d6; color: var(--rose-deep); padding: 2px 8px; border-radius: 99px; margin-left: 2px; }
.concern details { font-size: .88rem; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(232,180,160,.35); }
.concern summary { cursor: pointer; color: var(--rose-deep); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 480px;
  background: #3a221d; color: #fff; padding: 14px 16px; border-radius: 18px; box-shadow: var(--shadow); z-index: 99; }
.foot { text-align: center; font-size: .75rem; color: var(--muted); padding: 20px; }

@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }

/* Shared entrance animations (off for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  #view-onboard .hero > *, .onboard-card { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  #view-onboard .hero > :nth-child(2) { animation-delay: .08s; }
  .onboard-card { animation-delay: .34s; }
  .glow-cta::after { animation: shine 3.5s ease-in-out 1.2s infinite; }
  #view-loading .scanline { animation: scan 2s ease-in-out infinite; }
  #view-loading::before { animation: pulse 2.4s ease-out infinite; }
  .loading-photo { animation: breathe-soft 3s ease-in-out infinite; }
  .view:not(#view-onboard) .card, .view .concern { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
  .grid .concern:nth-child(2) { animation-delay: .05s; } .grid .concern:nth-child(3) { animation-delay: .1s; }
  .grid .concern:nth-child(4) { animation-delay: .15s; } .grid .concern:nth-child(n+5) { animation-delay: .2s; }
  .ring, .mini-ring { animation: ring-in .9s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes pulse { from { transform: scale(.95); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes breathe-soft { 50% { transform: scale(1.02); } }
@keyframes ring-in { from { opacity: 0; transform: scale(.85) rotate(-30deg); } to { opacity: 1; transform: none; } }

/* ---------- Home: editorial ---------- */
#view-onboard { --line: #ecd9cf; }
#view-onboard .hero-editorial { position: relative; text-align: left; margin: -4px -16px 0; padding: 0; }
.hero-photo { position: relative; height: min(66vh, 580px); min-height: 400px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,.35) 75%, transparent 96%); mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,.35) 75%, transparent 96%); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,246,241,0) 50%, rgba(255,246,241,.7) 80%); }
.hero-copy { position: relative; margin-top: -120px; padding: 0 22px; z-index: 1; }
.eyebrow { display: inline-block; margin: 0 0 10px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-deep); }
#view-onboard h1 { font-family: var(--font-head); font-weight: 300; font-size: 2.9rem; line-height: 1.02; letter-spacing: -.025em; margin: 0 0 16px; color: var(--ink); font-variation-settings: "opsz" 144; }
#view-onboard h1 em { font-weight: 300; font-style: italic; color: var(--rose); }
.hero .lede { font-size: .95rem; line-height: 1.6; color: var(--muted); max-width: 32ch; margin: 0; }
.hero .lede b { color: var(--ink); }
.hero-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; color: var(--rose-deep); font-weight: 600; font-size: .9rem; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px; letter-spacing: .02em; }
.hero-link:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 3px; }

.how { margin: 56px 0 8px; }
.kicker { margin: 0 0 6px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--rose-deep); }
.how h2 { font-family: var(--font-head); font-weight: 300; font-size: 2rem; line-height: 1.1; margin: 0 0 22px; letter-spacing: -.02em; }
.how h2 em { color: var(--rose); }
.how-row { list-style: none; margin: 0 -16px; padding: 0 16px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.how-row::-webkit-scrollbar { display: none; }
.how-card { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px 10px 18px; }
.how-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; display: block; background: #f3e2da; }
.how-num { display: block; margin: 14px 8px 2px; font-family: var(--font-head); font-size: .85rem; color: var(--rose); letter-spacing: .05em; }
.how-card h3 { margin: 0 8px 4px; font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; }
.how-card p { margin: 0 8px; font-size: .88rem; line-height: 1.5; color: var(--muted); }

#view-onboard .onboard-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(143,63,54,.04); border-radius: 22px; padding: 28px 22px 22px; margin: 44px 0 8px; scroll-margin-top: 16px; }
#view-onboard .form-title { font-family: var(--font-head); font-weight: 300; font-size: 1.7rem; line-height: 1.15; margin: 0 0 22px; letter-spacing: -.015em; }
#view-onboard .onboard-card label { color: var(--ink); font-weight: 500; font-size: .85rem; margin-bottom: 18px; }
#view-onboard .onboard-card input:not([type=checkbox]) { border-radius: 14px; border: 1px solid var(--line); background: #fffaf7; font-size: 16px; min-height: 48px; }
.onboard-card input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(180,88,74,.15); }
.glow-cta { margin: 8px 0 4px; font-size: 1.08rem; letter-spacing: .01em; position: relative; overflow: hidden; }
.glow-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); }
.onboard-card .fine { margin: 12px 0 0; }

@media (min-width: 600px) {
  #view-onboard .hero-editorial { margin: 0; }
  .how-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
}
@media (prefers-reduced-motion: no-preference) {
  .how-card { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .how-card:nth-child(2) { animation-delay: .08s; } .how-card:nth-child(3) { animation-delay: .16s; }
  .hero-photo img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  html { scroll-behavior: smooth; }
}
@keyframes settle { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------- Multi-product switcher ---------- */
.switcher { margin: 8px 0 4px; }
.switcher-title { font-family: var(--font-head); font-weight: 400; font-size: 1.45rem; margin: 0; letter-spacing: -.01em; }
.product-list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; margin: 12px -16px 0; padding: 2px 16px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.product-list::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 auto; min-width: 150px; max-width: 200px; scroll-snap-align: start; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid #ecd9cf; border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.pcard .pname { font-weight: 600; font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.pcard .pmeta { font-size: .78rem; color: var(--muted); }
.pcard .ptag { align-self: flex-start; margin-top: 4px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; padding: 3px 9px; border-radius: 99px; background: #efe9e6; color: #5c4b45; }
.pcard .ptag.keep { background: #dcf1e9; color: #155e50; } .pcard .ptag.adjust { background: #fdebd0; color: #7a4708; }
.pcard .ptag.stop { background: #fbe0e3; color: #9b2c3a; } .pcard .ptag.wait { background: #fbe4dc; color: #8f3f36; }
.pcard.active { border: 1.5px solid var(--rose); box-shadow: 0 8px 20px rgba(143,63,54,.12); background: linear-gradient(160deg, #fff, #fff3ee); }
.pcard:focus-visible, .linklike:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 2px; }
.btn.danger { color: #9b2c3a; border-color: #f0c9cf; }
.linklike { background: none; border: 0; padding: 8px 4px; margin-top: 6px; font: inherit; font-size: .78rem; color: #8f3f36; text-decoration: underline; cursor: pointer; }
#btnCancelAdd { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } }

/* ---------- Explanatory verdict + recommendations ---------- */
.verdict .v-title { font-family: var(--font-head); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: 10px 0 6px; }
.verdict p { margin: 0 0 10px; line-height: 1.55; font-size: .93rem; }
.verdict .v-label { margin: 14px 0 6px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--rose-deep); }
.verdict .dchips { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.dchip { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.dchip.up { background: #dcf1e9; color: #155e50; } .dchip.down { background: #fbe0e3; color: #9b2c3a; } .dchip.flat { background: #efe9e6; color: #5c4b45; }
.v-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v-scores { list-style: none; padding: 0 !important; margin: 0 !important; }
.v-scores li { display: flex; justify-content: space-between; gap: 6px; font-size: .85rem; padding: 5px 0; border-bottom: 1px solid rgba(232,180,160,.35); }
.v-scores li:last-child { border: 0; }
.v-next { background: rgba(255,255,255,.75); border: 1px solid #ecd9cf; border-radius: 16px; padding: 4px 14px 6px; margin-top: 12px; }
.recs { margin: 22px 0 8px; }
.rec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rec-card { background: #fff; border: 1px solid #ecd9cf; border-radius: 20px; padding: 18px 18px 16px; position: relative; }
.rec-num { font-family: var(--font-head); color: var(--rose); font-size: .85rem; margin-right: 8px; }
.rec-for { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--rose-deep); background: #fbe4dc; padding: 3px 9px; border-radius: 99px; }
.rec-card h4 { font-family: var(--font-head); font-weight: 400; font-size: 1.25rem; margin: 10px 0 6px; }
.rec-card p { margin: 0 0 8px; font-size: .88rem; line-height: 1.5; color: var(--ink); }
.rec-card .rec-label, .rec-card .rec-ex { color: var(--muted); font-size: .82rem; }
.rec-card a { color: #8f3f36; text-underline-offset: 2px; }
.rec-card a:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 2px; }
.recs .fine { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { .rec-card { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; } .rec-card:nth-child(2) { animation-delay: .06s; } .rec-card:nth-child(3) { animation-delay: .12s; } }

/* ---------- Weekly reminder ---------- */
.remind { background: #fff; border: 1px solid #ecd9cf; border-radius: 22px; padding: 16px 18px; margin: 14px 0 4px; }
.remind-row { display: flex; gap: 14px; align-items: flex-start; }
.remind-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: linear-gradient(135deg, var(--blush), var(--peach)); }
.remind-text { margin: 2px 0 2px; font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; line-height: 1.25; color: var(--ink); }
.remind-sub { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.remind.due, .remind.first { border-color: var(--rose); background: linear-gradient(150deg, #fff, #fff1ea); }
.remind.overdue { border: 1.5px solid #b23a48; background: linear-gradient(150deg, #fff, #fde8ea); }
.remind.overdue .remind-text { color: #8e2433; }
.remind.overdue .remind-icon { background: #fbe0e3; }
.remind-cal { margin-top: 12px; border-top: 1px solid rgba(232,180,160,.45); padding-top: 10px; }
.remind-cal summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--rose-deep); padding: 4px 0; }
.cal-body { padding-top: 10px; }
.cal-body .btn { margin: 8px 0; font-size: .92rem; padding: 12px; text-decoration: none; display: block; }
.cal-time { font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.cal-time input { max-width: 160px; display: block; }
.due-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b23a48; margin-left: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(178,58,72,.18); }
.due-txt { color: #8e2433; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  #btnRemindScan { animation: cta-pulse 2.4s ease-in-out infinite; }
}
@keyframes cta-pulse { 0%,100% { box-shadow: 0 10px 24px rgba(143,63,54,.28); } 50% { box-shadow: 0 10px 34px rgba(143,63,54,.5), 0 0 0 6px rgba(180,88,74,.12); } }
.remind-cta { margin-top: 14px; padding: 13px; }

/* ---------- Tidy dashboard: collapsible sections ---------- */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--rose-deep); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; flex: none; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s ease; }
.fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.fold > summary h3 { margin: 0; }
.verdict .fold { margin-top: 10px; border-top: 1px solid rgba(232,180,160,.45); }
.verdict .fold > summary { font-size: .9rem; }
.recs-fold { background: #fff; border: 1px solid #ecd9cf; border-radius: 22px; padding: 6px 18px; }
.recs-fold > summary { flex-wrap: wrap; gap: 2px 10px; padding: 8px 0; }
.recs-fold > summary .kicker { margin: 0; flex-basis: 100%; }
.recs-teaser { font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
.recs-teaser em { color: var(--rose); }
.recs-fold .fold-body { padding-bottom: 12px; }
.recs-fold .fold-body > .muted { font-size: .9rem; margin-bottom: 14px; }
.card.fold { padding-top: 8px; padding-bottom: 8px; }
.card.fold[open] { padding-bottom: 18px; }
.remind-cal.fold > summary { font-size: .88rem; min-height: 36px; }
.concern .fold > summary { min-height: 32px; font-weight: 700; font-size: .88rem; }
@media (prefers-reduced-motion: no-preference) {
  .fold[open] > .fold-body, .fold[open] > .cal-body { animation: fold-in .3s cubic-bezier(.2,.7,.2,1) both; }
}
@media (prefers-reduced-motion: reduce) { .fold > summary::after { transition: none; } }
@keyframes fold-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
