/* Familiar warm surfaces for first-use lessons and editable examples. */
body[data-booting=true] .app-shell{visibility:hidden}
body[data-setup=true] .app-shell{display:none}
#setup-root:empty{display:none}
.setup-shell{min-height:100dvh;padding:calc(env(safe-area-inset-top,0px) + 24px) 18px calc(env(safe-area-inset-bottom,0px) + 24px);display:flex;flex-direction:column;justify-content:center;gap:26px}
.setup-content{width:100%;max-width:1040px;margin:0 auto}
.setup-caption{display:flex;justify-content:center;text-align:center;color:var(--muted);font:12px/1.8 "Songti SC",serif;margin:0}
.setup-welcome{max-width:620px;margin:auto;text-align:center;padding:44px 0}
.setup-emblem{font:600 76px/1.2 "Iowan Old Style",Georgia,serif;letter-spacing:-4px;margin:0 0 36px}.setup-emblem b{color:var(--accent)}
.setup-welcome .guide-kicker{justify-content:center;font-size:12px}
.setup-welcome h1{font-size:clamp(32px,4vw,44px)!important;margin:14px 0 22px;letter-spacing:1px}
.setup-welcome>p{font-size:15px;line-height:1.95;color:var(--muted);margin:0 0 30px}
.setup-preview-types,.setup-ready-matters{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:26px 0 38px}
.setup-preview-types>span,.setup-ready-matters>span{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px;color:var(--muted);font-size:12px;line-height:1.5}
.setup-preview-types svg,.setup-ready-matters svg{width:16px;height:16px;color:var(--accent)}
.setup-welcome>.primary{margin:0 auto;min-width:220px;min-height:52px;font-size:15px}
.welcome-shell{justify-content:flex-start;gap:0}
.welcome-shell .setup-content{flex:1;display:grid;align-items:center;padding:0 0 40px}
.welcome-shell .setup-welcome{width:100%;padding:24px 0}
.setup-caption .text-button{font-size:14px;font-weight:600;min-height:50px;padding:12px 20px;border:1px solid #c69781;border-radius:13px;color:var(--accent);background:#f5e7db;gap:8px;justify-content:center;max-width:100%}
.setup-caption .text-button svg{width:17px;height:17px}
.account-entry{max-width:390px;width:100%;padding:12px 0}
.account-entry .setup-emblem{margin-bottom:22px}
.account-entry h1{font-size:32px!important;margin-bottom:12px}
.account-entry>p{font-size:13px;margin-bottom:24px}
.entry-switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;border:1px solid var(--line);background:#eae1d4;border-radius:13px;margin-bottom:22px}
.entry-switch button{min-height:42px;font-size:13px;color:var(--muted);border-radius:9px}
.entry-switch button.selected{background:var(--surface);color:var(--accent);box-shadow:0 2px 8px #382c1810;font-weight:600}
.entry-form{text-align:left}
.entry-field{display:block;margin:0 0 16px}
.entry-field>span{display:block;color:var(--muted);font-size:12px;margin-bottom:9px}
.entry-field input{display:block;width:100%;min-width:0;min-height:50px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:16px;color:var(--ink)}
.entry-password{position:relative}.entry-password input{padding-right:64px}
.entry-password button{position:absolute;right:5px;top:3px;bottom:3px;min-width:54px;color:var(--muted);font-size:12px;border-radius:9px}
.entry-forgot{display:block;margin:-5px 0 13px auto;min-height:44px;font-size:12px}
.entry-form .primary{min-height:50px;font-size:15px}
.entry-form .primary[aria-disabled=true]{opacity:.65;cursor:not-allowed}
.entry-status{font-size:11px;line-height:1.8;text-align:center;color:var(--muted);margin:12px 0 0;min-height:40px}
.entry-local{border-top:1px solid var(--line);padding-top:19px;margin-top:12px}
.entry-local .secondary{min-height:48px;font-size:13px;background:transparent}
.entry-local small{display:block;color:var(--muted);font-size:10px;line-height:1.8;margin-top:12px}
.entry-shell .setup-content{max-width:390px}
@media(hover:hover){.entry-switch button:hover,.entry-password button:hover{background:#fff9f0;color:var(--accent)}}
.setup-ready-icon{width:80px;height:80px;background:var(--green-soft);color:var(--green);border:1px solid var(--green-line);border-radius:50%;display:grid;place-items:center;margin:0 auto 32px}.setup-ready-icon svg{width:34px;height:34px;stroke-width:2.5}
body[data-setup=true] #save-status{position:static;width:auto;margin:auto;min-height:0;padding:8px 18px 0;font-size:10px;text-align:right}
body[data-setup=true] #save-status:not(.error){display:none}
@media(min-width:760px){.setup-shell{padding-inline:32px;padding-block:32px;gap:32px}.setup-shell .onboarding-home{padding:30px 34px}.setup-shell .onboarding-steps{margin-bottom:28px}}
.guide-help span{font:600 15px/1 Georgia,serif;border:1.5px solid currentColor;border-radius:50%;width:19px;height:19px;display:grid;place-items:center}
.onboarding-home{border:1px solid var(--line);background:var(--surface);border-radius:21px;padding:18px;min-width:0}
.onboarding-top{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:16px}
.guide-kicker{font-size:11px;letter-spacing:.5px;color:var(--accent);display:flex;align-items:center;gap:6px;line-height:1.6}
.guide-kicker svg{width:15px;height:15px}
.onboarding-top .text-button{font-size:11px;flex-shrink:0;padding-inline:6px}
.onboarding-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:24px}
.onboarding-steps button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;color:var(--muted);font-size:10px;padding:6px 4px;min-height:54px}
.onboarding-steps span{font:17px Georgia,serif;opacity:.6}
.onboarding-steps .current{color:var(--accent);font-weight:600}.onboarding-steps .current span{opacity:1}.onboarding-steps .passed{color:var(--green)}
.guide-type-header h2{font:600 25px/1.35 "Songti SC",serif;letter-spacing:.4px;margin:10px 0 12px}
.guide-type-header>p{color:var(--muted);font-size:13px;line-height:1.9;margin:0;max-width:720px}
.guide-tag-note{display:flex;gap:10px;align-items:flex-start;background:#f3ede2;border-radius:11px;padding:12px;margin:18px 0;line-height:1.8;font-size:11px;color:var(--muted)}
.guide-tag-note .tag{font-size:10px;flex-shrink:0;margin-top:1px}
.guide-example-label{font-size:12px;font-weight:500;margin:18px 0 12px;line-height:1.7}
.example-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.example-choice{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:13px;padding:13px 10px;text-align:left;min-width:0;min-height:84px;background:#fffcf7}
.example-choice.chosen{border-color:#c49379;background:#f8eade}
.example-icon{display:none;color:var(--accent)}.example-icon svg{width:20px;height:20px}
.example-copy{flex:1;min-width:0}.example-copy strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.example-copy small{display:block;font-size:10px;color:var(--muted);margin-top:8px;line-height:1.5}
.example-check{width:22px;height:22px;display:grid;place-items:center;flex-shrink:0;color:#aa9a84}.example-check svg{width:16px;height:16px}.chosen .example-check{color:var(--accent)}
.guide-footnote{font-size:11px;color:var(--muted);line-height:1.8;margin:14px 0}
.onboarding-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;border-top:1px solid var(--line);padding-top:18px}
.onboarding-footer .guide-footnote{margin:0;max-width:100px}.onboarding-footer .primary{min-width:120px;min-height:46px;font-size:13px}
.guide-skip-all{border:1px solid #c69781;background:#f5e7db;color:var(--accent);font-size:13px;min-height:44px;padding:9px 16px;font-weight:600}
.guide-custom{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:18px;min-height:46px;min-width:130px;font-size:13px}
.guide-custom svg{width:17px;height:17px}
.guide-created-list{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
.guide-created-list button{display:flex;align-items:center;gap:7px;border:1px solid var(--green-line);background:var(--green-soft);color:var(--green);border-radius:12px;padding:10px;min-height:44px;max-width:100%;font-size:12px}
.guide-created-list span{overflow-wrap:anywhere}.guide-created-list svg{width:15px;height:15px}
.guide-footer-right{display:flex;align-items:center;gap:8px}
.onboarding-footer .guide-nav{width:100px;min-width:100px;min-height:46px;font-size:13px;padding:10px 8px}
.guide-skip-step{min-width:44px;justify-content:center;font-size:12px;min-height:46px}
.guide-today-setting{margin-top:18px;padding-top:8px;border-top:1px solid var(--line)}
.account-entry .entry-switch{margin-top:24px}
.onboarding-other{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-top:15px}.onboarding-other .text-button{font-size:11px;min-height:44px}
.guide-editor-grid{display:grid;gap:14px;margin-top:22px}.guide-matter-editor{background:#f9f3e9;border:1px solid var(--line);border-radius:16px;padding:16px;min-width:0}
.guide-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.guide-matter-editor .field{display:block;margin:14px 0}.guide-matter-editor .field>span{display:block;font-size:11px;color:var(--muted);margin-bottom:9px}
.guide-matter-editor input:not([type=checkbox]){display:block;width:100%;min-width:0;max-width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:44px;font-size:15px;}
.guide-matter-editor .choice-pill{font-size:11px;padding:7px 10px;min-height:40px}
.guide-today-choice{display:flex;gap:10px;align-items:center;padding-top:16px;margin-top:18px;border-top:1px solid var(--line);font-size:12px;min-height:44px;cursor:pointer}
.guide-today-choice input{accent-color:var(--accent);width:19px;height:19px;margin:0;flex-shrink:0}
.guide-empty{padding:24px;border:1px dashed var(--line);border-radius:12px}.guide-empty p{color:var(--muted);font-size:13px;margin:0 0 16px}
.page-guide{padding:20px 18px;border:1px solid #d6bea6;border-radius:18px;background:linear-gradient(120deg,#f8e9d8,#fffaf1);margin-bottom:24px;min-width:0}
.page-guide h2{font:600 22px/1.5 "Songti SC",serif;margin:8px 0 10px}.page-guide p{font-size:12px;line-height:1.9;color:var(--muted);margin:0;max-width:760px}
.guide-hint-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.guide-hint-chips span{border:1px solid #d8c3ac;border-radius:30px;padding:5px 9px;color:var(--muted);font-size:10px;line-height:1.6}
.page-guide-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:20px}.page-guide-actions .primary{font-size:12px;padding-inline:16px;min-height:44px}
@media(hover:hover){.example-choice:hover{border-color:#c49379}.onboarding-steps button:hover{background:var(--canvas);border-radius:8px}}
@media(min-width:760px){
body[data-page=today] header,body[data-variant=A][data-page=today] header,body[data-page=today] main,body[data-variant=A][data-page=today] main{max-width:calc(var(--today-width,980px) + var(--page-padding)*2);width:100%;margin-inline:auto;}
body[data-page=today] .today-layout{display:block;}
body[data-page=today] .today-journal{position:static;margin-top:34px;width:100%;}
body[data-page=today] .today-journal .section-heading{min-height:28px;margin-bottom:14px;}
body[data-page=today] .today-journal .journal-card{min-height:180px;max-height:none;margin:0;padding:24px!important;overflow:visible;}
body[data-page=today] .journal-card p{font-size:17px;line-height:1.95;}
body[data-page=today] .journal-rule{box-shadow:none!important;margin-top:22px;}
body[data-page=today] .card-grid{gap:20px;}
body[data-page=today] .card-grid[data-single=true]{width:min(100%,440px);margin-inline:auto;}
body[data-page=today] .card-grid .card,body[data-page=today] .card-grid .card-rotator{min-height:clamp(224px,27vh,290px);}
body[data-page=today] .card-grid .card-side{padding:22px;border-radius:20px;}
body[data-page=today] .card-grid .card-front h3{font-size:clamp(18px,1.3vw,24px);margin-top:16px;min-height:52px;}
body[data-page=today] .card-grid .metadata,body[data-page=today] .card-grid .tag{font-size:11px;}
body[data-page=today] .card-grid .detail-line{font-size:13px;}
body[data-page=today] .card-grid .track{max-width:120px;}
body[data-page=today] .card-grid .primary,body[data-page=today] .card-grid .status{min-height:48px;font-size:14px;}
body[data-page=today] .card-grid .star{top:8px;right:9px;}
body[data-page=today][data-onboarding=true] header,body[data-variant=A][data-page=today][data-onboarding=true] header,body[data-page=today][data-onboarding=true] main,body[data-variant=A][data-page=today][data-onboarding=true] main{max-width:calc(1040px + var(--page-padding)*2);}
.onboarding-home{padding:30px 34px;border-radius:24px;}
.onboarding-top{margin-bottom:22px;}.guide-kicker{font-size:12px;}
.onboarding-steps{gap:22px;margin-bottom:28px;padding-bottom:20px;}.onboarding-steps button{flex-direction:row;align-items:center;gap:12px;font-size:13px;min-height:48px;}.onboarding-steps span{font-size:22px;}
.guide-type-header h2{font-size:32px;margin:12px 0 14px;}.guide-type-header>p{font-size:15px;}
.guide-tag-note{padding:15px 18px;font-size:13px;margin:24px 0;}.guide-example-label{font-size:14px;margin:22px 0 14px;}
.example-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}.example-choice{min-height:104px;padding:18px 16px;gap:12px;}.example-icon{display:block;}.example-copy strong{font-size:17px;}.example-copy small{font-size:12px;}
.onboarding-footer{margin-top:28px;padding-top:22px;}.onboarding-footer .guide-footnote{max-width:none;font-size:12px;}.onboarding-footer .primary{min-width:180px;min-height:48px;font-size:14px;}
.onboarding-footer .guide-nav{width:140px;min-width:140px;min-height:48px;font-size:14px}.guide-footer-right{gap:16px}.guide-skip-step{padding-inline:12px;min-height:48px}
.guide-editor-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;}.guide-matter-editor{padding:18px;}.guide-matter-editor .choice-wrap{gap:5px;}.guide-matter-editor .choice-pill{padding:7px 9px;}
.page-guide{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:26px 28px;}.page-guide-copy{flex:1;min-width:0;}.page-guide h2{font-size:26px;}.page-guide p{font-size:13px;}.page-guide-actions{margin-top:0;flex-direction:column;flex-shrink:0;gap:4px;}.page-guide-actions .primary{min-width:180px;}
}
@media(min-width:760px) and (max-width:1099px){.guide-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.page-guide{gap:18px;padding:22px;}.page-guide-actions .primary{min-width:0;}}
@media(min-width:760px) and (max-height:700px){body[data-page=today] .card-grid .card,body[data-page=today] .card-grid .card-rotator{min-height:218px;}body[data-page=today] .card-grid .card-side{padding:16px;}body[data-page=today] .card-grid .card-front h3{margin-top:10px;min-height:42px;}.brand-line{top:8px;}}

/* Keep the welcome import action and its explanation in a single vertical stack. */
.welcome-shell .setup-caption{flex-direction:column;align-items:center;gap:10px;flex:none;width:100%;margin:0 auto}
.welcome-shell .setup-caption .text-button{display:inline-flex;align-items:center;width:min(100%,320px);min-height:52px;white-space:nowrap;flex:none}
.welcome-shell .welcome-import-note{display:block;width:100%;max-width:340px;margin:0;line-height:1.8;padding:0 6px}
