/* Bekito 聞き書き — styles for this service only.
 * Everything else comes from the Bekito UI kit (/ui/css/bekito-ui.css, version 8).
 * Rules: kit tokens only (var(--bk-…)); no new colours or fonts; no raw z-index numbers;
 * no fixed-height scrolling boxes (the kit's panes decide when a pane may scroll by itself). */

/* Japanese line breaking.
   Headings, labels, buttons and short lines break between phrases (the kit sets auto-phrase for a Japanese page;
   Japanese inside the English interface gets the same here).
   Running text that goes over two lines (transcripts, quotes, long questions) uses ordinary Japanese line
   breaking instead, so lines run to the full width instead of ending ragged at 60–80 %. */
[lang="ja"] { word-break: auto-phrase; line-break: strict; }
.kk-prose, .kk-prose[lang="ja"], [lang="ja"] .kk-prose { word-break: normal; line-break: strict; overflow-wrap: break-word; text-wrap: pretty; } /* pretty: the last line is never one character */


/* fields in a search bar keep the full touch height on phones (the kit raises buttons, not these) */
@media (pointer: coarse) { .bk-toolbar .bk-input, .bk-toolbar .bk-select { min-height: 44px; } }

/* the count on the 確かめる tab sits at the corner of its icon, so it never pushes the label */
.bk-tabbar__item { position: relative; }
.bk-tabbar__item > .bk-badge { position: absolute; top: 5px; left: calc(50% + 7px); height: 18px; min-width: 18px; padding: 0 5px; justify-content: center; }
.bk-topbar__link > .bk-badge { margin-left: 6px; height: 20px; padding: 0 7px; }

/* the product name in the header is a link home; it keeps the header's ink, not the link colour */
.bk-brand__product, .bk-brand__product:hover { color: var(--bk-fg); text-decoration: none; }

.kk-skip:focus { position: fixed; left: 12px; top: 12px; z-index: var(--bk-z-toast); width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; border-radius: var(--bk-r-pill); background: var(--bk-surface); color: var(--bk-fg); box-shadow: var(--bk-shadow-2); }

/* ───────── landing: hero ───────── */
.kk-hero { align-items: center; }
/* each headline line stays on one line: the size follows the width of the text column */
.kk-hero__text { container-type: inline-size; }
@supports (font-size: 1cqi) {
  .kk-hero h1 { font-size: min(var(--bk-text-3xl), 8.6cqi); }
  html[lang="en"] .kk-hero h1 { font-size: min(var(--bk-text-3xl), 7.5cqi); }
  .kk-hero h1 > span, .kk-hero h1 > em { white-space: nowrap; }
}
.kk-hero .bk-btn--lg { min-height: 58px; padding-inline: 32px; }
.kk-hero form { margin: 0; }

.kk-art { margin: 0; width: 100%; max-width: 640px; justify-self: center; }
@media (min-width: 900px) { .kk-hero.bk-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.kk-art svg { width: 100%; height: auto; overflow: visible; }
.kk-art__labels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px; font-size: var(--bk-text-md); font-weight: 700; letter-spacing: .08em; color: var(--bk-hero-fg); text-align: center; }
.kk-art__labels > span { position: relative; padding-bottom: 8px; }
.kk-art__labels > span::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 3px; margin-left: -14px; border-radius: 2px; background: var(--bk-hero-accent); opacity: 0; }
.kk-art [data-a] { transform-box: fill-box; transform-origin: center; }
.kk-art [data-a="line"], .kk-art [data-a="bar"] { transform-origin: left center; }

/* The drawing as written IS the whole story (that is the first frame, the reduced-motion frame and the social image):
   veteran with a phone → his words on a card → the stamp → a colleague asks → the clip plays.
   With motion allowed, an 8-second loop walks through it; every animation starts and ends on that same picture,
   so the loop never cuts to an empty frame. Only transform and opacity are animated. */
