/* Shared mobile-first visual system: warm paper, evergreen ink, terracotta. */
:root{--bg:#171d1a;--surface:#222c26;--surface-2:#2b3830;--sidebar:#1d2620;--text:#f4f5ee;--muted:#b8c5ba;--line:#425247;--accent:#f2ac86;--accent-ink:#301c10;--danger:#ffb3ad;--warning:#f0cd86;--radius:20px;--shadow:0 18px 60px #0003;--secondary:#b8d6be}
html[data-theme=light]{--bg:#f7f6f2;--surface:#fffefa;--surface-2:#efefe8;--sidebar:#fffefa;--text:#25372d;--muted:#5d6c62;--line:#ccd3c8;--accent:#a4442c;--accent-ink:#fff;--danger:#ad3034;--warning:#80600b;--shadow:0 12px 40px #263c2c12;--secondary:#35654b}
body{letter-spacing:.1px;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei",sans-serif}
button:active,.button:active{filter:brightness(.94)}
.button{border-radius:12px;min-height:48px;font-weight:650}
.button.primary{box-shadow:0 3px 8px color-mix(in srgb,var(--accent) 14%,transparent)}
input,select,textarea{border-radius:12px;font-size:1rem;min-height:48px}
label{font-size:.9375rem}
.hint{font-size:.8125rem;line-height:1.7}
.eyebrow{color:var(--secondary);letter-spacing:1.8px;font-weight:650}
.badge{border-radius:7px;color:var(--secondary);background:color-mix(in srgb,var(--secondary) 9%,var(--surface));border-color:color-mix(in srgb,var(--secondary) 22%,var(--line))}
.panel,.journal-card,.trip-card{border-radius:18px;box-shadow:0 3px 14px #00000004}
.panel>.section-title:first-child{margin-top:0}
.page-heading h1{font-weight:750;letter-spacing:-.5px}
.stat{border-radius:16px;padding:20px}
.stat-label .icon{color:var(--secondary)}
.stat-value{letter-spacing:-.5px}
.sidebar{width:232px;padding:28px 16px 16px}
.workspace{margin-left:232px}
.brand{font-weight:750;letter-spacing:0;margin-bottom:32px}
.brand>.icon{color:var(--accent);width:36px;height:36px}
.brand-en{letter-spacing:1.3px}
.nav-item{min-height:48px;border-radius:12px;font-size:.9375rem}
.nav-item.active{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.topbar{height:76px;padding:0 36px;background:var(--surface);border-bottom-color:var(--line)}
main#main{padding:32px 36px 56px;max-width:1320px}
.hero{border-radius:22px;background:var(--surface-2) url('journey-map.svg') center/cover;min-height:220px;border:0;padding:32px}
.hero:before{background:linear-gradient(90deg,#173428ed,#19382b99 55%,transparent)}
.hero-content .button{background:#fff8e8;color:#283e2f;border:0}
.hero .hero-content h2{font-weight:700;letter-spacing:-.2px}
.hero .eyebrow{color:#d2e6bd}
.hero-tag{background:#183224d4;border-color:#b6cca570;color:#eaf2db}
.hero .text-button{color:#f5d0ac}
.trip-card-cover{background:var(--surface-2) url('journey-map.svg') center/cover;height:180px}
.trip-card:nth-child(3n+2) .trip-card-cover{filter:none;background-position:right}
.trip-card:nth-child(3n+3) .trip-card-cover{filter:none;background-position:left bottom}
.trip-card-title{font-weight:700}
.notice{border-radius:12px;padding:14px 16px;color:var(--muted);background:var(--surface-2);border-color:var(--line);font-size:.875rem}
.date-chip{border-radius:14px;min-width:76px;min-height:84px}
.date-chip.active{box-shadow:0 4px 14px #0001}
.more-link{border-radius:16px;font-weight:650;font-size:1rem;min-height:76px}
.more-link>.icon:first-child{color:var(--secondary);width:26px;height:26px}
.avatar{background:color-mix(in srgb,var(--secondary) 12%,var(--surface));color:var(--secondary);border-color:var(--line);font-weight:650}
.row-actions{gap:8px}.row-actions .icon-button{width:44px;height:44px}
.social-post{overflow:visible}
.social-post-head{gap:12px;align-items:flex-start}
.social-post-head>div:not(.article-actions){min-width:0;flex:1}
.social-post-head strong{overflow-wrap:anywhere;font-size:.9375rem}
.article-actions{position:relative;flex-shrink:0;margin-left:auto}
.article-actions>summary{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer;border-radius:50%;list-style:none;color:var(--muted);font-size:1.5rem}
.article-actions>summary::-webkit-details-marker{display:none}
.article-actions[open]>summary{background:var(--surface-2)}
.article-actions>div{position:absolute;right:0;top:48px;z-index:5;background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:12px;padding:8px;min-width:150px}
.article-actions>div>button{width:100%;justify-content:flex-start;padding:12px;min-height:48px;color:var(--text)}
.article-actions>div>button:last-child{color:var(--danger)}
.article-composer{padding:16px!important}
.post-launch-row{display:flex;gap:12px;align-items:center}
.post-prompt{font:inherit;font-size:1rem;min-height:52px;min-width:0;flex:1;padding:12px 16px;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:28px;text-align:left;line-height:1.5}
.post-launch-actions{display:flex;gap:8px;border-top:1px solid var(--line);margin-top:16px;padding-top:8px}
.post-launch-actions>button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border:0;background:none;color:var(--text);border-radius:10px;font-size:.9375rem}
.post-launch-actions .icon{color:var(--secondary);width:22px;height:22px}
.post-composing{overflow:hidden}
.post-editor{padding:0;width:min(640px,calc(100vw - 32px));height:min(850px,90dvh);max-height:90dvh;overflow:hidden;border:1px solid var(--line)}
.post-editor:not([open]){display:none}
.post-editor form{height:100%;display:flex;flex-direction:column;margin:0}
.post-editor-head{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);flex-shrink:0}
.post-editor-head h2{text-align:center;font-size:1.125rem;margin:0;font-weight:750}
.post-editor-head .button{min-height:44px;padding:8px 14px;font-size:.875rem}
.post-editor-scroll{padding:20px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-bottom:20px;flex:1}
.post-editor .composer-top{margin:0 0 16px}
.post-editor .composer-top .hint{margin:2px 0 0}
.post-editor .post-body-label{margin:0;display:block}
.post-editor .post-body-label textarea{resize:vertical;border:0;background:none;border-radius:0;padding:0;min-height:180px;max-height:50vh;font-size:1.1875rem;line-height:1.8;box-shadow:none}
.post-body-label textarea:focus-visible{outline-offset:6px}
.post-trip-tag{display:flex;align-items:center;gap:12px;border-radius:14px;padding:12px 16px;background:var(--surface-2);border:1px solid var(--line);margin:16px 0}
.post-trip-tag>.icon{color:var(--secondary);width:28px;height:28px}
.post-trip-tag>span{min-width:0}
.post-trip-tag strong{display:block;font-size:.9375rem;overflow-wrap:anywhere}
.post-trip-tag small{color:var(--muted);font-size:.75rem}
.post-option-panel{border-top:1px solid var(--line);padding:0}
.post-option-panel>summary{display:flex;gap:10px;align-items:center;min-height:52px;cursor:pointer;padding:12px 0;font-size:.9375rem;color:var(--muted);list-style:none}
.post-option-panel>summary:after{content:'＋';margin-left:auto}
.post-option-panel[open]>summary:after{content:'−'}
.post-option-panel>summary::-webkit-details-marker{display:none}
.post-option-panel .checkin-fields{border:0;padding:0;margin:0}
.post-option-panel label{font-size:.9375rem}
.post-editor .article-kept-media{margin:0}
.post-editor .kept-photo{font-size:.8125rem}
.post-editor .selected-photo{position:relative;border-radius:12px;overflow:hidden}
.post-editor .selected-photo .icon-button{width:44px;height:44px;background:#17251fe8;color:#fff;position:absolute;right:4px;top:4px}
.post-editor-tools{flex-shrink:0;display:flex;align-items:center;justify-content:space-around;gap:8px;padding:8px 16px;border-top:1px solid var(--line);background:var(--surface)}
.post-editor-tools>span{font-size:.8125rem;color:var(--muted)}
.post-tool{position:relative;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;min-width:48px;min-height:52px;color:var(--secondary);border:0;background:none;border-radius:10px;margin:0!important;padding:4px;cursor:pointer;font-size:.75rem!important}
.post-tool input[type=file]{position:absolute;width:1px;height:1px;min-height:0;opacity:0;padding:0;overflow:hidden;clip-path:inset(50%)}
.post-media-limit{flex-shrink:0;text-align:center;margin:0;padding:0 12px 8px;background:var(--surface);font-size:.75rem}
.toast{overflow-wrap:anywhere;width:max-content;max-width:min(90vw,560px)}
.feature-chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.feature-chips .button.active{color:var(--accent-ink);background:var(--accent);border-color:var(--accent)}
.feature-chips .button{white-space:normal}
.day-driving{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px;background:var(--surface-2);border-radius:14px;margin-bottom:20px}
.place-photo-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.place-photo-strip img{width:100%;height:110px;object-fit:cover;border-radius:10px}
.place-photo-tile{position:relative;min-width:0}.place-photo-tile .icon-button{position:absolute;right:2px;top:2px;background:#17251fdd;color:#fff;width:44px;height:44px}
.member-detail-list .settlement-item{align-items:flex-start}
.report-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
@media(max-width:900px){
 .workspace{margin-left:0}
 .topbar{height:64px;padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));position:sticky;top:0;z-index:18;background:var(--surface)}
 .breadcrumbs{gap:8px;font-size:.8125rem}.breadcrumbs>a{font-weight:700;color:var(--text)}
 .topbar-actions{gap:4px}
 .avatar-small{width:40px;height:40px}
 main#main{padding:20px max(16px,env(safe-area-inset-right)) 32px max(16px,env(safe-area-inset-left))}
 .page-heading{margin:16px 0 24px;align-items:center;flex-wrap:wrap}
 .page-heading h1{font-size:1.625rem;margin:0 0 8px;letter-spacing:-.5px}
 .page-heading .eyebrow{display:none}
 .page-heading p{font-size:.9375rem;line-height:1.7}
 .page-heading>.button{font-size:.875rem;padding:10px 14px;min-height:48px}
 .trip-header{gap:8px;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
 .trip-switch{width:calc(100% - 95px);flex:1;max-width:none;min-width:0;font-weight:650}
 .trip-header>.muted{width:100%;order:3;font-size:.8125rem}
 .trip-header>.button{order:4;min-height:44px;font-size:.8125rem;padding:8px 12px;display:none}
 .hero{padding:24px;min-height:200px;margin:20px 0 24px}
 .hero h2{font-size:1.5rem;line-height:1.5}
 .hero p{font-size:.9375rem}
 .hero-content{max-width:100%}
 .panel,.journal-card{padding:20px;margin:16px 0;border-radius:18px}
 .section-title{margin:20px 0 16px;flex-wrap:wrap;gap:8px}
 .section-title h2{font-size:1.125rem;letter-spacing:-.25px}
 .stats-grid{gap:10px;margin:20px 0}
 .stat{padding:16px;border-radius:14px}
 .stat-value{font-size:1.25rem;margin-top:8px}
 .stat-label{font-size:.8125rem;gap:6px}
 .two-col{grid-template-columns:minmax(0,1fr);gap:0}
 .mobile-nav{padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:var(--surface);box-shadow:0 -4px 20px #00000006;gap:4px}
 .mobile-nav>a,.mobile-nav>button{flex:1;min-width:0;min-height:48px;font-size:.6875rem;padding:4px 0;gap:2px;line-height:1.5;border-radius:12px}
 .mobile-nav .icon{width:22px;height:22px}
 .mobile-nav .active{color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,var(--surface));font-weight:750}
 .app-footer{padding:24px 16px calc(110px + env(safe-area-inset-bottom));font-size:.6875rem;letter-spacing:1px}
 .expense-quick-bar{bottom:calc(65px + env(safe-area-inset-bottom));padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left))}
 .expense-detail{padding:16px}
 .expense-card{padding:16px;border-radius:14px}
 .expense-card .badge{font-size:.75rem}
 .expense-stats .stat{padding:12px}
 .expense-stats .stat-value{font-size:1.125rem}
 .expense-date{font-weight:650}
 .expense-card-actions .button{border-color:var(--line)}
 .expense-balances .settlement-item{font-size:1rem}
 .date-strip{margin:16px 0;padding-bottom:12px;scroll-snap-type:x proximity}
 .date-chip{scroll-snap-align:center;min-width:72px;min-height:80px}
 .timeline:before,.timeline-time:after{display:none}
 .timeline-item{grid-template-columns:minmax(0,1fr);gap:8px;padding-bottom:24px}
 .timeline-time{padding:0;font-size:.9375rem;color:var(--secondary);font-weight:700;text-align:left}
 .timeline-card{padding:18px;border-radius:16px}
 .timeline-card h3{font-size:1.0625rem;overflow-wrap:anywhere;min-width:0}
 .timeline-card .flex-between,.journal-card>.flex-between{align-items:flex-start;flex-wrap:wrap;gap:8px}
 .timeline-card .row-actions .icon-button{width:44px;height:44px}
 .timeline-card p,.journal-body{font-size:1rem;line-height:1.9}
 .journal-grid{gap:0}
 .list-row{gap:12px;flex-wrap:wrap}
 .list-row-content h3{font-size:1rem}.list-row-content p{font-size:.875rem}
 .check-row{flex-wrap:wrap;gap:8px}.check-row label{min-height:48px;font-size:1rem;min-width:120px}
 .check-row .row-actions{margin-left:auto}
 .filter-row{gap:12px}
 .form-grid{grid-template-columns:minmax(0,1fr);gap:0}
 .form-grid>.span-2{grid-column:auto}
 .form-grid label{margin-bottom:20px}
 .form-actions{gap:12px}
 #editor{position:fixed;inset:var(--finance-viewport-top,0) 0 auto;margin:0;width:100%;max-width:none;height:var(--finance-viewport-height,100dvh);max-height:var(--finance-viewport-height,100dvh);padding:0;border:0;border-radius:0;display:flex;flex-direction:column;overflow:hidden}
 #editor:not([open]){display:none}
 #editor .dialog-head{position:static;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;flex-shrink:0}
 #editor .dialog-head .icon-button{margin-right:0}
 #editor-body{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:20px 16px 0;scroll-padding-bottom:100px}
 #edit-form>.form-actions{position:sticky;bottom:0;background:var(--surface);padding:12px 0 calc(12px + env(safe-area-inset-bottom));z-index:3}
 #edit-form>.form-actions .primary{flex:1}
 .finance-editor .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
 .finance-editor .form-grid>.span-2{grid-column:1/-1}
 .finance-editor .form-grid label{margin-bottom:16px}
 .finance-editor .section-title{flex-wrap:nowrap}
 .share-body .share-main{padding:0 16px 40px}
 .share-top{background:var(--surface);padding:12px 16px}
 .social-profile{border-radius:0 0 18px 18px;margin-left:-16px;margin-right:-16px}
 .social-cover{height:160px}
 .social-identity{padding:20px 16px;gap:12px;align-items:flex-start}
 .social-identity h1{font-size:1.625rem;line-height:1.4;letter-spacing:-.5px}
 .social-identity>.button{width:100%;margin:0}
 .share-tabs{padding:0 12px;gap:8px}.share-tabs>button{font-size:.9375rem;min-height:52px}
 .social-post{padding:0!important;margin:16px 0;border-radius:16px}
 .social-post-head{padding:16px;gap:10px}
 .social-post-text{padding:0 16px 16px}
 .social-post-footer{padding:8px 16px;gap:8px}
 .social-post-footer .text-button{font-size:.875rem}
 .social-post .journal-body{font-size:1rem}
 .post-editor{position:fixed;inset:var(--finance-viewport-top,0) 0 auto;width:100%;max-width:none;height:var(--finance-viewport-height,100dvh);max-height:var(--finance-viewport-height,100dvh);margin:0;border:0;border-radius:0}
 .post-editor-head{padding:calc(8px + env(safe-area-inset-top)) 12px 8px;gap:4px}
 .post-editor-head h2{font-size:1rem}
 .post-editor-head .button{font-size:.875rem;padding:8px 12px}
 .post-editor-scroll{padding:20px 16px}
 .post-editor-tools{padding:8px 12px;gap:4px}
 .post-media-limit{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .post-editor:not(:has(.post-media-limit)) .post-editor-tools{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .post-launch-actions{gap:4px}.post-launch-actions>button{font-size:.875rem;gap:6px}
 .post-prompt{padding:12px 14px;font-size:.9375rem}
 .article-composer .social-avatar{width:44px;height:44px;flex-shrink:0}
 .post-editor .post-body-label textarea{font-size:1.125rem;min-height:170px}
 .article-photo-grid{gap:3px}.article-photo-grid img{border-radius:0}
 .photo-viewer .dialog-head{flex-wrap:wrap}
 .toast{left:50%;font-size:.875rem;max-width:calc(100vw - 32px)}
 .auth-panel{background:var(--bg);padding:32px 24px}
 .auth-mobile-brand{font-weight:750;letter-spacing:-.5px;color:var(--text);margin-bottom:36px}
 .auth-card h2{font-size:1.75rem;font-weight:750;letter-spacing:-.5px}
 .auth-card input{background:var(--surface);font-size:1rem;border-radius:12px}
 .auth-card label{font-size:.9375rem}
 .auth-card .button{border-radius:12px;min-height:52px;font-size:1rem}
}
@media(max-width:359px){.finance-editor .form-grid{grid-template-columns:minmax(0,1fr)}.finance-editor #split-people{grid-template-columns:minmax(0,1fr)}.post-editor-tools>span{display:none}.page-heading>.button{width:100%}}
@media print{.post-editor,.post-launch-actions,.expense-quick-bar{display:none!important}}
@media(max-width:900px){html,body{overflow-x:clip}.workspace{min-width:0;overflow-x:clip}.photo-viewer>img{display:block;width:100%;max-height:65dvh;object-fit:contain}.photo-viewer .report-actions{padding:0 16px;align-items:center;justify-content:space-between}.more-grid>button.more-link{text-align:left;font:inherit;color:var(--text);background:var(--surface);width:100%}}
.post-editor .post-body-label textarea{border-radius:10px}.post-body-label textarea:focus-visible{outline-width:2px;outline-offset:4px}.share-visibility{font-size:.8125rem;color:var(--muted);margin:8px 0 20px}.share-visibility summary{min-height:44px;cursor:pointer;display:flex;align-items:center;gap:8px}.share-visibility summary:before{content:'＋'}.share-visibility[open] summary:before{content:'−'}
.post-option-panel:not([open]){display:none}
@media(max-width:900px){.avatar-small{width:44px;height:44px}.upload-label{min-height:48px;display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}.button.small{font-size:.875rem}.share-options label{min-height:48px;display:flex;align-items:center}}
.share-top-actions{display:flex;align-items:center;gap:8px}.share-top .brand{margin:0}.share-top-actions .button{font-size:.875rem}.share-body #share-preferences{max-height:85dvh}.share-body #share-preferences .panel{margin:0;border:0}.share-body #share-preferences summary{min-height:48px;cursor:pointer}.share-body #share-preferences p{font-size:1rem}
@media(max-width:900px){.share-top .brand{font-size:1.25rem;gap:8px}.share-top .brand>.icon{width:28px;height:28px}.share-top .brand-en{display:none}.share-top .share-top-actions{gap:4px}.share-top .share-top-actions .button{font-size:.8125rem;padding:8px 12px}.share-top{gap:8px;flex-wrap:wrap}}
/* Account assignment and personal trip organization */
.member-cards{display:grid;gap:16px}.member-card{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.member-card:last-child{border-bottom:0}.member-card h3{margin:0 0 8px}.member-card p{margin:6px 0;overflow-wrap:anywhere}.member-card-actions,.trip-card-tools,.permission-tags{display:flex;flex-wrap:wrap;gap:8px}.member-card-actions{justify-content:flex-end;flex-shrink:0}.permission-grid{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:12px;display:grid;gap:12px}.permission-grid label{margin:0}.permission-grid .checkbox-label{min-height:44px}.trip-card-tools{margin:12px 0}.account-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}.account-amounts span{display:grid;gap:4px}.permission-tags .badge{white-space:normal;line-height:1.6}.account-shortcut p{margin-bottom:16px}[hidden]{display:none!important}
@media(max-width:767px){.member-card{flex-direction:column;gap:14px}.member-card-actions{width:100%;justify-content:flex-start}.member-card-actions .button{min-height:44px;flex:1 1 auto}.member-card-actions .button.danger{flex-grow:0}.permission-grid{padding:12px}.account-amounts{gap:12px}.toolbar>.tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap}.toolbar>.tabs .tab{flex-shrink:0}.trip-card-tools .button{min-height:44px}.permission-tags{gap:6px}.permission-tags .badge{font-size:12px}}
/* Private expense evidence, optimized for one-handed camera/library selection. */
.receipt-editor{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}.receipt-editor h3{margin:0}.receipt-editor .section-title{margin:0 0 12px}.receipt-pickers{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.receipt-picker{position:relative;display:flex;flex:1;gap:8px;align-items:center;justify-content:center;margin:0;min-height:48px;cursor:pointer;overflow:hidden}.receipt-picker input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.receipt-picker:focus-within{outline:3px solid var(--accent);outline-offset:3px}.receipt-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.receipt-preview{min-width:0;display:flex;flex-direction:column;gap:8px}.receipt-preview a{display:block;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}.receipt-preview img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;display:block}.receipt-preview button{min-height:44px;gap:4px;padding:8px;justify-content:center}.receipt-preview button .icon{width:16px;height:16px}.receipt-summary{margin:8px 0;min-height:44px;gap:8px}.receipt-gallery{display:grid;gap:20px}.receipt-gallery a{display:block;color:var(--text)}.receipt-gallery img{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain;background:var(--surface-2);border-radius:12px}.receipt-gallery span{display:block;padding:12px;text-align:center}.trip-list-link{flex-shrink:0}
@media(max-width:480px){.receipt-previews{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-editor{padding:12px}.receipt-pickers{gap:8px}.receipt-picker{font-size:.9rem}.trip-header .trip-list-link{min-height:44px}.receipt-status{overflow-wrap:anywhere}}
.expense-location{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:16px}.expense-location h3{margin:0 0 16px}.expense-location-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.875rem;margin:8px 0}.expense-location-summary .icon{width:18px;height:18px;color:var(--secondary)}.expense-location-summary span{overflow-wrap:anywhere}.expense-location-summary .text-button{min-height:44px}.expense-footprints{scroll-margin-top:90px}.expense-footprints>summary{cursor:pointer;font-weight:650;min-height:44px;line-height:1.6}.expense-footprints>summary .icon{vertical-align:middle}.footprints-map{height:360px;width:100%;border:1px solid var(--line);border-radius:14px;z-index:0;background:var(--surface-2);isolation:isolate}.footprint-pin{background:var(--accent);border:3px solid var(--surface);color:var(--accent-ink);border-radius:50%;display:grid!important;place-items:center;font-weight:750;font-size:16px;box-shadow:0 2px 6px #0004}.footprint-pin:focus{outline:3px solid var(--text);outline-offset:3px}.footprint-popup{font:14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang TC",sans-serif;color:var(--text)}.footprint-popup p{margin:8px 0}.footprint-popup .button{font-size:14px}.footprints-map .leaflet-popup-content-wrapper,.footprints-map .leaflet-popup-tip{background:var(--surface);color:var(--text)}.footprints-map .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;background:var(--surface);color:var(--text)}.footprints-map .leaflet-control-attribution{background:var(--surface);color:var(--text)}.footprints-map .leaflet-control-attribution a{color:var(--accent)}.footprint-row{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.footprint-row>.button{flex-shrink:0;min-width:44px}.footprint-row p{margin:6px 0;overflow-wrap:anywhere}.footprint-row>div{min-width:0}.footprints-list{margin:12px 0}
@media(max-width:480px){.footprints-map{height:320px}.expense-location{padding:12px}.expense-location .receipt-pickers .button{flex:1}.expense-footprints{scroll-margin-top:76px}.footprints-map .leaflet-popup-content{min-width:180px;max-width:240px}}
.expense-evidence-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 20px}.expense-evidence-shortcuts .button{flex:1;min-height:48px}.expense-location,.receipt-editor{scroll-margin-top:16px}
