.account-section{padding:22px 0;margin-bottom:22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.account-heading{display:flex;align-items:center;gap:13px}.account-heading>div{flex:1;min-width:0}.account-heading h2{font-size:16px;overflow-wrap:anywhere}.account-heading p{font-size:11px;color:var(--muted);margin-top:4px}.account-monogram{display:grid;place-items:center;width:45px;height:45px;background:var(--raised);color:var(--accent);border-radius:14px;font-size:21px;flex-shrink:0}.account-row{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;min-height:62px;padding:14px 0;border-bottom:1px solid var(--line);gap:14px}.account-row span:first-child{min-width:0}.account-row strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.account-row small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.account-row>span:last-child{font-size:18px;color:var(--accent)}.account-legal{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:16px;font-size:11px}.account-legal a,.account-legal button{color:var(--muted);text-decoration:none;padding:4px 0;min-height:30px}.sync-summary{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:13px;font-size:11px;color:var(--muted)}.sync-summary>span{min-width:0;display:flex;gap:8px;align-items:center}.sync-summary .text-btn{white-space:nowrap}.sync-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}.sync-dot.warning{background:var(--danger)}.auth-intro{padding:2px 0 20px}.auth-intro p{font-size:20px;line-height:1.65;letter-spacing:-.03em;margin-top:9px}.auth-form label{display:block;color:var(--muted);font-size:12px;margin-bottom:18px}.auth-form input{min-width:0}.auth-form .code-input{display:flex;gap:9px;align-items:center;margin-top:7px}.code-input input{flex:1;min-width:0;margin:0}.code-input button{font-size:12px;min-width:100px;min-height:48px;padding:10px 13px;white-space:nowrap}.auth-form .password-input{position:relative;display:block}.password-input input{padding-right:62px}.password-input>button{position:absolute;right:12px;top:2px;min-height:44px}.auth-form .consent-line{display:flex;align-items:flex-start;gap:11px;font-size:11px;line-height:1.9;margin:20px 0}.consent-line input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;border-radius:3px;width:18px;height:18px;min-height:18px;margin-top:3px;accent-color:var(--accent)}.consent-line input:before{display:none}.consent-line a{color:var(--accent);text-underline-offset:3px}.auth-error{color:var(--danger);font-size:12px;line-height:1.8;min-height:0;margin:10px 0;overflow-wrap:anywhere}.auth-error:not(:empty){min-height:24px}.auth-footer{display:flex;justify-content:space-between;gap:15px;margin-top:16px}.environment-note{padding:10px 12px;background:var(--raised);border-radius:10px;color:var(--muted);font-size:11px;line-height:1.8;margin-bottom:20px}.account-profile{text-align:center;padding:10px 0 24px}.account-profile .account-monogram{margin:0 auto 12px;width:60px;height:60px;font-size:28px}.account-profile strong{display:block;overflow-wrap:anywhere;font-size:17px}.account-profile p{margin-top:7px}.sync-choices{display:grid;gap:12px;margin:24px 0}.device-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.device-row>div{min-width:0}.device-row strong{display:block;font-size:13px;overflow-wrap:anywhere;font-weight:500}.device-row small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.account-section,.auth-form{animation:account-in .18s ease-out}@keyframes account-in{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}.legal-page{max-width:760px;margin:auto;padding:36px 24px 80px}.legal-page h1{margin:20px 0}.legal-page h2{margin:30px 0 10px}.legal-page p,.legal-page li{font-size:14px;line-height:1.95;margin:10px 0}.legal-page a{color:var(--accent)}.legal-page .environment-note{font-size:13px}@media(max-width:360px){.account-heading{flex-wrap:wrap}.account-heading>.text-btn{margin-left:58px}.code-input button{min-width:88px;padding:9px;font-size:11px}}@media(prefers-reduced-motion:reduce){.account-section,.auth-form{animation:none}}

