@import "https://fonts.googleapis.com/css2?family=Mali:wght@300&family=Noto+Sans+Thai+Looped:wght@400&display=swap";:root{color:#563f31;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:radial-gradient(circle at top,#f4d6b780,#0000 36%),linear-gradient(#f8f0e5 0%,#f2e8dc 42%,#efe3d5 100%);font-family:Segoe UI,Noto Sans KR,Apple SD Gothic Neo,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-width:320px;min-height:100vh;margin:0}button,select{font:inherit}img{max-width:100%}#root{width:min(100%,1100px);min-height:100vh;margin:0 auto}html[lang=th] body,html[lang=th] button,html[lang=th] select,html[lang=th] input,html[lang=th] textarea{font-family:Mali,Noto Sans Thai Looped,Segoe UI,sans-serif;font-weight:300}:root{--bg-main:#d8c4ae;--bg-soft:#e6d6c494;--bg-card:#f5ece1db;--bg-accent:#d3b393;--border-soft:#58402d33;--text-main:#352419;--text-soft:#5b4333;--text-muted:#7a5f4b;--shadow-soft:0 20px 45px #472e1c29;--chip-income:#e7f2df;--chip-expense:#fae4d8;--chip-neutral:#f7ebde}html{scroll-padding-bottom:5rem}body{color:var(--text-main)}.app-shell{min-height:100vh;padding:.28rem .28rem 5.05rem}.top-hero{padding:.5rem 0 .2rem}.top-hero__copy,.section-card,.nav-shell{background:var(--bg-card);border:1px solid var(--border-soft);box-shadow:var(--shadow-soft)}.top-hero__copy{background:radial-gradient(circle at 100% 0,#b0855a47,#0000 34%),linear-gradient(#ece0d2f0,#e0d0c0f0);border-radius:2rem;padding:1.25rem}.eyebrow{letter-spacing:.16em;text-transform:uppercase;color:#936343;margin:0;font-size:.78rem;font-weight:700}.top-hero h1,.section-head h2,.story-block h3,.gallery-modal__content h3,.gallery-card__copy h3,.support-panel__info h3{color:var(--text-main);margin:0}html[lang=th] .top-hero h1,html[lang=th] .section-head h2,html[lang=th] .story-block h3,html[lang=th] .gallery-modal__content h3,html[lang=th] .gallery-card__copy h3,html[lang=th] .support-panel__info h3{font-family:Noto Sans Thai Looped,Segoe UI,sans-serif;font-weight:400}html[lang=th] .hero-description,html[lang=th] .section-description,html[lang=th] .story-block p,html[lang=th] .story-account p,html[lang=th] .transaction-meta,html[lang=th] .summary-card span,html[lang=th] .transaction-title,html[lang=th] .support-panel__info p,html[lang=th] .support-panel__info strong,html[lang=th] .support-panel__qr-title{font-family:Mali,Noto Sans Thai Looped,Segoe UI,sans-serif;font-weight:300}.top-hero h1{margin-top:.5rem;font-size:clamp(2rem,8vw,3.7rem);line-height:1.06}.hero-description,.section-description,.story-block p,.story-account p,.placeholder-text,.gallery-card__copy p,.gallery-modal__content p,.summary-card span,.transaction-meta,.empty-state p,.support-panel__info p{color:var(--text-soft);margin:0}.content-stack{gap:.7rem;margin-top:.7rem;display:grid}.section-card{border-radius:1.5rem;padding:.72rem}.section-head{gap:.5rem;display:grid}.section-head h2{font-size:1.5rem}.story-grid,.summary-grid,.gallery-grid,.detail-media-grid,.transaction-list{gap:.7rem;display:grid}.story-grid,.summary-grid,.gallery-grid,.detail-media-grid{margin-top:.8rem}.story-block,.story-account,.support-panel,.summary-card,.controls-panel,.gallery-card,.gallery-modal__content,.empty-state{background:var(--bg-soft);border:1px solid var(--border-soft);border-radius:1.35rem}.story-block,.story-account,.support-panel,.summary-card,.controls-panel,.gallery-modal__content,.empty-state{padding:.72rem}.story-grid{grid-template-columns:1fr}.story-block h3,.gallery-card__copy h3,.gallery-modal__content h3{margin-bottom:.4rem;font-size:1.05rem}.story-footer{gap:.85rem;margin-top:1rem;display:grid}.support-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);place-items:start center;gap:.7rem;margin-top:.82rem;display:grid}.support-panel--compact{margin-bottom:1rem}.support-panel__qr{justify-content:center;width:100%;display:flex}.support-panel__info{text-align:left;justify-self:center;gap:.35rem;width:100%;display:grid}.support-panel__qr-box{text-align:center;justify-items:center;gap:.45rem;width:100%;display:grid}.support-panel__qr-title{color:var(--text-main);margin:0;font-weight:700}.support-panel__info strong,.story-account strong,.summary-card strong,.transaction-amount,.gallery-card__date,.gallery-modal__date{color:var(--text-main)}.support-panel__info strong,.story-account strong,.summary-card strong,.transaction-amount{font-size:1.1rem}.qr-image{background:#fff;border:1px solid #795c4214;border-radius:1.25rem;width:min(100%,9.2rem);padding:.5rem}.qr-image--left{width:min(100%,9rem);margin:0}.qr-image--right{width:min(100%,8rem);margin:0}.button-row,.control-row,.filter-row,.modal-actions{flex-wrap:wrap;gap:.65rem;display:flex}.primary-button,.secondary-button,.control-select,.filter-button{font:inherit;border-radius:999px}.primary-button,.secondary-button,.filter-button{cursor:pointer;border:1px solid #0000;min-height:2.9rem;padding:.75rem 1.1rem;transition:transform .18s,box-shadow .18s,background-color .18s}.support-panel .button-row{justify-content:flex-start}.support-panel__qr-actions{justify-content:center}.primary-button{color:#fff8f0;background:#9e6a44;box-shadow:0 10px 22px #7a4d2d3d}.secondary-button{color:#5d4332;background:#e9dbc9;border-color:#58402d29}.filter-button{color:#5f4636;background:#dfccb6;border-color:#58402d29}.filter-button.is-active{color:#fff8f0;background:#664835}.primary-button:hover,.secondary-button:hover,.filter-button:hover{transform:translateY(-1px)}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.gallery-card{cursor:pointer;padding:0;overflow:hidden}.gallery-card__thumb{aspect-ratio:1;background:linear-gradient(#ebd1b22e,#c9a37e42),#f6ecde;border:none;width:100%;padding:0;display:block;position:relative}.gallery-card__thumb img,.gallery-card__thumb video,.detail-media-card img,.detail-media-card video{object-fit:cover;width:100%;height:100%;display:block}.gallery-card__copy{gap:.16rem;padding:.52rem;display:grid}.gallery-card__date,.gallery-modal__date{font-size:.92rem;font-weight:700}.gallery-card__subtitle,.gallery-modal__subtitle{color:var(--text-main);font-weight:700;line-height:1.12}.media-type-pill,.source-pill,.transaction-type,.placeholder-chip{border-radius:999px;justify-content:center;align-items:center;width:fit-content;padding:.35rem .7rem;font-size:.78rem;font-weight:700;display:inline-flex}.media-type-pill,.placeholder-chip,.source-pill.sample{background:var(--chip-neutral);color:#71553f}.source-pill.google-sheet,.transaction-type.income{background:var(--chip-income);color:#46633d}.source-pill.sheet-error,.transaction-type.expense{background:var(--chip-expense);color:#8a5036}.gallery-empty,.empty-state{text-align:center;justify-items:center}.empty-state{padding:1.6rem 1rem}.gallery-modal{z-index:20;background:#4330237a;padding:1rem 1rem 6rem;position:fixed;inset:0;overflow-y:auto}.gallery-modal__content{background:#fffbf6fa;max-width:860px;margin:0 auto}.detail-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.detail-media-card{background:#f4e7d6;border-radius:1rem;overflow:hidden}.detail-media-card__box{aspect-ratio:1;background:linear-gradient(#edd7be2e,#bf99763d),#f4e7d6}.detail-media-card__caption{gap:.3rem;padding:.8rem;display:grid}.placeholder-card{text-align:center;width:100%;height:100%;color:var(--text-muted);place-items:center;padding:1rem;display:grid}.controls-panel{gap:.55rem;margin-top:.82rem;display:grid}.summary-grid{grid-template-columns:33% 33% 34%;gap:.42rem}.summary-card{text-align:center;gap:.12rem;padding:.52rem .34rem;display:grid}.summary-card span{font-size:78%;line-height:1}.summary-card strong{font-size:92%;line-height:1.04}.transaction-list{margin-top:.72rem}.transaction-row{background:#fff9f285;border:1px solid #58402d24;border-radius:.9rem;grid-template-columns:18% 29% 31% 22%;align-items:center;gap:.2rem .45rem;padding:.5rem .55rem;display:grid}.transaction-time,.transaction-name,.transaction-amount{font-size:84%;line-height:1.02}.transaction-time{color:var(--text-soft);white-space:nowrap}.transaction-name{min-width:0;color:var(--text-main);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.transaction-amount{text-align:right;white-space:nowrap;justify-self:end}.nav-shell{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fff9f1f2;border-radius:1.4rem;width:min(100% - .45rem,720px);padding:.45rem;position:fixed;bottom:.85rem;left:50%;transform:translate(-50%)}.nav-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin:0;padding:0;list-style:none;display:grid}.nav-link{color:var(--text-soft);border-radius:1rem;justify-items:center;gap:.2rem;padding:.55rem .35rem;text-decoration:none;display:grid}.nav-link:hover{background:#f0e2d3e6}.nav-icon{font-size:1.15rem}.nav-label{font-size:.82rem;font-weight:700}html[lang=th] .nav-link,html[lang=th] .nav-label{font-family:Mali,Noto Sans Thai Looped,sans-serif;font-weight:300}@media (width<=759px){.summary-grid{grid-template-columns:33% 33% 34%}.detail-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{padding:.2rem .2rem 4.9rem}.top-hero__copy,.section-card{padding:.52rem}.section-head h2{font-size:1.28rem}.gallery-card__copy{padding:.44rem}.gallery-card__copy h3{font-size:.88rem;line-height:1.08}.gallery-card__date,.gallery-card__subtitle{font-size:.78rem}.support-panel{grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:.48rem}.support-panel__info{gap:.24rem}.support-panel__info h3{font-size:1rem}.support-panel__info strong,.support-panel__info p,.support-panel__qr-title{font-size:.92rem;line-height:1.1}.button-row{gap:.42rem}.filter-row--compact{grid-template-columns:24% 24% 24% 28%;gap:.28rem;width:100%;display:grid}.primary-button,.secondary-button,.filter-button{min-height:2.34rem;padding:.42rem .22rem;font-size:76%;line-height:1.02}.filter-button--sort{letter-spacing:-.01em}.qr-image--right{width:min(100%,7.2rem)}.transaction-row{grid-template-columns:17% 29% 30% 24%;gap:.18rem .34rem;padding:.48rem .45rem}.transaction-type{width:100%;padding:.28rem .2rem;font-size:70%;line-height:1}.transaction-time,.transaction-name,.transaction-amount{font-size:78%}.transaction-name{padding-right:.1rem}}@media (width>=760px){.app-shell{padding:.72rem .72rem 5.6rem}.top-hero__copy,.section-card{padding:.9rem}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-footer,.controls-panel{grid-template-columns:1fr}}
