/* Wah-Kit Prompt lab */
.pl { padding-bottom: 40px; }
.pl h1 { font: 800 clamp(26px, 4vw, 38px) var(--font-display); margin: 0; letter-spacing: -.5px; }
.pl h2 { font: 800 21px var(--font-display); margin: 18px 0 8px; }
.pl h3 { font: 800 17px var(--font-display); margin: 0 0 8px; }
.pl .muted { color: var(--muted); }
.pl code { font-family: ui-monospace, Consolas, monospace; background: #F1F5F9; border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.pl-crumbs { font-size: 14px; color: var(--muted); padding: 16px 0 4px; }
.pl-crumbs a { color: var(--ink-soft); }
.pl-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #0F766E; }
/* hub */
.pl-hero { padding: 24px 0 6px; max-width: 840px; }
.pl-hero p { color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.pl-guide { max-width: 840px; }
.pl-lesson { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.pl-lesson h3 { display: flex; align-items: center; gap: 10px; }
.pl-lesson h3 span { width: 30px; height: 30px; border-radius: 50%; background: #0F766E; color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.pl-lesson p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.pl-anat { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.pl-part { border-radius: 12px; padding: 9px 12px; border-left: 6px solid; background: #F8FAFC; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.pl-part b { font-size: 15px; }
.p-role { border-color: #94A3B8; } .p-task { border-color: #7C3AED; } .p-input { border-color: #0EA5E9; } .p-rules { border-color: #F97316; } .p-format { border-color: #16A34A; } .p-example { border-color: #CA8A04; }
.pl-group { margin-top: 16px; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pl-card { display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pl-card:hover { border-color: #0F766E; box-shadow: 0 4px 14px rgba(15, 118, 110, .12); }
.pl-card b { font-size: 16.5px; } .pl-card small { color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.pl-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 4px; font-size: 13px; }
.pl-meta i { font-style: normal; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.lv-easy { background: #DCFCE7; color: #166534; } .lv-medium { background: #FEF3C7; color: #92400E; } .lv-hard { background: #FEE2E2; color: #991B1B; }
.pl-prog { color: var(--muted); font-weight: 700; } .pl-prog.done { color: #15803D; }
.pl-soon { margin-top: 26px; background: #F0FDFA; border: 1px dashed #5EEAD4; border-radius: 16px; padding: 14px 16px; }
.pl-soon p { margin: 0; }
/* task page */
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; margin-top: 8px; }
.pl-problem { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.pl-problem p, .pl-problem li { font-size: 16px; line-height: 1.55; }
.pl-problem h2 { font-size: 17px; margin: 14px 0 4px; }
.pl-fmt { font-size: 15px !important; font-weight: 700; }
.pl-note { background: #F0FDFA; border-radius: 10px; padding: 8px 12px; font-size: 15px !important; }
.pl-sample { margin-top: 10px; }
.pl-io { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.pl-io small, .pl-exp small { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pl pre { margin: 3px 0 0; background: #0F172A; color: #E2E8F0; border-radius: 10px; padding: 9px 11px; font: 13.5px/1.45 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.pl-work { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pl-editor-wrap { background: #0F172A; border-radius: 18px; padding: 10px; }
.pl-bar { display: flex; justify-content: space-between; align-items: baseline; color: #E2E8F0; padding: 2px 4px 8px; }
.pl-bar small { color: #94A3B8; }
.pl-editor { width: 100%; min-height: 240px; resize: vertical; background: #111827; color: #F8FAFC; border: 1px solid #334155; border-radius: 12px; padding: 12px; font: 14.5px/1.55 ui-monospace, Consolas, monospace; box-sizing: border-box; }
.pl-editor:focus { outline: 2px solid #14B8A6; }
.pl-tools { display: flex; gap: 10px; align-items: center; padding-top: 8px; }
.pl-tools .btn-ghost { background: #1E293B; color: #E2E8F0; border-color: #334155; }
.pl-tools .linkbtn { color: #94A3B8; }
.pl-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.pl-panel h2 { margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.pl-score { font-size: 15px; border-radius: 999px; padding: 2px 10px; }
.pl-score.good { background: #DCFCE7; color: #166534; } .pl-score.ok { background: #FEF3C7; color: #92400E; } .pl-score.low { background: #FEE2E2; color: #991B1B; }
.pl-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-check li { display: flex; gap: 9px; align-items: flex-start; padding: 6px 8px; border-radius: 10px; }
.pl-check li span { font-weight: 800; width: 18px; flex: none; }
.pl-check li.ok span { color: #16A34A; } .pl-check li.no { background: #FFFBEB; } .pl-check li.no span { color: #CA8A04; }
.pl-check li b { font-size: 15px; font-weight: 700; } .pl-check li small { display: block; color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; }
.pl-sum { font: 800 16px var(--font-body); padding: 10px 14px; border-radius: 12px; background: #F1F5F9; margin-bottom: 10px; }
.pl-sum.some { background: #FEF3C7; color: #92400E; } .pl-sum.all { background: #DCFCE7; color: #166534; }
.pl-cases { display: flex; flex-direction: column; gap: 8px; }
.pl-case { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.pl-case summary { cursor: pointer; display: flex; align-items: center; gap: 9px; font-size: 15.5px; padding: 3px 0; }
.pl-case summary small { color: var(--muted); }
.pl-dot { width: 12px; height: 12px; border-radius: 50%; background: #CBD5E1; flex: none; }
.pl-case.pass .pl-dot { background: #16A34A; } .pl-case.fail .pl-dot { background: #DC2626; }
.pl-case.pass { border-color: #86EFAC; } .pl-case.fail { border-color: #FCA5A5; }
.pl-case[open] { display: flex; flex-direction: column; gap: 8px; }
.pl-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-steps > span { width: 24px; height: 24px; border-radius: 50%; background: #0F766E; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.pl-steps small { color: var(--ink-soft); }
.pl-reply { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; font: 14px/1.45 ui-monospace, Consolas, monospace; resize: vertical; }
.pl-verdict p { margin: 2px 0; font-size: 15px; }
.pl-verdict p.ok { color: #15803D; font-weight: 800; } .pl-verdict p.no { color: #B91C1C; font-weight: 800; }
.pl-why { color: var(--ink-soft); font-weight: 400 !important; }
.pl-model { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 18px; padding: 12px 16px; }
.pl-model summary { cursor: pointer; font-weight: 800; font-size: 16px; }
.pl-model ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.pl-model li code { display: block; white-space: pre-wrap; background: #fff; padding: 6px 9px; border-radius: 8px; font-size: 13.5px; }
.pl-model li small { color: #92400E; font-size: 13.5px; }
.pl-model .btn { margin: 4px 6px 0 0; }
.pl-nextprev { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; font-weight: 700; }
@media (max-width: 900px) {
  .pl-layout { grid-template-columns: 1fr; }
  .pl-problem { position: static; max-height: none; }
  .pl-io { grid-template-columns: 1fr; }
  .pl-editor { min-height: 200px; font-size: 14px; }
}
