/* Træneren — kun det, der ikke findes i /static/app.css.
   Samme familie som medlemsområdet (sort · råhvid · beige, Schibsted Grotesk, Instrument Serif),
   men telefonen er mørk, og opkaldsknappen er grøn som på en rigtig telefon. */

.tr-body {
  --dial: #24804B; --dial-hi: #1E6E40; --dial-glow: rgba(36, 128, 75, .45); /* hvid tekst ≈ 4,9:1 */
  --end: #D23C2E; --end-glow: rgba(210, 60, 46, .55);
  --gold: #7A5A08; --gold-bg: #F3EAD0; /* ≈ 5,3:1 */
  --call: #0B0B0A; --call-2: #1C1C1A; --on-call: #F4F2EE; --on-call-mute: rgba(244, 242, 238, .58); --on-call-line: rgba(244, 242, 238, .12);
  --you: #6FC191;
  --focus: #2E7A4C;
}
/* :where() giver reglen nul specificitet, så de mørke flader (opkaldet, resultatets top, afspilleren)
   og de grønne knapper kan give fokusringen deres egen farve. */
.tr-body :where(button, a, input, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Husets .btn er firkantet; i Træneren er alle knapper piller (Prøv igen, Tjek igen, Send …) */
.tr-app .btn { border-radius: 999px; padding-inline: 22px; }
.tr-app .btn--sm { padding-inline: 16px; }
.tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tr-app { padding-bottom: 24px; }
.tr-app q, .tr-call q { quotes: "\201D" "\201D"; }

@keyframes tr-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tr-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes tr-bub { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tr-ping { 0% { box-shadow: 0 0 0 0 rgba(111, 193, 145, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(111, 193, 145, 0); } }
@keyframes tr-blink { 50% { opacity: .3; } }
@keyframes tr-spin { to { transform: rotate(360deg); } }
@keyframes tr-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.tr-enter { animation: tr-in .55s var(--ease) both; }

/* ================================================================ fælles */
.tr-av { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--beige); color: var(--black); font-weight: 700; font-size: 15px; letter-spacing: .01em; }
.tr-av--lg { width: 68px; height: 68px; font-size: 22px; }
.tr-av--sm { width: 32px; height: 32px; font-size: 12px; }
.tr-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.tr-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.tr-dots i.on { background: var(--black); }
.tr-pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.tr-pill--none { color: var(--mute); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tr-pill--gold { background: var(--gold-bg); color: var(--gold); }
.tr-pill--green { background: var(--green-bg); color: #266640; }
.tr-pill--amber { background: var(--amber-bg); color: #8A5F0B; }
.tr-pill--grey { background: var(--paper-2); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }
.tr-pill--red { background: var(--red-bg); color: var(--red); }
.tr-pill-sep { margin: 0 6px; opacity: .5; }
.tr-pill b { font-weight: 700; font-variant-numeric: tabular-nums; }
/* Etiketter inde i indholdet er almindelig tekst (ikke mono-versaler): lettere at læse. Mono kun til sidens eyebrow. */
.tr-sec-h { font-size: 14px; font-weight: 600; color: var(--mute); }
.tr-facts { display: grid; gap: 7px; }
.tr-facts li { position: relative; padding-left: 18px; font-size: 16.5px; line-height: 1.45; }
.tr-facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }

/* Den grønne knap: "Ring op" og "Ring igen" */
.tr-callbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--dial); color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -.01em; box-shadow: 0 12px 28px -14px var(--dial-glow); transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.tr-callbtn svg { width: 22px; height: 22px; fill: currentColor; }
.tr-callbtn:hover { background: var(--dial-hi); transform: translateY(-1px); box-shadow: 0 16px 32px -14px var(--dial-glow); }
.tr-callbtn:active { transform: scale(.98); }
.tr-callbtn:disabled { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1.5px var(--line-strong); cursor: not-allowed; transform: none; }
.tr-btn-i { display: inline-grid; place-items: center; flex: none; }
.tr-dial:focus-visible, .tr-callbtn:focus-visible { outline-color: var(--black); }
.tr-callbtn--auto { width: auto; }

/* ================================================================ 1. ringelisten */
.tr-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; padding: clamp(24px, 3.5vw, 44px) 0 clamp(18px, 2.4vw, 28px); }
.tr-head h1 { font-size: clamp(44px, 5.6vw, 72px); line-height: .95; letter-spacing: -.045em; font-weight: 600; margin: 12px 0 14px; }
.tr-head p { font-size: clamp(18px, 1.7vw, 21px); color: var(--mute); }
.tr-head p em { color: var(--black); font-size: 1.14em; }
/* "Du sælger: [Forsikring ▾]" (TrænSalg): et almindeligt valg-felt under overskriften */
.tr-sale { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 16px; }
.tr-sale-l { font-weight: 600; color: var(--black); }
.tr-sale-box { position: relative; display: inline-flex; align-items: center; }
.tr-sale-sel { appearance: none; -webkit-appearance: none; min-height: 48px; padding: 0 44px 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--black); font: inherit; font-weight: 600; cursor: pointer; max-width: min(70vw, 320px); text-overflow: ellipsis; }
.tr-sale-sel:hover { border-color: var(--black); }
.tr-sale-i { position: absolute; right: 14px; width: 20px; height: 20px; fill: var(--black); pointer-events: none; }
.tr-head-side { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding-bottom: 6px; }
.tr-listen { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 8px; border: 1px solid var(--black); border-radius: 999px; background: var(--black); color: var(--paper); font-weight: 600; font-size: 16px; transition: transform .2s var(--ease); }
.tr-listen:hover { transform: translateY(-1px); }
.tr-listen-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); }
.tr-listen-i svg { width: 16px; height: 16px; fill: var(--black); margin-left: 2px; }
.tr-listen[aria-expanded="true"] { background: transparent; color: var(--black); }
.tr-listen[aria-expanded="true"] .tr-listen-i { background: var(--black); }
.tr-listen[aria-expanded="true"] .tr-listen-i svg { fill: var(--paper); }
.tr-today { font-size: 15px; color: var(--mute); white-space: nowrap; }
.tr-today b { color: var(--black); font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-today.is-full, .tr-today.is-full b { color: var(--red); }

.tr-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); font-size: 16.5px; }
.tr-note p { max-width: 62ch; }
.tr-note p::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 11px; border-radius: 50%; vertical-align: .08em; background: var(--amber); }
.tr-note--bad { background: var(--red-bg); border-color: var(--red); }
.tr-note--bad p::before { background: var(--red); }
.tr-note--calm { background: var(--paper-2); border-color: var(--line); }