.page-settings>.account-section{max-width:580px;margin-left:auto;margin-right:auto}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 6px;border-bottom:1px solid var(--line);padding-bottom:10px;font-size:12px;color:var(--muted)}.history-toolbar>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.history-toolbar .text-btn{min-height:44px}.history-status{color:var(--accent);font-size:12px;line-height:1.8}.history-status:empty,[data-history-error]:empty{display:none}.version-row{display:flex;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid var(--line);content-visibility:auto;contain-intrinsic-size:auto 106px}.version-main{min-width:0;flex:1;text-align:left;padding:6px 0}.version-main strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.version-main small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.version-main .version-preview{margin:6px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;color:var(--muted);font-size:12px;line-height:1.7}.version-actions{display:flex;align-items:center;flex-shrink:0;gap:8px}.version-actions .text-btn{min-width:44px;min-height:44px;padding:8px}.history-empty{text-align:center;padding:38px 12px 42px}.history-empty h3{font-size:16px;font-weight:500}.history-empty p{font-size:12px;color:var(--muted);margin-top:8px}.history-detail-title{font-size:16px;font-weight:500;overflow-wrap:anywhere}.history-details{margin:20px 0}.history-details>div{padding:12px 0;border-bottom:1px solid var(--line)}.history-details dt{font-size:11px;color:var(--muted);margin-bottom:6px}.history-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85}.history-images{display:grid;gap:12px}.history-images img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;background:var(--raised);border:1px solid var(--line);border-radius:12px}.sheet:has([data-history-view])>footer{flex-wrap:wrap}.sheet:has([data-history-view])>footer .text-btn{min-height:44px}@media(max-width:420px){.version-row{align-items:flex-start;gap:8px}.version-actions{flex-direction:column;gap:0}.history-toolbar{gap:8px}.history-toolbar>span{white-space:nowrap}.history-toolbar>div{gap:4px}.history-toolbar .text-btn{font-size:12px}}
.shell-update{position:fixed;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);z-index:1800;display:flex;align-items:center;gap:12px;padding:8px 10px 8px 18px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 32px #102b2318;font-size:13px}.shell-update[hidden]{display:none}.shell-update>span{min-width:0;line-height:1.6}.shell-update .text-btn{white-space:nowrap;min-height:44px}.shell-update .icon-btn{width:36px;flex-shrink:0;font-size:20px}

/* Required account entry shares the study workspace's quiet palette. */
main.auth-page{width:min(100%,500px);min-height:100vh;min-height:100svh;margin:0 auto;padding:48px 28px max(28px,env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:center;gap:30px}
.auth-brand{display:flex;align-items:baseline;gap:14px;color:var(--accent)}
.auth-brand>span{font-size:38px;line-height:1.25;font-weight:650;letter-spacing:.12em}
.auth-brand>small{font-size:12px;letter-spacing:.22em;color:var(--muted)}
.auth-page>section{min-width:0}
.auth-page .auth-intro{padding:0 0 22px}
.auth-page .auth-intro h1{font-size:24px;line-height:1.5;letter-spacing:-.03em;font-weight:600}
.auth-page .auth-intro p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:6px;letter-spacing:0}
.auth-page .auth-tabs{margin-bottom:20px}
.auth-page .auth-tabs button{min-height:44px}
.auth-page .auth-form label{margin-bottom:14px}
.auth-page .auth-form input:not([type=checkbox]){font-size:16px}
.auth-page .auth-form .consent-line{margin:18px 0;font-size:11px}
.auth-page .auth-form>.primary{min-height:50px;font-size:15px}
.auth-page .environment-note{margin-bottom:20px}
.auth-page .auth-footer{margin-top:12px;align-items:center}
.auth-page .auth-footer .text-btn{min-height:44px}
.auth-footnote{font-size:11px;line-height:1.8;color:var(--muted);padding-top:18px;border-top:1px solid var(--line)}
.auth-legacy{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}
.auth-legacy p{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:12px}
.auth-backup{margin-top:12px;font-size:12px;min-height:44px}
.auth-brand,.auth-page>section{animation:account-in .2s ease-out}
.auth-page .primary{transition:background-color .15s ease,transform .15s ease}
.auth-page .primary:active{transform:translateY(1px)}
@media(max-width:360px){main.auth-page{padding:30px 20px 24px;gap:24px}.auth-brand>span{font-size:34px}.auth-page .auth-intro h1{font-size:22px}.auth-page .auth-form .code-input{gap:6px}}
@media(min-width:700px){main.auth-page{padding-top:56px;padding-bottom:48px;gap:36px}}
@media(prefers-reduced-motion:reduce){.auth-brand,.auth-page>section{animation:none}.auth-page .primary{transition:none}}

