/* Scenario picker and the other tutor entry points. The embedded waveform repeats on the voice screen. */
.tutor-home { max-inline-size: 62rem; }
.tt-head { gap: 6px; margin-block-end: 18px; }
.tt-head h1 { margin: 0; font-size: clamp(1.45rem, 4vw + .55rem, 2.45rem); line-height: 1.35; }
.tt-head p { max-inline-size: 60ch; margin: 0; }
.tt-head .quota-left, .tt-head .quota-out { margin-block-start: 4px; }
.tutor-home .tt-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-block: 0 16px;
  padding: 4px; border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--card);
}
.tt-tabs a {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-inline-size: 0; min-block-size: 46px;
  padding: 6px 3px; border-radius: var(--r-ctl); color: var(--ink-2);
  text-align: center; text-decoration: none; font-weight: 650; font-size: var(--fs-xs); line-height: 1.4;
}
.tt-tabs a .ic { flex: none; inline-size: 17px; block-size: 17px; }
.tt-tabs a.on { background: var(--accent-soft); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .tt-tabs a:not(.on):hover { background: var(--fill-q); color: var(--ink); } }
@media (max-width: 375px) { .tt-tabs a { flex-direction: column; gap: 2px; } }

.tt-feat {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px;
  align-items: center; margin-block-end: 26px; padding: clamp(14px, 4vw, 25px); overflow: hidden;
  border-radius: var(--r-card); background: var(--voice-night); color: var(--voice-white);
  box-shadow: var(--sh-card);
}
.tt-feat-copy { display: grid; gap: 5px; min-inline-size: 0; }
.tt-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: var(--fs-xs); color: var(--voice-mint); }
.tt-kicker .lvl { background: var(--voice-frost); color: var(--voice-white); }
.tt-feat-h { margin: 0; font-size: clamp(1.15rem, 2vw + .7rem, 2rem); line-height: 1.35; text-wrap: balance; }
.tt-feat-p { margin: 0; max-inline-size: 48ch; font-size: var(--fs-sm); line-height: 1.75; color: var(--voice-white); }
.tt-feat-mark {
  position: relative; display: grid; place-items: center; justify-self: center; isolation: isolate;
  inline-size: clamp(48px, 14vw, 105px); aspect-ratio: 1; color: var(--voice-mint);
}
.tt-feat-mark::before, .tt-feat-mark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28%;
  border: 1px solid var(--voice-frost); transform: rotate(45deg);
}
.tt-feat-mark::after { inset: 14%; border-color: currentColor; opacity: .55; }
.tt-feat-mark > span {
  display: grid; place-items: center; inline-size: 62%; aspect-ratio: 1;
  border-radius: 22%; background: var(--voice-mint); color: var(--voice-night);
}
.tt-feat-mark .ic { inline-size: 64%; block-size: 64%; }
.tt-feat-form, .tt-feat > .tt-feat-go { grid-column: 1 / -1; margin: 0; }
.tt-feat-go.btn {
  display: flex; inline-size: 100%; min-block-size: 48px; justify-content: space-between; padding-inline: 14px;
  background: var(--voice-mint); color: var(--voice-night);
}
.tt-feat-go:focus-visible { outline-color: var(--voice-mint); }
.sc-sheet .sc-voice-go.btn { background: var(--voice-accent); color: var(--on-accent); }
.sc-sheet .sc-x { inline-size: 44px; block-size: 44px; }
.sc-sheet .sc-go { min-block-size: 48px; padding-inline: 7px; font-size: var(--fs-sm); }
.sc-sheet .sc-go .ic { flex: none; }

/* the list head: a title and the level control (a segmented control; every level by default) */
.tt-sec-head { display: grid; gap: 10px; margin-block-end: 14px; }
.tt-sec-h { margin: 0; padding-inline: 4px; font-size: var(--fs-lg); }
.tutor-home .tt-seg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; margin: 0; padding: 2px; border-radius: 12px; background: var(--fill-q); }
.tt-seg a { display: grid; place-items: center; min-block-size: 44px; border-radius: 10px; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
  transition: background-color var(--sp-dur) var(--sp-ease), color var(--sp-dur) var(--sp-ease), transform var(--sp-dur) var(--sp-ease); }
.tt-seg a .en { font-weight: 700; }
.tt-seg a.on { background: var(--seg-on); color: var(--ink); box-shadow: var(--sh-seg); }
.tt-seg a:active { transform: scale(.96); transition-duration: var(--dur-1); }
.tt-seg a:focus-visible { outline: var(--ring-w) solid var(--ring); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .tt-seg a:not(.on):hover { color: var(--ink); } }
@media (prefers-contrast: more) { .tt-seg a.on { box-shadow: inset 0 0 0 1.5px var(--ink); } }

