@font-face{font-family:Xiaolai;src:url("fonts/Xiaolai-Regular.ttf") format("truetype");font-display:swap;font-weight:400;font-style:normal}
/* 青迹打卡 — a little paper home for everyday things. */
@font-face{font-family:Journal;src:url('fonts/LXGWWenKaiLite-Regular.woff2') format('woff2');font-display:swap;font-style:normal;font-weight:100 900}
@font-face{font-family:"Lover Sans";src:url('fonts/Lover-Sans-Regular.woff2') format('woff2');font-display:swap}
@font-face{font-family:"Lover Serif";src:url('fonts/Lover-Serif-Regular.woff2') format('woff2');font-display:swap}
@font-face{font-family:"Lover Brush";src:url('fonts/Lover-Brush-Regular.woff2') format('woff2');font-display:swap}
:root{--paper:#f8f5ed;--white:#fffdf8;--ink:#314b40;--muted:#8b9084;--green:#527460;--light:#e8eddf;--pink:#c98f88;--pink-light:#f4e6e1;--line:#e6e3d8;--shadow:0 8px 24px #4e5c4210;--hand:Journal,'KaiTi','STKaiti',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{min-width:300px}
body{margin:0;background:#e9e8df;color:var(--ink);font-family:var(--hand);font-size:16px;line-height:1.6}
button,input,textarea,select{font:inherit}
button,a,input,textarea{touch-action:manipulation}
button{border:0;cursor:pointer;color:inherit;transition:transform .18s,background .2s,color .2s}
button:disabled{opacity:.35;cursor:default}
button:active:not(:disabled){transform:scale(.96)}
button:focus-visible,a:focus-visible{outline:2px solid var(--pink);outline-offset:4px}
a{color:inherit;text-decoration:none}
svg{width:22px;height:22px;vertical-align:middle;flex-shrink:0}
h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:500}h1{font-size:29px;line-height:1.4}h2{font-size:23px}h3{font-size:19px}
[hidden]{display:none!important}
.app-shell{max-width:500px;min-height:100vh;margin:auto;background:var(--paper);background-image:radial-gradient(#b6b5a42b .7px,transparent .7px);background-size:8px 8px;padding-bottom:calc(101px + env(safe-area-inset-bottom));position:relative;overflow:hidden}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:14px 24px 8px}
.brand{display:flex;gap:9px;align-items:center;min-height:48px}
.brand>span:last-child{font:600 26px/1 var(--hand);letter-spacing:0}
.brand small{display:block;font:9px/1.5 var(--hand);letter-spacing:2px;margin-top:4px}
.brand-symbol{font-size:33px;line-height:1;transform:rotate(-14deg);color:var(--pink)}
.icon-button{background:transparent;border:1px solid var(--line);border-radius:50%;width:42px;height:42px;display:inline-grid;place-items:center;flex-shrink:0}
.icon-button.plain{border:0}.icon-button.small{width:40px;height:40px}.icon-button svg{width:18px;height:18px}
main{padding:0 22px;min-height:70vh;outline:0}
.eyebrow{font:10px/1.5 var(--sans);letter-spacing:2.5px;color:var(--muted)}
.date-bar{display:flex;align-items:center;gap:5px;margin:5px 0 10px}
.date-title{flex:1;min-width:0}
.date-bar .icon-button.small{width:44px;height:44px;background:#fffdf680}
.today-tag{border-radius:12px;background:#e7eddf;color:#425746;padding:4px 9px;font-size:12px;white-space:nowrap}
.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:18px}
.week-day{display:grid;justify-items:center;align-content:center;gap:3px;padding:4px 0;border-radius:14px;background:transparent;color:#596b5f;font-size:11px;min-height:48px}
.week-day strong{font:500 16px/1.2 var(--sans);font-variant-numeric:tabular-nums}
.week-day .dot{height:4px;width:4px;border-radius:50%;background:transparent}
.week-day.has-check .dot{background:#ae7772}
.week-day.current{background:var(--green);color:white}
.week-day.current.has-check .dot{background:#fae5bf}
.week-day.today:not(.current){box-shadow:inset 0 0 0 1px #a8b49a}
.today-list>.section-heading{margin:0 0 1px}
.today-list>.section-heading h2{font-size:22px;color:var(--ink)}
.today-list .text-button{min-height:44px}
.today-progress{display:flex;align-items:center;gap:10px;margin:0 0 4px;color:#526858;min-height:25px}
.progress-track{height:5px;border-radius:10px;background:#dde4d5;overflow:hidden;flex:1;min-width:24px}
.progress-track i{display:block;height:100%;width:100%;background:var(--green);border-radius:10px;transform:scaleX(var(--progress));transform-origin:left}
.progress-label{font:600 12px var(--sans);font-variant-numeric:tabular-nums;white-space:nowrap}
.streak-tag,.today-future{font-size:12px;color:#627063}
.streak-tag{white-space:nowrap}
.today-future{padding:2px 0 6px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0 4px}
.section-heading h2{font-size:22px}.section-heading h2 em{font:italic 12px Georgia,serif;color:var(--pink);margin-left:9px}
.text-button{background:transparent;color:var(--green);padding:9px 5px;min-height:40px;font-size:13px;white-space:nowrap}
.filters{display:flex;gap:5px;margin:3px 0 6px}
.filter{border:1px solid transparent;background:transparent;padding:4px 13px;border-radius:20px;min-height:37px;font-size:13px;color:#606c61}
.filter.active{background:#e9eee1;color:#385342}
.checklist{border:1px solid var(--line);border-radius:17px;background:var(--white);position:relative;overflow:hidden}
.today-list .empty-state{color:#627063}
.task-row{display:flex;gap:6px;align-items:center;min-height:65px;padding:6px 8px;border-bottom:1px solid #eeeae0;position:relative}
.task-row:last-child{border-bottom:0}
.checkbox{width:44px;height:44px;flex-shrink:0;background:transparent;color:transparent;display:grid;place-items:center;position:relative;padding:0}
.checkbox:before{content:'';position:absolute;width:25px;height:25px;border:1.5px solid #96a591;border-radius:8px;background:#fffdf8;transition:background .15s,border-color .15s}
.checkbox svg{width:17px;height:17px;position:relative}
.task-row.done .checkbox{color:#fffaf0}
.task-row.done .checkbox:before{background:var(--green);border-color:var(--green)}
.task-main{background:transparent;text-align:left;flex:1;min-width:0;padding:0;min-height:44px}
.task-title{display:block;font-size:17px;line-height:1.42;overflow-wrap:anywhere}
.task-row.done .task-title{color:#596c5f;text-decoration:line-through;text-decoration-color:#8d9d90}
.task-sub{display:block;color:#626e63;font-size:11px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task-sticker{display:grid;place-items:center;width:29px;height:29px;color:#4d6c58;border-radius:10px;background:#edf0e5;flex-shrink:0}
.task-sticker.rose{background:var(--pink-light);color:#966960}.task-sticker.honey{background:#f5ebd6;color:#886d39}.task-sticker svg{width:17px;height:17px}
.add-dashed{display:flex;gap:7px;justify-content:center;align-items:center;width:100%;background:#ebeee2;border:1px solid #dfe5d5;border-radius:12px;margin:9px 0 17px;min-height:44px;color:#405946;font-size:14px}
.add-dashed svg{width:17px;height:17px}
.journal-card{background:#f5ebe5;border:1px solid #ecdcd2;border-radius:18px 7px 18px 18px;padding:18px;position:relative;margin:23px 0 12px}
.journal-card h3{font-size:20px}.journal-card .eyebrow{color:#a59181;font-size:9px}
.moods{display:flex;gap:8px;justify-content:space-between;margin:15px 0}
.mood{background:#fffaf180;min-width:39px;padding:7px 2px;border:1px solid transparent;border-radius:15px;flex:1;font-size:12px;color:#a49383}
.mood svg{width:24px;height:24px;display:block;margin:0 auto 4px}
.mood.active{border-color:#c89085;background:#fffaf1;color:#a67168;box-shadow:0 3px 0 #c890851a}
.journal-card textarea{display:block;width:100%;resize:vertical;min-height:75px;max-height:250px;background:repeating-linear-gradient(transparent 0,transparent 30px,#dcc9bc70 30px,#dcc9bc70 31px);border:0;outline:0;line-height:31px;color:var(--ink);font-size:16px;border-radius:0}
.journal-card textarea::placeholder{color:#ae9e8d}
.journal-footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:10px;color:#ac9685}
.journal-footer button{padding:7px 13px;min-height:37px;border:1px solid #d5b7a9;background:#fffaf180;border-radius:8px;font-size:12px;color:#937665}
/* The home journal card expands in place into the working paper. */
.diary-preview{margin:15px 0 12px;border-radius:18px;padding:12px 16px 13px}
.diary-preview .diary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:0;background:transparent;text-align:left;min-height:44px}
.diary-preview .diary-head svg{width:17px;height:17px;color:#725f52}
.diary-preview .moods{margin:7px 0 9px}
.diary-preview .mood{color:#776657;min-height:44px}
.diary-preview .mood.active{color:#81544b}
.diary-preview .journal-footer{gap:12px;justify-content:flex-end;color:#725f52}
.diary-preview .journal-footer span{margin-right:auto}
.diary-preview .diary-head h3{font-size:clamp(19px,5.4vw,23px)}
.diary-preview-note{display:block;text-align:left;width:100%;min-height:40px;max-height:63px;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;padding:0;background:repeating-linear-gradient(transparent 0,transparent 30px,#dcc9bc70 30px,#dcc9bc70 31px);line-height:31px;font-size:16px}
.diary-preview-note.is-placeholder{color:#836e61}
.diary-preview .journal-footer button{min-height:44px;color:#745848}
.journal-open #modal{align-items:stretch;background:#31413570}
.journal-open #modal>.scrim,.journal-open #modal .sheet-grip{display:none}
.journal-open #modal .sheet{z-index:1;width:100%;max-width:1100px;height:100%;max-height:100%;margin:0;padding:0;overflow-x:hidden;border-radius:0;animation:none;background:#f7f4ec;scrollbar-width:none}
.journal-open #modal .sheet::-webkit-scrollbar{display:none}
.journal-open .toast{bottom:calc(18px + env(safe-area-inset-bottom))}
.journal-open #modal.journal-opening{background:transparent}
.journal-motion{position:fixed;inset:0;z-index:54;overflow:hidden;pointer-events:none}
#modal>.journal-motion{z-index:0}
.journal-motion-shade,.journal-motion-surface,.journal-preview-copy{position:absolute;will-change:transform,opacity}
.journal-motion-shade{inset:0;background:#31413570}
.journal-motion-surface{transform-origin:top left}
.journal-preview-copy{margin:0;overflow:hidden}
.journal-preview-detail{position:absolute;margin:0}
.journal-board-bar{position:sticky;top:0;z-index:5;padding-top:env(safe-area-inset-top);border-bottom:1px solid #e6e4d9;background:#fbf9f2}
.journal-board-nav{display:grid;grid-template-columns:1fr minmax(0,2fr) 1fr;align-items:center;gap:6px;padding:7px 15px;border-bottom:1px solid #eae5d9}
.journal-board-nav time{text-align:center;font-size:13px;color:#436251;font-variant-numeric:tabular-nums}
.journal-back,.journal-save{min-height:44px;display:inline-flex;gap:5px;align-items:center;justify-content:center;white-space:nowrap;font-size:13px}
.journal-back{justify-self:start;padding:0 6px 0 0;background:transparent}
.journal-save{justify-self:end;padding:0 12px;background:#4b725b;color:white;border-radius:10px}
.journal-back svg,.journal-save svg{width:17px;height:17px}
.journal-board-paper{max-width:1000px;margin:auto;padding:16px clamp(13px,3.5vw,30px) calc(26px + env(safe-area-inset-bottom))}
.journal-board-paper>h1{font-size:clamp(24px,5vw,33px);line-height:1.3;margin:0 0 12px}
.journal-board-layout{display:grid;gap:12px;align-items:start}
.journal-tasks{min-width:0;border:1px solid #dce3d4;border-radius:13px;background:#eef1e6;padding:5px 10px}
.journal-tasks-head{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:38px}
.journal-tasks-head>div{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.journal-tasks-head h2{font-size:15px;font-weight:600}
.journal-tasks-head span{font-size:11px;color:#516a5b;font-variant-numeric:tabular-nums}
.journal-tasks-head>button{padding:0 4px;min-height:36px;white-space:nowrap;color:#375d48;background:transparent;font-size:12px}
.journal-mini-list{display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-height:164px;overflow:auto;overscroll-behavior:contain}
.journal-mini-task{display:flex;gap:7px;align-items:center;min-height:33px;padding:3px 2px;background:transparent;text-align:left;font-size:13px;min-width:0}
.journal-mini-task+button{border-top:1px dashed #d8dfd3}
.journal-mini-task>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.journal-mini-task[aria-checked=true]>span:last-child{text-decoration:line-through;color:#52685a}
.journal-mini-check{display:grid;place-items:center;flex:none;width:17px;height:17px;border:1px solid #829984;border-radius:5px;background:#fffef8}
.journal-mini-task[aria-checked=true] .journal-mini-check{background:#547960;border-color:#547960;color:#fff}
.journal-mini-check svg{width:13px;height:13px}
.journal-mini-task:focus-visible{outline-offset:-2px}
.journal-empty-tasks{font-size:12px;color:#526458;padding:4px 0 8px}
.journal-write{min-width:0;padding:10px 10px 7px;border:1px solid #e8d9cf;border-radius:15px;background:#fffaf3}
.journal-write .moods{margin:0 0 9px;gap:5px}
.journal-write .mood{background:#f4ece4;color:#725d54;border-radius:10px;font-size:11px;min-height:44px;min-width:0;padding:4px 1px}
.journal-write .mood.active{border-color:#b87669;background:#f3e4dd;color:#82544a}
.journal-write .mood svg{width:19px;height:19px;margin-bottom:1px}
.journal-note-label{display:block;font-size:15px;font-weight:600;margin:0 0 5px}
.journal-write textarea{display:block;width:100%;min-height:180px;height:190px;max-height:430px;resize:vertical;padding:0 2px;border:0;border-radius:2px;color:var(--ink);font-size:16px;line-height:30px;background:transparent}
.journal-write textarea::placeholder{color:#796a5d}
#journalStatus{margin:4px 0 0;color:#64584b;font-size:11px;text-align:right}
@media(min-width:690px){
  .journal-board-layout{grid-template-columns:minmax(145px,180px) minmax(0,1fr);gap:16px}
  .journal-tasks{position:sticky;top:112px}
  .journal-tasks-head>div{display:grid;gap:1px;padding:4px 0}
  .journal-mini-list{max-height:min(36vh,330px)}
  .journal-write{padding:13px}
}
.memory-photos{display:inline-flex;align-items:center;margin-top:5px;color:#4a6b54;font-size:12px}

.page-end{text-align:center;margin:23px 0 10px;color:#a0a18e;font-size:12px}.page-end span{font:italic 14px Georgia,serif;color:#b4a090;display:block;margin-top:2px}
.bottom-nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:500px;display:flex;background:#fcfaf3f5;border-top:1px solid #e8e4d9;padding:12px 22px calc(12px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}
.bottom-nav button{flex:1;background:transparent;color:#9b9e8e;display:flex;align-items:center;gap:5px;justify-content:center;flex-direction:column;font-size:11px;min-height:47px}
.bottom-nav svg{width:23px;height:23px}.bottom-nav button.active{color:var(--green)}.bottom-nav button.active svg{background:#e8eddf;border-radius:8px;box-shadow:0 0 0 5px #e8eddf}.bottom-nav button span{margin-top:4px}
.page-title{padding:13px 0 19px}.page-title h1{margin:5px 0 7px;font-size:30px}.page-title p:last-child{font-size:13px;color:var(--muted)}
.stats-row{display:flex;justify-content:space-between;background:var(--white);border:1px solid var(--line);padding:20px 8px;border-radius:16px;margin-bottom:23px}
.stat{flex:1;text-align:center;border-right:1px dashed var(--line)}.stat:last-child{border:0}.stat strong{font:29px Georgia,serif;display:block;color:var(--green)}.stat span{font-size:11px;color:var(--muted)}
.month-nav{display:flex;align-items:center;justify-content:space-between;margin:14px 0}.month-nav h2{font-size:22px}.month-nav .controls{display:flex;gap:7px}
.segmented{display:flex;background:#ebece1;padding:4px;border-radius:12px;margin-bottom:20px}.segmented button{width:50%;background:transparent;border-radius:9px;padding:9px;min-height:40px;font-size:13px;color:#8d927f}.segmented button.active{background:var(--white);color:var(--ink);box-shadow:0 2px 5px #4a543610}
.overview-caption{font-size:12px;color:var(--muted);margin:8px 0 13px}
.table-scroll{overflow:auto;background:var(--white);border:1px solid var(--line);border-radius:12px;max-height:490px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#c8d0bb #f7f5ec}
.habit-table{border-collapse:separate;border-spacing:0;font-size:12px;min-width:100%}
.habit-table th,.habit-table td{min-width:31px;height:41px;text-align:center;border-right:1px solid #eeeade;border-bottom:1px solid #eeeade;padding:5px}
.habit-table thead th{background:#edf0e5;position:sticky;top:0;z-index:2;font-weight:400}
.habit-table .row-label{position:sticky;left:0;text-align:left;min-width:106px;max-width:126px;padding:6px 10px;background:var(--white);z-index:1;line-height:1.5;overflow-wrap:anywhere;box-shadow:3px 0 5px #50624608}
.habit-table thead .row-label{z-index:3;background:#edf0e5}.habit-table .table-today{background:#f3e9da;color:#9c7850}
.habit-table .cell-check{color:var(--green);font-size:16px;display:block;background:#e8eddf;border-radius:50%;width:21px;height:21px;line-height:21px;margin:auto}
.habit-table .daily-link{background:transparent;width:26px;height:30px;padding:0}.habit-table .future{color:#c5c6bc}
.legend{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:10px;color:var(--muted);margin:12px 0}.legend i{width:10px;height:10px;border-radius:3px;background:#e9eddf}.legend i:nth-of-type(2){background:#bdcbae}.legend i:nth-of-type(3){background:#8da780}.legend i:nth-of-type(4){background:#527460}
.calendar-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.month-card{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:12px 10px}
.month-card header{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.month-card h3{font-size:15px}.month-card header span{font:italic 11px Georgia,serif;color:#aab098}
.mini-week,.mini-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.mini-week{font-size:8px;color:var(--muted);text-align:center;margin-bottom:5px}
.mini-calendar button,.mini-calendar>span{padding:0;width:100%;aspect-ratio:1;border-radius:4px;background:#f1f1e8;font:9px/1 var(--sans);position:relative;min-height:17px}
.mini-calendar>span{background:transparent}.mini-calendar button.lv1{background:#dce4cf}.mini-calendar button.lv2{background:#bdcbae}.mini-calendar button.lv3{background:#8da780;color:#fff}.mini-calendar button.lv4{background:#527460;color:#fff}.mini-calendar button.is-today{outline:1px solid #bd8b70;outline-offset:1px}.mini-calendar button:disabled{opacity:.35}
.month-note{font-size:12px;color:var(--muted);margin-top:18px;text-align:center}
.memory-card{position:relative;background:#e8eddf;border-radius:18px;padding:24px 20px;margin:6px 0 21px;text-align:center;border:1px solid #dce3d0}
.memory-card .heart-seal{width:64px;height:64px;border:1px dashed #91a582;border-radius:50%;display:grid;place-items:center;margin:0 auto 10px;transform:rotate(-9deg);font-size:38px;color:var(--green)}
.memory-card h2{font-size:24px;margin:8px 0}.memory-card p{font-size:13px;color:#859178}
.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0 23px}
.badge{border:1px solid var(--line);border-radius:14px;background:#fffdf5;padding:18px 5px 13px;text-align:center}
.badge .seal{font-size:25px;color:#b5b6a8;line-height:42px;display:block;width:44px;height:44px;margin:0 auto 8px;border:1px dashed #b5b6a8;border-radius:50%}
.badge strong{display:block;font-weight:400;font-size:14px;color:#a7aa9b}.badge small{font-size:10px;color:#b6b6a7}
.badge.unlocked{border-color:#d5d8be;background:#f3f2df}.badge.unlocked .seal{color:#9b8053;border-color:#bba56f;background:#f4e7bf;transform:rotate(-7deg)}.badge.unlocked strong{color:#797b52}.badge.unlocked small{color:#a49d73}
.empty-state{padding:29px 20px;text-align:center;color:var(--muted);font-size:14px}.empty-state svg{display:block;width:34px;height:34px;margin:0 auto 12px;color:#b1b89e}.empty-state p{font-size:12px;margin-top:7px}
.treasure-search{margin:0 0 16px}
.memory-entry mark{background:#f0dfb7;color:var(--ink);border-radius:3px}
.memory-entry{border-left:1px solid #cbd2bd;padding:0 0 20px 18px;margin-left:5px;position:relative}
.memory-entry:before{content:'';width:7px;height:7px;border-radius:50%;background:#a6b496;position:absolute;left:-4px;top:9px}.memory-entry .memory-date{font:11px Georgia,serif;letter-spacing:1px;color:#9a9f8e}.memory-entry button{background:transparent;text-align:left;padding:0;width:100%;min-height:45px}.memory-entry h3{font-size:18px;margin:3px 0 6px}.memory-entry p{font-size:14px;color:#899180;white-space:pre-wrap;overflow-wrap:anywhere}
.modal-layer{position:fixed;inset:0;z-index:50;display:flex;justify-content:center;align-items:flex-end}
.scrim{position:absolute;inset:0;background:#263d3566;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.sheet{position:relative;width:100%;max-width:500px;max-height:90vh;max-height:90dvh;overflow:auto;overscroll-behavior:contain;background:var(--paper);padding:12px 25px calc(25px + env(safe-area-inset-bottom));border-radius:27px 27px 0 0;box-shadow:0 -10px 50px #25372d20;animation:sheet-in .25s ease-out;outline:0}
.sheet-grip{width:35px;height:4px;border-radius:5px;background:#d8d6c9;margin:0 auto 20px}
.sheet-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.sheet-header>div{min-width:0}.sheet-header h2{font-size:26px;overflow-wrap:anywhere;line-height:1.55}.sheet-header .eyebrow{font-size:9px}
.sheet-description{font-size:13px;color:var(--muted);margin:8px 0 17px;line-height:1.8}
.field-label{display:block;font-size:14px;margin:17px 0 7px}
.field-input{display:block;width:100%;border:1px solid #dcded0;background:var(--white);border-radius:12px;outline:0;padding:12px 13px;color:var(--ink);font-size:17px;resize:vertical}
.field-input:focus{border-color:#99ad8d;box-shadow:0 0 0 3px #b9c6a41c}.field-input::placeholder{color:#b1b2a3}
.auth-password{position:relative}
.auth-password .field-input{padding-inline-end:66px}
.auth-password-toggle{position:absolute;inset-inline-end:3px;top:3px;bottom:3px;min-width:58px;padding:0 6px}
#localAccountForm .field-input[aria-invalid="true"]{border-color:#a24d42}
.auth-message{min-height:1.5em;margin:12px 0;color:#8a3e35;font-size:14px;line-height:1.5}
#localAccountForm[aria-busy="true"] .auth-message{color:var(--muted)}
.auth-remember{margin:15px 0 4px}
.auth-secure-link{text-align:center}
.icon-picker,.color-picker{display:flex;gap:9px;flex-wrap:wrap}.icon-choice{background:#efefe5;border:1px solid transparent;border-radius:11px;width:42px;height:42px;display:grid;place-items:center}.icon-choice.active{border-color:#8da17b;background:#e1e8d5}
.color-choice{width:40px;height:40px;border-radius:50%;background:#dce6ce;border:8px solid var(--paper);box-shadow:0 0 0 1px transparent}.color-choice.rose{background:#ebc7c0}.color-choice.honey{background:#e8d6a8}.color-choice.active{box-shadow:0 0 0 1px #7d8b6d}
.inline-option{display:flex;align-items:center;gap:9px;background:#eeefe5;border-radius:12px;padding:13px;margin:20px 0;font-size:14px}.inline-option input{accent-color:var(--green);width:18px;height:18px;flex-shrink:0}.inline-option small{display:block;color:var(--muted);font-size:11px}
.primary{display:flex;justify-content:center;align-items:center;gap:9px;width:100%;min-height:51px;border-radius:13px;background:var(--green);color:#fffaf0;font-size:16px;margin:19px 0 9px;box-shadow:0 5px 13px #5274601c}
.secondary{display:block;width:100%;background:#e9ecdf;padding:12px;border-radius:12px;margin:10px 0;min-height:47px;font-size:14px}.danger{color:#b17e73;background:#f1e5df}.footnote{font-size:11px;text-align:center;color:var(--muted);margin-top:13px}
.setting-row{padding:15px 0;border-bottom:1px dashed var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:15px}.setting-row small{display:block;font-size:11px;color:var(--muted)}
.manage-item{width:100%;background:transparent;text-align:left;min-height:57px;padding:15px 2px}.manage-item>span{display:flex;align-items:center;gap:11px;min-width:0;overflow-wrap:anywhere}.manage-item>span svg{width:21px;height:21px;color:#7f9474}.manage-item>svg{width:17px;height:17px;color:#94a08b}.manage-item:active{background:#eceee1}
.switch{width:43px;height:26px;appearance:none;-webkit-appearance:none;background:#d9ddce;border-radius:15px;position:relative;cursor:pointer;flex-shrink:0;margin:0}.switch:before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;transition:left .2s}.switch:checked{background:var(--green)}.switch:checked:before{left:20px}
.settings-brand{text-align:center;font:600 30px/1.3 var(--hand);padding:6px 0 8px;color:var(--green)}
.task-detail-icon{text-align:center;margin:10px 0;font-size:30px}.task-detail-icon svg{width:42px;height:42px;color:var(--green)}
.detail-time{background:#e9eddf;border-radius:12px;font-size:13px;text-align:center;padding:12px;margin:13px 0}
.celebration{position:fixed;top:0;left:0;right:0;height:100%;z-index:75;pointer-events:none;display:grid;place-items:center;overflow:hidden}
.celebration:empty{display:none}
.completion-stamp{--completion-art-height:110px;position:relative;display:grid;justify-items:center;width:min(420px,100%);padding:var(--completion-art-height) 14px 0;text-align:center}
.completion-stamp.is-day-complete{--completion-art-height:122px}
.completion-stamp:not(.is-day-complete):not(.is-animated){padding-top:0}
.completion-stamp .completion-art{position:absolute;inset-inline:0;top:0;height:var(--completion-art-height);pointer-events:none}
.completion-message{position:relative;display:grid;justify-items:center;gap:4px;max-width:100%;padding:8px 15px;color:#322234;background:rgba(255,250,244,.94);border:1px solid #e7d7df;border-radius:15px;box-shadow:0 3px 12px #48324216}
.completion-subtitle{font-size:18px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.completion-headline{font-size:25px;font-weight:750;line-height:1.32}
.is-day-complete .completion-message{padding:10px 15px 11px}
.is-day-complete .completion-subtitle{font-size:16px;font-weight:600}
.completion-stamp.is-animated{animation:completion-scene-hold 2520ms linear both}
.completion-stamp.is-day-complete.is-animated{animation-duration:3630ms}
.completion-stamp.is-animated .completion-message{animation:completion-caption-arrive 340ms cubic-bezier(.22,.72,.37,1) 210ms both}
.completion-stamp.is-day-complete.is-animated .completion-message{animation-delay:390ms}
.completion-stamp.is-day-complete.is-animated .completion-subtitle{animation:completion-caption-fade 300ms ease-out 575ms both}
.completion-anchor{position:relative}
.completion-ripple{position:absolute;left:50%;top:50%;width:26px;height:26px;margin:-13px 0 0 -13px;border:1px solid #94a48d;border-radius:50%;pointer-events:none;animation:completion-ripple .62s ease-out both}
.completion-ripple:after{content:'✧';position:absolute;right:-5px;top:-9px;color:#ad744a;font-size:13px;line-height:1}
.task-earned svg{animation:check-pop .24s ease-out both}
.toast{position:fixed;bottom:calc(97px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);background:#344e42f5;color:#fffaf0;padding:12px 18px;border-radius:13px;z-index:70;width:max-content;max-width:calc(100% - 38px);font-size:14px;box-shadow:0 6px 20px #23372a30;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;display:flex;align-items:center;gap:16px}
.toast.toast-compact{font-size:13px;padding:5px 13px;border-radius:13px;gap:11px}.toast.toast-compact button{min-height:34px}
.toast.visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}.toast button{background:transparent;color:#e5cda6;font-size:13px;padding:0;min-height:25px}.success-note{font-size:14px;color:var(--green);background:#e9eddf;border-radius:12px;padding:12px;margin:12px 0}
#toast.toast-earned{padding:0;background:transparent;box-shadow:none;pointer-events:none}
.toast-earned #toastText{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.toast-earned #toastUndo{min-width:44px;min-height:44px;color:#315443;font-weight:600;text-shadow:0 1px 2px #fffaf3;pointer-events:auto}
.toast:not(.visible),.toast:not(.visible) #toastUndo{pointer-events:none}
body.project-sheet-open #toast,body.project-sheet-open #toast *{pointer-events:none}
.platform-feedback-note{margin:8px 0;text-align:left}
@keyframes check-pop{0%{opacity:.55;transform:scale(.73)}60%{opacity:1;transform:scale(1.16)}100%{opacity:1;transform:scale(1)}}
@keyframes completion-ripple{0%{opacity:.85;transform:scale(.68)}100%{opacity:0;transform:scale(1.6)}}
@keyframes completion-scene-hold{0%,80%{opacity:1}100%{opacity:0}}
@keyframes completion-caption-arrive{0%{opacity:0;transform:translateY(9px) scale(.975)}75%{opacity:1;transform:translateY(1px) scale(1)}100%{opacity:1;transform:none}}
@keyframes completion-caption-fade{from{opacity:0}to{opacity:1}}
@keyframes sheet-in{from{transform:translateY(50px);opacity:.5}to{transform:translateY(0);opacity:1}}
@media(min-width:600px){.app-shell{box-shadow:0 0 50px #42543b20}.sheet{margin-bottom:20px;border-radius:24px;max-height:85vh}.calendar-grid{gap:14px}}
@media(max-width:355px){main{padding:0 15px}.topbar{padding:14px 17px 8px}.today-tag{font-size:11px;padding:3px 6px}.today-progress{gap:7px}.streak-tag{font-size:11px}.mini-calendar{gap:2px}.month-card{padding:10px 7px}.mini-calendar button{min-height:15px;font-size:8px}.moods{gap:4px}.badge-grid{gap:7px}.badge strong{font-size:13px}.sheet{padding-left:20px;padding-right:20px}.week-strip{gap:3px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Deletion controls, a calendar through 2099, and the vertical monthly sheet. */
.date-select{background:transparent;text-align:left;padding:0;max-width:100%;line-height:1.2;min-height:53px}
.date-select>small{display:block;color:#627063;font-size:12px;margin-bottom:5px}
.date-select>span{display:flex;align-items:center;gap:6px;font-size:28px;white-space:nowrap}
.date-select svg{width:15px;height:15px;color:#627863}
.calendar-title{display:flex;align-items:center;gap:8px;background:transparent;text-align:left;padding:0;font:inherit;min-height:42px}
.calendar-title svg{width:16px;height:16px;color:#8c9a7e}
.date-picker-fields{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:9px;margin:20px 0}
.date-picker-fields label{font-size:12px;color:var(--muted)}
.date-picker-fields select{display:block;max-width:100%;width:100%;height:49px;margin-top:7px;padding:8px 5px;border:1px solid #d9dfcc;border-radius:11px;background:var(--white);color:var(--ink);font-size:16px}
.task-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}.task-delete{width:44px;height:44px;padding:0;background:transparent;color:#806e5f;display:grid;place-items:center;border-radius:10px}.task-delete svg{width:17px;height:17px}.task-delete:active{color:#a26d64;background:#f5e7e0}
.delete-preview{display:flex;align-items:center;gap:12px;padding:16px;background:#eeeee2;border-radius:13px;margin:12px 0 18px;overflow-wrap:anywhere}.delete-preview strong{font-size:18px;font-weight:400}.delete-preview svg{color:#8b9d79}
.delete-option{display:flex;gap:10px;padding:14px 12px;border:1px solid #dedfcf;border-radius:12px;margin:10px 0;background:#fffdf580}.delete-option:has(input:checked){border-color:#bfa08e;background:#f5eae2}.delete-option input{accent-color:#ab8073;width:18px;height:18px;margin-top:4px;flex-shrink:0}.delete-option span{font-size:16px}.delete-option small{display:block;color:#979181;font-size:12px;line-height:1.7;margin-top:4px}.delete-confirm{background:#a77c70}
.future-note{margin-top:20px}.future-note h3{margin:8px 0}.future-note>p:last-child{font-size:13px;color:#a4907d;line-height:1.8}.week-day.future:not(.current){color:#b4b8aa}.mini-calendar button.is-future{color:#bdc1b4;background:#f4f3eb}.task-main:disabled{opacity:.65}
.vertical-table{max-height:530px;scroll-behavior:auto;overscroll-behavior:contain}.vertical-table .habit-table{width:100%;table-layout:fixed}.vertical-table .habit-table th,.vertical-table .habit-table td{min-width:73px;width:73px;padding:4px;height:49px}.vertical-table .habit-table .row-label{width:64px;min-width:64px;max-width:64px;text-align:center;padding:4px}.vertical-table .habit-table thead th{height:91px;vertical-align:middle}.vertical-table .habit-table .habit-column{font-size:12px;line-height:1.45;font-weight:400;overflow-wrap:anywhere}.table-task-icon{display:block;color:#839576;margin:2px 0 6px}.table-task-icon svg{width:17px;height:17px}.table-task-icon.rose{color:var(--pink)}.table-task-icon.honey{color:#b1985e}.date-label button{width:100%;min-height:40px;background:transparent;padding:1px 0;display:flex;align-items:center;justify-content:center;gap:5px}.date-label strong{font:18px Georgia,serif;font-weight:400}.date-label small{font-size:10px;color:#959c89}.vertical-table .table-today .row-label{background:#f2e8d6}.vertical-table .table-today td{background:#fbf8ee}.table-future .date-label strong,.table-future .date-label small{color:#a9b09c}.table-checkbox{width:100%;min-height:40px;background:transparent;display:grid;place-items:center;padding:0}.table-checkbox>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #c0c9b2;border-radius:7px;color:transparent;transform:rotate(-3deg);background:#fffdf6}.table-checkbox svg{width:17px;height:17px}.table-checkbox.is-checked>span{background:var(--green);border-color:var(--green);color:#fffaf0;transform:rotate(3deg)}.table-checkbox:disabled{opacity:.3}.unavailable{font-size:11px;color:#d4d6c9}.empty-day-link{width:100%!important;font-size:12px;color:#a1aa92}.habit-table thead .row-label small{font-size:10px;color:#949d86}
@media(max-width:355px){.date-select>span{font-size:23px;gap:4px}.date-select>small{font-size:11px}.date-bar{gap:3px}.task-actions .task-sticker{display:none}.task-row{gap:4px;padding-inline:5px}.date-picker-fields{gap:6px}.date-picker-fields select{font-size:14px}}
.vertical-table .habit-table th,.vertical-table .habit-table td{width:70px;min-width:70px}.vertical-table .habit-table .row-label{width:58px;min-width:58px;max-width:58px}
.policy-copy h3{font-size:18px;margin:20px 0 6px}.policy-copy p{font-size:14px;color:#7e8875;line-height:1.9}.policy-copy .policy-date{font-size:11px;color:var(--muted);margin:0 0 15px}

/* 个人资料页，与原有纸张和鼠尾草绿风格一致。 */
.profile-card{text-align:center;background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px 9px 22px 22px;padding:26px 18px 17px;margin:18px 0}
.avatar-button{display:block;background:transparent;position:relative;padding:0;margin:0 auto 14px;width:88px;height:88px}
.profile-avatar{width:88px;height:88px;object-fit:cover;border-radius:30px;border:3px solid var(--paper);box-shadow:0 0 0 1px #d5ddca;display:block}
.placeholder-avatar{display:grid;place-items:center;background:var(--light);color:var(--green)}.placeholder-avatar svg{width:40px;height:40px}
.avatar-edit{position:absolute;right:-3px;bottom:0;display:grid;place-items:center;border-radius:50%;width:28px;height:28px;background:var(--green);color:var(--white);border:2px solid var(--paper)}.avatar-edit svg{width:14px;height:14px}
.profile-card h2{overflow-wrap:anywhere}.profile-status{font-size:12px;color:var(--muted);margin:6px 0}.profile-menu{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--white)}
.profile-row{background:transparent;width:100%;text-align:left;padding:16px 14px;margin:0;border-bottom:1px dashed var(--line)}.profile-row:last-child{border-bottom:0}.profile-row>span{display:flex;align-items:center;gap:12px;min-width:0}.profile-row>span>span{min-width:0;overflow-wrap:anywhere}.profile-row>span>svg{color:var(--green)}.profile-row small{font-size:11px;line-height:1.6}.profile-row>svg{width:16px}
.profile-help{font-size:11px;color:var(--muted);line-height:1.9;margin:17px 4px}.policy-copy a{text-decoration:underline;overflow-wrap:anywhere}#authMessage{min-height:22px;color:var(--green)}
@media(max-width:355px){.bottom-nav{padding-left:12px;padding-right:12px}.bottom-nav button{font-size:10px}}

/* 开发者资料与联系方式 */
.developer-card{margin:16px 0 12px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--white)}
.developer-identity{display:flex;align-items:center;gap:13px;min-width:0}
.developer-identity h3{margin:0;font-size:21px;line-height:1.35;overflow-wrap:anywhere}
.developer-monogram{display:grid;place-items:center;flex:0 0 52px;height:52px;border-radius:16px;background:var(--light);color:var(--green);font-size:23px}
.developer-role{margin:4px 0 0;font-size:13px;color:#566557;line-height:1.5}
.developer-bio{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:15px;line-height:1.8}
.developer-bio p{margin:0;overflow-wrap:anywhere}
.developer-bio p+p{margin-top:10px}
.developer-links:empty{display:none}
.developer-contact{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:11px 15px;border:1px solid var(--line);border-radius:14px;background:var(--white);color:var(--green);text-decoration:none}
.developer-contact+.developer-contact{margin-top:8px}
.developer-contact strong{display:block;font-size:14px}
.developer-contact small,.developer-address{color:#536454;font-size:13px;overflow-wrap:anywhere}
.developer-contact svg{flex:0 0 16px;width:16px;height:16px}
.developer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 4px 0;color:#566557;font-size:12px}
.developer-footer button{min-height:44px;padding-inline:0}

/* 字体偏好作用于正文、导航和输入，不改变品牌字标。 */
body[data-font="sans"]{--hand:"Lover Sans",Journal,"PingFang SC","Microsoft YaHei",sans-serif}
body[data-font="serif"]{--hand:"Lover Serif",Journal,"Songti SC",serif}
body[data-font="brush"]{--hand:"Lover Brush",Journal,"KaiTi",serif}
body[data-font="custom"]{--hand:"Lover Custom",Journal,"PingFang SC","Microsoft YaHei",sans-serif}
body[data-font="friend"]{--hand:"Lover Friend",Journal,"PingFang SC","Microsoft YaHei",sans-serif}
#fontSettings{font-family:var(--sans);color:var(--ink)}
.font-preview{padding:17px 16px 14px;margin:0 0 14px;border:1px solid #dbe3d6;border-radius:16px;background:#edf2e8;overflow-wrap:anywhere}
.font-preview-label{margin:0 0 5px;color:#546b5b;font:12px/1.45 var(--sans)}
.font-preview-title{margin:0;font-size:clamp(21px,6vw,28px);line-height:1.55}
.font-preview-example{margin:6px 0 0;font-size:14px;color:#4d6a58}
.font-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.font-option{display:flex;min-height:86px;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;padding:10px 11px;text-align:left;border:1px solid #e1e1d6;border-radius:12px;background:var(--white);min-width:0}
.font-option[aria-pressed="true"],.font-slot:has(.font-slot-choice[aria-pressed="true"]){border-color:#678d73;background:#edf2e8;box-shadow:inset 0 0 0 1px #678d73}
.font-specimen{font:22px/1.15 Journal,serif}
[data-font-choice="sans"] .font-specimen{font-family:"Lover Sans",Journal,sans-serif}
[data-font-choice="serif"] .font-specimen{font-family:"Lover Serif",Journal,serif}
[data-font-choice="brush"] .font-specimen{font-family:"Lover Brush",Journal,serif}
.font-option strong,.font-slot strong{font-size:13px;line-height:1.4}
.font-option small,.font-slot small,.font-formats{color:#58665c;font-size:11px;line-height:1.5}
.font-slots{margin-top:12px;display:grid;gap:8px}
.font-slot{display:flex;align-items:center;gap:4px;min-width:0;border:1px solid #e1e1d6;border-radius:12px;background:var(--white);padding:2px 6px 2px 0}
.font-slot-choice{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;text-align:left;gap:3px;padding:10px 8px 10px 12px;background:transparent;min-height:54px}
.font-slot-choice small{max-width:100%;overflow-wrap:anywhere}
.font-slot-choice[aria-pressed="true"] strong::after{content:" ✓";color:var(--green)}
.font-slot-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.font-slot-actions button{min-height:44px;padding:4px 8px;background:#e9efe4;border-radius:9px;color:#324d3e;font-size:12px;white-space:nowrap}
.font-slot-actions button[data-font-action^="remove-"]{background:#f4e8e4;color:#784338}
.font-formats{margin:10px 2px 2px}
.font-footer{position:sticky;bottom:0;z-index:1;background:var(--paper);padding:6px 0 0}
#fontStatus{min-height:0;font-size:12px;color:#3e624e;overflow-wrap:anywhere}
#fontStatus:not(:empty){margin:0 0 5px}
.font-footer .primary{margin:0;min-height:44px;width:100%}
.sheet-header .eyebrow:empty{display:none}
.task-delete{min-height:44px}
.task-delete:focus-visible,.profile-row:focus-visible{outline-offset:-2px}
textarea:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media (max-width:355px){.font-option{padding-inline:8px}.font-slot-actions{max-width:104px}.font-slot-actions button{padding-inline:6px}.font-preview{padding:13px}.font-slot-choice{padding-inline:8px}}

/* Home interface uses one readable typeface and feedback anchored to its task. */
:root{--sans:"Lover Sans",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;--muted:#667269}
body{font-family:var(--sans)}
.app-shell{background-image:none}
.topbar{padding-top:20px;padding-bottom:16px}
.brand>span:last-child{font:500 23px/1.3 var(--sans);letter-spacing:.5px}
.date-select>small{font-family:var(--sans);color:#667269}
.date-select>span{font-family:var(--sans);font-weight:500}
.today-list>.section-heading h2{font:500 19px/1.5 var(--sans)}
.progress-track{height:4px}
.progress-label{font:500 12px/1.5 var(--sans)}
.streak-tag{display:none}
.task-title{font:400 16px/1.55 var(--sans)}
.task-sub{font:400 12px/1.5 var(--sans)}
.task-row{min-height:64px;padding-block:9px}
.task-row.done .task-title{color:#738078;text-decoration:none}
.task-sticker{background:transparent!important;color:#718177!important}
.checklist{border-radius:12px;box-shadow:none}
.add-dashed{border-radius:10px;background:#edf0e9}
.diary-preview{background:#f4f1e9;border-color:#e6e3d8;border-radius:12px;padding-bottom:16px}
.diary-preview h3{font:500 18px/1.5 var(--sans)}
.diary-preview-note{font-family:var(--sans)}
.bottom-nav button{font-family:var(--sans);color:#657168}
.bottom-nav button.active{color:var(--green)}
#journalBoard{font-family:var(--hand)}
.task-earned svg{animation:none}
.task-earned svg path{stroke-dasharray:28;stroke-dashoffset:28;animation:qingji-check-draw 300ms ease-out forwards}
.task-settling .task-title{animation:qingji-task-settle 300ms ease-out both}
@keyframes qingji-check-draw{to{stroke-dashoffset:0}}
@keyframes qingji-task-settle{from{color:var(--ink)}to{color:#738078}}
@media(prefers-reduced-motion:reduce){.task-earned svg path,.task-settling .task-title{animation:none;stroke-dashoffset:0}}

/* The chosen notebook face applies to tasks and their celebrations. */
body{font-family:var(--hand)}
.brand>span:last-child{font-family:var(--hand);font-size:25px}
.date-select>small,.date-select>span,.today-list>.section-heading h2,.task-title,.task-sub,.diary-preview h3,.diary-preview-note,.bottom-nav button{font-family:var(--hand)}
.task-row.done .task-title{text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:#87988b;color:#6b7c70}
.completion-message{font-family:var(--hand);background:rgba(255,253,248,.97);color:var(--ink);border-color:#dddccf;box-shadow:0 5px 18px #314b4010}
.completion-headline{font-weight:500;font-size:25px}
.completion-subtitle,.is-day-complete .completion-subtitle{font-weight:400}
.task-earned svg{animation:check-pop .24s ease-out both}
.task-earned svg path{animation:none;stroke-dasharray:none;stroke-dashoffset:0}
@media(prefers-reduced-motion:reduce){.task-earned svg{animation:none}}
/* Free bundled rounded handwriting, selected once on upgrading to this release. */
:root{--hand:Xiaolai,Journal,"KaiTi","STKaiti",serif}
body[data-font="xiaolai"]{--hand:Xiaolai,Journal,"PingFang SC",sans-serif}
body[data-font="journal"]{--hand:Journal,"KaiTi","STKaiti",serif}
[data-font-choice="xiaolai"] .font-specimen{font-family:Xiaolai,Journal,serif}
/* Paper Bloom keeps art and handwritten words on one sheet. */
.completion-stamp.paper-bloom{width:min(350px,calc(100vw - 40px));padding:118px 18px 22px;background:linear-gradient(150deg,#fffdf9,#f9f4e9);border:1px solid #e5dfd1;border-radius:22px 11px 22px 22px;box-shadow:0 12px 40px #314b401c;transform:translateY(-22px);overflow:visible}
.paper-bloom .completion-art{top:8px;inset-inline:10px}
.paper-bloom .completion-message,.paper-bloom.is-day-complete .completion-message{padding:0;gap:7px;border:0;box-shadow:none;background:none;width:100%;font-family:var(--hand)}
.completion-task{display:block;max-width:100%;font-size:14px;line-height:1.5;color:#687c6d;overflow-wrap:anywhere}
.paper-bloom .completion-subtitle{font-size:19px;line-height:1.5;font-weight:400}
.paper-bloom .completion-headline{font-size:25px;line-height:1.4;font-weight:400}
.paper-bloom.is-day-complete{padding-top:130px}
.paper-bloom.is-animated{animation:qingji-paper-bloom 1900ms ease-out both}
.paper-bloom.is-day-complete.is-animated{animation-duration:3000ms}
.paper-bloom.is-animated .completion-message,.paper-bloom.is-day-complete.is-animated .completion-message{animation:qingji-paper-arrive 320ms cubic-bezier(.22,.72,.37,1) 110ms both}
.paper-bloom.is-animated .completion-art{animation:qingji-art-arrive 320ms cubic-bezier(.22,.72,.37,1) 110ms both}
.paper-bloom.is-day-complete.is-animated .completion-subtitle{animation:none}
@keyframes qingji-paper-bloom{0%{opacity:0;transform:translateY(-14px) scale(.97)}12%,86%{opacity:1;transform:translateY(-22px) scale(1)}100%{opacity:0;transform:translateY(-28px) scale(.99)}}
@keyframes qingji-paper-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes qingji-art-arrive{from{opacity:0;transform:translateY(5px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.completion-stamp.paper-bloom,.paper-bloom .completion-art,.paper-bloom .completion-message{animation:none!important}}
/* Unframed celebrations keep their art close to readable handwritten text. */
#celebration:not(:empty){backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.completion-stamp.paper-bloom,.completion-stamp.paper-bloom.is-day-complete{padding:0 8px;background:none;border:0;border-radius:0;box-shadow:none;gap:0}
.completion-stamp.paper-bloom:not(.is-day-complete) .completion-art{position:relative;inset:auto;top:auto;width:100%;height:76px;--art-origin:39px;transform-origin:bottom center;scale:.78}
.completion-stamp.paper-bloom.is-day-complete .completion-art{position:relative;inset:auto;top:auto;width:100%;height:112px;scale:.88;transform-origin:bottom center}
.completion-stamp.paper-bloom .completion-message{gap:3px;color:#163b29;text-shadow:0 1px 2px #fffdf8,1px 0 2px #fffdf8,-1px 0 2px #fffdf8,0 -1px 2px #fffdf8}
.completion-stamp.paper-bloom .completion-task{font-size:16px;color:#254333;font-weight:500}
.completion-stamp.paper-bloom .completion-subtitle{font-size:21px;color:#163b29;font-weight:500}
.completion-stamp.paper-bloom .completion-headline{color:#123521;font-weight:500}