/* Account save state and a private, accessible feedback conversation. */
.save-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin:0 0 16px;border:1px solid var(--line);border-radius:12px;background:var(--raised);color:var(--muted);font-size:12px;line-height:1.7}
.save-notice[hidden]{display:none}.save-notice>span{min-width:0;overflow-wrap:anywhere}.save-notice button{flex-shrink:0;min-height:40px}
.feedback-intro{padding:4px 0 20px}.feedback-intro p{font-size:15px;line-height:1.85}.feedback-intro small{display:block;color:var(--muted);font-size:11px;line-height:1.9;margin-top:8px}
.feedback-list-title{font-size:14px;font-weight:600;margin:30px 0 8px}.feedback-ticket{display:block;width:100%;text-align:left;padding:18px 0;border-bottom:1px solid var(--line)}
.feedback-ticket-top,.feedback-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.feedback-ticket-top strong,.feedback-detail-heading>strong{font-size:14px;font-weight:600}
.feedback-badge{border:1px solid var(--line);border-radius:6px;padding:3px 8px;color:var(--muted);font-size:10px;white-space:nowrap}.feedback-badge.processing{color:var(--accent)}.feedback-badge.resolved{background:var(--raised);color:var(--accent)}
.feedback-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:13px;line-height:1.8;margin:10px 0 8px}
.feedback-meta{display:block;font-size:10px;color:var(--muted);line-height:1.8;margin-top:6px;overflow-wrap:anywhere}.feedback-empty{text-align:center;color:var(--muted);padding:36px 12px;font-size:12px;line-height:1.9}.feedback-empty strong{display:block;font-size:14px;color:var(--fg)}.feedback-empty button{margin-top:16px}
.feedback-form label{display:block;font-size:12px;color:var(--muted);margin:18px 0}.feedback-form textarea{resize:vertical;min-height:110px;line-height:1.8}.feedback-form .field-hint{display:block}.feedback-count{display:block;text-align:right;font-size:10px;margin-top:5px;font-variant-numeric:tabular-nums}.feedback-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}.feedback-actions button{min-height:46px}
.feedback-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}.feedback-images>div{position:relative;aspect-ratio:1}.feedback-images img{height:100%;width:100%;object-fit:contain;border-radius:10px;border:1px solid var(--line);background:var(--raised)}.feedback-images .image-remove{position:absolute;right:0;top:0;min-width:32px;min-height:32px}
.feedback-thread{display:grid;gap:16px;margin:26px 0}.feedback-message{padding:16px;border:1px solid var(--line);border-radius:14px;min-width:0}.feedback-message.team{background:var(--raised);border-color:transparent}.feedback-message header{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;align-items:center}.feedback-message header strong{font-size:12px;font-weight:600;color:var(--accent)}.feedback-message time{font-size:10px;color:var(--muted)}.feedback-message>p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px}.feedback-attachments{display:grid;gap:10px;margin-top:14px}.feedback-attachments img{display:block;width:100%;max-height:400px;object-fit:contain;border-radius:8px;background:var(--bg)}
@media(max-width:360px){.feedback-actions>button{flex:1;padding:10px}.feedback-images{gap:6px}.feedback-message{padding:13px}}

