:root{--ds-page:#f6f3ef;--ds-ink:#1d1b2e;--ds-ink-2:#5b5870;--ds-ink-4:#a3a0b3;--ds-hairline:#e2ddd6;--ds-teal:#0f9d8a;--ds-red:#c62f3b}body{font-family:system-ui,-apple-system,Segoe UI,Tahoma,Arial,sans-serif;color:var(--ds-ink)}.ds-card{max-width:560px;margin:0 auto;padding:16px 16px 40px;box-sizing:border-box;line-height:1.6}.ds-closing,.ds-caption{color:var(--ds-ink-2);font-size:12px}.ds-link{color:var(--ds-teal)}.ds-card{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(40px,env(safe-area-inset-bottom))}html,body,#root{margin:0;min-height:100%}body{background:var(--ds-page)}.pha-title{font-size:22px;font-weight:600;margin:0 0 8px;color:var(--ds-ink)}.pha-muted{color:var(--ds-ink-2);margin:0 0 16px;font-size:14px;line-height:1.7}.pha-muted-text{color:var(--ds-ink-2)}.pha-error{color:var(--ds-red);font-size:13px;margin:4px 0 0}.pha-hero{position:relative;border-radius:20px;overflow:hidden;margin-bottom:24px}.pha-hero img{display:block;width:100%;height:220px;object-fit:cover}.pha-hero-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:flex-end;padding:20px;background:linear-gradient(to top,#0a0c28bf,#0a0c2800 60%)}.pha-logo{color:#fff;font-size:28px;font-weight:700;letter-spacing:.5px}.pha-hero-sub{color:#ffffffd9;font-size:14px;margin-top:2px}.pha-form{max-width:420px}.pha-label{display:block;font-size:13px;font-weight:600;color:var(--ds-ink);margin:14px 0 6px}.pha-input{width:100%;box-sizing:border-box;padding:12px 14px;font-size:15px;border:1px solid var(--ds-hairline);border-radius:12px;background:#fff;color:var(--ds-ink);text-align:left}.pha-input:focus{outline:2px solid var(--ds-teal);outline-offset:1px;border-color:transparent}.pha-btn{border:0;border-radius:12px;padding:13px 20px;font-size:15px;font-weight:600;cursor:pointer}.pha-btn-primary{width:100%;margin-top:18px;background:#1e1b4b;color:#fff;min-height:48px}.pha-btn-primary:active{background:#2a2664}.pha-btn-ghost{background:transparent;color:#ffffffe6;font-size:13px;padding:8px 12px}.pha-demo-box{margin-top:20px;border:1px dashed var(--ds-hairline);border-radius:12px;padding:14px;background:#faf8f6;font-size:14px;color:var(--ds-ink);display:grid;gap:4px}.pha-demo-title{font-weight:600;font-size:13px;color:var(--ds-ink-2)}.pha-demo-note{font-size:12px;color:var(--ds-ink-2);margin-top:6px;line-height:1.6}.pha-appbar{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#1e1b4b,#312e81);border-radius:16px;padding:10px 8px 10px 16px;margin-bottom:20px}.pha-appbar-name{color:#fff;font-weight:700;font-size:17px;letter-spacing:.4px;padding-inline-start:8px}.pha-screen{display:block}.pha-back{background:none;border:0;color:var(--ds-teal);font-size:14px;font-weight:600;cursor:pointer;padding:6px 0;margin-bottom:10px;min-height:32px}.pha-course-card{display:block;width:100%;text-align:start;background:#fff;border:1px solid var(--ds-hairline);border-radius:16px;padding:18px;margin:0 0 14px;cursor:pointer;box-sizing:border-box;font:inherit;color:var(--ds-ink)}.pha-course-card:active{border-color:var(--ds-teal)}.pha-course-soon{cursor:default;background:#faf8f6}.pha-course-badge{display:inline-block;font-size:12px;font-weight:600;color:#0f766e;background:#d9efe9;border-radius:999px;padding:3px 10px;margin-bottom:10px}.pha-badge-soon{color:var(--ds-ink-2);background:#ececec}.pha-course-name{font-size:18px;font-weight:700;margin-bottom:6px}.pha-course-tag{font-size:13px;color:var(--ds-ink-2);line-height:1.7;margin-bottom:12px}.pha-course-meta{font-size:13px;font-weight:600;margin-bottom:10px}.pha-progress{margin:4px 0 18px}.pha-progress-track{height:8px;border-radius:999px;background:#ececec;overflow:hidden}.pha-progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#2dd4bf,#0d9488);transition:width .4s ease}.pha-progress-text{font-size:12px;color:var(--ds-ink-2);margin-top:6px}.pha-course-title{font-size:20px}.pha-lec-list{display:grid;gap:10px}.pha-lec{display:flex;align-items:center;gap:12px;width:100%;text-align:start;background:#fff;border:1px solid var(--ds-hairline);border-radius:14px;padding:14px;cursor:pointer;font:inherit;color:var(--ds-ink);min-height:44px;box-sizing:border-box}.pha-lec:active{border-color:var(--ds-teal)}.pha-lec-done{background:#f2faf7;border-color:#bfe6da}.pha-lec-num{flex:0 0 34px;height:34px;border-radius:50%;background:#1e1b4b;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}.pha-lec-done .pha-lec-num{background:#0d9488}.pha-lec-body{flex:1;display:grid;gap:2px;min-width:0}.pha-lec-title{font-weight:600;font-size:15px}.pha-lec-sub{font-size:12px;color:var(--ds-ink-2);line-height:1.5}.pha-lec-meta{display:grid;gap:4px;justify-items:end;font-size:12px;flex-shrink:0}.pha-lec-dur{color:var(--ds-ink-2);font-weight:600}.pha-lec-check{color:#0d9488;font-weight:700}.pha-lec-quiz{color:var(--ds-ink-2)}.pha-lec-heading{font-size:19px}.pha-player{position:relative;background:#0b0d1f;border-radius:16px;overflow:hidden;margin-bottom:10px}.pha-player video{display:block;width:100%;aspect-ratio:16 / 9;background:#000;cursor:pointer}dialog.pha-expand{padding:0;border:0;background:#000;width:100vw;height:100vh;max-width:none;max-height:none}dialog.pha-expand::backdrop{background:#000}.pha-expand-wrap{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.pha-expand-wrap video{width:100%;max-height:100%;background:#000}.pha-expand-landscape .pha-expand-wrap{width:100vh;height:100vw;position:absolute;top:calc((100vh - 100vw)/2);left:calc((100vw - 100vh)/2);transform:rotate(90deg)}.pha-expand-landscape .pha-expand-wrap video{width:100%;height:100%}.pha-bigplay{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:72px;height:72px;border-radius:50%;background:#0a0c28b3;color:#fff;border:2px solid rgba(255,255,255,.8);font-size:26px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding-inline-start:6px}.pha-controls{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:8px;padding:22px 12px 10px;background:linear-gradient(to top,#000c,#0000);transition:opacity .25s ease}.pha-controls-hidden{opacity:0;pointer-events:none}.pha-ctl{background:#ffffff1f;color:#fff;border:0;border-radius:10px;min-width:44px;min-height:40px;font-size:14px;font-weight:600;cursor:pointer;padding:0 10px}.pha-ctl:active{background:#ffffff40}.pha-speed{font-variant-numeric:tabular-nums}.pha-seek{flex:1;accent-color:#2dd4bf;min-height:40px;min-width:60px}.pha-time-inline{color:#ffffffe6;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}.pha-times{display:flex;flex-wrap:wrap;gap:6px 18px;margin:4px 2px;color:var(--ds-ink-2);font-size:12.5px}.pha-times bdi{font-variant-numeric:tabular-nums;color:var(--ds-ink);font-weight:600}.pha-hint{font-size:12px;color:var(--ds-ink-2);margin:0 2px 16px}.pha-contact{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;border-top:1px solid var(--ds-hairline);padding:14px 8px 4px;margin-top:10px;font-size:14px}.pha-contact-label{color:var(--ds-ink-2)}.pha-contact-link{color:var(--ds-teal);font-weight:700;text-decoration:none;font-variant-numeric:tabular-nums}.pha-contact-sep{color:var(--ds-ink-4)}.pha-finish{background:#d9efe9;color:#0f766e;border-radius:12px;padding:12px 14px;font-weight:600;font-size:14px;margin-bottom:14px}.pha-finish-quiet{background:#f0f0f0;color:var(--ds-ink-2);font-weight:500}.pha-task{border:1px solid var(--ds-hairline);border-radius:16px;padding:16px;margin-bottom:16px}.pha-task-locked{background:#faf8f6}.pha-task-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}.pha-task-title{font-weight:700;font-size:16px}.pha-lock{font-size:13px;color:var(--ds-ink-2)}.pha-task-score{font-size:13px;font-weight:700;color:#0d9488}.pha-q{margin-bottom:16px}.pha-q-text{font-weight:600;font-size:14.5px;margin-bottom:10px;line-height:1.6}.pha-q-opts{display:grid;gap:8px}.pha-opt{text-align:start;padding:12px 14px;border-radius:12px;border:1px solid var(--ds-hairline);background:#fff;font:inherit;font-size:14px;color:var(--ds-ink);cursor:pointer;min-height:44px}.pha-opt:active{border-color:var(--ds-teal)}.pha-opt-right{background:#d9efe9;border-color:#0d9488;font-weight:600}.pha-opt-wrong{background:#fdecec;border-color:var(--ds-red)}.pha-q-feedback{font-size:13px;margin-top:8px;color:var(--ds-ink-2)}.pha-quiz-done{background:#1e1b4b;color:#fff;border-radius:12px;padding:12px 14px;font-weight:700;text-align:center;margin:6px 0 16px}.pha-discuss{border-top:1px solid var(--ds-hairline);padding-top:14px}.pha-discuss-title{font-weight:700;font-size:15px;margin-bottom:6px}@media (max-width: 420px){.pha-logo{font-size:21px;letter-spacing:0}.pha-time-inline{display:none}.pha-ctl{min-width:40px;padding:0 8px}}@media (min-width: 768px){.pha-hero img{height:280px}.pha-lec-list{grid-template-columns:1fr 1fr}.pha-form{max-width:460px}}.pha-h2{font-size:20px;font-weight:700;margin:0 0 10px;color:var(--ds-ink)}.pha-h3{font-size:16px;font-weight:700;margin:22px 0 8px;color:var(--ds-ink)}.pha-warnbox{background:#fff7e6;border:1px solid #f3d9a4;color:#7a5200;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.7;margin-bottom:14px}.pha-row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pha-inline{display:flex;gap:8px;align-items:center}.pha-inline .pha-input{flex:1;min-width:0}.pha-input-sm{flex:0 0 90px!important}select.pha-input{text-align:start}.pha-textarea{min-height:90px;resize:vertical;font-family:inherit}.pha-alert{border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.7;margin:12px 0}.pha-alert-warn{background:#fff7e6;color:#7a5200}.pha-result{margin-top:16px;border:1px solid var(--ds-hairline);border-radius:16px;padding:16px;background:#fff}.pha-result-title{font-size:12px;color:var(--ds-ink-2);font-weight:600}.pha-result-big{font-size:28px;font-weight:700;color:#1e1b4b;margin:4px 0;text-align:end}.pha-result-vol{font-size:20px;font-weight:700;color:#0d9488;margin-bottom:10px;text-align:end}.pha-result-conc{font-size:12px;font-weight:500;color:var(--ds-ink-2)}.pha-result-line{font-size:13.5px;color:var(--ds-ink);margin:4px 0}.pha-details summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--ds-teal);padding:6px 0}.pha-sourcebox{margin-top:18px;border-top:1px solid var(--ds-hairline);padding-top:12px;font-size:13px;line-height:1.8}.pha-sourcebox ul{margin:6px 0;padding-inline-start:18px}.pha-sourcebox-title{font-weight:700;margin-bottom:4px}.pha-source{color:var(--ds-ink-2);font-size:12px;margin-top:6px}.pha-suggest{border:1px solid var(--ds-hairline);border-radius:12px;margin-top:6px;overflow:hidden;background:#fff}.pha-suggest-item{display:block;width:100%;text-align:start;background:none;border:0;border-bottom:1px solid var(--ds-hairline);padding:12px 14px;font:inherit;cursor:pointer;min-height:44px;color:var(--ds-ink)}.pha-suggest-item:last-child{border-bottom:0}.pha-suggest-aka{color:var(--ds-ink-2);font-size:12px}.pha-suggest-empty{padding:10px 14px;margin:0!important}.pha-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.pha-chip{display:inline-flex;align-items:center;gap:6px;background:#e8e6ff;color:#1e1b4b;border-radius:999px;padding:6px 6px 6px 12px;font-size:13px;font-weight:600}.pha-chip button{border:0;background:#1e1b4b1f;border-radius:50%;width:24px;height:24px;cursor:pointer}.pha-summary{font-weight:700;margin:12px 0}.pha-hit{border-radius:14px;padding:12px 14px;margin-bottom:10px;border:1px solid;font-size:13.5px;line-height:1.8}.pha-hit-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-weight:700;margin-bottom:4px}.pha-sev{font-size:11.5px;padding:2px 10px;border-radius:999px;color:#fff}.pha-hit-contra{background:#fdecec;border-color:#f2b8b8}.pha-hit-contra .pha-sev{background:#b91c1c}.pha-hit-major{background:#fff0e6;border-color:#f5c19a}.pha-hit-major .pha-sev{background:#c2570c}.pha-hit-moderate{background:#fffbe6;border-color:#efe09a}.pha-hit-moderate .pha-sev{background:#8a6d00}.pha-hit-minor{background:#eef6ff;border-color:#bcd8f5}.pha-hit-minor .pha-sev{background:#2563a8}.pha-fda{margin:8px 0}.pha-fda-text{font-size:12px;line-height:1.6;background:#faf8f6;border-radius:10px;padding:10px;text-align:left}.pha-btn-small{background:#ececf5;color:#1e1b4b;padding:8px 12px;font-size:13px;min-height:40px}.pha-btn-danger{background:#b91c1c;color:#fff}.pha-tabs{display:flex;gap:6px;margin-bottom:8px}.pha-tab{flex:1;border:1px solid var(--ds-hairline);background:#fff;border-radius:12px;padding:12px;font:inherit;font-weight:600;cursor:pointer;min-height:44px}.pha-tab-on{background:#1e1b4b;color:#fff;border-color:#1e1b4b}.pha-acc{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--ds-hairline);border-radius:14px;padding:12px 14px;margin-bottom:10px}.pha-acc-name{font-weight:700}.pha-acc-line{font-size:13px;color:var(--ds-ink-2)}.pha-qedit{border:1px solid var(--ds-hairline);border-radius:14px;padding:12px;margin-bottom:12px;display:grid;gap:8px}.pha-notes{background:#f3f1ff;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.8;margin-bottom:14px;white-space:pre-wrap}.pha-logout{display:block;margin:18px auto 0;background:none;border:0;color:var(--ds-ink-2);font-size:12px;text-decoration:underline;cursor:pointer;padding:10px}.pha-signature{text-align:center;font-weight:700;font-size:14px;color:var(--ds-ink-2);margin-top:14px;padding-bottom:4px;letter-spacing:.3px}
