/* Sakinah: a lamp-lit glass jar by the sea at night. One bold element (the jar); everything else quiet. */
:root {
  --bg: #0E2A30;          /* sea-ink */
  --surface: #123840;     /* deep */
  --raised: #184750;
  --text: #DCE7E3;        /* mist */
  --muted: #8FB3A6;       /* sage */
  --lamp: #F2C879;        /* lamp light */
  --accent: #F2C879;      /* text-safe accent */
  --on-accent: #1A2A22;
  --rose: #C98A8A;        /* dedication only */
  --line: rgba(220, 231, 227, .13);
  --glass: rgba(220, 231, 227, .55);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .6);
  --scale: 1;
  --f-read: 'Spectral', Georgia, serif;
  --f-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-quran: 'Amiri Quran', 'Amiri', 'Geeza Pro', 'Noto Naskh Arabic', serif;
  --f-ar: 'Amiri', 'Geeza Pro', 'Noto Naskh Arabic', serif;
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EEF3F1;
  --surface: #F8FBFA;
  --raised: #FFFFFF;
  --text: #17363C;
  --muted: #4B6B65;
  --accent: #85601A;      /* brass, AA on mist */
  --on-accent: #FFFFFF;
  --line: rgba(23, 54, 60, .13);
  --glass: rgba(23, 54, 60, .45);
  --shadow: 0 18px 40px -26px rgba(23, 54, 60, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #EEF3F1; --surface: #F8FBFA; --raised: #FFFFFF; --text: #17363C; --muted: #4B6B65;
    --accent: #85601A; --on-accent: #FFFFFF; --line: rgba(23, 54, 60, .13); --glass: rgba(23, 54, 60, .45);
    --shadow: 0 18px 40px -26px rgba(23, 54, 60, .35); color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: calc(1.0625rem * var(--scale))/1.65 var(--f-read);
  padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 24px);
  background-image: radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--lamp) 9%, transparent), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar & tabs ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px; max-width: 40rem; margin: 0 auto;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-ar { font: 1.55rem/1 var(--f-ar); color: var(--accent); }
.brand-en { font: 500 .95rem/1 var(--f-ui); letter-spacing: .02em; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--muted); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.icon-btn:hover { color: var(--text); }

.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 30; display: flex; justify-content: center; gap: 2px;
  padding: 6px 8px calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.tabs a {
  flex: 1; max-width: 96px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-decoration: none; color: var(--muted); font: 500 .72rem/1 var(--f-ui); border-radius: 14px;
}
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--accent); }
.tabs a[aria-current="page"] svg { stroke-width: 2; }

