/* Snusst free tools: tool pages, homepage widgets, inline cards in blog posts.
   Loaded after styles.css and only uses its tokens. */

/* ---------- tool page hero ---------- */
.tool-hero { padding: clamp(48px, 7vw, 88px) 0 24px; }
.tool-hero .crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.tool-hero .crumbs a { color: var(--text-2); }
.tool-hero .crumbs a:hover { color: var(--text); }
.tool-hero h1 { font-size: clamp(34px, 5.4vw, 54px); margin: 14px 0 16px; max-width: 820px; }
.tool-hero .lead { max-width: 680px; }

/* ---------- the tool itself ---------- */
.tool-panel {
  background: var(--card-grad);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-6);
  padding: clamp(20px, 3.6vw, 40px);
  display: grid; gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  box-shadow: var(--shadow-md);
}
.tool-panel.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .tool-panel { grid-template-columns: minmax(0, 1fr); } }
.tool-panel h2.tool-sub { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); margin-bottom: 18px; text-transform: uppercase; }
.tool-out { display: flex; flex-direction: column; gap: 16px; }

.result-hero { padding: 4px 0 6px; }
.result-hero .lbl { font-size: 14px; color: var(--text-2); font-weight: 500; }
.result-hero .big {
  font-size: clamp(44px, 7vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  font-variant-numeric: tabular-nums; margin-top: 6px;
  background: linear-gradient(120deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-hero .note { color: var(--text-2); font-size: 14px; margin-top: 8px; }

.stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-3); padding: 14px 14px 12px;
}
.stat .v { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.equiv { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.equiv li {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-2);
  background: color-mix(in oklab, var(--green) 9%, transparent);
  border: 1px solid color-mix(in oklab, var(--green) 20%, transparent);
  font-size: 14.5px;
}
.equiv li b { font-variant-numeric: tabular-nums; }
.equiv .e { font-size: 20px; line-height: 1; }

.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-share svg { width: 16px; height: 16px; }

/* segmented choice */
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.seg button {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.seg button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.input {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--r-2); padding: 12px 14px; width: 100%;
}
.input:focus { outline: none; border-color: var(--primary); }
/* iOS Safari: date inputs keep an intrinsic min width and overflow the card */
input[type="date"].input { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 50px; text-align: left; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; margin: 0; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

.fine { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

/* ---------- the app CTA: clearly an iPhone app, not another web tool ---------- */
.app-cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--card-grad); border: 1px solid var(--border-strong);
  border-radius: var(--r-6); padding: clamp(24px, 4vw, 48px);
}
.app-cta::before {
  content: ''; position: absolute; inset: auto -20% -60% 20%; height: 100%;
  background: radial-gradient(ellipse at center, color-mix(in oklab, var(--primary) 18%, transparent), transparent 65%);
  pointer-events: none;
}
.app-cta > * { position: relative; }
.app-cta .app-id { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.app-cta .app-id img { width: 48px; height: 48px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.app-cta .app-id b { display: block; font-size: 16px; }
.app-cta .app-id span { display: block; font-size: 13px; color: var(--text-2); }
.app-cta h2 { font-size: clamp(24px, 3.2vw, 34px); }
.app-cta p { color: var(--text-2); margin-top: 12px; max-width: 520px; }
.app-cta ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.app-cta ul li { display: flex; gap: 10px; align-items: flex-start; }
.app-cta ul svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.app-cta .stores { margin-top: 24px; align-items: center; }
.app-cta .badge-note { font-size: 13px; color: var(--text-2); }
.app-cta .shot {
  width: 100%; height: auto; border-radius: 28px; border: 6px solid #0B1220;
  box-shadow: var(--shadow-glow), 0 0 0 1px var(--border-strong);
  transform: rotate(3deg);
}
@media (max-width: 720px) {
  .app-cta { grid-template-columns: minmax(0, 1fr); }
  .app-cta .shot-wrap { display: none; }
  /* no screenshot next to it on phones: badge and note centered */
  .app-cta .stores { flex-direction: column; gap: 10px; text-align: center; }
}

/* compact app strip, used mid-article in blog posts (max one per post) */
.app-inline {
  display: flex; gap: 16px; align-items: center;
  margin: 32px 0; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-4);
}
.app-inline img.icon { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 56px; }
.app-inline .txt { flex: 1; min-width: 0; }
.app-inline .txt b { display: block; font-size: 16px; }
.app-inline .txt span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.app-inline .store-badge { flex: 0 0 auto; }
@media (max-width: 560px) {
  .app-inline { flex-wrap: wrap; }
  .app-inline .txt { flex-basis: calc(100% - 72px); }
}

/* inline card that points to a tool (blog posts, homepage) */
.tool-card {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  margin: 32px 0; padding: 18px 20px;
  background: color-mix(in oklab, var(--primary) 7%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--primary) 28%, transparent);
  border-radius: var(--r-4);
  color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.tool-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.tool-card .ti {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--primary) 18%, transparent); color: var(--primary);
}
.tool-card .ti svg { width: 26px; height: 26px; }
.tool-card .kick { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.tool-card b { display: block; font-size: 16.5px; margin-top: 2px; }
.tool-card span.d { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; line-height: 1.45; }
.tool-card .go { font-weight: 600; font-size: 14px; color: var(--primary); white-space: nowrap; }
@media (max-width: 560px) {
  .tool-card { grid-template-columns: 44px minmax(0, 1fr); }
  .tool-card .ti { width: 44px; height: 44px; }
  .tool-card .go { grid-column: 2; }
}

/* ---------- tools hub ---------- */
.tools-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .tools-grid { grid-template-columns: minmax(0, 1fr); } }
.tools-grid .card { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.tools-grid .card:hover { border-color: var(--primary); transform: translateY(-2px); }
.tools-grid .card .go { margin-top: auto; padding-top: 10px; color: var(--primary); font-weight: 600; font-size: 14px; }

/* ---------- prose under a tool ---------- */
.tool-prose { max-width: 760px; margin: 0 auto; }
.tool-prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 48px 0 16px; }
.tool-prose p { color: var(--text-2); margin-bottom: 16px; font-size: 17px; line-height: 1.7; }
.tool-prose p a, .tool-prose li a { color: var(--primary); }
.tool-prose ul { color: var(--text-2); padding-left: 20px; margin: 0 0 16px; font-size: 17px; line-height: 1.7; }
.tool-prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.tool-prose th { text-align: left; padding: 10px 12px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid var(--border); }
.tool-prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tool-prose .sources { font-size: 13.5px; color: var(--text-3); }
.tool-prose .sources li { margin-bottom: 6px; }

.section-tight { padding: clamp(32px, 5vw, 56px) 0; }

/* ---------- health recovery ---------- */
.time-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.time-readout .when { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.time-readout .overall { font-size: 14px; color: var(--text-2); text-align: right; }
.time-readout .overall b { color: var(--green); font-size: 18px; }
.time-ticks { position: relative; height: 16px; font-size: 11px; color: var(--text-3); margin: 8px 11px 0; }
.time-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; cursor: pointer; }
.time-ticks span:first-child { transform: translateX(-11px); }
.time-ticks span:last-child { transform: translateX(calc(-100% + 11px)); }
@media (max-width: 520px) { .time-ticks span.opt { display: none; } }
.health-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
@media (max-width: 620px) { .health-grid { grid-template-columns: minmax(0, 1fr); } }
.hcat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-3); padding: 16px;
  transition: border-color .25s;
}
.hcat.done { border-color: color-mix(in oklab, var(--green) 40%, transparent); }
.hcat .top { display: flex; align-items: center; gap: 10px; }
.hcat .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--c, var(--primary)) 18%, transparent); color: var(--c, var(--primary)); flex: 0 0 34px; }
.hcat .ico svg { width: 18px; height: 18px; }
.hcat .name { font-weight: 700; font-size: 15px; }
.hcat .sub { font-size: 12px; color: var(--text-2); }
.hcat .pct { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.hcat .bar { height: 6px; border-radius: 999px; background: var(--border-strong); margin: 12px 0 10px; overflow: hidden; }
.hcat .bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--c, var(--primary)); transition: width .35s ease; }
.hcat .msg { font-size: 13.5px; color: var(--text-2); line-height: 1.45; min-height: 2.9em; }

