/* «تندخوانی بهارمن» — app styles */

/* welcome & onboarding */
.tond-welcome { justify-content: flex-start; padding-top: calc(36px + var(--sat)); gap: 14px; }
.tond-welcome-art { display: flex; justify-content: center; margin: 12px 0 6px; }
.tond-welcome-art img { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 10px 30px rgba(18, 48, 90, .18); }
.tond-lead { font-size: 16px; line-height: 2; }
.tond-bullets { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tond-bullets li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15.5px; line-height: 1.7; }
.tond-bullets .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--acc-soft); color: var(--acc-ink); display: flex; align-items: center; justify-content: center; flex: none; }
html.dark .tond-bullets .ic { color: var(--acc); }
.tond-bullets.small li { font-weight: 400; font-size: 15px; }
.tond-bullets.small .ic { width: 30px; height: 30px; border-radius: 10px; background: var(--pri-soft); color: var(--pri); }
.tond-bullets.small .ic .bhca-i { width: 18px; height: 18px; }
.tond-login-link { align-self: center; }
.tond-ready-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--pri-soft); color: var(--pri); display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.tond-ready-ic .bhca-i { width: 32px; height: 32px; }
.tond-ready .bhca-link.muted { align-self: center; }

/* reading test */
.tond-test-layer .bhca-layer-in, .tond-reader-layer .bhca-layer-in { padding-bottom: 0; }
.tond-measure { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: 12.5px; font-weight: 700; line-height: 1.8; white-space: nowrap; }
.tond-measure .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: tond-breathe 2.4s ease-in-out infinite; }
@keyframes tond-breathe { 50% { opacity: .35; } }
.tond-read-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 2px 24px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.tond-read-title { font-size: 20px; margin-bottom: 10px; }
.tond-reading { font-size: 18px; line-height: 2.1; text-align: start; }
.tond-reading p + p { margin-top: 14px; }
.tond-dock { flex: none; padding: 12px 0 calc(14px + var(--sab)); background: var(--bg); position: relative; }
.tond-dock::before { content: ""; position: absolute; top: -24px; left: 0; right: 0; height: 24px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.tond-center-msg { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-bottom: 40px; }
.tond-qbar { margin: 4px 0 18px; flex: none; }
.tond-qbar > i { transition: width .3s ease; }
.tond-q-wrap { display: flex; flex-direction: column; gap: 18px; overflow-y: auto; padding-bottom: 20px; }
.tond-q { font-size: 19px; line-height: 1.8; }
.tond-options { display: flex; flex-direction: column; gap: 10px; }
.tond-option {
  -webkit-appearance: none; appearance: none; border: 0; text-align: start; min-height: 56px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; line-height: 1.7;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background-color .15s, box-shadow .15s;
}
.tond-option:active { background: var(--surface2); }
.tond-option.picked { box-shadow: inset 0 0 0 2px var(--pri); background: var(--pri-soft); }
.tond-option.right { box-shadow: inset 0 0 0 2px var(--ok); background: var(--ok-soft); }
.tond-option.wrong { box-shadow: inset 0 0 0 2px var(--bad); background: var(--bad-soft); }

/* result */
.tond-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tond-hero-main b { display: block; font-size: 60px; line-height: 1.1; letter-spacing: -.5px; color: var(--pri); }
.tond-hero-main span, .tond-hero-side span { display: block; color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 4px; }
.tond-hero-side { text-align: center; background: var(--surface2); border-radius: 16px; padding: 10px 14px 8px; min-width: 96px; }
.tond-hero-side b { display: block; font-size: 28px; line-height: 1.3; }
.tond-eff { border-top: 1px dashed var(--line); padding-top: 10px; }
.tond-eff b { font-size: 16px; }
.tond-scale { padding-top: 4px; }
.tond-scale-bar { position: relative; display: flex; gap: 3px; height: 12px; margin-top: 14px; }
.tond-scale-bar i { flex: 1 1 0; border-radius: 4px; background: var(--surface2); }
.tond-scale-bar i.b0 { background: var(--pri-soft); }
.tond-scale-bar i.b0 { background: color-mix(in srgb, var(--pri) 12%, var(--surface2)); }
.tond-scale-bar i.b1 { background: color-mix(in srgb, var(--pri) 24%, var(--surface2)); }
.tond-scale-bar i.b2 { background: color-mix(in srgb, var(--pri) 40%, var(--surface2)); }
.tond-scale-bar i.b3 { background: color-mix(in srgb, var(--pri) 60%, var(--surface2)); }
.tond-scale-bar i.b4 { background: color-mix(in srgb, var(--pri) 80%, var(--surface2)); }
.tond-scale-bar i.on { box-shadow: 0 0 0 2px var(--acc); }
.tond-scale-mark { position: absolute; top: -7px; width: 4px; height: 26px; margin-right: -2px; border-radius: 4px; background: var(--acc); box-shadow: 0 0 0 3px var(--surface); }
.tond-scale-nums { position: relative; height: 24px; font-size: 11px; color: var(--muted); }
.tond-scale-nums span { position: absolute; top: 6px; transform: translateX(50%); line-height: 1.4; }
.tond-scale-lbls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.tond-scale-lbls span.on { color: var(--ink); font-weight: 700; }
.tond-facts { gap: 14px; }
.tond-fact { display: flex; gap: 12px; align-items: flex-start; }
.tond-fact p { font-size: 15px; line-height: 1.9; }
.tond-fact .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--pri-soft); color: var(--pri); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.tond-fact .ic.acc { background: var(--acc-soft); color: var(--acc-ink); }
html.dark .tond-fact .ic.acc { color: var(--acc); }
.tond-fact .ic .bhca-i { width: 19px; height: 19px; }