.tr-dialer { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 24px; align-items: start; }
.tr-book { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tr-group + .tr-group { border-top: 1px solid var(--line-strong); }
.tr-group-h { display: flex; align-items: center; gap: 10px; padding: 16px 22px 10px; font-size: 14px; font-weight: 600; color: var(--mute); }
.tr-group-h .tr-dots i { width: 6px; height: 6px; }
.tr-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-right: 18px; border-top: 1px solid var(--line); transition: background .2s; }
.tr-row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--black); transform: scaleY(0); transition: transform .3s var(--ease); }
.tr-row:hover { background: rgba(10, 10, 10, .025); }
.tr-row.is-sel { background: var(--paper); }
.tr-row.is-sel::before { transform: scaleY(1); }
.tr-row-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding: 14px 8px 14px 22px; background: none; border: 0; text-align: left; }
/* Fokus på rækken: en ring om hele rækken (en outline inde i knappen bliver klippet) */
.tr-row-main:focus-visible { outline: none; }
.tr-row:has(.tr-row-main:focus-visible) { box-shadow: inset 0 0 0 3px var(--focus); }
.tr-row-who { display: grid; gap: 2px; min-width: 0; }
.tr-row-who b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-row-biz { font-weight: 500; }
.tr-row-sub { font-size: 14.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-row-meta { display: flex; justify-content: flex-end; }
.tr-dial { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--dial); color: #fff; box-shadow: 0 8px 18px -10px var(--dial-glow); transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
.tr-dial svg { width: 21px; height: 21px; fill: currentColor; }
.tr-dial:hover { background: var(--dial-hi); transform: scale(1.07); box-shadow: 0 10px 22px -10px var(--dial-glow); }
.tr-dial:active { transform: scale(.95); }
/* Ikke klar: en tom ring (ikke en beige cirkel, der ligner avataren) */
.tr-dial:disabled { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--mute-2); cursor: not-allowed; transform: none; }

/* Kortet med "Det ved du" (ved siden af på en stor skærm, foldet ud under rækken på mobil) */
.tr-aside { position: sticky; top: 84px; }
.tr-card { display: grid; gap: 15px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.tr-card-top { display: flex; align-items: center; gap: 16px; }
.tr-card-id { min-width: 0; }
.tr-card-name { font-size: 30px; line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.tr-card-biz { font-size: 17px; font-weight: 500; margin-top: 4px; }
.tr-card-sub { font-size: 14.5px; color: var(--mute); }
.tr-card-stats { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--mute); white-space: nowrap; }
.tr-card-num b { color: var(--black); font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-sec { display: grid; gap: 9px; padding-top: 15px; border-top: 1px solid var(--line); }
.tr-focus-t { font-weight: 600; font-size: 17px; }
.tr-focus-try { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.25; }
.tr-tip { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: -6px; font-size: 14px; color: var(--mute); }
.tr-tip svg { width: 16px; height: 16px; fill: currentColor; opacity: .75; }
.tr-card-li { padding: 4px 14px 16px; background: var(--paper); border-top: 0; }
.tr-card-li .tr-card { animation: tr-in .4s var(--ease) both; }

/* Indlæser */
.tr-skel { padding: 8px 0; }
.tr-skel-row { display: grid; grid-template-columns: 44px 1fr 48px; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.tr-skel-row:first-child { border-top: 0; }
.tr-skel i { display: block; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--paper-2) 0%, var(--beige) 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: tr-shimmer 1.6s linear infinite; }
.tr-skel i.a { width: 44px; height: 44px; border-radius: 50%; }
.tr-skel i.b { width: min(280px, 70%); }
.tr-skel i.c { width: 48px; height: 48px; border-radius: 50%; }

/* "Hør et godt opkald" */
.tr-player { display: grid; gap: 16px; margin-bottom: 20px; padding: 18px 20px 20px; background: var(--black); color: var(--on-dark); border-radius: var(--radius); }
.tr-player-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.tr-play { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--on-dark); color: var(--black); transition: transform .2s var(--ease); }
.tr-play svg { width: 22px; height: 22px; fill: currentColor; }
.tr-play:hover { transform: scale(1.05); }
.tr-play:disabled { opacity: .4; cursor: progress; transform: none; }
.tr-player-meta { display: grid; gap: 2px; min-width: 0; }
.tr-player-meta b { font-size: 18px; letter-spacing: -.01em; }
.tr-player-meta span { font-size: 14.5px; color: var(--on-dark-mute); }
.tr-pclose { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; background: none; color: var(--on-dark); }
.tr-pclose svg { width: 18px; height: 18px; fill: currentColor; }
.tr-pclose:hover { border-color: var(--on-dark); }
.tr-player :focus-visible { outline-color: var(--on-dark); }
.tr-player-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.tr-ptime { font-size: 13px; color: var(--on-dark-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.tr-range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: rgba(244, 242, 238, .18); }
.tr-range::-moz-range-track { height: 4px; border-radius: 99px; background: rgba(244, 242, 238, .18); }
.tr-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--on-dark); border: 0; }
.tr-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--on-dark); border: 0; }
.tr-cues { display: grid; gap: 8px; min-height: 110px; align-content: end; }
.tr-cue { display: grid; gap: 4px; max-width: min(620px, 88%); }
.tr-cue p { padding: 11px 16px; border-radius: 20px; font-size: 17px; line-height: 1.4; }
.tr-cue-who { font-size: 13px; font-weight: 600; color: var(--on-dark-mute); padding: 0 6px; }
.tr-cue--o { justify-self: start; }
.tr-cue--o p { background: var(--call-2); border-bottom-left-radius: 6px; }
.tr-cue--y { justify-self: end; text-align: right; }
.tr-cue--y p { background: var(--on-dark); color: var(--black); border-bottom-right-radius: 6px; text-align: left; }
.tr-cue.is-prev { opacity: .38; }
.tr-cue.is-now { animation: tr-bub .4s var(--ease) both; }
.tr-cue-wait { color: var(--on-dark-mute); font-size: 15px; }

