/* ---- Practice class (Speaking drill demo) on the home and company pages ---- */

.dd-h3 { margin: 0 0 12px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.dd-h3--out { margin: 8px 4px 16px; font-size: 22px; }

.dd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease; }
.dd-btn:hover { background: #f2f2f2; }
.dd-btn--accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.dd-btn--accent:hover { background: var(--accent-hover); }
.dd-btn--dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.dd-btn--dark:hover { background: #333; }
.dd-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.dd-btn svg { width: 20px; height: 20px; }

/* sections */
.dd-section { padding: clamp(40px, 6vw, 80px) 0; }
.dd-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; }

/* the demo window */
.dd-demo { --dr-grammar: #e5484d; padding: clamp(16px, 2.6vw, 32px); border: 10px solid #fff; border-width: 10px 20px 20px; border-radius: 36px; background: #f2f2f2; }
.dd-body { margin-top: clamp(16px, 2vw, 24px); }

/* shared inside the demo */
.dd-head { display: grid; justify-items: start; gap: 10px; margin: 0 4px 20px; }
.dd-title { margin: 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
.dd-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dd-card { padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: #fff; }
.dd-card + .dd-card, .dd-card + .dd-practise, .dd-kpis + .dd-card { margin-top: 16px; }
.dd-head .dd-title { max-width: 22em; }
.dd-sublead { margin: -4px 0 12px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.dd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: #3f55c4; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.dd-chip--dark { background: var(--ink); color: #fff; }

/* the path of the lesson */
.dd-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dd-rail li { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.55); color: var(--ink-soft); }
.dd-rail li + li::before { content: ""; position: absolute; left: -8px; top: 50%; width: 8px; height: 2px; background: #dcdcdc; }
.dd-rail li.is-done + li::before, .dd-rail li.is-done + li.is-now::before { background: var(--sage-d); }
.dd-rail__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e6e6e6; color: var(--ink-soft); font-size: 14px; font-weight: 800; }
.dd-rail__t { display: grid; min-width: 0; }
.dd-rail__t b { font-size: 15px; font-weight: 800; line-height: 1.2; color: inherit; }
.dd-rail__t small { overflow: hidden; font-size: 13px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.dd-rail li.is-now { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06); }
.dd-rail li.is-now .dd-rail__n { background: var(--accent); color: #fff; }
.dd-rail li.is-now small { color: var(--ink-soft); }
.dd-rail li.is-done { background: rgba(255, 255, 255, 0.8); }
.dd-rail li.is-done .dd-rail__n { background: var(--sage-d); color: #fff; }

/* before the lesson: 1. the situation and its scenario, 2. a header on the lesson window. Three white bars of one
   width and height, numbers on one line (selected = blue, the current lesson step = dark) */
.dd-pick { display: grid; gap: 10px; margin: 0 0 10px; }
.dd-step, .dd-folder { display: flex; align-items: center; gap: 10px 16px; min-height: 72px; margin: 0; padding: 12px 24px; border-radius: 24px; background: #fff; }
.dd-folder .dd-step__l { width: auto; }
/* the lesson window and its step-3 header are one white block; the conversation card inside carries the blue outline */
.dd-win { border-radius: 36px; background: #fff; box-shadow: 0 30px 50px -20px rgba(26, 26, 26, 0.14); }
.dd-call { box-shadow: inset 0 0 0 1.5px var(--accent), 0 12px 30px rgba(102, 135, 255, 0.16); }
.dd-folder { border-radius: 36px 36px 0 0; padding-bottom: 2px; }
.dd-folder:empty { display: none; }
.dd-pick .dd-tab:not(.is-on) { background: var(--bg); box-shadow: none; }
.dd-step__l { display: inline-flex; flex: none; align-items: center; gap: 8px; width: 180px; font-size: 15px; font-weight: 800; color: var(--ink); }
.dd-step__l i { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-style: normal; font-weight: 800; }
.dd-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.dd-roles .dd-tabs { margin: 0; }
.dd-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid transparent; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(26, 26, 26, 0.05); color: var(--ink-soft); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.dd-tab:hover:not([disabled]):not(.is-on) { border-color: var(--accent-soft); color: var(--ink); }
.dd-tab.is-on, .dd-pick .dd-tab.is-on { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.dd-tab.is-on svg { color: var(--accent); }
.dd-tab[disabled] { cursor: default; }
.dd-tab[disabled]:not(.is-on) { opacity: 0.45; }
.dd-tab svg { flex: none; }

/* conversation + brief */
.dd-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.dd-stage .dd-call { position: sticky; top: 84px; }
.dd-call { display: flex; flex-direction: column; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: #fff; }
.dd-call__who { display: flex; align-items: center; gap: 12px; }
.dd-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; font-weight: 800; }
.dd-call__name { display: grid; min-width: 0; }
.dd-call__name b { font-size: 16px; font-weight: 800; }
.dd-call__name small { font-size: 14px; color: var(--ink-soft); }
.dd-listen { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.dd-listen:hover { border-color: var(--accent); color: var(--accent); }
.dd-call__q { position: relative; margin: 16px 0 0; padding: 18px 22px; border-radius: 6px 22px 22px 22px; background: #f2f4ff; font-size: clamp(17px, 1.5vw, 19px); font-weight: 700; line-height: 1.45; }
.dd-call__mic { flex: 1; justify-content: center; padding: clamp(20px, 3vw, 32px) 0 4px; }
.dd-err { max-width: 26em; color: #b04a2f; }
.dd-level { display: flex; gap: 4px; height: 30px; align-items: center; margin: 2px 0 8px; }
.dd-level i { width: 5px; height: 8px; border-radius: 3px; background: #e2e2e5; transition: height 0.1s ease, background-color 0.1s ease; }
.dd-level i.is-on { height: 26px; background: var(--accent); }
.dd-call .dcard__steps { margin: 6px auto 4px; }
.dd-prepbar { width: min(320px, 100%); margin: 10px auto 6px; background: #f2f2f2; }
.dd-call__mic .dcard__actions { margin-top: 6px; }

.dd-brief { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 2.6vw, 28px); border-radius: 28px; background: #fff; }
.dd-brief__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-scn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: linear-gradient(90deg, #eef1ff, #f5f0ff); color: #3f55c4; font-size: 13px; font-weight: 700; }
.dd-scn svg { box-sizing: content-box; padding: 5px; border-radius: 50%; background: var(--accent); color: #fff; }
.dd-scn b { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.dd-brief__title { margin: 16px 0 10px; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.dd-brief__scene { margin: 0 0 20px; font-size: 17px; line-height: 1.55; }
.dd-task { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; width: 100%; margin-bottom: 18px; padding: 14px 16px; border-radius: 18px; background: #edf6f0; font-size: 16px; font-weight: 700; line-height: 1.45; }
.dd-task__i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #2e7d57; }
.dd-task b { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #2e7d57; }
.dd-brief .dd-label { margin-top: 4px; }

/* lesson */
.dd-pron { margin-top: 16px; }
.dd-pron .dd-label { margin-bottom: 6px; color: var(--accent); }
.dd-pron__wait { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; font-size: 15px; color: var(--ink-soft); }
.dd-pron__wait .dcard__spinner { width: 22px; height: 22px; border-width: 3px; border-color: #e6e9f5; border-top-color: var(--accent); }
.dd-prnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 4px 0 14px; }
.dd-prdots { display: flex; align-items: center; gap: 8px; }
.dd-prdots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #e2e2e5; cursor: pointer; }
.dd-prdots button.is-clear { background: var(--sage-d); }
.dd-prdots button.is-now { width: 28px; border-radius: 999px; background: var(--accent); }
.dd-prdots button.is-now.is-clear { background: var(--sage-d); }
.dd-prdots span { margin-left: 6px; font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.dd-pron__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 14px; color: var(--ink-soft); }
.dd-pbtn--mic { min-width: 150px; justify-content: center; padding: 12px 20px; font-size: 15px; }
.dd-pr { position: relative; box-sizing: border-box; width: 100%; min-width: 0; display: grid; justify-items: center; gap: 10px; max-width: 480px; margin: 0 auto; padding: 16px clamp(16px, 3vw, 26px) 20px; border-radius: 24px; text-align: center; color: #fff;
  border: 2px solid transparent; background: var(--card); box-shadow: 0 18px 44px rgba(26, 26, 26, 0.18); }
.dd-pr.is-clear { border-color: var(--sage); }
.dd-pr__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.dd-pr__kind { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.dd-ring { --p: 0; --c: rgba(255, 255, 255, 0.3); position: relative; display: grid; place-items: center; align-content: center; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0); }
.dd-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.dd-ring b, .dd-ring small { position: relative; }
.dd-ring b { font-size: 17px; font-weight: 700; line-height: 1; }
.dd-ring small { margin-top: 2px; font-size: 8px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.dd-ring.is-good { --c: var(--sage); }
.dd-ring.is-mid { --c: var(--chip-cream); }
.dd-ring.is-bad { --c: var(--accent-pink); }
.dd-pr__play { display: flex; align-items: center; gap: 14px; }
.dd-round { flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.dd-round:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); }
.dd-round svg { width: 18px; height: 18px; }
.dd-round--sm { width: 42px; height: 42px; }
.dd-round--stop { width: 46px; height: 46px; border-color: var(--accent-pink); background: var(--accent-pink); color: var(--ink); }
.dd-round--stop:hover { border-color: #ffb08c; background: #ffb08c; }
.dd-wave { display: flex; align-items: center; gap: 4px; height: 26px; }
.dd-wave i { width: 3px; height: calc(var(--h) * 0.85); border-radius: 2px; background: rgba(255, 255, 255, 0.8); }
.dd-wave.is-on i { animation: dd-wave 0.9s ease-in-out infinite; }
.dd-wave.is-on i:nth-child(3n) { animation-delay: -0.3s; }
.dd-wave.is-on i:nth-child(3n + 1) { animation-delay: -0.6s; }
@keyframes dd-wave { 50% { transform: scaleY(0.35); } }
.dd-pr__text { margin: 4px 0 0; font-size: clamp(26px, 2.8vw, 32px); font-weight: 700; line-height: 1.2; }
.dd-pr__text.is-long { font-size: clamp(20px, 2.2vw, 24px); }
.dd-pr .pr-miss { color: var(--accent-pink); }
.dd-pr .pr-s { color: var(--chip-blue); }
.dd-pr .pr-f { text-decoration-color: var(--accent-pink); text-underline-offset: 6px; }
.dd-pr__ipa { margin: -4px 0 0; font-family: "Gentium Plus", "Doulos SIL", "Charis SIL", "Lucida Sans Unicode", "Arial Unicode MS", sans-serif; font-size: 16px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.55); }
.dd-pr__ipa .is-good { color: var(--sage); }
.dd-pr__ipa .is-mid { color: var(--chip-cream); }
.dd-pr__ipa .is-bad { color: var(--accent-pink); }
.dd-pr__tip { display: grid; gap: 4px; width: 100%; box-sizing: border-box; margin: 2px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); text-align: left; }
.dd-pr__tip span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chip-cream); }
.dd-pr__tip p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.dd-pr__act { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin-top: 2px; }
.dd-pr__act .dd-pbtn--mic { min-width: 140px; padding: 11px 20px; }
.dd-pr__act .dcard__spinner { width: 28px; height: 28px; border-width: 3px; border-color: rgba(255, 255, 255, 0.15); border-top-color: var(--accent); }
.dd-live { display: flex; align-items: center; gap: 4px; height: 36px; margin: 0; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.dd-live i { width: 3px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); transition: height 0.08s ease, background-color 0.08s ease; }
.dd-live i.is-on { height: 24px; background: var(--accent-pink); }
.dd-pr__msg { min-height: 1.4em; margin: 0; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.dd-pr__msg:empty { min-height: 0; }
.dd-pr__msg.is-good { color: var(--sage); }
.dd-pr__msg.is-bad { color: var(--accent-pink); }
.dd-prfoot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.dd-pbtn--dark { border-color: var(--ink); background: var(--ink); color: #fff; }
.dd-pbtn--dark:hover { background: #333; color: #fff; }
.dd-pron__legend b { margin-right: 4px; font-size: 16px; }
.pr-s { font-weight: 800; color: var(--accent); }
.pr-f { text-decoration: underline; text-decoration-color: #e5484d; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.dd-pbtn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.dd-pbtn:hover { border-color: var(--accent); color: var(--accent); }
.dd-pbtn svg { width: 16px; height: 16px; }
.dd-pbtn--mic { border-color: var(--accent); background: var(--accent); color: #fff; }
.dd-pbtn--mic:hover { background: var(--accent-hover); color: #fff; }
.dd-diag { margin-bottom: 16px; }
.dd-diag__stats { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; margin: 4px 0 18px; }
.dd-diag__stats > div { display: grid; align-content: center; gap: 4px; padding: 16px 20px; border-radius: 18px; background: #f2f2f2; }
.dd-diag__stats b { font-size: 32px; font-weight: 800; line-height: 1; }
.dd-diag__stats span { font-size: 14px; color: var(--ink-soft); }
.dd-diag__stats .dd-diag__weak { background: #fdf1ec; }
.dd-diag__weak span { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #b04a2f; }
.dd-diag__weak b { font-size: 22px; line-height: 1.2; }
.dd-track { display: flex; align-items: center; gap: 14px; }
.dd-track__segs { flex: 1; display: flex; gap: 6px; }
.dd-track__segs i { flex: 1; height: 10px; border-radius: 999px; background: #ececec; transition: background-color 0.3s ease; }
.dd-track__segs i.is-part { background: #c9d4ff; }
.dd-track__segs i.is-done { background: #2e7d57; }
.dd-track b { flex: none; font-size: 14px; font-weight: 800; }
.dd-topics { display: grid; gap: 12px; }
.dd-topic { border-radius: 24px; background: #fff; }
.dd-topic__head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px clamp(16px, 2.6vw, 28px); border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dd-topic__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f2f2f2; font-weight: 800; }
.dd-topic.is-open .dd-topic__n { background: var(--accent); color: #fff; }
.dd-topic.is-done .dd-topic__n { background: #2e7d57; color: #fff; }
.dd-topic__name { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dd-topic__name b { font-size: 18px; font-weight: 800; }
.dd-topic__name small { padding: 3px 10px; border-radius: 999px; background: #fdebe3; color: #b04a2f; font-size: 12px; font-weight: 800; }
.dd-topic__name em { padding: 3px 10px; border-radius: 999px; background: #b04a2f; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.dd-st { padding: 5px 12px; border-radius: 999px; background: #f2f2f2; color: var(--ink-soft); font-size: 13px; font-weight: 800; white-space: nowrap; }
.dd-st--part { background: #eef1ff; color: #3f55c4; }
.dd-st--done { background: #edf6f0; color: #2e7d57; }
.dd-topic__chev { flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); margin: -4px 4px 0; transition: transform 0.2s ease; }
.dd-topic.is-open .dd-topic__chev { transform: rotate(-135deg); margin-top: 4px; }
.dd-topic__body { padding: 0 clamp(16px, 2.6vw, 28px) clamp(18px, 2.6vw, 28px); }
.dd-topic .pm-card { padding: 0; border: 0; background: none; box-shadow: none; }
.dd-topic .pm-head { display: none; }
.dd-topic__next { display: flex; justify-content: flex-end; margin-top: 18px; }
.dd-topic__next[hidden] { display: none; }
.dd-topic__next p { margin: 0; font-size: 15px; font-weight: 700; color: #2e7d57; }
.dd-prog__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.dd-prog__stats div { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: #f2f2f2; }
.dd-prog__stats b { font-size: 26px; font-weight: 800; line-height: 1; }
.dd-prog__stats span { font-size: 14px; color: var(--ink-soft); }
.dd-two + .dd-prog { margin-top: 16px; }
.dd-diag .dd-label { margin-bottom: 6px; color: #b04a2f; }
.pm-extra { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pm-extra .pm-label { display: block; margin-bottom: 10px; }
.pm-extrabtn { width: 100%; padding: 14px 18px; border: 1.5px dashed var(--accent); border-radius: 16px; background: #f5f7ff; color: #3f55c4; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pm-extrabtn:hover:not([disabled]) { background: #eef1ff; }
.pm-extrabtn[disabled] { cursor: progress; opacity: 0.7; }
.pm-base { color: var(--ink-soft); font-style: italic; }
.dd-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.dd-flow span { padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; }
.dd-flow i { font-style: normal; color: #b5b5bb; font-weight: 800; }
.dd-frame .dd-label { margin-bottom: 6px; color: var(--accent); }
.dd-frame__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dd-frame__steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #f2f2f2; }
.dd-frame__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.dd-frame__steps b { font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.dd-frame__anchor { margin: 4px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.dd-frame__here { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.dd-frame__here span { font-weight: 800; color: var(--ink); }
.dd-frame__rule { margin: 16px 0 0; padding: 14px 18px; border-radius: 16px; background: #eef1ff; font-size: 15px; font-weight: 700; }
.dd-frame__use { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.dd-frame__use b { color: var(--ink); }
.dd-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dd-wcard { perspective: 1000px; }
.dd-wcard__in { position: relative; display: grid; height: 100%; min-height: 168px; border-radius: 18px; cursor: pointer; transition: transform 0.5s ease; transform-style: preserve-3d; }
.dd-wcard__in:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dd-wcard.is-flipped .dd-wcard__in { transform: rotateY(180deg); }
.dd-wcard__face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 18px; background: #f2f2f2; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.dd-wcard.is-used .dd-wcard__face { background: #edf6f0; }
.dd-wcard__back { transform: rotateY(180deg); background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent-soft); }
.dd-wcard.is-used .dd-wcard__back { background: #fff; }
.dd-wcard__hint { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.dd-wcard__mini { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.dd-wcard__front .dd-words__w { font-size: 22px; }
.dd-wcard__tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.dd-wcard__tag.is-own { background: var(--chip-cream); color: var(--ink); }
.dd-words__why { font-style: normal; color: var(--ink-soft); }
@media (max-width: 600px) { .dd-wcard__in { min-height: 132px; } }
.dd-wcard__back .dd-say { background: #f2f2f2; }
@media (prefers-reduced-motion: reduce) { .dd-wcard__in { transition: none; } }
.dd-words__w { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 19px; font-weight: 800; }
.dd-words__used { font-size: 12px; font-weight: 800; color: #2e7d57; }
.dd-say { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--accent); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.dd-say:hover { background: var(--accent-soft); }
.dd-say svg { width: 18px; height: 18px; }
.dd-say.is-on { background: var(--accent); color: #fff; }
.dd-say.is-loading { color: transparent; position: relative; }
.dd-say.is-loading::after { content: ""; position: absolute; inset: 9px; border: 2px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: drill-spin 0.9s linear infinite; }
.dd-words__m { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.dd-words__ex { font-size: 15px; line-height: 1.45; font-style: italic; }
.dd-words__ex b { font-style: normal; color: var(--accent); }
.dd-brief .dd-flow span { padding: 6px 12px; font-size: 13px; }
.dd-review { --dr-error: var(--accent-pink); --dr-filler: var(--chip-cream); --dr-hedge: var(--chip-blue); --dr-alt: #ddd3fa; --dr-strength: var(--sage); position: relative; display: grid; gap: 16px; }
.dd-review .dr-card { border: 0; padding: clamp(20px, 3vw, 32px); }
.dd-recording { margin-bottom: 16px; }
.dd-card + .dd-answers, .dd-answers + .dd-card { margin-top: 16px; }
.dd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dd-kpi { display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; background: #fff; }
.dd-kpi b { font-size: 28px; font-weight: 800; line-height: 1; }
.dd-kpi span { font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.dd-goal { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dd-goal li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: #f2f2f2; }
.dd-goal p { margin: 0; font-size: 15px; line-height: 1.45; }
.dd-goal__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e2e2e5; font-weight: 800; }
.dd-goal li.is-yes { background: #edf6f0; }
.dd-goal li.is-yes .dd-goal__mark { background: #2e7d57; color: #fff; }
.dd-goal li.is-no .dd-goal__mark { background: #fdebe3; color: #b04a2f; }
.dd-goal__tag { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); padding-top: 5px; }
.dd-goal li.is-yes .dd-goal__tag { color: #2e7d57; }
.dd-goal li.is-no .dd-goal__tag { color: #b04a2f; }
.dd-quote { margin-top: 4px !important; color: var(--ink-soft); font-style: italic; }
.dd-phrases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dd-phrases li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #f2f2f2; font-size: 15px; font-weight: 700; }
.dd-phrases__t { flex: 1; min-width: 0; }
.dd-phrases__used { flex: none; font-size: 12px; font-weight: 800; color: #2e7d57; }
.dd-phrases .dd-say { width: 32px; height: 32px; }
.dd-phrases li.is-used { background: #edf6f0; }
.dd-practise { margin-top: 28px; }
.dd-next { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 14px 14px 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 18px 40px rgba(26, 26, 26, 0.18); }
.dd-next__t { display: grid; min-width: 0; }
.dd-next__t b { font-size: 16px; font-weight: 800; }
.dd-next__t small { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.dd-next .dd-btn { flex: none; padding: 14px 24px; }
.dd-next .dd-btn svg { width: 22px; height: 22px; }

/* result: the teacher's verdict */
.dd-verdict { margin-bottom: 16px; padding: clamp(20px, 3vw, 28px); border-radius: 24px; }
.dd-verdict h3 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.2; }
.dd-verdict p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.dd-verdict.is-ready { background: #e7f0ea; }
.dd-verdict.is-good { background: var(--accent-soft); }
.dd-verdict.is-more { background: #fff1dc; }
.dd-res { margin-top: 0; }
.dd-fb { margin-top: 0; }
.dd-fb__wait { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px; border-radius: 24px; background: #fff; font-size: 15px; color: var(--ink-soft); }
.dd-fb__wait .dcard__spinner { width: 22px; height: 22px; border-width: 3px; border-color: #e6e9f5; border-top-color: var(--accent); }
.dd-fb__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dd-fb__head .dd-h3 { margin: 0; }
.dd-fb__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.dd-fb__icon.is-language { background: var(--accent-soft); color: var(--accent); }
.dd-fb__icon.is-mentor { background: #e7f0ea; color: #4f7a64; }
.dd-fb__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dd-fb__rows li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.dd-fb__i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.dd-fb__rows .is-ok .dd-fb__i { background: #e7f0ea; color: #3f6a55; }
.dd-fb__rows .is-fix .dd-fb__i { background: #fde4d8; color: #a34b2a; }
.dd-fb__rows .is-task .dd-fb__i { background: var(--accent-soft); color: var(--accent); }
.dd-fb__rows p { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.dd-fb__rows .is-task p { font-weight: 700; }
.dd-fb__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dd-fb__ex { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 !important; }
.dd-fb__ex .pm-bad, .dd-fb__ex .pm-good { padding: 5px 10px; font-size: 14px; }
.dd-numbers .dd-res { margin-bottom: 16px; }
.dd-res__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dd-res__list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: #f2f2f2; font-size: 15px; line-height: 1.45; }
.dd-res__mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.is-up .dd-res__mark { background: var(--sage-d); color: #fff; }
.is-left .dd-res__mark { background: var(--accent-pink); color: var(--ink); }
.dd-res__list b { white-space: nowrap; font-size: 14px; font-weight: 800; color: var(--ink); }
.dd-now { margin-top: 16px; scroll-margin-top: 90px; }
.dd-now > .dd-label { margin-bottom: 6px; color: var(--accent); }
.dd-now__block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.dd-now__cards { display: grid; gap: 14px; }
.dd-now .pm-card { padding: 18px; border-radius: 20px; background: #f2f2f2; }
.dd-say-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dd-say-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t l m" "r r r"; gap: 6px 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #f2f2f2; border: 1.5px solid transparent; }
.dd-say-list li.is-clear { background: #e7f0ea; border-color: var(--sage); }
.dd-say-list__t { grid-area: t; font-size: 17px; font-weight: 700; }
.dd-say-list .dd-say { grid-area: l; }
.dd-say-list__mic { grid-area: m; min-width: 120px; justify-content: center; }
.dd-say-list__mic.is-rec { border-color: #e5484d; background: #e5484d; animation: none; }
.dd-say-list__mic .dd-live { display: inline-flex; height: 18px; padding: 0; background: none; gap: 2px; }
.dd-say-list__mic .dd-live i { width: 3px; height: 4px; background: rgba(255, 255, 255, 0.45); }
.dd-say-list__mic .dd-live i.is-on { height: 16px; background: #fff; }
.dd-say-list__r { grid-area: r; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.dd-say-list__r:empty { display: none; }
.dd-say-list__r.is-good { color: #3f6a55; }
.dd-say-list__r.is-bad { color: #a34b2a; }
.dd-res__go { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.dd-res__go:hover { text-decoration: underline; }
.dd-next2 { margin-top: 16px; }
.dd-next2 ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 1.5; }
.dd-next2 .dd-end__btns { justify-content: flex-start; }
.dd-numbers summary { cursor: pointer; font-size: 16px; font-weight: 800; }
.dd-numbers[open] summary { margin-bottom: 16px; }
.dd-numbers .dd-prog { margin-top: 16px; padding: 0; }
.dd-num__sum { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.dd-num { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dd-num li { display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px 104px; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #f2f2f2; }
.dd-num li.dd-num__head { padding: 0 14px 2px; background: none; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dd-num__m { display: grid; min-width: 0; }
.dd-num__m b { font-size: 15px; font-weight: 700; }
.dd-num__m small { font-size: 13px; color: var(--ink-soft); }
.dd-num__v { font-size: 15px; font-weight: 600; color: var(--ink-soft); text-align: center; }
.dd-num__v.is-b { font-size: 17px; font-weight: 800; color: var(--ink); }
.dd-num__t { justify-self: end; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: #e6e6e6; color: var(--ink-soft); }
.dd-num li.is-better .dd-num__t { background: #e7f0ea; color: #3f6a55; }
.dd-num li.is-worse .dd-num__t { background: #fde4d8; color: #a34b2a; }
.dd-num__practice { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.dd-num__practice b { color: var(--ink); }

/* comparison */
.dd-tile { display: grid; gap: 10px; align-content: space-between; padding: 18px 20px; border-radius: 20px; background: #fff; }
.dd-tile__l { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-soft); }
.dd-tile__v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.dd-tile__v s { font-size: 18px; font-weight: 700; color: #a0a0a6; text-decoration-thickness: 1.5px; }
.dd-tile__v i { font-style: normal; color: #c9c9cf; }
.dd-tile__v b { font-size: 30px; font-weight: 800; line-height: 1; }
.dd-tile.is-better { background: #edf6f0; }
.dd-tile.is-better b { color: #2e7d57; }
.dd-tile.is-worse b { color: #b04a2f; }
.dd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.dd-two + .dd-card { margin-top: 20px; }
.dd-two .dd-card + .dd-card { margin-top: 0; }
.dd-then { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dd-then > div { padding: 16px 18px; border-radius: 16px; background: #f2f2f2; }
.dd-then > div.is-now { background: #edf6f0; }
.dd-then p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.dd-then .is-now p { color: #2e6b4a; font-weight: 700; }
.dd-then audio { width: 100%; height: 36px; }
.dd-end { display: grid; justify-items: center; gap: 14px; margin-top: 28px; text-align: center; }
.dd-end p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.dd-end__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.dd-rail__num { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--accent-pink); color: var(--ink); font-size: 12px; font-style: normal; font-weight: 800; vertical-align: 1px; }
/* bold look (site palette only): a dark brief to read first, a light conversation card next to it */
.dd-rail li.is-now { background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(26, 26, 26, 0.22); }
.dd-rail li.is-now .dd-rail__n { background: rgba(255, 255, 255, 0.16); color: #fff; }
.dd-rail li.is-now small { color: rgba(255, 255, 255, 0.82); }

.dd-rail li.is-done { background: rgba(255, 255, 255, 0.8); color: var(--ink-soft); }

.dd-brief { background: var(--chip-blue); color: var(--ink); }
.dd-brief .dd-scn { background: var(--chip-cream); color: var(--ink); }
.dd-brief .dd-scn svg { background: var(--ink); color: #fff; }
.dd-brief .dd-chip--dark { background: var(--ink); color: #fff; }
.dd-brief__title { font-size: 24px; color: var(--ink); }
.dd-brief__scene { color: #3d4652; }
.dd-brief .dd-task { background: #f2f2f2; color: var(--ink); border: 1px dashed var(--ink-soft); }
.dd-brief .dd-task__i { background: var(--ink); color: #fff; }
.dd-brief .dd-task b { color: var(--ink-soft); }
.dd-brief .dd-label { color: var(--ink-soft); }

/* one calm look for every role: light blue card, cream chip, light blue bubble and avatar */
.dd-call .dd-call__q, .dd-call .dd-call__q::before, .dd-call .dd-avatar { background: var(--chip-blue); color: var(--ink); }

/* Speaking drill 2: the cheat sheet has more to read, so it is a light card */
.dd-brief--two { background: #fff; color: var(--ink); }
.dd-brief--two .dd-chip--dark { background: var(--ink); color: #fff; }
.dd-brief--two .dd-brief__title { color: var(--ink); }
.dd-brief--two .dd-brief__scene { color: var(--ink-soft); }
.dd-brief--two .dd-label { color: var(--ink-soft); }

.dd-call__q { background: var(--accent-soft); }
.dd-call__q::before { content: ""; position: absolute; top: 0; left: -8px; width: 16px; height: 16px; background: var(--accent-soft); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.dd-avatar { background: var(--accent-pink); color: var(--ink); }

/* Drill 1 is a practice video call on the grid of the step rail: the briefing under "Speaking drill 1", the call under the
   other three steps (same columns and gap as the rail). */
.dd-stage--rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.dd-stage--rail .dd-vc { grid-column: span 3; }

/* The briefing: a white card with the cream chip, calm next to the dark call */
.dd-sb { gap: 0; padding: 18px 20px 20px; border-radius: 28px; background: #fff; color: var(--ink); }
.dd-sb .dd-task { background: #f6f6f3; }
.dd-sb__chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--chip-cream); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.dd-sb__chip svg { box-sizing: content-box; width: 13px; height: 13px; padding: 5px; border-radius: 50%; background: var(--ink); color: #fff; }
.dd-sb__scene { margin: 14px 0 16px; font-size: 14px; line-height: 1.5; color: #3d4652; }
.dd-sb .dd-task { display: block; margin: auto 0 0; padding: 14px; font-size: 14px; }      /* the task sits at the bottom, level with the call's answer area */
.dd-sb__head { display: flex; align-items: center; gap: 8px; }      /* the icon is the size of the cream chip's icon */
.dd-sb .dd-task__i { box-sizing: content-box; width: 13px; height: 13px; padding: 5px; }
.dd-sb .dd-task__i svg { width: 13px; height: 13px; }
.dd-sb .dd-task b { margin: 0; }
.dd-sb__task p { margin: 10px 0 0; font-weight: 700; line-height: 1.45; }

/* The call: one dark screen with the speaker, the caption and the mic as the call's controls */
.dd-vc { padding: 0; overflow: hidden; color: #fff; box-shadow: none;
  background: radial-gradient(110% 70% at 50% 22%, #3a4170 0%, #262a45 50%, #16171e 100%); }
.dd-vc__screen { position: relative; display: flex; flex-direction: column; padding: 18px 18px 0; color: #fff; }
.dd-vc__top { display: flex; align-items: center; justify-content: flex-end; }
.dd-vc__live { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.dd-vc__live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.dd-vc__face { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: clamp(4px, 1vw, 10px); text-align: center; }
.dd-vc__avatar { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: linear-gradient(135deg, #b9c8ff, #f6c9b8); color: var(--ink); font-size: 26px; font-weight: 800;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06); }
.dd-vc.is-speaking .dd-vc__avatar { animation: dd-vc-talk 1.1s ease-in-out infinite; }
.dd-vc__face b { font-size: 15px; font-weight: 800; }
.dd-vc__face small { font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.dd-vc__q { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 18px auto 0; padding: 12px 20px 12px 12px; border-radius: 16px; background: rgba(10, 10, 14, 0.62); backdrop-filter: blur(6px); }      /* a caption, as in a video call */
.dd-vc__q p { flex: 1; margin: 0; font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; line-height: 1.45; text-align: center; }
.dd-vc__listen { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background 0.15s; }
.dd-vc__listen:hover { background: #e9edff; }
.dd-vc__listen svg { width: 19px; height: 19px; }
.dd-vc__hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dd-vc.is-speaking .dd-vc__listen { background: #b9c8ff; }
.dd-answer { display: inline-flex; align-items: center; gap: 12px; padding: 18px 34px 18px 26px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer;
  box-shadow: 0 0 0 6px rgba(102, 135, 255, 0.2), 0 14px 34px -10px rgba(102, 135, 255, 0.8); animation: dd-answer-call 2.2s ease-in-out infinite; transition: transform 0.15s ease; }
.dd-answer svg { width: 26px; height: 26px; }
.dd-answer + .dcard__timing { margin-top: 18px; }
.dd-answer:hover { transform: translateY(-1px); animation: none; }
@keyframes dd-answer-call { 50% { box-shadow: 0 0 0 12px rgba(102, 135, 255, 0.1), 0 14px 34px -10px rgba(102, 135, 255, 0.8); } }
.dd-vc .dd-call__mic { padding: 26px 18px 26px; }
.dd-vc .dcard__cap { color: #fff; }
.dd-vc .dcard__timing { color: rgba(255, 255, 255, 0.62); }
.dd-vc .dmic { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 0 0 10px rgba(185, 200, 255, 0.28); }
.dd-vc button.dmic:hover:not([disabled]) { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 0 0 12px rgba(185, 200, 255, 0.4); }
.dd-vc .dmic--clock { background: rgba(255, 255, 255, 0.1); }
.dd-vc .dmic--busy { background: rgba(255, 255, 255, 0.1); }
.dd-vc .dmic--rec { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 0 0 10px rgba(229, 72, 77, 0.35); animation: dd-vc-rec 1.4s ease-in-out infinite; }
.dd-vc .dcard__btn { background: #fff; color: var(--ink); }
.dd-vc .dcard__link { color: #b9c8ff; }
.dd-vc .dd-prepbar { background: rgba(255, 255, 255, 0.12); }
.dd-vc .dd-level i { background: rgba(255, 255, 255, 0.18); }
.dd-vc .dd-level i.is-on { background: #b9c8ff; }
.dd-vc .dcard__steps li { color: rgba(255, 255, 255, 0.6); }
.dd-vc .dcard__steps li.is-active, .dd-vc .dcard__steps li.is-done { color: #fff; }
.dd-vc .dcard__steps i { border-color: rgba(255, 255, 255, 0.3); }
.dd-vc .dd-err { color: #ffb4a8; }
.dd-vc .dd-call__mic .dcard__cap { margin-top: 8px; font-size: 18px; }
@keyframes dd-vc-rec { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05), 0 0 0 18px rgba(229, 72, 77, 0.16); } }
@keyframes dd-vc-talk { 50% { box-shadow: 0 0 0 6px rgba(185, 200, 255, 0.3), 0 0 0 14px rgba(185, 200, 255, 0.1); } }
/* Drill 2: the same video call, narrower and shorter, so the hint beside it gets the wider column. */
.dd-stage--two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.dd-vc--compact .dd-vc__avatar { width: 52px; height: 52px; margin-bottom: 6px; font-size: 22px; }
.dd-vc--compact .dd-vc__q { margin-top: 14px; }
.dd-vc--compact .dd-vc__q p { font-size: clamp(15px, 1.3vw, 17px); }
@media (prefers-reduced-motion: reduce) { .dd-answer, .dd-vc.is-speaking .dd-vc__avatar { animation: none; } }
@media (max-width: 900px) {
  .dd-stage--rail { grid-template-columns: 1fr; gap: 12px; }
  .dd-stage--rail .dd-vc { grid-column: auto; }
}
@media (max-width: 600px) {
  .dd-vc__screen { padding: 12px 12px 0; }
  .dd-answer { padding: 16px 26px 16px 20px; font-size: 17px; }
  .dd-vc .dd-call__mic .dcard__cap { font-size: 17px; }
}



@media (max-width: 900px) {
  .dd-stage { grid-template-columns: 1fr; }
  .dd-stage .dd-call { position: static; }
  .dd-rail__t small { display: none; }
}
@media (max-width: 600px) {
  .dd-demo { border-width: 6px 12px 12px; border-radius: 26px; padding: 12px 8px 8px; }
  .dd-kpis, .dd-two, .dd-then, .dd-phrases, .dd-prog__stats { grid-template-columns: 1fr; }
  .dd-diag__stats { grid-template-columns: 1fr 1fr; }
  .dd-num li { grid-template-columns: 1fr 1fr auto; row-gap: 6px; }
  .dd-num__m { grid-column: 1 / -1; }
  .dd-num li.dd-num__head { display: none; }
  .dd-num__v { text-align: left; }
  .dd-num__v:not(.is-b)::before { content: "1 · "; }
  .dd-num__v.is-b::before { content: "2 · "; font-weight: 600; color: var(--ink-soft); font-size: 13px; }
  .dd-pr { padding: 14px 12px 16px; border-radius: 20px; }
  .dd-pr > * { max-width: 100%; }
  .dd-pr__play { gap: 10px; }
  .dd-wave { gap: 3px; }
  .dd-wave i:nth-child(n + 14) { display: none; }
  .dd-live { padding: 0 10px; gap: 3px; }
  .dd-live i:nth-child(n + 17) { display: none; }
  .dd-pr__text { font-size: 24px; overflow-wrap: anywhere; }
  .dd-pr__text.is-long { font-size: 20px; }
  .dd-pr__ipa { font-size: 17px; }
    .dd-diag__weak { grid-column: 1 / -1; }
  .dd-topic__head { flex-wrap: wrap; }
  .dd-topic__st { order: 3; width: 100%; padding-left: 48px; }
  .dd-rail { display: flex; gap: 6px; }
  .dd-rail li { flex: none; }
  .dd-rail li.is-now { flex: 1 1 auto; justify-content: flex-start; }
  .dd-rail li { justify-content: center; padding: 8px; border-radius: 16px; }
  .dd-rail li + li::before { left: -6px; width: 6px; }
  .dd-rail__n { width: 28px; height: 28px; font-size: 13px; }
  .dd-rail li:not(.is-now) .dd-rail__t { display: none; }
  .dd-rail li.is-now { gap: 8px; }
  .dd-rail__t b { font-size: 13px; white-space: normal; }      /* the current step's name wraps instead of being cut */
  .dd-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px; scrollbar-width: none; }
  .dd-pick { gap: 8px; margin-bottom: 8px; }
  .dd-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }      /* the chips scroll inside, the page does not */
  .dd-step, .dd-folder { min-height: 0; padding: 14px 16px; border-radius: 20px; }
  .dd-win { border-radius: 26px; }
  .dd-folder { border-radius: 26px 26px 0 0; }
  .dd-step__l { width: auto; }
  .dd-roles .dd-tabs { width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px 4px; }
  .dd-tabs::-webkit-scrollbar { display: none; }
  .dd-tab { flex: none; padding: 9px 14px; font-size: 14px; }
  .dd-call, .dd-brief { border-radius: 22px; }
  .dd-call__q { padding: 14px 16px; font-size: 17px; }
  .dd-next { flex-direction: column; align-items: stretch; padding: 14px; border-radius: 24px; text-align: center; }
  .dd-next .dd-btn { justify-content: center; }
}

/* lead: one email field after the result */
.dd-lead { margin-top: 16px; background: var(--chip-blue); }
.dd-lead h3 { font-size: clamp(22px, 2.4vw, 28px); }
.dd-lead > p { margin: 0 0 10px; max-width: 44em; font-size: 16px; line-height: 1.5; color: var(--ink); }
.dd-lead__form { margin-top: 18px; }
.dd-lead__row { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-lead__row input { flex: 1 1 260px; min-width: 0; padding: 14px 18px; border: 1.5px solid transparent; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.dd-lead__row input:focus { outline: none; border-color: var(--accent); }
.dd-lead__row .dd-btn { flex: none; }
.dd-lead__ok { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.dd-lead__ok input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.dd-lead__err { min-height: 0; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #b3261e; }
.dd-lead__err:empty { display: none; }
.dd-lead .dd-lead__note { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.dd-lead.is-done { background: var(--chip-cream); }
.dd-lead.is-done p { margin: 0; }
@media (max-width: 600px) {
  .dd-lead__row .dd-btn { width: 100%; }
}

/* Drill 2 hint: the task in one line, then the answer plan with the words for each step, compact enough to sit next to the mic */
.dd-hint { gap: 12px; }
.dd-hint .dd-brief__title { margin: 0; font-size: clamp(19px, 1.8vw, 22px); }
.dd-hint__task { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.dd-hint__task .dd-task__i { flex: none; width: 28px; height: 28px; }
.dd-plan { list-style: none; width: 100%; margin: 0; padding: 0; display: grid; gap: 6px; }
.dd-plan li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 9px 12px; border-radius: 14px; background: #f2f2f2; }
.dd-plan__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.dd-plan b { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dd-plan i { display: block; font-size: 15px; font-style: normal; font-weight: 700; line-height: 1.35; color: var(--ink); }
.dd-plan__w { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dd-plan__w span { padding: 3px 9px; border-radius: 999px; background: #e7f0ea; color: #3f6a55; font-size: 13px; font-weight: 700; }

/* the program cycle after the result: drills on your own -> live class with the AI review -> next drills */
.dd-prog { margin-top: 16px; }
.dd-prog__steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: prog; }
.dd-prog__steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 18px; background: #f2f2f2; }
.dd-prog__steps li.is-here { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.dd-prog__steps li + li::before { content: "→"; position: absolute; left: -10px; top: 26px; width: 10px; text-align: center; color: var(--ink-soft); font-weight: 800; }
.dd-prog__i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent); }
.dd-prog__here { position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.dd-prog__steps b { margin-top: 4px; font-size: 16px; font-weight: 800; }
.dd-prog__steps p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.dd-prog__loop { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: var(--accent); }
@media (max-width: 600px) {
  .dd-prog__steps { grid-template-columns: 1fr; }
  .dd-prog__steps li + li::before { content: "↓"; left: 24px; top: -12px; width: auto; }
}

/* the early-access banner under the practice class, the same card as on the home page */
.dd-section--cta { padding-top: 0; }
.dd-section--cta .hp-wide { margin-top: 0; }
.pc > .dd-section--cta { padding-top: clamp(20px, 3vw, 32px); }      /* the banner right under the class frame */

/* ---- the class on the home and company pages: tabs (class / dialogue), scenario picker ---- */
.pc { min-width: 0; }
.pc__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pc__bar .dfolder__tabs { padding: 0 0 0 56px; }      /* the left foot (20px) lands on the straight edge, after the frame corner (36px) */
.pc__tag { margin: 0 clamp(20px, 3vw, 36px) 10px 0; color: var(--ink); font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.pc__body { position: relative; z-index: 2; padding: clamp(14px, 2.2vw, 24px); border: 2px solid var(--accent); border-radius: 36px; background: var(--bg); }
.pc[data-tab="dialogue"] .pc__body { border-color: #1a1a1a; background: #1a1a1a; }      /* the dark dialogue card and the frame are one piece */
.dtab[data-pc-tab] { white-space: nowrap; }
@media (max-width: 520px) {
  .pc__bar .dfolder__tabs { padding: 0 0 0 48px; }      /* corner 28px + foot 20px */
  .pc__bar { flex-wrap: wrap; }
  .pc__tag { order: -1; width: 100%; margin: 0 0 14px 4px; }      /* no room next to the tabs on a phone: the name goes above them */
  .dtab[data-pc-tab] { padding: 13px 16px 11px; font-size: 14px; }
  .dtab[data-pc-tab]:not(.is-active) { padding-top: 18px; }
  .pc__body { border-radius: 28px; }
}
/* Room for the class while its script fills it, so the page below does not jump (heights a bit under the filled ones). */
.pc__bar:empty { min-height: 50px; }
.pc__pick:empty { min-height: 72px; }
.dd-win:has(> #demo:empty) { min-height: 660px; }
@media (max-width: 900px) { .pc__pick:empty { min-height: 121px; } .dd-win:has(> #demo:empty) { min-height: 860px; } }
@media (max-width: 600px) { .pc__pick:empty { min-height: 130px; } }
@media (max-width: 520px) { .pc__bar:empty { min-height: 103px; } .pc__pick:empty { min-height: 177px; } }
@media (max-width: 400px) { .dd-win:has(> #demo:empty) { min-height: 1000px; } }
.pc__drill .hero__drill { max-width: 560px; margin: 0 auto; }
.pc__drill .hero__drill[data-gate] { max-width: none; }
.pc__drill .hero__drill[data-gate] .dcard[data-state="ready"] { min-height: 0; padding: clamp(16px, 3.4vw, 48px); }
.dd-pick__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; flex: 1; min-width: 0; }
.dd-pick__row .dd-select { margin-left: auto; max-width: 420px; }
.dd-select { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--accent-soft); border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.dd-select svg { flex: none; color: var(--accent); }
.dd-select select { min-width: 0; max-width: 100%; padding: 10px 4px 10px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-overflow: ellipsis; cursor: pointer; }
.dd-select select:focus-visible { outline: none; }
.dd-select:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dd-select select[disabled] { cursor: not-allowed; }
@media (max-width: 760px) {
  .dd-select { width: 100%; }
  .dd-pick__row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .dd-pick__row .dd-select { margin-left: 0; }
  .dd-select select { flex: 1; }
}

/* the hero with the class under the title: one column, the class full width, the dashboard below */
.hero__top--class { grid-template-columns: minmax(0, 1fr) !important; }
.hero__top--class .hero__class { grid-column: 1 / -1; grid-row: 2; min-width: 0; scroll-margin-top: calc(var(--header-height, 64px) + 16px); }
.hero__top--class .hero__showcase { grid-row: 3; }
/* the class is the call to action: right under the lead (the hero gap stays between the class and the dashboard) */
[data-page="home"] .hero__top--class .hero__lead { margin-bottom: 0; }
@media (min-width: 811px) { .hero__lead-tail { display: block; } }      /* the "and work on it right away" part starts the second line */
[data-page="home"] .hero__top--class .hero__class { margin-top: calc(40px - var(--hero-gap, 0px)); }

/* The scenario switch: one row on a laptop, the scenario list narrows before it wraps */
.pc__pick .dd-tab { gap: 6px; padding: 9px 12px; }
.pc__pick .dd-pick__row { gap: 10px; }
.pc__pick .dd-pick__row { flex-wrap: nowrap; }
.pc__pick .dd-tabs { flex: none; flex-wrap: nowrap; }
@media (max-width: 1100px) { .pc__pick .dd-pick__row, .pc__pick .dd-tabs { flex-wrap: wrap; } .pc__pick .dd-tabs { flex: 1 1 auto; } }

/* The scenario menu: a pill like the chips, opening a card list (as the topic list of the drill card) */
.dd-menu { position: relative; display: flex; min-width: 0; }
.dd-pick__row .dd-menu { margin-left: auto; flex: 1 1 auto; max-width: 340px; min-width: 200px; justify-content: flex-end; }
button.dd-select { width: 100%; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
button.dd-select[disabled] { cursor: not-allowed; opacity: 0.6; }
.dd-select__t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd-menu__chev { flex: none; transition: transform 0.18s ease; color: var(--ink) !important; }
.dd-menu.is-open .dd-menu__chev { transform: rotate(180deg); }
.dd-menu__pop { position: absolute; z-index: 30; right: 0; top: calc(100% + 10px); width: min(440px, calc(100vw - 32px)); margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 56px rgba(26, 26, 26, 0.16), 0 2px 8px rgba(26, 26, 26, 0.06); animation: dcard-pop 0.16s ease-out; }
.dd-menu__item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dd-menu__item:hover { background: var(--bg); }
.dd-menu__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dd-menu__item.is-on { background: var(--accent-soft); }
.dd-menu__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dd-menu__txt b { font-size: 15px; font-weight: 800; line-height: 1.3; }
.dd-menu__txt small { font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 600px) {
  .dd-pick__row .dd-menu { max-width: none; width: 100%; }
  .dd-menu__pop { left: 0; right: auto; width: 100%; }
}

/* The answer area keeps one height from "Start answering" to recording, so the call does not jump; recording is compact */
.dd-vc .dd-call__mic { justify-content: center; gap: 2px; min-height: 232px; padding: 16px 18px 20px; }
.dd-vc .dmic--rec, .dd-vc .dmic--busy { width: 68px; height: 68px; font-size: 19px; }
.dd-vc .dd-level { height: 20px; margin: 0 0 4px; }
.dd-vc .dd-call__mic .dcard__cap { margin-top: 4px; font-size: 16px; }
.dd-vc .dd-level i.is-on { height: 20px; }
.dd-vc .dcard__btn { padding: 10px 22px; }

/* The dialogue inside the class: the same frame, bar, briefing and call screen as the monologue lesson.
   The frame keeps the dark tab's colour as its outline, so the active "Dialogue" tab still joins it. */
.pc[data-tab="dialogue"][data-dlg-room] .pc__body { border-color: #1a1a1a; background: var(--bg); }
.pc__drill .hero__drill[data-room], .pc[data-dlg-room] .pc__drill .hero__drill { max-width: none; }
.dlg-room .dd-sb__task p { margin: 10px 0 0; }
.dlg-room .dlg-meter { margin-top: 12px; }
.dlg-room .dlg-meter__bar { background: #e4e4e0; }
.dlg-room .dd-vc__top { gap: 10px; }
.dlg-room__clock { margin-right: auto; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.dlg-room .dlg-hangup { width: 40px; height: 40px; }
.dlg-room .dd-vc__q { min-height: 76px; padding: 14px 22px; }
.dlg-room__q p { font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.dlg-room .dd-vc .dlg-dots i { background: #fff; }
.dlg-room .dcard__dots { margin: 10px 0 14px; }
.dlg-room .dcard__dots i { background: rgba(255, 255, 255, 0.18); }
.dlg-room .dd-call__mic .dcard__cap { margin-top: 12px; font-size: 16px; }
.dlg-room .dd-call__mic .dcard__btn + .dcard__timing { margin-top: 10px; }
.dlg-room .dlg-meter__top { gap: 8px; font-size: 12px; }
.dlg-room .dlg-meter__top span:last-child { white-space: nowrap; }
.dlg-room .dcard__dots i.is-on { background: #b9c8ff; }
.dlg-room .dlg-voice i { background: #b9c8ff; }
.dlg-room .dd-call__mic .dlg-voice { margin: 0 auto 10px; }
.dlg-room .dd-call__mic .dcard__steps { margin: 8px auto 0; }
.dlg-room .dd-call__mic .dcard__bar { display: none; }
.dlg-room__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 8px 0; }
.dlg-room__foot .dcard__consent { margin: 0; max-width: 640px; font-size: 13px; color: var(--ink-soft); }
.dlg-room__foot .dcard__consent a { color: inherit; }
.dlg-room__foot .dcard__link { flex: none; color: var(--accent); }
/* the conversation as call subtitles: earlier lines stay and move up, the newest is at the bottom */
.dlg-room .dlg-room__log { display: flex; flex-direction: column; align-items: stretch; gap: 8px; max-height: 236px; overflow-y: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px); padding-top: 24px; }
.dlg-room .dlg-room__log::-webkit-scrollbar { display: none; }
.dlg-room__line { display: flex; gap: 10px; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.45; text-align: left; color: rgba(255, 255, 255, 0.85); }
.dlg-room__line .dlg-cap__who { flex: none; min-width: 84px; font-size: 13px; font-weight: 800; line-height: 23px; color: rgba(255, 255, 255, 0.55); }
.dlg-room__line.is-you .dlg-cap__who { color: #b9c8ff; }
.dlg-room__line.is-past { color: rgba(255, 255, 255, 0.45); font-size: 14px; }
.dlg-room__line.is-past .dlg-cap__who { line-height: 20px; opacity: 0.7; }
.dlg-room__line.is-now { color: #fff; font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; }
.dlg-room__line .dlg-dots { display: inline-flex; vertical-align: middle; }
/* while you answer: a call-like strip instead of a big timer and a button */
.dlg-room__live { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 15px; }
.dlg-room__live b { font-weight: 800; white-space: nowrap; }
.dlg-room .dlg-room__live .dcard__dots { margin: 0; padding: 0; gap: 3px; }
.dlg-room .dlg-room__live .dcard__dots i { width: 4px; height: 14px; border-radius: 2px; }
.dlg-room .dlg-room__live .dcard__dots i:nth-child(n+17) { display: none; }
.dlg-room__left { min-width: 36px; color: rgba(255, 255, 255, 0.6); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.dlg-room__live + .dcard__timing { margin-top: 14px; }
@media (max-width: 760px) {
  .dlg-room__foot { flex-direction: column-reverse; }
}
.dlg-room .dlg-room__log .dlg-room__line { flex: none; text-align: left; }
.dlg-room .dlg-room__log .dlg-room__line > span[lang] { flex: 1; min-width: 0; }
.dlg-room .dlg-room__log .dlg-room__line .dlg-cap__who { width: 108px; min-width: 0; }
@media (max-width: 760px) {
  .dlg-room .dlg-room__log .dlg-room__line { flex-direction: column; gap: 0; }
  .dlg-room .dlg-room__log .dlg-room__line .dlg-cap__who { width: auto; line-height: 1.4; }
}
.dlg-room .dlg-room__log { width: 100%; box-sizing: border-box; }

/* rail steps already reached open again on click */
.dd-rail li.is-link { padding: 0; }
.dd-rail__go { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 12px 14px; border: 0; border-radius: inherit; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 0.15s ease; }
.dd-rail__go:hover { background: #fff; }
.dd-rail__go:hover b { color: var(--accent); }
.dd-rail__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The narrowest phones (320 px): smaller step icons, and the current step shows its name without the icon. */
@media (max-width: 340px) {
  .dd-rail li { padding: 6px; }
  .dd-rail__n { width: 24px; height: 24px; }
  .dd-rail li.is-now .dd-rail__n { display: none; }
}
