@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:.8% .8% 18%}.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,.section-card{border-radius:clamp(24px,3vw,40px)}.top-hero__copy{text-align:center;background:radial-gradient(circle at 100% 0,#b0855a47,#0000 34%),linear-gradient(#ece0d2f0,#e0d0c0f0);padding:5% 5.5%}.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:2%;font-size:clamp(1.55rem,5.8vw,2.55rem);line-height:1.06}.hero-description{text-align:center;font-size:82%}.hero-avatar-shell{place-items:center;margin-top:3.5%;display:grid}.hero-avatar{aspect-ratio:1;object-fit:cover;border:.3rem solid #fff9f1db;border-radius:50%;width:31.05%;box-shadow:0 1rem 2rem #472e1c2e}.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}.story-block p{white-space:pre-line}.content-stack{gap:1.6%;margin-top:1.6%;display:grid}.section-card{padding:3.1%}.section-head{gap:1.8%;display:grid}.section-head h2{font-size:114%}.section-head--center{text-align:center}.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:2.8%}.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:3.2%}.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:49% 49%;place-items:stretch stretch;gap:2%;margin-top:2.8%;display:grid}.support-panel--compact{margin-bottom:1rem}.support-panel__qr{align-items:center;width:100%;display:grid}.support-panel__info,.support-panel__qr-box{text-align:center;justify-items:center;gap:1.5%;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:10%;width:66%;padding:4%}.qr-image--left{width:min(100%,9rem);margin:0}.qr-image--right{width:64%;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,.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:1%;padding:3%;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-size:74%;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:3% 2.6% 24%;position:fixed;inset:0;overflow-y:auto}.gallery-modal__content{background:#fffbf6fa;max-width:96%;margin:0 auto;padding-bottom:22%}.detail-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2%}.detail-media-card{cursor:pointer;background:#f4e7d6;border:none;border-radius:5%;padding:0;overflow:hidden}.detail-media-card__box{aspect-ratio:3/4;background:linear-gradient(#edd7be2e,#bf99763d),#f4e7d6}.detail-media-card__caption{gap:.3rem;padding:.8rem;display:grid}.detail-media{object-fit:cover;width:100%;height:100%}.viewer-stage{touch-action:pan-y;background:linear-gradient(#edd7be24,#bf997633),#f4e7d6eb;border-radius:clamp(20px,2.8vw,32px);place-items:center;min-height:54vh;display:grid;position:relative;overflow:hidden}.viewer-media{object-fit:contain;width:100%;max-height:72vh;display:block}.viewer-nav{width:clamp(2.8rem,10vw,4rem);height:clamp(2.8rem,10vw,4rem);color:var(--text-main);cursor:pointer;background:#fff9f1e0;border:none;border-radius:999px;place-items:center;font-size:clamp(1.8rem,6vw,2.4rem);line-height:1;display:grid;position:absolute;top:50%;transform:translateY(-50%);box-shadow:0 .8rem 1.6rem #472e1c29}.viewer-nav--prev{left:2.4%}.viewer-nav--next{right:2.4%}.placeholder-card{text-align:center;width:100%;height:100%;color:var(--text-muted);place-items:center;padding:1rem;display:grid}.controls-panel{gap:1.8%;width:100%;margin-top:2.8%;display:grid}.summary-grid{grid-template-columns:33% 33% 34%;gap:1%;width:100%}.summary-card{text-align:center;gap:1%;padding:3% 2%;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:2.8%;padding-bottom:22%}.transaction-row{background:#fff9f285;border:1px solid #58402d24;border-radius:4%;grid-template-columns:13% 21% 16% 28% 22%;align-items:center;gap:.2rem .8%;padding:2.5% 2.2%;display:grid}.transaction-date,.transaction-time,.transaction-name,.transaction-amount{font-size:72%;line-height:1.02}.transaction-date,.transaction-time{color:var(--text-soft);white-space:nowrap;text-align:center;justify-self:center;padding-inline:0}.transaction-type{width:100%;padding:8% 2%;font-size:68%;line-height:1}.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(98%,720px);padding:.45rem;position:fixed;bottom:1.2%;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}.source-pill{white-space:normal;text-align:center;width:100%;padding:3.2% 3.6%;line-height:1.24}.filter-row--compact{grid-template-columns:24% 24% 24% 28%;gap:1%;width:100%;display:grid}.filter-button--sort:before{content:"⇅ ";font-weight:700}.modal-actions--floating{z-index:30;justify-items:center;width:min(92%,640px);display:grid;position:fixed;bottom:2%;left:50%;transform:translate(-50%)}.modal-actions__gradient{z-index:-1;pointer-events:none;background:linear-gradient(#fffbf600,#fffbf6fa 72%);position:absolute;inset:-180% 0 -40%}.secondary-button--floating{min-width:56%;min-height:4rem;padding:1rem 1.4rem;font-size:102%;box-shadow:0 1rem 2rem #472e1c29}@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:.5% .5% 18%}.top-hero__copy,.section-card{padding:2.4%}.section-head h2{font-size:108%}.gallery-card__copy{padding:2.6%}.gallery-card__copy h3{font-size:82%;line-height:1.08}.gallery-card__date,.gallery-card__subtitle{font-size:72%}.support-panel{grid-template-columns:48% 52%;gap:1.4%}.support-panel__info{gap:1.2%}.support-panel__info h3{font-size:94%}.support-panel__info strong,.support-panel__info p,.support-panel__qr-title{font-size:76%;line-height:1.1}.button-row{gap:.42rem}.filter-row--compact{gap:.8%}.primary-button,.secondary-button,.filter-button{min-height:2.34rem;padding:2.2% 1%;font-size:76%;line-height:1.02}.filter-button--sort{letter-spacing:-.01em}.qr-image--right{width:72%}.transaction-row{grid-template-columns:13% 21% 16% 28% 22%;gap:.2rem .8%;padding:2.4% 2%}.transaction-date,.transaction-time,.transaction-name,.transaction-amount{font-size:72%}.transaction-name{padding-right:.1rem}.secondary-button--floating{min-width:56%;min-height:4rem;font-size:102%}}@media (width>=760px){.app-shell{padding:.6% .6% 12%}.top-hero__copy,.section-card{padding:2.4%}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-avatar{width:18.4%}.support-panel{grid-template-columns:1fr 1fr}.qr-image--right{width:52%}.transaction-row{grid-template-columns:10% 18% 14% 38% 20%;padding:1.8% 2%}.transaction-date,.transaction-time,.transaction-name,.transaction-amount{font-size:80%}}
