@font-face{font-family:'Haru Gowun Batang';src:url('./fonts/gowun-batang.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Jua';src:url('./fonts/jua.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Gaegu';src:url('./fonts/gaegu.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Gamja Flower';src:url('./fonts/gamja-flower.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Hi Melody';src:url('./fonts/hi-melody.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Nanum Pen Script';src:url('./fonts/nanum-pen-script.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Dongle';src:url('./fonts/dongle.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Song Myung';src:url('./fonts/song-myung.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Black Han Sans';src:url('./fonts/black-han-sans.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Memory Warm';src:url('./fonts/haru-memory-warm.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Haru Memory Ink';src:url('./fonts/haru-memory-ink.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{--bg:#f7f2ea;--card:#fffdf9;--text:#2a2520;--sub:#8b7e72;--line:#e8ddd0;--accent:#668c78;--danger:#b95a5a}
:root[data-theme=dark]{--bg:#17191e;--card:#22252c;--text:#f4f1ec;--sub:#b8aea3;--line:#373c46;--accent:#8eb7a0;--danger:#e28b8b}
#backBtn{padding:0!important;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 10%,var(--card));border:1.5px solid color-mix(in srgb,var(--accent) 34%,var(--line));box-shadow:0 4px 11px rgba(73,60,48,.09)}
.cuteBackArrow{width:29px;height:29px;overflow:visible;filter:drop-shadow(0 2px 2px rgba(83,68,51,.09))}
.cuteBackArrow path:not(.arrowHeart){fill:none;stroke:var(--accent);stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.cuteBackArrow .arrowHeart{fill:color-mix(in srgb,var(--accent) 74%,#ff9db2);stroke:none}
#backBtn:active .cuteBackArrow{transform:scale(.88) rotate(-4deg)}
.cuteBackArrow{transition:transform .18s cubic-bezier(.2,1.35,.4,1)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif;padding-bottom:76px;min-height:100vh}body[data-bg=pink]{background:linear-gradient(#fff3f8,#f8e5ef)}body[data-bg=mint]{background:linear-gradient(#effcf6,#dff3e8)}body[data-bg=sky]{background:linear-gradient(#eff7ff,#e2eefc)}body[data-bg=night]{background:linear-gradient(#191d33,#2c3257);background-attachment:fixed}.appbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:14px 16px;background:color-mix(in srgb,var(--card) 92%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.appbar h1{font-size:20px;margin:0}.appbar small{color:var(--sub)}.appbar>div{flex:1}.appbar button{white-space:nowrap}.icon{width:42px;height:42px;border-radius:50%}button,.fileBtn,select,input,textarea{font:inherit}button,.fileBtn{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:14px;padding:11px 14px;font-weight:700}.primary{background:var(--accent);color:white;border-color:transparent}.danger{color:var(--danger)}main{padding:16px}.view{display:none}.view.active{display:block}.hidden{display:none!important}.toolbar{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:16px}.toolbar input,input,select,textarea{width:100%;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:15px;padding:13px}.entries{display:grid;gap:12px}.entry{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:16px;box-shadow:0 10px 26px rgba(0,0,0,.06)}.entry.compact{display:grid;grid-template-columns:90px 1fr;align-items:center}.entry .meta{color:var(--sub);font-size:13px}.entry h3{margin:8px 0 6px}.entry p{margin:0;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entry img{width:100%;max-height:150px;object-fit:cover;border-radius:14px;margin-top:10px}.empty{text-align:center;padding:60px 20px;color:var(--sub);display:grid;gap:16px}.empty>div{font-size:50px}.pickerBlock{margin:14px 0}.picker{display:flex;gap:8px;overflow-x:auto;padding:8px 0}.pick{min-width:64px;display:grid;place-items:center;gap:3px}.pick span{font-size:25px}.pick small{font-size:11px}.pick.active{outline:2px solid var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--card))}.title{font-size:26px;font-weight:800;margin-top:12px}textarea{height:280px;resize:none;margin-top:10px;line-height:1.6}.slider{display:flex;align-items:center;gap:10px;margin:14px 0}.slider input{padding:0}.actionsRow,.bottomActions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.fileBtn input{display:none}.stickers{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:12px 0;padding:12px;background:var(--card);border-radius:18px;border:1px solid var(--line)}.sticker{font-size:26px;padding:7px}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.photo{position:relative}.photo img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:14px}.photo button{position:absolute;right:5px;top:5px;padding:4px 8px;border-radius:50%;background:#222;color:#fff}.readerCard,.settingCard{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:18px;margin-bottom:14px}.readerBody{line-height:1.75;white-space:pre-wrap;min-height:160px}.readerCard hr{border:0;border-top:1px solid var(--line);margin:22px 0}.calendarHead{display:flex;align-items:center;justify-content:space-between}.week,.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.week span{text-align:center;color:var(--sub);padding:8px 0}.day{min-height:58px;padding:8px 4px;border-radius:14px;text-align:left;position:relative}.day.empty{visibility:hidden}.day.has{background:#dff3e8;color:#254e3b}.day.selected{outline:2px solid var(--accent)}.day i{position:absolute;width:7px;height:7px;background:var(--accent);border-radius:50%;bottom:7px;left:50%}.dayEntries{display:grid;gap:8px;margin-top:14px}.bottomNav{position:fixed;bottom:0;left:0;right:0;height:68px;display:grid;grid-template-columns:repeat(4,1fr);background:color-mix(in srgb,var(--card) 96%,transparent);border-top:1px solid var(--line);z-index:25}.bottomNav button{border:0;background:transparent;border-radius:0;padding:7px;display:grid;place-items:center;font-size:19px}.bottomNav span{font-size:11px}.settingCard label{display:grid;gap:6px;margin:12px 0;color:var(--sub)}.viewer{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:100;display:grid;place-items:center;padding:20px}.viewer img{max-width:100%;max-height:90vh;object-fit:contain}#toast{position:fixed;left:50%;bottom:84px;transform:translateX(-50%);background:#273a31;color:#fff;border-radius:14px;padding:10px 16px;opacity:0;pointer-events:none;transition:.2s;z-index:110}#toast.show{opacity:1}

/* v0.1.3 mobile UI fixes */
.appbar{padding-top:16px}
.picker{gap:7px}
.pick{min-width:56px;padding:9px 8px;border-radius:13px}
.pick span{font-size:21px}
.pick small{font-size:10px}
.bodyEditor{width:100%;min-height:300px;max-height:480px;overflow-y:auto;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:15px;padding:14px;margin-top:10px;line-height:1.65;outline:none;white-space:pre-wrap}
.bodyEditor:empty:before{content:attr(data-placeholder);color:var(--sub)}
.bodyEditor img{max-width:100%;height:auto;border-radius:14px}
.bodySticker{font-size:1.35em;display:inline-block;padding:1px 3px}
.inlinePhoto{position:relative;display:block;margin:12px auto;width:82%;padding:0}
.inlinePhoto img{width:100%;display:block}
.inlinePhotoDelete{position:absolute;left:50%;right:auto;top:-16px;transform:translateX(-50%);width:32px;height:32px;padding:0;border-radius:6px;background:#222;color:#fff;z-index:10;display:none;align-items:center;justify-content:center;line-height:1;font-size:24px;font-weight:400;text-align:center}
.photoMoveHelp{font-size:12px;color:var(--sub);margin:12px 0 2px;text-align:right}
.photo.moveSelected{outline:3px solid var(--accent);outline-offset:3px;border-radius:16px}
.photoOrder{position:absolute;left:6px;bottom:8px;z-index:3;background:rgba(0,0,0,.72);color:#fff;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:12px;font-weight:800}
.photo .viewPhotoBtn{right:auto;left:5px;top:5px;padding:4px 7px;font-size:12px;background:rgba(34,34,34,.85)}
.readerBody .inlinePhotoDelete{display:none}
@media (max-width:390px){.pick{min-width:52px}.pick span{font-size:19px}.pick small{font-size:9px}.actionsRow{gap:7px}.actionsRow button,.actionsRow .fileBtn{padding:9px 10px;font-size:13px}}

/* v0.1.4 safe-area, cursor insertion and inline image resizing */
html,body{min-height:100%;overflow-x:hidden}
body{padding-bottom:96px}
main{padding-top:18px;padding-bottom:112px}
.appbar{top:0;min-height:74px;padding-top:18px;padding-bottom:14px;align-items:center}
.appbar h1{line-height:1.2;word-break:keep-all}
.appbar small{display:block;line-height:1.35;margin-top:2px}
.bottomNav{height:72px;padding-bottom:2px}
#editorView{padding-bottom:24px}
#editorView .bottomActions{margin-top:18px;margin-bottom:20px}
.inlineInsertMarker{display:inline-block;width:1px;height:1em;overflow:hidden;opacity:0}
.inlinePhoto{position:relative;display:block;margin:14px auto;width:82%;max-width:100%;border-radius:15px;touch-action:pan-y;transition:outline-color .15s,box-shadow .15s}
.inlinePhoto img{width:100%;height:auto;display:block;border-radius:14px;user-select:none;-webkit-user-drag:none}
.inlinePhoto.selected{outline:2px solid var(--accent);outline-offset:4px;box-shadow:0 0 0 6px color-mix(in srgb,var(--accent) 16%,transparent)}
.inlineResizeHandle{position:absolute;right:-9px;bottom:-9px;width:30px;height:30px;border-radius:8px;background:var(--accent);border:3px solid var(--card);box-shadow:0 3px 10px rgba(0,0,0,.28);display:none;touch-action:none;z-index:8}
.inlineResizeHandle:after{content:'↘';display:grid;place-items:center;width:100%;height:100%;font-size:16px;color:#fff;font-weight:900}
.inlinePhoto.selected .inlineResizeHandle,.inlinePhoto.resizing .inlineResizeHandle{display:block}
.inlinePhoto.selected .inlinePhotoDelete{display:flex}
.readerBody .inlineResizeHandle,.readerBody .inlinePhotoDelete{display:none!important}
@media(max-width:390px){body{padding-bottom:92px}main{padding:14px 14px 108px}.appbar{min-height:70px;padding:16px 14px 13px}.bottomNav{height:70px}}

/* v0.1.5 background tab and calendar card list */
.backgroundIntro{margin-bottom:16px}.backgroundIntro h2{margin:0 0 6px}.backgroundIntro p{margin:0;color:var(--sub)}
.backgroundList{display:grid;gap:14px;padding-bottom:20px}.backgroundCard{display:grid;grid-template-columns:124px 1fr;align-items:center;gap:16px;text-align:left;padding:12px;border-radius:20px;background:var(--card);border:1px solid var(--line)}.backgroundCard img{width:124px;height:78px;object-fit:cover;border-radius:15px}.backgroundCard span{font-size:18px;font-weight:800}.backgroundCard.selected{outline:3px solid var(--accent);outline-offset:2px}
.editorBackdrop{border-radius:22px;padding:14px;background-size:cover;background-position:center;background-attachment:local;overflow:hidden}.editorBackdrop .bodyEditor,.editorBackdrop .title{background:color-mix(in srgb,var(--card) 84%,transparent);backdrop-filter:blur(4px)}
.calendarCards{max-height:48vh;overflow-y:auto;padding-bottom:18px;display:grid;gap:12px}.calendarEntryCard{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:12px;align-items:center;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:19px;padding:13px}.calendarEntryCard .meta{font-size:12px;color:var(--sub)}.calendarEntryCard h3{margin:7px 0 5px;font-size:18px}.calendarEntryCard p{margin:0;color:var(--sub);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.calendarEntryCard img{width:116px;height:92px;object-fit:cover;border-radius:14px}.noDayEntry{color:var(--sub);text-align:center;padding:24px}
.readerCard{background-size:cover;background-position:center}.readerCard>*{position:relative;z-index:1}.readerCard:before{content:'';position:absolute;inset:0;background:color-mix(in srgb,var(--card) 78%,transparent);border-radius:inherit}.readerCard{position:relative;overflow:hidden}
@media(max-width:390px){.backgroundCard{grid-template-columns:104px 1fr}.backgroundCard img{width:104px;height:70px}.calendarEntryCard{grid-template-columns:minmax(0,1fr) 96px}.calendarEntryCard img{width:96px;height:82px}}

/* v0.1.6 sticker categories, grid alignment and multilingual UI */
.stickers{display:block;max-width:100%;overflow:hidden;padding:10px;margin:12px 0;background:var(--card);border-radius:18px;border:1px solid var(--line)}
.stickerTabs{display:flex;gap:7px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}.stickerTabs::-webkit-scrollbar{display:none}
.stickerTab{flex:0 0 auto;padding:8px 11px;font-size:12px;border-radius:999px;white-space:nowrap}.stickerTab.active{background:var(--accent);color:#fff;border-color:transparent}
.stickerGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;max-height:390px;overflow-y:auto;overflow-x:hidden;padding-right:2px}
.stickerGrid{touch-action:pan-y}
.stickers.stickerSlideNext .stickerGrid{animation:stickerSlideNext .24s ease-out}
.stickers.stickerSlidePrev .stickerGrid{animation:stickerSlidePrev .24s ease-out}
.stickers.stickerEdgeBounce{animation:stickerEdgeBounce .26s ease-out}
@keyframes stickerSlideNext{from{opacity:.35;transform:translateX(22px)}to{opacity:1;transform:translateX(0)}}
@keyframes stickerSlidePrev{from{opacity:.35;transform:translateX(-22px)}to{opacity:1;transform:translateX(0)}}
@keyframes stickerEdgeBounce{0%,100%{transform:translateX(0)}45%{transform:translateX(7px)}70%{transform:translateX(-3px)}}
@media(prefers-reduced-motion:reduce){.stickers.stickerSlideNext .stickerGrid,.stickers.stickerSlidePrev .stickerGrid,.stickers.stickerEdgeBounce{animation:none}}
.sticker{width:100%;min-width:0;aspect-ratio:1;padding:6px;font-size:25px;overflow:hidden;display:grid;place-items:center;border-radius:13px}
.imageStickerBtn img{width:100%;height:100%;object-fit:cover;border-radius:10px;display:block}
.bodyImageSticker{display:inline-flex;width:74px;height:74px;margin:3px;vertical-align:middle;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.75);border:1px solid var(--line)}
.bodyImageSticker img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.readerBody .bodyImageSticker{pointer-events:none}
.settingCard select{min-width:0;max-width:100%}
.backgroundList{grid-template-columns:1fr}
@media(min-width:430px){.stickerGrid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* v0.2.6 cascade lock: unified rules after every legacy declaration */
.stickerGrid .sticker{display:flex;align-items:center;justify-content:center}
.stickerGrid .imageStickerBtn{aspect-ratio:1;padding:8px;overflow:hidden!important}
.stickerGrid .imageStickerBtn img{width:72%!important;height:72%!important;max-width:72%!important;max-height:72%!important;object-fit:contain!important;object-position:center!important;border-radius:0}
.bodyEditor .bodySticker,.readerBody .bodySticker{font-size:1em;line-height:1}
.bodyEditor .bodyImageSticker,.readerBody .bodyImageSticker{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:1.65em!important;height:1.65em!important;min-width:0!important;min-height:0!important;padding:0!important;margin:.06em!important;overflow:visible!important;vertical-align:-.32em!important;border:0!important;background:transparent!important}
.bodyEditor .bodyImageSticker img,.readerBody .bodyImageSticker img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:0!important;background:transparent!important}

/* v0.2.8 cascade lock: this block must be the final sticker rule */
.bodyEditor,.readerBody{line-height:1.85!important}
.bodyEditor .bodyImageSticker,.readerBody .bodyImageSticker{
  display:inline-flex!important;
  width:1.65em!important;
  height:1.65em!important;
  align-items:center!important;
  justify-content:center!important;
  margin:.12em .06em!important;
  padding:0!important;
  line-height:0!important;
  vertical-align:middle!important;
  overflow:visible!important
}
.bodyEditor .bodyImageSticker img,.readerBody .bodyImageSticker img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  overflow:visible!important
}

/* v0.2.8 final inline-sticker clipping fix
   Keep this last: older rules above used a negative baseline offset that pushed
   the lower part of pastel stickers outside the current text line. */
.bodyEditor,
.readerBody{
  line-height:1.85!important;
}
.bodyEditor .bodyImageSticker,
.readerBody .bodyImageSticker{
  display:inline-flex!important;
  width:1.65em!important;
  height:1.65em!important;
  align-items:center!important;
  justify-content:center!important;
  margin:.12em .06em!important;
  padding:0!important;
  line-height:0!important;
  vertical-align:middle!important;
  overflow:visible!important;
}
.bodyEditor .bodyImageSticker img,
.readerBody .bodyImageSticker img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  overflow:visible!important;
}

/* v0.2.7 picker clipping protection */
.stickerGrid{
  scroll-padding-top:12px;
  padding-top:12px!important;
  align-content:start;
}
.stickerGrid .imageStickerBtn{
  overflow:visible!important;
  min-height:0;
}
.stickerGrid .imageStickerBtn img{
  display:block!important;
  flex:0 0 auto;
}

/* v0.2.6 final unified sticker sizing (must remain after legacy rules) */
.stickerGrid .sticker{
  display:flex;
  align-items:center;
  justify-content:center;
}
.stickerGrid .imageStickerBtn{
  aspect-ratio:1;
  padding:8px;
  overflow:hidden!important;
}
.stickerGrid .imageStickerBtn img{
  width:72%!important;
  height:72%!important;
  max-width:72%!important;
  max-height:72%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0;
}
.bodyEditor .bodySticker,
.readerBody .bodySticker{
  font-size:1em;
  line-height:1;
}
.bodyEditor .bodyImageSticker,
.readerBody .bodyImageSticker{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:1.65em!important;
  height:1.65em!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  margin:.06em!important;
  overflow:visible!important;
  vertical-align:-.32em!important;
  border:0!important;
  background:transparent!important;
}

.bodyEditor .bodyImageSticker img,
.readerBody .bodyImageSticker img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  background:transparent!important;
}

/* v0.2.3 tightly cropped stickers + simple-tab spacing */
.stickerGrid{gap:10px}
.imageStickerBtn{padding:6px;overflow:visible}
.imageStickerBtn img{width:100%;height:100%;object-fit:contain!important;object-position:center}
.bodyImageSticker{width:64px;height:64px;padding:1px;margin:2px;overflow:visible}
.bodyImageSticker img{width:100%;height:100%;object-fit:contain!important;object-position:center}

/* v0.2.4 responsive image stickers + clipping protection */
.imageStickerBtn{overflow:visible!important}
.imageStickerBtn img{width:50%!important;height:50%!important;max-width:50%;max-height:50%;object-fit:contain!important;overflow:visible}
.bodyImageSticker{width:1.8em;height:1.8em;min-width:1.8em;min-height:1.8em;padding:.06em;margin:.08em;overflow:visible!important;border-radius:.3em}
.bodyImageSticker img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;overflow:visible}
.readerBody .bodyImageSticker{width:1.8em;height:1.8em;min-width:1.8em;min-height:1.8em}

/* v0.1.7 Google login and Drive backup */
.googleLoginGate{position:fixed;inset:0;z-index:5000;background:linear-gradient(180deg,rgba(20,22,28,.94),rgba(20,22,28,.98));display:flex;align-items:center;justify-content:center;padding:28px}
.googleLoginGate.hidden{display:none}
.googleLoginCard{width:min(100%,430px);background:var(--card,#20232a);border:1px solid rgba(255,255,255,.1);border-radius:30px;padding:32px 26px;text-align:center;box-shadow:0 28px 80px rgba(0,0,0,.4)}
.googleLoginCard h1{margin:12px 0 10px;font-size:30px}.googleLoginCard p{line-height:1.65;color:var(--muted,#b7afa4)}.googleLoginCard small{display:block;margin-top:18px;color:var(--muted,#9d958c);line-height:1.45}
.googleMark{width:64px;height:64px;margin:0 auto;border-radius:22px;background:#fff;display:grid;place-items:center;color:#4285f4;font-size:34px;font-weight:900}
.googleLoginButton{width:100%;margin-top:22px;background:#fff!important;color:#222!important;border:none!important;display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 18px!important}.googleLoginButton span{color:#4285f4;font-size:24px;font-weight:900}.textLink{margin-top:10px;background:transparent!important;border:none!important;color:#9bc8ae!important}
.googleDriveCard{display:grid;gap:16px}.googleAccountHead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.googleAccountHead h2{margin:0}.googleAccountHead p{margin:5px 0 0}.googleBadge{padding:7px 12px;border-radius:999px;background:#3a3d45;color:#c8c2bb;font-size:13px}.googleBadge.connected{background:#dff4e8;color:#35684e}
.googleAccountInfo{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;background:rgba(127,174,148,.1)}.googleAccountInfo.hidden{display:none}.googleAccountInfo img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#ddd}.googleAccountInfo img.hidden{display:none}.googleAccountInfo div{display:grid;gap:3px}.googleAccountInfo small{color:var(--muted,#aaa)}
.driveActions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.driveActions button{min-height:50px}.driveActions .danger{color:#ff9d9d}.driveMeta{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:15px;background:rgba(255,255,255,.04)}.driveHint{font-size:13px;line-height:1.5;color:var(--muted,#aaa)}
.driveBackupStatus{margin:-6px 2px 0;font-size:12px;line-height:1.45;color:var(--muted,#777)}.driveBackupStatus.ok{color:#26845e}.driveBackupStatus.error{color:#d34d4d;font-weight:700}
.autoBackupBox{display:grid;gap:12px;padding:15px;border-radius:20px;background:color-mix(in srgb,var(--accent) 9%,var(--card));border:1px solid color-mix(in srgb,var(--accent) 22%,transparent)}.autoBackupHead{display:flex;align-items:center;justify-content:space-between;gap:14px}.autoBackupHead>div{display:grid;gap:4px}.autoBackupHead small{color:var(--muted);font-size:12px}.autoBackupToggle{width:54px!important;min-width:54px!important;height:31px!important;min-height:31px!important;padding:3px!important;border:0!important;border-radius:999px!important;background:#b9b9be!important;box-shadow:inset 0 1px 4px rgba(0,0,0,.16)!important}.autoBackupToggle span{display:block;width:25px;height:25px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.24);transition:transform .22s ease}.autoBackupToggle.active{background:var(--accent)!important}.autoBackupToggle.active span{transform:translateX(23px)}.autoBackupIntervals{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.autoBackupIntervals.hidden{display:none}.autoBackupIntervals button{min-height:38px;padding:7px 3px;font-size:12px;border-radius:13px}.autoBackupIntervals button.active{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 4px 10px color-mix(in srgb,var(--accent) 30%,transparent)}.autoBackupHint{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
@media(max-width:420px){.driveActions{grid-template-columns:1fr}.googleLoginCard{padding:28px 20px}.googleLoginCard h1{font-size:26px}}


/* v0.1.8 cute mood calendar + unified diary cards */
.moodBlob{--blob:#d9efe2;display:inline-flex;align-items:center;justify-content:center;border-radius:46% 54% 48% 52%/56% 48% 52% 44%;background:var(--blob);box-shadow:inset 0 -3px 0 rgba(0,0,0,.06),0 4px 10px rgba(0,0,0,.10);flex:0 0 auto;position:relative}
.moodBlob i{font-style:normal;filter:saturate(.82);line-height:1}.moodBlob.happy{--blob:#ffe895}.moodBlob.calm{--blob:#ccebbf}.moodBlob.normal{--blob:#c9e8ef}.moodBlob.tired{--blob:#d8caef}.moodBlob.sad{--blob:#bad7ef}.moodBlob.lonely{--blob:#cfcfcf}.moodBlob.angry{--blob:#f2a184}.moodBlob.blue{--blob:#aeb6c2}.moodBlob.anxious{--blob:#f4c7d2}.moodBlob.excited{--blob:#ffd889}
.moodBlob.picker{width:45px;height:39px}.moodBlob.picker i{font-size:22px}.moodBlob.tiny{width:30px;height:26px}.moodBlob.tiny i{font-size:15px}.moodBlob.calendar{width:46px;height:40px;margin:auto}.moodBlob.calendar i{font-size:21px}
.moodPick{min-width:76px;padding:8px 7px}.moodPick>span{font-size:inherit}.moodPick small{font-size:10px}
.calendar{gap:7px}.day{min-height:72px;padding:5px 3px;text-align:center;display:grid;grid-template-rows:18px 1fr;align-items:center;overflow:visible}.day b{font-size:12px;color:var(--text);font-weight:700}.day.has{background:transparent;color:var(--text);border-color:transparent}.day.has small{position:absolute;right:2px;bottom:1px;background:var(--accent);color:white;border-radius:999px;min-width:17px;height:17px;line-height:17px;font-size:9px}.day.selected{outline:2px solid var(--accent);outline-offset:1px;background:color-mix(in srgb,var(--accent) 10%,transparent)}
.dayEntries.calendarCards{max-height:52vh;overflow-y:auto;padding:6px 0 24px;gap:13px}.selectedDayHeading{display:flex;justify-content:space-between;align-items:center;color:var(--sub);padding:8px 4px 2px}.selectedDayHeading span{background:var(--accent);color:#fff;border-radius:999px;padding:2px 8px;font-size:11px}
.diaryRecordCard{padding:15px;border-radius:20px;display:block!important}.diaryRecordCard .recordMeta{display:flex;align-items:center;gap:7px;color:var(--sub);font-size:12px}.diaryRecordCard .weatherBadge{font-size:19px}.diaryRecordCard h3{font-size:19px;margin:9px 0 6px}.diaryRecordCard p{font-size:13px;line-height:1.55;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--sub)}.recordPhotoStrip{display:flex;gap:7px;margin-top:11px;overflow-x:auto;scrollbar-width:none}.recordPhotoStrip::-webkit-scrollbar{display:none}.recordPhotoStrip img{width:76px!important;height:66px!important;min-width:76px;object-fit:cover;border-radius:11px;margin:0!important}.diaryRecordCard.compact{grid-template-columns:1fr!important}.calendarRecord{background:var(--card)}
@media(max-width:390px){.calendar{gap:4px}.day{min-height:66px}.moodBlob.calendar{width:40px;height:35px}.moodBlob.calendar i{font-size:18px}.recordPhotoStrip img{width:67px!important;height:58px!important;min-width:67px}}


/* v0.1.9 sticker + mood icon fixes */
.moodFace{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;box-shadow:none;line-height:1;font-style:normal}
.moodFace.picker{font-size:26px;width:auto;height:auto}
.moodFace.tiny{font-size:23px;width:auto;height:auto}
.moodFace.calendar{font-size:23px;width:auto;height:auto;margin-top:4px}
.moodPick{min-width:74px;padding:10px 8px;display:grid;justify-items:center;gap:4px}
.moodPick small{font-size:11px}
.day{position:relative;min-height:76px;padding:5px 4px 6px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;overflow:visible}
.day b{align-self:flex-start;margin-left:4px;font-size:11px;line-height:1;font-weight:700}
.day.has small{top:4px;right:4px;bottom:auto;min-width:16px;height:16px;line-height:16px;font-size:9px}
.stickerTabs{gap:8px;overflow-x:auto;padding:2px 2px 12px;scrollbar-width:none}
.stickerTab{flex:0 0 auto;padding:8px 12px;font-size:12px;white-space:nowrap}
.stickerGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:390px;overflow-y:auto;overflow-x:hidden;padding-right:2px}
.imageStickerBtn{padding:6px;background:rgba(255,255,255,.06);border-radius:14px}
.imageStickerBtn img{width:100%;height:100%;object-fit:contain !important;border-radius:10px;display:block;background:transparent}
.bodyImageSticker{display:inline-flex;align-items:center;justify-content:center;width:82px;height:82px;margin:3px;vertical-align:middle;border-radius:14px;overflow:hidden;background:transparent;border:none}
.bodyImageSticker img{width:100%;height:100%;object-fit:contain !important;border-radius:12px;background:transparent}
.recordMeta .moodFace.tiny{transform:translateY(1px)}
@media(min-width:430px){.stickerGrid{grid-template-columns:repeat(5,minmax(0,1fr))}}


/* v0.2.0 sticker centering + calendar badge tuning */
.stickerGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start}
.imageStickerBtn{display:flex;align-items:center;justify-content:center;aspect-ratio:1;padding:8px;background:transparent;border:1px solid var(--line)}
.imageStickerBtn img{width:100%;height:100%;object-fit:contain !important;object-position:center center;border-radius:12px;display:block;background:transparent}
.bodyImageSticker{display:inline-flex;align-items:center;justify-content:center;width:88px;height:88px;padding:4px;margin:3px;vertical-align:middle;border-radius:16px;overflow:hidden;background:transparent;border:none}
.bodyImageSticker img{width:100%;height:100%;object-fit:contain !important;object-position:center center;border-radius:12px;background:transparent}
.moodFace.calendar{font-size:20px;width:auto;height:auto;margin-top:2px}
.day{min-height:74px;padding:4px 3px 6px}
.day b{font-size:10px;margin-left:3px}
.day.has .entryCountBadge{position:absolute;top:4px;right:4px;min-width:14px;height:14px;line-height:14px;padding:0 3px;border-radius:999px;background:var(--accent);color:#fff;font-size:8px;font-weight:700}
@media(min-width:430px){.stickerGrid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* v0.2.6 final cascade lock */
.stickerGrid .sticker{display:flex;align-items:center;justify-content:center}
.stickerGrid .imageStickerBtn{aspect-ratio:1;padding:8px;overflow:hidden!important}
.stickerGrid .imageStickerBtn img{width:72%!important;height:72%!important;max-width:72%!important;max-height:72%!important;object-fit:contain!important;object-position:center!important;border-radius:0}
.bodyEditor .bodySticker,.readerBody .bodySticker{font-size:1em;line-height:1}
.bodyEditor .bodyImageSticker,.readerBody .bodyImageSticker{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:1.65em!important;height:1.65em!important;min-width:0!important;min-height:0!important;padding:0!important;margin:.06em!important;overflow:visible!important;vertical-align:-.32em!important;border:0!important;background:transparent!important}
.bodyEditor .bodyImageSticker img,.readerBody .bodyImageSticker img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:0!important;background:transparent!important}

/* v0.2.8 final cascade lock */
.bodyEditor,.readerBody{line-height:1.85!important}
.bodyEditor .bodyImageSticker,.readerBody .bodyImageSticker{
  margin:.12em .06em!important;
  padding:0!important;
  line-height:0!important;
  vertical-align:middle!important;
  overflow:visible!important
}
.bodyEditor .bodyImageSticker img,.readerBody .bodyImageSticker img{
  object-fit:contain!important;
  object-position:center!important;
  overflow:visible!important
}

/* v0.3.0 final inline sticker rendering lock */
.bodyEditor,.readerBody{
  line-height:2.05!important;
}
.bodyEditor .bodyImageSticker,.readerBody .bodyImageSticker{
  display:inline-block!important;
  position:relative!important;
  width:1.65em!important;
  height:1.85em!important;
  margin:0 .06em!important;
  padding:0!important;
  line-height:0!important;
  vertical-align:middle!important;
  overflow:visible!important;
  border:0!important;
  background:transparent!important;
}
.bodyEditor .bodyImageSticker img,.readerBody .bodyImageSticker img{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:block!important;
  width:1.65em!important;
  height:1.65em!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  overflow:visible!important;
  background:transparent!important;
}

/* v0.3.1 cascade lock */
#editorView .bodyEditor{
  display:block!important;
  height:390px!important;
  min-height:390px!important;
  max-height:390px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  resize:none!important;
  flex:none!important;
  contain:size layout!important;
  position:relative!important;
}

/* v0.3.2 final pastel sticker safety lock */
.bodyEditor .bodyImageSticker,
.readerBody .bodyImageSticker{
  box-sizing:content-box!important;
  clip-path:none!important;
}
.bodyEditor .bodyImageSticker img,
.readerBody .bodyImageSticker img{
  clip-path:none!important;
}

/* v0.3.3 fixed editor header + compact weather/mood pickers */
body.editorActive .appbar{
  position:fixed!important;
  left:0;
  right:0;
  top:0;
  width:100%;
  z-index:80;
}
body.editorActive main{padding-top:94px}
#editorView .editorCancelAction{margin-top:18px;margin-bottom:20px}

#weatherPicker,#moodPicker{gap:8px;padding:8px 0 10px}
#weatherPicker .pick,#moodPicker .pick{
  flex:0 0 64px;
  width:64px;
  min-width:64px;
  height:66px;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
}
#weatherPicker .pick span{font-size:29px;line-height:1}
#weatherPicker .pick small,#moodPicker .pick small{display:none!important}
.moodFace.picker{
  display:flex;
  width:34px!important;
  height:34px!important;
  font-size:28px!important;
  line-height:1!important;
}
.moodFace img{display:block;width:100%;height:100%;object-fit:contain}
.moodFace.tiny{width:26px!important;height:26px!important}
.moodFace.calendar{width:25px!important;height:25px!important;margin-top:2px!important}
.moodPlus{display:block;width:34px;height:34px;object-fit:contain}

.moodModal{
  position:fixed;
  inset:0;
  z-index:3000;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:20px 14px max(22px,env(safe-area-inset-bottom));
  background:rgba(17,20,24,.55);
  backdrop-filter:blur(5px);
  opacity:0;
  transition:opacity .24s ease;
  overscroll-behavior:contain;
  touch-action:none;
}
.moodModalCard{
  width:min(100%,520px);
  max-height:78vh;
  overflow-y:auto;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
  opacity:0;
  transform:translateY(42px) scale(.88);
  transform-origin:50% 100%;
  transition:transform .34s cubic-bezier(.2,1.38,.46,1),opacity .18s ease;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.moodModal.open{opacity:1}

/* v0.3.7 square calendar cells */
#calendarGrid.calendar{
  align-items:start;
}
#calendarGrid .day{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1 / 1!important;
  padding:5px 3px!important;
}
.moodModal.open .moodModalCard{opacity:1;transform:translateY(0) scale(1)}
.moodModal.closing{opacity:0}
.moodModal.closing .moodModalCard{
  opacity:0;
  transform:translateY(34px) scale(.91);
  transition:transform .26s cubic-bezier(.55,-.18,.72,.42),opacity .2s ease;
}
.moodModalHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.moodModalHead h2{margin:0;font-size:21px}
.moodModalClose{width:42px;height:42px;padding:0;border-radius:50%;font-size:27px;line-height:1}
.moodModalGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.moodModalItem{
  min-width:0;
  padding:10px 4px 9px;
  display:grid;
  justify-items:center;
  gap:5px;
  border-radius:16px;
}
.moodModalItem.active{outline:2px solid var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--card))}
.moodFace.modal{width:48px;height:48px}
.moodModalItem small{display:none!important}
html.modalOpen{overflow:hidden!important;overscroll-behavior:none}
body.modalOpen{
  position:fixed!important;
  left:0;
  right:0;
  width:100%;
  overflow:hidden!important;
  overscroll-behavior:none;
  touch-action:none;
}
@media(max-width:370px){
  #weatherPicker .pick,#moodPicker .pick{flex-basis:60px;width:60px;min-width:60px}
  .moodModalGrid{gap:7px}
  .moodFace.modal{width:43px;height:43px}
}

/* v0.3.9 fixed top bar on every screen */
.appbar{
  position:fixed!important;
  left:0;
  right:0;
  top:0;
  width:100%;
  z-index:80;
}
main,
body.editorActive main{
  padding-top:94px!important;
}
@media(max-width:390px){
  main,
  body.editorActive main{
    padding-top:90px!important;
  }
}

/* v0.4.7 sticker press feedback only; it disappears when the finger is released */
.stickerGrid .sticker:active,.stickerGrid .imageStickerBtn:active{
  background:#d98945!important;
  border-color:#bd6f31!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.18),0 3px 10px rgba(135,73,27,.22)!important;
}
:root[data-diary-theme="mint"],:root[data-diary-theme="garden"]{--accent:#72ad8c}
:root[data-diary-theme="lavender"],:root[data-diary-theme="lavender_night"]{--accent:#9a82c4}
:root[data-diary-theme="peach"],:root[data-diary-theme="bear"]{--accent:#d99a69}
:root[data-diary-theme="sky"],:root[data-diary-theme="duck"]{--accent:#6f9fc4}
:root[data-diary-theme="pink"],:root[data-diary-theme="bunny"],:root[data-diary-theme="flower_street"]{--accent:#cf7995}
:root[data-diary-theme="cat"],:root[data-diary-theme="rooftop"]{--accent:#7d82bb}
:root[data-diary-theme="rain_room"]{--accent:#708fa3}
:root[data-diary-theme="emotion_lake"]{--accent:#756fbd;--nav-filter:hue-rotate(35deg) saturate(1.05)}
:root[data-diary-theme="fun_breakfast"]{--accent:#e19a42;--nav-filter:hue-rotate(325deg) saturate(1.18)}
:root[data-diary-theme="lovely_rose"]{--accent:#df7396;--nav-filter:hue-rotate(300deg) saturate(1.25)}
:root[data-diary-theme="anime_sunset"]{--accent:#b66f9d;--nav-filter:hue-rotate(285deg) saturate(1.12)}
:root[data-diary-theme="pixel_village"]{--accent:#6c79d8;--nav-filter:hue-rotate(42deg) saturate(1.3) contrast(1.08)}
:root[data-diary-theme="country_korea"]{--accent:#56a9d6;--country-deep:#247da9;--country-soft:#dff4ff;--country-glow:#9bdcff;--nav-filter:none}
:root[data-diary-theme="country_japan"]{--accent:#e982aa;--country-deep:#bd4f79;--country-soft:#ffe4ef;--country-glow:#ffb6d2;--nav-filter:none}
:root[data-diary-theme="country_usa"]{--accent:#315f91;--country-deep:#173f70;--country-soft:#e5eef8;--country-glow:#e45d63;--nav-filter:none}
:root[data-diary-theme="country_france"]{--accent:#7969b1;--country-deep:#4e438b;--country-soft:#eee9ff;--country-glow:#b6a9e7;--nav-filter:none}
:root[data-diary-theme="country_china"]{--accent:#c74636;--country-deep:#922d24;--country-soft:#fff0d5;--country-glow:#e5b746;--nav-filter:none}

/* v0.7.9: the five new illustrated themes also dress the bottom navigation. */
:root[data-diary-theme] .bottomNav button img{filter:var(--nav-filter,saturate(.88))}
:root[data-diary-theme] .bottomNav button::before{position:absolute;right:10%;top:1px;z-index:2;font-size:13px;line-height:1;filter:none;pointer-events:none;transform:rotate(8deg);text-shadow:0 1px 2px rgba(255,255,255,.75)}
:root[data-diary-theme="emotion_lake"] .bottomNav button::before{content:"✦";color:#ffe990}
:root[data-diary-theme="fun_breakfast"] .bottomNav button::before{content:"●";color:#ffb850;border:2px solid #fff4d8;border-radius:50%;font-size:9px}
:root[data-diary-theme="lovely_rose"] .bottomNav button::before{content:"♥";color:#f58aaa}
:root[data-diary-theme="anime_sunset"] .bottomNav button::before{content:"✧";color:#ffd08d}
:root[data-diary-theme="pixel_village"] .bottomNav button::before{content:"◆";color:#8ec8ff;font-size:10px;text-shadow:2px 0 #28347f,0 2px #28347f}
:root[data-diary-theme="pixel_village"] .bottomNav button img{image-rendering:pixelated}
:root[data-diary-theme="emotion_lake"] .bottomNav,:root[data-diary-theme="pixel_village"] .bottomNav{background:color-mix(in srgb,var(--accent) 19%,var(--card) 81%)!important}
:root[data-diary-theme^="country_"] .bottomNav{background:linear-gradient(180deg,color-mix(in srgb,var(--country-soft) 78%,var(--card) 22%),color-mix(in srgb,var(--accent) 18%,var(--card) 82%))!important;border-top-color:color-mix(in srgb,var(--accent) 42%,transparent)!important}
:root[data-diary-theme^="country_"] .bottomNav button img{width:44px;height:44px;object-fit:contain;filter:none!important;transform:translateY(-2px);transition:transform .22s cubic-bezier(.2,1.25,.4,1),filter .2s ease}
:root[data-diary-theme^="country_"] .bottomNav button.active img{transform:translateY(-3px) scale(1.08);filter:drop-shadow(0 3px 5px rgba(0,0,0,.18))!important}
:root[data-diary-theme^="country_"] .bottomNav button.active{color:var(--country-deep)!important}
:root[data-diary-theme^="country_"] .backgroundCard.selected{border-color:var(--accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--country-glow) 42%,transparent),0 8px 18px color-mix(in srgb,var(--accent) 24%,transparent)!important}
:root[data-diary-theme^="country_"] .backgroundCheck{background:linear-gradient(135deg,var(--accent),var(--country-deep))!important}
:root[data-diary-theme^="country_"] .primaryBtn,:root[data-diary-theme^="country_"] button.primary{background:linear-gradient(135deg,var(--accent),var(--country-deep))!important}

/* v0.4.0 true card/list layouts and inline sticker previews */
.diaryRecordCard{font-family:var(--record-font,system-ui);overflow:hidden}
.diaryRecordCard.hasAttachment{display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;gap:14px;align-items:stretch}
.diaryRecordCard.noAttachment{display:block!important;padding-bottom:13px}
.recordContent{min-width:0}
.recordBodyPreview{font-size:14px;line-height:1.65;color:var(--sub);max-height:3.3em;overflow:hidden;white-space:normal;word-break:break-word}
.recordBodyPreview p,.recordBodyPreview div{display:inline;margin:0}
.recordBodyPreview br{display:none}
.recordBodyPreview .inlinePhoto{display:none!important}
.recordBodyPreview .bodySticker{font-size:1em!important;padding:0!important;margin:0 .03em!important;display:inline!important}
.recordBodyPreview .bodyImageSticker{position:relative!important;display:inline-flex!important;width:1.5em!important;height:1.5em!important;margin:0 .05em!important;padding:0!important;vertical-align:-.35em!important;overflow:visible!important;background:transparent!important;border:0!important}
.recordBodyPreview .bodyImageSticker img{position:static!important;transform:none!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;object-fit:contain!important;border-radius:0!important}
.recordAttachment{position:relative;min-height:112px;border-radius:15px;overflow:hidden;background:color-mix(in srgb,var(--accent) 10%,var(--card))}
.recordAttachment img{width:100%!important;height:100%!important;max-height:none!important;margin:0!important;object-fit:cover!important;border-radius:15px!important}
.recordAttachment small{position:absolute;right:7px;bottom:7px;background:rgba(20,20,20,.72);color:#fff;border-radius:999px;padding:3px 7px;font-size:11px}
.diaryRecordCard.compact{display:block!important;padding:11px 13px!important;border-radius:15px!important;box-shadow:0 4px 12px rgba(0,0,0,.04)!important}
.diaryRecordCard.compact .recordMeta{font-size:11px}
.diaryRecordCard.compact .weatherBadge,.diaryRecordCard.compact .moodFace{transform:scale(.84);transform-origin:center}
.diaryRecordCard.compact .recordContent{min-width:0;overflow:hidden}
.diaryRecordCard.compact h3{display:block;width:100%;min-width:0;font-size:16px;line-height:1.35;margin:4px 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:keep-all}
.diaryRecordCard.compact .recordBodyPreview{display:block;width:100%;min-width:0;font-size:12px;line-height:1.35;max-height:1.35em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.diaryRecordCard.compact .recordAttachment{display:none!important}
@media(max-width:390px){.diaryRecordCard.hasAttachment{grid-template-columns:minmax(0,1fr) 94px!important}.recordAttachment{min-height:100px}}

/* v0.4.8 card attachment strip and one-row editor tools */
.diaryRecordCard.hasAttachment{display:block!important}
.recordAttachments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:13px}
.recordAttachments .recordAttachment{width:100%;height:104px;min-height:0!important;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);background:color-mix(in srgb,var(--accent) 7%,var(--card));display:grid;place-items:center}
.recordAttachments .recordAttachment img{width:100%!important;height:100%!important;max-height:none!important;margin:0!important;padding:3px;object-fit:contain!important;object-position:center!important;border-radius:12px!important}
.recordAttachments .recordAttachment small{right:6px;bottom:6px;font-size:12px;padding:4px 8px}
.diaryRecordCard.compact .recordAttachments{display:none!important}
.actionsRow{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important;width:100%;justify-content:stretch!important}
.actionsRow button,.actionsRow .fileBtn{min-width:0;width:100%;padding:10px 4px!important;display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;font-size:13px;line-height:1.2;text-align:center}
@media(max-width:390px){.recordAttachments{gap:6px}.recordAttachments .recordAttachment{height:88px}.actionsRow{gap:5px!important}.actionsRow button,.actionsRow .fileBtn{padding:9px 2px!important;font-size:11.5px;letter-spacing:-.45px}}

/* v0.4.9 inline-photo card thumbnail and long-press moving */
.recordContent{display:flex;align-items:flex-end;gap:12px}
.recordText{flex:1;min-width:0}
.recordInlinePhoto{flex:0 0 84px;width:84px;height:84px;display:grid;place-items:center;overflow:hidden;border-radius:14px;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);background:color-mix(in srgb,var(--accent) 7%,var(--card))}
.recordInlinePhoto img{width:100%!important;height:100%!important;max-height:none!important;margin:0!important;padding:3px;object-fit:contain!important;object-position:center!important;border-radius:12px!important}
.diaryRecordCard.compact .recordContent{display:block}.diaryRecordCard.compact .recordInlinePhoto{display:none!important}
.bodyEditor .inlinePhoto{touch-action:none}
.inlinePhoto.moving{opacity:.76;z-index:12;box-shadow:0 12px 28px rgba(0,0,0,.22);cursor:grabbing}
@media(max-width:390px){.recordContent{gap:9px}.recordInlinePhoto{flex-basis:72px;width:72px;height:72px}}

/* v0.4.0 device-font spring sheet */
.fontModal{position:fixed;inset:0;z-index:3100;display:flex;align-items:flex-end;justify-content:center;padding:20px 14px max(22px,env(safe-area-inset-bottom));background:rgba(17,20,24,.58);backdrop-filter:blur(6px);opacity:0;transition:opacity .24s ease}
.fontModalCard{width:min(100%,520px);max-height:79vh;overflow:hidden;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:28px;padding:18px;box-shadow:0 24px 70px rgba(0,0,0,.38);opacity:0;transform:translateY(48px) scale(.87);transform-origin:50% 100%;transition:transform .36s cubic-bezier(.2,1.42,.46,1),opacity .18s ease}
.fontModal.open{opacity:1}.fontModal.open .fontModalCard{opacity:1;transform:translateY(0) scale(1)}
.fontModal.closing{opacity:0}.fontModal.closing .fontModalCard{opacity:0;transform:translateY(38px) scale(.9);transition:transform .27s cubic-bezier(.55,-.18,.72,.42),opacity .2s ease}
.fontModalHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.fontModalHead h2{font-size:21px;margin:0 0 3px}.fontModalHead small{color:var(--sub)}.fontModalClose{width:42px;height:42px;padding:0;border-radius:50%;font-size:27px}
.fontModalList{display:grid;gap:9px;overflow-y:auto;overscroll-behavior:contain;padding:2px 3px 8px}
.fontChoice{text-align:left;display:grid;gap:4px;padding:12px 14px;border-radius:16px}.fontChoice span{font-size:15px;font-weight:800}.fontChoice small{font-size:18px;font-weight:400;color:var(--text)}.fontChoice.active{outline:2px solid var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--card))}
html.fontModalOpen,html.fontModalOpen body{overflow:hidden!important;overscroll-behavior:none!important}

/* v0.4.4 large illustrated background gallery */
.backgroundIntro{padding:4px 2px 12px;text-align:center}
.backgroundIntro h2{font-size:24px;margin-bottom:5px}
.backgroundList{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;padding:2px 2px 28px!important}
.backgroundCard{position:relative!important;display:block!important;width:100%!important;aspect-ratio:1/1!important;padding:0!important;overflow:hidden!important;border-radius:24px!important;background:var(--card)!important;border:2px solid color-mix(in srgb,var(--line) 80%,transparent)!important;box-shadow:0 8px 22px rgba(74,54,90,.11)!important}
.backgroundCard>img:first-child{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:22px!important;margin:0!important;transition:transform .25s ease!important}
.backgroundCard:active>img:first-child{transform:scale(.97)}
.backgroundCard.selected{outline:4px solid var(--accent)!important;outline-offset:2px!important}
.backgroundCheck{position:absolute;right:10px;top:10px;width:30px;height:30px;border-radius:50%;display:none;place-items:center;background:var(--accent);color:#fff;font-size:18px;font-weight:900;box-shadow:0 4px 12px rgba(0,0,0,.24)}
.backgroundCard.selected .backgroundCheck{display:grid}
.backgroundCard>span:not(.backgroundCheck),.backgroundCard .backgroundName,.backgroundCard .backgroundLabel{display:none!important}
.countryThemeName{position:absolute;left:50%;top:50%;z-index:3;transform:translate(-50%,-50%);min-width:76%;padding:8px 11px;border-radius:999px;background:rgba(255,250,244,.74);color:#44364f;font-family:Georgia,'Times New Roman',serif;font-size:16px;font-weight:700;letter-spacing:.17em;text-align:center;text-shadow:0 1px 0 #fff;box-shadow:0 4px 14px rgba(52,39,65,.16);backdrop-filter:blur(3px)}
.countryThemeCard::after{content:"";position:absolute;inset:10px;border:1px solid rgba(255,255,255,.68);border-radius:17px;pointer-events:none}
.headerArt.countryHeaderArt{width:78px!important;height:78px!important;object-fit:contain!important;opacity:1!important;filter:drop-shadow(0 5px 8px rgba(0,0,0,.18))!important;transform:rotate(-2deg)}
.headerArt.countryHeaderBackdrop{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;opacity:1!important;filter:saturate(1.32) contrast(1.2)!important;transform:none!important;pointer-events:none!important;z-index:0!important}
:root[data-theme=dark] .headerArt.countryHeaderBackdrop{opacity:.86!important;filter:saturate(1.24) brightness(1.02) contrast(1.22)!important}
:root[data-diary-theme^="country_"] .appbar{isolation:isolate;overflow:hidden;background:color-mix(in srgb,var(--card) 68%,transparent)}
:root[data-diary-theme^="country_"] .appbar>div,:root[data-diary-theme^="country_"] .appbar>button{position:relative;z-index:1}
@media(max-width:360px){.backgroundList{gap:12px!important}.backgroundCard{border-radius:20px!important}}

/* v0.4.4 unsaved editor leave confirmation */
.leaveEditorModal{position:fixed;inset:0;z-index:4200;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(22,19,25,.54);backdrop-filter:blur(7px);opacity:0;transition:opacity .22s ease}
.leaveEditorCard{width:min(100%,390px);padding:25px 22px 20px;text-align:center;background:var(--card);border:1px solid var(--line);border-radius:28px;box-shadow:0 26px 80px rgba(0,0,0,.35);opacity:0;transform:translateY(18px) scale(.88);transition:transform .34s cubic-bezier(.2,1.38,.45,1),opacity .18s ease}
.leaveEditorModal.open{opacity:1}.leaveEditorModal.open .leaveEditorCard{opacity:1;transform:translateY(0) scale(1)}
.leaveEditorModal.closing{opacity:0}.leaveEditorModal.closing .leaveEditorCard{opacity:0;transform:translateY(15px) scale(.94);transition:transform .22s ease,opacity .18s ease}
.leaveEditorArt{width:62px;height:62px;margin:0 auto 12px;display:grid;place-items:center;border-radius:22px;background:color-mix(in srgb,var(--accent) 18%,var(--card));font-size:34px;transform:rotate(-4deg)}
.leaveEditorCard h2{margin:0;font-size:22px}.leaveEditorCard p{margin:9px 0 20px;color:var(--sub);line-height:1.5}
.leaveEditorActions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.leaveEditorActions button{min-height:48px;font-size:16px}
html.leaveModalOpen,html.leaveModalOpen body{overflow:hidden!important;overscroll-behavior:none!important}

/* v0.4.1 custom cute bottom navigation artwork */
.bottomNav{height:82px;padding:4px 5px max(3px,env(safe-area-inset-bottom));overflow:visible}
.bottomNav button{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:2px 4px 4px!important;color:var(--sub);transition:transform .2s ease,color .2s ease}
.bottomNav button img{display:block;width:45px;height:45px;object-fit:contain;filter:saturate(.88);transition:transform .24s cubic-bezier(.2,1.35,.4,1),filter .2s ease}
.bottomNav button span{font-size:12px;line-height:16px;font-weight:800}
.bottomNav button.active{color:var(--text);transform:translateY(-2px)}
.bottomNav button.active img{transform:scale(1.12);filter:saturate(1.12) drop-shadow(0 4px 5px rgba(0,0,0,.16))}
.bottomNav button.active::after{content:"";position:absolute;left:50%;bottom:1px;width:22px;height:3px;border-radius:999px;background:var(--accent);transform:translateX(-50%)}
body{padding-bottom:106px}
main{padding-bottom:122px}
@media(max-width:390px){.bottomNav{height:80px}.bottomNav button img{width:43px;height:43px}.bottomNav button span{font-size:11px}body{padding-bottom:102px}main{padding-bottom:118px}}

/* v0.5.0: the selected writing theme now colors the whole diary UI.
   Surfaces are mixed with the current light/dark palette so dark mode stays dark. */
:root[data-diary-theme="mint"]{--accent:#72ad8c}
:root[data-diary-theme="garden"]{--accent:#62a47d}
:root[data-diary-theme="lavender"]{--accent:#9a82c4}
:root[data-diary-theme="lavender_night"]{--accent:#8073b7}
:root[data-diary-theme="peach"]{--accent:#d99a69}
:root[data-diary-theme="bear"]{--accent:#c98a60}
:root[data-diary-theme="sky"]{--accent:#6f9fc4}
:root[data-diary-theme="duck"]{--accent:#72a8ba}
:root[data-diary-theme="pink"]{--accent:#cf7995}
:root[data-diary-theme="bunny"]{--accent:#d586a3}
:root[data-diary-theme="flower_street"]{--accent:#c97886}
:root[data-diary-theme="cat"]{--accent:#7d82bb}
:root[data-diary-theme="rooftop"]{--accent:#6876aa}
:root[data-diary-theme="rain_room"]{--accent:#708fa3}

body{
  background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 10%,var(--bg)),color-mix(in srgb,var(--accent) 4%,var(--bg))) fixed!important;
}
.appbar{
  background:color-mix(in srgb,var(--accent) 10%,var(--card) 90%)!important;
  border-bottom-color:color-mix(in srgb,var(--accent) 24%,var(--line))!important;
}
.diaryRecordCard,
.calendarRecord,
.calendarEntryCard,
.readerCard,
.settingCard{
  background-color:color-mix(in srgb,var(--accent) 8%,var(--card))!important;
  border-color:color-mix(in srgb,var(--accent) 24%,var(--line))!important;
  box-shadow:0 10px 26px color-mix(in srgb,var(--accent) 10%,transparent)!important;
}
.toolbar input,
.toolbar select{
  background:color-mix(in srgb,var(--accent) 5%,var(--card))!important;
  border-color:color-mix(in srgb,var(--accent) 22%,var(--line))!important;
}
.bottomNav{
  background:color-mix(in srgb,var(--accent) 13%,var(--card) 87%)!important;
  border-top-color:color-mix(in srgb,var(--accent) 30%,var(--line))!important;
  box-shadow:0 -7px 22px color-mix(in srgb,var(--accent) 9%,transparent);
}
.bottomNav button.active{
  color:var(--accent)!important;
  border-radius:18px!important;
  background:color-mix(in srgb,var(--accent) 13%,transparent)!important;
}

/* v0.6.1 soft bottom-tab transitions */
.view.active{opacity:1;transform:translateY(0)}
.view.tabLeaving{opacity:0;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease;pointer-events:none}
.view.active.tabEntering{opacity:0;transform:translateY(9px);transition:none}
.view.active:not(.tabEntering){transition:opacity .22s ease,transform .28s cubic-bezier(.22,.75,.28,1)}
.bottomNav button,.bottomNav button img{transition:transform .24s cubic-bezier(.22,.8,.28,1),color .2s ease,filter .2s ease}
.bottomNav button.tabBounce img{animation:tabIconBounce .34s cubic-bezier(.2,.9,.3,1)}
@keyframes tabIconBounce{0%{transform:scale(1)}48%{transform:scale(1.2)}100%{transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.view.tabLeaving,.view.active:not(.tabEntering),.bottomNav button,.bottomNav button img{transition-duration:.01ms!important}.bottomNav button.tabBounce img{animation:none}}

/* v0.4.2 emotional watercolor artwork in the fixed title bar */
.appbar{overflow:hidden;isolation:isolate}
.appbar>div,.appbar>button{position:relative;z-index:2}
.appbar #pageSub{display:table;max-width:100%;padding:2px 6px;margin:3px 0 0 -6px;border-radius:7px;color:color-mix(in srgb,var(--text) 82%,var(--sub))!important;background:color-mix(in srgb,var(--card) 72%,transparent);font-weight:650;text-shadow:0 1px 1px var(--card);backdrop-filter:blur(2px)}
:root[data-theme=dark] .appbar #pageSub{color:#f2eee8!important;background:rgba(22,27,29,.58);text-shadow:0 1px 2px rgba(0,0,0,.8)}
.headerArt{
  position:absolute;
  z-index:1;
  right:116px;
  top:50%;
  width:78px;
  height:58px;
  object-fit:contain;
  transform:translateY(-50%) rotate(-2deg);
  opacity:.72;
  pointer-events:none;
  user-select:none;
  filter:drop-shadow(0 3px 5px rgba(86,65,45,.1));
}
:root[data-theme=dark] .headerArt{opacity:.6;filter:brightness(1.08) drop-shadow(0 3px 6px rgba(0,0,0,.25))}
@media(max-width:390px){
  .headerArt{right:108px;width:62px;height:50px;opacity:.6}
  .appbar:has(#backBtn:not(.hidden)) .headerArt{width:54px;right:105px;opacity:.52}
}

/* v0.5.1: smaller editor controls and reliable inline-photo dragging */
#weatherPicker,#moodPicker{gap:6px!important;padding:5px 0 7px!important}
#weatherPicker .pick,#moodPicker .pick{
  flex:0 0 45px!important;
  width:45px!important;
  min-width:45px!important;
  height:46px!important;
  padding:5px!important;
  border-radius:11px!important;
}
#weatherPicker .pick span{font-size:20px!important}
.moodFace.picker{width:24px!important;height:24px!important;font-size:20px!important}
.moodPlus{width:24px!important;height:24px!important}
#editorView .title{font-size:21px!important;padding:10px 12px!important;margin-top:10px!important;border-radius:12px!important}
.bodyEditor .inlinePhoto,.bodyEditor .inlinePhoto img{-webkit-user-select:none!important;user-select:none!important;-webkit-user-drag:none!important}
.bodyEditor .inlinePhoto img{touch-action:none!important}
.bodyEditor .inlinePhoto.moving{opacity:.78;z-index:10;box-shadow:0 12px 28px rgba(0,0,0,.24)!important}
body.inlinePhotoDragging{overflow:hidden!important;overscroll-behavior:none!important}
body.inlinePhotoDragging .bodyEditor{touch-action:none!important}
#inlinePhotoDropMarker{height:4px;margin:7px 0;border-radius:999px;background:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 20%,transparent);pointer-events:none}

/* v0.5.2: keep weather focus ring visible and enlarge calendar moods by 10% */
#weatherPicker{padding-left:4px!important}
.moodFace.calendar{width:27.5px!important;height:27.5px!important}

/* v0.5.7: keep the mood-picker focus ring visible */
#moodPicker{padding-left:4px!important}
.appVersion{
  margin:22px 0 12px;
  text-align:center;
  color:var(--sub);
  font-size:12px;
  font-weight:600;
  opacity:.82;
}

/* v0.5.3: taller writing area and true free-position inline-photo dragging */
.bodyEditor .inlinePhoto[data-free-position="true"]{position:absolute!important;margin:0!important;z-index:3}
.bodyEditor .inlinePhoto[data-free-position="true"].selected,.bodyEditor .inlinePhoto[data-free-position="true"].moving{z-index:12}
.readerBody:has(.inlinePhoto[data-free-position="true"]){position:relative;min-height:390px}

/* v0.5.4: square delete button with the X optically centered */
.bodyEditor .inlinePhotoDelete{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  padding:0!important;
  border-radius:5px!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  font-size:0!important;
}
.bodyEditor .inlinePhoto.selected .inlinePhotoDelete{display:flex!important}
.bodyEditor .inlinePhotoDelete::before,
.bodyEditor .inlinePhotoDelete::after{
  content:'';
  position:absolute;
  left:50%;
  top:50%;
  width:20px;
  height:2px;
  border-radius:2px;
  background:#fff;
  transform-origin:center;
}
.bodyEditor .inlinePhotoDelete::before{transform:translate(-50%,-50%) rotate(45deg)}
.bodyEditor .inlinePhotoDelete::after{transform:translate(-50%,-50%) rotate(-45deg)}

/* v0.5.6: complete dark theme coverage in the diary editor */
:root[data-theme=dark] #editorView .editorBackdrop{
  color:var(--text)!important;
  background-color:color-mix(in srgb,var(--accent) 7%,var(--bg))!important;
  border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line))!important;
  box-shadow:0 12px 28px rgba(0,0,0,.24)!important;
}
:root[data-theme=dark] #editorView .editorBackdrop label,
:root[data-theme=dark] #editorView .editorBackdrop .pickerBlock,
:root[data-theme=dark] #editorView .editorBackdrop .pickerBlock b{
  color:var(--text)!important;
}
:root[data-theme=dark] #editorView .title,
:root[data-theme=dark] #editorView .bodyEditor,
:root[data-theme=dark] #editorView select,
:root[data-theme=dark] #editorView input{
  background:color-mix(in srgb,var(--accent) 6%,var(--card))!important;
  color:var(--text)!important;
  border-color:color-mix(in srgb,var(--accent) 25%,var(--line))!important;
}
:root[data-theme=dark] #editorView .title::placeholder,
:root[data-theme=dark] #editorView .bodyEditor:empty::before{
  color:var(--sub)!important;
  opacity:1!important;
}

/* v0.6.4: larger sticker artwork inside unchanged cells */
.stickerGrid .imageStickerBtn{padding:4px!important}
.stickerGrid .imageStickerBtn img{
  width:86.4%!important;
  height:86.4%!important;
  max-width:86.4%!important;
  max-height:86.4%!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* v0.6.4: five-item bottom navigation */
.bottomNav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.bottomNav button{min-width:0!important;padding-left:1px!important;padding-right:1px!important}
.bottomNav button img{width:41px;height:41px}
.bottomNav button span{font-size:11px}
@media(max-width:390px){.bottomNav button img{width:38px;height:38px}.bottomNav button span{font-size:10px}}

/* v0.6.7: make only the statistics tab icon 10% larger */
.bottomNav button[data-nav="statsView"] img{width:45.1px;height:45.1px}
@media(max-width:390px){.bottomNav button[data-nav="statsView"] img{width:41.8px;height:41.8px}}

/* v0.6.4: cute mood statistics */
.statsContent{display:grid;gap:14px;padding-bottom:20px}
.statsHello{display:flex;align-items:center;gap:13px;padding:4px 4px 2px}.statsHello small{color:var(--sub);font-weight:800}.statsHello h2{font-size:20px;margin:4px 0 0;line-height:1.35}.statsMascot{width:66px;height:66px;display:grid;place-items:center;border-radius:44% 56% 49% 51%/54% 45% 55% 46%;background:#fff2c8;box-shadow:inset 0 -4px 0 rgba(142,105,69,.08),0 7px 18px rgba(102,81,56,.12)}.statsMascot .moodFace{width:46px!important;height:46px!important}
.streakCard,.moodCountCard,.statsNote,.statsEmpty{background:var(--card);border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));border-radius:25px;box-shadow:0 8px 22px rgba(72,59,47,.08)}
.streakCard{padding:18px 16px 16px;overflow:hidden;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 9%,var(--card)),var(--card) 62%)}
.streakTitle{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.streakTitle small{display:block;color:var(--sub);font-weight:800}.streakTitle strong{display:block;margin-top:1px;font-size:37px;line-height:1;color:var(--text)}.streakTitle strong em{font-size:15px;font-style:normal;margin-left:3px}.streakTitle>span{padding:7px 10px;border-radius:999px;background:#fff4cf;color:#765f45;font-size:12px;font-weight:900}
.streakPath{display:flex;gap:5px;overflow-x:auto;padding:19px 2px 3px;scrollbar-width:none}.streakPath::-webkit-scrollbar{display:none}.streakDay{position:relative;flex:0 0 48px;display:grid;justify-items:center;gap:2px;z-index:1}.streakDay>span{width:41px;height:41px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--accent) 9%,var(--card));border:2px solid color-mix(in srgb,var(--accent) 42%,var(--line));z-index:2}.streakDay .moodFace.tiny{width:30px!important;height:30px!important}.streakDay b{font-size:12px}.streakDay small{font-size:10px;color:var(--sub)}.streakDay i{position:absolute;left:40px;top:20px;width:18px;height:3px;border-radius:3px;background:color-mix(in srgb,var(--accent) 42%,var(--line));z-index:0}
.moodCountCard{padding:18px 15px 16px}.statsCardHead{display:flex;align-items:center;justify-content:space-between}.statsCardHead small{color:var(--sub);font-weight:800}.statsCardHead h3{font-size:21px;margin:3px 0}.statsCardHead>span{font-size:30px}.moodGarden{height:190px;display:flex;align-items:flex-end;gap:7px;overflow-x:auto;padding:18px 3px 3px;border-bottom:3px solid #b9dda9;scrollbar-width:none;background:linear-gradient(transparent 74%,rgba(199,230,182,.22))}.moodGarden::-webkit-scrollbar{display:none}.moodStem{height:var(--grow);min-height:75px;flex:1 0 58px;max-width:72px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;animation:growMood .45s ease both;animation-delay:var(--delay)}.moodStem>b{font-size:12px;color:var(--sub);margin-bottom:3px}.moodStem>div{position:relative;display:grid;place-items:center}.moodStem>div::after{content:"";position:absolute;top:42px;width:3px;height:50px;background:#83be75;border-radius:4px;z-index:-1}.moodStem .moodFace{width:46px!important;height:46px!important}.moodStem small{margin-top:51px;font-size:11px;font-weight:800;white-space:nowrap}
.statsNote{display:flex;align-items:center;gap:12px;padding:15px 16px;background:linear-gradient(135deg,#fff1f5,var(--card))}.statsNote>span{font-size:31px}.statsNote p{margin:0;font-size:13px;line-height:1.55}.statsEmpty{text-align:center;padding:48px 24px}.statsEmpty>div{font-size:52px}.statsEmpty h2{font-size:21px}.statsEmpty p{color:var(--sub);line-height:1.6}
:root[data-theme=dark] .streakTitle>span{background:#594d37;color:#fff0bd}:root[data-theme=dark] .statsMascot{background:#514831}:root[data-theme=dark] .statsNote{background:linear-gradient(135deg,#392d35,var(--card))}
@keyframes growMood{from{height:30%;opacity:.35;transform:translateY(8px)}to{height:var(--grow);opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.moodStem{animation:none}}

/* v0.6.5: compact sticker caret points and one-line statistics headline */
.bodyEditor .bodyImageSticker,.bodyEditor .bodySticker{margin-left:0!important;margin-right:0!important}
.statsHello{min-width:0}
.statsHello>div:last-child{min-width:0;flex:1}
.statsHello h2{font-size:clamp(14.95px,4.3125vw,21.85px);white-space:nowrap;letter-spacing:-.055em;line-height:1.2}
@media(max-width:390px){.statsHello{gap:8px}.statsMascot{width:54px;height:54px}.statsMascot .moodFace{width:39px!important;height:39px!important}.statsHello h2{font-size:14.95px}}

/* v0.7.1: highlight today's calendar cell */
.day.today{outline:2px solid #f08fb2;outline-offset:1px;background:color-mix(in srgb,#f08fb2 10%,transparent)}
.day.today.selected{outline-color:#f08fb2;box-shadow:inset 0 0 0 2px var(--accent)}

/* v0.7.2: show every mood recorded on the same date */
.streakMoodStack{width:45px;min-height:41px;display:flex;align-items:center;justify-content:center;padding:3px 2px;border-radius:20px;background:color-mix(in srgb,var(--accent) 9%,var(--card));border:2px solid color-mix(in srgb,var(--accent) 42%,var(--line));z-index:2}
.streakMoodStack .moodFace.tiny{flex:0 0 27px;width:27px!important;height:27px!important;margin-left:-8px}
.streakMoodStack .moodFace.tiny:first-child{margin-left:0}
.streakDay:has(.streakMoodStack .moodFace:nth-child(3)){flex-basis:56px}.streakDay:has(.streakMoodStack .moodFace:nth-child(3)) .streakMoodStack{width:53px}

/* v0.7.3: secret diary */
.secretToggle{display:flex!important;align-items:center;gap:11px;width:100%;margin:4px 0 12px;padding:11px 14px!important;text-align:left;border-radius:18px!important;background:color-mix(in srgb,var(--accent) 7%,var(--card))!important;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line))!important;color:var(--text)!important}.secretToggle .secretKey{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:color-mix(in srgb,var(--accent) 13%,#fff);transition:transform .2s}.secretToggle .secretKey img{display:block;width:39px;height:39px;object-fit:contain}.secretToggle>span:last-child{display:grid;gap:2px}.secretToggle small{color:var(--sub);font-size:11px}.secretToggle.active{background:color-mix(in srgb,#f1b7cb 18%,var(--card))!important;border-color:#e7a0bc!important}.secretToggle.active .secretKey{transform:rotate(-12deg) scale(1.08);background:#ffe4ee}
.secretEntryCard{position:relative!important;min-height:142px!important;padding:15px!important;background:linear-gradient(145deg,color-mix(in srgb,#f5bfd2 18%,var(--card)),color-mix(in srgb,#d9c8f1 15%,var(--card)))!important;border:1.5px dashed color-mix(in srgb,#d68caa 65%,var(--line))!important}.secretCorner{position:absolute;right:10px;top:8px;width:52px;height:52px}.secretCorner img{display:block;width:100%;height:100%;object-fit:contain}.secretCardDate{font-size:12px;color:var(--sub)}.secretCardCenter{text-align:center;padding:2px 25px 2px}.secretCardKey{display:block!important;width:58px!important;height:58px!important;object-fit:contain!important;margin:0 auto!important}.secretCardCenter h3{margin:0 0 3px!important;font-size:18px!important}.secretCardCenter p{display:block!important;margin:0!important;color:var(--sub)!important;font-size:12px!important}.secretEntryCard.compact{min-height:98px!important}.secretEntryCard.compact .secretCardCenter{padding-top:0}.secretEntryCard.compact .secretCardKey{width:40px!important;height:40px!important}.secretEntryCard.compact .secretCardCenter p{display:none!important}
.secretModal{position:fixed;inset:0;z-index:150;display:grid;place-items:center;padding:18px 24px;background:rgba(38,31,42,.58);backdrop-filter:blur(4px);--secret-shift:0px}.secretModal.hidden{display:none}.secretModalCard{width:min(100%,350px);max-height:calc(100vh - 30px);overflow-y:auto;display:grid;gap:12px;padding:22px 21px 18px;border-radius:27px;background:var(--card);border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));box-shadow:0 20px 55px rgba(24,18,30,.27);text-align:center;transform:translateY(calc(-1 * var(--secret-shift)));transition:transform .22s ease}.secretModal.keyboardOpen .secretModalCard{gap:9px}.secretModalArt{height:68px}.secretModalArt img{display:block;width:68px;height:68px;object-fit:contain;margin:0 auto}.secretModalCard h2{margin:0;font-size:22px}.secretModalCard p{margin:0;color:var(--sub);font-size:13px;line-height:1.55}.secretModalCard input{height:48px;border-radius:15px;text-align:center;font-size:20px;letter-spacing:.15em;background:var(--bg);color:var(--text);border:1px solid var(--line)}.secretPasswordError{min-height:18px;color:#d85c72;font-size:12px}.secretModalActions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.calendarSecret{display:grid;place-items:center;font-size:21px;min-height:28px}
:root[data-theme=dark] .secretToggle.active .secretKey{background:#674959}.secretModalCard input:focus{outline:2px solid var(--accent);outline-offset:1px}

/* v0.7.5: password recovery */
.secretRecoveryFields{display:grid;gap:9px}.secretRecoveryFields select{height:46px;padding:0 13px;border-radius:15px;background:var(--bg);color:var(--text);border:1px solid var(--line);font-size:14px}.secretRecoveryFields input{font-size:16px;letter-spacing:0}.secretForgotButton{padding:2px 4px!important;background:transparent!important;border:0!important;color:var(--accent)!important;font-size:13px!important;text-decoration:underline;text-underline-offset:3px}.secretForgotButton.hidden{display:none!important}

/* v0.7.4: generated key artwork must not inherit diary photo spacing */
.secretCorner img{display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;margin:0!important;border-radius:0!important}

/* v0.8.0: secret diary mosaic reveal */
.readerCard.secretRevealReady>*{filter:blur(24px) saturate(.55);opacity:.28;transform:scale(.992)}
.readerCard.secretRevealReady:after,.readerCard.secretRevealing:after{content:'';position:absolute;z-index:8;inset:0;border-radius:inherit;pointer-events:none;background:color-mix(in srgb,var(--card) 36%,transparent);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.readerCard.secretRevealing>*{animation:secretContentReveal 1.35s cubic-bezier(.2,.72,.22,1) both}
.readerCard.secretRevealing:after{animation:secretBlurReveal 1.35s cubic-bezier(.2,.72,.22,1) forwards}
@keyframes secretContentReveal{0%{filter:blur(24px) saturate(.55);opacity:.28;transform:scale(.992)}55%{filter:blur(9px) saturate(.82);opacity:.72}100%{filter:blur(0) saturate(1);opacity:1;transform:scale(1)}}
@keyframes secretBlurReveal{0%{opacity:1;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}58%{opacity:.48;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}100%{opacity:0;backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0)}}
@media (prefers-reduced-motion:reduce){.readerCard.secretRevealing>*{animation:secretContentReveal .32s ease-out both}.readerCard.secretRevealing:after{animation:secretBlurReveal .32s ease-out forwards}}

/* v0.7.8: custom, animated Drive restore warning */
body.modalOpen{overflow:hidden}
.restoreWarningModal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:22px;background:rgba(28,24,34,.64);backdrop-filter:blur(7px);opacity:0;transition:opacity .22s ease}
.restoreWarningModal.hidden{display:none}.restoreWarningModal.show{opacity:1}
.restoreWarningCard{position:relative;width:min(100%,390px);overflow:hidden;padding:26px 22px 20px;text-align:center;color:var(--text);background:linear-gradient(160deg,color-mix(in srgb,var(--accent) 10%,var(--card)),var(--card) 48%,color-mix(in srgb,#f7d2df 12%,var(--card)));border:1.5px solid color-mix(in srgb,var(--accent) 32%,var(--line));border-radius:30px;box-shadow:0 24px 65px rgba(20,15,28,.3),inset 0 1px 0 rgba(255,255,255,.7);transform:translateY(28px) scale(.91);opacity:0;transition:transform .34s cubic-bezier(.2,1.25,.35,1),opacity .2s ease}
.restoreWarningModal.show .restoreWarningCard{transform:translateY(0) scale(1);opacity:1}
.restoreWarningArt{position:relative;width:94px;height:82px;margin:0 auto 7px;animation:restoreFloat 2.8s ease-in-out infinite}.restoreCloud{position:absolute;inset:0;display:grid;place-items:center;font-size:79px;line-height:1;color:color-mix(in srgb,var(--accent) 35%,#d9e5ff);filter:drop-shadow(0 7px 8px rgba(82,68,110,.15))}.restoreArrow{position:absolute;left:35px;top:29px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;font-size:26px;font-weight:900;line-height:1;color:#fff;background:var(--accent);box-shadow:0 3px 8px rgba(84,66,112,.2)}.restoreLock{position:absolute;right:1px;bottom:2px;display:grid;place-items:center;width:35px;height:35px;font-size:23px;border-radius:14px;background:#fff4c7;box-shadow:0 4px 10px rgba(91,68,35,.15);transform:rotate(6deg)}
.restoreWarningSpark{position:absolute;color:color-mix(in srgb,var(--accent) 72%,#fff);font-size:18px;animation:restoreTwinkle 1.8s ease-in-out infinite}.sparkOne{left:42px;top:32px}.sparkTwo{right:47px;top:65px;animation-delay:.65s;font-size:13px}
.restoreWarningBadge{display:inline-flex;margin:0 0 9px;padding:5px 11px;border-radius:999px;color:color-mix(in srgb,var(--accent) 82%,#503d57);background:color-mix(in srgb,var(--accent) 16%,var(--card));font-size:11px;font-weight:900;letter-spacing:.02em}.restoreWarningCard h2{margin:0 0 9px;font-size:23px;line-height:1.3}.restoreWarningCard>p{margin:0;color:var(--sub);font-size:15px;line-height:1.65}.restoreWarningCard>p strong{color:var(--text);font-size:16px}
.restoreSecretNotice{display:flex;align-items:center;justify-content:center;gap:10px;margin:16px 0;padding:12px 13px;border:1px dashed color-mix(in srgb,#dc829f 54%,var(--line));border-radius:17px;color:color-mix(in srgb,#bd567a 78%,var(--text));background:color-mix(in srgb,#ffd8e5 24%,var(--card));font-size:13px;line-height:1.45}.restoreSecretNotice span{font-size:25px}.restoreSecretNotice b{text-align:left}
.restoreWarningActions{display:grid;grid-template-columns:.72fr 1.55fr;gap:9px}.restoreWarningActions button{min-height:48px;border-radius:16px;font-size:14px;font-weight:900}.restoreWarningActions>button:first-child{color:var(--sub);background:color-mix(in srgb,var(--text) 4%,var(--card));border:1px solid var(--line)}.restoreConfirmButton{color:#fff!important;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 78%,#f08baa),var(--accent))!important;border:0!important;box-shadow:0 7px 15px color-mix(in srgb,var(--accent) 27%,transparent)}.restoreConfirmButton:active{transform:scale(.97)}
@keyframes restoreFloat{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}@keyframes restoreTwinkle{0%,100%{opacity:.25;transform:scale(.7) rotate(0)}50%{opacity:1;transform:scale(1.2) rotate(20deg)}}
:root[data-theme=dark] .restoreWarningCard{box-shadow:0 25px 70px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.07)}
@media(max-height:620px){.restoreWarningCard{padding-top:16px}.restoreWarningArt{width:76px;height:63px;margin-bottom:3px}.restoreCloud{font-size:62px}.restoreArrow{left:29px;top:22px;width:26px;height:26px;font-size:22px}.restoreLock{width:30px;height:30px;font-size:19px}.restoreSecretNotice{margin:10px 0;padding:9px}.restoreWarningActions button{min-height:44px}}

/* v0.9.8: centered animated Drive backup / restore status */
.driveProgressModal{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;padding:22px;background:rgba(28,24,34,.58);backdrop-filter:blur(7px);opacity:0;transition:opacity .22s ease}.driveProgressModal.show{opacity:1}.driveProgressCard{position:relative;width:min(100%,360px);overflow:hidden;padding:27px 22px 23px;text-align:center;color:var(--text);background:linear-gradient(155deg,color-mix(in srgb,var(--accent) 12%,var(--card)),var(--card) 52%,color-mix(in srgb,#cfe9ff 14%,var(--card)));border:1.5px solid color-mix(in srgb,var(--accent) 32%,var(--line));border-radius:30px;box-shadow:0 24px 65px rgba(20,15,28,.3),inset 0 1px 0 rgba(255,255,255,.72);transform:translateY(25px) scale(.92);opacity:0;transition:transform .34s cubic-bezier(.2,1.25,.35,1),opacity .2s ease}.driveProgressModal.show .driveProgressCard{transform:translateY(0) scale(1);opacity:1}.driveProgressArt{position:relative;width:108px;height:91px;margin:0 auto 8px;animation:driveFloat 2.7s ease-in-out infinite}.driveProgressCloud{position:absolute;inset:0;display:grid;place-items:center;font-size:88px;line-height:1;color:color-mix(in srgb,var(--accent) 31%,#d9eaff);filter:drop-shadow(0 7px 8px rgba(82,68,110,.15))}.driveProgressSymbol{position:absolute;left:39px;top:32px;display:grid;place-items:center;width:33px;height:33px;border-radius:50%;font-size:25px;font-weight:900;line-height:1;color:#fff;background:var(--accent);box-shadow:0 4px 9px rgba(84,66,112,.22);animation:driveSymbol 1.25s ease-in-out infinite}.driveProgressFriend{position:absolute;right:-1px;bottom:1px;display:grid;place-items:center;width:40px;height:40px;font-size:25px;border-radius:15px;background:#fff4c7;box-shadow:0 5px 11px rgba(91,68,35,.16);transform:rotate(5deg)}.driveProgressOrbit{position:absolute;left:18px;top:13px;width:72px;height:63px;border:2px dashed color-mix(in srgb,var(--accent) 38%,transparent);border-radius:50%;animation:driveOrbit 5s linear infinite}.driveProgressSpark{position:absolute;color:color-mix(in srgb,var(--accent) 72%,#fff);font-size:18px;animation:restoreTwinkle 1.7s ease-in-out infinite}.driveSparkOne{left:39px;top:34px}.driveSparkTwo{right:42px;top:63px;animation-delay:.6s;font-size:13px}.driveProgressBadge{display:inline-flex;margin:0 0 9px;padding:5px 11px;border-radius:999px;color:color-mix(in srgb,var(--accent) 82%,#503d57);background:color-mix(in srgb,var(--accent) 16%,var(--card));font-size:11px;font-weight:900}.driveProgressCard h2{margin:0 0 8px;font-size:22px;line-height:1.38}.driveProgressCard>p{margin:0;color:var(--sub);font-size:14px;line-height:1.6}.driveProgressDots{display:flex;justify-content:center;gap:7px;height:28px;padding-top:14px}.driveProgressDots i{width:7px;height:7px;border-radius:50%;background:var(--accent);animation:driveDot 1.15s ease-in-out infinite}.driveProgressDots i:nth-child(2){animation-delay:.16s}.driveProgressDots i:nth-child(3){animation-delay:.32s}.driveProgressActions{display:grid;grid-template-columns:.8fr 1.2fr;gap:9px;margin-top:18px}.driveProgressActions button{min-height:47px;border-radius:16px}.driveProgressCard.success .driveProgressSymbol{background:#57b884;animation:driveSuccess .55s cubic-bezier(.2,1.5,.4,1) both}.driveProgressCard.success .driveProgressCloud{color:#dff5e9}.driveProgressCard.success .driveProgressOrbit,.driveProgressCard.error .driveProgressOrbit{display:none}.driveProgressCard.success .driveProgressDots,.driveProgressCard.error .driveProgressDots{display:none}.driveProgressCard.error{border-color:color-mix(in srgb,#df6c78 42%,var(--line));background:linear-gradient(155deg,color-mix(in srgb,#ffd8de 18%,var(--card)),var(--card))}.driveProgressCard.error .driveProgressSymbol{background:#df6c78;animation:driveError .4s ease both}.driveProgressCard.error .driveProgressFriend{background:#ffe3e0}.driveProgressCard button:active{transform:scale(.97)}:root[data-theme=dark] .driveProgressCard{box-shadow:0 25px 70px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.07)}
@keyframes driveFloat{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6px) rotate(1deg)}}@keyframes driveSymbol{0%,100%{transform:translateY(3px)}50%{transform:translateY(-3px)}}@keyframes driveOrbit{to{transform:rotate(360deg)}}@keyframes driveDot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-5px)}}@keyframes driveSuccess{0%{transform:scale(.45) rotate(-20deg)}100%{transform:scale(1) rotate(0)}}@keyframes driveError{0%,100%{transform:translateX(0)}35%{transform:translateX(-4px)}70%{transform:translateX(4px)}}
@media(max-height:620px){.driveProgressCard{padding-top:17px}.driveProgressArt{width:91px;height:73px}.driveProgressCloud{font-size:70px}.driveProgressSymbol{left:33px;top:25px;width:28px;height:28px;font-size:21px}.driveProgressFriend{width:34px;height:34px;font-size:21px}.driveProgressOrbit{left:15px;top:10px;width:61px;height:52px}}

/* v0.9.1: balanced dark treatment for the illustrated top and bottom bars */
:root[data-theme=dark] .appbar{
  background:color-mix(in srgb,var(--card) 84%,#10141a 16%)!important;
  border-bottom-color:rgba(255,255,255,.13)!important;
}
:root[data-theme=dark] .appbar::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:rgba(10,14,19,.32);
}
:root[data-theme=dark] .appbar>div,
:root[data-theme=dark] .appbar>button{position:relative;z-index:3!important}
:root[data-theme=dark] .appbar #pageTitle{
  color:#fffaf3!important;
  text-shadow:0 2px 5px rgba(0,0,0,.92),0 0 2px rgba(0,0,0,.75);
}
:root[data-theme=dark] .appbar #pageSub{
  color:#fffaf3!important;
  background:rgba(12,16,21,.76)!important;
  box-shadow:0 1px 4px rgba(0,0,0,.28);
  text-shadow:0 1px 2px #000!important;
}
:root[data-theme=dark] .headerArt{z-index:0!important;filter:brightness(.82) saturate(.92) drop-shadow(0 3px 6px rgba(0,0,0,.3))}
:root[data-theme=dark] .headerArt.countryHeaderBackdrop{
  opacity:.9!important;
  filter:brightness(.8) saturate(1.12) contrast(1.16)!important;
}
:root[data-theme=dark] .bottomNav{
  background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 12%,#222a31 88%),#1b2229)!important;
  border-top-color:rgba(255,255,255,.14)!important;
  box-shadow:0 -7px 20px rgba(0,0,0,.24);
}
:root[data-theme=dark][data-diary-theme^="country_"] .bottomNav{
  background:linear-gradient(180deg,color-mix(in srgb,var(--country-soft) 18%,#273039 82%),color-mix(in srgb,var(--accent) 10%,#182027 90%))!important;
  border-top-color:color-mix(in srgb,var(--accent) 35%,rgba(255,255,255,.13))!important;
}
:root[data-theme=dark] .bottomNav button{color:#d8d1c8!important}
:root[data-theme=dark] .bottomNav button.active{color:#fffaf3!important}
:root[data-theme=dark] .bottomNav button img{filter:brightness(.86) saturate(.9)!important}
:root[data-theme=dark][data-diary-theme^="country_"] .bottomNav button img{filter:brightness(.87) saturate(.94)!important}
:root[data-theme=dark][data-diary-theme^="country_"] .bottomNav button.active img{filter:brightness(.98) saturate(1.04) drop-shadow(0 3px 5px rgba(0,0,0,.35))!important}

/* v0.9.11: country-themed attendance postcard and animal stamp. */
.attendanceCelebration{--attendance-ink:#c86661;position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:22px;background:rgba(31,25,35,.22);backdrop-filter:blur(2px);overflow:hidden}.attendanceCard{position:relative;width:min(88vw,370px);min-height:238px;overflow:hidden;padding:28px 23px;border:2px solid color-mix(in srgb,var(--attendance-ink) 35%,#fff);border-radius:28px;background:linear-gradient(145deg,rgba(255,252,241,.97),rgba(255,244,224,.98));box-shadow:0 24px 60px rgba(34,25,42,.3);transform:translateX(125vw) rotate(8deg)}.attendanceCelebration.play .attendanceCard{animation:attendanceCardIn .72s cubic-bezier(.16,1.25,.32,1) forwards}.attendancePostcardArt{position:absolute;inset:0;opacity:.12;background-position:center;background-size:cover;filter:saturate(.8)}.attendanceCelebration[data-country=korea] .attendancePostcardArt{background-image:url('country_headers/korea.webp')}.attendanceCelebration[data-country=japan] .attendancePostcardArt{background-image:url('country_headers/japan.webp')}.attendanceCelebration[data-country=usa] .attendancePostcardArt{background-image:url('country_headers/usa.webp')}.attendanceCelebration[data-country=france] .attendancePostcardArt{background-image:url('country_headers/france.webp')}.attendanceCelebration[data-country=china] .attendancePostcardArt{background-image:url('country_headers/china.webp')}.attendanceCard::after{content:"";position:absolute;inset:11px;border:1px dashed color-mix(in srgb,var(--attendance-ink) 35%,transparent);border-radius:20px;pointer-events:none}.attendanceCardCopy{position:relative;z-index:2;width:68%}.attendanceCardCopy small{display:block;margin-bottom:16px;color:var(--attendance-ink);font-size:11px;font-weight:900;letter-spacing:.15em}.attendanceCardCopy h2{margin:0;color:#493f3a;font-size:20px;line-height:1.45}.attendanceCardCopy p{margin:12px 0 0;color:#766960;font-size:13px;font-weight:800}.attendanceStamp{position:absolute;left:50%;top:50%;z-index:6;width:128px;height:157px;transform:translate(42px,-340px) rotate(12deg);filter:drop-shadow(0 12px 9px rgba(34,20,30,.22));pointer-events:none}.attendanceHandle{position:absolute;left:16px;top:0;width:96px;height:104px;display:grid;place-items:center;border-radius:48px 48px 25px 25px;background:linear-gradient(145deg,#fff7df,#e5c69a);border:4px solid #b99364;box-shadow:inset 0 3px 4px #fff}.attendanceHandle img{width:82px;height:82px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(0,0,0,.15))}.attendanceStampBase{position:absolute;left:7px;bottom:4px;width:114px;height:48px;border-radius:18px 18px 9px 9px;background:linear-gradient(#9b6c48,#71452f);border:5px solid #573523}.attendanceStampBase::after{content:"";position:absolute;left:4px;right:4px;bottom:-8px;height:14px;border-radius:50%;background:var(--attendance-ink)}.attendanceCelebration.play .attendanceStamp{animation:attendanceStampPress 1.52s .73s cubic-bezier(.2,.8,.25,1) both}.attendanceInk{position:absolute;right:19px;bottom:22px;z-index:3;width:124px;height:124px;display:grid;place-items:center;color:var(--attendance-ink);opacity:0;transform:scale(1.35) rotate(-9deg)}.attendanceInk img{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 0 0 var(--attendance-ink))}.attendanceInk span{position:relative;z-index:1;max-width:72px;padding:4px 3px;border-top:2px solid currentColor;border-bottom:2px solid currentColor;font-size:16px;font-weight:1000;line-height:1.05;text-align:center}.attendanceCelebration.play .attendanceInk{animation:attendanceInkAppear .34s 1.48s cubic-bezier(.2,1.5,.4,1) forwards}.attendanceSparkles{position:absolute;right:5px;bottom:2px;z-index:4;width:165px;height:165px;pointer-events:none}.attendanceSparkles i{position:absolute;color:var(--attendance-ink);font-style:normal;opacity:0}.attendanceSparkles i:nth-child(1){left:5px;top:61px}.attendanceSparkles i:nth-child(2){right:8px;top:33px}.attendanceSparkles i:nth-child(3){left:62px;top:4px}.attendanceSparkles i:nth-child(4){right:27px;bottom:3px}.attendanceCelebration.play .attendanceSparkles i{animation:attendanceSpark .7s 1.45s ease-out both}.attendanceCelebration.play .attendanceSparkles i:nth-child(2){animation-delay:1.52s}.attendanceCelebration.play .attendanceSparkles i:nth-child(3){animation-delay:1.59s}.attendanceCelebration.play .attendanceSparkles i:nth-child(4){animation-delay:1.66s}.attendanceCelebration.leaving{animation:attendanceOverlayOut .4s ease forwards}.attendanceCelebration.leaving .attendanceCard{animation:attendanceCardOut .4s ease-in forwards}.attendanceCelebration.leaving .attendanceStamp{display:none}:root[data-theme=dark] .attendanceCard{background:linear-gradient(145deg,#393731,#292927);border-color:color-mix(in srgb,var(--attendance-ink) 58%,#555)}:root[data-theme=dark] .attendanceCardCopy h2{color:#fff7e9}:root[data-theme=dark] .attendanceCardCopy p{color:#ddd1c2}
@keyframes attendanceCardIn{0%{transform:translateX(125vw) rotate(8deg)}72%{transform:translateX(-12px) rotate(-2deg)}100%{transform:translateX(0) rotate(0)}}@keyframes attendanceStampPress{0%{transform:translate(42px,-340px) rotate(12deg)}48%{transform:translate(42px,-18px) rotate(-5deg)}60%{transform:translate(42px,-4px) rotate(-5deg) scaleY(.92)}71%{transform:translate(42px,-25px) rotate(-5deg)}100%{transform:translate(160px,-330px) rotate(18deg) scale(.72);opacity:0}}@keyframes attendanceInkAppear{0%{opacity:0;transform:scale(1.35) rotate(-9deg)}100%{opacity:.9;transform:scale(1) rotate(-6deg)}}@keyframes attendanceSpark{0%{opacity:0;transform:scale(.25)}45%{opacity:1;transform:scale(1.4)}100%{opacity:0;transform:translateY(-17px) scale(.7)}}@keyframes attendanceCardOut{to{transform:translateY(90vh) rotate(-7deg);opacity:0}}@keyframes attendanceOverlayOut{to{background:transparent;backdrop-filter:blur(0)}}
@media (prefers-reduced-motion:reduce){.attendanceCelebration.play .attendanceCard{animation-duration:.01s}.attendanceCelebration.play .attendanceStamp{display:none}.attendanceCelebration.play .attendanceInk{animation-delay:.05s}}

/* v0.9.3: keep every title-bar label on one line */
.appbar>div{min-width:0;overflow:hidden}
.appbar #pageTitle,
.appbar #pageSub{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:visible;
  line-height:1.18;
}

/* v0.9.6: align weather and mood artwork in diary-list metadata */
.diaryRecordCard .recordMeta{
  min-height:28px;
  gap:6px!important;
  align-items:center!important;
}
.diaryRecordCard .recordDate{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  line-height:1;
}
.diaryRecordCard .recordStatusIcon{
  display:inline-flex!important;
  flex:0 0 28px;
  width:28px!important;
  height:28px!important;
  align-items:center;
  justify-content:center;
  overflow:visible;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  vertical-align:middle;
}
.diaryRecordCard .recordStatusIcon.weatherBadge{
  font-family:system-ui,"Noto Color Emoji","Apple Color Emoji",sans-serif;
  font-size:23px!important;
  line-height:28px!important;
}
.diaryRecordCard .recordStatusIcon.moodBadge .moodFace.tiny{
  display:flex!important;
  width:28px!important;
  height:28px!important;
  align-items:center;
  justify-content:center;
  margin:0!important;
  transform:none!important;
}
.diaryRecordCard .recordStatusIcon.moodBadge .moodFace.tiny img{
  display:block;
  width:28px!important;
  height:28px!important;
  max-height:none!important;
  margin:0!important;
  object-fit:contain;
  border-radius:0!important;
}
.diaryRecordCard.compact .recordStatusIcon,
.diaryRecordCard.compact .recordStatusIcon .moodFace{transform:none!important}

/* v0.9.7: tune only the system/default mood emoji by screen */
.moodGarden .moodFace.defaultMoodEmoji{
  font-size:24px!important; /* previous 16px × 1.5 */
}
.diaryRecordCard .recordStatusIcon.moodBadge .moodFace.defaultMoodEmoji.tiny{
  font-size:20.7px!important; /* previous 23px × 0.9 */
  line-height:1!important;
}
.appbar #pageSub{
  width:max-content;
  font-size:12px;
  letter-spacing:-.025em;
}
@media(max-width:390px){
  .appbar{gap:8px;padding-left:12px;padding-right:12px}
  .appbar #pageSub{padding-left:4px;padding-right:4px;margin-left:-4px}
}

/* v0.9.12: stronger stamp impact and tap-to-dismiss attendance card. */
.attendanceCelebration.play .attendanceCard{animation:attendanceCardIn .72s cubic-bezier(.16,1.25,.32,1) forwards,attendanceCardThump .3s 1.56s cubic-bezier(.2,.8,.25,1) both}
.attendanceDismissHint{position:absolute;left:0;right:0;bottom:9px;z-index:5;margin:0;color:#8b7b70;font-size:11px;font-weight:800;text-align:center;opacity:0}
.attendanceCelebration.canDismiss .attendanceDismissHint{animation:attendanceHintIn .45s ease forwards}
:root[data-theme=dark] .attendanceDismissHint{color:#cfc2b4}
@keyframes attendanceCardThump{0%,100%{transform:translateY(0) scale(1)}42%{transform:translateY(7px) scale(.965,.94)}72%{transform:translateY(-3px) scale(1.015,1.025)}}
@keyframes attendanceHintIn{from{opacity:0;transform:translateY(4px)}to{opacity:.78;transform:translateY(0)}}

/* v0.9.13: diagonal animal stamp, readable large imprint, impact pause and right exit. */
.attendanceStamp{width:154px;height:166px;transform:translate(38px,-360px) rotate(15deg);transform-origin:50% 88%;filter:drop-shadow(0 15px 10px rgba(34,20,30,.27))}
.attendanceHandle{left:54px;top:3px;width:76px;height:105px;border-radius:40px 40px 25px 25px;transform:rotate(24deg) skewY(-5deg);background:linear-gradient(135deg,#fff9e7 0 28%,#e9c99b 29% 72%,#c99a64 73%);border:4px solid #9b7047;box-shadow:inset 5px 5px 5px rgba(255,255,255,.8),inset -4px -5px 5px rgba(112,68,35,.16)}
.attendanceHandle::after{content:"";position:absolute;left:-18px;bottom:-12px;width:91px;height:43px;border-radius:16px 16px 9px 9px;background:linear-gradient(145deg,#d8ad79,#9b6844);border:4px solid #70472f;z-index:-1}
.attendanceHandle img{width:65px;height:65px;transform:rotate(-20deg);filter:drop-shadow(0 3px 2px rgba(0,0,0,.15))}
.attendanceStampBase{left:13px;bottom:5px;width:128px;height:45px;border-radius:12px 19px 8px 11px;transform:skewX(-13deg);background:linear-gradient(155deg,#ba875d 0 45%,#70452e 46%);border:5px solid #553321;box-shadow:inset 7px 4px 0 rgba(255,255,255,.16)}
.attendanceStampBase::after{left:3px;right:3px;bottom:-10px;height:15px;transform:skewX(13deg);background:var(--attendance-ink)}
.attendanceInk{right:10px;bottom:16px;width:154px;height:154px;transform:scale(1.32) rotate(-8deg)}
.attendanceInk span{max-width:82px;padding:4px 5px;border:0;font-size:22px;letter-spacing:.08em;white-space:nowrap;text-shadow:0 0 .4px currentColor}
.attendanceCelebration.play .attendanceStamp{animation:attendanceStampPressV13 2.08s .73s cubic-bezier(.2,.8,.25,1) both}
.attendanceCelebration.play .attendanceInk{animation:attendanceInkAppearV13 .28s 1.52s cubic-bezier(.2,1.35,.4,1) forwards}
.attendanceCelebration.play .attendanceCard{animation:attendanceCardIn .72s cubic-bezier(.16,1.25,.32,1) forwards,attendanceCardThumpV13 .36s 1.48s cubic-bezier(.2,.8,.25,1) both}
@keyframes attendanceStampPressV13{0%{transform:translate(38px,-360px) rotate(15deg)}42%{transform:translate(38px,-18px) rotate(-7deg)}50%,62%{transform:translate(38px,-3px) rotate(-7deg) scaleY(.93)}75%{transform:translate(40px,-78px) rotate(2deg)}100%{transform:translate(250px,-155px) rotate(20deg) scale(.86);opacity:0}}
@keyframes attendanceInkAppearV13{0%{opacity:0;transform:scale(1.32) rotate(-8deg)}100%{opacity:.92;transform:scale(1) rotate(-6deg)}}
@keyframes attendanceCardThumpV13{0%,100%{transform:translateY(0) scale(1)}38%,64%{transform:translateY(8px) scale(.965,.935)}82%{transform:translateY(-3px) scale(1.012,1.02)}}

/* v0.9.14: themed diary-delete dialog and lifted stamp exit. */
.attendanceCelebration.play .attendanceStamp{animation:attendanceStampPressV14 2.34s .73s cubic-bezier(.2,.8,.25,1) both}
@keyframes attendanceStampPressV14{
  0%{transform:translate(38px,-360px) rotate(15deg);opacity:1}
  38%{transform:translate(38px,-22px) rotate(-7deg);opacity:1}
  46%,61%{transform:translate(38px,-3px) rotate(-7deg) scaleY(.93);opacity:1}
  73%{transform:translate(38px,-96px) rotate(1deg) scale(1);opacity:1}
  82%{transform:translate(76px,-132px) rotate(7deg) scale(.98);opacity:1}
  100%{transform:translate(330px,-170px) rotate(22deg) scale(.82);opacity:0}
}
.deleteDiaryModal{--delete-accent:#c86661;position:fixed;inset:0;z-index:1550;display:grid;place-items:center;padding:24px;background:rgba(34,29,35,.42);backdrop-filter:blur(3px);opacity:0;transition:opacity .22s ease}
.deleteDiaryModal.open{opacity:1}.deleteDiaryModal.closing{opacity:0}
.deleteDiaryCard{position:relative;width:min(88vw,350px);overflow:hidden;padding:27px 23px 23px;border:2px solid color-mix(in srgb,var(--delete-accent) 30%,#fff);border-radius:30px;background:linear-gradient(150deg,rgba(255,253,246,.99),rgba(255,243,226,.99));box-shadow:0 24px 64px rgba(34,23,38,.32);text-align:center;transform:translateY(18px) scale(.92);transition:transform .3s cubic-bezier(.18,1.25,.3,1)}
.deleteDiaryModal.open .deleteDiaryCard{transform:translateY(0) scale(1)}
.deleteDiaryCard::before{content:"";position:absolute;inset:10px;border:1px dashed color-mix(in srgb,var(--delete-accent) 34%,transparent);border-radius:21px;pointer-events:none}
.deleteDiaryPostcardArt{position:absolute;inset:0;opacity:.075;background-position:center;background-size:cover;pointer-events:none}
.deleteDiaryModal[data-country=korea] .deleteDiaryPostcardArt{background-image:url('country_headers/korea.webp')}.deleteDiaryModal[data-country=japan] .deleteDiaryPostcardArt{background-image:url('country_headers/japan.webp')}.deleteDiaryModal[data-country=usa] .deleteDiaryPostcardArt{background-image:url('country_headers/usa.webp')}.deleteDiaryModal[data-country=france] .deleteDiaryPostcardArt{background-image:url('country_headers/france.webp')}.deleteDiaryModal[data-country=china] .deleteDiaryPostcardArt{background-image:url('country_headers/china.webp')}
.deleteDiaryPicture{position:relative;z-index:1;width:86px;height:72px;margin:0 auto 9px}.deleteDiaryBook{display:grid;place-items:center;width:72px;height:64px;margin:auto;border-radius:23px;background:color-mix(in srgb,var(--delete-accent) 13%,#fff);box-shadow:0 7px 18px color-mix(in srgb,var(--delete-accent) 15%,transparent);transform:rotate(-4deg)}.deleteDiaryBook img{width:54px;height:54px;object-fit:contain}.deleteDiaryHeart{position:absolute;right:0;top:-5px;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#fff;color:var(--delete-accent);font-size:15px;box-shadow:0 4px 10px rgba(55,36,45,.16);animation:deleteHeartBeat 1.5s ease-in-out infinite}
.deleteDiaryCard h2{position:relative;z-index:1;margin:5px 0 7px;color:#413a38;font-size:21px;letter-spacing:-.04em}.deleteDiaryCard>p{position:relative;z-index:1;margin:0;color:#7b6e67;font-size:13px;font-weight:700;line-height:1.65}
.deleteDiaryActions{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:21px}.deleteDiaryActions button{min-height:58px;border-radius:19px;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:inherit;box-shadow:0 6px 14px rgba(47,34,40,.12);transition:transform .12s ease,filter .12s ease}.deleteDiaryActions button:active{transform:translateY(2px) scale(.97);filter:brightness(.97)}.deleteDiaryActions span{font-size:17px;font-weight:1000}.deleteDiaryActions small{font-size:10px;font-weight:800;opacity:.72}.deleteDiaryNo{background:color-mix(in srgb,var(--delete-accent) 11%,#fff);color:color-mix(in srgb,var(--delete-accent) 60%,#544)}.deleteDiaryYes{background:linear-gradient(145deg,color-mix(in srgb,var(--delete-accent) 82%,#fff),var(--delete-accent));color:#fff}
:root[data-theme=dark] .deleteDiaryCard{background:linear-gradient(150deg,#393733,#292826);border-color:color-mix(in srgb,var(--delete-accent) 58%,#555)}:root[data-theme=dark] .deleteDiaryCard h2{color:#fff8ec}:root[data-theme=dark] .deleteDiaryCard>p{color:#d5c8bc}:root[data-theme=dark] .deleteDiaryNo{background:color-mix(in srgb,var(--delete-accent) 22%,#35322f);color:#fff0e6}
@keyframes deleteHeartBeat{0%,100%{transform:scale(1)}45%{transform:scale(1.13)}}

/* v0.9.15: readable attendance progress and keyboard-safe title editing. */
.attendanceCardCopy #attendanceProgress{display:grid;gap:3px;line-height:1.35}
.attendanceCardCopy #attendanceProgress span{display:block;white-space:nowrap}
.attendanceStreakProgress{font-size:12px;color:color-mix(in srgb,var(--attendance-ink) 72%,#665);font-weight:900}

/* v0.9.18: centered imprint copy and right-side diagonal stamp motion. */
.attendanceStamp{
  width:174px;height:156px;
  transform:translate(390px,-20px) rotate(24deg) rotateX(7deg);
  transform-origin:50% 82%;
  filter:drop-shadow(-8px 14px 10px rgba(34,20,30,.28));
}
.attendanceHandle{
  left:65px;top:0;width:75px;height:100px;
  border-radius:44px 44px 24px 24px;
  transform:rotate(31deg) skewY(-7deg);
  background:linear-gradient(132deg,#fffbed 0 22%,#efcf9e 23% 58%,#bd8653 59% 100%);
  box-shadow:inset 7px 6px 5px rgba(255,255,255,.82),inset -7px -8px 7px rgba(91,50,27,.2),-5px 8px 7px rgba(70,40,25,.13);
}
.attendanceHandle::after{
  left:-25px;bottom:-11px;width:105px;height:42px;
  transform:skewX(-10deg);
  background:linear-gradient(150deg,#e3bd87 0 42%,#a66d42 43% 100%);
}
.attendanceHandle img{width:62px;height:62px;transform:rotate(-27deg)}
.attendanceStampBase{
  left:9px;bottom:0;width:146px;height:48px;
  border-radius:15px 24px 9px 13px;
  transform:skewX(-18deg) rotate(-2deg);
  background:linear-gradient(150deg,#d5a270 0 34%,#98603b 35% 69%,#633923 70%);
  box-shadow:inset 9px 5px 0 rgba(255,255,255,.17),-7px 8px 0 rgba(72,43,29,.15);
}
.attendanceStampBase::before{content:"";position:absolute;left:15px;right:7px;top:8px;height:8px;border-radius:50%;background:rgba(255,231,191,.26)}
.attendanceStampBase::after{bottom:-9px;height:16px;transform:skewX(18deg);box-shadow:0 4px 4px rgba(54,28,25,.2)}
.attendanceInk{right:10px;bottom:16px;width:154px;height:154px;display:block}
.attendanceInk img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.attendanceInk span{
  position:absolute;left:50%;top:50%;z-index:2;
  width:auto;max-width:none;margin:0;padding:0;border:0;
  transform:translate(-50%,-50%);
  font-size:23px;line-height:1;letter-spacing:.08em;white-space:nowrap;text-align:center;
}
.attendanceCelebration.play .attendanceStamp{animation:attendanceStampRightV18 2.62s .73s cubic-bezier(.2,.78,.22,1) both}
.attendanceCelebration.play .attendanceInk{animation:attendanceInkAppearV13 .28s 1.62s cubic-bezier(.2,1.35,.4,1) forwards}
.attendanceCelebration.play .attendanceCard{animation:attendanceCardIn .72s cubic-bezier(.16,1.25,.32,1) forwards,attendanceCardThumpV18 .42s 1.57s cubic-bezier(.18,.8,.24,1) both}
@keyframes attendanceStampRightV18{
  0%{transform:translate(390px,-20px) rotate(24deg) rotateX(7deg);opacity:0}
  10%{opacity:1}
  38%{transform:translate(48px,-20px) rotate(-8deg) rotateX(7deg);opacity:1}
  47%{transform:translate(38px,-3px) rotate(-8deg) rotateX(7deg) scaleY(.92);opacity:1}
  60%{transform:translate(38px,-3px) rotate(-8deg) rotateX(7deg) scaleY(.92);opacity:1}
  69%{transform:translate(43px,-82px) rotate(2deg) rotateX(7deg) scale(1);opacity:1}
  78%{transform:translate(92px,-104px) rotate(9deg) rotateX(7deg) scale(.98);opacity:1}
  100%{transform:translate(410px,-104px) rotate(25deg) rotateX(7deg) scale(.86);opacity:0}
}
@keyframes attendanceCardThumpV18{0%,100%{transform:translateY(0) scale(1)}35%,62%{transform:translateY(8px) scale(.965,.935)}80%{transform:translateY(-3px) scale(1.012,1.02)}}

/* v0.9.19: the themed animal is the stamp body itself; optical imprint centering. */
.attendanceStamp{width:210px;height:190px;display:grid;place-items:end center;transform-origin:52% 86%;filter:drop-shadow(-9px 15px 10px rgba(34,20,30,.3))}
.attendanceStampAnimal{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;transform:rotate(-7deg);transform-origin:50% 88%}
.attendanceHandle,.attendanceStampBase{display:none!important}
.attendanceInk span{left:calc(50% + var(--attendance-ink-x,0px));top:calc(50% + var(--attendance-ink-y,-2px));transform:translate(-50%,-50%);font-size:24px;font-weight:1000;line-height:.9}
.attendanceCelebration.play .attendanceStamp{animation:attendanceAnimalStampRightV19 2.78s .73s cubic-bezier(.2,.78,.22,1) both}
.attendanceCelebration.play .attendanceInk{animation:attendanceInkAppearV13 .3s 1.72s cubic-bezier(.2,1.35,.4,1) forwards}
.attendanceCelebration.play .attendanceCard{animation:attendanceCardIn .72s cubic-bezier(.16,1.25,.32,1) forwards,attendanceCardThumpV18 .42s 1.67s cubic-bezier(.18,.8,.24,1) both}
@keyframes attendanceAnimalStampRightV19{
  0%{transform:translate(430px,-36px) rotate(17deg) scale(.94);opacity:0}
  10%{opacity:1}
  38%{transform:translate(52px,-30px) rotate(-5deg) scale(1);opacity:1}
  48%{transform:translate(36px,-3px) rotate(-7deg) scale(1.035,.93);opacity:1}
  61%{transform:translate(36px,-3px) rotate(-7deg) scale(1.035,.93);opacity:1}
  70%{transform:translate(44px,-88px) rotate(1deg) scale(1);opacity:1}
  80%{transform:translate(105px,-108px) rotate(8deg) scale(.98);opacity:1}
  100%{transform:translate(440px,-112px) rotate(21deg) scale(.86);opacity:0}
}

/* v0.9.20: raise the complete animal stamp so its red face meets the imprint center. */
.attendanceCelebration.play .attendanceStamp{animation:attendanceAnimalStampRightV20 2.78s .73s cubic-bezier(.2,.78,.22,1) both}
@keyframes attendanceAnimalStampRightV20{
  0%{transform:translate(430px,-96px) rotate(17deg) scale(.94);opacity:0}
  10%{opacity:1}
  38%{transform:translate(52px,-90px) rotate(-5deg) scale(1);opacity:1}
  48%{transform:translate(36px,-63px) rotate(-7deg) scale(1.035,.93);opacity:1}
  61%{transform:translate(36px,-63px) rotate(-7deg) scale(1.035,.93);opacity:1}
  70%{transform:translate(44px,-148px) rotate(1deg) scale(1);opacity:1}
  80%{transform:translate(105px,-168px) rotate(8deg) scale(.98);opacity:1}
  100%{transform:translate(440px,-172px) rotate(21deg) scale(.86);opacity:0}
}

/* v0.9.21: anchor the red stamp face to the actual center of the visible imprint. */
.attendanceCelebration{--stamp-hit-x:-8px;--stamp-hit-y:-146px}
.attendanceCelebration.play .attendanceStamp{animation:attendanceAnimalStampRightV21 2.78s .73s cubic-bezier(.2,.78,.22,1) both}
@keyframes attendanceAnimalStampRightV21{
  0%{transform:translate(calc(var(--stamp-hit-x) + 430px),calc(var(--stamp-hit-y) - 28px)) rotate(17deg) scale(.94);opacity:0}
  10%{opacity:1}
  38%{transform:translate(calc(var(--stamp-hit-x) + 16px),calc(var(--stamp-hit-y) - 24px)) rotate(-5deg) scale(1);opacity:1}
  48%{transform:translate(var(--stamp-hit-x),var(--stamp-hit-y)) rotate(-7deg) scale(1.035,.93);opacity:1}
  61%{transform:translate(var(--stamp-hit-x),var(--stamp-hit-y)) rotate(-7deg) scale(1.035,.93);opacity:1}
  70%{transform:translate(calc(var(--stamp-hit-x) + 8px),calc(var(--stamp-hit-y) - 85px)) rotate(1deg) scale(1);opacity:1}
  80%{transform:translate(calc(var(--stamp-hit-x) + 69px),calc(var(--stamp-hit-y) - 105px)) rotate(8deg) scale(.98);opacity:1}
  100%{transform:translate(calc(var(--stamp-hit-x) + 420px),calc(var(--stamp-hit-y) - 109px)) rotate(21deg) scale(.86);opacity:0}
}

/* v0.9.16: themed in-app date picker with calm month transitions. */
.datePickerButton{width:100%;display:flex;align-items:center;justify-content:space-between;margin-top:6px;padding:13px 15px;border:1px solid var(--line);border-radius:15px;background:var(--card);color:var(--text);text-align:left}
.datePickerModal{position:fixed;inset:0;z-index:1600;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;height:100dvh;box-sizing:border-box;padding:max(18px,env(safe-area-inset-top)) 20px max(18px,env(safe-area-inset-bottom));background:rgba(34,29,39,.46);backdrop-filter:blur(4px);opacity:0;overflow:auto;transition:opacity .22s ease}.datePickerModal.open{opacity:1}.datePickerModal.closing{opacity:0}
.datePickerCard{--date-accent:var(--accent);position:relative;width:min(94vw,390px);overflow:hidden;padding:20px 17px 17px;border:2px solid color-mix(in srgb,var(--date-accent) 32%,#fff);border-radius:29px;background:linear-gradient(150deg,rgba(255,254,249,.985),rgba(255,247,237,.985));box-shadow:0 24px 65px rgba(30,22,37,.3);transform:translateY(14px) scale(.96);transition:transform .28s cubic-bezier(.2,1.15,.32,1)}.datePickerModal.open .datePickerCard{transform:none}
.datePickerThemeArt{position:absolute;inset:0;background-image:var(--date-art);background-position:center;background-size:cover;opacity:.14;filter:saturate(1.08) contrast(1.04);pointer-events:none}.datePickerCard::after{content:"";position:absolute;inset:9px;border:1px dashed color-mix(in srgb,var(--date-accent) 25%,transparent);border-radius:21px;pointer-events:none}
.datePickerHead,.datePickerWeek,.datePickerGrid,.datePickerActions{position:relative;z-index:1}.datePickerHead{display:grid;grid-template-columns:43px 1fr 43px;align-items:center;margin-bottom:8px}.datePickerHead h2{margin:0;text-align:center;font-size:20px}.datePickerHead button{width:39px;height:39px;padding:0;border-radius:14px;background:color-mix(in srgb,var(--date-accent) 11%,#fff);color:var(--date-accent);font-size:27px;line-height:1}.datePickerWeek,.datePickerGrid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.datePickerWeek span{padding:7px 0;text-align:center;color:var(--sub);font-size:11px;font-weight:800}.datePickerWeek span:first-child{color:#d66b70}.datePickerWeek span:last-child{color:#6687bf}
.datePickerGrid{min-height:292px}.datePickerDay,.datePickerBlank{aspect-ratio:1/1;min-width:0}.datePickerDay{position:relative;display:grid;place-items:start center;padding:5px 2px 2px;border:0;border-radius:14px;background:transparent;color:#463f3b;box-shadow:none}.datePickerDay b{font-size:12px;line-height:15px}.datePickerDay.today{background:color-mix(in srgb,var(--date-accent) 9%,#fff)}.datePickerDay.today b{color:var(--date-accent);font-weight:1000}.datePickerDay.selected{outline:2px solid var(--date-accent);outline-offset:-1px;background:color-mix(in srgb,var(--date-accent) 15%,#fff);transform:scale(1.035)}.datePickerDay .moodFace.datePicker{position:absolute;left:50%;bottom:3px;transform:translateX(-50%);width:25px!important;height:25px!important}.datePickerDay .moodFace.datePicker img{width:100%;height:100%;object-fit:contain}.datePickerDay .defaultMoodEmoji.datePicker{font-size:17px;line-height:25px}.datePickerLock{position:absolute;left:50%;bottom:4px;transform:translateX(-50%);font-size:15px}.datePickerActions{display:grid;grid-template-columns:1fr 1.3fr;gap:10px;margin-top:14px}.datePickerActions button{min-height:48px;border-radius:17px}
.datePickerGrid.slideLeft{animation:dateMonthLeft .24s ease-out}.datePickerGrid.slideRight{animation:dateMonthRight .24s ease-out}@keyframes dateMonthLeft{from{opacity:.25;transform:translateX(12px)}to{opacity:1;transform:none}}@keyframes dateMonthRight{from{opacity:.25;transform:translateX(-12px)}to{opacity:1;transform:none}}
:root[data-theme=dark] .datePickerCard{background:linear-gradient(150deg,#393733,#292826);border-color:color-mix(in srgb,var(--date-accent) 56%,#555)}:root[data-theme=dark] .datePickerDay{color:#f4eee6}:root[data-theme=dark] .datePickerHead button{background:color-mix(in srgb,var(--date-accent) 23%,#30302e)}:root[data-theme=dark] .datePickerDay.today,:root[data-theme=dark] .datePickerDay.selected{background:color-mix(in srgb,var(--date-accent) 25%,#302f2d)}
:root[data-theme=dark] .datePickerThemeArt{opacity:.18;filter:saturate(1.12) brightness(.72) contrast(1.08)}

/* v0.9.23: common diary stamp for non-country themes and gentler body keyboard scroll. */
.bodyEditor{scroll-margin-top:112px;scroll-margin-bottom:24px}
.attendanceCelebration[data-country=general] .attendancePostcardArt{background-image:none;opacity:0}
.attendanceCelebration[data-country=general] .attendanceStamp{width:190px;height:205px}
.attendanceCelebration[data-country=general] .attendanceStampAnimal{transform:rotate(-6deg)}
@media(max-height:740px){.datePickerModal{align-items:center;padding-block:10px}.datePickerCard{transform:scale(.93);transform-origin:center}.datePickerModal.open .datePickerCard{transform:scale(.93)}}
@media(prefers-reduced-motion:reduce){.datePickerModal,.datePickerCard,.datePickerGrid{transition:none!important;animation:none!important}}

/* v0.9.26: Japan, USA and France Diary-tab artwork is exactly 10% larger than the 44px country-theme baseline. */
:root[data-diary-theme="country_japan"] .bottomNav button[data-nav="listView"] img,
:root[data-diary-theme="country_usa"] .bottomNav button[data-nav="listView"] img,
:root[data-diary-theme="country_france"] .bottomNav button[data-nav="listView"] img{
  width:48.4px!important;
  height:48.4px!important;
}

/* v0.9.27 compact three-choice editor and swipe selection modals */
.editorChoiceRow{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:start;margin:12px 0 16px}
.editorChoice{text-align:center;min-width:0}.editorChoice>b{display:block;font-size:20px;margin-bottom:10px;color:var(--text)}
.compactChoice{display:flex!important;justify-content:center!important;overflow:visible!important;padding:0!important}
#editorView .compactChoice .singleChoice,#editorView .compactSecret{width:76px!important;height:76px!important;min-width:76px!important;flex:0 0 76px!important;border-radius:16px!important;margin:0 auto!important;background:color-mix(in srgb,var(--card) 94%,transparent)!important;border:1px solid var(--line)!important;box-shadow:0 4px 12px rgba(50,40,30,.10)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:10px!important}
#editorView .compactChoice .singleChoice.active,#editorView .compactChoice .singleChoice.hasSelection{box-shadow:0 0 0 3px var(--accent),0 6px 14px rgba(50,40,30,.13)!important}
#editorView .compactChoice .singleChoice>span{font-size:38px!important;line-height:1!important}.plusGlyph{display:flex!important;width:34px;height:34px;border-radius:50%;background:#72ad96;color:#fff;align-items:center;justify-content:center;font-size:34px!important;font-weight:500;line-height:1!important}
#editorView .compactChoice .moodPlus{width:38px!important;height:38px!important}.compactSecret{position:static!important}.compactSecret .secretKey{width:52px!important;height:52px!important;margin:0!important}.compactSecret .secretKey img{width:100%!important;height:100%!important;object-fit:contain}.compactSecret>span:not(.secretKey){display:none!important}.srOnly{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
#editorView .title{margin-top:0!important;font-size:25px!important;font-weight:750!important;padding:18px 20px!important;border-radius:16px!important}
.choiceModalCard{border-radius:28px!important;padding:20px!important;transform-origin:50% 85%!important}.moodModal.open .choiceModalCard{animation:choicePop .42s cubic-bezier(.16,1.35,.35,1)}@keyframes choicePop{0%{transform:translateY(35px) scale(.84)}65%{transform:translateY(-4px) scale(1.025)}100%{transform:translateY(0) scale(1)}}
.choiceModalCard .moodModalHead{display:grid;grid-template-columns:42px 1fr 42px 42px;gap:6px}.choiceModalCard .moodModalHead h2{text-align:center;font-size:25px}.pageArrow{width:38px;height:38px;padding:0;border-radius:50%;font-size:28px;line-height:1;color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--card));border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line))}.pageArrow.ghost{visibility:hidden}.choiceViewport{overflow:hidden;touch-action:pan-y}.choicePages{display:flex;width:200%;transition:transform .30s cubic-bezier(.22,.7,.2,1)}.choicePage{width:50%;flex:0 0 50%;padding:2px}.moodModalGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.moodModalItem{aspect-ratio:1;border-radius:18px;padding:10px;background:color-mix(in srgb,var(--card) 96%,transparent);border:1px solid var(--line);display:flex;align-items:center;justify-content:center}.moodModalItem.active{box-shadow:0 0 0 3px var(--accent)}.moodModalItem .moodFace.modal{width:54px!important;height:54px!important;font-size:42px!important;display:flex;align-items:center;justify-content:center}.pageDots{display:flex;justify-content:center;gap:7px;margin-top:14px}.pageDots i{width:7px;height:7px;border-radius:50%;background:var(--line)}.pageDots i.active{width:20px;border-radius:8px;background:var(--accent)}.weatherModalGrid{grid-template-columns:repeat(3,1fr)}.weatherModalItem{flex-direction:column;gap:4px}.weatherModalItem>span{font-size:42px}.weatherModalItem small{font-size:12px;color:var(--sub)}
@media(max-width:390px){.editorChoiceRow{gap:8px}.editorChoice>b{font-size:18px}#editorView .compactChoice .singleChoice,#editorView .compactSecret{width:66px!important;height:66px!important;min-width:66px!important;flex-basis:66px!important}.moodModalGrid{gap:8px}.choiceModalCard{padding:16px}}


/* v0.9.28: mood sizing, title field tightening, and calmer secret modal */
.choiceModalCard .moodModalItem .moodFace.modal{width:49px!important;height:49px!important;font-size:38px!important}
.choiceModalCard .moodModalItem .assetMood.modal{width:49px!important;height:49px!important}
#editorView .compactChoice .moodFace.picker{width:32px!important;height:32px!important;font-size:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important}
#editorView .compactChoice .assetMood.picker{width:40px!important;height:40px!important}
#editorView .compactChoice .assetMood.picker img{width:100%!important;height:100%!important;object-fit:contain!important}
#editorView .title{font-size:22.5px!important;padding:16px 18px!important}
.secretModalCard{max-height:min(78vh,560px)!important}
.secretModal.keyboardOpen .secretModalCard{transform:translateY(calc(-1 * var(--secret-shift)))!important}


/* v0.9.29: consistent add buttons, selectable first weather, and enlarged illustrated moods */
#editorView .compactChoice .moodPlus{width:38px!important;height:38px!important;display:block!important;object-fit:contain!important}
#editorView .compactChoice .weatherSelectedEmoji{font-size:38px!important;line-height:1!important;display:flex!important;align-items:center!important;justify-content:center!important}
#editorView .compactChoice .assetMood.picker{width:40px!important;height:40px!important;overflow:visible!important}
#editorView .compactChoice .assetMood.picker img{transform:scale(2)!important;transform-origin:center!important;object-fit:contain!important}
#editorView .compactChoice .singleChoice{overflow:visible!important}


/* v0.9.32: top + New Entry button 30% smaller (save button unchanged) */
#topAction.newEntryCompact{
  font-size:70%!important;
  padding:7.7px 9.8px!important;
  border-radius:10px!important;
  min-height:0!important;
}


/* v0.9.33: editor Save button is also 30% smaller */
body.editorActive #topAction:not(.newEntryCompact){
  font-size:70%!important;
  padding:7.7px 9.8px!important;
  border-radius:10px!important;
  min-height:0!important;
}


/* v0.9.34: title field vertical height reduced by 20%; font size unchanged */
#editorView .title{font-size:22.5px!important;padding:13px 18px!important}



#rewardRemoveAdsButton{background:linear-gradient(180deg,#ff746a 0%,#ef443a 100%);color:#fff;border-color:#d9342c;box-shadow:0 10px 22px rgba(226,70,57,.24);font-weight:800}
#rewardRemoveAdsButton:hover,#rewardRemoveAdsButton:active{filter:brightness(.98)}


/* v0.9.38: corrected premium/ad badge positioning */
.choiceModalCard{position:relative!important}
.moodModalBadgeHost{display:none;justify-content:center;align-items:flex-end;height:0;overflow:visible;margin:0 auto}
.moodModalBadgeHost.active{display:flex;height:52px;margin:-2px 0 4px}
.moodModalPremiumBadge{position:static!important;width:52px!important;height:52px!important;display:block!important}

.premiumThemeCard,.premiumChoicePage,.fontChoice,.stickerTab{position:relative!important}
.premiumBadge{position:absolute!important;display:block!important;object-fit:contain!important;pointer-events:none!important;z-index:5!important;filter:drop-shadow(0 3px 7px rgba(0,0,0,.16))!important}
.themePremiumBadge{top:8px!important;right:8px!important;width:30px!important;height:30px!important}
.premiumChoicePage{padding-top:2px!important}
.pagePremiumBadge{top:-12px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:54px!important;height:54px!important}
.fontChoice{padding-right:50px!important}
.fontPremiumBadge{top:9px!important;right:10px!important;width:26px!important;height:26px!important}
.stickerTab{padding-right:22px!important}
.tabPremiumBadge{top:4px!important;right:4px!important;width:16px!important;height:16px!important}
#rewardRemoveAdsButton{background:linear-gradient(180deg,#ff8077 0%,#e23f35 100%)!important;color:#fff!important;border:1px solid #cc2f27!important;box-shadow:0 12px 24px rgba(226,63,53,.28)!important;font-weight:900!important}
#rewardRemoveAdsButton:hover,#rewardRemoveAdsButton:active{filter:brightness(.98)}
@media (max-width:480px){.themePremiumBadge{width:28px!important;height:28px!important}.pagePremiumBadge{top:-10px!important;width:50px!important;height:50px!important}.fontPremiumBadge{width:24px!important;height:24px!important}}


/* v0.9.40: reward/premium dialogs are true overlays (not scrollable page content) */
.adOverlay{position:fixed;inset:0;z-index:2200;display:flex;align-items:flex-end;justify-content:center;padding:22px 18px max(22px,env(safe-area-inset-bottom));background:rgba(28,24,34,.36);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;pointer-events:none;transition:opacity .18s ease}
.adOverlay.open{opacity:1;pointer-events:auto}
.adOverlay.hidden{display:none!important}
.adPromptCard,.rewardAdCard{position:relative;width:min(100%,420px);max-height:min(82vh,720px);overflow:auto;background:rgba(255,252,249,.98);border:1px solid rgba(223,213,226,.95);border-radius:32px;box-shadow:0 28px 68px rgba(28,20,36,.28);padding:86px 22px 22px;color:#2f2826;transform:translateY(22px) scale(.965);transition:transform .22s cubic-bezier(.2,.9,.22,1)}
.adOverlay.open .adPromptCard,.adOverlay.open .rewardAdCard{transform:translateY(0) scale(1)}
.adPromptBadge,.rewardAdBadge{position:absolute;left:50%;top:14px;transform:translateX(-50%);width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 8px 20px rgba(239,137,28,.18))}
.adPromptCard h2,.rewardAdCard h2{margin:0 0 10px;text-align:center;font-size:21px;line-height:1.25;letter-spacing:-.03em}
.adPromptCard p,.rewardAdCard p{margin:0;text-align:center;color:#5e5658;font-size:14px;line-height:1.65}
.adPromptActions{display:grid;grid-template-columns:1fr 1.8fr;gap:10px;margin-top:20px}
.adPromptActions button{min-height:54px;border-radius:18px;font-weight:800}
.rewardAdLabel{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 12px;margin:4px auto 10px;border-radius:999px;background:#fff0d9;color:#d17000;font-size:12px;font-weight:900}
.rewardAdPreview{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;margin:16px 0 14px;padding:14px;border-radius:20px;background:linear-gradient(180deg,#fff8ee 0%,#fffdf9 100%);border:1px solid #f2dfc2}
.rewardAdPoster{width:84px;height:120px;border-radius:18px;background:url('ad_badge_clean.png') center/contain no-repeat,linear-gradient(180deg,#fff7d9 0%,#ffd89e 100%)}
.rewardAdCopy{display:grid;gap:6px}.rewardAdCopy b{font-size:17px;line-height:1.3}.rewardAdCopy small{color:#6c6366;font-size:13px;line-height:1.55}
.rewardAdProgress{width:100%;height:10px;border-radius:999px;background:#f2ebe8;overflow:hidden;margin:14px 0 8px}.rewardAdProgress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8d98f4,#6d7ae8);transition:width .25s ease}
#rewardAdCountdown{display:block;text-align:center;color:#6a67a4;font-size:14px;margin:0 0 4px}
#rewardAdConfirmBtn.ready{box-shadow:0 10px 18px rgba(109,122,232,.2)}
:root[data-theme=dark] .adPromptCard,:root[data-theme=dark] .rewardAdCard{background:rgba(46,42,49,.98);border-color:rgba(90,80,96,.95);color:#f7f1ee}
:root[data-theme=dark] .adPromptCard p,:root[data-theme=dark] .rewardAdCard p,:root[data-theme=dark] .rewardAdCopy small{color:#d3c9c5}
:root[data-theme=dark] .rewardAdLabel{background:#523a19;color:#ffd98f}
:root[data-theme=dark] .rewardAdPreview{background:linear-gradient(180deg,#4b3f31 0%,#403635 100%);border-color:#6a5746}
:root[data-theme=dark] .rewardAdProgress{background:#5a4d4c}
@media (max-width:420px){.adOverlay{padding:16px 14px max(16px,env(safe-area-inset-bottom))}.adPromptCard,.rewardAdCard{border-radius:28px;padding:78px 18px 18px}.adPromptBadge,.rewardAdBadge{width:80px;height:80px}.rewardAdPreview{grid-template-columns:72px 1fr;gap:12px}.rewardAdPoster{width:72px;height:104px}.adPromptActions{grid-template-columns:1fr 1.5fr}}


/* v0.9.41: premium prompt above mood/font sheets and badge lifted */
.adOverlay{z-index:5600!important;align-items:center!important;padding:24px 18px!important}
.adPromptCard{overflow:visible!important;padding-top:58px!important}
.adPromptBadge{top:-46px!important;width:96px!important;height:96px!important;z-index:2!important}
.rewardAdCard{z-index:1!important}
@media (max-width:420px){
  .adPromptCard{padding-top:54px!important}
  .adPromptBadge{top:-42px!important;width:88px!important;height:88px!important}
}


/* v0.9.42: reward buttons aligned horizontally in settings */
.rewardSettingsCard{display:grid;gap:14px!important}
.rewardSettingsCard h2,.rewardSettingsCard p{margin:0}
.rewardStatusBox{display:grid;gap:8px;padding:16px 16px 14px;border-radius:22px;background:linear-gradient(180deg,rgba(122,135,235,.08) 0%,rgba(255,255,255,.52) 100%);border:1px solid rgba(157,164,220,.18)}
.rewardStatusBox b{font-size:18px;line-height:1.4;letter-spacing:-.02em}
.rewardStatusBox small{font-size:14px;line-height:1.65;color:var(--sub)}
.rewardActionRow{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
.rewardActionRow button{min-width:0;min-height:64px;border-radius:22px;font-size:16px;font-weight:900;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.25;padding:0 16px;white-space:normal;word-break:keep-all}
#rewardWatchButton{background:linear-gradient(180deg,#8591f4 0%,#6d7ae8 100%);color:#fff;border:1px solid #6a75de;box-shadow:0 12px 24px rgba(108,122,232,.24)}
#rewardWatchButton.success{background:linear-gradient(180deg,#90a0ff 0%,#7382ea 100%);color:#fff}
#rewardRemoveAdsButton{min-width:0!important}
.rewardPriceNote{display:block;text-align:center;font-size:13px;line-height:1.55;color:var(--sub);margin-top:-4px}
@media (max-width:420px){
  .rewardActionRow{gap:10px}
  .rewardActionRow button{min-height:58px;font-size:14px;border-radius:20px;padding:0 10px}
  .rewardPriceNote{font-size:12px}
}
:root[data-theme=dark] .rewardStatusBox{background:linear-gradient(180deg,rgba(122,135,235,.16) 0%,rgba(58,53,63,.68) 100%);border-color:rgba(135,141,196,.26)}


/* v0.9.44: reward card action buttons stay aligned */
.rewardSettingsCard{display:grid!important;gap:14px!important}
.rewardSettingsCard>h2,.rewardSettingsCard>p{margin:0!important}
.rewardStatusBox{display:grid!important;gap:7px!important;padding:15px 16px!important;border-radius:20px!important;background:color-mix(in srgb,var(--accent) 8%,var(--card))!important;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line))!important}
.rewardStatusBox b{font-size:17px!important;line-height:1.4!important}
.rewardStatusBox small{font-size:13px!important;line-height:1.6!important;color:var(--sub)!important}
.rewardActionRow{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;width:100%!important;align-items:stretch!important}
.rewardActionRow button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:58px!important;margin:0!important;padding:10px 12px!important;border-radius:19px!important;font-size:15px!important;line-height:1.25!important;font-weight:900!important;text-align:center!important;white-space:normal!important;word-break:keep-all!important}
#rewardWatchButton{background:linear-gradient(180deg,#8491f4 0%,#6978e4 100%)!important;color:#fff!important;border:1px solid #6672d7!important;box-shadow:0 8px 18px rgba(105,120,228,.22)!important}
#rewardWatchButton.success{background:linear-gradient(180deg,#8491f4 0%,#6978e4 100%)!important;color:#fff!important}
#rewardRemoveAdsButton{background:linear-gradient(180deg,#ff756c 0%,#ed3e34 100%)!important;color:#fff!important;border:1px solid #d33229!important;box-shadow:0 8px 18px rgba(237,62,52,.22)!important}
.rewardPriceNote{display:block!important;width:100%!important;margin:0!important;text-align:center!important;font-size:12px!important;line-height:1.5!important;color:var(--sub)!important}
@media(max-width:360px){.rewardActionRow{gap:8px!important}.rewardActionRow button{min-height:54px!important;padding:8px!important;font-size:13px!important}.rewardPriceNote{font-size:11px!important}}


/* v0.9.46: premium auto backup, daily manual limits, and midnight live refresh */
.premiumBackupAction{position:relative!important;overflow:visible!important}
.backupAdBadge{position:absolute;right:6px;top:6px;width:22px;height:22px;object-fit:contain;z-index:3;filter:drop-shadow(0 2px 4px rgba(0,0,0,.16))}
.premiumBackupAction.premiumLocked{padding-right:34px!important;opacity:.86}
.autoBackupTitleWrap{position:relative;display:grid;grid-template-columns:auto 26px;align-items:center;justify-content:start;gap:6px}
.autoBackupTitleWrap small{grid-column:1/-1}
#autoBackupAdBadge{position:static;width:23px;height:23px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.15))}
.autoBackupToggle.premiumLocked{opacity:.72;box-shadow:0 0 0 2px rgba(244,170,61,.2)!important}
.autoBackupIntervals.premiumLocked{opacity:.62}
.manualBackupLimitHint{margin:0;padding:10px 12px;border-radius:14px;background:color-mix(in srgb,var(--accent) 7%,var(--card));color:var(--sub);font-size:12px;line-height:1.55;text-align:center}
@media(max-width:390px){.backupAdBadge{width:20px;height:20px}.premiumBackupAction.premiumLocked{padding-right:30px!important}}


/* v0.9.50: debug-only rewarded ad reset control */
.rewardTestResetRow{display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:start;padding:12px 14px;border-radius:16px;background:color-mix(in srgb,#f3b44f 12%,var(--card));border:1px dashed color-mix(in srgb,#e49c2d 46%,var(--line));cursor:pointer}
.rewardTestResetRow.hidden{display:none!important}
.rewardTestResetRow input{width:21px;height:21px;margin:2px 0 0;accent-color:#e59a2c}
.rewardTestResetRow span{display:grid;gap:3px}
.rewardTestResetRow b{font-size:14px;line-height:1.35}
.rewardTestResetRow small{font-size:12px;line-height:1.5;color:var(--sub)}
:root[data-theme=dark] .rewardTestResetRow{background:rgba(229,154,44,.12);border-color:rgba(229,154,44,.42)}

/* v0.9.52: first-install, four-page swipe tutorial */
body.tutorialOpen{overflow:hidden!important;touch-action:none}
.firstRunTutorial{position:fixed;inset:0;z-index:10000;background:#111;overflow:hidden}
.firstRunTutorial.hidden{display:none!important}
.tutorialTrack{width:100%;height:100%;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x}
.tutorialTrack::-webkit-scrollbar{display:none}
.tutorialPage{flex:0 0 100%;width:100%;height:100%;margin:0;padding:0;display:flex;align-items:center;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;background:#111}
.tutorialPage img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.tutorialSkip,.tutorialMainAction,.tutorialNext{position:fixed;z-index:10001;border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:0!important}
.tutorialSkip{left:0;bottom:0;width:34%;height:18%}
.tutorialMainAction{left:19%;bottom:18%;width:62%;height:9%}
.tutorialNext{right:0;bottom:0;width:34%;height:28%}