/* homepage compact version */
.health-mini { max-width: 880px; margin: 0 auto; }
.health-mini .health-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .health-mini .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.health-mini .hcat .msg { display: none; }
.health-mini .more { text-align: center; margin-top: 24px; }

/* ---------- craving SOS ---------- */
.sos { max-width: 560px; margin: 0 auto; text-align: center; }
.sos-step { display: none; }
.sos-step.active { display: block; }
.sos h2 { font-size: clamp(24px, 3.6vw, 32px); margin-bottom: 10px; }
.sos .muted { color: var(--text-2); }
.scale-10 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 24px 0; }
@media (max-width: 480px) { .scale-10 { gap: 4px; } .scale-10 button { font-size: 15px; border-radius: 9px; } }
.scale-10 button {
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text);
  padding: 0; min-width: 0;
}
.scale-10 button:hover { border-color: var(--primary); }
.scale-10 button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: -16px; margin-bottom: 20px; }
.choice-list { display: grid; gap: 12px; margin-top: 24px; text-align: left; }
.choice {
  display: flex; gap: 14px; align-items: center; cursor: pointer; width: 100%;
  font: inherit; color: var(--text); text-align: left;
  padding: 18px; border-radius: var(--r-4);
  background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: border-color .2s;
}
.choice:hover { border-color: var(--primary); }
.choice .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 16%, transparent); color: var(--primary); flex: 0 0 44px; }
.choice .ico svg { width: 22px; height: 22px; }
.choice b { display: block; font-size: 16px; }
.choice span { display: block; font-size: 13.5px; color: var(--text-2); }
.breath-wrap { display: grid; place-items: center; height: 300px; margin: 16px 0; }
.breath-circle {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--primary) 70%, white), var(--primary-2));
  box-shadow: 0 0 80px -10px var(--primary);
  display: grid; place-items: center; color: var(--primary-ink); font-weight: 700; font-size: 15px;
  transition: transform 4s ease-in-out;
}
.breath-circle.in { transform: scale(2.1); }
#b-done:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; font-variant-numeric: tabular-nums; }
.sos-timer { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ground-card { padding: 16px 24px; margin: 16px 0 24px; }
.ground-card .n { font-size: 64px; font-weight: 800; color: var(--primary); line-height: 1; }
.ground-card b { display: block; font-size: 22px; margin-top: 10px; }
.ground-card span { display: block; color: var(--text-2); margin-top: 6px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.dots i.on { background: var(--primary); }
/* result: old strength grey + struck through, new one big in its craving colour
   (1-3 green, 4-5 gold, 6-7 orange, 8-10 red) */
.sos-result { display: flex; justify-content: center; align-items: baseline; gap: clamp(18px, 4vw, 34px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.sos-result .before { font-size: clamp(54px, 8vw, 76px); color: var(--text-3); text-decoration: line-through; text-decoration-thickness: .07em; text-decoration-color: color-mix(in oklab, var(--danger) 70%, transparent); }
.sos-result .arrow { font-size: 34px; color: var(--text-3); font-weight: 600; transform: translateY(-.35em); }
.sos-result .after { font-size: clamp(96px, 15vw, 140px); color: var(--bc); }
.sos-result.same .before, .sos-result.same .arrow { display: none; }
.sos [data-step="result"] h2 { font-size: clamp(22px, 3.2vw, 28px); margin: 18px 0 4px; }
.sos-sub { font-size: 14px; color: var(--text-3); font-weight: 600; }
.sos [data-b="l"] { --bc: var(--green); } .sos [data-b="m"] { --bc: var(--gold); }
.sos [data-b="s"] { --bc: var(--orange); } .sos [data-b="x"] { --bc: var(--danger); }

/* ---------- withdrawal planner: hardest day + intensity curve ---------- */
.plan-out { justify-content: center; }
.plan-kick { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.plan-big { font-size: clamp(48px, 7vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--bc); transition: color .3s; font-variant-numeric: tabular-nums; }
.plan-pill { display: inline-flex; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--bc); padding: 4px 12px; border-radius: 99px; background: color-mix(in oklab, var(--bc) 14%, transparent); }
.plan-bars { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 5px; align-items: end; height: 150px; margin-top: 10px; }
.plan-bars button { all: unset; cursor: pointer; height: 100%; display: flex; align-items: flex-end; }
.plan-bars button i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--c); transition: height .35s cubic-bezier(.2,.8,.2,1), background .3s; }
.plan-bars button.past i { background: var(--surface-2); }
.plan-bars button.sel i { outline: 2px solid var(--text); outline-offset: 2px; }
.plan-bars button.today i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.plan-bars button:focus-visible i { outline: 2px solid var(--primary); outline-offset: 2px; }
.plan-axis { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 5px; font-size: 11px; color: var(--text-3); text-align: center; font-weight: 600; margin-top: 6px; }
.plan-axis span { white-space: nowrap; }
.plan-cap { min-height: 44px; font-size: 15px; color: var(--text-2); line-height: 1.45; }
.plan-cap b { color: var(--text); }
.plan-cap a { color: var(--primary); }

/* ---------- strength table ---------- */
.str-table-wrap { overflow-x: auto; margin: 0 -4px; }
.str-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.str-table th { text-align: left; padding: 10px 12px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid var(--border); cursor: pointer; white-space: nowrap; user-select: none; }
.str-table th[aria-sort="ascending"]::after { content: ' ↑'; }
.str-table th[aria-sort="descending"]::after { content: ' ↓'; }
.str-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.str-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.str-pill.l { background: color-mix(in oklab, var(--green) 16%, transparent); color: var(--green); }
.str-pill.m { background: color-mix(in oklab, var(--gold) 16%, transparent); color: var(--gold); }
.str-pill.s { background: color-mix(in oklab, var(--orange) 18%, transparent); color: var(--orange); }
.str-pill.x { background: color-mix(in oklab, var(--danger) 18%, transparent); color: var(--danger); }

/* footer with a Free tools column */
.footer-grid.footer-grid-4 { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid.footer-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid.footer-grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 861px) { #planner > div:first-child { position: sticky; top: 88px; align-self: start; } }

/* homepage hooks */
.card .card-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--primary); }
.card .card-link:hover { text-decoration: underline; }
.cost-strip {
  max-width: 520px; margin: 24px auto 0; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-5);
}
.cost-strip .cost-line { margin: 16px 0 8px; font-size: 15.5px; }
.cost-strip .cost-line b { font-variant-numeric: tabular-nums; }
.cost-strip a { font-size: 14px; font-weight: 600; color: var(--primary); }

