.live-tool-page { max-width: 1180px; margin: 0 auto; padding: 120px 32px 96px; }
.live-tool-hero { display: flex; flex-direction: column; gap: 32px; }
.live-tool-copy { position: relative; }
.live-tool-copy h1 { max-width: 960px; margin: 0 0 16px; font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 60px); line-height: 1.08; letter-spacing: -.055em; font-weight: 600; color: var(--text); }
.live-tool-copy h1 span { color: var(--accent); }
.live-tool-lede { max-width: 720px; margin: 0; color: var(--text-dim); font-size: 16px; line-height: 1.65; }
.live-tool-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin: -12px 0 0; padding: 0; list-style: none; }
.live-tool-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.live-tool-badge svg { width: 20px; height: 20px; flex-shrink: 0; color: #20a464; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(32,164,100,.4)); }
.live-tool-free::before { content: ""; width: 7px; height: 7px; margin: 0 4px; border-radius: 50%; background: #20a464; box-shadow: 0 0 0 4px rgba(32,164,100,.12); }
.live-tool-noscript { max-width: 780px; margin: 28px auto -64px; padding: 14px 16px; color: var(--text-dim); font-size: 14px; line-height: 1.5; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
/* The player is an isolated dark surface; page navigation keeps the site theme. */
.live-tool-card { --player-ink: #f3f6ff; --player-muted: #a2aec7; --player-blue: #8eb7ff; position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; height: clamp(560px, calc(100dvh - 320px), 760px); scroll-margin-top: 88px; overflow: hidden; border: 1px solid #273148; border-radius: 24px; color: var(--player-ink); background: #0a1020; box-shadow: 0 24px 64px -24px #13265755; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.live-tool-topline { flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 24px 32px 0; }
.live-tool-window-title { color: var(--player-muted); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.live-tool-live-label { flex-shrink: 0; display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; color: var(--player-muted); font: 500 11px/1.4 var(--font-mono); }
.live-tool-live-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7b879f; }
.live-tool-live-label.active { color: #6be6b0; }
.live-tool-live-label.active::before { background: currentColor; box-shadow: 0 0 12px #6be6b066; }
.live-tool-stage { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 16px 32px 100px; background: radial-gradient(ellipse at 50% 96%, #245fdb24, transparent 64%); }
.live-tool-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 76%, #2867f038, transparent 62%); }
.live-tool-header-status { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.live-tool-speaker-language { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--player-blue); font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.live-tool-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--player-muted); font-size: 11px; }
.live-tool-transcript { display: flex; flex: 1; min-height: 0; width: 100%; margin: 8px auto; max-width: 1040px; }
.live-tool-lines { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3e506e transparent; padding: 24px 16px 20px; scroll-padding: 24px; mask-image: linear-gradient(transparent, #000 20px, #000 calc(100% - 8px), transparent); }
.live-tool-lines:focus-visible { outline: 2px solid var(--player-blue); outline-offset: -4px; border-radius: 8px; }
.live-tool-empty { display: grid; place-items: center; min-height: 100%; max-width: 640px; margin: auto; color: #c4cee2; font-size: clamp(26px, 3.5vw, 44px); line-height: 1.2; font-weight: 500; letter-spacing: -.04em; text-align: center; text-wrap: balance; }
.live-tool-stanza { flex-shrink: 0; padding: 12px 8px 20px; text-align: center; color: var(--player-muted); transition: color .5s, opacity .5s; }
.live-tool-stanza:first-child { margin-top: auto; }
.live-tool-stanza:last-child { margin-bottom: auto; }
.live-tool-stanza.current { color: var(--player-ink); }
.live-tool-line { margin: 0; overflow-wrap: anywhere; }
.live-tool-line.original { color: var(--player-muted); font-size: 15px; font-weight: 400; line-height: 1.6; }
.live-tool-line.translated { margin-top: 12px; font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.live-tool-stanza.current .translated { text-shadow: 0 0 32px #5c97ff30; }
.live-tool-line-tag { display: inline-block; margin-inline-end: 12px; color: var(--player-muted); font: 400 10px/1.5 var(--font-mono); letter-spacing: .06em; vertical-align: middle; }
.live-tool-stanza.current .translated .live-tool-line-tag { color: var(--player-blue); }
.live-tool-word { animation: live-tool-word-in .45s ease-out both; }
.live-tool-card[data-state="listening"] .live-tool-stanza.partial .translated::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 12px; background: var(--player-blue); border-radius: 50%; vertical-align: middle; }
.live-tool-voice-meter { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; align-items: center; gap: 4px; width: min(60%, 680px); height: 40px; margin: 0; opacity: .85; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.live-tool-voice-meter span { display: block; flex: 1; max-width: 5px; height: 100%; border-radius: 4px; background: #6c91d4; transform: scaleY(.025); transition: background .6s; }
.live-tool-voice-meter.active span { background: var(--player-blue); box-shadow: 0 0 20px #679eff38; }
.live-tool-message { flex-shrink: 0; max-width: 680px; min-height: 20px; margin: auto; color: var(--player-muted); font-size: 12px; line-height: 1.6; text-align: center; }
.live-tool-message[data-kind="error"] { color: #ff9fa8; }
.live-tool-message[data-kind="success"] { color: #b6c7e4; }
.live-tool-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.live-tool-dock { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.live-tool-controls { display: flex; gap: 20px; align-items: center; min-width: 0; padding: 12px 16px; border: 1px solid #ffffff12; border-radius: 16px; background: rgb(17 26 43 / .16); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 1; transition: opacity .36s ease-in-out; }
.live-tool-language-pair { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 16px; align-items: center; min-width: 0; }
.live-tool-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px; min-width: 0; }
.live-tool-field label { padding-left: 4px; color: var(--player-muted); font-size: 10px; }
.live-tool-field select { min-width: 0; width: 100%; height: 36px; padding: 0 8px; color: var(--player-ink); color-scheme: dark; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: background .2s, border-color .2s; }
.live-tool-field select:hover { background: #ffffff08; border-color: #ffffff20; }
.live-tool-field select:active { background: #ffffff12; }
.live-tool-field option { color: var(--player-ink); background: #151f32; }
.live-tool-swap { display: grid; place-items: center; width: 36px; height: 36px; color: var(--player-muted); background: #ffffff08; border: 1px solid #ffffff10; border-radius: 50%; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.live-tool-swap:hover { color: var(--player-ink); background: #ffffff14; }
.live-tool-swap:active { transform: rotate(180deg); }
.live-tool-swap svg { width: 18px; height: 18px; }
/* Ring drains clockwise from the top; the lit head marks the remaining time. */
.live-tool-clock { --remaining: 1; --clock-signal: #8ab0e8; --clock-highlight: #eaf2ff; --clock-glow: #6c9fff22; position: relative; isolation: isolate; display: grid; place-items: center; width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%; color: #f3f6ff; background: radial-gradient(circle at 50% 4%, #cfe2ff26, transparent 58%), radial-gradient(circle at 50% 118%, #16233d, #070d18); box-shadow: inset 0 0 0 1px #ffffff12, inset 0 12px 20px -14px #ffffff2e, 0 0 26px var(--clock-glow), 0 8px 20px #00000033; transition: color .3s ease, box-shadow .3s ease; }
.live-tool-clock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(var(--clock-signal), var(--clock-highlight) calc(var(--remaining) * 1turn), #ffffff1f 0); -webkit-mask-image: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 2.5px)); mask-image: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 2.5px)); }
.live-tool-clock::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle 2.4px at 50% 3.5px, var(--clock-highlight), #ffffff00 70%); opacity: calc(.55 + var(--remaining) * .45); transform: rotate(calc(var(--remaining) * 360deg)); pointer-events: none; }
.live-tool-clock-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.live-tool-timer { font: 600 20px/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; white-space: nowrap; text-shadow: 0 0 16px var(--clock-glow); }
.live-tool-clock.active { --clock-signal: #6fa5ff; --clock-highlight: #f0f6ff; --clock-glow: #6c9fff44; }
.live-tool-clock.active .live-tool-timer { color: #ffffff; }
.live-tool-clock.urgent { --clock-signal: #f0a952; --clock-highlight: #ffead0; --clock-glow: #efb46844; color: #ffe3bd; animation: live-tool-clock-glow 1.6s ease-in-out infinite; }
.live-tool-clock.urgent .live-tool-timer { animation: live-tool-clock-beat 1s ease-in-out infinite; }
@keyframes live-tool-clock-glow { 0%, 100% { box-shadow: inset 0 0 0 1px #ffffff12, inset 0 12px 20px -14px #ffffff2e, 0 0 22px #efb46833, 0 8px 20px #00000033; } 50% { box-shadow: inset 0 0 0 1px #ffffff1c, inset 0 12px 20px -14px #ffffff3d, 0 0 36px #efb46870, 0 8px 20px #00000033; } }
@keyframes live-tool-clock-beat { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.live-tool-controls-toggle { display: none; }
/* Play button: Liquid Glass — translucent material that blurs what sits behind it, a thin
   specular rim for the glass edge, and no bevel or glow to fake depth. */
.live-tool-controls .btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 48px; padding: 0 20px; border: 1px solid #ffffff33; border-radius: 999px; color: #ffffff; background: linear-gradient(180deg, #ffffff1f, #ffffff0f); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: inset 0 1px 0 #ffffff8f, inset 0 -1px 0 #ffffff29, 0 6px 18px #0000002e; transition: background-color .2s ease, border-color .2s ease, box-shadow .24s ease, transform .18s ease; }
/* Tinted inner pane, so the glass keeps the accent hue without turning opaque. */
.live-tool-controls .btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, #6ea0ff5c, #2a63f033); }
.live-tool-controls .btn:hover { border-color: #ffffff4d; background: linear-gradient(180deg, #ffffff2e, #ffffff17); box-shadow: inset 0 1px 0 #ffffffab, inset 0 -1px 0 #ffffff33, 0 8px 22px #00000038; }
.live-tool-controls .btn:active { transform: scale(.985); background: linear-gradient(180deg, #ffffff1a, #ffffff0a); }
.live-tool-controls :is(button, select):focus-visible { outline: 2px solid var(--player-blue); outline-offset: 4px; }
.live-tool-controls :disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* Glyphs are masked from vector shapes so the corners stay round at any size. */
.live-tool-play { flex: 0 0 auto; width: 13px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5.5 2.5 16.5 19'%3E%3Cpath d='M9 5.5 19 12 9 18.5Z' fill='%23000' stroke='%23000' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5.5 2.5 16.5 19'%3E%3Cpath d='M9 5.5 19 12 9 18.5Z' fill='%23000' stroke='%23000' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.live-tool-card[data-state="listening"] .live-tool-play { width: 11px; height: 11px; -webkit-mask: none; mask: none; clip-path: inset(0 round 2.5px); }
.live-tool-card[data-state="connecting"] .live-tool-play { -webkit-mask: none; mask: none; clip-path: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; background: transparent; animation: live-tool-spin 1s linear infinite; }
@keyframes live-tool-word-in { from { opacity: .25; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
@keyframes live-tool-spin { to { transform: rotate(360deg); } }
/* The translucent dock overlays the stage in every state. */
.live-tool-card[data-state="listening"] .live-tool-stage { padding-bottom: 16px; }
.live-tool-card[data-state="listening"] .live-tool-controls { opacity: 0; pointer-events: none; }
.live-tool-card[data-state="listening"] .live-tool-controls:has(:focus-visible),
.live-tool-card[data-state="listening"][data-controls-open="true"] .live-tool-controls { opacity: 1; pointer-events: auto; }
.live-tool-card[data-state="listening"] .live-tool-lines { padding-bottom: 100px; }
.live-tool-card[data-state="listening"] .live-tool-message { display: none; }
@media (max-width: 960px) {
  .live-tool-controls { gap: 12px; padding: 12px; }
  .live-tool-controls .btn { max-width: none; padding: 0 18px; }
  .live-tool-language-pair { gap: 8px; }
  .live-tool-field { gap: 0; }
}
@media (max-width: 760px) {
  /* Phone dock stacks: countdown above, language pair and transport button on one row. */
  .live-tool-dock { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 72px 1fr; gap: 12px; transition: grid-template-rows .36s ease-in-out, gap .36s ease-in-out; }
  .live-tool-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; }
  /* Field captions stack so the selects keep usable width beside the transport button. */
  .live-tool-language-pair { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 3px; padding-bottom: 0; border-bottom: 0; }
  .live-tool-field { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .live-tool-field label { padding-left: 2px; line-height: 1.3; }
  /* Small type keeps the longest language names readable beside the transport button. */
  .live-tool-field select { height: 34px; padding: 0 2px; font-size: 12px; }
  .live-tool-swap { width: 24px; height: 24px; }
  .live-tool-swap svg { width: 13px; height: 13px; }
  .live-tool-controls .btn { min-height: 52px; padding: 0 12px; gap: 6px; justify-self: end; }
  .live-tool-clock { right: auto; bottom: auto; order: -1; justify-self: end; width: 72px; height: 72px; }
  .live-tool-timer { font-size: 17px; }
  /* The dock floats over the captions, so the transcript keeps the full card height. */
  .live-tool-stage { padding: 16px; }
  .live-tool-topline { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 24px 0; }
  .live-tool-window-title, .live-tool-status { display: none; }
  .live-tool-speaker-language { text-align: left; }
  .live-tool-card[data-state="listening"] .live-tool-lines { padding-bottom: 20px; }
  /* Clearance is added by script only once the captions overflow, so short lines stay centred. */
  .live-tool-card[data-state="listening"] .live-tool-lines.is-overflowing { padding-bottom: 116px; }
  .live-tool-message { position: absolute; left: 16px; right: 16px; bottom: 190px; margin: 0; }
  .live-tool-voice-meter { bottom: 104px; left: 24px; transform: none; width: calc(100% - 48px); }
  /* Collapse the hidden control row so the countdown sinks to the dock's bottom edge. */
  .live-tool-controls { overflow: hidden; min-height: 0; transition: opacity .36s ease-in-out, padding .36s ease-in-out, border-width .36s ease-in-out; }
  .live-tool-card[data-state="listening"]:not([data-controls-open="true"]):not(:has(.live-tool-controls :focus-visible)) .live-tool-dock { grid-template-rows: 72px 0fr; gap: 0; }
  /* Padding and border cannot shrink below their own size, so clear them to finish the collapse. */
  .live-tool-card[data-state="listening"]:not([data-controls-open="true"]):not(:has(.live-tool-controls :focus-visible)) .live-tool-controls { border-width: 0; padding-block: 0; }
}
@media (hover: none), (pointer: coarse) {
  .live-tool-card[data-state="listening"] .live-tool-controls-toggle { position: absolute; left: 12px; bottom: 20px; display: block; max-width: calc(100% - 88px); min-height: 44px; padding: 8px 16px; border: 1px solid #8eb7ff60; border-radius: 12px; color: #c9ddff; background: #19263d; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; cursor: pointer; }
  .live-tool-controls-toggle:hover { background: #233755; }
  .live-tool-controls-toggle:active { transform: translateY(1px); }
  .live-tool-controls-toggle:focus-visible { outline: 2px solid var(--player-blue); outline-offset: 4px; }
  .live-tool-card[data-controls-open="true"] .live-tool-controls-toggle,
  .live-tool-dock:has(.live-tool-controls :focus-visible) .live-tool-controls-toggle { bottom: calc(100% + 8px); }
}
@media (max-width: 600px) {
  .live-tool-page { padding: 100px 16px 64px; }
  .live-tool-copy h1 { font-size: 36px; }
  .live-tool-badges { gap: 12px 16px; margin-top: -8px; }
  .live-tool-lede { font-size: 14px; }
  .live-tool-hero { gap: 24px; }
  .live-tool-card { height: clamp(520px, calc(100dvh - 300px), 760px); scroll-margin-top: 108px; border-radius: 20px; }
  .live-tool-lines { padding-inline: 0; }
  .live-tool-line.original { font-size: 13px; }
  .live-tool-line.translated { font-size: 28px; }
  .live-tool-line-tag { margin-inline-end: 8px; }
  .live-tool-voice-meter { height: 40px; gap: 3px; }
  .live-tool-dock { left: 12px; right: 12px; bottom: 12px; }
  .live-tool-controls .btn { font-size: 13px; }
  .live-tool-cta { align-items: flex-start; flex-direction: column; }
  .live-tool-cta-actions { width: 100%; flex-direction: column; }
  .live-tool-cta-actions .btn { justify-content: center; }
}
/* A 56px vertical rhythm per section, matching the site's section spacing. */
.live-tool-content { max-width: 980px; margin: 56px auto 0; }
/* Sections are separated by the kicker + heading, matching the homepage and the
   language-pair pages, which carry no rule between content sections. */
.live-tool-content section { padding: 56px 0; }
.live-tool-content h2 { margin: 0 0 16px; font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: -.035em; color: var(--text); }
.live-tool-content p, .live-tool-content li { color: var(--text-dim); font-size: 16px; line-height: 1.75; }
.live-tool-content .section-head { max-width: 680px; }
/* A head that is the whole section should not inherit the global 64px head-to-body gap. */
.live-tool-content > section > .section-head:last-child { margin-bottom: 0; }
.live-tool-content .section-head h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 48px); }
.live-tool-content .section-head .section-sub { max-width: 620px; margin-bottom: 0; }
.live-tool-content .steps { margin: 32px 0 0; padding: 0; }
.live-tool-content .step { padding: 26px; }
.live-tool-content .step:hover { transform: translateY(-3px); }
.live-tool-content .step-num { margin-bottom: 30px; }
.live-tool-content .step p, .live-tool-content .card p { margin: 0; }
.live-tool-direction[hidden] { display: none; }
.live-tool-direction-intro { display: grid; gap: 16px; max-width: 760px; margin-top: 22px; }
.live-tool-direction-intro p { margin: 0; }
.live-tool-direction-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 24px; margin-top: 36px; }
.live-tool-direction-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
.live-tool-direction-panel h3 { margin: 0 0 12px; color: var(--text); font-family: var(--font-display); font-size: 22px; letter-spacing: -.025em; }
.live-tool-direction-panel > p { margin: 0 0 20px; }
.live-tool-phrases { width: 100%; border-collapse: collapse; }
.live-tool-phrases th { padding: 0 0 10px; color: var(--text-faint); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.live-tool-phrases th + th, .live-tool-phrases td + td { padding-left: 20px; }
.live-tool-phrases td { width: 50%; padding-top: 14px; padding-bottom: 14px; color: var(--text); font-size: 15px; line-height: 1.55; vertical-align: top; border-top: 1px solid var(--line); }
.live-tool-direction-tips { margin: 0; padding-left: 20px; }
.live-tool-direction-tips li + li { margin-top: 12px; }
.live-tool-use-case-grid { margin-top: 32px; }
.live-tool-use-case { min-height: 180px; padding: 28px; }
.live-tool-use-case-number { display: inline-block; margin-bottom: 28px; color: var(--accent); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; }
.live-tool-use-case h3 { margin-bottom: 10px; }
.live-tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: 18px; background: var(--accent-dim); border: 1px solid var(--accent-line); }
.live-tool-cta p { margin: 0; color: var(--text); font-size: 16px; }
.live-tool-cta-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.live-tool-cta .btn { flex: 0 0 auto; }
/* Same .related link list the language-pair pages carry, scoped to this
   page's content column the way those pages scope it to .page-content. */
.live-tool-content .related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.live-tool-content .related-label { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; color: var(--text); margin: 0 0 16px; }
.live-tool-content .related [hidden] { display: none; }
.live-tool-related-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.live-tool-related-groups details { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.live-tool-related-groups summary { color: var(--text); cursor: pointer; font-weight: 600; }
.live-tool-related-groups summary:hover { color: var(--accent); }
.live-tool-related-groups summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.live-tool-content .related ul { list-style: none; padding-left: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.live-tool-content .related .live-tool-related-groups ul { margin-top: 18px; grid-template-columns: 1fr; }
.live-tool-content .related .live-tool-related-groups details:not([open]) ul { display: none; }
.live-tool-content .related li { margin: 0; }
.live-tool-content .related a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: linear-gradient(180deg, #ffffff, #fafbfe); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.live-tool-content .related a::after { content: "\2192"; margin-left: auto; font-family: var(--font-mono); color: var(--text-faint); }
.live-tool-content .related a:hover { border-color: var(--accent-line); }
.live-tool-modal[hidden] { display: none; }
.live-tool-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(12, 18, 32, .38); backdrop-filter: blur(8px); }
.live-tool-modal-card { position: relative; width: min(100%, 440px); padding: 34px; border: 1px solid var(--line-strong); border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(12, 18, 32, .24); }
.live-tool-modal-kicker { margin: 0 0 12px; color: var(--accent); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.live-tool-modal h2 { margin: 0 0 12px; color: var(--text); font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.live-tool-modal p:not(.live-tool-modal-kicker) { margin: 0 0 24px; color: var(--text-dim); font-size: 15px; line-height: 1.65; }
.live-tool-modal-actions { display: flex; align-items: center; gap: 12px; }
.live-tool-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; color: var(--text-faint); background: transparent; border: 1px solid transparent; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
.live-tool-modal-close:hover, .live-tool-modal-close:focus-visible { color: var(--text); background: var(--panel-strong); border-color: var(--line); outline: none; }
@media (max-width: 600px) { .live-tool-modal-card { padding: 28px 24px; } .live-tool-modal-actions { align-items: stretch; flex-direction: column; } }
@media (max-width: 760px) { .live-tool-content .steps, .live-tool-use-case-grid, .live-tool-content .related ul, .live-tool-related-groups, .live-tool-direction-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .live-tool-direction-panel { padding: 22px 18px; } .live-tool-phrases, .live-tool-phrases tbody, .live-tool-phrases tr, .live-tool-phrases td { display: block; width: 100%; } .live-tool-phrases thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .live-tool-phrases td { padding: 10px 0; } .live-tool-phrases td + td { padding: 0 0 14px; color: var(--accent); border-top: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

@media (prefers-reduced-transparency: reduce) {
  .live-tool-controls { background: #111a2b; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .live-tool-controls .btn { background: #2a63f0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .live-tool-controls .btn::before { display: none; }
}
