/* a card is read line by line, so a session keeps to a column */
.session .page { max-width: calc(640px + 2 * var(--gut)); }
.vocab-home .hint { color: var(--muted); font-size: .92rem; margin: .5rem 0 0; }
.vocab-home h2 { margin-top: 2.25rem; }
/* six tiles: two rows of three, and pairs on a phone (style.css) */
@media (min-width: 561px) { .vocab-home .stats { grid-template-columns: repeat(3, 1fr); } }

.startbar [data-testid=plan] { color: var(--muted); }

.prefs fieldset { border: 0; padding: 0; margin: 1.25rem 0 0; }
.prefs legend { padding: 0; margin-bottom: .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.mywords { border-top: 1px solid var(--line); }
.myword { border-bottom: 1px solid var(--line); padding: .55rem 0; }
.myword summary { display: flex; gap: .75rem; align-items: baseline; cursor: pointer; }
.myword summary .say { align-self: center; margin: -.4rem 0; }
.myword .status { margin-left: auto; color: var(--muted); font-size: .9rem; text-align: right; }
.myword[open] { padding-bottom: 1rem; }
.lvl { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 .5rem; font: 600 .75rem/1.6 system-ui, sans-serif; color: var(--muted); vertical-align: middle; }

.session { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; min-height: 100dvh; }
.session .page { width: 100%; padding-top: 1.5rem; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.4rem 1.4rem; }
.kind { margin: 0 0 .75rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.word { font: 700 2rem/1.2 var(--serif); margin: 0 0 .25rem; }
.word .pos { font: italic 400 1rem var(--serif); color: var(--muted); }
.meaning { font-size: 1.1rem; margin: .5rem 0 1rem; }
.facts { margin: 0; }
.facts dt { margin-top: .8rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: .15rem 0 0; }
.from { margin: 0 0 .75rem; color: var(--muted); font-family: var(--serif); font-style: italic; }
.example { margin: 1.25rem 0 0; padding-left: .85rem; border-left: 3px solid var(--blue); font-family: var(--serif); font-style: italic; }
.task { font-size: 1.05rem; }

.sentence { font-family: var(--serif); font-size: 1.2rem; line-height: 2; margin: 0 0 .75rem; }
.sentence input { font: inherit; width: calc(var(--len) * 1ch + 1.5rem); max-width: 100%; margin: 0 .2rem; padding: 0 .3rem; border: 0; border-bottom: 2px solid var(--blue); border-radius: 4px 4px 0 0; background: var(--blue-soft); text-align: center; }
.sentence input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
mark { background: var(--mark); border-radius: 3px; padding: .05em .2em; }
.clue { margin: 0; color: var(--muted); }
.example + .clue { margin-top: .75rem; }
.letters { margin: .35rem 0 0; font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace; letter-spacing: .06em; }
.letters small { font-family: system-ui, sans-serif; letter-spacing: 0; color: var(--muted); }
.field { display: grid; gap: .4rem; font-size: .95rem; color: var(--muted); }
.field input, .card textarea { font: inherit; font-size: 1rem; color: var(--ink); width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; }
.field input:focus, .card textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.card textarea { resize: vertical; margin-top: .25rem; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.card .error { margin: .25rem 0 0; min-height: 0; }
.feedback.meh { background: var(--warn-soft); }
.feedback .better { font-family: var(--serif); font-style: italic; }
.feedback mark { background: none; font-weight: 700; padding: 0; }
.remind { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.remind summary { cursor: pointer; color: var(--blue-text); }

.vocab .score { font-size: 1.4rem; }
.outcomes { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); column-gap: 3.5rem; }
.outcomes li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.outcomes span { color: var(--muted); }
.outcomes .missed strong { color: var(--red); }

.scene { margin: 0 0 .75rem; color: var(--muted); font-style: italic; }
.targets { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 .5rem; }
.targets li { border: 1px solid var(--line); border-radius: 999px; padding: .1rem .75rem; font-weight: 600; font-size: .92rem; }
.targets .ok { border-color: var(--green); background: var(--ok-soft); color: var(--green); }
.targets .ok::before { content: '✓ '; }
.targets .meh { border-color: var(--amber); background: var(--warn-soft); }
.targets .bad { border-color: var(--red); background: var(--bad-soft); }
.talk .remind { margin-top: .5rem; padding-top: .5rem; }
.talk .remind p { margin: .35rem 0 0; }
.chat { list-style: none; display: grid; gap: .6rem; padding: 0; margin: 1.25rem 0 0; }
.chat li { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.chat .them { justify-self: start; background: var(--raised); border-bottom-left-radius: 4px; }
.chat .you { justify-self: end; background: var(--blue-soft); border-bottom-right-radius: 4px; }
.chat .you > p { margin: 0; }
.chat .note { margin: .5rem 0 0; padding-top: .45rem; border-top: 1px solid var(--line); font-size: .9rem; }
.chat .note.ok strong { color: var(--green); }
.chat .note.meh strong { color: var(--amber); }
.chat .note.bad strong { color: var(--red); }
.chat .note.tip strong { color: var(--blue-text); }
.typing { margin: .75rem 0 0; color: var(--muted); font-style: italic; }
.talk .error button { margin-left: .5rem; }
#say { position: sticky; bottom: 0; background: var(--bg); padding: .75rem 0 .25rem; margin-top: 1rem; }
#say textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; resize: vertical; }
#say textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
#say .row { margin-top: .5rem; }
.chances { max-width: 46rem; list-style: none; padding: 0; margin: .5rem 0 2rem; border-top: 1px solid var(--line); }
.chances li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.chances p { margin: 0; }
.chances .better { font-family: var(--serif); font-style: italic; color: var(--muted); }

@media (max-width: 560px) {
  .card { padding: 1rem 1rem 1.1rem; }
  .session .page { padding: 1rem .75rem 3rem; }
  .myword summary { flex-wrap: wrap; }
}
