:root{color-scheme:light;--paper:#f5f6f5;--ink:#242729;--muted:#64696e;--rule:#dfe2e2;--accent:#215cc4;--radius:8px;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.65}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}a{color:var(--accent);text-underline-offset:4px}button,a{touch-action:manipulation}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,h3,p,figure{margin:0}h1,h2,h3{font-weight:600;line-height:1.35;text-wrap:balance}p{line-break:strict;text-wrap:pretty}img{display:block;max-width:100%}
.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;max-width:1440px;padding:0 56px;margin:auto;border-bottom:1px solid var(--rule)}.wordmark{display:flex;gap:13px;align-items:center;font-size:20px;color:var(--ink);text-decoration:none;font-weight:600;letter-spacing:1px}.mark{background:var(--ink);color:white;font-size:20px;line-height:30px;width:30px;text-align:center;border-radius:5px;font-weight:500}.topnote{font-size:14px;color:var(--muted)}main{display:grid;grid-template-columns:320px minmax(0,1fr);gap:64px;max-width:1440px;margin:auto;padding:42px 56px 72px}.calendar-area{align-self:start;position:sticky;top:32px}.month-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.month-head h1{font-size:25px;font-weight:500;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.month-actions{display:flex;gap:2px}.icon-button{border:0;background:transparent;width:44px;height:44px;display:grid;place-items:center;border-radius:var(--radius);font-size:28px;line-height:1}.icon-button:hover{background:#e7e9e8}.weekdays,.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}.weekdays{font-size:13px;color:var(--muted);margin-bottom:9px}.days{row-gap:7px}.day{border:0;background:transparent;position:relative;min-height:44px;font-size:16px;font-variant-numeric:tabular-nums;border-radius:var(--radius);padding:5px 0 9px}.day:hover{background:#e4e7e7}.day[aria-pressed=true]{background:var(--ink);color:white}.day.is-today:not([aria-pressed=true]){color:var(--accent);font-weight:650}.day.has-items:after{content:"";position:absolute;bottom:5px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--accent)}.day[aria-pressed=true]:after{background:white}.calendar-foot{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted);padding-top:15px;margin-top:14px;border-top:1px solid var(--rule)}.calendar-foot i{display:inline-block;width:5px;height:5px;background:var(--accent);border-radius:50%;margin:0 7px 2px 2px}.text-button{border:0;background:transparent;color:var(--accent);min-height:44px;padding:0 4px;font-size:14px}.calendar-note{margin-top:30px;font-size:14px;color:var(--muted)}.calendar-note p{margin-top:12px;color:#8a8e92}.date-head{display:flex;justify-content:space-between;align-items:end;margin:0 0 24px}.eyebrow{font-size:13px;letter-spacing:1px;color:var(--muted);margin-bottom:7px}.date-head h2{font-size:34px;letter-spacing:-.7px;font-weight:500}.muted{color:var(--muted);font-size:14px}.filters{display:flex;gap:4px;border-bottom:1px solid var(--rule);padding-bottom:16px;margin-bottom:27px;flex-wrap:wrap}.filters button{border:0;padding:9px 14px;background:transparent;border-radius:var(--radius);font-size:14px;min-height:44px}.filters button[aria-pressed=true]{background:#e4e7e7;font-weight:600}.filters button:hover{background:#e9ebeb}.learning-item{margin-bottom:36px}.item-open{padding:0;border:0;background:none;display:block;text-align:left;width:100%;border-radius:var(--radius)}.item-open:hover h3{color:var(--accent)}.item-open img{width:100%;height:auto;transition:filter .18s}.item-open:hover img{filter:brightness(.97)}.item-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;line-height:1.5;margin:17px 0 8px;color:var(--muted)}.item-meta .label{color:var(--ink);font-weight:500}.learning-item h3{font-size:25px;font-weight:500;letter-spacing:-.3px}.item-description{font-size:15px;color:var(--muted);margin-top:8px;max-width:45em}.secondary-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.secondary-items .learning-item h3{font-size:21px}.secondary-items .learning-item{margin-bottom:14px}.empty{padding:52px 0 90px;color:var(--muted);font-size:16px}.empty small{display:block;margin-top:6px;font-size:14px}.page-footer{max-width:1440px;margin:auto;padding:22px 56px 32px;border-top:1px solid var(--rule);display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px;letter-spacing:.4px}
dialog{border:0;border-radius:12px;background:#fff;color:var(--ink);width:min(860px,calc(100% - 48px));max-height:92dvh;padding:0;overflow:auto;box-shadow:0 16px 70px #0003}dialog::backdrop{background:#161a206b;backdrop-filter:blur(4px)}.reader-bar{position:sticky;top:0;z-index:1;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 28px;border-bottom:1px solid #eee;font-size:14px}.reader-body{padding:30px 40px 42px}.reader-body h2{font-size:32px;letter-spacing:-.5px;margin:8px 0 25px}.reader-body .photo{width:100%;height:auto}.caption{font-size:13px;color:var(--muted);margin:10px 0 27px}.reader-section{margin-top:26px}.reader-section h3{font-size:18px;margin-bottom:12px}.reader-section p{font-size:17px;margin:0 0 14px}.reader-section ul{padding-left:1.25em;margin:0}.reader-section li{font-size:17px;padding:0 0 15px 5px}.source-links{display:flex;gap:20px;flex-wrap:wrap;font-size:14px}.reader-note{color:var(--muted);font-size:14px;margin:24px 0 0}.reader-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:26px}.primary-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;background:var(--ink);color:white;border-radius:var(--radius);text-decoration:none;font-size:14px}.secondary-link{min-height:44px;display:inline-flex;align-items:center;font-size:14px}.long-card{width:100%;margin-top:20px}.long-reader{padding-top:20px}.long-reader h2{font-size:26px;margin-bottom:12px}.long-reader .reader-actions{margin-top:0}
@media(min-width:1500px){main{gap:80px;grid-template-columns:340px minmax(0,1fr)}}
@media(max-width:1000px){.topbar{padding:0 32px;height:76px}main{grid-template-columns:280px minmax(0,1fr);gap:32px;padding:32px}.secondary-items{grid-template-columns:1fr}.page-footer{padding:22px 32px}.date-head h2{font-size:29px}.filters{gap:0}.filters button{padding:9px 11px}.learning-item h3{font-size:23px}}
@media(max-width:760px){.topbar{height:68px;padding:0 22px}.wordmark{font-size:18px}.topnote{display:none}main{display:block;padding:26px 22px 38px}.calendar-area{position:static;max-width:460px;margin:auto auto 32px}.month-head{margin-bottom:14px}.month-head h1{font-size:24px}.days{row-gap:2px}.day{min-height:44px;font-size:16px}.calendar-note{display:none}.calendar-foot{padding-top:4px;margin-top:10px}.date-head{margin-bottom:16px}.date-head h2{font-size:28px}.filters{margin-bottom:22px;padding-bottom:12px;gap:0;justify-content:flex-start}.filters button{font-size:14px;padding:8px 8px}.learning-item{margin-bottom:28px}.learning-item h3,.secondary-items .learning-item h3{font-size:22px}.item-meta{margin-top:13px;gap:9px}.item-description{font-size:15px}.secondary-items{gap:24px}.secondary-items .learning-item{margin-bottom:0}.page-footer{padding:20px 22px 28px;flex-direction:column;gap:3px}dialog{width:100%;max-width:100%;max-height:100dvh;height:100dvh;margin:0;border-radius:0}.reader-bar{padding:12px 17px}.reader-body{padding:25px 22px 40px}.reader-body h2{font-size:28px}.reader-section p,.reader-section li{font-size:17px}.reader-section h3{font-size:18px}.long-reader{padding:20px 0 30px}.long-reader h2,.long-reader>.reader-note,.long-reader>.reader-actions{margin-left:22px;margin-right:22px}.long-reader h2{font-size:24px}.long-card{margin-top:18px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Original image ratio, edge-to-edge headers. No cropping or added padding. */
.reader-body figure{margin-left:-40px;margin-right:-40px}.reader-body figcaption{margin-left:40px;margin-right:40px}
@media(max-width:760px){.reader-body figure{margin-left:-22px;margin-right:-22px}.reader-body figcaption{margin-left:22px;margin-right:22px}}

.plan-link{color:inherit;font-size:14px;text-decoration:none;white-space:nowrap}.topbar{gap:14px;min-height:68px;height:auto;padding-top:20px;padding-bottom:20px;flex-wrap:wrap}.plan-link{white-space:normal}

.brand-icon{display:block;flex:0 0 auto;width:32px;height:32px}

.reader-actions{display:flex;flex-wrap:wrap;gap:16px 24px}

/* v05: uniform list preview; reader keeps full-size originals. */
.cover-preview{display:grid;width:100%;aspect-ratio:16/9;overflow:hidden;grid-template-columns:minmax(0,1fr)}
.item-open .cover-preview img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover}
.cover-preview.cover-pair{grid-template-columns:2fr 3fr;gap:0}

.cover-preview.cover-equal{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Three originals share one 16:9 preview without wrapping. */
.cover-preview.cover-triple{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:0}

.cover-preview.cover-contain img{object-fit:contain;background:#f3f2ef}

/* Personal signals: distinct labels/icons, private browser storage. */
.personal-actions{margin:14px 0 20px}
.personal-buttons{display:flex;flex-wrap:wrap;gap:10px}
.personal-buttons button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:6px 10px;border:1px solid #c6c8ca;border-radius:6px;background:transparent;color:#252729;font-size:14px;font-weight:500}
.personal-buttons button::before{content:"";position:absolute;inset:-4px 0}
.personal-buttons button[aria-pressed="true"]{background:#252729;color:#fff;border-color:#252729}
.personal-buttons button:disabled{opacity:.55;cursor:wait}
.personal-buttons button:focus-visible,.feedback-scopes button:focus-visible{outline:2px solid #252729;outline-offset:3px}
.personal-icon{font-size:16px;line-height:1}
.personal-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.personal-status[data-failed="true"]{position:static;width:auto;height:auto;clip-path:none;white-space:normal;font-size:13px;line-height:1.6;margin-top:9px;color:#252729}
.feedback-editor{margin-top:12px;font-size:13px;color:#606469}
.feedback-editor[hidden]{display:none}
.feedback-editor summary{cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px}
.feedback-scopes{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.feedback-scopes button{background:transparent;border:1px solid #c6c8ca;border-radius:5px;padding:6px 9px;font-size:13px;color:#252729}
.feedback-scopes button[aria-pressed="true"]{background:#252729;color:white}
.feedback-reason-label{display:block;font-size:13px}
.feedback-editor textarea{display:block;width:100%;margin-top:6px;border:1px solid #c6c8ca;border-radius:5px;padding:9px;font:inherit;color:#252729;background:transparent;resize:vertical}
.feedback-caption{font-size:12px;line-height:1.6;margin-top:7px}


#preference-sync-panel{width:min(520px,calc(100vw - 32px));height:auto;max-height:90dvh;margin:auto;padding:24px;border-radius:8px}#preference-sync-panel h2{font-size:22px;margin-bottom:14px}#preference-sync-panel p{font-size:14px;margin:14px 0}#preference-sync-panel label{display:block;font-size:14px;margin:16px 0}#preference-sync-panel input:not([type=checkbox]){display:block;width:100%;font:inherit;padding:10px;border:1px solid #bbb;border-radius:4px;margin-top:6px}#preference-sync-panel .sync-consent{display:flex;gap:10px;align-items:flex-start}#preference-sync-panel button:not(.icon-button),.sync-conflict button{padding:10px 14px;min-height:44px;border:1px solid #666;border-radius:4px;background:white;margin:6px 8px 6px 0}.sync-conflict{margin-top:12px}#preference-sync-panel form{display:flex;justify-content:flex-end}

#personal-feedback-list{margin-top:28px;border-top:1px solid #ddd;padding-top:16px}#personal-feedback-list h3{font-size:16px;margin:0 0 12px}.feedback-record-link{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #ddd;border-radius:0;padding:12px 0;color:inherit;font-size:14px;cursor:pointer}.feedback-record-link small{display:block;font-size:12px;color:#686868;margin-top:5px;line-height:1.5}

/* Compact explicit feedback confirmation; shared desktop/mobile UI. */
.feedback-save-row{display:flex;align-items:center;gap:10px;margin-top:8px}
.feedback-confirm{background:#252729;color:#fff;border:1px solid #252729;border-radius:5px;padding:5px 12px;font:inherit;font-size:12px;line-height:1.5;cursor:pointer}
.feedback-confirm:focus-visible{outline:2px solid #252729;outline-offset:3px}
.feedback-save-status{font-size:12px;color:#606469}
.feedback-save-status[data-failed="true"]{color:#a12727}

/* Preserve word groups in reviewed replacement lessons; source text stays unchanged. */
.word-unit{white-space:nowrap}

.content-redo-status{font-size:13px;line-height:1.6;margin:8px 0;color:#555}
@media(max-width:480px){.personal-buttons{gap:6px}.personal-buttons button{padding:6px 8px;font-size:13px;white-space:nowrap}}

/* Keep the source-link phrase readable at narrow widths. */
.caption a{white-space:nowrap}