/* ---------- layout ---------- */
main { max-width: 40rem; margin: 0 auto; padding: 4px 18px 0; outline: none; }
main:focus, main:focus-visible { outline: none; }
.view { animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
h1, h2, h3 { font-family: var(--f-read); font-weight: 500; line-height: 1.25; margin: 0; letter-spacing: -.005em; }
h1 { font-size: calc(1.8rem * var(--scale)); }
h2 { font-size: calc(1.35rem * var(--scale)); }
h3 { font-size: calc(1.1rem * var(--scale)); }
p { margin: 0; }
.muted { color: var(--muted); }
.ui { font-family: var(--f-ui); }
.stack > * + * { margin-top: var(--gap, 16px); }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { font: 500 .9rem var(--f-ui); color: var(--accent); text-decoration: none; }
.page-title { margin: 14px 0 6px; }
.lede { color: var(--muted); max-width: 34ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font: 500 .98rem/1 var(--f-ui); text-decoration: none; color: var(--text); transition: background .2s, border-color .2s, transform .1s;
}
.btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.ghost { background: none; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-action { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: none; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-action[aria-pressed="true"] { color: var(--rose); }
.icon-action[aria-pressed="true"] svg { fill: currentColor; }
.icon-action:hover { color: var(--text); }

/* ---------- home ---------- */
.greet { margin-top: 8px; }
.greet .salam { font: 1.65rem/1.3 var(--f-ar); color: var(--accent); text-align: left; }
.greet h1 { margin-top: 2px; }
.prayer-pill {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font: 500 .9rem/1 var(--f-ui); color: var(--muted);
}
.prayer-pill b { color: var(--text); font-weight: 600; }
.prayer-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px var(--lamp); }

/* the jar */
.jar-stage { position: relative; display: grid; place-items: center; margin: 22px auto 0; }
.jar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 40px; -webkit-tap-highlight-color: transparent; }
.jar { width: min(62vw, 230px); height: auto; overflow: visible; }
.jar .glass { fill: color-mix(in srgb, var(--text) 4%, transparent); stroke: var(--glass); stroke-width: 1.6; }
.jar .rim { fill: none; stroke: var(--glass); stroke-width: 1.6; }
.jar .lid { fill: var(--surface); stroke: var(--glass); stroke-width: 1.4; }
.jar .cord { fill: none; stroke: var(--lamp); stroke-width: 1.4; opacity: .7; }
.jar .shine { fill: none; stroke: color-mix(in srgb, var(--text) 35%, transparent); stroke-width: 2; stroke-linecap: round; }
.jar .glow { transition: transform 1.4s cubic-bezier(.3, .7, .2, 1); transform-origin: 50% 100%; transform-box: fill-box; }
.jar .note { fill: color-mix(in srgb, var(--lamp) 85%, #fff); stroke: color-mix(in srgb, var(--lamp) 60%, #000); stroke-width: .6; }
.jar .note.fold { fill: color-mix(in srgb, var(--lamp) 60%, #8a6a2b); stroke: none; }
.jar .float { animation: bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.jar g:nth-of-type(2n) > .float { animation-duration: 7.5s; animation-delay: -2s; }
.jar g:nth-of-type(3n) > .float { animation-duration: 8.5s; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(3deg); } }
.jar-hint { margin-top: 10px; font: 500 .9rem var(--f-ui); color: var(--muted); text-align: center; }
.rising-note {
  position: absolute; left: 50%; top: 42%; width: 34px; height: 24px; margin-left: -17px; border-radius: 3px;
  background: color-mix(in srgb, var(--lamp) 85%, #fff); box-shadow: 0 0 24px var(--lamp); pointer-events: none;
  animation: rise .9s cubic-bezier(.3, .6, .2, 1) forwards;
}
@keyframes rise { 60% { opacity: 1; } to { transform: translateY(-150px) rotate(-8deg) scale(1.4); opacity: 0; } }

/* the note card (verse unfolds from the jar) */
.note-card {
  position: relative; margin-top: 18px; padding: 26px 22px 20px; border-radius: 6px 6px 22px 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform-origin: top center; animation: unfold .7s cubic-bezier(.2, .7, .2, 1) both;
}
.note-card::before { /* the paper crease */
  content: ""; position: absolute; left: 18px; right: 18px; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent); pointer-events: none;
}
@keyframes unfold { from { transform: perspective(700px) rotateX(-70deg) scaleY(.4); opacity: 0; } }

/* feelings */
.feelings { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer;
  font: 500 .95rem/1 var(--f-ui); color: var(--text); display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.chip:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip.light { border-style: dashed; }
.group-label { font: 500 .85rem var(--f-ui); color: var(--muted); margin: 18px 0 10px; }

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tool {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; min-height: 104px; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s;
}
.tool:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tool svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tool b { font: 600 .98rem var(--f-ui); }
.tool span { font: .85rem/1.35 var(--f-ui); color: var(--muted); }

.dedication { margin: 48px 0 8px; text-align: center; font: italic .95rem var(--f-read); color: var(--muted); }
.dedication .heart { color: var(--rose); font-style: normal; }

/* ---------- reading cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px 16px; box-shadow: var(--shadow); }
.kind { display: flex; align-items: center; gap: 8px; font: 500 .85rem var(--f-ui); color: var(--muted); }
.kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px var(--lamp); }
.ar {
  font-family: var(--f-ar); direction: rtl; text-align: right; font-size: calc(1.55rem * var(--scale)); line-height: 2.05;
  margin: 14px 0 4px; color: var(--text); word-spacing: .05em;
}
.ar.quran { font-family: var(--f-quran); font-size: calc(1.7rem * var(--scale)); line-height: 2.35; text-align: center; }
.ar .ayah-no { font-family: var(--f-ui); font-size: .7em; color: var(--accent); margin: 0 .25em; }
.en { font-size: calc(1.08rem * var(--scale)); line-height: 1.7; margin-top: 12px; }
.en .ayah-no { font: 500 .75em var(--f-ui); color: var(--accent); margin-right: .3em; vertical-align: .1em; }
.ref { margin-top: 12px; font: 500 .88rem var(--f-ui); color: var(--muted); }
.ref a { color: var(--accent); }
.reflect { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--lamp) 8%, transparent); border-left: 3px solid var(--lamp); }
.reflect small { display: block; font: 600 .78rem var(--f-ui); color: var(--accent); margin-bottom: 2px; }
.reflect p { font-style: italic; }
.translit { margin-top: 10px; font: italic calc(1rem * var(--scale))/1.6 var(--f-read); color: var(--muted); }
.note-line { margin-top: 10px; font: .9rem/1.5 var(--f-ui); color: var(--muted); }
.card-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-actions .grow { flex: 1; }
details.full-ar { margin-top: 12px; }
details.full-ar summary { cursor: pointer; font: 500 .88rem var(--f-ui); color: var(--accent); min-height: 32px; display: flex; align-items: center; }
details.full-ar .ar { font-size: calc(1.2rem * var(--scale)); line-height: 2; }
.tag-ab { font: 500 .75rem var(--f-ui); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }

/* ---------- journey ---------- */
.journey { min-height: calc(100dvh - 160px); display: flex; flex-direction: column; }
.steps { display: flex; gap: 6px; margin: 8px 0 18px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.done { background: var(--lamp); }
.journey-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.journey-head .ui { font-weight: 500; color: var(--muted); font-size: .9rem; }
.journey-foot { margin-top: 20px; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.journey-foot .btn.primary { flex: 1; max-width: 260px; margin-left: auto; }

/* breathing orb */
.breathe-wrap { display: grid; place-items: center; padding: 26px 0 8px; }
.orb { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.orb::before { background: radial-gradient(circle, color-mix(in srgb, var(--lamp) 55%, transparent) 0%, color-mix(in srgb, var(--lamp) 10%, transparent) 55%, transparent 70%); transform: scale(var(--s, .55)); transition: transform var(--t, 4s) cubic-bezier(.45, 0, .55, 1); }
.orb::after { border: 1px solid var(--line); }
.orb .phase { position: relative; font: 500 1.05rem var(--f-ui); text-align: center; }
.orb .phase small { display: block; font: 1.3rem/1.6 var(--f-ar); color: var(--accent); }
.breathe-meta { margin-top: 16px; font: .9rem var(--f-ui); color: var(--muted); text-align: center; }

/* closing */
.closing { text-align: center; padding-top: 10px; }
.closing .jar { margin: 8px auto 10px; width: 170px; }
.closing h2 { margin-bottom: 8px; }
.closing .choices { display: grid; gap: 10px; margin-top: 22px; }
.support { text-align: left; margin-top: 22px; }
.support a.tel { font: 600 1.1rem var(--f-ui); color: var(--accent); }

/* ---------- lists / library ---------- */
.search { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 1rem var(--f-ui); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; min-height: 38px; font-size: .88rem; }
.list { display: grid; gap: 12px; margin-top: 14px; }
.row {
  display: block; width: 100%; text-align: left; padding: 16px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; text-decoration: none;
}
.row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.row .ui { font-size: .82rem; color: var(--muted); font-weight: 500; }
.row p { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row h3 { margin-top: 2px; }
.empty { padding: 28px 18px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.count { font: .85rem var(--f-ui); color: var(--muted); }

/* sheet (modal) */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(5, 15, 18, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 40rem; max-height: 88dvh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 18px calc(24px + var(--safe-b)); border: 1px solid var(--line); animation: up .3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 10px; }
.sheet-close { float: right; }

/* ---------- tools ---------- */
.counter { display: grid; place-items: center; margin-top: 18px; }
.tap-zone {
  width: min(78vw, 300px); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--lamp) 16%, transparent), transparent 65%), var(--surface);
  display: grid; place-items: center; text-align: center; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform .08s;
}
.tap-zone:active { transform: scale(.97); }
.tap-zone .n { font: 500 3.6rem/1 var(--f-ui); font-variant-numeric: tabular-nums; }
.tap-zone .of { font: .95rem var(--f-ui); color: var(--muted); margin-top: 6px; }
.tap-zone .word { font: 1.6rem/1.6 var(--f-ar); color: var(--accent); }
.tap-zone .word-en { font: italic .95rem var(--f-read); color: var(--muted); }
.ring { position: absolute; }
.seg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); width: fit-content; }
.seg button { min-height: 38px; padding: 0 14px; border-radius: 10px; border: 0; background: none; cursor: pointer; font: 500 .88rem var(--f-ui); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line); }

textarea.field, input.field {
  width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 1.05rem/1.6 var(--f-read); padding: 14px 16px;
}
textarea.field { min-height: 140px; resize: vertical; }
.release-out { transition: opacity 1.6s ease, transform 1.6s ease, filter 1.6s ease; }
.release-out.go { opacity: 0; transform: translateY(-60px) scale(.9); filter: blur(6px); }
.check { display: flex; gap: 10px; align-items: center; font: .92rem var(--f-ui); color: var(--muted); min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.gratitude-notes { display: grid; gap: 8px; margin-top: 14px; }
.gnote { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.gnote p { flex: 1; }
.gnote time { display: block; font: .78rem var(--f-ui); color: var(--muted); margin-top: 2px; }
.gnote button { border: 0; background: none; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 10px; }

/* prayer table */
.times { display: grid; gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.times div { display: flex; justify-content: space-between; padding: 14px 18px; font: 500 1rem var(--f-ui); border-top: 1px solid var(--line); }
.times div:first-child { border-top: 0; }
.times div.next { background: color-mix(in srgb, var(--lamp) 12%, transparent); }
.times div.next span:first-child::after { content: "  next"; font-weight: 500; font-size: .8rem; color: var(--accent); }
.times .t { font-variant-numeric: tabular-nums; }

/* settings */
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; }
.setting label, .setting .lbl { font: 500 1rem var(--f-ui); }
.setting small { display: block; font: .85rem var(--f-ui); color: var(--muted); font-weight: 400; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); background: var(--on-accent); }
input[type="range"] { accent-color: var(--accent); width: 140px; }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--accent); }
.prose h3 { margin-top: 24px; margin-bottom: 6px; }
.prose ul { padding-left: 1.1em; margin: 8px 0; }
.prose li + li { margin-top: 6px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font: 500 .92rem var(--f-ui); transition: .25s; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* light-fill celebration */
.fill-light .glow { transform: scaleY(1) !important; }

@media (min-width: 640px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 28px 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