/* plan intro */
.tond-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tond-days li { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); }
html.dark .tond-days li { box-shadow: inset 0 0 0 1px var(--line); }
.tond-days li .n { width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.tond-days li.cur .n { background: var(--pri); color: var(--pri-ink); }
.tond-days li.done .n { background: var(--ok-soft); color: var(--ok); }
.tond-days li .n .bhca-i { width: 18px; height: 18px; stroke-width: 2.2; }
.tond-days li div { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.tond-days li b { font-size: 15px; }
.tond-days li span { font-size: 12.5px; color: var(--muted); }

/* today */
.tond-hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.tond-hello h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tond-hello > div { min-width: 0; }
.tond-plan-head { align-items: flex-start; }
.tond-plan-titles { min-width: 0; }
.tond-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tond-steps li { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 0; }
.tond-steps li + li { border-top: 1px solid var(--line); }
.tond-steps .n { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 700; font-size: 14px; background: var(--surface2); color: var(--muted); }
.tond-steps li.next .n { background: var(--pri); color: var(--pri-ink); }
.tond-steps li.done .n { background: var(--ok-soft); color: var(--ok); }
.tond-steps .n .bhca-i { width: 18px; height: 18px; stroke-width: 2.4; }
.tond-steps .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.tond-steps .tx b { font-size: 15px; }
.tond-steps .tx span { font-size: 12.5px; color: var(--muted); }
.tond-steps li.done .tx b { color: var(--muted); }
.tond-steps li:not(.next):not(.done) .tx { opacity: .7; }
.tond-day-done { display: flex; align-items: center; gap: 14px; }
.tond-free-list { margin: 0 -16px; }
.tond-free-list .bhca-row { padding: 8px 16px; }
.tond-free-list .bhca-row + .bhca-row { border-top: 1px solid var(--line); }
.tond-nudge { display: flex; gap: 10px; align-items: center; background: var(--acc-soft); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.8; text-decoration: none; font-weight: 700; min-height: 44px; }
.tond-nudge .bhca-i { width: 20px; height: 20px; }
.tond-tip { display: flex; gap: 12px; align-items: flex-start; padding: 4px 4px 0; }
.tond-tip .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--acc-soft); color: var(--acc-ink); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
html.dark .tond-tip .ic { color: var(--acc); }
.tond-tip .ic .bhca-i { width: 19px; height: 19px; }
.tond-tip b { font-size: 13px; color: var(--muted); display: block; line-height: 1.6; }
.tond-tip p { font-size: 15px; line-height: 1.9; }
.tond-tab-head { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.tond-free-card .bhca-btn { margin-top: 2px; }

/* tools */
.tond-tools .bhca-row { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.tond-best { font-style: normal; font-size: 12.5px; color: var(--ok); font-weight: 700; margin-top: 2px; }
.tond-tool { gap: 14px; }
.tond-plan-banner { display: flex; align-items: center; gap: 8px; background: var(--acc-soft); border-radius: 14px; padding: 8px 12px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.tond-plan-banner .bhca-i { width: 20px; height: 20px; color: var(--acc-ink); }
html.dark .tond-plan-banner .bhca-i { color: var(--acc); }
.tond-passage-pick { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 10px 10px 10px 8px; padding-inline-start: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.tond-passage-pick .ic { color: var(--pri); }
.tond-passage-pick .tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.6; }
.tond-passage-pick .tx b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tond-passage-pick .tx span { font-size: 12.5px; color: var(--muted); }
.tond-textarea { width: 100%; min-height: 150px; resize: vertical; border: 0; border-radius: 16px; padding: 12px 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; line-height: 1.9; }
.tond-textarea:focus { box-shadow: inset 0 0 0 2px var(--pri); }
.tond-textarea::placeholder { color: var(--muted); }
.tond-cap { margin-top: -4px; }

/* speed control */
.tond-speed { background: var(--surface); border-radius: var(--r-l); padding: 14px 12px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
html.dark .tond-speed { box-shadow: inset 0 0 0 1px var(--line); }
.tond-speed-val { text-align: center; line-height: 1.3; }
.tond-speed-val b { display: block; font-size: 38px; color: var(--pri); }
.tond-speed-val span { font-size: 13px; color: var(--muted); font-weight: 700; }
.tond-speed-row { display: flex; align-items: center; gap: 8px; }
.tond-speed-row .bhca-icon-btn { width: 48px; height: 48px; border-radius: 16px; }
.tond-range-wrap { position: relative; flex: 1 1 auto; min-width: 0; height: 48px; display: flex; align-items: center; }
.tond-range {
  --fill: 30%; --free: 100%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; background: transparent; direction: rtl; cursor: pointer;
}
.tond-range::-webkit-slider-runnable-track {
  height: 10px; border-radius: 10px;
  background: linear-gradient(to left, var(--pri) 0, var(--pri) var(--fill), var(--line) var(--fill), var(--line) var(--free), var(--acc-soft) var(--free), var(--acc-soft) 100%);
}
.tond-range::-moz-range-track { height: 10px; border-radius: 10px; background: var(--line); }
.tond-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 3px solid var(--pri); box-shadow: 0 2px 6px rgba(20, 35, 59, .2); }
.tond-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--pri); }
.tond-range:focus-visible { outline: none; }
.tond-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--acc); }
.tond-range-lock { position: absolute; top: 50%; transform: translate(-50%, -50%); color: var(--acc-ink); pointer-events: none; display: flex; }
html.dark .tond-range-lock { color: var(--acc); }
.tond-range-lock .bhca-i { width: 14px; height: 14px; stroke-width: 2.2; }
.tond-range-scale { position: relative; height: 20px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.tond-range-scale .mid { position: absolute; top: 0; transform: translateX(50%); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.tond-range-scale .mid .bhca-i { width: 12px; height: 12px; }

/* running reader */
.tond-spd { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; padding-inline-end: 6px; }
.tond-rbar { flex: none; height: 4px; margin: 0 0 4px; }
.tond-rbar > i { width: 0; }
.tond-guide { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 14px 2px 0; -webkit-overflow-scrolling: touch; }
.tond-guide .ch { border-radius: 6px; padding: 2px 1px; transition: background-color .12s linear, color .12s linear; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tond-guide .ch.past { color: var(--muted); }
.tond-guide .ch.on { background: var(--acc); color: var(--acc-ink); }
.tond-guide-end { height: 50vh; }
.tond-word-stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; position: relative; }
.tond-word-box {
  width: 100%; height: 132px; display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--surface); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); font-size: 30px; font-weight: 700; line-height: 1.6; padding: 0 16px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.tond-controls { flex: none; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 0 calc(16px + var(--sab)); }
.tond-controls .bhca-icon-btn { width: 52px; height: 52px; border-radius: 18px; }
.tond-play { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--pri); color: var(--pri-ink); display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
.tond-play .bhca-i { width: 28px; height: 28px; stroke-width: 2.2; }
.tond-reader-layer.paused .tond-guide .ch.on { background: var(--acc-soft); color: var(--ink); }
.tond-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 84px; font-weight: 700; color: var(--pri); pointer-events: none; z-index: 2; background: transparent; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.tond-count.pulse { animation: tond-pulse .8s ease-out both; }
@keyframes tond-pulse { from { transform: scale(1.25); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

/* eyes */
.tond-stage { position: relative; flex: 1 1 auto; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-top: 4px; min-height: 240px; }
.tond-dot { position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 6px var(--acc-soft); will-change: transform; transition: opacity .3s; }
.tond-stage.fix::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--pri); }
.tond-stage-hint { padding: 12px 0 calc(8px + var(--sab)); flex: none; }

/* schulte */
.tond-grid-wrap { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; }
.tond-grid { display: grid; gap: 6px; width: min(100%, calc(100vh - 230px)); width: min(100%, calc(100dvh - 230px)); aspect-ratio: 1 / 1; grid-auto-rows: 1fr; }
.tond-cell {
  -webkit-appearance: none; appearance: none; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700; font-size: 26px; display: flex; align-items: center; justify-content: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; min-width: 0; min-height: 44px; padding: 0;
  transition: background-color .15s, color .15s;
}
.tond-grid.s5 .tond-cell { font-size: 22px; border-radius: 12px; }
.tond-grid.s6 .tond-cell, .tond-grid.s7 .tond-cell { font-size: 18px; border-radius: 10px; }
.tond-cell.ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.tond-cell.shake { animation: tond-shake .32s ease; background: var(--bad-soft); }
@keyframes tond-shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.tond-fix { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2.5px solid var(--acc); pointer-events: none; opacity: .9; }

/* digits */
.tond-digits { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-bottom: calc(10px + var(--sab)); min-height: 0; }
.tond-dg-label { color: var(--muted); font-weight: 700; }
.tond-dg-show { font-size: 44px; font-weight: 700; letter-spacing: 2px; color: var(--pri); line-height: 1.4; text-align: center; word-break: break-all; }
.tond-dg-bar { width: 60%; }
.tond-dg-bar > i { width: 100%; background: var(--acc); }
.tond-lives { display: inline-flex; gap: 5px; vertical-align: middle; }
.tond-lives i { width: 10px; height: 10px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.tond-lives i.on { background: var(--pri); box-shadow: none; }
.tond-slots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.tond-slots .slot { width: 34px; height: 46px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.tond-slots .slot.on { box-shadow: inset 0 0 0 2px var(--pri); }
.tond-slots.ok .slot { box-shadow: inset 0 0 0 2px var(--ok); color: var(--ok); }
.tond-slots.bad .slot { box-shadow: inset 0 0 0 2px var(--bad); color: var(--bad); }
.tond-fb { font-weight: 700; min-height: 30px; }
.tond-fb.ok { color: var(--ok); }
.tond-fb.bad { color: var(--bad); }
.tond-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 340px; margin-top: auto; }
.tond-key {
  -webkit-appearance: none; appearance: none; border: 0; height: 58px; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.tond-key:active { background: var(--surface2); }
.tond-key.del { background: var(--surface2); box-shadow: none; }
.tond-key.ok { background: var(--pri); color: var(--pri-ink); box-shadow: none; }
.tond-key.ok:disabled { opacity: .35; }
.tond-key .bhca-i { width: 26px; height: 26px; }

/* numbers are written left to right, and phone keypads are laid out left to right */
.tond-slots, .tond-dg-show, .tond-keypad { direction: ltr; }

/* words */
.tond-words { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding-bottom: 4px; }
.tond-wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tond-wgrid.pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tond-w {
  -webkit-appearance: none; appearance: none; border: 0; min-height: 52px; padding: 4px 6px; border-radius: 14px; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.4;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; overflow-wrap: anywhere;
}
.tond-wgrid.show .tond-w { min-height: 60px; font-size: 20px; }
.tond-wgrid.pick .tond-w { min-height: 48px; font-size: 15px; }
.tond-w[aria-pressed="true"] { background: var(--pri); color: var(--pri-ink); box-shadow: none; }
.tond-w.right { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
.tond-w.wrong { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
.tond-w.missed { box-shadow: inset 0 0 0 2px var(--ok); background: var(--surface); color: var(--ink); border: 0; outline: 2px dashed var(--ok); outline-offset: -6px; }
.tond-words .tond-dock { margin-top: auto; padding-top: 6px; }

/* progress */
.tond-chart-card > .bhca-between { flex-wrap: wrap; row-gap: 0; }
.tond-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tond-legend i { width: 18px; height: 0; border-top: 2px dashed var(--acc); }
.tond-empty { display: flex; align-items: center; gap: 12px; }
.tond-empty .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--surface2); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.tond-days14 { direction: ltr; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; }
.tond-day { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.tond-day i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.tond-day.on i { background: var(--ok); box-shadow: none; }
.tond-day.today i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pri); }
.tond-day span { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.tond-bests { display: flex; flex-direction: column; }
.tond-best-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 0; }
.tond-best-row + .tond-best-row { border-top: 1px solid var(--line); }
.tond-best-row .ic { color: var(--pri); display: flex; }
.tond-best-row b { flex: none; font-size: 15px; }
.tond-best-row span:last-child { flex: 1 1 auto; text-align: end; color: var(--muted); font-size: 13.5px; line-height: 1.6; min-width: 0; }
.tond-ver { padding: 4px 0 8px; }

/* course */
.tond-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.tond-trust span { display: inline-flex; align-items: center; gap: 6px; background: var(--surface2); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; line-height: 1.8; }
.tond-trust .bhca-i { width: 16px; height: 16px; color: var(--ok); }
.tond-trust .bhca-i[class] { flex: none; }
.tond-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tond-price span { color: var(--muted); font-size: 14px; }
.tond-price b { font-size: 20px; }
.tond-elite { align-items: flex-start; }

/* final */
.tond-final-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 8px 0 4px; }
.tond-cmp { gap: 0; padding-top: 10px; padding-bottom: 10px; }
.tond-cmp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; align-items: center; gap: 6px; min-height: 52px; }
.tond-cmp-row + .tond-cmp-row { border-top: 1px solid var(--line); }
.tond-cmp-row.head { min-height: 34px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tond-cmp-row.head span { text-align: center; }
.tond-cmp-row .l { font-size: 14.5px; font-weight: 700; }
.tond-cmp-row b { text-align: center; font-size: 18px; color: var(--muted); }
.tond-cmp-row b.now { color: var(--ink); font-size: 20px; }
.tond-cmp-row .d bdi { unicode-bidi: isolate; }
.tond-cmp-row .d { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); border-radius: 999px; padding: 2px 4px; }
.tond-cmp-row .d.up { color: var(--ok); background: var(--ok-soft); }
.tond-cmp-row .d.down { color: var(--bad); background: var(--bad-soft); }

/* finish sheet */
.tond-finish { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 4px; }
.tond-finish-score { font-size: 17px; font-weight: 700; line-height: 1.8; }
.tond-finish .bhca-link { margin-top: 2px; }

/* reminder sheet */
.tond-time-pick { display: flex; align-items: center; justify-content: center; gap: 10px; }
.tond-time-pick b { font-size: 26px; }
.tond-select { -webkit-appearance: none; appearance: none; border: 0; min-height: 56px; min-width: 92px; border-radius: 16px; background: var(--surface2); color: var(--ink); font-size: 24px; font-weight: 700; text-align: center; text-align-last: center; padding: 0 12px; }

/* lesson */
.tond-lesson .bhca-swipe-card { min-height: 280px; }

/* narrow screens */
@media (max-width: 359px) {
  .tond-hero-main b { font-size: 50px; }
  .tond-hero-side { min-width: 84px; padding: 8px 10px 6px; }
  .tond-hero-side b { font-size: 24px; }
  .bhca-stat b { font-size: 19px; }
  .bhca-stat { padding: 10px 10px 8px; }
  .bhca-stat span { font-size: 11.5px; }
  .tond-scale-lbls { font-size: 11px; }
  .tond-wgrid.pick .tond-w { font-size: 14px; }
  .tond-cell { font-size: 22px; }
  .tond-key { height: 54px; }
  .tond-controls { gap: 10px; }
}
@supports not (aspect-ratio: 1 / 1) {
  .tond-cell { min-height: 56px; }
}
/* one record per line, never broken inside «۴×۴: ۳۱٫۵ ثانیه» */
.tond-best-row .nw { display: block; white-space: nowrap; }
