/* Study plan: placement check, results and the test overview (js/plan-*.js, js/planner-ui.js).
   PTE tokens from global.css: --navy, --accent, --accent-lt, --bg, --border, --text1/2/3. */
.plan-shell { max-width: 640px; margin: 0 auto; background: white; border: 1px solid var(--border); border-radius: 18px; padding: 24px 20px; }
.plan-h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 8px; line-height: 1.3; }
.plan-lead, .pc-lead { font-size: 15px; color: var(--text2); line-height: 1.6; margin: 0 0 18px; }
.plan-note { font-size: 13px; color: var(--text2); line-height: 1.55; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.plan-link { appearance: none; background: none; border: 0; padding: 10px 0; color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.plan-go { width: 100%; padding: 13px; font-size: 15px; margin-top: 6px; }
.plan-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.plan-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text2); }
.plan-field input { padding: 12px; font-size: 16px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; }
.plan-bands { display: flex; flex-direction: column; gap: 10px; }
.plan-band { display: grid; grid-template-columns: 84px 32px 1fr; align-items: center; gap: 10px; font-size: 14px; }
.plan-band span { color: var(--text2); font-weight: 700; }
.plan-band b { font-variant-numeric: tabular-nums; color: var(--navy); }
.plan-band i { position: relative; height: 8px; border-radius: 99px; background: var(--bg); }
.plan-band i::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 99px; background: var(--accent); }
.plan-band.gap i::before { background: #d97706; }
.plan-band i::after { content: ''; position: absolute; top: -4px; bottom: -4px; left: var(--t); width: 2px; background: var(--navy); }
[dir="rtl"] .plan-band i::before { inset: 0 0 0 auto; }
[dir="rtl"] .plan-band i::after { left: auto; right: var(--t); }

/* Placement check */
.pc-steps { display: flex; gap: 4px; margin-bottom: 14px; }
.pc-steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--border); }
.pc-steps i.on { background: var(--accent); }
.pc-kicker { font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.pc-play { min-height: 44px; padding: 0 22px; margin-bottom: 12px; }
.pc-input { width: 100%; box-sizing: border-box; padding: 14px; font-size: 16px; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; }
.pc-input:focus { outline: none; border-color: var(--accent); }
.pc-card { text-align: left; }
.pc-passage { background: var(--bg); border-radius: 12px; padding: 14px; line-height: 1.6; font-size: 15px; margin: 0 0 12px; }
.pc-q { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--navy); margin: 0 0 12px; }
.pc-opts { display: flex; flex-direction: column; gap: 8px; }
.pc-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; text-align: left; font: inherit; font-size: 15px; color: var(--navy); background: white; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.pc-opt b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); font-size: 12px; color: var(--text3); }
.pc-opt.sel { border-color: var(--accent); background: var(--accent-lt); }
.pc-opt.sel b { background: var(--accent); border-color: var(--accent); color: white; }
.pc-opt:active { transform: scale(0.98); }
.pc-row { display: flex; gap: 10px; margin-top: 18px; }
.pc-row > * { flex: 1; min-height: 46px; }

/* Test overview */
.ov { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; }
.ov-title { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.ov-lead, .ov-p { font-size: 15px; color: var(--text2); line-height: 1.65; margin: 0 0 14px; max-width: 65ch; }
.ov-h { font-size: 18px; font-weight: 800; color: var(--navy); margin: 32px 0 12px; }
.ov-scale { display: flex; flex-direction: column; gap: 4px; height: 300px; }
.ov-seg { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-radius: 10px; font-size: 14px; min-height: 40px; }
.ov-seg b { font-weight: 800; } .ov-seg span { font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-sw { background: #ede9fe; color: #4c1d95; } .ov-r { background: #dcfce7; color: #166534; } .ov-l { background: #e0f2fe; color: #075985; }
.ov-part { border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.ov-part-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.ov-part-h b { font-size: 16px; }
.ov-part p { margin: 0; color: var(--navy); line-height: 1.6; font-size: 15px; }
.ov-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ov-skills button { min-height: 40px; padding: 0 16px; border-radius: 50px; border: 1.5px solid var(--border); background: white; font: inherit; font-size: 14px; font-weight: 700; color: var(--text2); cursor: pointer; transition: background .15s ease, color .15s ease; }
.ov-skills button.on { background: var(--navy); border-color: var(--navy); color: white; }
.ov-tasks { list-style: none; margin: 0; padding: 0; background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ov-tasks li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text3); transition: background .15s ease, color .15s ease; }
.ov-tasks li:first-child { border-top: 0; }
.ov-tasks li.hit { background: var(--accent-lt); color: var(--navy); font-weight: 700; }
.ov-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ov-tags i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 50px; background: var(--bg); color: var(--text2); }
.ov-target { margin-top: 14px; }
.ov-facts { margin: 0; padding-inline-start: 20px; line-height: 1.65; color: var(--navy); max-width: 65ch; }
.ov-facts li { margin-bottom: 8px; }
.ov-done { margin-top: 28px; width: 100%; padding: 13px; font-size: 15px; }
@media (min-width: 640px) {
  .plan-shell { padding: 30px; }
  .ov-scale { flex-direction: row; height: 72px; }
  .ov-seg { flex-direction: column; align-items: flex-start; justify-content: center; }
  .plan-grid4 { grid-template-columns: repeat(4, 1fr); }
  .ov-done { width: auto; padding: 13px 32px; }
}
@media (prefers-reduced-motion: reduce) { .pc-opt, .ov-skills button, .ov-tasks li { transition: none; } }
@media (max-width: 639px) { #pane-plan { padding: 0 12px 60px !important; } }
