/* A date stamp is the single visual signature; the calendar remains a reading tool. */
.checkin-page{padding:32px clamp(24px,4vw,64px) 24px;background:var(--paper)}.app-shell:has(.checkin-page){grid-template-columns:76px minmax(0,1fr)}.app-shell:has(.checkin-page)>.library{display:none}.app-shell:has(.checkin-page) .mobile-library-toggle{display:none}.checkin-page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px;gap:20px}.checkin-page-heading h1{font-size:29px;margin-top:5px;letter-spacing:-.7px}.checkin-eyebrow{color:var(--muted);font-size:10px;letter-spacing:.8px}.checkin-continue{font-size:12px}.checkin-today-card{display:grid;grid-template-columns:minmax(0,1fr) 200px;border:1px solid var(--line);border-radius:15px;background:var(--white);overflow:hidden;margin-bottom:25px}.checkin-today-main{padding:23px 28px 20px}.checkin-card-top{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px}.checkin-card-top>span:first-child{font-weight:600}.checkin-card-top small{font-weight:400;color:var(--muted);margin-left:8px;font-size:11px}.checkin-status{display:inline-flex;align-items:center;gap:5px;color:var(--stage-ink);font-size:11px}.checkin-status .icon{width:15px;height:15px}.checkin-result{display:flex;align-items:center;justify-content:space-between;margin:20px 0 17px;gap:24px}.checkin-result>div:first-child>p:first-child{font-size:12px;color:var(--muted)}.checkin-count{display:flex;align-items:baseline;gap:10px;line-height:1.15;margin:6px 0 7px}.checkin-count strong{font:600 65px/1.2 var(--display);letter-spacing:-3px;font-variant-numeric:tabular-nums}.checkin-count>span{font-size:13px;color:var(--muted)}.checkin-count-breakdown{font-size:11px;color:var(--muted)}.checkin-count-breakdown b{font-weight:500;color:var(--ink)}.checkin-count-breakdown i{font-style:normal;padding:0 9px;color:#aab4c1}.checkin-stamp{width:125px;height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;gap:7px;border:1px dashed #cbd3df;border-radius:50%;color:#7d8a9c;position:relative;transform:rotate(-9deg);margin-right:7px}.checkin-stamp:before{content:'';position:absolute;inset:6px;border:1px solid #e0e5ed;border-radius:50%}.checkin-stamp>span{font-size:12px;font-weight:600;letter-spacing:4px;margin-left:4px}.checkin-stamp>strong{font:500 19px var(--mono);letter-spacing:-1px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;padding:2px 0}.checkin-stamp>small{font-size:8px;letter-spacing:1px}.checkin-stamp.stamped{color:var(--green);border:2px solid var(--green)}.checkin-stamp.stamped:before{border-color:#bad3c7}.checkin-today-card.is-checked .checkin-status{color:var(--green)}.checkin-goal-row{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:11px;color:var(--muted)}.checkin-goal-row small{margin-left:12px;color:var(--stage-ink);font:10px var(--mono)}.checkin-goal-row .text-button{font-size:10px;padding-right:0;color:var(--muted)}.checkin-goal-row .icon{width:13px;height:13px}.checkin-goal-progress{display:block;width:100%;height:4px;border:0;border-radius:5px;overflow:hidden;margin:3px 0 9px;background:var(--sky);accent-color:var(--blue)}.checkin-goal-progress::-webkit-progress-bar{background:var(--sky)}.checkin-goal-progress::-webkit-progress-value{background:var(--blue);border-radius:5px}.checkin-card-actions{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:10px;padding-top:15px;border-top:1px solid var(--line)}.checkin-card-actions>p{font-size:11px;color:var(--muted);line-height:1.8}.checkin-card-actions .btn{font-size:12px;min-height:39px;padding:9px 15px}.checkin-totals{display:grid;align-content:center;gap:0;background:#fafbfd;border-left:1px solid var(--line);padding:6px 27px}.checkin-totals>div{padding:15px 0;border-bottom:1px solid var(--line)}.checkin-totals>div:last-child{border:0}.checkin-totals>div>span{font-size:10px;color:var(--muted)}.checkin-totals p{font-size:11px;color:var(--muted);margin:2px 0}.checkin-totals strong{font:600 27px var(--display);color:var(--ink);letter-spacing:-.7px;margin-right:4px}.checkin-totals small{font-size:10px;color:var(--muted)}.checkin-history{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);border:1px solid var(--line);background:var(--white);border-radius:15px;overflow:hidden}.checkin-calendar-panel{padding:24px 25px 19px}.checkin-calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.checkin-calendar-heading h2{font-size:17px;letter-spacing:-.2px}.checkin-calendar-heading p{font-size:11px;color:var(--muted);margin-top:4px}.checkin-month-controls{display:flex;align-items:center;gap:1px}.checkin-month-controls .icon-button{width:30px;height:30px}.checkin-month-controls .icon{width:16px;height:16px}.checkin-month-controls .text-button{font-size:10px;color:var(--muted)}.checkin-calendar table{width:100%;border-collapse:separate;border-spacing:5px 5px;table-layout:fixed}.checkin-calendar th{font-size:10px;font-weight:450;color:var(--muted);height:25px;text-align:center}.checkin-calendar td{padding:0;vertical-align:top}.checkin-day{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;position:relative;width:100%;min-height:66px;border:1px solid transparent;border-radius:8px;background:#f7f8fa;padding:8px 9px;transition:background .15s,border-color .15s;color:var(--muted);text-align:left}.checkin-day>span{font:12px var(--mono);display:flex;align-items:center;gap:5px;white-space:nowrap}.checkin-day small{font:8px var(--body);color:var(--blue)}.checkin-day>b{font-size:10px;font-weight:450;min-height:15px;color:var(--stage-ink)}.checkin-day.practiced{background:var(--sky);color:var(--ink)}.checkin-day.is-checked{background:#eaf4ef;color:var(--green)}.checkin-day.is-checked>b{color:var(--green)}.checkin-day>i{position:absolute;right:7px;bottom:8px;font-size:11px;color:var(--green);font-style:normal}.checkin-day.is-today{border-color:#b7c7ed}.checkin-day:hover{border-color:#afbfdb;background:#edf1f7}.checkin-day[aria-pressed=true]{outline:2px solid var(--blue);outline-offset:-2px;border-color:var(--blue)}.checkin-day:disabled{opacity:.4;background:#fafbfd}.checkin-day:disabled:hover{border-color:transparent}.checkin-legend{display:flex;align-items:center;gap:13px;font-size:9px;color:var(--muted);padding:12px 5px 0}.checkin-legend>span{display:flex;align-items:center;gap:5px}.checkin-legend i{width:10px;height:10px;background:#f1f3f6;border:1px solid var(--line);border-radius:2px;font-style:normal}.checkin-legend i.practiced{background:var(--sky);border-color:#d7e1fb}.checkin-legend i.checked{background:var(--green-bg);border-color:#c5dbce;color:var(--green);line-height:8px;font-size:9px}.checkin-legend small{font-size:9px;margin-left:auto}.checkin-detail-panel{border-left:1px solid var(--line);padding:25px 25px 20px;min-width:0}.checkin-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.checkin-detail-heading h2{font-size:18px;margin-top:4px}.checkin-detail-heading .badge{font-size:9px}.checkin-detail-counts{display:flex;align-items:center;gap:15px;margin:18px 0 16px;font-size:10px;color:var(--muted)}.checkin-detail-counts>strong{font-size:13px;font-weight:550;color:var(--ink)}.checkin-records{max-height:340px;overflow:auto;scrollbar-width:thin;padding-right:3px}.checkin-record{padding:14px 0;border-top:1px solid var(--line)}.checkin-record:first-child{padding-top:0;border:0}.checkin-record>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.checkin-record>div>small{color:var(--muted);font-size:9px}.checkin-record>p{font-size:11px;color:var(--ink);margin:7px 0}.checkin-record>p>span{color:var(--muted);font-size:10px}.checkin-record details>summary{font-size:10px;color:var(--stage-ink);cursor:pointer;padding:4px 0}.checkin-record details>p{font:13px/1.9 var(--display);margin:9px 0}.checkin-record details .word{font-size:inherit}.checkin-record .checkin-record-zh>p{font:11px/1.8 var(--body);color:var(--muted)}.checkin-record>.text-button{padding-left:0;margin-top:6px;font-size:10px}.checkin-record>.text-button .icon{width:13px;height:13px}.checkin-more{font-size:11px;width:100%;margin-top:13px;min-height:34px}.checkin-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:37px 7px;color:var(--muted);gap:10px}.checkin-empty>.icon{width:30px;height:30px;stroke-width:1;color:#9fadc0}.checkin-empty>p{font-size:12px}.checkin-empty>small{font-size:10px;line-height:1.8}.checkin-empty .btn{margin-top:7px;font-size:11px;min-height:35px}.checkin-footnote{font-size:10px;line-height:1.9;color:var(--muted);padding:17px 2px 0}.checkin-loading,.checkin-load-error{font-size:12px;color:var(--muted);padding:35px 8px;text-align:center;min-height:110px}.checkin-load-error p{margin-bottom:12px}.daily-checkin-chip{display:flex;align-items:center;gap:6px;min-height:36px;border:1px solid var(--line);border-radius:9px;background:var(--white);padding:7px 10px;color:var(--muted);font-size:11px;white-space:nowrap}.daily-checkin-chip .icon{width:15px;height:15px}.daily-checkin-chip small{font-size:10px;border-left:1px solid var(--line);padding-left:7px}.daily-checkin-chip.eligible{color:var(--blue);background:#f5f7ff;border-color:#cbd7fb}.daily-checkin-chip.checked{color:var(--green);background:var(--green-bg);border-color:#d3e2d9}.daily-checkin-chip:hover{border-color:#b9c8df}.checkin-goal-dialog{width:min(420px,calc(100% - 32px));padding:0;border:1px solid var(--line);border-radius:14px}.checkin-goal-form{padding:21px 24px 25px;display:grid;gap:20px}.checkin-goal-form>p{font-size:12px;line-height:1.9;color:var(--muted)}.checkin-goal-presets{display:flex;gap:7px}.checkin-goal-presets button{padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:11px}.checkin-goal-presets [aria-pressed=true]{background:var(--sky);border-color:#b4c4f3;color:var(--blue)}.checkin-goal-form label{display:grid;gap:7px;font-size:12px}.checkin-goal-form input{padding:10px;max-width:100%;width:100%}.checkin-goal-form label small{font-size:10px;color:var(--muted)}.checkin-goal-form .error{color:#a43b3b;font-size:12px}.checkin-just-stamped .checkin-stamp{animation:checkin-stamp .4s ease-out}@keyframes checkin-stamp{from{transform:rotate(-9deg) scale(1.14);opacity:.3}to{transform:rotate(-9deg) scale(1);opacity:1}}
@media(min-width:1600px){.app-shell:has(.checkin-page){grid-template-columns:82px minmax(0,1fr)}.checkin-page{max-width:1450px;width:100%;justify-self:center}.checkin-day{min-height:74px}}
@media(max-width:1050px){.checkin-page{padding:25px}.checkin-today-card{grid-template-columns:minmax(0,1fr) 155px}.checkin-totals{padding:6px 20px}.checkin-history{grid-template-columns:minmax(0,1.2fr) minmax(255px,1fr)}.checkin-calendar-panel,.checkin-detail-panel{padding:20px 16px}.checkin-calendar table{border-spacing:3px}.checkin-day{padding:7px 6px;min-height:60px}.checkin-day small{display:none}.checkin-legend{gap:9px}.checkin-legend small{display:none}}
@media(max-width:700px){.checkin-page{padding:21px 16px}.checkin-page-heading h1{font-size:24px}.checkin-page-heading{margin-bottom:18px}.checkin-continue{font-size:10px;padding:7px 9px;min-height:34px}.checkin-continue>.icon:last-child{display:none}.checkin-today-card{display:block;margin-bottom:20px}.checkin-today-main{padding:18px}.checkin-card-top{font-size:12px;gap:8px}.checkin-status{font-size:10px}.checkin-count strong{font-size:58px}.checkin-result{margin:18px 0 13px;gap:12px}.checkin-stamp{width:106px;height:106px;margin-right:0}.checkin-stamp>strong{font-size:16px}.checkin-stamp>span{font-size:10px}.checkin-card-actions{gap:12px;align-items:flex-start}.checkin-card-actions p{font-size:10px;max-width:150px}.checkin-card-actions .btn{font-size:11px;padding:8px 10px;min-height:37px}.checkin-totals{grid-template-columns:repeat(3,minmax(0,1fr));padding:13px 16px;border-left:0;border-top:1px solid var(--line)}.checkin-totals>div{border:0;border-right:1px solid var(--line);padding:0 9px}.checkin-totals>div:first-child{padding-left:0}.checkin-totals>div:last-child{padding-right:0}.checkin-totals strong{font-size:23px}.checkin-totals small{font-size:8px;white-space:nowrap}.checkin-history{display:block}.checkin-calendar-panel{padding:18px 12px 15px}.checkin-calendar-heading{padding:0 4px;gap:8px}.checkin-calendar-heading h2{font-size:15px}.checkin-calendar-heading p{font-size:10px}.checkin-day{min-height:58px;padding:7px 5px}.checkin-day>span{font-size:11px}.checkin-day>b{font-size:9px}.checkin-day>i{right:4px;bottom:8px;font-size:10px}.checkin-legend{font-size:8px;padding-left:4px}.checkin-detail-panel{border-left:0;border-top:1px solid var(--line);padding:21px 19px}.checkin-records{max-height:360px}.checkin-footnote{font-size:9px}.daily-checkin-chip{padding:6px 7px;gap:4px;font-size:10px;min-height:34px}.daily-checkin-chip small{display:none}.app-shell:has(.checkin-page){display:block}.app-shell:has(.checkin-page) .topbar .breadcrumb{display:none}.rail .rail-link{width:53px}.rail .rail-link span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.checkin-just-stamped .checkin-stamp{animation:none}}
/* Keep today's action compact enough that the calendar is visible immediately. */
@media(min-width:701px){.checkin-today-main{display:grid;grid-template-columns:minmax(0,1fr) 190px;grid-template-areas:'heading heading' 'result actions' 'goal goal' 'progress progress';padding:18px 25px 15px;column-gap:25px}.checkin-card-top{grid-area:heading}.checkin-result{grid-area:result;margin:10px 0 6px;gap:20px}.checkin-count strong{font-size:52px}.checkin-stamp{width:94px;height:94px;gap:5px}.checkin-stamp>strong{font-size:15px}.checkin-stamp>span{font-size:10px}.checkin-stamp>small{font-size:7px}.checkin-goal-row{grid-area:goal}.checkin-goal-progress{grid-area:progress;margin:0}.checkin-card-actions{grid-area:actions;flex-direction:column;align-items:flex-end;justify-content:center;gap:9px;padding:0;margin:0;border:0}.checkin-card-actions .btn{order:0;min-width:137px}.checkin-card-actions p{order:1;max-width:176px;text-align:right;font-size:10px}.checkin-today-card{grid-template-columns:minmax(0,1fr) 170px}.checkin-totals{padding:2px 22px}.checkin-totals>div{padding:9px 0}.checkin-totals strong{font-size:23px}.checkin-totals p{line-height:1.35;margin:0}.checkin-totals small{font-size:9px}.checkin-today-card{margin-bottom:21px}}
@media(min-width:701px) and (max-height:850px){.checkin-page{padding-top:24px}.checkin-page-heading{margin-bottom:18px}.checkin-page-heading h1{font-size:25px}.checkin-calendar-panel,.checkin-detail-panel{padding-top:19px;padding-bottom:16px}.checkin-calendar-heading{margin-bottom:10px}.checkin-day{min-height:52px}.checkin-records{max-height:290px}}
@media(min-width:701px){.checkin-result{justify-content:flex-start;gap:42px}.checkin-totals{font-size:10px;line-height:1.4}.checkin-totals>div>span,.checkin-totals small{display:block;line-height:1.4}.checkin-totals>div{padding:8px 0}}
@media(min-width:701px) and (max-height:850px){.checkin-calendar-heading p{display:none}.checkin-day{min-height:44px}.checkin-calendar th{height:21px}.checkin-calendar-panel,.checkin-detail-panel{padding-top:16px;padding-bottom:14px}}
.rail .local-avatar{padding:0;white-space:nowrap;line-height:1}.checkin-today-card.is-checked .checkin-card-actions .btn{opacity:1;background:var(--green-bg);color:var(--green);border-color:#cfe0d6;box-shadow:none}.checkin-goal-form .error:empty{display:none}
/* In-lesson check-in stays above the live workspace without remounting it. */
.checkin-daily-dialog{width:min(820px,calc(100% - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--white);overflow:auto}
.checkin-daily-dialog>.dialog-heading{padding:18px 22px}
.checkin-daily-dialog>.dialog-heading h2{font-size:18px}
.checkin-daily-body{padding:18px;background:var(--paper)}
.checkin-daily-dialog .checkin-today-card{margin:0}
.checkin-daily-dialog .checkin-result{gap:24px}
.checkin-daily-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 22px;border-top:1px solid var(--line)}
.checkin-daily-footer>.text-button{font-size:11px;color:var(--muted);padding-left:0}
.checkin-daily-footer>.btn{min-height:36px;font-size:12px}
@media(max-width:700px){.checkin-daily-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.checkin-daily-body{padding:12px}.checkin-daily-dialog>.dialog-heading,.checkin-daily-footer{padding:14px 16px}}

.checkin-daily-error{padding:12px 4px 0;font-size:12px;color:#a43b3b;line-height:1.7}
.checkin-daily-error:empty{display:none}