/* ================================================================ 2. opkaldet */
html.tr-locked, html.tr-locked body { overflow: hidden; }
.tr-call { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; background: var(--call); color: var(--on-call); overflow: hidden; outline: none; -webkit-font-smoothing: antialiased; }
.tr-call.is-opening { transition: clip-path .6s cubic-bezier(.7, 0, .3, 1); }
.tr-call.is-leaving { opacity: 0; transform: scale(1.015); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.tr-call-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 640px at 28% 34%, rgba(244, 242, 238, .075), transparent 62%),
    radial-gradient(700px 520px at 85% 105%, rgba(111, 193, 145, .06), transparent 60%),
    linear-gradient(180deg, #121210 0%, var(--call) 55%); }
.tr-call[data-state="ended"] .tr-call-bg { opacity: .6; transition: opacity .8s; }
.tr-call :focus-visible { outline-color: var(--on-call); }
.tr-call-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; padding: max(16px, env(safe-area-inset-top)) 0 8px; }
.tr-call-brand { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-call-mute); }
.tr-call-demo { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #E0B04F; border: 1px solid rgba(224, 176, 79, .5); padding: 4px 9px; border-radius: 999px; }

/* Opkaldet er én spalte, som en telefon: ejeren øverst (ansigt, navn, hendes ord), du nederst (bølge, knapper).
   Alt har sin faste plads. Kun lyset om ansigtet og bølgen bevæger sig, og de følger stemmerne (traeneren.js). */
.tr-call-main { --orb: clamp(150px, min(17vw, 24vh), 240px); --stage: 460px; --side-gap: clamp(28px, 4vw, 64px); position: relative; display: grid; grid-template-columns: minmax(0, var(--stage)); justify-content: center; min-height: 0; width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.tr-call-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
/* Meget bred skærm: "Det ved du" står som et åbent kort til højre for opkaldet. Opkaldet bliver stående i midten. */
.tr-call-side { position: absolute; top: 0; bottom: 0; left: calc(50% + var(--stage) / 2 + var(--side-gap)); width: min(340px, 50% - var(--stage) / 2 - var(--side-gap)); display: flex; align-items: center; animation: tr-in .6s .3s var(--ease) both; }
.tr-call-side .tr-know { width: 100%; }
@media (max-width: 1199px), (max-height: 480px) { .tr-call-side { display: none; } }
.tr-orb { position: relative; flex: none; width: var(--orb); height: var(--orb); display: grid; place-items: center; animation: tr-pop .8s .12s var(--ease) both; }
/* Lærredet er meget større end ansigtet, så lyset kan brede sig ud over navnet uden at flytte noget */
.tr-orb-cv { position: absolute; left: -67%; top: -67%; width: 234%; height: 234%; pointer-events: none; }
.tr-orb-face { position: relative; display: grid; place-items: center; width: 56%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #F3EFE6 0%, #E3DDD1 46%, #CFC6B4 100%); color: var(--black);
  font-weight: 600; font-size: calc(var(--orb) * .175); letter-spacing: -.02em;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .85), inset 0 -8px 18px rgba(0, 0, 0, .1); will-change: transform; transition: filter .8s; }
.tr-call:is([data-state="ended"], [data-state="failed"]) .tr-orb-face { filter: grayscale(1) brightness(.62); }
.tr-call-id { position: relative; z-index: 1; flex: none; text-align: center; margin-top: 20px; animation: tr-in .6s .2s var(--ease) both; }
.tr-call-id h2 { font-size: clamp(30px, 2.8vw, 38px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.tr-call-id p { margin-top: 4px; font-size: 16px; color: var(--on-call-mute); }
.tr-call-status { position: relative; z-index: 1; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 28px; margin-top: 8px; font-size: 15px; color: var(--on-call-mute); animation: tr-in .6s .26s var(--ease) both; }
.tr-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-call-mute); flex: none; }
.tr-call[data-state="ringing"] .tr-live-dot, .tr-call[data-state="mic"] .tr-live-dot { background: #E0B04F; animation: tr-blink 1s ease-in-out infinite; }
.tr-call[data-state="live"] .tr-live-dot { background: var(--you); animation: tr-ping 2s ease-out infinite; }
.tr-call:is([data-state="ended"], [data-state="failed"]) .tr-live-dot { background: var(--end); }
.tr-call.is-warn .tr-call-st { color: #E0B04F; }
.tr-call:is([data-state="ended"], [data-state="failed"]) .tr-call-st { color: var(--on-call); font-weight: 500; }
/* Opkaldet gik ikke igennem: beskeden står under navnet, i to linjer om nødvendigt */
.tr-call[data-state="failed"] .tr-call-status { flex-direction: column; gap: 8px; max-width: min(34ch, 100%); font-size: 17px; line-height: 1.38; text-align: center; text-wrap: balance; }
.tr-call[data-state="failed"] .tr-call-timer { display: none; }
.tr-call[data-state="failed"] .tr-says { visibility: hidden; }
.tr-call-timer { color: var(--on-call); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tr-call[data-state="mic"] .tr-call-timer, .tr-call[data-state="ringing"] .tr-call-timer { display: none; }
/* "Forbundet" bliver i siden til skærmlæsere. Øjet får kun uret (og "1 minut tilbage", når tiden er ved at være gået). */
.tr-call[data-state="live"]:not(.is-warn) .tr-call-st { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- ejerens ord: ét fast sted under navnet. Hele replikken står der på én gang (showCaption i traeneren.js).
   Ingen bobler og ingen ord, der kommer ét ad gangen. Feltet fylder den plads, der er, så intet andet flytter sig. */
.tr-says { position: relative; z-index: 1; flex: 1 1 0; width: 100%; min-height: 3.1em; max-height: 8em; margin-top: clamp(12px, 2.4vh, 24px); overflow: hidden; font-size: 20px; line-height: 1.45; text-align: center; animation: tr-in .6s .3s var(--ease) both; }
.tr-says-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; max-width: 30ch; margin-inline: auto; text-wrap: balance; overflow-wrap: anywhere; color: var(--on-call); }
.tr-says-t[data-len="l"] { font-size: .9em; max-width: 34ch; }
.tr-says-t[data-len="xl"] { font-size: .8em; max-width: 38ch; -webkit-line-clamp: 6; }
.tr-says.is-hint .tr-says-t { font-size: 15.5px; color: var(--on-call-mute); }

/* --- din stemme: en bølge over knapperne. Lyden starter i midten og løber ud til siderne (startOrb tegner den). */
.tr-me { flex: none; display: grid; justify-items: center; gap: 4px; width: min(100%, 300px); margin-top: 12px; animation: tr-in .6s .3s var(--ease) both; }
.tr-wave-cv { display: block; width: 100%; height: 56px; }
.tr-me-l { font-size: 13px; line-height: 1.4; color: var(--on-call-mute); }
.tr-call.is-muted .tr-me-l { color: #E0B04F; }

/* --- "Det ved du": på en meget bred skærm (fra 1200 px) et åbent kort ved siden af opkaldet … */
.tr-know { flex: none; border: 1px solid var(--on-call-line); border-radius: var(--radius); background: rgba(244, 242, 238, .035); }
.tr-know summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--on-call-mute); }
.tr-know summary::-webkit-details-marker { display: none; }
.tr-know-i { width: 20px; height: 20px; fill: var(--on-call-mute); transition: transform .25s var(--ease); }
.tr-know[open] .tr-know-i { transform: rotate(180deg); }
.tr-know-b { display: grid; gap: 12px; padding: 0 16px 16px; }
.tr-know .tr-facts li { font-size: 15.5px; color: var(--on-call); }
.tr-know-focus { display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid var(--on-call-line); font-size: 15.5px; }
.tr-know-focus span { font-size: 13px; font-weight: 600; color: var(--you); }
.tr-know-sale { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--on-call-line); font-size: 15.5px; font-weight: 600; }
.tr-know-sale span { font-size: 13px; font-weight: 600; color: var(--you); }
.tr-call-side .tr-know .tr-ctl-i { display: none; }
/* … og ellers den tredje knap. Kortet folder ud over knapperne og skubber ikke til noget. */
.tr-ctl-row .tr-know { border: 0; border-radius: 0; background: none; }
.tr-ctl-row .tr-know summary { display: grid; grid-template-rows: var(--ctl-big) auto; justify-items: center; align-items: center; gap: 9px; padding: 0; font-size: 13.5px; font-weight: 400; }
.tr-ctl-row .tr-know summary:focus-visible { outline: none; }
.tr-ctl-row .tr-know summary:focus-visible .tr-ctl-i { outline: 3px solid var(--on-call); outline-offset: 4px; }
.tr-ctl-row .tr-know .tr-ctl-i svg { width: 27px; height: 27px; fill: var(--on-call); }
.tr-ctl-row .tr-know-i { display: none; }
.tr-ctl-row .tr-know[open] .tr-ctl-i { background: var(--on-call); }
.tr-ctl-row .tr-know[open] .tr-ctl-i svg { fill: var(--black); }
.tr-ctl-row .tr-know[open] .tr-know-t { color: var(--on-call); }
/* opkaldet er slut: knappen er ude af brug som de to andre */
.tr-call:is([data-state="ended"], [data-state="failed"]) .tr-ctl-row .tr-know { opacity: .38; pointer-events: none; }
.tr-ctl-row .tr-know-b { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(100% + 14px); padding: 18px; border: 1px solid var(--on-call-line); border-radius: var(--radius); background: var(--call-2); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8); text-align: left; animation: tr-in .22s var(--ease) both; }

/* z-index: kortet fra "Det ved du" folder ud over hendes ord og bølgen, så rækken skal ligge øverst */
.tr-ctl-row { --ctl-big: 74px; position: relative; z-index: 3; flex: none; display: flex; justify-content: center; align-items: flex-start; gap: clamp(22px, 7vw, 44px); width: 100%; margin-top: clamp(14px, 2.4vh, 22px); animation: tr-in .6s .32s var(--ease) both; }
.tr-ctl { display: grid; grid-template-rows: var(--ctl-big) auto; justify-items: center; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--on-call-mute); font-size: 13.5px; }
.tr-ctl:focus-visible { outline: none; }
.tr-ctl:focus-visible .tr-ctl-i { outline: 3px solid var(--on-call); outline-offset: 4px; }
.tr-ctl-i { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: rgba(244, 242, 238, .1); transition: background .2s, transform .2s var(--ease); }
.tr-ctl svg { width: 27px; height: 27px; fill: var(--on-call); }
.tr-ctl:hover:not(:disabled) .tr-ctl-i { transform: scale(1.06); background: rgba(244, 242, 238, .16); }
.tr-ctl:active:not(:disabled) .tr-ctl-i { transform: scale(.95); }
.tr-ctl[aria-pressed="true"] .tr-ctl-i { background: var(--on-call); }
.tr-ctl[aria-pressed="true"] svg { fill: var(--black); }
.tr-ctl:disabled { opacity: .38; cursor: default; }
.tr-ctl--end { color: var(--on-call); }
.tr-ctl--end .tr-ctl-i { width: 74px; height: 74px; background: var(--end); box-shadow: 0 14px 34px -12px var(--end-glow); }
.tr-ctl--end:hover:not(:disabled) .tr-ctl-i { background: #DE4A3B; }
.tr-ctl--end svg { width: 32px; height: 32px; }

/* ================================================================ 3. resultatet */
/* Én kolonne i læsebredde: scoren, "Se samtalen", rådet, rosen, søjlerne (Jakob 2026-11-13) */
.tr-result { display: grid; gap: 18px; width: min(100%, 880px); margin-inline: auto; padding: 20px 0 8px; }
.tr-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; border: 0; background: none; color: var(--mute); font-size: 15px; }
.tr-back svg { width: 18px; height: 18px; fill: currentColor; }
.tr-back:hover { color: var(--black); }
.tr-stagger { display: grid; gap: 20px; }
.tr-stagger > * { animation: tr-in .6s var(--ease) both; }
.tr-stagger > :nth-child(2) { animation-delay: .12s; }
.tr-stagger > :nth-child(3) { animation-delay: .22s; }
.tr-stagger > :nth-child(4) { animation-delay: .3s; }
.tr-stagger > :nth-child(5) { animation-delay: .36s; }
.tr-stagger > :nth-child(n+6) { animation-delay: .42s; }

