/* Editorial white canvas. Week identity is a compact accent, not a page wash. */
:root{--blue:#3157ff;--navy:#171b23;--muted:#636a76;--pale:#f5f6fa;--border:#e6e8ed;--radius:20px;--shadow:0 18px 65px #171b2312}
body{font-family:"Helvetica Neue",Arial,sans-serif;background:#fff;color:var(--navy);-webkit-font-smoothing:antialiased}
h1,h2,h3{font-weight:750;color:var(--navy)}
h1{font-size:clamp(32px,3.9vw,52px);letter-spacing:-1.9px;line-height:1.1}
h2{letter-spacing:-.7px}
.header{border-bottom-color:var(--border);height:84px}
.logo{letter-spacing:-1.8px}
.avatar{background:#f0f2f7;color:var(--navy)}
.shell{padding-top:40px}
.lead{color:var(--muted);line-height:1.6}
.eyebrow{font-size:11px;letter-spacing:.09em}
.panel{border-color:var(--border);border-radius:20px}
.panel.pale{background:#f6f7f9;border:1px solid var(--border)}
.btn{border-radius:12px;font-size:15px;min-height:48px}
.btn.primary{background:var(--blue)}
.btn.primary:hover:not(:disabled){background:#2448e5}
.btn.secondary{color:var(--navy);border-color:#dfe2e8}
.btn.secondary:hover{background:#f5f6fa}
.chip{border-radius:50px;background:#f2f3f6;color:var(--navy)}
.chip.active{background:var(--navy);color:#fff}
.progress-card{border-color:var(--border);background:#f8f9fb;min-width:268px;border-radius:20px}
.progress{background:#e8eaf0;height:9px}
.context-ribbon{position:sticky;top:0;z-index:20;background:#fffffff5;backdrop-filter:blur(16px);border-bottom:1px solid var(--border)}
.ribbon-inner{max-width:1400px;margin:auto;padding:10px 32px;display:flex;gap:13px;align-items:center;min-height:60px}
.ribbon-mark{display:flex;align-items:center;justify-content:center;min-width:36px;height:36px;border-radius:10px;background:var(--week-accent);color:#171b23;font-weight:750;font-size:15px}
.context-ribbon .ribbon-mark{color:var(--week-on-accent,#171b23)}
.ribbon-title{font-weight:650;font-size:14px;line-height:1.4;flex:1;color:var(--navy)}
.ribbon-title>span{display:inline-block;color:var(--muted);font-size:12px;font-weight:500;margin-right:14px}
.ribbon-stage{font-size:11px;font-weight:600;border:1px solid var(--border);border-radius:50px;padding:6px 12px;white-space:nowrap;color:var(--muted)}
.ribbon-title a{color:inherit}
.ribbon-title a:hover{text-decoration:underline}
.course-steps{border-color:var(--border);border-radius:15px;background:#fff}
.course-step{color:var(--muted);border-color:var(--border);min-height:60px}
.shell[data-week] .course-step.active{background:#f8f9fb;color:var(--navy)}
.shell[data-week] .course-step.active>span{background:var(--week-accent);color:var(--week-on-accent,#171b23)}
.shell[data-week] .course-step.done>span{background:#edf8f0;color:var(--green)}
.course-step>span>svg{width:17px;height:17px}
.task-stage,.feedback,.quiz-question,.principles,.message-receipt{scroll-margin-top:90px}
.current.topic-current{background:#171b23;color:#fff;border:0;border-radius:24px;padding:30px;min-height:430px}
.current-intro{display:grid;grid-template-columns:minmax(0,1fr) 42%;gap:22px;align-items:start;width:100%}
.current-text{min-width:0}
.current-text h2{color:white;font-size:30px;line-height:1.12;letter-spacing:-1px;margin:14px 0 0}
.current-photo{width:100%;height:184px;object-fit:cover;object-position:var(--photo-position);border-radius:16px;background:#fff}
.topic-current>p.current-goal{max-width:520px;font-size:17px;margin:20px 0 26px;color:#c9cdd5;line-height:1.6}
.topic-current .eyebrow{background:var(--week-accent);color:var(--week-on-accent,#171b23);border-radius:50px;font-size:10px;padding:7px 12px;letter-spacing:.03em}
.topic-current .notice{color:#b6becb;font-size:12px}
.topic-current .btn.primary{background:white;color:#171b23}
.topic-current .btn.primary:hover{background:#edf0f7}
.route{border:1px solid var(--border);border-radius:24px;background:white}
.route .week{border-left:0;gap:18px;min-height:84px;padding:16px 22px;border-bottom-color:var(--border)}
.route .week.active{background:#f7f8fa}
.route a.week:hover{background:#f7f8fa}
.week-mark{position:relative;display:block;width:57px;height:57px;flex-shrink:0}
.week-thumb{width:57px;height:57px;object-fit:cover;object-position:var(--photo-position);border-radius:14px;background:#f5f6fa}
.route .week-num{position:absolute;bottom:-3px;left:-4px;width:24px;height:24px;font-size:10px;border:2px solid white;background:var(--week-accent);color:var(--week-on-accent,#171b23);min-width:24px;border-radius:7px}
.route .status-icon{color:var(--muted)}
.route .status{font-size:12px;margin-top:4px}
.utility[data-section]{border-left:1px solid var(--border);border-radius:18px;padding:20px}
.utility[data-section]>svg:first-child{background:var(--week-accent);color:#171b23;width:44px;height:44px;padding:11px;border-radius:13px}
.utility[data-section]>svg:last-child{color:var(--muted)}
.utility strong{font-size:15px}
.topic-cover{background:#f5f6fa;aspect-ratio:1.62;border-radius:20px;display:flex;flex-direction:column;isolation:isolate}
.topic-cover>img{display:block;width:100%;height:calc(100% - 76px);object-fit:cover;object-position:var(--photo-position);flex:1;min-height:0}
.topic-cover:after{display:none}
.topic-cover .video-caption{position:static;max-width:none;background:white;color:var(--navy);padding:16px 78px 16px 20px;min-height:76px;border:1px solid var(--border);border-top:0;border-radius:0 0 20px 20px;z-index:1;font-size:12px}
.topic-cover .video-caption strong{font-size:17px;letter-spacing:-.3px;line-height:1.25;margin-bottom:3px}
.topic-cover .play{color:var(--week-on-accent,#171b23);background:var(--week-accent);box-shadow:none;left:auto;right:17px;top:auto;bottom:17px;transform:none;width:44px;height:44px;z-index:2}
.topic-cover .watched{font-size:11px}
.brief-open svg{fill:none;stroke:currentColor;stroke-width:1.8}
.principle{border-color:var(--border);border-radius:12px;padding:14px;min-height:66px}
.principle .number{background:#f0f1f4;color:var(--navy);font-size:12px}
.principle:hover{border-color:#b8c2e8}
.principle.read .number{background:#edf8f0;color:var(--green)}
.panel:has(>.principles){background:white}
.photo-context{display:grid;grid-template-columns:144px minmax(0,1fr);gap:24px;align-items:center;background:#f8f9fb;border-color:var(--border)}
.context-photo{width:144px;height:128px;object-fit:cover;object-position:var(--photo-position);border-radius:14px;background:#f5f6fa}
.photo-context p{margin-bottom:12px}
.photo-context p:last-child{margin:0}
.profile-avatar{background:#f8f9fb;overflow:hidden;position:relative;justify-content:flex-end;padding:0;gap:0;border-radius:20px}
.profile-avatar>.profile-photo{width:100%;height:280px;object-fit:cover;object-position:50% 30%;filter:blur(12px);transform:scale(1.06);opacity:.75;transition:filter .5s,opacity .5s,transform .5s}
.profile-avatar.revealed>.profile-photo{filter:blur(0);opacity:1;transform:scale(1)}
.profile-avatar>span{position:absolute;bottom:14px;left:14px;right:14px;border-radius:9px;background:#fffffff5;padding:10px;text-align:center;color:var(--navy);font-size:12px}
.profile-scene>.panel{background:white}
.doctor-portrait.has-photo{background:none;overflow:hidden;aspect-ratio:1.6;border-radius:20px}
.doctor-portrait.has-photo>img{width:100%;height:100%;object-fit:cover;object-position:var(--photo-position)}
.quote{background:#f7f8fa;border-color:var(--border)}
.battle-layout{grid-template-columns:1.25fr .75fr}
.battle-layout>.panel{padding:24px;border-radius:20px}
.comparison-note{font-size:12px;max-width:500px}
.comparison-table th{background:#f5f6fa;color:var(--muted)}
.comparison-table th:nth-child(2){color:var(--blue)}
.comparison-table td{border-color:var(--border)}
.battle-stage{background:#f5f3fb;border:1px solid #e9e3f5;border-radius:22px;padding:28px 22px;gap:18px;min-height:360px}
.product-tower{min-width:120px}
.product-box.photo-box{border:0;border-radius:16px;background:transparent;color:var(--navy);padding:0;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;box-shadow:none;font-size:14px}
.battle-product{width:132px;height:128px;object-fit:cover;display:block;border-radius:13px}
.stairs{margin-top:10px}
.stairs span{background:#bca9ff;height:13px;margin-top:3px;max-width:160px}
.competitor-box{display:flex;flex-direction:column;align-items:center;gap:12px;background:transparent;border:0;padding:0;color:var(--muted);font-size:13px}
.competitor-symbol{display:flex;align-items:center;justify-content:center;width:88px;height:112px;background:#e6e4ec;color:#555363;border-radius:15px;font-weight:700;font-size:30px}
.battle-stage p.battle-score{color:#656171;font-size:12px;max-width:none;width:100%;margin-top:20px}
.battle-score strong{display:block;font-size:27px;letter-spacing:-1px;color:var(--navy);line-height:1.2;margin-bottom:6px}
.battle-tabs .chip.active{background:#171b23}
.select-card{border-radius:14px;border-color:var(--border)}
.select-card.selected{background:#f6f8ff;border-color:var(--blue)}
.battle-selection-count{font-size:13px;color:var(--muted);white-space:nowrap}
.battle-choice-status{display:block;margin-top:8px;font-size:12px;line-height:1.5;color:var(--muted)}
.select-card.confirmed{border-color:#b7dac7;background:#f4faf6}
.select-card.confirmed .battle-choice-status{color:#135d34}
.select-card.unsupported{border-color:#edc5ab;background:#fff7f1}
.select-card.unsupported .battle-choice-status{color:#82471d}
.material-tag{display:inline-flex;align-items:center;gap:7px;color:var(--week-on-accent,#171b23);background:var(--week-accent);padding:4px 10px;border-radius:50px;font-size:10px;font-weight:650;margin-bottom:8px}
.library-row[data-week]{border-left:1px solid var(--border)}
.library-row[data-week] .library-icon{background:#f4f5f8;color:var(--navy)}
.summary-item[data-week]{border-left:1px solid var(--border)}
.summary-item[data-week] .week-num{background:var(--week-accent);color:var(--week-on-accent,#171b23)}
.reading-photo{width:100%;max-height:220px;object-fit:cover;object-position:var(--photo-position);border-radius:20px;margin:14px 0;background:#f5f6fa}
.reading-photo.product{height:220px}
.task-stage{color:var(--muted);background:#f7f8fa;border-left:3px solid var(--week-accent,var(--blue))}
.task-stage strong{color:var(--navy)}
.quiz-surface{background:#f7f8fa}
.article-example{background:#f7f8fa}
.dark-panel{background:#171b23}
.footer{border-color:var(--border)}
@media(max-width:1100px){.current-intro{grid-template-columns:minmax(0,1fr) 40%}.current-photo{height:165px}.current-text h2{font-size:25px}.battle-layout{grid-template-columns:1fr}.battle-stage{min-height:300px}.battle-score strong{font-size:24px}}
@media(max-width:760px){.header{height:auto;gap:0}.shell{padding:28px 20px}h1{font-size:34px;letter-spacing:-1.1px}.ribbon-inner{padding:10px 20px;gap:10px;min-height:60px}.ribbon-title{font-size:12px;min-width:0}.ribbon-title>span{display:block;margin-right:0;font-size:10px}.ribbon-stage{font-size:10px;padding:5px 9px;max-width:100%}.ribbon-mark{min-width:30px;height:30px;font-size:12px}.current.topic-current{padding:24px;min-height:350px}.current-intro{grid-template-columns:minmax(0,1fr) 35%;gap:15px}.current-photo{height:144px}.current-text h2{font-size:24px}.topic-current>p.current-goal{font-size:16px;margin:20px 0}.topic-current .eyebrow{font-size:9px;padding:6px 9px;line-height:1.4}.route .week{padding:15px;gap:15px}.week-mark,.week-thumb{width:50px;height:50px}.topic-cover{aspect-ratio:1.25}.topic-cover .video-caption{padding:14px 69px 14px 16px;min-height:76px}.topic-cover .video-caption strong{font-size:16px}.topic-cover .play{bottom:16px;right:14px;width:44px;height:44px}.photo-context{grid-template-columns:90px minmax(0,1fr);gap:16px}.context-photo{width:90px;height:110px}.photo-context p:first-child{font-size:17px}.profile-avatar>.profile-photo{height:240px}.doctor-portrait.has-photo{aspect-ratio:1.65}.reading-photo,.reading-photo.product{height:180px;max-height:180px}.battle-stage{padding:24px 18px;gap:18px}.battle-product{width:120px;height:120px}.comparison-table th,.comparison-table td{padding:12px 8px}.panel{padding:22px}.progress-card{min-width:0}.library-row .material-tag{font-size:10px}.ribbon-title a{overflow-wrap:anywhere}}
@media(max-width:380px){.ribbon-stage{display:none}.current-intro{grid-template-columns:1fr}.current-photo{width:100%;height:145px;object-position:50% 45%}.current-text h2{font-size:25px}.route .week h3{font-size:14px}.photo-context{grid-template-columns:1fr}.context-photo{width:100%;height:110px}.battle-product{width:105px;height:108px}.competitor-symbol{width:72px;height:95px}.product-tower{min-width:108px}.stairs span{max-width:130px}.battle-stage{gap:12px}}
@media(prefers-reduced-motion:reduce){.profile-avatar>.profile-photo{transition:none}.context-ribbon{backdrop-filter:none}}
