/* Shared practice-room palette and typography; worksheet print rules stay in the exercise. */
.unit-practice, .checkpoint-practice { font-family: var(--site-font); }
.unit-practice *, .checkpoint-practice * { box-sizing: border-box; }
.unit-practice { margin: 0; min-height: 100vh; background: #f6f3e9; color: #303f35; line-height: 1.6; }
.unit-practice :focus-visible { outline: 2px solid #a44c3b; outline-offset: 4px; }
.practice-nav { max-width: 1000px; margin: 20px auto 0; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #d6cdb9; border-top: 3px solid #365e50; border-radius: 6px; background: #fffcf3; }
.practice-nav .back { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 10px; color: #365e50; background: #e8eee5; border: 1px solid #bdcbbb; border-radius: 4px; font-size: 15px; text-decoration: none; }
.practice-nav .back:hover { border-color: #365e50; }
.practice-nav .back span, .nav-subject span { font-size: 12px; }
.nav-subject { color: #586254; white-space: nowrap; }
.unit-practice main { max-width: 1000px; margin: 0 auto; padding: 30px 0 50px; }
.eyebrow { margin: 0 0 8px; color: #7c5e3f; font-size: 14px; letter-spacing: 1px; }
.eyebrow span { margin-left: 10px; font-size: 12px; letter-spacing: 0; }
.practice-intro { padding: 0 4px 24px; }
.practice-intro h1, .checkpoint-intro h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); font-weight: 600; line-height: 1.4; letter-spacing: 2px; }
.practice-intro h1 small, .checkpoint-intro h1 small { display: block; color: #586254; font-size: 15px; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.intro-copy { margin: 14px 0 0; color: #586254; font-size: 17px; }
.unit { border: 1px solid #d6cdb9; border-top: 3px solid #365e50; border-radius: 6px; background: #fffcf3; padding: 24px; }
.unit-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.unit h2 { margin: 0; font-size: 25px; font-weight: 600; }
.unit h2 small { margin-left: 12px; font-size: 14px; color: #586254; font-weight: 400; }
.unit-count { font-size: 13px; color: #586254; white-space: nowrap; }
.practice-list { margin: 0; padding: 0; list-style: none; }
.practice-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; border: 1px solid #bdcbbb; border-radius: 6px; background: #f0f3e9; color: inherit; padding: 22px; text-decoration: none; transition: border-color .15s, background .15s; }
.practice-item:hover { border-color: #365e50; background: #e8eee5; }
.section-seal { display: grid; place-items: center; width: 64px; height: 70px; background: #365e50; border-radius: 4px; color: #fffcf3; font-size: 38px; }
.practice-item-copy { min-width: 0; }
.practice-item-copy strong { display: block; font-size: 23px; font-weight: 600; }
.practice-item-copy small { display: block; font-size: 14px; color: #586254; }
.practice-description { display: block; margin-top: 12px; font-size: 16px; }
.practice-meta { display: block; margin-top: 6px; color: #586254; font-size: 13px; }
.practice-enter { color: #365e50; font-size: 15px; white-space: nowrap; }
.practice-enter span { margin-left: 10px; }
.unit-note { margin: 18px 0 0; color: #586254; font-size: 14px; }
.practice-footer { text-align: center; color: #586254; font-size: 13px; padding: 0 20px 24px; }
@media (max-width: 1040px) { .practice-nav, .unit-practice main { margin-left: 20px; margin-right: 20px; } }
@media (max-width: 600px) {
  .practice-nav { margin: 12px 12px 0; padding: 10px; }
  .practice-nav .back span { display: none; }
  .unit-practice main { margin: 0 12px; padding-top: 24px; }
  .practice-intro { padding-bottom: 22px; }
  .practice-intro .eyebrow span { display: block; margin-left: 0; margin-top: 3px; }
  .unit { padding: 18px 14px; }
  .unit h2 small { display: block; margin-left: 0; }
  .practice-item { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .section-seal { width: 48px; height: 56px; font-size: 30px; align-self: start; }
  .practice-item-copy strong { font-size: 21px; }
  .practice-enter { grid-column: 2; padding-top: 2px; }
  .practice-description { font-size: 15px; }
}
@media screen {
  .checkpoint-practice {
    --cream: #f6f3e9; --card: #fffcf3; --ink: #303f35; --ink-soft: #586254; --line: #d6cdb9;
    --orange: #8c713e; --pick: #a44c3b; --ok: #365e50; --bad: #ac3c36; --shadow: none;
    background: var(--cream); color: var(--ink);
  }
  .checkpoint-practice .toolbar { position: relative; width: 100%; max-width: none; margin: 0; padding: 8px 20px; background: var(--card); border: 0; border-top: 3px solid var(--ok); border-bottom: 1px solid var(--line); border-radius: 0; gap: 8px 12px; }
  .checkpoint-practice .toolbar a, .checkpoint-practice .toolbar button, .checkpoint-practice .pill { min-height: 40px; border-width: 1px; border-radius: 5px; font-size: 15px; font-weight: 400; }
  .checkpoint-practice .toolbar a { background: #e8eee5; border-color: #bdcbbb; color: #365e50; }
  .checkpoint-practice .toolbar .primary:hover, .checkpoint-practice .pill.primary:hover { background: #29493e; border-color: #29493e; }
  .checkpoint-practice main { max-width: 1000px; padding: 16px 16px 40px; }
  .checkpoint-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 0 2px 14px; }
  .checkpoint-intro h1 { font-size: 23px; letter-spacing: 1px; }
  .checkpoint-intro h1 small { margin-top: 2px; font-size: 12px; }
  .checkpoint-intro > p:last-of-type { margin: 12px 0 0; color: var(--ink-soft); font-size: 16px; }
  .checkpoint-intro > p:last-of-type span { display: block; margin-top: 3px; font-size: 13px; }
  .practice-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
  .practice-steps a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid #bdcbbb; border-radius: 4px; color: #365e50; font-size: 14px; text-decoration: none; background: #fffcf3; }
  .practice-steps a span { color: #7c5e3f; }
  .practice-steps a:hover { background: #e8eee5; border-color: #365e50; }
  .checkpoint-practice .sheet { padding: 24px 28px 18px; border: 1px solid var(--line); border-top: 3px solid var(--ok); border-radius: 6px; box-shadow: none; }
  .checkpoint-practice .sheet-top { align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .checkpoint-practice .name-line { flex: 1 1 260px; font-size: 17px; font-weight: 400; }
  .checkpoint-practice .name-line input { font-family: var(--site-font); font-size: 21px; font-weight: 400; border-bottom-width: 1px; }
  .checkpoint-practice .unit-tag { display: none; }
  .checkpoint-practice .unit-tag span { display: block; font-size: 11px; margin-top: 4px; }
  .checkpoint-practice .sheet-title { display: none; }
  .checkpoint-practice .part { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 18px; }
  .checkpoint-practice .part.first { border-top: 0; margin-top: 18px; padding-top: 0; }
  .checkpoint-practice .part-head { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; margin-bottom: 20px; }
  .checkpoint-practice .badge { display: none; }
  .checkpoint-practice .ins .zh { font-size: 22px; font-weight: 600; line-height: 1.55; }
  .checkpoint-practice .qn { width: 29px; height: 30px; border-radius: 4px; background: #365e50; font-size: 17px; font-weight: 400; vertical-align: 1px; }
  .checkpoint-practice .ins .en { margin-top: 5px; font-size: 15px; font-weight: 400; line-height: 1.6; }
  .checkpoint-practice .hint { margin-top: 10px; font-size: 14px; font-weight: 400; line-height: 1.7; }
  .checkpoint-practice .hint span { display: block; font-size: 12px; }
  .checkpoint-practice .part-tools { gap: 10px; padding-top: 3px; }
  .checkpoint-practice .speak { border-width: 1px; border-radius: 6px; background: #e8eee5; }
  .checkpoint-practice .score { font-size: 16px; font-weight: 400; color: var(--ink-soft); }
  .checkpoint-practice .score .got { min-width: 28px; border-bottom-width: 1px; }
  .checkpoint-practice .sub-title { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
  .checkpoint-practice .ct-row, .checkpoint-practice .mo-row, .checkpoint-practice .fw-row, .checkpoint-practice .dr-row { border-color: #91a48c; border-width: 1px; background: #fffef9; }
  .checkpoint-practice .ct-cell + .ct-cell, .checkpoint-practice .fw-box + .fw-box, .checkpoint-practice .dr-bugs { border-color: #bdcbbb; border-width: 1px; }
  .checkpoint-practice .mo-row { border-top-width: 0; padding: .7em .8em; }
  .checkpoint-practice .mo-row:first-child { border-top-width: 1px; }
  .checkpoint-practice .fg-hand:hover, .checkpoint-practice .fg-num:hover, .checkpoint-practice .ct-num:hover, .checkpoint-practice .fw-group:hover, .checkpoint-practice .dr-pad:hover { background: #edf1e8; }
  .checkpoint-practice .fg-hand.sel, .checkpoint-practice .fg-num.sel { background: #f6e8dd; }
  .checkpoint-practice .end-actions .pill { min-height: 44px; font-size: 17px; }
  .checkpoint-practice .sheet-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 400; font-size: 11px; line-height: 1.7; }
  .checkpoint-practice .result { border-width: 1px; border-left-width: 4px; border-radius: 6px; box-shadow: 0 4px 18px #303f3515; }
  .checkpoint-practice dialog { border: 1px solid var(--line); border-top: 3px solid var(--ok); border-radius: 6px; }
  .checkpoint-practice dialog::backdrop { background: #303f3566; }
  .checkpoint-practice .print-opt { border-width: 1px; border-radius: 5px; }
  @media (max-width: 600px) {
    .checkpoint-practice .toolbar { margin: 0; padding: 8px 12px; }
    .checkpoint-practice .toolbar .actions { gap: 6px; }
    .checkpoint-practice .toolbar a, .checkpoint-practice .toolbar button { font-size: 14px; padding: 6px 10px; }
    .checkpoint-practice main { padding: 14px 12px 30px; }
    .checkpoint-practice .sheet { padding: 18px 14px 14px; }
    .checkpoint-practice .part-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .checkpoint-practice .part-tools { grid-column: auto; justify-content: space-between; }
    .checkpoint-practice .ins .zh { font-size: 20px; }
    .checkpoint-practice .ins .en { font-size: 14px; }
    .checkpoint-practice .fw-box + .fw-box { border-left: 0; border-top-width: 1px; }
    .checkpoint-practice .dr-bugs { border-right: 0; border-bottom-width: 1px; }
  }
  @media (max-width: 480px) { .checkpoint-practice .ct-cell + .ct-cell { border-left: 0; border-top-width: 1px; } }
}
@media print { .checkpoint-intro { display: none; } }
@media print {
  .checkpoint-practice .name-line, .checkpoint-practice .sheet-foot {
    font-family: var(--site-font); font-weight: 400;
  }
}
@media screen and (max-width: 380px) {
  .checkpoint-practice .mo-rows { font-size: 7px; }
}