/* cost calculator: gone vs. yours to keep (design/cost-calculator-e.html, E4) */
.keep-wrap { display: grid; gap: 12px; align-content: center; }
.keep-card { border-radius: var(--r-4); padding: 20px 22px; border: 1px solid var(--border); }
.keep-card .k { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.keep-card .v { font-size: clamp(36px, 5.5vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.keep-gone { background: var(--surface-2); }
.keep-gone .k, .keep-gone .v { color: var(--text-3); }
.keep-gone .v { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: color-mix(in oklab, var(--danger) 70%, transparent); }
.keep-yours { --primary: var(--green); background: color-mix(in oklab, var(--green) 10%, transparent); border-color: color-mix(in oklab, var(--green) 28%, transparent); }
.keep-yours .k, .keep-yours .v { color: var(--green); }
.keep-yours .slider { margin-top: 16px; }
.keep-yours .slider-scale { color: var(--text-2); font-size: 12px; }

/* ---------- recovery: eight body icons ---------- */
.heal-top { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 18px; }
.heal-top b { font-size: clamp(48px, 7vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.heal-top span { color: var(--text-2); font-size: 16px; }
.heal-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .heal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; } }
.heal-it { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.heal-ico { position: relative; width: 100%; max-width: 72px; aspect-ratio: 1; }
.heal-ico svg.r { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.heal-ico svg.r circle { fill: none; stroke-width: 4; }
.heal-ico svg.r .trk { stroke: var(--surface-2); }
.heal-ico svg.r .arc { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .4s ease; }
.heal-ico .in { position: absolute; inset: 9px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); background: var(--surface-2); transition: background .3s, color .3s; }
.heal-ico .in svg { width: 40%; height: 40%; }
.heal-it.part .in { color: var(--c); }
.heal-it.done .in { background: color-mix(in oklab, var(--c) 22%, transparent); color: var(--c); }
.heal-it .n { font-size: 12px; color: var(--text-3); font-weight: 600; text-align: center; }
.heal-it.done .n { color: var(--c); }

/* share buttons always sit centered in their column */
.tool-actions:has(.btn-share) { justify-content: center; }

/* ---------- pouch strength: daily mg + strength scale ---------- */
.dose-out { justify-content: center; }
[data-b="l"] { --bc: var(--green); } [data-b="m"] { --bc: var(--gold); }
[data-b="s"] { --bc: var(--orange); } [data-b="x"] { --bc: var(--danger); }
.dose-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dose-top b { font-size: clamp(56px, 8vw, 84px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--bc); transition: color .3s; font-variant-numeric: tabular-nums; }
.dose-top span { color: var(--text-2); font-size: 17px; }
.dose-scale { position: relative; margin: 34px 0 6px; }
.dose-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 3px; }
.dose-bar i { display: block; height: 100%; background: color-mix(in oklab, var(--c) 30%, transparent); transition: background .3s; }
.dose-bar i.on { background: var(--c); }
.dose-pin { position: absolute; top: -30px; transform: translateX(-50%); transition: left .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; align-items: center; }
.dose-pin span { font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 99px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.dose-pin::after { content: ""; width: 3px; height: 26px; margin-top: 2px; border-radius: 3px; background: var(--text); }
.dose-labels { display: flex; gap: 3px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.dose-labels span { text-align: center; white-space: nowrap; overflow: hidden; }
.dose-labels span.on { color: var(--c); }

/* tools hub: blue card icon (mg/g converter) */
.tint-blue .card-icon { background: color-mix(in oklab, var(--primary) 18%, transparent); color: var(--primary); }