/* a path = a section with an inset grouped list; a path with nothing at the chosen level is not rendered */
.tt-path { margin-block-end: 26px; scroll-margin-block-start: 72px; }
.tt-path-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding-inline: 4px; font-size: var(--fs-md); font-weight: 700; }
.tt-path-ic { display: grid; place-items: center; flex: none; inline-size: 28px; block-size: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); }
.tt-path-ic .ic { inline-size: 16px; block-size: 16px; }
.tt-path-n { margin-inline-start: auto; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; }
.tt-empty { margin: 0 0 24px; padding: 14px 16px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-card); }
.tt-empty a { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 700; }

.tt-list { list-style: none; margin: 0; padding: 0; display: grid; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-card); overflow: hidden; }
.tt-row { position: relative; display: grid; }
.tt-row + .tt-row::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 62px 0; block-size: .5px; background: var(--sep); }
.tt-row-form { display: grid; margin: 0; }
.tt-row-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; inline-size: 100%; min-inline-size: 0; min-block-size: 64px; padding: 12px 16px;
  border: 0; background: none; color: var(--ink); font: inherit; text-align: start; text-decoration: none; cursor: pointer; border-radius: 0; touch-action: manipulation;
  transition: background-color var(--dur-1) var(--ease-std); }
.tt-row-main:disabled { cursor: default; opacity: .55; }
@media (hover: hover) and (pointer: fine) { .tt-row-main:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 4%, transparent); } }
.tt-row-main:active:not(:disabled) { background: color-mix(in srgb, var(--ink) 8%, transparent); transition: none; }
.tt-row-main:focus-visible { outline: var(--ring-w) solid var(--ring); outline-offset: -3px; }
.tt-row-main .lvl { flex: none; }
.tt-row-text { display: grid; gap: 2px; min-inline-size: 0; }
.tt-row-text b { font-size: var(--fs-md); line-height: 1.45; }
.tt-row-text small { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-row-go { display: grid; place-items: center; color: var(--ink-2); opacity: .55; }
.tt-row-go .ic { inline-size: 18px; block-size: 18px; }

/* the start sheet (.sc-sheet) is styled in tools.css, shared with the chat's options sheet */

/* «موقعیت خودت را بساز» */
.tt-make { display: grid; gap: 10px; margin-block-end: 20px; scroll-margin-block-start: 72px; border: 0; box-shadow: var(--sh-card); background: var(--card); }
.tt-make h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); margin: 0; }
.tt-make h2 .ic { inline-size: 22px; block-size: 22px; color: var(--accent-ink); }
.tt-make p { margin: 0; }
.tt-make textarea { inline-size: 100%; min-block-size: 72px; resize: vertical; font-size: max(16px, var(--fs-md)); line-height: 1.7; }
.tt-make .row { gap: 8px; }

/* free talk: the voice switch is one row of the form */
.tt-voice {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--sh-card);
}
.tt-voice .tt-voice-ic {
  display: grid; place-items: center; inline-size: 38px; aspect-ratio: 1;
  border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-ink);
}
.tt-voice-ic .ic { inline-size: 20px; block-size: 20px; }
.tt-start-actions .btn { min-block-size: 44px; }
.tt-recent { margin-block-start: 24px; display: grid; gap: 8px; }
.tt-recent h2 { font-size: var(--fs-lg); margin: 0; padding-inline: 4px; }
.tt-recent .row { align-items: center; }
.tt-recent a.small { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 600; }
.tt-recent-list .tt-row-main { min-block-size: 56px; }

@media (min-width: 760px) {
  .tt-feat { grid-template-columns: minmax(0, 1fr) minmax(9rem, 26%); padding: 26px 28px; }
  .tt-feat-mark { grid-column: 2; grid-row: 1 / 3; }
  .tt-feat-form, .tt-feat > .tt-feat-go { grid-column: 1; justify-self: start; }
  .tt-feat-go.btn { inline-size: auto; min-inline-size: 170px; gap: 20px; }
  .tt-feat-p, .tt-tabs a { font-size: var(--fs-base); }
  .tt-sec-head { grid-template-columns: 1fr auto; align-items: center; }
  .tutor-home .tt-seg { inline-size: 320px; }
  .tt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-row + .tt-row::before { inset-inline: 16px; }
  .tt-row:nth-child(2)::before { display: none; }
  .tt-recent-list { grid-template-columns: 1fr; }
  .tt-recent-list .tt-row:nth-child(2)::before { display: block; }
}
@media (max-width: 479px) {
  .tutor-home .tt-level legend { float: none; inline-size: 100%; margin-block-end: 6px; }  /* the five level chips keep one row */
}
@media (prefers-reduced-motion: reduce) { .tt-seg a, .tt-row-main { transition: none; } }
html[data-motion="0"] .tt-seg a, html[data-motion="0"] .tt-row-main { transition: none; }
