/* WSW: practice activities built on existing 5049 cards. Intentionally scoped. */
#practice-view{padding-bottom:40px}
#practice-view .practice-settings{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;margin:12px 0 18px}
#practice-view .practice-settings h2{margin:0 0 6px}
#practice-view .practice-settings>p{color:var(--muted);font-size:14px;line-height:1.65}
#practice-view .practice-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
#practice-view .practice-form label{display:grid;gap:7px;font-size:13px;color:var(--muted);font-weight:750;min-width:0}
#practice-view .practice-form select{min-height:48px;min-width:0;width:100%;max-width:100%;border:1px solid #b9cbd8;border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink)}
#practice-view .practice-start-row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
#practice-view #practice-pool-count{font-size:13px;color:var(--teal);font-weight:750}
#practice-view #practice-status{font-size:13px;color:var(--muted);margin-top:12px}
#practice-view .practice-notice{background:#e8f7f6;border-left:4px solid var(--teal);padding:12px 16px;border-radius:8px;font-size:13px;line-height:1.6}
#practice-view .practice-session-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}
#practice-view .practice-session-header .eyebrow{margin:0}
#practice-view .practice-session-count{font-weight:800;background:#e4f4f6;color:#11616b;border-radius:999px;padding:6px 12px;white-space:nowrap}
#practice-view .practice-flash-card,#practice-view .practice-case-card,#practice-view .practice-match,#practice-view .practice-finished{background:#fff;border:1px solid #d0e0e8;border-radius:20px;padding:clamp(18px,4vw,34px);box-shadow:0 12px 35px rgba(8,45,70,.06);margin-top:22px}
#practice-view .practice-term-label,#practice-view .practice-case-label{display:block;font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.03em;margin-bottom:10px}
#practice-view .practice-term{font-size:clamp(26px,5vw,42px);line-height:1.22;margin-bottom:25px;color:var(--navy)}
#practice-view .practice-flash-answer,#practice-view .practice-case-answer{padding:20px;margin:18px 0;border:1px solid #badde0;background:#f4fafb;border-radius:14px}
#practice-view .practice-flash-answer h3,#practice-view .practice-case-answer h3{font-size:15px;color:#046771;margin:16px 0 7px}
#practice-view .practice-flash-answer h3:first-child,#practice-view .practice-case-answer h3:first-child{margin-top:0}
#practice-view .practice-flash-answer p,#practice-view .practice-case-answer p{color:var(--ink);line-height:1.75;font-size:16px;margin-bottom:10px;white-space:pre-line}
#practice-view .practice-sources{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px;border-top:1px solid #d9e8ee;padding-top:15px}
#practice-view .practice-evidence{font-size:12px;color:#2d6876;font-weight:700}
#practice-view .practice-actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0 4px}
#practice-view .practice-error{color:#a12b22;font-size:13px;min-height:1em;margin-top:12px}
#practice-view .practice-loading{padding:25px;background:#fff;border:1px dashed #aac6d4;border-radius:14px;color:var(--muted)}
#practice-view .practice-match-list{display:grid;gap:12px;margin:20px 0}
#practice-view .practice-match-row{background:#f7fafd;border:1px solid #d7e4ec;padding:15px;border-radius:12px;display:grid;gap:10px}
#practice-view .practice-match-row.practice-correct{background:#eaf8f0;border-color:#83c89d}
#practice-view .practice-match-row.practice-wrong{background:#fff1ed;border-color:#e8a496}
#practice-view .practice-match-desc{font-size:15px;line-height:1.6;color:var(--ink);font-weight:650}
#practice-view .practice-match-select{width:100%;min-height:44px;border:1px solid #a9c1d0;border-radius:9px;background:#fff;color:var(--ink);padding:9px 11px}
#practice-view .practice-match-feedback{margin:0;font-size:12px;font-weight:750;color:#295569}
#practice-view .practice-match-verdict{font-weight:800;font-size:16px;min-height:22px;color:var(--navy)}
#practice-view .practice-case-prompt{white-space:pre-line;font-size:18px;line-height:1.7;color:var(--ink);background:#f7fafb;border:1px solid #dce8ed;padding:17px;border-radius:12px;margin:12px 0 20px}
#practice-view .practice-tip{color:var(--muted);font-size:12px;line-height:1.6;margin-top:15px}
#practice-view .practice-finished{text-align:center}
#practice-view .practice-finished .button{margin:5px}
#practice-view .practice-complete-icon{display:inline-grid;place-items:center;width:62px;height:62px;border-radius:50%;background:#e6f5ed;color:#067238;font-size:31px;margin-bottom:12px}
#wswTeacherStudentSwitch[aria-pressed="true"]{background:#dbf6ed;border-color:#3ea584;color:#065945;font-weight:800}
body.wsw-preview .note-box,body.wsw-preview .storage-box:has(#export){display:none}
body.wsw-preview .reader-top #favorite{display:none}
@media(max-width:700px){.topbar{height:auto;min-height:76px;flex-wrap:wrap;gap:7px;align-items:center;padding:10px 15px}.topbar .brand{margin-right:auto}.topbar .private-label{display:none}.topbar #account{order:4;flex-basis:100%;font-size:11px}.topbar #wswTeacherStudentSwitch,.topbar #logout{font-size:11px;min-height:36px;padding:6px 9px}.topbar>a[href="/wsw_v14_1444.html"]{order:5;font-size:11px;margin-bottom:3px}#practice-view .practice-form{grid-template-columns:1fr}#practice-view .practice-settings{padding:17px}#practice-view .practice-sources{align-items:stretch;flex-direction:column}#practice-view .practice-sources .button{width:100%}#practice-view .practice-actions .button{flex:1 1 140px}.bottom-nav{gap:0}.bottom-nav a{font-size:9px;min-width:0}#practice-view .practice-case-prompt{font-size:16px}}

/* Jawne, odwracalne oznaczenie podglądu — bez zmiany konta KW. */
#wswPreviewBanner.wsw-preview-banner{position:sticky;top:0;z-index:30;display:flex;gap:18px;align-items:center;justify-content:space-between;background:#e9f7f1;color:#124b39;border:1px solid #8bc5a8;border-radius:12px;padding:12px 15px;margin:12px 0 18px;box-shadow:0 3px 13px rgba(0,0,0,.045)}
#wswPreviewBanner[hidden]{display:none!important}
#wswPreviewBanner strong{margin-right:9px}
#wswPreviewBanner .button{flex:0 0 auto}
@media(max-width:700px){#wswPreviewBanner.wsw-preview-banner{flex-direction:column;align-items:stretch;gap:9px}#wswPreviewBanner .button{width:100%}}

/* WSW V15.2: pisemna odpowiedź i niezależne metody pracy. */
#practice-view .practice-written-card{background:#fff;border:1px solid #cfe1e9;border-radius:20px;padding:clamp(18px,4vw,34px);box-shadow:0 12px 35px rgba(8,45,70,.06);margin-top:22px}
#practice-view .practice-written-input{display:block;width:100%;min-height:136px;max-width:100%;min-width:0;resize:vertical;line-height:1.65;color:var(--ink);background:#fff;border:2px solid #9dbac9;border-radius:12px;padding:14px 16px;font:inherit;font-size:16px;margin:8px 0 12px}
#practice-view .practice-written-input:focus-visible{outline:3px solid #008996;outline-offset:2px}
#practice-view .practice-written-input[readonly]{background:#f6f9fa;color:#243e4d;cursor:default}
#practice-view .practice-write-label{display:block;font-weight:800;color:var(--navy);font-size:15px;margin:0 0 8px}
#practice-view .practice-written-yours{padding:14px 16px;background:#fff;border:1px solid #b3cedb;border-left:4px solid var(--teal);border-radius:10px;margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}
#practice-view .practice-written-yours p{white-space:pre-wrap;overflow-wrap:anywhere}
#practice-view .practice-reflection{background:#fffdf4;border:1px solid #e7d6a4;border-radius:10px;padding:14px 16px;margin:16px 0}
#practice-view .practice-reflection p{font-size:14px;line-height:1.6;margin:5px 0 0}
#practice-view .practice-mode-help{margin:-5px 0 17px;color:#205b70;background:#f0f8fc;padding:10px 12px;border-left:3px solid #008995;border-radius:6px;font-size:13px;line-height:1.6}
#practice-view .practice-other-methods{background:#fff;border:1px solid #d0e0e8;border-radius:18px;padding:clamp(16px,3vw,26px);margin:25px 0 0}
#practice-view .practice-other-methods>h2{margin:0 0 10px;color:var(--navy)}
#practice-view .practice-other-methods>p{font-size:14px;color:var(--muted);line-height:1.65}
#practice-view .practice-other-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
#practice-view .practice-other-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:20px;background:#f6fbfc;border:1px solid #d2e2e9;border-radius:14px}
#practice-view .practice-other-card h3{margin:0;font-size:19px;color:var(--navy)}
#practice-view .practice-other-card p{margin:0;line-height:1.6;font-size:14px;color:#405e6c;flex:1}
#practice-view .practice-other-card .button{margin-top:auto;white-space:normal}
@media(max-width:700px){#practice-view .practice-other-grid{grid-template-columns:1fr}#practice-view .practice-other-card{padding:16px}#practice-view .practice-written-input{min-height:150px}#practice-view .practice-written-card{padding:17px}}
