/* Free tools (chartside.app/tools). The island, Dot Phrase box, logging strip and day card follow the Chartside app's own
   tokens (chartside-app: IslandTokens.swift, GlassStyle.swift, DotPhraseBoxView.swift, LoggingBoxView.swift,
   TrackerPaneView.swift), so the demos look like the app and not like a web widget. Page chrome reuses the site's classes. */

.tool-notice svg { vertical-align: -2px; margin-right: .4rem; }
.tool-notice { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.tool-wrap { max-width: 860px; margin: var(--s5) auto 0; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-top: var(--s4); }
.tool-actions .btn { padding: .75rem 1.5rem; font-size: 1rem; }
.btn--ghost { background: #fff; border: 1.5px solid var(--teal-tint); }
.btn--ghost:hover { background: #F6FCFB; border-color: #D3EEEA; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.tool-msg { text-align: center; font-size: .9375rem; color: var(--body); margin-top: var(--s3); min-height: 1.4em; }
.tool-fine { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: var(--s3); max-width: 44rem; margin-inline: auto; line-height: 1.5; }
.tool-more { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-top: var(--s3); font-size: .9375rem; }
.tool-more a { color: var(--teal-deep); }
.tool-cta { text-align: center; margin-top: var(--s6); }

/* ---------- The stage: the app's backdrop (Brand.backdrop, 135deg) ---------- */
.cs-stage { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--hairline); padding: 20px 20px 40px;
  background: linear-gradient(135deg, #E9F5F3, #EAF1F7); display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* A plain note window: where the dictation lands (any app with a text field). */
.cs-note { width: 100%; max-width: 620px; background: #fff; border: 1px solid #D4D9E2; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(16,35,46,.10); }
.cs-note__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F1F4F6; border-bottom: 1px solid #E1E7E7; font-size: 11.5px; color: #4A6070; }
.cs-note__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DCE0; display: block; }
.cs-note__bar span { margin-left: 6px; }
.cs-note__body { min-height: 190px; max-height: 320px; overflow: auto; padding: 16px 18px; font-size: 15px; line-height: 1.55; color: #17181A; white-space: pre-wrap; text-align: left; }
.cs-note__ph { color: #9AA0A0; }
.cs-note__body .cs-caret { display: inline-block; width: 1.5px; height: 1.1em; background: #128C8C; vertical-align: text-bottom; margin-left: 1px; animation: csCaret 1s steps(1) infinite; }
@keyframes csCaret { 50% { opacity: 0; } }
.cs-note__body.is-landed { animation: csLand .5s ease-out; }
@keyframes csLand { from { background: rgba(18,140,140,.10); } to { background: transparent; } }

.cs-dock { width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 232px; position: relative; }

/* ---------- Glass (GlassStyle.swift) ---------- */
.cs-glass { background: linear-gradient(90deg, rgba(18,140,140,.16), rgba(91,184,212,.16)), rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); }

/* ---------- The island (IslandTokens.swift, IslandView.swift) ---------- */
.cs-island { position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; flex: none;
  width: 130px; height: 38px; padding: 0 14px; border-radius: 29px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.4), 0 8px 24px rgba(16,35,46,.28);
  transition: width .45s ease-out, height .3s cubic-bezier(.32,.72,.25,1), padding .45s ease-out, box-shadow .45s ease-out, opacity .45s ease-out, transform .45s ease-out; }
.cs-island[data-state="listening"], .cs-island[data-state="polishing"] { width: 100%; height: 58px; padding: 0 20px; justify-content: flex-start;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.4), 0 14px 36px rgba(16,35,46,.28); }
.cs-island[data-lines="2"] { height: 78px; }
.cs-island[data-lines="3"] { height: 98px; }
.cs-island.is-dropping { opacity: 0; transform: translateY(40px); }

/* idle: five still bars and the keycap (FaintIsland.swift) */
.cs-idle { display: flex; align-items: center; gap: 8px; }
.cs-idle__bars { display: flex; align-items: center; gap: 2px; }
.cs-idle__bars i { display: block; width: 2.5px; border-radius: 1.25px; background: rgba(18,140,140,.55); }
.cs-key { font: 600 10px/1 "Instrument Sans", system-ui, sans-serif; color: #128C8C; background: rgba(255,255,255,.75); border: 1px solid rgba(18,140,140,.25); border-radius: 5px; padding: 3px 5px; }
.cs-live { display: none; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.cs-island[data-state="listening"] .cs-idle, .cs-island[data-state="polishing"] .cs-idle { display: none; }
.cs-island[data-state="listening"] .cs-live, .cs-island[data-state="polishing"] .cs-live { display: flex; animation: csFade .3s ease-out .15s both; }
@keyframes csFade { from { opacity: 0; } to { opacity: 1; } }

.cs-ctl { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.cs-ctl:active { transform: scale(.92); }
.cs-ctl--x { background: rgba(255,255,255,.7); color: #33475A; }
.cs-ctl--x:hover { background: rgba(255,255,255,.85); }
.cs-ctl--ok { background: linear-gradient(90deg, #128C8C, #5BB8D4); color: #fff; box-shadow: 0 3px 10px rgba(11,95,99,.35); }
.cs-ctl--ok:hover { transform: scale(1.04); }
.cs-island[data-state="polishing"] .cs-ctl--ok { display: none; }
.cs-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.cs-mic { flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(90deg, #128C8C, #5BB8D4); display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(18,140,140,.18); }
.cs-island[data-state="polishing"] .cs-mic svg { opacity: .6; }
.cs-bars { flex: none; display: flex; align-items: center; gap: 2.5px; height: 32px; width: 41.5px; }
.cs-bars i { display: block; width: 3px; border-radius: 2px; background: rgba(18,140,140,.55); }

/* live transcript: Instrument Sans 400 15/20, up to three lines, newest line at the bottom, older lines fade off the top */
.cs-tx { flex: 1; min-width: 0; height: 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; transition: height .3s cubic-bezier(.32,.72,.25,1); }
.cs-island[data-lines="2"] .cs-tx { height: 40px; }
.cs-island[data-lines="3"] .cs-tx { height: 60px; }
.cs-tx.is-over { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px); mask-image: linear-gradient(to bottom, transparent, #000 14px); }
.cs-tx__in { font: 400 15px/20px "Instrument Sans", system-ui, sans-serif; color: #10232E; overflow-wrap: anywhere; }
.cs-tx__in .is-interim { color: #4A6070; }
.cs-tx__in .cs-slug { font-weight: 600; color: #0B5F63; font-variant-numeric: tabular-nums; }
.cs-tx__hint { color: #4A6070; }

.cs-chip { flex: none; display: none; position: relative; overflow: hidden; font: 600 11px/1 "Instrument Sans", system-ui, sans-serif; color: #0B5F63; background: rgba(255,255,255,.85); border-radius: 999px; padding: 6px 9px; }
.cs-island[data-state="polishing"] .cs-chip { display: inline-block; }
.cs-chip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: csShimmer 1.1s linear infinite; }
@keyframes csShimmer { to { left: 100%; } }

/* "Dictating with Chartside": a capsule 8px above the pill for the first three seconds (DictatingLabel.swift) */
.cs-label { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; white-space: nowrap;
  font: 500 11px/1 "Instrument Sans", system-ui, sans-serif; color: #10232E; opacity: 0; pointer-events: none; transition: opacity .6s ease-in-out;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.4), 0 8px 24px rgba(16,35,46,.28); }
.cs-label.is-on { opacity: 1; transition: opacity .12s ease-out; }
.cs-label i, .cs-dot { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(90deg, #128C8C, #5BB8D4); display: block; flex: none; }
.cs-islandwrap { position: relative; width: 100%; display: flex; justify-content: center; }

/* ---------- Dot Phrase box: "PHRASE LIBRARY", 14px above the island (DotPhraseBoxView.swift) ---------- */
.cs-box { width: 100%; box-sizing: border-box; margin-bottom: 14px; border-radius: 16px; padding: 12px 14px; display: none; flex-direction: column; gap: 6px; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.4), 0 16px 40px rgba(16,35,46,.28); }
.cs-box.is-on { display: flex; animation: csWipe .96s cubic-bezier(.32,.72,.25,1) both; }
.cs-box.is-out { display: flex; animation: csDrop .45s ease-in both; }
@keyframes csWipe { 0% { transform: translateX(-120%) rotate(-5deg); opacity: .2; } 62.5% { transform: translateX(6px) rotate(.3deg); opacity: 1; } 81% { transform: translateX(3px) rotate(.15deg); } 100% { transform: none; opacity: 1; } }
@keyframes csDrop { to { transform: translateY(40px); opacity: 0; } }
.cs-box__head { display: flex; align-items: center; gap: 8px; }
.cs-box__head .cs-dot { width: 8px; height: 8px; }
.cs-box__title { font: 600 10.5px/1 "Instrument Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #0B5F63; }
.cs-box__hint { margin-left: auto; font-size: 10px; color: #4A6070; white-space: nowrap; }
.cs-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1.5px rgba(18,140,140,.45); min-width: 0; }
.cs-row__slug { position: relative; flex: none; font: 600 11.5px/1.2 "Instrument Sans", system-ui, sans-serif; color: #10232E; font-variant-numeric: tabular-nums; }
.cs-row__line { flex: 1; min-width: 0; font-size: 12px; color: #33475A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-row__tag { flex: none; font: 600 9px/1 "Instrument Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #4A6070; padding: 3px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(16,35,46,.12); }
.cs-row--miss { background: none; box-shadow: none; font-size: 12px; color: #4A6070; padding: 6px 10px; }
/* the click ring on a matched slug (WiperTiming.swift): 44px circle, 2px stroke */
.cs-ring { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid #128C8C; opacity: 0; pointer-events: none; animation: csRing .405s linear both; }
@keyframes csRing { 0% { transform: scale(.4); opacity: 0; } 7.4% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

@media (max-width: 560px) {
  .cs-stage { padding: 12px 12px 28px; border-radius: 18px; }
  .cs-island[data-state="listening"], .cs-island[data-state="polishing"] { padding: 0 12px; }
  .cs-live { gap: 8px; } .cs-main { gap: 8px; }
  .cs-box__hint { display: none; }
  .cs-row__tag { display: none; }
  .cs-note__body { min-height: 170px; padding: 14px; }
}

/* ---------- wRVU tally: the Tracking day (TrackerPaneView.swift) and the Copilot logging strip (LoggingBoxView.swift) ---------- */
.tl-stage { align-items: stretch; gap: 16px; padding: 20px; }
.tl-totals { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.tl-total { background: #fff; border: 1px solid #E8ECEC; border-radius: 14px; padding: 10px 16px; text-align: left; }
.tl-total--lead { background: #FBFCFC; }
.tl-total b { display: block; font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.15; color: #17181A; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tl-total--lead b { font-size: 28px; }
.tl-total span { font-size: 12px; color: #4B5254; }
.tl-strip { align-self: center; width: 100%; max-width: 400px; box-sizing: border-box; border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; text-align: left; min-height: 74px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.4), 0 16px 40px rgba(16,35,46,.28); }
.tl-strip__head { display: flex; align-items: center; gap: 6px; font: 600 9px/1 "Instrument Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #3C5B6B; }
.tl-strip__head b { color: #0B5F63; font-weight: 600; }
.tl-strip__codes { font: 600 20px/1.2 "Instrument Sans", system-ui, sans-serif; color: #10232E; font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.tl-strip__codes.is-hint { font-size: 13px; font-weight: 400; color: #4A6070; }
.tl-strip__codes.is-bad { color: #A84A35; }
.tl-strip__sub { font-size: 12px; color: #33475A; min-height: 1.2em; }
.tl-day { background: #fff; border: 1px solid rgba(16,35,46,.12); border-radius: 16px; padding: 16px; text-align: left; }
.tl-day__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.tl-day__head h2, .tl-day__h { font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: 16px; color: #17181A; margin: 0; letter-spacing: -.01em; }
.tl-clear { margin-left: auto; font: 500 12px/1 "Instrument Sans", system-ui, sans-serif; color: #4B5254; background: #fff; border: 1px solid #E1E7E7; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.tl-clear:hover { border-color: #128C8C; color: #0F7A6E; }
.tl-row { position: relative; border-bottom: 1px solid rgba(16,35,46,.12); padding: 9px 0; }
.tl-row__top { display: flex; align-items: center; gap: 12px; }
.tl-row__who { flex: none; width: 84px; font-size: 13px; font-weight: 600; color: #17181A; }
.tl-row__codes { font-size: 13px; color: #4B5254; font-variant-numeric: tabular-nums; }
.tl-row__voice { flex: none; color: #128C8C; display: inline-grid; }
.tl-row__w { margin-left: auto; flex: none; font-size: 13px; font-weight: 600; color: #0F7A6E; font-variant-numeric: tabular-nums; }
.tl-row__lines { margin: 5px 0 0 96px; display: grid; gap: 2px; }
.tl-line { display: flex; gap: 8px; font-size: 11.5px; color: #6E7276; font-variant-numeric: tabular-nums; }
.tl-line b { flex: none; font-weight: 600; color: #4B5254; width: 44px; }
.tl-line span { flex: 1; min-width: 0; }
.tl-line i { flex: none; font-style: normal; }
.tl-empty { padding: 18px 0 14px; }
.tl-empty b { display: block; font-size: 15px; color: #17181A; font-weight: 600; }
.tl-empty span { font-size: 13px; color: #4B5254; }
.tl-foot { font-size: 11px; color: #6E7276; margin-top: 10px; }
.tl-entry { display: flex; gap: 8px; max-width: 620px; margin: var(--s4) auto 0; }
.tl-entry input { flex: 1; min-width: 0; font: 400 1rem/1.2 var(--sans); color: var(--ink); padding: .75rem 1rem; border: 1px solid var(--hairline); border-radius: 999px; background: #fff; }
.tl-entry input:focus-visible, .tf input:focus-visible, .sp-in:focus-visible, .sp-card input:focus-visible { outline: 3px solid rgba(43,179,163,.45); outline-offset: 1px; border-color: var(--teal); }
.tl-entry .btn { padding: .75rem 1.25rem; font-size: 1rem; flex: none; }
@media (max-width: 560px) {
  .tl-stage { padding: 12px; }
  .tl-totals { grid-template-columns: 1fr 1fr; } .tl-total--lead { grid-column: 1 / -1; }
  .tl-row__who { width: 70px; } .tl-row__lines { margin-left: 0; }
  .tl-entry { flex-wrap: wrap; } .tl-entry .btn { flex: 1; }
}

/* ---------- Charting time calculator ---------- */
.tf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tf { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.tf span { font-size: .875rem; font-weight: 600; color: var(--ink); }
.tf small { font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.tf input { font: 600 1.25rem/1.2 var(--sans); color: var(--ink); padding: .7rem .9rem; border: 1px solid var(--hairline); border-radius: 12px; background: #fff; width: 100%; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.tf-out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.tf-tile { border: 1px solid var(--hairline); border-radius: 16px; padding: 18px 20px; background: #FBFCFC; text-align: left; }
.tf-tile--teal { background: var(--teal-tint); border-color: #BFE6E0; }
.tf-tile .lab { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tf-tile .val { font-family: var(--display); font-weight: 800; font-size: 2.75rem; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tf-tile--teal .val { color: var(--teal-deep); }
.tf-tile .val small { font-size: 1rem; font-weight: 600; color: var(--body); margin-left: 6px; letter-spacing: 0; }
.tf-tile .sub { font-size: .875rem; color: var(--body); margin-top: 6px; line-height: 1.45; }
.tf-assume { margin-top: 18px; border: 1px dashed #BFE6E0; border-radius: 16px; padding: 16px 18px; display: grid; grid-template-columns: 1fr 150px; gap: 16px; align-items: center; text-align: left; }
.tf-assume p { font-size: .9375rem; color: var(--body); margin: 0; line-height: 1.5; }
.tf-assume .tf input { text-align: right; }
@media (max-width: 640px) { .tf-grid, .tf-out { grid-template-columns: 1fr; } .tf-assume { grid-template-columns: 1fr; } .tf-tile .val { font-size: 2.25rem; } }

/* ---------- SmartPhrase converter ---------- */
.sp-in { width: 100%; box-sizing: border-box; min-height: 220px; font: 400 .9375rem/1.5 var(--mono); color: var(--ink); padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 16px; background: #fff; resize: vertical; }
.sp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 10px; font-size: .875rem; color: var(--muted); }
.sp-bar button { font: 600 .875rem/1 var(--sans); color: var(--teal-deep); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.sp-sum { margin-top: var(--s4); font-size: .9375rem; color: var(--body); text-align: center; }
.sp-list { display: grid; gap: 12px; margin-top: var(--s3); }
.sp-card { border: 1px solid var(--hairline); border-radius: 16px; background: #fff; padding: 14px 16px; text-align: left; }
.sp-card__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.sp-card label { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sp-card input { font: 500 .9375rem/1.2 var(--sans); color: var(--ink); padding: .5rem .7rem; border: 1px solid var(--hairline); border-radius: 10px; width: 100%; box-sizing: border-box; text-transform: none; letter-spacing: 0; }
.sp-card input.sp-name { font-family: var(--mono); }
.sp-card pre { margin: 10px 0 0; font: 400 .875rem/1.5 var(--sans); color: var(--body); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; background: #FBFCFC; border-radius: 10px; padding: 10px 12px; }
.sp-card pre mark { background: rgba(18,140,140,.14); color: #0B5F63; border-radius: 3px; padding: 0 2px; font-weight: 600; }
.sp-card__warn { margin-top: 6px; font-size: .8125rem; color: #A84A35; }
@media (max-width: 560px) { .sp-card__top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .cs-island, .cs-tx, .cs-label { transition: none; }
  .cs-box.is-on { animation: csFade .18s ease-out both; } .cs-box.is-out { animation: none; display: none; }
  .cs-chip::after, .cs-ring, .cs-note__body .cs-caret { animation: none; }
}

/* code list on the tally page */
.tl-list { margin-top: var(--s3); display: grid; gap: 8px; text-align: left; }
.tl-group { border: 1px solid var(--hairline); border-radius: 14px; background: #fff; padding: 0 16px; }
.tl-group summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); font-size: .9375rem; }
.tl-group table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: .875rem; color: var(--body); font-variant-numeric: tabular-nums; }
.tl-group th, .tl-group td { padding: 6px 0; border-top: 1px solid var(--hairline); text-align: left; font-weight: 400; vertical-align: top; }
.tl-group th { width: 64px; font-weight: 600; color: var(--ink); }
.tl-group td:last-child { text-align: right; width: 56px; color: var(--teal-deep); font-weight: 600; }


/* ---------- Card thumbnails (round 2, William 2026-11-14) ----------
   Four small looping scenes, one per tool, each a miniature of the tool at work: the island transcribing, the day tally
   adding rows, the calculator updating, a SmartPhrase becoming a dot-phrase file. Drawn in CSS from the app's own tokens,
   no image files. Every scene is 40em x 20em and the em follows the thumbnail's width (container units), so the same
   markup serves the big cards on /tools and the small "Try another tool" cards. All four run a 15 s loop (drawn out and gentle, William 2026-11-14) with the same
   amount of motion. With "reduce motion" on, each scene rests on its finished state. */
.tool-thumb { position: relative; display: block; container-type: inline-size; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden; isolation: isolate;
  margin-bottom: var(--s3); text-decoration: none; background: linear-gradient(120deg, #F3D9C9, #DDE1F2 52%, #CDE5EE); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.tool-thumb--tally { background: linear-gradient(120deg, #BFE6DE, #E6F3F1 52%, #D3E3F6); }
.tool-thumb--calc { background: linear-gradient(120deg, #D3E3F6, #E6F3F1 52%, #BFE6DE); }
.tool-thumb--conv { background: linear-gradient(120deg, #CDE5EE, #DDE1F2 52%, #F3D9C9); }
.tool-thumb::before { content: ""; position: absolute; z-index: -1; inset: -20%; pointer-events: none; animation: ttDrift 14s ease-in-out infinite alternate;
  background: radial-gradient(38% 46% at 24% 30%, rgba(255,255,255,.75), transparent 70%), radial-gradient(34% 40% at 78% 74%, rgba(255,255,255,.55), transparent 70%); }
@keyframes ttDrift { from { transform: translate(-4%, -3%); } to { transform: translate(5%, 4%); } }
.tool-thumb::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.6) 50%, transparent 62%); }
.tt { position: absolute; left: 0; top: 0; width: 40em; height: 20em; display: block; font: 400 10px/1.2 "Instrument Sans", ui-sans-serif, system-ui, sans-serif; font-size: 2.5cqw;
  color: #17181A; text-align: left; -webkit-font-smoothing: antialiased; transform-origin: 50% 55%; transition: transform .55s cubic-bezier(.32,.72,.25,1); }
.tt i, .tt em, .tt b, .tt strong, .tt small { font-style: normal; }
.tt-glass { background: linear-gradient(90deg, rgba(18,140,140,.16), rgba(91,184,212,.16)), rgba(255,255,255,.66); -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5); }
.tt-dot { display: block; flex: none; width: .75em; height: .75em; border-radius: 50%; background: linear-gradient(90deg, #128C8C, #5BB8D4); }
/* a number that rolls to its next value */
.tt-roll { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
.tt-roll > span { display: block; }
.tt-roll b { display: block; height: 1em; line-height: 1; font-weight: inherit; }
@keyframes ttBar { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1.08); } }

/* --- 1. Dictation: the island opens, hears a sentence, and the sentence lands in the note --- */
.ttd-note { position: absolute; left: 6em; top: 1.7em; width: 28em; height: 8.6em; box-sizing: border-box; display: block; overflow: hidden; background: #fff; border: 1px solid #D4D9E2; border-radius: 1.1em; box-shadow: 0 1em 2.4em rgba(16,35,46,.12); }
.ttd-note__bar { display: flex; align-items: center; gap: .45em; height: 2.1em; padding: 0 .9em; background: #F1F4F6; border-bottom: 1px solid #E1E7E7; }
.ttd-note__bar i { display: block; width: .62em; height: .62em; border-radius: 50%; background: #D5DCE0; }
.ttd-note__bar em { font-size: .82em; color: #4A6070; margin-left: .4em; }
.ttd-note__body { display: block; padding: 1em 1.3em; }
.ttd-l { display: block; height: .55em; border-radius: .3em; background: #E9EEF0; margin-bottom: .7em; width: 82%; }
.ttd-l + .ttd-l { width: 56%; }
.ttd-land { display: inline-block; font-size: 1.12em; line-height: 1.3; border-radius: .3em; padding: .05em .3em; margin-left: -.3em; animation: ttdLand 15s linear infinite; }
.ttd-label { position: absolute; left: 0; right: 0; bottom: 6.9em; margin: 0 auto; width: 13.4em; height: 2.1em; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: .5em; border-radius: 1.05em; white-space: nowrap;
  font-weight: 500; opacity: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 .6em 1.8em rgba(16,35,46,.22); animation: ttdLabel 15s ease-in-out infinite; }
.ttd-label em { font-size: .82em; color: #10232E; }
.ttd-label .tt-dot { width: .5em; height: .5em; }
.ttd-island { position: absolute; left: 0; right: 0; bottom: 1.9em; margin: 0 auto; width: 31em; height: 4.3em; display: block; border-radius: 2.15em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.4), 0 1.1em 2.8em rgba(16,35,46,.28); animation: ttdIsland 15s cubic-bezier(.4,0,.2,1) infinite; }
.ttd-idle { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .7em; opacity: 0; animation: ttdIdle 15s linear infinite; }
.ttd-idle__bars { display: flex; align-items: center; gap: .18em; }
.ttd-idle__bars i { display: block; width: .22em; border-radius: .11em; background: rgba(18,140,140,.55); }
.ttd-key { display: block; font-weight: 600; font-size: .85em; line-height: 1; color: #128C8C; background: rgba(255,255,255,.75); border: 1px solid rgba(18,140,140,.25); border-radius: .45em; padding: .28em .45em; animation: ttdKey 15s ease-in-out infinite; }
.ttd-live { position: absolute; inset: 0; display: flex; align-items: center; gap: .9em; padding: 0 1.2em 0 1.3em; overflow: hidden; border-radius: inherit; animation: ttdLive 15s linear infinite; }
.ttd-mic { flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; background: linear-gradient(90deg, #128C8C, #5BB8D4); display: grid; place-items: center; box-shadow: 0 0 0 .32em rgba(18,140,140,.18); animation: ttdMic 2.4s ease-in-out infinite; }
.ttd-mic svg { width: 1.15em; height: 1.15em; }
.ttd-bars { flex: none; display: flex; align-items: center; gap: .2em; height: 2.6em; }
.ttd-bars i { display: block; width: .25em; border-radius: .13em; background: rgba(18,140,140,.55); animation: ttBar 1.25s ease-in-out infinite; }
.ttd-bars i:nth-child(1) { height: .75em; } .ttd-bars i:nth-child(2) { height: 1.5em; animation-delay: -.2s; } .ttd-bars i:nth-child(3) { height: 2em; animation-delay: -.45s; } .ttd-bars i:nth-child(4) { height: 1.1em; animation-delay: -.1s; }
.ttd-bars i:nth-child(5) { height: 1.65em; animation-delay: -.6s; } .ttd-bars i:nth-child(6) { height: .85em; animation-delay: -.3s; } .ttd-bars i:nth-child(7) { height: 1.35em; animation-delay: -.75s; } .ttd-bars i:nth-child(8) { height: .7em; animation-delay: -.5s; }
.ttd-tx { flex: 1; min-width: 0; display: block; white-space: nowrap; overflow: hidden; font-size: 1.2em; line-height: 1.4; color: #10232E; }
.ttd-tx > span { display: inline-block; animation: ttdType 15s linear infinite; }
.ttd-ok { flex: none; width: 2em; height: 2em; border-radius: 50%; background: linear-gradient(90deg, #128C8C, #5BB8D4); color: #fff; display: grid; place-items: center; box-shadow: 0 .25em .8em rgba(11,95,99,.35); animation: ttdOk 15s ease-in-out infinite; }
.ttd-ok svg { width: .95em; height: .95em; }
@keyframes ttdIsland { 0%, 6% { width: 10em; } 15%, 66% { width: 31em; } 75%, 100% { width: 10em; } }
@keyframes ttdIdle { 0%, 7% { opacity: 1; } 12%, 70% { opacity: 0; } 77%, 100% { opacity: 1; } }
@keyframes ttdLive { 0%, 11% { opacity: 0; } 17%, 64% { opacity: 1; } 69%, 100% { opacity: 0; } }
@keyframes ttdKey { 0%, 1%, 9%, 100% { transform: none; background: rgba(255,255,255,.75); color: #128C8C; } 5% { transform: scale(1.4); background: #128C8C; color: #fff; } }
@keyframes ttdMic { 0%, 100% { box-shadow: 0 0 0 .32em rgba(18,140,140,.18); } 50% { box-shadow: 0 0 0 .55em rgba(18,140,140,.08); } }
@keyframes ttdType { 0%, 17% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(27, end); } 54%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes ttdLabel { 0%, 12% { opacity: 0; transform: translateY(.7em); } 18%, 42% { opacity: 1; transform: none; } 49%, 100% { opacity: 0; transform: translateY(-.5em); } }
@keyframes ttdOk { 0%, 56%, 68%, 100% { transform: none; box-shadow: 0 .25em .8em rgba(11,95,99,.35); } 62% { transform: scale(1.32); box-shadow: 0 0 0 .6em rgba(18,140,140,.2), 0 .25em .8em rgba(11,95,99,.35); } }
@keyframes ttdLand { 0%, 70% { opacity: 0; transform: translateY(1.2em); background-color: rgba(18,140,140,.2); } 78% { opacity: 1; transform: none; background-color: rgba(18,140,140,.2); } 90% { background-color: rgba(18,140,140,0); } 95% { opacity: 1; } 100% { opacity: 0; transform: none; background-color: rgba(18,140,140,0); } }

/* --- 2. Tally: the strip hears a code, a row files itself, the day total rolls up --- */
.ttt-card { position: absolute; left: 2.6em; top: 2.8em; width: 34.8em; box-sizing: border-box; display: block; background: #fff; border: 1px solid rgba(16,35,46,.10); border-radius: 1.3em; box-shadow: 0 1em 2.6em rgba(16,35,46,.14); padding: 1.2em 1.6em .7em; }
.ttt-head { position: relative; display: flex; align-items: flex-end; gap: .8em; padding-bottom: .9em; }
.ttt-total { display: block; font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: 3.1em; line-height: 1; letter-spacing: -.02em; }
.ttt-total .tt-roll > span { transform: translateY(-3em); animation: tttTotal 15s cubic-bezier(.4,0,.2,1) infinite; }
.ttt-cap { display: block; color: #4B5254; padding-bottom: .3em; }
.ttt-delta { position: absolute; left: 8.6em; top: -.95em; font-weight: 600; color: #0F7A6E; background: #E3F4F2; border-radius: 1em; padding: .2em .6em; opacity: 0; font-variant-numeric: tabular-nums; }
.ttt-delta:nth-of-type(1) { animation: tttD1 15s ease-out infinite; } .ttt-delta:nth-of-type(2) { animation: tttD2 15s ease-out infinite; } .ttt-delta:nth-of-type(3) { animation: tttD3 15s ease-out infinite; }
.ttt-row { display: flex; align-items: center; gap: 1em; height: 2.6em; margin: 0 -.7em; padding: 0 .7em; border-top: 1px solid rgba(16,35,46,.10); border-radius: .4em; font-size: 1.08em; color: #4B5254; font-variant-numeric: tabular-nums; }
.ttt-row b { flex: none; width: 6.2em; font-weight: 600; color: #17181A; }
.ttt-row i { margin-left: auto; font-weight: 600; color: #0F7A6E; }
.ttt-row:nth-of-type(1) { animation: tttR1 15s cubic-bezier(.4,0,.2,1) infinite; } .ttt-row:nth-of-type(2) { animation: tttR2 15s cubic-bezier(.4,0,.2,1) infinite; } .ttt-row:nth-of-type(3) { animation: tttR3 15s cubic-bezier(.4,0,.2,1) infinite; }
.ttt-strip { position: absolute; right: 1.5em; top: 1.3em; width: 15.6em; box-sizing: border-box; display: block; border-radius: 1.2em; padding: .8em 1.1em .9em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.4), 0 1.2em 3em rgba(16,35,46,.26); animation: tttStrip 15s ease-in-out infinite; }
.ttt-strip__head { display: flex; align-items: center; gap: .5em; }
.ttt-strip__head em { font-weight: 600; font-size: .7em; letter-spacing: .08em; text-transform: uppercase; color: #3C5B6B; }
.ttt-strip__head .tt-dot { width: .55em; height: .55em; }
.ttt-wave { margin-left: auto; display: flex; align-items: center; gap: .16em; height: 1.1em; }
.ttt-wave i { display: block; width: .18em; height: 1em; border-radius: .09em; background: #128C8C; animation: ttBar 1.1s ease-in-out infinite; }
.ttt-wave i:nth-child(2) { animation-delay: -.3s; } .ttt-wave i:nth-child(3) { animation-delay: -.55s; } .ttt-wave i:nth-child(4) { animation-delay: -.15s; } .ttt-wave i:nth-child(5) { animation-delay: -.4s; }
.ttt-codes { position: relative; display: block; height: 2em; margin-top: .45em; }
.ttt-codes b { position: absolute; left: 0; top: 0; font-weight: 600; font-size: 1.45em; line-height: 1.35; color: #10232E; white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; }
.ttt-codes b:nth-child(1) { animation: tttC1 15s ease-out infinite; } .ttt-codes b:nth-child(2) { animation: tttC2 15s ease-out infinite; } .ttt-codes b:nth-child(3) { opacity: 1; animation: tttC3 15s ease-out infinite; }
@keyframes tttTotal { 0%, 12% { transform: translateY(0); } 19%, 35% { transform: translateY(-1em); } 42%, 58% { transform: translateY(-2em); } 65%, 93% { transform: translateY(-3em); } 100% { transform: translateY(0); } }
@keyframes tttR1 { 0%, 12% { opacity: 0; transform: translateY(1.8em); background-color: rgba(43,179,163,.22); } 19% { opacity: 1; transform: none; background-color: rgba(43,179,163,.22); } 31% { background-color: rgba(43,179,163,0); } 93% { opacity: 1; } 99%, 100% { opacity: 0; transform: none; background-color: rgba(43,179,163,0); } }
@keyframes tttR2 { 0%, 35% { opacity: 0; transform: translateY(1.8em); background-color: rgba(43,179,163,.22); } 42% { opacity: 1; transform: none; background-color: rgba(43,179,163,.22); } 54% { background-color: rgba(43,179,163,0); } 93% { opacity: 1; } 99%, 100% { opacity: 0; transform: none; background-color: rgba(43,179,163,0); } }
@keyframes tttR3 { 0%, 58% { opacity: 0; transform: translateY(1.8em); background-color: rgba(43,179,163,.22); } 65% { opacity: 1; transform: none; background-color: rgba(43,179,163,.22); } 77% { background-color: rgba(43,179,163,0); } 93% { opacity: 1; } 99%, 100% { opacity: 0; transform: none; background-color: rgba(43,179,163,0); } }
@keyframes tttD1 { 0%, 12% { opacity: 0; transform: translateY(1em); } 16%, 24% { opacity: 1; transform: none; } 31%, 100% { opacity: 0; transform: translateY(-2em); } }
@keyframes tttD2 { 0%, 35% { opacity: 0; transform: translateY(1em); } 39%, 47% { opacity: 1; transform: none; } 54%, 100% { opacity: 0; transform: translateY(-2em); } }
@keyframes tttD3 { 0%, 58% { opacity: 0; transform: translateY(1em); } 62%, 70% { opacity: 1; transform: none; } 77%, 100% { opacity: 0; transform: translateY(-2em); } }
@keyframes tttC1 { 0%, 4% { opacity: 0; transform: translateY(.9em); } 9%, 27% { opacity: 1; transform: none; } 32%, 100% { opacity: 0; transform: translateY(-.9em); } }
@keyframes tttC2 { 0%, 27% { opacity: 0; transform: translateY(.9em); } 32%, 50% { opacity: 1; transform: none; } 55%, 100% { opacity: 0; transform: translateY(-.9em); } }
@keyframes tttC3 { 0%, 50% { opacity: 0; transform: translateY(.9em); } 55%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-.9em); } }
@keyframes tttStrip { 0%, 3%, 15%, 26%, 38%, 49%, 61%, 100% { transform: none; } 9%, 32%, 55% { transform: scale(1.06); } }

/* --- 3. Calculator: the patient count steps up, the hours roll, the year bar grows --- */
.ttc-in, .ttc-tile { position: absolute; top: 2.3em; height: 9.4em; box-sizing: border-box; display: block; background: #fff; border: 1px solid rgba(16,35,46,.10); border-radius: 1.2em; box-shadow: 0 1em 2.4em rgba(16,35,46,.12); padding: 1.1em 1.2em; }
.ttc-in { left: 2.6em; width: 11em; }
.ttc-tile { left: 14.5em; width: 11.1em; }
.ttc-tile--back { left: 26.5em; width: 10.9em; background: #E3F4F2; border-color: #BFE6E0; }
.ttc-lab { display: block; font-weight: 600; font-size: .72em; letter-spacing: .08em; text-transform: uppercase; color: #6E7276; white-space: nowrap; }
.ttc-box { display: flex; align-items: center; justify-content: space-between; margin-top: .75em; height: 4.5em; box-sizing: border-box; border: 1px solid #D9E2E2; border-radius: .9em; padding: 0 .8em 0 1em; animation: ttcBox 15s ease-out infinite; }
.ttc-box .tt-roll { font-weight: 600; font-size: 2.4em; font-variant-numeric: tabular-nums; }
.ttc-step { display: flex; flex-direction: column; gap: .5em; color: #9AA5A8; }
.ttc-step svg { display: block; width: 1em; height: .6em; }
.ttc-step svg:first-child { animation: ttcStep 15s ease-out infinite; }
.ttc-val { display: flex; align-items: baseline; margin-top: .3em; font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: 3em; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ttc-tile--back .ttc-val { color: #0F7A6E; }
.ttc-val small { font: 600 .32em/1 "Instrument Sans", sans-serif; letter-spacing: 0; color: #4B5254; margin-left: .5em; }
.ttc-sub { display: block; font-size: .85em; color: #4B5254; margin-top: .55em; white-space: nowrap; }
.ttc-in .tt-roll > span, .ttc-tile .tt-roll > span { transform: translateY(-2em); animation: ttcRoll 15s cubic-bezier(.4,0,.2,1) infinite; }
.ttc-clock { position: absolute; right: .9em; top: .85em; width: 1.5em; height: 1.5em; color: #0F7A6E; }
.ttc-clock svg { display: block; width: 100%; height: 100%; }
.ttc-clock i { position: absolute; left: 50%; top: 50%; width: .12em; height: .52em; margin: -.52em 0 0 -.06em; border-radius: .06em; background: currentColor; transform-origin: 50% 100%; animation: ttcClock 7s linear infinite; }
.ttc-bar { position: absolute; left: 2.6em; right: 2.6em; top: 13.1em; height: 2.4em; display: block; overflow: hidden; border-radius: 1.2em; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(16,35,46,.10), 0 .6em 1.6em rgba(16,35,46,.10); }
.ttc-fill { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; background: #DDE7EA; transform: translateX(-4.7%); animation: ttcFill 15s cubic-bezier(.4,0,.2,1) infinite; }
.ttc-back { position: absolute; right: 0; top: 0; bottom: 0; width: 25%; display: block; overflow: hidden; background: linear-gradient(90deg, #2BB3A3, #5BB8D4); border-left: .16em solid #fff; }
.ttc-back::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: translateX(-120%); animation: ttcSheen 4.5s ease-in-out infinite; }
.ttc-key { position: absolute; left: 2.9em; right: 2.9em; top: 16.2em; display: flex; justify-content: space-between; color: #4B5254; }
.ttc-key em { display: flex; align-items: center; gap: .45em; font-size: .88em; }
.ttc-key i { display: block; width: .7em; height: .7em; border-radius: 50%; background: #DDE7EA; box-shadow: inset 0 0 0 1px rgba(16,35,46,.12); }
.ttc-key em + em i { background: linear-gradient(90deg, #2BB3A3, #5BB8D4); box-shadow: none; }
@keyframes ttcRoll { 0%, 29% { transform: translateY(0); } 36%, 56% { transform: translateY(-1em); } 63%, 93% { transform: translateY(-2em); } 100% { transform: translateY(0); } }
@keyframes ttcFill { 0%, 2% { transform: translateX(-100%); } 16%, 29% { transform: translateX(-34%); } 37%, 56% { transform: translateX(-19.3%); } 64%, 93% { transform: translateX(-4.7%); } 100% { transform: translateX(-100%); } }
@keyframes ttcBox { 0%, 25%, 37%, 52%, 64%, 100% { border-color: #D9E2E2; box-shadow: 0 0 0 0 rgba(43,179,163,0); } 30%, 57% { border-color: #2BB3A3; box-shadow: 0 0 0 .35em rgba(43,179,163,.3); } }
@keyframes ttcStep { 0%, 25%, 37%, 52%, 64%, 100% { transform: none; color: #9AA5A8; } 30%, 57% { transform: translateY(-.35em) scale(1.5); color: #0F7A6E; } }
@keyframes ttcClock { to { transform: rotate(-360deg); } }
@keyframes ttcSheen { 0%, 40% { transform: translateX(-120%); } 100% { transform: translateX(340%); } }

/* --- 4. Converter: a scan passes over the SmartPhrase, EHR-only fields become blanks, a dot phrase and a file come out --- */
.tts-src { position: absolute; left: 2.4em; top: 2.6em; width: 19.6em; height: 14.8em; box-sizing: border-box; display: block; overflow: hidden; background: #fff; border: 1px solid rgba(16,35,46,.10); border-radius: 1.2em; box-shadow: 0 1em 2.4em rgba(16,35,46,.12); }
.tts-src__bar { display: flex; align-items: center; gap: .45em; height: 2.1em; padding: 0 .9em; background: #F1F4F6; border-bottom: 1px solid #E1E7E7; }
.tts-src__bar i { display: block; width: .62em; height: .62em; border-radius: 50%; background: #D5DCE0; }
.tts-src__bar em { font-size: .82em; color: #4A6070; margin-left: .4em; }
.tts-body { display: block; padding: .9em 1.2em; font: 500 .95em/1.9 "IBM Plex Mono", ui-monospace, monospace; color: #4B5254; white-space: nowrap; }
.tts-line { display: block; }
.tts-line b { font-weight: 500; color: #17181A; }
.tts-ph { display: block; height: .55em; border-radius: .3em; background: #E9EEF0; margin: .75em 0 0; width: 78%; }
.tts-ph + .tts-ph { width: 48%; }
.tts-tok { display: inline-block; vertical-align: bottom; border-radius: .3em; padding: 0 .25em; line-height: 1.5; margin-bottom: .2em; background-color: rgba(18,140,140,.14); }
.tts-tok em, .tts-tok strong { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; }
.tts-tok em { max-width: 0; opacity: 0; color: #7A4A32; }
.tts-tok strong { max-width: 3em; font-weight: 600; color: #0B5F63; }
.tts-tok--1 { animation: ttsTokBg1 15s linear infinite; } .tts-tok--1 em { animation: ttsOld1 15s ease-in-out infinite; } .tts-tok--1 strong { animation: ttsNew1 15s cubic-bezier(.4,0,.2,1) infinite; }
.tts-tok--2 { animation: ttsTokBg2 15s linear infinite; } .tts-tok--2 em { animation: ttsOld2 15s ease-in-out infinite; } .tts-tok--2 strong { animation: ttsNew2 15s cubic-bezier(.4,0,.2,1) infinite; }
.tts-scan { position: absolute; left: 0; right: 0; top: 2.1em; height: 2.4em; display: block; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(43,179,163,0), rgba(43,179,163,.24)); border-bottom: .14em solid #2BB3A3; animation: ttsScan 15s linear infinite; }
.tts-flow { position: absolute; left: 22.15em; top: 9.75em; display: flex; gap: .3em; }
.tts-flow i { display: block; width: .34em; height: .34em; border-radius: 50%; background: #0F7A6E; opacity: 0; animation: ttsFlow 15s ease-in-out infinite; }
.tts-flow i:nth-child(2) { animation-delay: .2s; } .tts-flow i:nth-child(3) { animation-delay: .4s; }
.tts-box { position: absolute; left: 24em; top: 2.6em; width: 13.6em; box-sizing: border-box; display: block; border-radius: 1.2em; padding: .85em .9em .9em; transform-origin: 0 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.4), 0 1.2em 3em rgba(16,35,46,.24); animation: ttsBox 15s cubic-bezier(.4,0,.2,1) infinite; }
.tts-box__head { display: flex; align-items: center; gap: .5em; }
.tts-box__head em { font-weight: 600; font-size: .66em; letter-spacing: .08em; text-transform: uppercase; color: #0B5F63; }
.tts-box__head .tt-dot { width: .6em; height: .6em; }
.tts-row { display: flex; align-items: center; gap: .6em; margin-top: .65em; padding: .65em .7em; border-radius: .75em; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 .12em rgba(18,140,140,.45); font-size: .92em; white-space: nowrap; overflow: hidden; }
.tts-row b { flex: none; font-weight: 600; color: #10232E; }
.tts-row em { color: #33475A; overflow: hidden; text-overflow: ellipsis; }
.tts-row strong { font-weight: 600; color: #0B5F63; }
.tts-file { position: absolute; left: 24em; top: 10.5em; width: 13.6em; height: 4.9em; box-sizing: border-box; display: flex; align-items: center; gap: .8em; background: #fff; border: 1px solid rgba(16,35,46,.10); border-radius: 1.1em; box-shadow: 0 1em 2.4em rgba(16,35,46,.14); padding: 0 1em; animation: ttsFile 15s cubic-bezier(.4,0,.2,1) infinite; }
.tts-doc { position: relative; flex: none; display: block; width: 2.1em; height: 2.7em; border-radius: .35em; background: linear-gradient(160deg, #E3F4F2, #CDE5EE); box-shadow: inset 0 0 0 1px rgba(15,122,110,.25); }
.tts-doc::before { content: ""; position: absolute; left: .4em; right: .4em; top: .9em; height: .16em; border-radius: .08em; background: #0F7A6E; opacity: .55; box-shadow: 0 .45em 0 #0F7A6E, 0 .9em 0 #0F7A6E; }
.tts-name { display: block; min-width: 0; font-weight: 600; font-size: .95em; line-height: 1.25; }
.tts-name small { display: block; font-weight: 500; font-size: .8em; color: #6E7276; white-space: nowrap; }
.tts-check { position: absolute; right: -.6em; top: -.6em; width: 1.9em; height: 1.9em; border-radius: 50%; background: linear-gradient(90deg, #128C8C, #5BB8D4); color: #fff; display: grid; place-items: center; box-shadow: 0 .25em .8em rgba(11,95,99,.35); animation: ttsCheck 15s cubic-bezier(.4,0,.2,1) infinite; }
.tts-check svg { width: .95em; height: .95em; }
@keyframes ttsScan { 0%, 6% { opacity: 0; transform: translateY(-2.4em); } 9% { opacity: 1; transform: translateY(-1.9em); } 30% { opacity: 1; transform: translateY(10.3em); } 34%, 100% { opacity: 0; transform: translateY(10.3em); } }
@keyframes ttsTokBg1 { 0%, 14% { background-color: rgba(243,217,201,.8); } 18%, 95% { background-color: rgba(18,140,140,.14); } 100% { background-color: rgba(243,217,201,.8); } }
@keyframes ttsOld1 { 0%, 14% { max-width: 12em; opacity: 1; } 18%, 95% { max-width: 0; opacity: 0; } 100% { max-width: 12em; opacity: 1; } }
@keyframes ttsNew1 { 0%, 14% { max-width: 0; opacity: 0; transform: scale(.6); } 18% { max-width: 3em; opacity: 1; transform: scale(1.35); } 22%, 95% { max-width: 3em; opacity: 1; transform: none; } 100% { max-width: 0; opacity: 0; transform: none; } }
@keyframes ttsTokBg2 { 0%, 17.5% { background-color: rgba(243,217,201,.8); } 21.5%, 95% { background-color: rgba(18,140,140,.14); } 100% { background-color: rgba(243,217,201,.8); } }
@keyframes ttsOld2 { 0%, 17.5% { max-width: 12em; opacity: 1; } 21.5%, 95% { max-width: 0; opacity: 0; } 100% { max-width: 12em; opacity: 1; } }
@keyframes ttsNew2 { 0%, 17.5% { max-width: 0; opacity: 0; transform: scale(.6); } 21.5% { max-width: 3em; opacity: 1; transform: scale(1.35); } 25.5%, 95% { max-width: 3em; opacity: 1; transform: none; } 100% { max-width: 0; opacity: 0; transform: none; } }
@keyframes ttsFlow { 0%, 32% { opacity: 0; transform: translateX(-1em); } 36% { opacity: 1; transform: none; } 42%, 100% { opacity: 0; transform: translateX(1em); } }
@keyframes ttsBox { 0%, 38% { opacity: 0; transform: translateX(-3.4em) rotate(-5deg); } 48% { opacity: 1; transform: translateX(.35em) rotate(.3deg); } 53%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes ttsFile { 0%, 54% { opacity: 0; transform: translateY(2em) scale(.94); } 62%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes ttsCheck { 0%, 63% { transform: scale(0); } 68% { transform: scale(1.35); } 73%, 100% { transform: scale(1); } }

/* ---------- Page polish (William 2026-11-14: more appealing, within the brand, new pages only) ---------- */
/* a soft pastel wash behind the page heading, fading to white */
.tool-hero { position: relative; isolation: isolate; }
.tool-hero::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 460px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 100%), linear-gradient(120deg, #F3D9C9, #DDE1F2 52%, #CDE5EE); opacity: .6; }
.tool-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.tool-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; color: var(--teal-deep); background: #fff; border: 1px solid #D3EEEA; border-radius: 999px; padding: .35rem .8rem; box-shadow: 0 2px 6px rgba(23,24,26,.05); }
.cs-stage, .tool-frame { box-shadow: 0 24px 60px rgba(16,35,46,.10); }
.tool-frame { border: 1px solid var(--hairline); border-radius: 24px; padding: 22px; background: linear-gradient(135deg, #E9F5F3, #EAF1F7); }
.tool-frame .tool-fine { color: var(--body); }
@media (max-width: 560px) { .tool-frame { padding: 14px; border-radius: 18px; } }

/* "Open the tool": the seat bar's "Reserve your seat" button (.seat-bar__cta in chartside.css: same shape, size, colors and
   three beats after load), plus a glow on hover (William 2026-11-14). */
.tool-open { margin: var(--s3) 0 0; font-family: var(--sans); font-size: 1rem; line-height: 1.3; text-decoration: none; position: relative; z-index: 1; transition: background .18s ease, box-shadow .25s ease; }
.tool-open:hover, .tool-open:focus-visible, .tool-card:hover .tool-open, .tool-mini:hover .tool-open { background: #D3EEEA; box-shadow: 0 0 0 4px rgba(43,179,163,.16), 0 6px 22px rgba(43,179,163,.5); }
@media (max-width: 700px) { .tool-open { font-size: .875rem; } }

/* cards: a pronounced lift, a mint edge and glow, the scene grows and a sheen crosses it */
.tool-card, .tool-mini, .tool-step { transition: transform .32s cubic-bezier(.32,.72,.25,1), box-shadow .32s ease, border-color .32s ease; }
.tool-card { position: relative; }
.tool-card:hover, .tool-mini:hover { transform: translateY(-8px); border-color: #9EDAD1; box-shadow: 0 0 0 4px rgba(43,179,163,.10), 0 30px 60px rgba(15,122,110,.20); }
.tool-card__title { color: inherit; text-decoration: none; }
.tool-card__title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* the whole card opens the tool */
.tool-card:hover .tt, .tool-mini:hover .tt { transform: scale(1.07); }
.tool-card:hover .tool-thumb::after, .tool-mini:hover .tool-thumb::after { transform: translateX(110%); transition: transform .95s ease; }
.tool-step { padding: var(--s4); text-align: left; }
.tool-step .step__num { margin-bottom: var(--s2); }

/* closing band on the pastel wash */
.tool-band { margin: var(--s6) auto 0; max-width: 860px; text-align: center; border-radius: 24px; padding: var(--s5) var(--s4); background: linear-gradient(120deg, #F3D9C9, #DDE1F2 52%, #CDE5EE); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 18px 44px rgba(16,35,46,.10); }
.tool-band__line { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 0; text-wrap: balance; }
/* The band's seat count is the seat bar's own count element inside a .seat-bar wrapper, so the number chip is the bar's chip,
   styled only by chartside.css (".seat-bar .seat-n"). The seat chip and bar are frozen (William 2026-11-14): this rule takes
   the strip (background, border, padding) off the wrapper and touches nothing inside it. */
.tool-band__seats { margin-top: var(--s2); }
.tool-band__bar { display: inline-block; background: none; border: 0; padding: 0; }
.tool-band__btn { background: #fff; border-color: #fff; box-shadow: 0 8px 20px rgba(15,122,110,.14); }
.tool-band__btn:hover { background: #F6FCFB; border-color: #F6FCFB; }
.tool-morewrap { max-width: 860px; margin: var(--s5) auto 0; }
.tool-more__title { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 0 0 var(--s3); }
.tool-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 12px; text-align: left; }
.tool-mini .tool-thumb { width: 100%; margin-bottom: 4px; border-radius: 12px; }
.tool-mini__name { font-weight: 600; color: var(--ink); font-size: .9375rem; line-height: 1.3; }
.tool-mini .tool-open { margin-top: 4px; font-size: .875rem; }
@media (max-width: 640px) { .tool-minis { grid-template-columns: 1fr; } }

/* ---------- Tally: the total rolls digit by digit, the gain floats off it, and each row files itself (William 2026-11-14) ---------- */
.tl-total { position: relative; }
.tl-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tl-odo { display: inline-flex; }
.tl-total b span { font-size: inherit; color: inherit; }
.tl-odo span { display: block; }
.tl-odo__d { height: 1.15em; overflow: hidden; }
.tl-odo__s { line-height: 1.15; transition: transform .75s cubic-bezier(.32,.72,.25,1); will-change: transform; }
.tl-total--lead { transition: border-color .4s ease, box-shadow .4s ease; }
.tl-total--lead.is-hit { animation: tlHit 1s ease-out; }
@keyframes tlHit { 0% { border-color: #2BB3A3; box-shadow: 0 0 0 0 rgba(43,179,163,.45); } 100% { border-color: #E8ECEC; box-shadow: 0 0 0 14px rgba(43,179,163,0); } }
.tl-delta { position: absolute; left: 16px; top: 8px; font: 600 12px/1 "Instrument Sans", system-ui, sans-serif; color: #0F7A6E; background: #E3F4F2; border-radius: 999px; padding: 4px 8px; pointer-events: none; font-variant-numeric: tabular-nums; animation: tlDelta 1.3s cubic-bezier(.32,.72,.25,1) both; }
.tl-total--lead .tl-delta { left: auto; right: 12px; top: 12px; }
@keyframes tlDelta { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 18% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
.tl-total b.is-bump { animation: tlBump .5s cubic-bezier(.32,.72,.25,1); }
@keyframes tlBump { 0% { transform: translateY(6px); opacity: .2; } 100% { transform: none; opacity: 1; } }
.tl-row.is-new { animation: tlNew .7s cubic-bezier(.32,.72,.25,1) both; }
@keyframes tlNew { 0% { opacity: 0; transform: translateY(16px) scale(.985); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.tl-row.is-new::before, .tl-row.is-bump::before { content: ""; position: absolute; inset: 0 -8px; border-radius: 10px; pointer-events: none; background-repeat: no-repeat; background-size: 220% 100%;
  background-image: linear-gradient(100deg, rgba(43,179,163,0) 0%, rgba(43,179,163,.22) 42%, rgba(91,184,212,.20) 58%, rgba(43,179,163,0) 100%); animation: tlSweep 1.3s ease-out both; animation-delay: inherit; }
@keyframes tlSweep { 0% { background-position: 130% 0; opacity: 1; } 75% { opacity: 1; } 100% { background-position: -130% 0; opacity: 0; } }
.tl-row__w { display: inline-block; }
.tl-row.is-new .tl-row__w, .tl-row.is-bump .tl-row__w { animation: tlPop .65s cubic-bezier(.32,.72,.25,1) .2s both; }
@keyframes tlPop { 0% { transform: scale(.6); opacity: 0; } 55% { transform: scale(1.14); opacity: 1; } 100% { transform: none; opacity: 1; } }
.tl-row.is-new .tl-line { animation: tlLine .5s cubic-bezier(.32,.72,.25,1) both; animation-delay: calc(.22s + var(--i, 0) * .08s); }
@keyframes tlLine { 0% { opacity: 0; transform: translateX(-8px); } 100% { opacity: 1; transform: none; } }
.tl-strip__codes.is-pop { animation: tlCodes .45s cubic-bezier(.32,.72,.25,1); }
@keyframes tlCodes { 0% { opacity: 0; transform: translateY(8px); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
.tl-strip.is-pop { animation: tlStrip .5s cubic-bezier(.32,.72,.25,1); }
@keyframes tlStrip { 0%, 100% { transform: none; } 40% { transform: scale(1.03); } }

/* ---------- Calculator: the charting year as one bar, split into what stays and what comes back (William 2026-11-14) ---------- */
.tf-meter { margin-top: 18px; background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 16px 20px 14px; text-align: left; }
.tf-meter__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tf-meter__top > span:first-child { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tf-meter__pct { font-size: .875rem; font-weight: 600; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.tf-meter__track { position: relative; display: flex; height: 44px; margin-top: 10px; border-radius: 12px; overflow: hidden; background: #EEF3F4; box-shadow: inset 0 0 0 1px rgba(16,35,46,.08); }
.tf-meter__keep, .tf-meter__back { position: relative; display: flex; align-items: center; min-width: 0; container-type: inline-size; font-size: .875rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tf-meter__keep { flex: 1; padding-left: 14px; color: var(--body); }
.tf-meter__back { flex: none; width: 0; justify-content: flex-end; color: #fff; overflow: hidden; background: linear-gradient(90deg, var(--teal), #5BB8D4); box-shadow: -2px 0 0 #fff; transition: width .7s cubic-bezier(.32,.72,.25,1); }
.tf-meter__back > span { padding-right: 14px; text-shadow: 0 1px 2px rgba(11,95,99,.35); }
.tf-meter__back::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-130%); }
.tf-meter.is-moved .tf-meter__back::after { animation: tfSheen 1.1s ease-out .15s; }
@keyframes tfSheen { from { transform: translateX(-130%); } to { transform: translateX(380%); } }
@container (max-width: 132px) { .tf-meter__keep > span, .tf-meter__back > span { display: none; } }
.tf-meter__ticks { position: relative; height: 22px; margin-top: 4px; font-size: .6875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tf-meter__ticks i { position: absolute; top: 0; font-style: normal; transform: translateX(-50%); padding-top: 8px; }
.tf-meter__ticks i::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 5px; background: #C9D3D3; }
.tf-meter__ticks i:first-child { transform: none; } .tf-meter__ticks i:first-child::before { left: 0; }
.tf-meter__ticks i:last-child { transform: translateX(-100%); } .tf-meter__ticks i:last-child::before { left: auto; right: 0; }
.tf-barkey { display: flex; justify-content: space-between; margin-top: 2px; font-size: .75rem; color: var(--muted); }
.tf-barkey i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #EEF3F4; border: 1px solid #C9D3D3; margin-right: 6px; }
.tf-barkey i.is-back { background: linear-gradient(90deg, var(--teal), #5BB8D4); border: 0; }
.tf-tile, .tf-assume { background-color: #fff; }
.tf-tile--teal { background: var(--teal-tint); }

/* the idle island breathes once in a while, as it does in the app when you reach for it */
.cs-island[data-state="idle"] { animation: csBreath 4.5s ease-in-out 1.2s infinite; transform-origin: 50% 100%; }
@keyframes csBreath { 0%, 84%, 100% { transform: scale(1); } 92% { transform: scale(1.08); } }

/* back to the tools index (top of each tool page) and back / next under the tool: buttons in the site's button style */
.tool-back { margin: 0 0 var(--s3); text-align: left; }
.tool-back .btn, .tool-nav .btn { display: inline-flex; width: auto; }
.tool-nav { max-width: 860px; margin: var(--s5) auto 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9375rem; }
.tool-nav__next { display: inline-flex; align-items: center; gap: .6rem; color: var(--teal-deep); font-weight: 600; text-decoration: none; background: var(--teal-tint); border: 1px solid var(--teal-tint); border-radius: 999px; padding: .6rem 1.1rem; transition: background .18s ease, transform .18s ease; }
.tool-nav__next:hover { background: #D3EEEA; transform: translateY(-1px); }
.tool-nav__next span { font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .tool-nav { flex-direction: column-reverse; align-items: stretch; text-align: center; } .tool-nav__next { justify-content: center; } }

/* links to the how-to guides (tool pages, comparison pages, guide pages) */
.guide-links { max-width: 860px; margin: var(--s6) auto 0; }
.guide-links__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.guide-link { font-size: .9375rem; font-weight: 600; color: var(--teal-deep); text-decoration: none; background: #fff; border: 1px solid #D3EEEA; border-radius: 999px; padding: .5rem 1rem; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.guide-link:hover { background: var(--teal-tint); border-color: var(--teal-tint); transform: translateY(-1px); }
.guide-link--all { color: var(--ink); border-color: var(--hairline); }

@media (prefers-reduced-motion: reduce) {
  .tool-thumb::before, .tool-thumb *, .tool-thumb *::after { animation: none !important; }
  .tool-card, .tool-mini, .tt, .tool-thumb::after, .tl-odo__s, .tf-meter__back { transition: none; }
  .tool-card:hover, .tool-mini:hover, .tool-card:hover .tt, .tool-mini:hover .tt { transform: none; }
  .tool-thumb::after { display: none; }
  .tl-row.is-new, .tl-row.is-new::before, .tl-row.is-bump::before, .tl-row .tl-row__w, .tl-row .tl-line, .tl-delta, .tl-total--lead.is-hit, .tl-total b.is-bump, .tl-strip.is-pop, .tl-strip__codes.is-pop, .tf-meter.is-moved .tf-meter__back::after, .cs-island[data-state="idle"] { animation: none !important; }
  .tl-delta { display: none; }
}

/* question headings and the one-sentence answer under each (search and AI-visibility brief, 2026-11-14) */
.tool-q { margin-top: var(--s6); }
.vs-answer { margin-top: var(--s2); font-size: 1.0625rem; line-height: 1.55; color: var(--body); }

/* search-built tool page (2026-11-17): the call to action under the answer, the five questions, the byline */
.tool-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; margin-top: var(--s4); }
.tool-hero__cta .btn { padding: .75rem 1.5rem; font-size: 1rem; }
.tool-qa { max-width: 780px; margin: var(--s6) auto 0; display: grid; gap: 14px; text-align: left; }
.tool-qa__item { background: #fff; border: 1px solid var(--hairline); border-radius: 20px; padding: 24px 28px; box-shadow: 0 10px 30px rgba(16,35,46,.05); }
.tool-qa__item .vs-answer { color: var(--ink); font-weight: 500; margin-top: 10px; }
.tool-qa__more { margin: 10px 0 0; font-size: .9375rem; line-height: 1.6; color: var(--body); }
.tool-qa__more a { color: var(--teal-deep); }
.tool-qa__item .tl-list { margin-top: var(--s3); }
.tool-byline { text-align: center; font-size: .875rem; line-height: 1.5; color: var(--muted); margin: var(--s2) auto 0; max-width: 40rem; }
@media (max-width: 560px) { .tool-qa__item { padding: 18px; } }

/* one sentence pointing to a related answer page (sibling links, 2026-11-17) */
.see-also { max-width: 780px; margin: var(--s4) auto 0; text-align: center; font-size: .9375rem; line-height: 1.55; color: var(--body); }
.see-also a { color: var(--teal-deep); font-weight: 600; }
