:root{--blue:#155b8a;--navy:#15354e;--teal:#168c83;--ink:#203747;--muted:#607282;--line:#dce5eb;--bg:#f5f8fa;--card:#fff;--red:#ac493c;--purple:#735898;--soft:#edf5fa;--radius:20px;--shadow:0 8px 24px #15354e07}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;line-height:1.65;-webkit-text-size-adjust:100%;overflow-wrap:break-word}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #e0a139;outline-offset:3px}button,select{color:inherit}h1,h2,h3,p{margin:0}h2{font-size:29px;line-height:1.3;letter-spacing:.03em}h3{font-size:19px;line-height:1.45}p+p{margin-top:10px}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:13px}.small-note{font-size:12px;color:var(--muted);line-height:1.75;margin-top:10px}.eyebrow{display:block;font-size:11px;letter-spacing:.08em;font-weight:700;color:var(--muted);margin-bottom:3px}.site-header{background:#fff;border-bottom:1px solid var(--line);padding-top:env(safe-area-inset-top)}.header-inner{max-width:980px;margin:auto;padding:16px 24px;display:flex;align-items:center;gap:12px}.header-inner img{border-radius:11px}.header-inner h1{font-size:19px;font-weight:800;letter-spacing:.01em}.header-inner .eyebrow{font-size:10px;letter-spacing:.12em}.save-badge{font-size:10px;margin-left:auto;color:#41765e;background:#eef7f2;padding:4px 9px;border-radius:20px;white-space:nowrap}.save-badge.failed{background:#fff0eb;color:var(--red)}.shell{max-width:920px;margin:auto;padding:26px 24px calc(110px + env(safe-area-inset-bottom))}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.chip{display:inline-block;font-size:11px;font-weight:700;line-height:1.5;border-radius:20px;padding:5px 10px;color:var(--blue);background:var(--soft);white-space:nowrap}.task-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.task-card{background:var(--card);padding:23px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.new-card{border-top:4px solid var(--blue)}.review-card{border-top:4px solid var(--red)}.card-kicker{font-size:11px;font-weight:700;letter-spacing:.035em;color:var(--muted);display:flex;align-items:center;gap:9px;margin-bottom:8px}.badge-square{display:inline-grid;place-items:center;width:26px;height:26px;background:#e7f1f8;color:var(--blue);border-radius:8px;font-size:14px}.review-card .badge-square{background:#fbefea;color:var(--red)}.countline{display:flex;align-items:baseline;gap:8px;margin:17px 0 12px}.countline>strong{font-size:50px;line-height:1;font-weight:800;letter-spacing:-.05em;color:var(--blue)}.review-card .countline>strong{color:var(--red)}.countline>span{font-size:14px;color:var(--muted)}.countline .count-label{margin-left:auto;font-size:11px}.meter{height:7px;background:#eaf0f4;border-radius:20px;overflow:hidden}.meter i{display:block;height:100%;width:0;background:var(--blue);border-radius:20px;transition:width .2s}.review-card .meter i{background:var(--red)}.task-card>.muted{font-size:12px;line-height:1.8;min-height:45px;margin:13px 0 17px}.button{display:inline-flex;justify-content:center;align-items:center;gap:6px;border:1px solid transparent;border-radius:12px;padding:13px 15px;font-size:14px;font-weight:750;min-height:48px;background:var(--navy);color:white;text-decoration:none;line-height:1.45}.button.primary{background:var(--blue);color:white}.button.warm{background:var(--red);color:white}.button.outline{border-color:var(--line);background:white;color:var(--blue)}.button.small{font-size:12px;padding:9px 13px;min-height:39px}.button.full{width:100%}.button+.button{margin-top:12px}.text-button{border:0;background:none;color:var(--blue);font-size:12px;text-decoration:underline;text-underline-offset:4px;padding:10px 3px;min-height:40px}.text-button.full{display:block;width:100%}.study-rule{display:flex;gap:6px 15px;flex-wrap:wrap;border-left:3px solid #9cbdc5;padding:10px 13px;margin:20px 0 26px;font-size:12px;color:var(--muted)}.study-rule b{color:var(--ink)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-heading h3{font-size:16px}.period-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.period-card{display:grid;grid-template-columns:39px 1fr;gap:12px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.period-icon{height:39px;border-radius:12px;background:#eef3f8;display:grid;place-items:center;color:var(--blue);font-weight:800}.monthly .period-icon{color:var(--purple);background:#f3edf9}.period-card h3{font-size:16px}.period-card .muted{font-size:12px;margin-top:7px}.period-card .small-note{font-size:11px;margin:6px 0 13px}.period-card .card-kicker{margin-bottom:0;font-size:10px}.feature-card{display:flex;gap:18px;align-items:flex-start;background:#eef6f5;border:1px solid #d6e8e4;border-radius:var(--radius);padding:22px;margin-top:24px}.feature-icon{font-size:24px;flex:0 0 51px;height:51px;display:grid;place-items:center;border-radius:14px;background:#fff;color:#247c6c;font-weight:800}.feature-card h3{font-size:17px}.feature-card p:not(.eyebrow){font-size:12px;margin-top:7px}.alert{background:#eef6fc;border:1px solid #cedfe9;border-radius:13px;padding:13px 16px;font-size:12px;line-height:1.8;margin-bottom:16px}.alert.danger{background:#fff0eb;border-color:#e8b1a8;color:#8f332e}.alert.violet{background:#f4eef9;border-color:#dac9ea;color:#674b7d}.sticky-alert{position:sticky;top:0;z-index:40;border-radius:0;margin:0}.resume-card{display:flex;align-items:center;gap:16px;border:1px solid #c4d6e2;background:#fff;border-radius:14px;padding:15px 17px;margin-bottom:17px}.resume-card>div{flex:1}.resume-card b{font-size:13px}.resume-card p{font-size:11px;color:var(--muted);margin-top:4px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:25;display:flex;justify-content:center;background:#ffffffef;border-top:1px solid var(--line);padding:7px 10px calc(7px + env(safe-area-inset-bottom));backdrop-filter:blur(14px)}.bottom-nav button{border:0;background:transparent;color:var(--muted);width:min(23%,150px);display:flex;flex-direction:column;align-items:center;gap:1px;padding:4px 8px;border-radius:12px}.bottom-nav button b{font-size:16px;line-height:1.7}.bottom-nav button span{font-size:10px}.bottom-nav button.active{color:var(--blue);background:#eaf3f9}.app-footer{font-size:10px;color:#738696;display:flex;justify-content:space-between;gap:8px;margin-top:35px;padding-top:17px;border-top:1px solid var(--line);flex-wrap:wrap}.panel,.reference-card,.unit-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:17px}.panel h3{margin-bottom:12px}.panel p{font-size:13px;margin-bottom:15px}.panel .small-note{font-size:11px}.field-label{display:block;margin:17px 0 8px;font-size:13px;font-weight:700}select{width:100%;padding:12px;background:#fff;border:1px solid #bfced9;border-radius:10px;font-size:14px}fieldset{border:1px solid var(--line);border-radius:12px;padding:15px;margin:20px 0}legend{font-size:12px;font-weight:700;padding:0 6px}.check-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.check-grid label{font-size:13px;display:flex;gap:9px;align-items:center;min-height:32px}.check-grid input{width:18px;height:18px;accent-color:var(--blue)}.reference-card summary{cursor:pointer;font-size:14px;font-weight:750;min-height:30px}.reference-card>p{font-size:12px;margin-top:15px}.table-scroll{overflow:auto;margin-top:16px}table{width:100%;border-collapse:collapse;font-size:12px;min-width:550px}th,td{border:1px solid var(--line);padding:9px;text-align:left}thead{background:var(--soft)}.unit-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.unit-card{margin:0;padding:20px}.unit-card:first-child{border-top:4px solid var(--teal)}.unit-card h3{font-size:16px}.unit-card .unit-id{font-size:11px;color:var(--blue);font-weight:800;margin-bottom:5px}.unit-card .numbers{display:flex;flex-wrap:wrap;gap:6px 13px;font-size:11px;color:var(--muted);margin:15px 0 10px}.unit-card .meter{margin-bottom:14px}.unit-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.unit-actions .button{font-size:11px;padding:9px 7px}.unit-card details{margin-top:13px;font-size:12px}.unit-card details ul{padding-left:18px;color:var(--muted);font-size:11px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stat-box{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;text-align:center}.stat-box b{font-size:28px;color:var(--blue);display:block}.stat-box span{font-size:10px;color:var(--muted)}#viewRecords>h3{margin:25px 0 12px}.pending-group{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:10px;padding:13px 17px}.pending-group summary{font-size:13px;font-weight:700;cursor:pointer}.pending-list{padding-top:9px;max-height:320px;overflow:auto}.pending-item{border-top:1px solid var(--line);padding:11px 0;font-size:12px}.pending-item small{display:block;color:var(--muted);font-size:10px}.history-row{display:flex;justify-content:space-between;gap:12px;padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:7px;font-size:12px}.history-row span{font-size:11px;color:var(--muted)}.quiz-view{max-width:700px;margin:0 auto}.quiz-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:22px}.elapsed{margin-left:auto;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}.quiz-progress{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px}.quiz-meter{margin-bottom:18px}.question-card{padding:25px;background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.question-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.question-heading .eyebrow{font-size:10px}.question-card h2{font-size:22px;line-height:1.7;letter-spacing:.015em;white-space:pre-line;margin-bottom:20px}.question-figures{display:grid;grid-template-columns:1fr;gap:9px;margin:15px 0 22px}.question-figures.multi-fig{grid-template-columns:repeat(2,1fr)}.figure-button{border:1px solid var(--line);border-radius:14px;background:white;padding:12px;min-width:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}.figure-button img{display:block;max-width:100%;max-height:270px;width:auto;height:auto;object-fit:contain}.multi-fig .figure-button img{height:120px;max-width:100%;object-fit:contain}.figure-label{font-size:13px;font-weight:800;margin-bottom:5px;color:var(--blue)}.figure-hint{font-size:9px;color:#7b8b97;margin-top:6px}.answer-choices{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0}.answer-choice{display:flex;align-items:center;gap:13px;border:1.5px solid #c9d7e2;border-radius:12px;padding:14px 15px;background:white;text-align:left;font-size:16px;font-weight:650;line-height:1.6;min-height:58px}.choice-mark{flex:0 0 25px;height:25px;border:1px solid #c6d3dc;border-radius:50%;color:var(--muted);display:grid;place-items:center;font-size:11px;background:#f9fbfc}.answer-choice[aria-pressed="true"]{border:2px solid var(--blue);background:#edf5fb}.answer-choice[aria-pressed="true"] .choice-mark{background:var(--blue);color:white;border-color:var(--blue)}.answer-choice:disabled{opacity:1;color:#536675}.answer-choice.correct-choice{border-color:#65a486;background:#eff8f2}.answer-choice.correct-choice .choice-mark{background:#28754d;border-color:#28754d;color:#fff}.answer-choice.wrong-choice{border-color:#bc7064;background:#fff0ec}.answer-choice.wrong-choice .choice-mark{background:#ad473b;border-color:#ad473b;color:#fff}.answer-choices.multi-choice .choice-mark{border-radius:5px}.feedback{padding:17px;border-radius:13px;margin:20px 0 13px;font-size:13px;background:#eff8f2;border:1px solid #bfdfca}.feedback.wrong{background:#fff2ed;border-color:#e9c1b8}.feedback h3{font-size:18px;margin-bottom:7px;color:#28754d}.feedback.wrong h3{color:var(--red)}.feedback .answer-line{font-size:14px;font-weight:750;margin-bottom:8px}.feedback .route-note{font-size:11px;margin-top:12px;padding-top:10px;border-top:1px solid #00000012}.result-card{max-width:700px;margin:auto;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:28px}.result-card h2{font-size:24px}.result-numbers{display:flex;gap:12px;margin:25px 0}.result-numbers>div{flex:1;background:#f0f6fa;padding:15px;border-radius:13px;text-align:center}.result-numbers strong{display:block;font-size:33px;color:var(--blue)}.result-numbers span{font-size:11px;color:var(--muted)}.result-card>p:not(.eyebrow){font-size:13px;line-height:1.9}.result-errors{margin:22px 0}.result-error{border-top:1px solid var(--line);padding:14px 0;font-size:12px}.result-error b{font-size:12px;color:var(--red)}.result-error p{white-space:pre-line;margin-top:5px}.result-error small{display:block;font-size:10px;color:var(--muted);margin-top:6px}.zoom-dialog{border:1px solid var(--line);border-radius:17px;max-width:95vw;width:760px;padding:15px;background:white}.zoom-dialog::backdrop{background:#162c40cc}.zoom-dialog img{display:block;max-width:100%;max-height:78vh;margin:15px auto;object-fit:contain}.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(89px + env(safe-area-inset-bottom));z-index:100;background:#17354a;color:white;font-size:12px;border-radius:12px;padding:13px 19px;width:max-content;max-width:88vw;box-shadow:0 6px 25px #0003}#legacyInfo p{font-size:12px;margin-top:10px}body.in-quiz .bottom-nav{display:none}body.in-quiz .shell{padding-bottom:35px}
@media(min-width:750px){.view>p.muted{font-size:13px}.question-figures:not(.multi-fig) .figure-button img{max-height:320px}.question-card{padding:30px}}
@media(max-width:620px){.header-inner{padding:12px 16px;gap:10px}.header-inner h1{font-size:16px}.header-inner img{width:36px;height:36px}.header-inner .eyebrow{font-size:9px}.save-badge{font-size:9px;padding:4px 7px}.shell{padding:23px 15px calc(100px + env(safe-area-inset-bottom))}h2{font-size:25px}.page-heading{margin-bottom:17px}.page-heading .chip{font-size:10px}.task-grid{grid-template-columns:1fr;gap:14px}.task-card{padding:19px 20px}.countline{margin:14px 0 10px}.countline>strong{font-size:43px}.task-card>.muted{min-height:0;margin:11px 0 13px;font-size:12px}.task-card h3{font-size:19px}.task-card .text-button{padding-bottom:0;min-height:32px}.review-card .small-note{margin:10px 0 0}.period-grid{grid-template-columns:1fr;gap:12px}.period-card{padding:17px;grid-template-columns:35px 1fr}.period-icon{height:35px}.section-heading{display:block}.section-heading>span{font-size:10px}.feature-card{padding:18px;gap:12px}.feature-icon{flex-basis:43px;height:43px;font-size:21px}.unit-grid{grid-template-columns:1fr}.panel,.reference-card{padding:18px}.check-grid{grid-template-columns:repeat(3,1fr)}.stat-grid{gap:7px}.stat-box{padding:13px 6px}.stat-box b{font-size:25px}.stat-box span{font-size:9px}.question-card{padding:19px 17px}.question-card h2{font-size:20px;line-height:1.65}.question-heading{gap:5px}.question-heading .chip{font-size:9px;padding:4px 7px}.answer-choice{font-size:15px;padding:13px 12px;gap:10px}.figure-button img{max-height:235px}.multi-fig .figure-button img{height:100px}.quiz-toolbar{gap:7px;margin-bottom:18px}.quiz-toolbar .chip{font-size:10px}.quiz-toolbar .button{padding:9px 10px}.result-card{padding:22px 18px}.result-card h2{font-size:22px}.history-row{font-size:11px;display:block}.history-row span{display:block;margin-top:4px}.resume-card{padding:13px}.app-footer{font-size:9px}.study-rule{margin:17px 0 23px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* No.11: source figures and optional reference gallery */
.problem-context{border:1px solid var(--line);border-radius:12px;padding:12px 15px;margin:10px 0 18px;background:#f7fafc;font-size:14px}
.problem-context summary{cursor:pointer;font-weight:700;min-height:28px}
.problem-context p{white-space:pre-line;line-height:1.8;margin:10px 0 0}
.question-figures.reading-figure .figure-button img{max-height:none;width:100%;height:auto;object-fit:contain}
.feedback-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:15px}
.feedback-figures .figure-button img{max-height:310px;object-fit:contain;width:100%}
.figure-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}
.figure-library-item{min-width:0}.figure-library-item .figure-button{width:100%;min-height:170px}
.figure-library-item .figure-label{white-space:normal;line-height:1.6;word-break:normal}
.figure-library-item img{max-height:270px;object-fit:contain}.figure-library-item p{margin:6px 0}
@media(max-width:450px){.figure-library{grid-template-columns:1fr}.feedback-figures{grid-template-columns:1fr}.feature-card .button{font-size:14px}}

/* No.19 diagrams have small letter labels: keep them legible rather than thumbnail-sized. */
.question-figures.star-reading .figure-button img{width:100%;height:auto;max-height:520px}
.question-figures.star-reading:not(.multi-fig) .figure-button{max-width:600px;width:100%;margin:auto}
.question-figures.star-reading.multi-fig .figure-button img{height:auto;max-height:420px}
@media(max-width:620px){.question-figures.star-reading.multi-fig{grid-template-columns:1fr}.question-figures.star-reading .figure-button img{max-height:460px}.question-figures.star-reading .figure-button{padding:9px}}

/* Date-bounded exam plan; content and existing mobile interactions are retained. */
.exam-card{margin:0 0 20px;padding:20px;border:2px solid var(--blue,#155b8a);border-radius:18px;background:var(--paper,#fff)}
.exam-card h3{margin:4px 0 10px;font-size:1.35rem;line-height:1.45}.exam-card p{line-height:1.65}
.exam-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.exam-counts div{padding:12px 7px;text-align:center;background:var(--bg,#f4f7fa);border-radius:12px}
.exam-counts b{display:block;font-size:1.7rem}.exam-counts span{display:block;font-size:.83rem;margin-top:4px}
.exam-warning{padding:12px;border-left:4px solid #a54518;background:#fff3e9;font-weight:600}
.exam-card details{margin:12px 0;padding:10px 0}.exam-card summary{cursor:pointer;font-weight:650;line-height:1.6}
.exam-card td,.exam-card th{white-space:normal!important;min-width:85px;line-height:1.5}
.exam-toggle{display:flex;align-items:flex-start;gap:10px;line-height:1.6}.exam-toggle input{width:22px;height:22px;flex:none}
@media(max-width:440px){.exam-card{padding:15px}.exam-card td,.exam-card th{padding:9px 7px;font-size:.87rem;min-width:74px}.exam-counts{gap:6px}.exam-counts span{font-size:.77rem}}

.exam-card table{min-width:0;table-layout:fixed}.exam-card th,.exam-card td{min-width:0!important;overflow-wrap:anywhere}.exam-card table th:first-child{width:27%}

/* Completion calendar: Monday first, four independent SVG marks per day. */
.today-heading-tools{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.today-heading-tools .text-button{font-size:12px;min-height:32px;padding:5px 0}
.study-calendar{--ball-size:26px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;margin:22px 0;scroll-margin-top:95px}
.cal-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.cal-section-heading h3{font-size:22px;line-height:1.45;margin:3px 0 0}.cal-month-stats{font-size:12px;line-height:1.6;color:var(--muted);text-align:right}
.cal-toolbar{display:grid;grid-template-columns:40px 1fr 40px auto;gap:9px;align-items:center;margin:0 0 14px}.cal-toolbar h4{font-size:21px;text-align:center;margin:0;font-variant-numeric:tabular-nums}.cal-nav,.cal-now{min-height:40px;border:1px solid #d9e5ed;background:#f0f6fa;color:var(--blue);border-radius:11px;font-weight:750}.cal-nav{font-size:26px;line-height:1}.cal-now{padding:0 14px;font-size:12px}
.cal-weekdays,.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.cal-weekdays{margin-bottom:7px}.cal-weekdays span{text-align:center;font-size:12px;font-weight:700;color:var(--muted)}.cal-weekdays .sat,.cal-day.sat .cal-num{color:#2776b6}.cal-weekdays .sun,.cal-day.sun .cal-num{color:#c95356}
.cal-day{appearance:none;position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:106px;border:1px solid #e4ebf0;border-radius:12px;background:#fafcfe;color:var(--ink);padding:7px 4px;text-align:left;font:inherit;cursor:pointer}.cal-day.other{background:#f5f7f9;opacity:.43}.cal-day.future{background:#fdfefe}.cal-day.today{border:2px solid var(--blue);padding:6px 3px}.cal-day.selected{background:#ecf5fc;box-shadow:inset 0 0 0 1px #82b5d7}.cal-num{font-size:13px;font-weight:750;line-height:1.3;margin-left:3px}.cal-day.today .cal-num{color:var(--blue)}.cal-marks{display:grid;grid-template-columns:repeat(2,var(--ball-size));justify-content:center;gap:3px;margin-top:5px;min-height:calc(var(--ball-size)*2 + 3px)}.cal-ball{display:block;width:var(--ball-size);height:var(--ball-size);object-fit:contain;flex:none}.cal-earned{display:block;line-height:0}.cal-partial{font-size:10px;color:#6f7f8b;text-align:center;line-height:1.2;margin-top:auto}.cal-hint{font-size:11px;color:var(--muted);margin:10px 0 14px;line-height:1.6}
.cal-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:15px 0;border-top:1px solid var(--line)}.cal-legend-item{display:flex;align-items:center;gap:9px;min-width:0;background:#f6f9fb;padding:11px;border-radius:11px}.cal-legend .cal-ball{width:31px;height:31px}.cal-legend-item div{flex:1;min-width:0}.cal-legend-item b{font-size:12px;display:block;line-height:1.5}.cal-legend-item span{font-size:10px;display:block;color:var(--muted);white-space:nowrap;line-height:1.6}.cal-legend-item strong{font-size:20px;color:var(--blue);white-space:nowrap}.cal-legend-item small{font-size:9px;margin-left:2px}
.cal-day-panel{background:#f6f9fc;border:1px solid #e2ebf2;border-radius:14px;padding:17px;margin-top:4px}.cal-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}.cal-detail-heading h4{font-size:15px;margin:0}.cal-detail-heading>span{font-size:11px;color:var(--muted)}.cal-day-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cal-detail-row{display:flex;align-items:center;gap:9px;border-radius:10px;border:1px solid #e2ebf2;padding:11px;background:#fff;min-width:0}.cal-detail-row .cal-ball{width:29px;height:29px}.cal-detail-row div{min-width:0;flex:1}.cal-detail-row b{font-size:12px;line-height:1.6;display:block}.cal-detail-row div span{font-size:10px;line-height:1.65;display:block;color:var(--muted)}.cal-empty-mark{display:grid;place-items:center;width:29px;height:29px;color:#9aabb7;flex:none}.cal-complete-label{font-size:9px;white-space:nowrap;border:1px solid #b9d9c7;border-radius:6px;color:#28754d;background:#eff8f2;padding:2px 5px}.cal-day-panel>.small-note{margin-bottom:0}.cal-rules{border-top:1px solid var(--line);padding-top:14px;margin-top:15px;font-size:12px;line-height:1.85}.cal-rules summary{font-weight:700;cursor:pointer;min-height:28px}.cal-rules p{margin:8px 0}
.result-reward{display:flex;align-items:center;gap:14px;margin:18px 0;padding:15px;border:1px solid #c5dcea;border-radius:14px;background:#f0f7fc}.result-reward .cal-ball{width:45px;height:45px}.result-reward b{font-size:16px;color:var(--blue)}.result-reward p{font-size:12px;line-height:1.75;margin-top:4px}.cal-nav:focus-visible,.cal-now:focus-visible,.cal-day:focus-visible{outline:3px solid #cf9618;outline-offset:2px}
@media(max-width:620px){.study-calendar{--ball-size:clamp(14px,4vw,24px);padding:15px 12px;scroll-margin-top:85px}.cal-section-heading{align-items:flex-start;margin-bottom:15px;gap:8px}.cal-section-heading h3{font-size:19px}.cal-section-heading .eyebrow{font-size:9px}.cal-month-stats{font-size:10px;max-width:113px}.cal-toolbar{grid-template-columns:35px 1fr 35px auto;gap:6px;margin-bottom:13px}.cal-toolbar h4{font-size:19px}.cal-nav,.cal-now{min-height:38px}.cal-now{padding:0 9px;font-size:11px}.cal-weekdays,.cal-grid{gap:4px}.cal-day{min-height:79px;border-radius:9px;padding:5px 1px}.cal-day.today{padding:4px 0}.cal-num{font-size:12px;margin-left:3px}.cal-marks{gap:2px;margin-top:5px;min-height:calc(var(--ball-size)*2 + 2px)}.cal-partial{font-size:9px}.cal-weekdays span{font-size:11px}.cal-legend{gap:6px}.cal-legend-item{padding:9px 6px;gap:5px}.cal-legend .cal-ball{width:25px;height:25px}.cal-legend-item b{font-size:10px}.cal-legend-item span{font-size:8px}.cal-legend-item strong{font-size:17px}.cal-legend-item small{font-size:8px}.cal-day-panel{padding:13px 10px}.cal-detail-heading h4{font-size:13px}.cal-day-details{grid-template-columns:1fr;gap:6px}.cal-detail-row{padding:9px}.cal-detail-row .cal-ball{width:27px;height:27px}.cal-complete-label{margin-left:auto}.cal-day-panel .small-note{font-size:10px}.cal-rules{font-size:11px}.result-reward b{font-size:14px}}
@media(max-width:350px){.cal-month-stats{max-width:92px;font-size:9px}.cal-legend-item{gap:3px;padding:8px 4px}.cal-legend .cal-ball{width:22px;height:22px}.cal-legend-item b{font-size:9px}.cal-legend-item span{font-size:7.5px}.cal-legend-item strong{font-size:14px}.cal-day{min-height:73px}}