@media (prefers-reduced-motion: no-preference) {
  .kk-art [data-a], .kk-art__labels > span::after { animation-duration: 8s; animation-timing-function: var(--bk-ease); animation-iteration-count: infinite; animation-fill-mode: both; }
  .kk-art.is-paused [data-a], .kk-art.is-paused .kk-art__labels > span::after { animation-play-state: paused; }
  .kk-art [data-a="talk"] { animation-name: kk-talk; animation-timing-function: ease-in-out; }
  .kk-art [data-a="talk"]:nth-child(2) { animation-delay: -.15s; } .kk-art [data-a="talk"]:nth-child(3) { animation-delay: -.3s; } .kk-art [data-a="talk"]:nth-child(4) { animation-delay: -.45s; }
  .kk-art [data-a="go1"] { animation-name: kk-go1; }
  .kk-art [data-a="line"] { animation-name: kk-line1; }
  .kk-art [data-a="line"][data-n="2"] { animation-name: kk-line2; }
  .kk-art [data-a="line"][data-n="3"] { animation-name: kk-line3; }
  .kk-art [data-a="line"][data-n="4"] { animation-name: kk-line4; }
  .kk-art [data-a="stamp"] { animation-name: kk-stamp; }
  .kk-art [data-a="go2"] { animation-name: kk-go2; }
  .kk-art [data-a="ask"] { animation-name: kk-ask; }
  .kk-art [data-a="bar"] { animation-name: kk-bar; }
  .kk-art [data-a="heard"] { animation-name: kk-heard; animation-timing-function: ease-in-out; }
  .kk-art [data-a="heard"]:nth-child(2) { animation-delay: -.15s; } .kk-art [data-a="heard"]:nth-child(3) { animation-delay: -.3s; } .kk-art [data-a="heard"]:nth-child(4) { animation-delay: -.45s; }
  .kk-art [data-a="ear"] { animation-name: kk-ear; }
  .kk-art__labels > span:nth-child(1)::after { animation-name: kk-tag1; }
  .kk-art__labels > span:nth-child(2)::after { animation-name: kk-tag2; }
  .kk-art__labels > span:nth-child(3)::after { animation-name: kk-tag3; }
}
/* 話す 0–24 % · 確かめる 26–56 % · 聞く 58–96 % */
@keyframes kk-talk { 0% { transform: scaleY(.6); } 3% { transform: scaleY(1); } 6% { transform: scaleY(.45); } 9% { transform: scaleY(.95); } 12% { transform: scaleY(.5); } 15% { transform: scaleY(1); } 18% { transform: scaleY(.5); } 21% { transform: scaleY(.9); } 25%, 100% { transform: scaleY(.6); } }
@keyframes kk-go1 { 0%, 20% { opacity: .55; transform: none; } 25% { opacity: 1; transform: translateX(5px); } 32%, 100% { opacity: .55; transform: none; } }
@keyframes kk-line1 { 0%, 26% { opacity: 1; transform: scaleX(1); } 27.5% { opacity: 0; transform: scaleX(1); } 27.6% { opacity: 0; transform: scaleX(0); } 28% { opacity: 1; transform: scaleX(0); } 33%, 100% { opacity: 1; transform: scaleX(1); } }
@keyframes kk-line2 { 0%, 26% { opacity: 1; transform: scaleX(1); } 27.5% { opacity: 0; transform: scaleX(1); } 27.6% { opacity: 0; transform: scaleX(0); } 30% { opacity: 1; transform: scaleX(0); } 36%, 100% { opacity: 1; transform: scaleX(1); } }
@keyframes kk-line3 { 0%, 26% { opacity: 1; transform: scaleX(1); } 27.5% { opacity: 0; transform: scaleX(1); } 27.6% { opacity: 0; transform: scaleX(0); } 33% { opacity: 1; transform: scaleX(0); } 39%, 100% { opacity: 1; transform: scaleX(1); } }
@keyframes kk-line4 { 0%, 26% { opacity: 1; transform: scaleX(1); } 27.5% { opacity: 0; transform: scaleX(1); } 27.6% { opacity: 0; transform: scaleX(0); } 36% { opacity: 1; transform: scaleX(0); } 42%, 100% { opacity: 1; transform: scaleX(1); } }
@keyframes kk-stamp { 0%, 44% { opacity: 1; transform: scale(1); } 46% { opacity: 0; transform: scale(1); } 46.1% { opacity: 0; transform: scale(2); } 50% { opacity: 1; transform: scale(.9); } 53%, 100% { opacity: 1; transform: scale(1); } }
@keyframes kk-go2 { 0%, 54% { opacity: .55; transform: none; } 59% { opacity: 1; transform: translateX(5px); } 66%, 100% { opacity: .55; transform: none; } }
@keyframes kk-ask { 0%, 57% { opacity: 1; transform: none; } 59% { opacity: 0; transform: scale(.85); } 63% { opacity: 1; transform: scale(1.05); } 66%, 100% { opacity: 1; transform: none; } }
@keyframes kk-bar { 0%, 66% { opacity: 1; transform: scaleX(1); } 67.5% { opacity: 0; transform: scaleX(1); } 67.6% { opacity: 0; transform: scaleX(0); } 68.5% { opacity: 1; transform: scaleX(0); } 94%, 100% { opacity: 1; transform: scaleX(1); } }
@keyframes kk-heard { 0%, 68% { transform: scaleY(.6); } 71% { transform: scaleY(1); } 74% { transform: scaleY(.45); } 77% { transform: scaleY(.95); } 80% { transform: scaleY(.5); } 83% { transform: scaleY(1); } 86% { transform: scaleY(.5); } 89% { transform: scaleY(.9); } 93%, 100% { transform: scaleY(.6); } }
@keyframes kk-ear { 0%, 68% { opacity: 1; } 72% { opacity: .3; } 76% { opacity: 1; } 80% { opacity: .3; } 84% { opacity: 1; } 88% { opacity: .3; } 92%, 100% { opacity: 1; } }
@keyframes kk-tag1 { 0%, 22% { opacity: 1; } 26%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes kk-tag2 { 0%, 24% { opacity: 0; } 28%, 54% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes kk-tag3 { 0%, 56% { opacity: 0; } 60%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }

/* ───────── landing: step pictures (same line style, on a card) ───────── */
.kk-pic { width: 100%; max-width: 168px; height: auto; color: var(--bk-fg); margin-bottom: 6px; }
.kk-pic * { vector-effect: non-scaling-stroke; }
.kk-pic .kk-ink { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kk-pic .kk-hot { fill: none; stroke: var(--bk-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.kk-pic .kk-ok { fill: none; stroke: var(--bk-ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.kk-pic .kk-paper { fill: var(--bk-surface-2); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.kk-pic .kk-hot-fill { fill: var(--bk-accent); stroke: none; }
.bk-steps .bk-step p { font-size: var(--bk-text-md); }
/* phones: each step is a row, picture on the left, words on the right (instead of three tall cards) */
@media (max-width: 699.98px) {
  .bk-steps .bk-step { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; padding: 16px; }
  .bk-steps .bk-step::before { grid-column: 2; grid-row: 1; }
  .bk-steps .bk-step > .kk-pic { grid-column: 1; grid-row: 1 / span 3; width: 76px; margin: 2px 0 0; }
  .bk-steps .bk-step > h3 { grid-column: 2; grid-row: 2; }
  .bk-steps .bk-step > p { grid-column: 2; grid-row: 3; }
}

/* ───────── landing: the real thing (two sample questions, switched without JavaScript) ───────── */
.kk-sample { display: grid; gap: 14px; }
.kk-sample__panel { display: none; }
.kk-sample input:nth-of-type(1):checked ~ .kk-sample__panel:nth-of-type(1),
.kk-sample input:nth-of-type(2):checked ~ .kk-sample__panel:nth-of-type(2) { display: block; }
.kk-sample input:nth-of-type(1):checked ~ .bk-chips label:nth-of-type(1),
.kk-sample input:nth-of-type(2):checked ~ .bk-chips label:nth-of-type(2) { background: var(--bk-fg); color: var(--bk-bg); border-color: var(--bk-fg); }
.kk-sample input:nth-of-type(1):focus-visible ~ .bk-chips label:nth-of-type(1),
.kk-sample input:nth-of-type(2):focus-visible ~ .bk-chips label:nth-of-type(2) { outline: 3px solid var(--bk-focus); outline-offset: 2px; }
.kk-sample .bk-chip { cursor: pointer; min-height: 44px; }
.kk-sample__q { display: none; }
.kk-sample__panel > * { max-width: 720px; }
.kk-none { display: grid; gap: 8px; }
.kk-none h3 { font-size: var(--bk-text-xl); }

.kk-trust .bk-list__row { align-items: flex-start; }
.kk-trust .bk-list__row > span:last-child { padding-top: 2px; }
.kk-close form { margin: 0; }
.kk-family .bk-chip { min-height: 44px; }

/* ───────── knowledge card (landing sample, Check, Ask, Collected talk) ───────── */
.kk-card { display: grid; gap: 12px; position: relative; min-width: 0; }
.kk-card > * { min-width: 0; }
.kk-card .bk-quote { margin: 0; } /* the browser's own blockquote margins would indent it twice */
.kk-card__title { font-size: var(--bk-text-lg); line-height: 1.5; font-weight: 700; letter-spacing: 0; }
.bk-empty .bk-h3 { color: var(--bk-fg); }
/* a very long quote is cut after six lines; the button under it shows the rest */
.kk-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.kk-card__more { justify-self: start; min-height: 44px; font-size: var(--bk-text-sm); font-weight: 700; }
.kk-card cite .bk-truncate { display: inline-block; max-width: 100%; vertical-align: bottom; }
.kk-card cite .kk-unit { display: inline-block; max-width: 100%; } /* a part of the department moves whole; only a part wider than the line wraps inside */
.kk-card__extra { display: grid; gap: 8px; font-size: var(--bk-text-md); line-height: 1.7; }
.kk-card__extra li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.kk-card__extra .bk-badge { margin-top: 3px; }
.kk-card__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.kk-card__situation { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; font-size: var(--bk-text-sm); color: var(--bk-fg-2); }
.kk-card__ai { font-size: var(--bk-text-xs); color: var(--bk-fg-3); }
.kk-card__photo { border-radius: var(--bk-r-md); border: 1px solid var(--bk-line); max-height: 320px; }
.kk-decided { min-height: 56px; display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: var(--bk-text-lg); color: var(--bk-fg-2); }
.kk-decided--ok { color: var(--bk-ok); }
.kk-card__actions { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; }
.kk-card__actions--two { grid-template-columns: 1fr 1fr; }
.kk-card__actions .bk-btn { padding-inline: 10px; min-height: 48px; }
@media (max-width: 520px) {
  .kk-card__actions { grid-template-columns: 1fr 1fr; }
  .kk-card__actions > :first-child:nth-last-child(3) { grid-column: 1 / -1; }
}
.kk-audio { flex-wrap: nowrap; }
.kk-audio .bk-audio__btn { width: 44px; height: 44px; }
.kk-audio .bk-audio__bar { min-width: 64px; }
.kk-audio-plain { width: 100%; }
.kk-audio .bk-audio__time { flex: none; }
.kk-pagenote { max-width: 60em; }
.kk-card--wait { gap: 14px; }
.kk-card--wait .bk-skel { height: 16px; }
.kk-skel-short { width: 45%; }
.kk-skel-mid { width: 70%; }
.kk-card--wait .kk-skel-player { height: 44px; border-radius: var(--bk-r-pill); }
.kk-toast-action { color: inherit; font-weight: 700; min-height: 44px; padding: 0 4px; white-space: nowrap; }
/* while the undo toast shows, the page has room for it below the last row, so it never has to sit on a button */
body.kk-has-undo #view { padding-bottom: 88px; }

/* ───────── app frame ───────── */
.kk-view { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.kk-view > * { min-width: 0; }
.kk-view:focus { outline: none; }
.kk-title { font-size: var(--bk-text-2xl); line-height: 1.35; }
.kk-home__main, .kk-home__more { display: grid; gap: 12px; }
@media (min-width: 760px) { .kk-home__more { grid-template-columns: 1fr 1fr; } }
/* wide window: 話す / 確かめる / 聞く side by side as three tiles; the two lists in a row under them */
@media (min-width: 1100px) {
  .kk-home__main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .kk-menu__item--big { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon extra" "text text"; align-content: start; row-gap: 18px; min-height: 176px; padding: 22px; }
  .kk-menu__item--big > .bk-ico-tile { grid-area: icon; }
  .kk-menu__item--big > .kk-menu__text { grid-area: text; }
  .kk-menu__item--big > :last-child { grid-area: extra; justify-self: end; align-self: start; }
  .kk-menu__item--big b { font-size: var(--bk-text-xl); }
}
.kk-home__demo { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 1100px) { .kk-home__demo { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.kk-menu__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 76px; }
.kk-menu__item .bk-ico-tile { width: 52px; height: 52px; border-radius: 16px; }
.kk-menu__item .bk-ico-tile > svg { width: 26px; height: 26px; }
.kk-menu__item b { display: block; font-size: var(--bk-text-lg); line-height: 1.35; }
.kk-menu__item small { display: block; font-size: var(--bk-text-sm); color: var(--bk-fg-2); line-height: 1.5; }
.kk-skeleton { display: grid; gap: 12px; }
.kk-skeleton .bk-skel { height: 72px; border-radius: var(--bk-r-lg); }
.kk-skeleton .bk-skel:first-child { height: 34px; width: 60%; }
.kk-form { display: grid; gap: 16px; }
.kk-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.kk-actions { display: grid; gap: 10px; }
.kk-notes { display: grid; gap: 8px; }
.kk-count { font-size: var(--bk-text-sm); color: var(--bk-fg-3); white-space: nowrap; }

/* a list of things to pick (topics, questions): each row is one big button; long text wraps inside the row */
.kk-pick .bk-list__row { gap: 12px; font-size: var(--bk-text-md); line-height: 1.6; }
.kk-pick .bk-list__row > span:first-child { flex: 1 1 0; min-width: 0; }
.kk-pick--open .bk-list__row { border-left: 3px solid var(--bk-accent); }
.kk-rowlist .bk-list__row { justify-content: space-between; align-items: center; }
.kk-rowlist .bk-list__row > :first-child { flex: 1 1 0; min-width: 0; }
.kk-rowlist a { color: inherit; text-decoration: none; padding-block: 2px; }
.kk-rowlist .bk-link-btn { min-height: 44px; min-width: 44px; padding-inline: 8px; flex: none; white-space: nowrap; }
.kk-rowlist .bk-list__meta { display: block; }

/* ───────── talk: the session ─────────
   Wide window: the talk on the left, the recorder on the right (kit panes; they scroll by themselves only when the window is also tall).
   Narrow window: the talk flows in the page and the recorder is a bar fixed to the bottom, with its height reserved under the talk. */
:root { --kk-dock-h: 220px; } /* the recorder bar's real height, kept up to date by talk.js */
.kk-log { display: grid; gap: 12px; align-content: start; }
.kk-bubble { max-width: 92%; min-width: 0; padding: 12px 16px; border-radius: var(--bk-r-lg); line-height: 1.75; display: grid; gap: 4px; }
.kk-bubble > * { min-width: 0; }
.kk-bubble small { font-size: var(--bk-text-xs); font-weight: 700; color: var(--bk-fg-2); letter-spacing: .04em; }
.kk-bubble--ai { justify-self: start; background: var(--bk-surface-2); border: 1px solid var(--bk-line); border-bottom-left-radius: 6px; font-size: var(--bk-text-lg); font-weight: 700; }
.kk-bubble--me { justify-self: end; background: var(--bk-accent-soft); border-bottom-right-radius: 6px; }
.kk-bubble--skip { justify-self: end; color: var(--bk-fg-3); font-size: var(--bk-text-sm); padding: 2px 8px; }
.kk-bubble__tools { display: flex; flex-wrap: wrap; gap: 0 16px; }
.kk-bubble__tools .bk-link-btn { min-height: 44px; font-size: var(--bk-text-sm); font-weight: 700; white-space: nowrap; }
.kk-bubble .bk-textarea { min-height: 120px; }
.kk-bubble--wait { min-width: min(70%, 320px); gap: 10px; }
.kk-bubble--wait .bk-skel { height: 14px; }
.kk-thumb { max-width: 180px; max-height: 180px; border-radius: var(--bk-r-md); border: 1px solid var(--bk-line); }

.kk-rec { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "status status status" "skip mic end" "label label label" "meter meter meter" "hint hint hint"; align-items: center; justify-items: center; gap: 6px 12px; }
.kk-rec__status { grid-area: status; min-height: 24px; font-weight: 700; color: var(--bk-fg-2); text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.kk-rec__skip { grid-area: skip; justify-self: end; }
.kk-rec__end { grid-area: end; justify-self: start; }
.kk-mic { grid-area: mic; position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--bk-accent); color: var(--bk-accent-ink); display: grid; place-items: center; box-shadow: var(--bk-shadow-2); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; transition: transform var(--bk-fast) var(--bk-ease), background var(--bk-fast); }
.kk-mic svg { width: 36px; height: 36px; pointer-events: none; }
.kk-mic[data-state="rec"] { background: var(--bk-danger); color: var(--bk-surface); transform: scale(1.06); }
.kk-mic[data-state="busy"] { background: var(--bk-bg-sunken); color: var(--bk-fg-3); box-shadow: none; cursor: default; }
.kk-mic__ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--bk-danger); opacity: 0; pointer-events: none; }
.kk-mic[data-state="rec"] .kk-mic__ring { opacity: .5; animation: bk-pulse 1.4s ease-in-out infinite; }
.kk-mic__label { grid-area: label; font-weight: 700; font-size: var(--bk-text-md); white-space: nowrap; }
/* the sound level, live while recording: nine bars that grow with the voice */
.kk-meter { grid-area: meter; display: flex; align-items: center; justify-content: center; gap: 4px; height: 28px; }
.kk-meter > span { width: 6px; height: 100%; border-radius: 3px; background: var(--bk-line-strong); transform: scaleY(.12); transition: transform 70ms linear; }
.kk-rec.is-rec .kk-meter > span { background: var(--bk-danger); }
.kk-rec.is-done { display: block; }
.kk-rec__done { display: grid; gap: 8px; width: 100%; max-width: 420px; margin-inline: auto; text-align: center; }
.kk-rec__done-h { font-weight: 700; font-size: var(--bk-text-lg); }
/* the session's topic and count stay in view; a long topic shows two lines, a tap shows all of it */
.kk-session__head { align-items: flex-start; }
.kk-session__topic { white-space: normal; cursor: pointer; line-height: 1.5; min-width: 0; }
.kk-session__count { flex: none; margin-top: 1px; }
.kk-mic__hint { grid-area: hint; display: none; font-size: var(--bk-text-xs); color: var(--bk-fg-3); text-align: center; max-width: 30em; line-height: 1.5; }
.kk-mic__icon { display: grid; place-items: center; pointer-events: none; }
.kk-in-session .bk-tabbar { display: none; }
/* the app screens have no footer and, from 1100 px, no tab bar: 40 px under the content is enough (a short page then does not scroll for nothing) */
@media (min-width: 1100px) { .bk-has-tabbar .bk-main { padding-bottom: 40px; } }
.kk-in-session .bk-main { padding-block: 16px; } /* on a big window the two panes then fill the screen exactly, and the page itself does not scroll */
.kk-in-session.bk-has-tabbar { padding-bottom: 0; }

@media (max-width: 1099.98px), (max-height: 759.98px) {
  .kk-session.bk-panes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kk-in-session .bk-main > .bk-wrap { max-width: 720px; }
  .kk-session__log { background: none; border: 0; border-radius: 0; box-shadow: none; }
  /* one column: the page scrolls, so the topic and count stay pinned under the top bar (on a big window the pane's own body scrolls instead) */
  .kk-session__log > .bk-pane__head { position: sticky; top: calc(var(--bk-bar-h) + 1px + env(safe-area-inset-top, 0px)); z-index: var(--bk-z-sticky); padding-inline: 0; background: var(--bk-bg); border-radius: 0; }
  .kk-session__log > .bk-pane__body { padding: 14px 0 calc(var(--kk-dock-h) + 20px); }
  .kk-dock { position: fixed; inset: auto 0 0 0; z-index: var(--bk-z-bar); border-width: 1px 0 0; border-radius: var(--bk-r-lg) var(--bk-r-lg) 0 0; box-shadow: var(--bk-shadow-3); padding-bottom: env(safe-area-inset-bottom); }
  .kk-dock > .bk-pane__body { padding: 10px var(--bk-gutter) 12px; }
  .kk-in-session .bk-toasts { bottom: calc(var(--kk-dock-h) + 12px); }
}
@media (max-width: 1099.98px) and (min-height: 760px) {
  .kk-mic { width: 104px; height: 104px; }
  .kk-mic svg { width: 42px; height: 42px; }
  .kk-mic__hint { display: block; }
}
/* big window: the kit's filled panes fit the window exactly; the page puts 16 px above and below them */
.kk-in-session .kk-session { --bk-fill-gap: 32px; }
@media (min-width: 1100px) and (min-height: 760px) {
  .kk-dock { position: sticky; top: calc(var(--bk-bar-h) + 16px); }
  .kk-dock > .bk-pane__body { display: grid; align-content: center; flex: 1 1 auto; }
  .kk-rec { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "status status" "mic mic" "label label" "meter meter" "hint hint" "skip end"; gap: 10px 8px; }
  .kk-rec__skip, .kk-rec__end { justify-self: stretch; margin-top: 8px; }
  .kk-mic { width: 104px; height: 104px; }
  .kk-mic svg { width: 42px; height: 42px; }
  .kk-mic__hint { display: block; }
}
.kk-mic__hint[hidden] { display: none !important; }

/* ───────── ask ───────── */
.kk-ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; } /* minmax: the composer's own minimum (about 308 px) must not widen a 320 px screen */
.kk-ask .bk-composer > .bk-btn[data-state="rec"] { --_bg: var(--bk-danger); --_fg: var(--bk-surface); --_bd: transparent; color: var(--bk-surface); }
.kk-status { min-height: 24px; font-weight: 700; color: var(--bk-fg-2); display: flex; align-items: center; gap: 8px; }
.kk-asked b { display: block; font-size: var(--bk-text-lg); line-height: 1.5; color: var(--bk-fg); }
.kk-lead { display: grid; gap: 6px; justify-items: start; }
.kk-lead p { font-size: var(--bk-text-lg); line-height: 1.7; }
.kk-none { display: grid; gap: 8px; }

/* ───────── review: many cards, one open ───────── */
.kk-progress { display: grid; gap: 8px; max-width: 520px; }
.kk-progress__text { color: var(--bk-fg-2); }
.kk-progress__text strong { color: var(--bk-fg); font-size: var(--bk-text-lg); }
.kk-activenote { flex-wrap: wrap; align-items: center; }
.kk-activenote > p { flex: 1 1 18em; min-width: 0; }
.kk-activenote > .bk-btn { flex: none; min-height: 44px; }
.kk-rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main side chev"; align-items: center; gap: 4px 12px; text-align: left; }
.kk-rrow__main { grid-area: main; min-width: 0; display: grid; gap: 2px; }
.kk-rrow__side { grid-area: side; display: grid; justify-items: end; gap: 4px; }
.kk-rrow > .bk-chev { grid-area: chev; }
@media (max-width: 560px) {
  .kk-rrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main chev" "side chev"; }
  .kk-rrow__side { display: flex; align-items: center; gap: 10px; justify-content: flex-start; }
}
.kk-rrow.is-open { background: var(--bk-accent-soft); box-shadow: inset 3px 0 0 var(--bk-accent); }
.kk-rlist__open { padding: 12px; background: var(--bk-bg-sunken); border-top: 1px solid var(--bk-line); }
.kk-rlist__open > .bk-card { box-shadow: none; }
/* the row right above already shows the topic and the title */
.kk-rlist__open .kk-card > p:first-child, .kk-rlist__open .kk-card__title { display: none; }
.kk-review { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) {
  .kk-review { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .kk-review__detail { scroll-margin-top: calc(var(--bk-bar-h) + 12px); }
  .kk-review__detail.is-sticky { position: sticky; top: calc(var(--bk-bar-h) + 12px); }
}

/* ───────── long lists: search bar and count ───────── */
.bk-toolbar .bk-select { flex: 1 1 200px; min-width: 0; max-width: 100%; padding-block: 6px; }
.bk-toolbar .kk-count { margin-left: auto; }
.bk-stack > .bk-more, .kk-view > .bk-more { border-top: 0; padding: 4px 0 0; }

.kk-cardgrid { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.kk-cardgrid > p, .kk-cardgrid > .bk-empty { grid-column: 1 / -1; }

/* ───────── word list ───────── */
.kk-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; align-items: end; }
.kk-words > .bk-btn { grid-column: 1 / -1; justify-self: start; min-width: min(200px, 100%); min-height: 46px; }

/* ───────── social image (public/pages/og.html, development only) ───────── */
.kk-og { margin: 0; width: 1200px; height: 630px; overflow: hidden; }
.kk-og__frame { width: 1200px; height: 630px; padding: 56px 64px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; }
.kk-og__frame::after { display: none; } /* a flat field keeps the PNG small */
.kk-og__brand { display: flex; align-items: center; gap: 14px; color: var(--bk-hero-fg); }
.kk-og__brand .bk-brand { color: var(--bk-hero-fg); }
.kk-og__brand .bk-brand__mark { width: 52px; height: 52px; }
.kk-og__brand .bk-brand__mark .logo-be { stroke: var(--bk-hero-accent); }
.kk-og__brand .bk-brand__name { height: 28px; display: block; }
.kk-og__brand .bk-brand__product { font-size: 30px; color: var(--bk-hero-fg); border-left-color: var(--bk-hero-fg); padding-left: 18px; margin-left: 6px; }
.kk-og__body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.kk-og__text .bk-h1 { font-size: 50px; line-height: 1.3; color: var(--bk-hero-fg); white-space: nowrap; }
html[lang="en"] .kk-og__text .bk-h1 { font-size: 46px; line-height: 1.16; }
.kk-og__text .bk-h1 em { font-style: normal; color: var(--bk-hero-accent); }
.kk-og__lead { margin-top: 22px; font-size: 24px; line-height: 1.7; color: var(--bk-hero-fg); opacity: .85; }
html[lang="en"] .kk-og__lead { line-height: 1.45; }
.kk-og__art { max-width: none; }
.kk-og__art [data-a], .kk-og__art .kk-wave path { animation: none !important; }
.kk-og__art .kk-art__labels { font-size: 22px; margin-top: 10px; }
.kk-og__art .kk-art__labels > span::after { animation: none; opacity: 0; } /* a still picture marks no step */
.kk-og__url { font-family: var(--bk-font-latin); font-size: 22px; font-weight: 600; letter-spacing: .04em; color: var(--bk-hero-accent); }