.tr-hero { position: relative; display: grid; gap: clamp(20px, 3vw, 30px); padding: clamp(22px, 4vw, 44px); background: var(--black); color: var(--on-dark); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.tr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 420px at 12% 0%, rgba(244, 242, 238, .09), transparent 60%); }
.tr-hero.tr-tone-green::before { background: radial-gradient(700px 420px at 12% 0%, rgba(111, 193, 145, .16), transparent 62%); }
.tr-hero.tr-tone-gold::before { background: radial-gradient(700px 420px at 12% 0%, rgba(227, 194, 103, .18), transparent 62%); }
.tr-hero.tr-tone-amber::before { background: radial-gradient(700px 420px at 12% 0%, rgba(224, 176, 79, .13), transparent 62%); }
.tr-hero.tr-tone-red::before { background: radial-gradient(700px 420px at 12% 0%, rgba(229, 123, 110, .14), transparent 62%); }
.tr-hero-who { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--on-dark-mute); }
.tr-hero-who b { color: var(--on-dark); font-weight: 600; }
.tr-hero-dur { margin-left: auto; flex: none; font-size: 15px; }
.tr-hero-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 64px); }
.tr-hero-side { display: grid; gap: 14px; justify-items: start; }
.tr-hero-oc { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.tr-badge { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .09em; line-height: 1; }
.tr-badge--gold { background: #E3C267; color: #261C02; }
.tr-badge--green { background: #2E7A4C; color: #fff; } /* ≈ 5,2:1 */
.tr-badge--amber { background: #E0B04F; color: #2B1E04; }
.tr-badge--grey { background: rgba(244, 242, 238, .16); color: var(--on-dark); }
.tr-badge--red { background: #D04535; color: #fff; }
.tr-meet { font-size: 17px; color: var(--on-dark-mute); }
.tr-meet b { color: var(--on-dark); font-weight: 600; }
.tr-tier { font-family: var(--serif); font-style: italic; font-size: clamp(48px, 6vw, 76px); line-height: .95; letter-spacing: -.01em; }
.tr-cap { font-size: 14.5px; color: #E0B04F; }
.tr-mood { font-size: 17px; color: var(--on-dark-mute); }
.tr-mood em { color: var(--on-dark); font-size: 1.22em; }
/* Ring igen / Næste kunde i toppen (stor skærm): det næste skridt kan ses uden at rulle */
.tr-hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.tr-herobtn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px 0 9px; border: 1px solid var(--on-dark); border-radius: 999px; background: var(--on-dark); color: var(--black); font-size: 17px; font-weight: 600; letter-spacing: -.01em; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.tr-herobtn .tr-btn-i { width: 38px; height: 38px; border-radius: 50%; background: var(--dial); color: #fff; }
.tr-herobtn .tr-btn-i svg { width: 18px; height: 18px; fill: currentColor; }
.tr-herobtn > svg { width: 20px; height: 20px; fill: currentColor; }
.tr-herobtn:hover { transform: translateY(-1px); }
.tr-herobtn:active { transform: scale(.98); }
.tr-herobtn--ghost { padding: 0 22px; background: transparent; color: var(--on-dark); border-color: rgba(244, 242, 238, .26); }
.tr-herobtn--ghost:hover { border-color: var(--on-dark); }
.tr-hero :focus-visible { outline-color: var(--on-dark); }

.tr-gauge { position: relative; width: clamp(190px, 21vw, 236px); aspect-ratio: 1; }
.tr-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.tr-g-track { fill: none; stroke: rgba(244, 242, 238, .12); stroke-width: 7; }
.tr-g-arc { fill: none; stroke: var(--on-dark); stroke-width: 7; stroke-linecap: round; }
.tr-gauge-n { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.tr-gauge-n b { font-size: clamp(68px, 7.4vw, 92px); font-weight: 600; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; }
.tr-gauge-n span { margin-top: 8px; font-size: 14px; color: var(--on-dark-mute); }
.tr-short { display: grid; gap: 10px; }
.tr-short-t { max-width: 20ch; text-wrap: balance; font-family: var(--serif); font-style: italic; font-size: clamp(42px, 5.4vw, 68px); line-height: 1; }
.tr-hero-main.is-short { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tr-hero-main.is-short .tr-hero-side { display: contents; }
.tr-hero-main.is-short .tr-hero-oc { order: -1; }
.tr-short-s { font-size: 16px; color: var(--on-dark-mute); }
.tr-short-try { display: grid; gap: 6px; max-width: 560px; }
.tr-short-try span { font-size: 15px; color: var(--on-dark-mute); }
.tr-short-try q { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.2; color: var(--on-dark); text-wrap: balance; }

.tr-skills { display: grid; gap: 10px; padding: 22px 24px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tr-skills ul { display: grid; }
.tr-skill { display: grid; grid-template-columns: minmax(118px, 168px) minmax(0, 1fr) 26px; align-items: center; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.tr-skill:first-child { border-top: 0; }
.tr-track { height: 8px; border-radius: 99px; background: var(--beige); overflow: hidden; }
.tr-track i { display: block; width: 0; height: 100%; border-radius: 99px; background: var(--black); transition: width 1.1s var(--ease); }
.tr-skill.is-low .tr-track i { background: var(--red); }
.tr-skill.is-na .tr-track { background: repeating-linear-gradient(90deg, var(--beige) 0 5px, transparent 5px 9px); }
.tr-skill-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-skill.is-na .tr-skill-v, .tr-skill.is-na .tr-skill-n { color: var(--mute-2); font-weight: 400; }

.tr-fbs { display: grid; gap: 16px; }
.tr-fb { display: grid; gap: 12px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius); }
.tr-fb--fix { background: #fff; border-color: var(--line-strong); border-top-color: var(--black); }
.tr-fb-h { font-size: 14px; font-weight: 600; color: var(--green); }
.tr-fb--fix .tr-fb-h { color: var(--black); }
.tr-fb-t { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.tr-lbl { display: block; margin-bottom: 4px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--mute); }
.tr-said { font-size: 16px; color: var(--mute); }
.tr-said q { color: var(--ink); font-style: italic; }
.tr-try { padding: 14px 16px; background: var(--green-bg); border-radius: var(--radius); }
.tr-try .tr-lbl { color: var(--green); }
.tr-try q { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.1vw, 25px); line-height: 1.22; }
.tr-why { font-size: 15px; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* På en stor skærm står Ring igen / Næste kunde i toppen (.tr-hero-act); her kun de små links */
.tr-actions { display: none; }
.tr-nextbtn { min-height: 58px; padding: 0 24px; border-radius: 999px; font-size: 17px; }
.tr-nextbtn svg { width: 20px; height: 20px; fill: currentColor; }
.tr-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 24px; }
.tr-link { padding: 6px 0; border: 0; background: none; font-size: 15px; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.tr-link:hover { color: var(--black); text-decoration-color: var(--black); }
.tr-more { display: grid; gap: 20px; }
.tr-more:empty { display: none; }
.tr-thanks { font-weight: 600; color: var(--green); }

/* "Se samtalen": en rigtig knap lige under scoren, og samtalen folder ud under den */
.tr-convo-row { display: grid; gap: 14px; }
.tr-seeconvo { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--black); font-size: 17px; font-weight: 600; letter-spacing: -.01em; transition: border-color .2s, background .2s; }
.tr-seeconvo:hover { border-color: var(--black); }
.tr-seeconvo svg { width: 22px; height: 22px; fill: currentColor; transition: transform .25s var(--ease); }
.tr-seeconvo[aria-expanded="true"] svg { transform: rotate(180deg); }
.tr-convo-open:empty { display: none; }
.tr-convo-open { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tr-convo-open .tr-transcript { max-width: none; }

.tr-transcript { display: grid; gap: 10px; max-width: 760px; }
.tr-tb { max-width: 82%; padding: 10px 15px; border-radius: 20px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.tr-tb--o { justify-self: start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.tr-tb--y { justify-self: end; background: var(--black); color: var(--paper); border-bottom-right-radius: 6px; }
.tr-sec-plain { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
/* Under "Beregner din score …" står samtalen i samme midterakse som spinneren */
.tr-wait ~ .tr-sec-plain { width: min(100%, 760px); margin-inline: auto; }
.tr-wait ~ .tr-sec-plain .tr-sec-h { text-align: center; }

/* "Beregner din score …" */
.tr-wait { display: grid; justify-items: center; gap: 12px; padding: clamp(32px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.tr-wait h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; margin-top: 10px; }
.tr-wait p { color: var(--mute); font-size: 17px; max-width: 40ch; }
.tr-wait-orb { position: relative; display: grid; place-items: center; width: 116px; height: 116px; }
.tr-wait-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--black); animation: tr-spin 1.3s linear infinite; }
.tr-wait-orb::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1px solid var(--line); }
.tr-wait.is-stopped .tr-wait-orb::before { animation: none; border-top-color: var(--line); }
.tr-wait-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* Demo-mærke (kun med ?demo=) */
.tr-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.tr-demo { display: inline-flex; padding: 4px 10px; border: 1px solid var(--amber); border-radius: 999px; background: var(--amber-bg); color: #6B4A08; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* ================================================================ skærmstørrelser */
@media (max-width: 1100px) {
  .tr-dialer { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 959px) {
  .tr-dialer { grid-template-columns: minmax(0, 1fr); }
  .tr-aside { display: none; }
  /* Kortet folder ud lige under rækken, der allerede viser navn, firma og by */
  .tr-card-li .tr-card-top, .tr-card-li .tr-card-stats { display: none; }
  .tr-card-li .tr-card-stats + .tr-sec { border-top: 0; padding-top: 0; }
  .tr-card-li .tr-card { gap: 16px; }
}
@media (max-width: 899px) {
  /* Telefon: ejeren står øverst, og bølgen og knapperne står nederst, hvor tommelfingeren er */
  .tr-call-main { --orb: clamp(108px, min(42vw, 21vh), 220px); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .tr-call-main { --stage: 520px; }
  .tr-call-stage { justify-content: flex-start; }
  .tr-orb { margin-top: clamp(10px, 5vh, 56px); }
  .tr-call-id h2 { font-size: 28px; }
  .tr-call-id p { font-size: 15px; }
  .tr-says { max-height: none; font-size: 19px; }
  .tr-ctl-row { margin-top: 12px; }
}
@media (max-width: 640px) {
  .tr-head { padding-top: 26px; }
  .tr-head-side { width: 100%; justify-content: space-between; }
  .tr-group-h { padding: 14px 16px 8px; }
  .tr-row { padding-right: 14px; gap: 4px; }
  .tr-row-main { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; min-height: 0; padding: 14px 6px 14px 16px; }
  .tr-row-meta { grid-column: 2; justify-content: flex-start; margin-top: 2px; }
  .tr-row-who b { font-size: 16.5px; white-space: normal; }
  .tr-card { padding: 18px; }
  .tr-card-li { padding: 0 10px 14px; }
  .tr-card-name { font-size: 26px; }
  .tr-player { padding: 16px; }
  .tr-cue p { font-size: 16px; }
  .tr-hero-main { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .tr-hero-side { display: contents; }
  .tr-hero-oc { order: -1; justify-content: center; } /* resultatet står først */
  .tr-hero-main.is-short { align-items: center; }
  .tr-gauge { width: 200px; }
  .tr-skills, .tr-fb { padding: 18px; }
  .tr-skill { grid-template-columns: minmax(0, 1fr) 26px; grid-template-areas: "n v" "t t"; gap: 6px 10px; }
  .tr-skill-n { grid-area: n; }
  .tr-skill-v { grid-area: v; }
  .tr-track { grid-area: t; }
  .tr-hero-pre { display: none; } /* "Jørgen · Jørgens VVS" på én linje */
  .tr-try + .tr-why { display: none; }
  /* Ring igen / Næste kunde står fast i bunden, mens man læser */
  .tr-hero-act { display: none; }
  .tr-actions { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; margin-top: -8px; padding: 14px 0 max(14px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 72%, rgba(244, 242, 238, 0)); }
  .tr-actions > * { flex: 1 1 0; min-width: 0; min-height: 56px; padding-inline: 14px; font-size: 17px; }
  .tr-links { justify-content: center; }
  .tr-transcript .tr-tb { max-width: 90%; }
}
@media (max-height: 640px) and (max-width: 899px) {
  .tr-call-main { --orb: 104px; }
  .tr-orb { margin-top: 4px; }
  .tr-call-id { margin-top: 10px; }
  .tr-call-id h2 { font-size: 25px; }
  .tr-says { margin-top: 8px; font-size: 17px; }
  .tr-me { margin-top: 6px; }
  .tr-wave-cv { height: 40px; }
  .tr-ctl-i { width: 58px; height: 58px; }
  .tr-ctl--end .tr-ctl-i { width: 64px; height: 64px; }
  .tr-ctl-row { --ctl-big: 64px; margin-top: 8px; }
}

/* Telefon på tværs (meget lav skærm): alt bliver mindre, så "Læg på" altid kan ses */
@media (max-height: 480px) {
  .tr-call-top { padding-top: 8px; padding-bottom: 0; }
  .tr-call-main { --orb: 76px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .tr-call-stage { justify-content: flex-start; }
  .tr-orb { margin-top: 0; }
  .tr-call-id { margin-top: 12px; }
  .tr-call-id h2 { font-size: 22px; }
  .tr-call-id p { display: none; }
  .tr-call-status { min-height: 24px; margin-top: 2px; }
  .tr-says { min-height: 0; margin-top: 4px; font-size: 15.5px; }
  .tr-says-t, .tr-says-t[data-len] { max-width: 64ch; font-size: 1em; -webkit-line-clamp: 2; }
  .tr-me { margin-top: 2px; }
  .tr-wave-cv { height: 28px; }
  .tr-me-l { display: none; }
  .tr-call.is-muted .tr-me-l { display: block; }
  .tr-ctl-row { --ctl-big: 56px; margin-top: 4px; }
  .tr-ctl, .tr-ctl-row .tr-know summary { grid-template-rows: var(--ctl-big); gap: 0; }
  .tr-ctl-i { width: 52px; height: 52px; }
  .tr-ctl--end .tr-ctl-i { width: 56px; height: 56px; }
  .tr-ctl-l, .tr-ctl-row .tr-know-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* teksten bliver til skærmlæsere */
}

/* Ro på: ingen animationer, kun det nødvendige skifter */
@media (prefers-reduced-motion: reduce) {
  .tr-body *, .tr-body *::before, .tr-body *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ---------------- din score + Mine opkald */
.tr-sum { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.tr-sum:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.tr-sum-n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--black); color: var(--paper); font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tr-sum-t { display: grid; gap: 1px; font-size: 13.5px; line-height: 1.3; color: var(--mute); }
.tr-sum-t b { font-size: 15px; font-weight: 600; color: var(--black); }
.tr-up { color: var(--green); font-weight: 600; }
.tr-down { color: var(--red); font-weight: 600; }

.tr-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; }
.tr-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 600; color: var(--mute); transition: background .2s, color .2s; }
.tr-tab:hover { color: var(--black); }
.tr-tab[aria-pressed="true"] { background: var(--card); color: var(--black); box-shadow: 0 1px 2px rgba(10, 10, 10, .08), inset 0 0 0 1px var(--line); }
.tr-tab-n { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--line); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--black); }

.tr-hist { margin: 0; padding: 0; list-style: none; }
.tr-hist-row + .tr-hist-row { border-top: 1px solid var(--line); }
.tr-hist-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding: 14px 22px; background: none; border: 0; text-align: left; transition: background .2s; }
.tr-hist-main:hover { background: rgba(10, 10, 10, .025); }
.tr-hist-main:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--focus); }
.tr-hist-meta { display: flex; align-items: center; gap: 16px; }
.tr-hist-score { min-width: 2.4ch; font-size: 24px; font-weight: 700; letter-spacing: -.03em; text-align: right; font-variant-numeric: tabular-nums; }
.tr-hist-score.is-none { color: var(--mute-2); font-weight: 500; }
.tr-hist-empty { display: grid; justify-items: start; gap: 6px; padding: 28px 22px; }
.tr-hist-empty .btn { margin-top: 10px; }

@media (max-width: 640px) {
  .tr-sum { order: -1; }
  .tr-tabs { display: flex; width: 100%; }
  .tr-tab { flex: 1; justify-content: center; padding: 0 10px; }
  .tr-hist-main { gap: 12px; padding: 12px 14px 12px 16px; min-height: 0; }
  .tr-hist-meta { gap: 10px; }
  .tr-hist-meta .tr-pill { padding: 5px 8px; font-size: 12px; }
  .tr-hist-score { font-size: 20px; }
  .tr-hist .tr-row-biz { display: none; }
  .tr-hist .tr-row-who b { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-sum, .tr-sum:hover { transition: none; transform: none; }
}

/* ---------------- ventetid: bjælke + trin */
.tr-wait-prog { display: grid; justify-items: center; gap: 12px; width: min(100%, 360px); margin-top: 10px; }
.tr-wait-bar { width: 100%; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tr-wait-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--black); animation: tr-fill 22s cubic-bezier(.15, .55, .25, 1) forwards; }
.tr-wait .tr-wait-step { font-size: 15px; font-weight: 500; color: var(--black); min-height: 1.4em; }
@keyframes tr-fill { from { width: 0; } to { width: 94%; } }
@media (prefers-reduced-motion: reduce) {
  .tr-wait-bar i { animation: none; width: 60%; }
}

/* Køb opkald (TrænSalg med Stripe): pakkerne under "Du har brugt dine opkald" og efter demoen */
.tr-buy { flex-basis: 100%; display: grid; gap: 8px; }
.tr-buy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tr-buy-sub, .tr-buy-msg { font-size: 14px; color: var(--mute); }
.tr-buy-msg:empty { display: none; }
.tr-note .tr-buy p::before { content: none; }
.tr-card .tr-buy { margin-top: 10px; }
