
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}button{border:0}main{max-width:440px;margin:auto;padding:25px 20px 100px}header{display:flex;justify-content:space-between;align-items:center}header button{width:42px;height:42px;background:var(--card);border-radius:50%;font-size:21px}.identity{font-size:12px;letter-spacing:2px}.hero{text-align:center;padding:18px 0 25px}.hero h1{font-size:46px;margin:0 0 7px;letter-spacing:-2px;font-family:Georgia,serif}.hero p{color:var(--muted);margin:0;font-family:monospace;font-size:14px;letter-spacing:1px}.card{background:var(--card);border-radius:25px;padding:20px;margin-bottom:16px;position:relative}.calhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.month{font-size:15px;font-weight:650}.switch{display:flex;background:var(--cell);padding:3px;border-radius:20px}.switch button{padding:7px 11px;background:transparent;border-radius:20px;font-size:12px}.switch .active{background:var(--ink);color:var(--card)}.weekdays,.grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekdays{color:var(--muted);font:12px monospace;text-align:center;margin-bottom:9px}.day{height:57px;position:relative;border-radius:13px;background:var(--cell);padding:6px 0 0;align-self:start;font:12px monospace;text-align:center}.day.empty{visibility:hidden}.day.today{box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--accent)}.day.has{padding-top:4px}.day.has .n{position:absolute;bottom:3px;left:5px;z-index:3;font-size:10px;background:var(--card);border-radius:5px;padding:1px 3px}.badge{position:absolute;right:-2px;top:-4px;border-radius:50%;background:var(--accent);color:var(--bg);width:17px;height:17px;font:10px/17px sans-serif;z-index:3}.sticker{display:inline-block;background-image:url("./stickers.png");background-size:200% 200%;width:62px;height:70px;filter:drop-shadow(0 4px 3px #0002);transform:rotate(-8deg)}.s0{background-position:0 0}.s1{background-position:100% 0}.s2{background-position:0 100%}.s3{background-position:100% 100%}.day .sticker{position:absolute;width:55px;height:55px;left:50%;top:0;transform:translateX(-50%) rotate(-9deg)}.hint{font-size:12px;color:var(--muted);margin:15px 0 0}.sectiontitle{font-family:Georgia,serif;font-size:18px;margin:0 0 14px}.summary{display:flex;justify-content:space-between;align-items:center}.numbers{display:flex;gap:24px}.numbers strong{display:block;font:38px Georgia,serif;line-height:1.1}.numbers span{color:var(--muted);font-size:12px;display:block;margin-top:7px}.pile{display:flex;margin-right:-8px}.pile .sticker{margin-left:-27px;width:65px;height:83px}.favorite{min-height:145px}.favorite h3{font:27px Georgia,serif;margin:0 0 9px}.favorite p{color:var(--muted);font-size:12px;margin:0}.favorite>.sticker{position:absolute;right:12px;top:25px;width:105px;height:112px;transform:rotate(13deg)}.favorite .copy{width:70%;position:relative;z-index:1}.chosen{display:inline-block;border:1px solid var(--line);padding:4px 8px;border-radius:12px;color:var(--muted);font-size:12px;margin-top:14px}nav{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:min(370px,calc(100% - 40px));display:flex;justify-content:space-between;align-items:center;background:var(--nav);backdrop-filter:blur(16px);border:1px solid var(--line);padding:8px;border-radius:30px;box-shadow:0 10px 35px #0001;z-index:8}nav button{background:transparent;border-radius:24px;padding:12px 16px;font-size:13px}nav .selected{background:var(--cell)}nav .add{background:var(--accent);color:var(--bg);font-size:26px;width:47px;height:47px;padding:0}.demo{max-width:440px;margin:auto;padding:10px 20px 0;color:var(--muted);font-size:11px}.sheet{position:fixed;inset:0;background:#0006;z-index:20;display:none;align-items:flex-end;justify-content:center}.sheet.open{display:flex}.panel{background:var(--bg);border-radius:28px 28px 0 0;padding:25px;width:min(440px,100%);max-height:92vh;overflow:auto;box-shadow:0 -20px 100px #0003}.panel h2{font:28px Georgia,serif;margin:8px 0 18px}.close{float:right;background:var(--cell);width:35px;height:35px;border-radius:50%;font-size:21px}.primary{background:var(--accent);color:var(--bg);width:100%;padding:15px;border-radius:16px;font-weight:650;margin-top:15px}.record{background:var(--card);padding:15px;border-radius:18px;display:flex;gap:12px;align-items:center;margin:12px 0}.record strong{font-size:17px}.record p{margin:6px 0;color:var(--muted);font-size:12px}.record .sticker{flex-shrink:0;width:68px;height:85px}.tags{display:flex;gap:7px;flex-wrap:wrap}.tags button{padding:9px 12px;border-radius:12px;background:var(--cell);font-size:12px}.tags button.on{background:var(--ink);color:var(--bg)}label{display:block;margin:15px 0 6px;font-size:12px;color:var(--muted)}input,select,textarea{width:100%;padding:13px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink)}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.upload{border:1px dashed var(--muted);padding:20px;text-align:center;border-radius:16px;margin-top:15px}.upload small{display:block;color:var(--muted);margin-top:8px}.upload input{margin-top:12px;font-size:12px}.saved{color:var(--accent);font-size:12px}.toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);border-radius:12px;padding:12px 18px;z-index:40;display:none;width:max-content;max-width:90%;font-size:13px}
.paper{--bg:#f2efe7;--card:#fffdf8;--cell:#efeee7;--ink:#342a25;--muted:#70695e;--accent:#a46d31;--line:#ded7c9;--nav:#fffdf8e8;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.035' filter='url(%23n)'/%3E%3C/svg%3E")}.paper .sectiontitle{font-family:monospace;font-weight:bold}.paper .card{box-shadow:0 6px 25px #51412806}.paper .hero h1{font-family:Georgia,serif;font-weight:800}
.fresh{--bg:#eef3f0;--card:#fff;--cell:#f0f4f1;--ink:#183e35;--muted:#5e716a;--accent:#39745c;--line:#d9e3dc;--nav:#fffffff0}.fresh .hero{text-align:left;padding:26px 0}.fresh .hero h1{font-family:-apple-system,sans-serif;font-size:48px;font-weight:600}.fresh .card{border-radius:18px}.fresh .sectiontitle{font-family:inherit;font-size:15px;font-weight:600}.fresh .day{border-radius:50%;height:48px}.fresh .calendar{padding:20px 14px}.fresh .summary{padding:24px}.fresh .numbers strong{font-family:inherit}.fresh .favorite{display:flex;flex-direction:column;min-height:180px;background:#dce9df}.fresh .favorite>.sticker{width:140px;height:155px;right:0;top:15px}.fresh .favorite .copy{width:65%}
.night{--bg:#19231f;--card:#25322b;--cell:#303e35;--ink:#f4ead6;--muted:#bdc8b9;--accent:#edb268;--line:#4a5748;--nav:#25322bf0}.night .hero{text-align:left;border-bottom:1px solid var(--line);margin-bottom:20px;padding:22px 0}.night .hero h1{font-size:54px;font-weight:400;font-style:italic}.night .card{border-radius:8px;border:1px solid var(--line)}.night .calendar{background:transparent;padding:15px 10px}.night .day{background:transparent;border-radius:5px;border:1px solid #ffffff12;height:55px}.night .sectiontitle{color:var(--accent)}.night .summary{background:var(--accent);color:var(--bg)}.night .summary .sectiontitle,.night .summary .numbers span{color:var(--bg)}.night nav{border-radius:12px}.night .favorite h3{font-style:italic}
.paper .summary,.paper .favorite{background:#fffdf8;border:0;min-height:155px;padding:20px;border-radius:25px}.paper .summary .sectiontitle,.paper .favorite .sectiontitle{font:13px Georgia,serif;letter-spacing:.5px;font-weight:400;color:#756b5e;margin-bottom:12px}.month-cups{display:flex;align-items:baseline;gap:10px;line-height:1}.month-cups strong{font:700 36px Georgia,serif;color:#342a25;letter-spacing:-1px}.month-cups span{font-size:14px;color:#756b5e}.month-shops{margin:12px 0 0;font-size:14px;color:#756b5e}.paper .favorite h3{font:700 36px Georgia,serif;color:#342a25;letter-spacing:-1px}.drink-carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.bottle-icon{display:inline-flex;width:62px;height:70px;align-items:center;justify-content:center;flex-shrink:0}.bottle-icon svg{width:80%;height:90%;transform:rotate(-7deg)}.day .bottle-icon,.day .photo-sticker{position:absolute;left:50%;top:0;width:45px;height:52px;transform:translateX(-50%)}.photo-sticker{width:68px;height:85px;object-fit:cover;border:4px solid #fff9ea;border-radius:12px;transform:rotate(-6deg);flex-shrink:0;filter:sepia(.15) drop-shadow(0 3px 3px #0002)}.drink-carousel::-webkit-scrollbar{display:none}.drink-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}.drink-slide .record{align-items:flex-start;min-height:170px;margin:8px 0}.drink-slide .record>div{min-width:0;overflow-wrap:anywhere}.drink-pager{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:4px}.drink-pager button{width:42px;height:42px;border-radius:50%;background:var(--card);font-size:24px}.drink-pager span{font:13px monospace;color:var(--muted)}.swipe-hint{font-size:12px;color:var(--muted);text-align:center;margin:8px 0}.paper .favorite p,.paper .month-shops{font-size:14px;color:#756b5e}.identity[hidden]{display:none!important}

[hidden]{display:none!important}nav .nav-icon{width:100px;height:49px;padding:7px 26px;color:var(--muted);display:flex;align-items:center;justify-content:center}nav .nav-icon.selected{color:var(--accent)}.nav-icon svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.stats-hero{padding-top:25px;padding-bottom:22px}.stats-hero h1{font-size:43px!important;letter-spacing:-1px}.stats-picker{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.stats-picker button{width:42px;height:42px;background:var(--card);border:1px solid var(--line);border-radius:50%;font-size:23px}.stats-picker strong{font:18px Georgia,serif}.periods{padding-top:22px;display:flex;border-bottom:1px solid var(--line);margin:0 0 18px;gap:30px}.periods button{background:transparent;padding:10px 2px 12px;color:var(--muted);font-size:14px}.periods .active{color:var(--ink);border-bottom:2px solid var(--accent)}.stat-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 14px;padding-bottom:19px;border-bottom:1px dashed var(--line)}.stat-meta{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:19px;padding-bottom:19px;border-bottom:1px dashed var(--line)}.stat-meta strong{font:25px Georgia,serif;margin-right:8px}.stat-meta span{font-size:12px;color:var(--muted)}.stat-kpis strong{display:block;font:35px Georgia,serif}.stat-kpis small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.spend-row{display:flex;align-items:flex-end;justify-content:space-between}.spend-row label{margin:0 0 7px}.money{font:37px Georgia,serif;letter-spacing:-1px}.money small{font-size:21px;margin-right:3px}.receipt-stamp{border:2px solid #a46d3160;border-radius:50%;height:67px;width:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-12deg);color:var(--accent);position:relative}.receipt-stamp:after{content:'';position:absolute;inset:4px;border:1px dashed #a46d3160;border-radius:50%}.receipt-stamp b{font:21px Georgia,serif}.receipt-stamp span{font-size:12px}.stats-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.stats-heading h2{margin:0;font:18px monospace;font-weight:650}.stats-heading>span{color:var(--muted);font-size:12px}.bars{height:106px;display:flex;align-items:end;gap:17px;margin:4px 0 8px;border-bottom:1px solid var(--line);padding:0 10px}.bar{flex:1;position:relative;border-radius:6px 6px 0 0;background:#d9c2a1;min-height:3px}.bar.peak{background:var(--accent)}.bar b{position:absolute;top:-22px;width:100%;text-align:center;font:13px monospace}.barlabels{display:flex;gap:17px;padding:0 10px;font:12px monospace;color:var(--muted)}.barlabels span{flex:1;text-align:center}.type-row{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.type-row p{font-size:12px;color:var(--muted);margin:0}.type-row strong{font-weight:600;color:var(--ink)}.mini-meter{height:7px;border-radius:5px;background:var(--cell);margin-top:9px;display:flex;overflow:hidden}.mini-meter span:first-child{background:var(--accent)}.mini-meter span:last-child{background:#cdb68e}.rank{display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:9px;padding:13px 0;border-bottom:1px solid var(--line)}.rank:last-child{border:0;padding-bottom:0}.rank>span{font:18px Georgia,serif;color:var(--accent)}.rank strong{font-size:14px;font-weight:500}.rank small{font-size:12px;color:var(--muted)}.rank p{margin:5px 0 0;font-size:12px;color:var(--muted)}.rank .ranknum{font:19px Georgia,serif;color:var(--ink);text-align:right}.rating{display:grid;grid-template-columns:49px 1fr 38px;align-items:center;gap:10px;margin-top:15px;font-size:12px}.rating .track{height:9px;border-radius:6px;background:var(--cell);overflow:hidden}.rating .fill{height:100%;background:var(--accent);border-radius:6px}.rating span:last-child{text-align:right;color:var(--muted)}.spend-row .hint{max-width:210px;line-height:1.7}.rank strong small{margin-left:7px;white-space:nowrap}.stats-note{line-height:1.7;font-size:12px;color:var(--muted);margin:16px 3px}.stats-empty{text-align:center;padding:45px 15px}.stats-empty h2{font:23px Georgia,serif}.stats-empty p{color:var(--muted);line-height:1.8}.backup-link{background:transparent;color:var(--accent);padding:12px 2px;border-bottom:1px solid var(--line);width:100%;text-align:left;font-size:13px}
.settings-title{font:700 32px Georgia,"Songti SC",serif;margin:24px 0}.settings-card{padding:23px;margin-bottom:18px}.settings-card h2{font-size:17px;margin:0 0 20px;font-weight:650}.profile-row{display:flex;align-items:center;gap:17px}.avatar{display:inline-flex;width:65px;height:65px;border-radius:50%;background:#eee7da;color:var(--accent);align-items:center;justify-content:center;font:30px Georgia,serif;overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-upload{display:inline-flex;align-items:center;gap:17px;cursor:pointer;font-size:14px;color:var(--ink);margin:0}.avatar-upload input{display:none}.settings-card input{background:#f3f0e8;border:0}.settings-card label{margin-top:20px}.settings-card .avatar-upload{margin-top:0}.save-profile{width:auto;min-width:105px;padding:12px 18px;margin-top:16px;font-size:13px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid var(--line);font-size:14px}.settings-row small{color:var(--muted);font-size:12px}.data-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.secondary{background:#eee8dc;color:var(--ink);border-radius:12px;padding:13px 10px;font-size:13px;cursor:pointer}.data-subtitle{font-size:12px;color:var(--muted);margin:23px 0 12px}.local-note{font-size:12px;line-height:1.9;color:var(--muted);margin:16px 0 0}.local-note strong{color:var(--ink);font-weight:500}.history-link{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;padding:16px 0;text-align:left;font-size:14px}.history-link:last-child{border:0;padding-bottom:0}.history-link span{color:var(--muted);font-size:12px}.share-options{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.share-options label{margin:0;display:flex;align-items:center;gap:6px;padding:10px;background:var(--cell);border-radius:10px;font-size:12px;color:var(--ink)}.share-options input{width:15px;height:15px;accent-color:var(--accent);margin:0}.share-canvas{display:block;width:100%;height:auto;border-radius:18px;background:#fffaf0}.share-buttons{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.share-buttons .primary{width:auto;margin:0;padding:13px 18px;font-size:13px}.snapshot-list{margin-top:20px;font-size:13px}.snapshot-list summary{color:var(--muted);cursor:pointer}.snapshot-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.snapshot-item small{font-size:12px;color:var(--muted)}.history-item{padding:15px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.history-item strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.history-item p{font-size:12px;color:var(--muted);margin:6px 0;line-height:1.6}.history-item button{flex-shrink:0}.report-total{font:40px Georgia,serif;margin:20px 0 8px}.report-lines{width:100%;border-collapse:collapse;font-size:12px}.report-lines td,.report-lines th{padding:12px 4px;text-align:left;border-bottom:1px solid var(--line)}.report-lines td:last-child,.report-lines th:last-child{text-align:right}.report-lines th{color:var(--muted);font-weight:500}.panel{padding-bottom:35px}nav .nav-icon{width:78px;padding:7px 17px}.settings-top-note{font-size:12px;color:var(--muted);margin:-12px 0 22px}.month-cups strong{font-size:30px}.paper .month-shops{font-size:12px}.paper .favorite p{font-size:12px}

/* Refined type hierarchy and secondary backup actions. */
.identity{font-size:16px;letter-spacing:2px}
.month-cups strong,.paper .favorite h3{font-size:clamp(22px,7vw,28px);line-height:1.15}
.paper .favorite .copy{width:calc(100% - 64px)}
.paper .favorite h3{white-space:nowrap;letter-spacing:-1px}
.paper .favorite>.sticker{width:82px;height:95px;right:4px;top:33px}
.data-subtitle{font-size:11px;margin:19px 0 9px}
.backup-actions{gap:8px;max-width:88%}
.backup-actions .secondary{font-size:12px;padding:10px 8px;border-radius:10px}
.data-subtitle~.local-note{font-size:11px;line-height:1.75;margin-top:13px}

/* Compact backup group aligned with the first report column. */
.settings-card .data-actions:not(.backup-actions) .secondary{padding:10px 8px}
.data-subtitle{margin:18px 0 8px;font-size:10px;line-height:1.6}
.backup-actions{width:calc(50% - 4.5px);max-width:none;gap:6px}
.backup-actions .secondary{font-size:11px;padding:8px 3px;border-radius:8px;white-space:nowrap}
.data-subtitle~.local-note{margin-top:12px;font-size:10px}

.settings-card .backup-note{font-size:10px;letter-spacing:normal;line-height:1.6;white-space:normal;color:var(--muted)}

.app-header{gap:12px;min-height:44px}.brand{display:flex;align-items:center;gap:8px;min-width:0}.brand-mark{display:flex;align-items:center;justify-content:center;width:29px;height:34px;color:var(--accent);flex-shrink:0}.brand-mark svg{width:100%;height:100%}.brand .identity{font:700 21px Georgia,serif;letter-spacing:-.6px;white-space:nowrap}
header .profile-entry{display:flex;align-items:center;gap:9px;width:auto;height:44px;background:transparent;border-radius:22px;padding:0 0 0 4px;min-width:44px}.header-nickname{font-size:12px;color:var(--muted);max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#e9dfce;color:#8b7354;overflow:hidden;flex-shrink:0}.header-avatar img{width:100%;height:100%;object-fit:cover}.header-avatar svg{width:22px;height:22px}nav{width:min(310px,calc(100% - 64px));padding:8px 13px}nav .nav-icon{width:76px}nav .add{margin-right:2px}
@media(max-width:359px){.brand .identity{font-size:19px}.header-nickname{max-width:58px}.app-header{gap:8px}.brand{gap:5px}}

.brand-mark{width:32px;height:32px}.brand-mark img{display:block;width:100%;height:100%;border-radius:8px}

/* Keep the brand quieter than the Today heading. */
.brand .identity{font:600 17px Georgia,serif;letter-spacing:0;color:#53675a}
@media(max-width:359px){.brand .identity{font-size:16px}}

/* Balance the compact brand lockup and give Today more breathing room. */
.brand{gap:7px}.brand-mark{width:27px;height:27px}.brand-mark img{border-radius:7px}
.paper #homeView .hero h1{font-size:42px;letter-spacing:.5px}
@media(max-width:359px){.brand-mark{width:25px;height:25px}}
/* Production behavior and small-screen safeguards. */
body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}main{padding-bottom:calc(110px + env(safe-area-inset-bottom))}nav{bottom:calc(20px + env(safe-area-inset-bottom))}button:disabled{opacity:.5;cursor:wait}.modal-open{overflow:hidden}.storage-warning{padding:14px 20px;background:#f4dfd1;color:#7b3828;line-height:1.6}.calendar-period{display:flex;align-items:center;gap:4px;min-width:0}.calendar-period button{background:transparent;font-size:23px;width:25px;height:32px;padding:0;color:var(--muted)}.calendar-period .month{font-size:13px;white-space:nowrap}.calhead{gap:5px}.switch button{padding:7px 8px}.favorite-art{position:absolute;right:8px;top:35px;width:76px;height:95px;display:flex;align-items:center;justify-content:center}.favorite-art>img:not(.photo-sticker){width:60px;height:60px;border-radius:15px;transform:rotate(9deg)}.favorite-art .photo-sticker,.favorite-art .bottle-icon{width:65px;height:78px}.chosen button{padding:0;border:0;background:transparent;color:inherit;font-size:12px}.favorite-option{display:flex;width:100%;align-items:center;gap:13px;background:var(--card);text-align:left;padding:13px;margin:10px 0;border-radius:16px}.favorite-option>span:not(.bottle-icon){min-width:0;overflow-wrap:anywhere}.favorite-option small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.favorite-option .photo-sticker{width:45px;height:55px}.favorite-option .bottle-icon{width:45px;height:55px}.pile .photo-sticker,.pile .bottle-icon{width:52px;height:65px;margin-left:-15px}.form-photo{display:block;width:110px;height:130px;object-fit:cover;border:5px solid #fff9ea;border-radius:12px;margin:15px auto}.form-error{font-size:13px;color:#9b3a29;line-height:1.6}.wide{width:100%;margin-top:12px}.record-note{white-space:pre-wrap;overflow-wrap:anywhere}.toast button{background:transparent;color:#f1d49b;text-decoration:underline;font-weight:600;padding:4px}.settings-card .avatar svg{width:34px;height:34px}.panel{padding-bottom:calc(35px + env(safe-area-inset-bottom))}.paper .favorite h3{overflow:hidden;text-overflow:ellipsis}.money{font-size:clamp(24px,8vw,37px);overflow-wrap:anywhere}.share-options input{min-height:16px}.local-note{overflow-wrap:anywhere}.upload label{margin:0;color:var(--ink);font-size:14px}.history-item>div{min-width:0}.report-lines{table-layout:fixed}.report-lines td{overflow-wrap:anywhere}.hint,.settings-row{line-height:1.6}
@media(max-width:359px){main{padding-left:16px;padding-right:16px}.calendar{padding:16px 12px}.calendar-period .month{font-size:12px}.switch button{padding:7px}.settings-card{padding:18px}.backup-actions{width:calc(50% - 4.5px)}.backup-actions .secondary{font-size:10px}.day{height:51px}.day .bottle-icon,.day .photo-sticker{width:38px;height:46px}.chosen{padding:4px 5px}.chosen button{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.stats-heading h2{font-family:Georgia,serif;letter-spacing:0;word-spacing:0;white-space:nowrap}

.panel .record-form-title{font:600 clamp(18px,5.4vw,22px)/1.6 Georgia,"Songti SC",serif;letter-spacing:.4px;margin:8px 38px 20px 0}