/* Quiet hierarchy and safe, consistent confirmations across all modules. */
.account-group-title{font-size:11px;color:var(--muted);font-weight:500;letter-spacing:.08em;margin:25px 0 3px}
.account-row[data-account=delete] strong{color:var(--danger)}
.account-row:hover,.setting-link:hover{background:var(--raised)}
.advanced-entry{max-width:580px;margin:14px auto 0;color:var(--muted)}
.setting-link small{display:block;white-space:normal;font-size:11px;line-height:1.8;color:var(--muted);font-weight:400;margin-top:5px}
.mail-help{font-size:11px;color:var(--muted);line-height:1.85;margin:4px 0 18px}
.mail-help summary{cursor:pointer;min-height:36px;color:var(--accent)}
.mail-help p{padding-top:6px}
input[aria-invalid=true]{border-color:var(--danger)}
.decision-layer{position:fixed;inset:0;z-index:2000;background:#101b1680;display:flex;align-items:center;justify-content:center;padding:24px;overscroll-behavior:contain}
.decision-sheet{width:min(100%,440px);max-height:calc(100dvh - 48px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:26px;box-shadow:0 24px 80px #0003}
.decision-sheet h2{font-size:19px;overflow-wrap:anywhere}
.decision-sheet p{margin:14px 0 22px;line-height:1.9;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.decision-sheet footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.decision-sheet footer button{min-height:46px;font-size:13px;padding:10px 18px}
.sheet,.sheet-content{overscroll-behavior:contain}
.skip-link{position:fixed;top:-100px;left:16px;z-index:2100;background:var(--surface);color:var(--accent);padding:12px 18px;border-radius:10px}
.skip-link:focus{top:max(12px,env(safe-area-inset-top))}
.task-body,.session-row>span,.legend-copy,.review-history-row>span,.section-line>h2{min-width:0}
.task-body h3,.session-row strong,.setting-link>span,.review-preview,.focus-topic h2,.section-line>h2{overflow-wrap:anywhere}
.task-list>.task-row,.session-list>.session-row,.review-history-row{content-visibility:auto;contain-intrinsic-size:auto 82px}
.clock-digits,.study-total,.exam-days,.session-row>b{font-variant-numeric:tabular-nums}
@media(hover:hover){.icon-btn:hover,.text-btn:hover{background:var(--raised)}.primary:hover{filter:brightness(.96)}}
@media(max-width:360px){.decision-layer{padding:18px}.decision-sheet{padding:22px 18px}.decision-sheet footer>button{flex:1}}
body.decision-open{overflow:hidden}.switch-row[hidden],#duration-area[hidden]{display:none}
.image-upload:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#quote-text:focus-visible{outline:2px solid #b7caa4;outline-offset:5px}
@media(max-width:699px) and (max-height:620px) and (orientation:portrait){
 .immersion-header{padding:6px 18px 0;padding-top:max(6px,env(safe-area-inset-top))}
 .immersion-center{padding-top:4px;padding-left:18px;padding-right:18px}
 .immersion-center h1{margin-top:5px;font-size:17px}
 .immersion .clock-wrap{width:min(60vw,190px);margin:8px auto}
 .immersion-state{margin:5px 0 10px}
 .immersion .focus-controls>.primary,.immersion .focus-controls>.secondary{min-height:44px}
 .quote-card{margin:12px auto max(14px,env(safe-area-inset-bottom));padding-top:8px;width:calc(100% - 36px)}
 .quote-card>p{font-size:17px;max-height:74px;line-height:1.65;margin:5px 0 2px}
 .quote-card .text-btn{min-height:40px}
}
.version-preview{font-size:11px;color:var(--muted);line-height:1.8;margin-top:6px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.version-open{font-size:10px;color:var(--accent);font-weight:400;white-space:nowrap;margin-left:12px}

.reset-options{display:grid;gap:16px}.reset-card{border:1px solid var(--line);border-radius:18px;padding:22px;background:var(--surface)}.reset-kicker{font-size:11px;letter-spacing:.12em;color:var(--accent)}.reset-card h3{font-size:20px;margin:9px 0 12px}.reset-card p{font-size:13px;line-height:1.85;overflow-wrap:anywhere}.reset-card .reset-retain{color:var(--muted);font-size:12px;margin:10px 0 18px}.reset-card-danger{border-color:color-mix(in srgb,var(--danger) 28%,var(--line))}.reset-card-danger .reset-kicker{color:var(--danger)}.reset-warning{border-left:3px solid var(--danger);padding:4px 0 4px 16px;margin:4px 0 16px}.reset-warning strong{font-size:15px}.reset-warning p{font-size:13px;line-height:1.85;color:var(--muted);margin-bottom:0}.reset-options button{min-height:44px}
.reset-options+.field-hint{margin-top:16px}

.feedback-intro .field-hint{font-size:12px;margin-top:8px;color:var(--muted)}.feedback-badge.withdrawn{border-style:dashed;color:var(--muted)}.feedback-draft-notice{margin-top:16px;padding:12px;border-radius:12px;background:var(--raised)}.feedback-draft-notice .text-btn+.text-btn{margin-left:16px}.feedback-conflict:not([hidden]){display:flex;flex-wrap:wrap;gap:8px 16px}
