
:root{--bg:#f7f5f0;--white:#fff;--ink:#223936;--muted:#6c7974;--line:#e8e8df;--green:#276b5d;--deep:#173f3c;--light:#e4f0e9;--coral:#c86642;--sand:#f3e6d3;--shadow:0 5px 22px #233b3510;--radius:19px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d49361;outline-offset:2px}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1.5px;line-height:1.12;font-weight:760}h2{font-size:18px;letter-spacing:-.45px}h3{font-size:14px;letter-spacing:-.15px}small,.small{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted)}.app{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.side{position:sticky;top:0;height:100vh;background:var(--white);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 18px 20px}.brand{font-weight:800;font-size:23px;letter-spacing:-1.3px;display:flex;gap:9px;align-items:center;margin:0 8px 31px}.brand small{color:var(--coral);font-size:inherit}.mark{height:32px;width:32px;border-radius:11px;background:var(--deep);color:white;display:grid;place-items:center}.tripnav{background:#f3f5f0;border:1px solid #e9ece5;border-radius:14px;padding:12px;margin-bottom:28px}.tripnav strong{display:block}.tripnav small{font-size:11px}.nav{display:grid;gap:3px}.nav button,.mobile-nav button{background:none;border:0;display:flex;align-items:center;gap:12px;padding:12px 11px;border-radius:11px;text-align:left;color:#677570;font-weight:620}.nav button.active{background:var(--light);color:var(--deep);font-weight:760}.nav button:hover{background:#f0f4ef}.nav .navlabel{margin:17px 10px 4px}.sidebottom{margin-top:auto;border-top:1px solid var(--line);padding-top:16px}.sidebottom button{width:100%;text-align:left;background:none;border:0;display:flex;align-items:center;gap:10px;padding:8px}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;color:var(--deep);font-size:12px;font-weight:800;border:2px solid white}.avatar.lg{width:44px;height:44px}.avatar.sm{width:27px;height:27px;font-size:10px}.avatar-stack{display:flex;align-items:center;flex-wrap:nowrap;padding-left:0}.avatar-stack .avatar+.avatar{margin-left:-8px}.avatar-stack .avatar{border:2px solid var(--white)}.main{width:100%;max-width:1440px;padding:27px 34px 60px;margin:0 auto;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.topbar .trail{font-weight:700;display:flex;align-items:center;gap:8px;font-size:12px}.topbar .tools{display:flex;align-items:center;gap:8px}.icon{width:19px;height:19px;display:inline-flex;flex-shrink:0;vertical-align:middle}.icon svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}.icon.sm{width:15px;height:15px}.icon.lg{width:25px;height:25px}.btn{border:1px solid var(--line);background:white;border-radius:11px;padding:10px 14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-size:13px;min-height:40px}.btn:hover{border-color:#adbbb2}.btn.primary{background:var(--deep);color:white;border-color:var(--deep)}.btn.soft{background:var(--light);color:var(--deep);border-color:var(--light)}.btn.text{background:none;border:none;padding:7px 0;color:var(--green);min-height:0}.btn.danger{color:#a34532}.btn.square{width:40px;padding:0}.btn.tiny{min-height:28px;padding:4px 8px;font-size:11px}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:23px 0 11px}.sectionhead:first-child{margin-top:0}.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:23px}.pagehead p{color:var(--muted);margin-top:7px;font-size:13px}.pill{display:inline-flex;align-items:center;gap:5px;background:#eef1ec;padding:5px 9px;border-radius:100px;color:#53675c;white-space:nowrap;font-size:10px;font-weight:760}.pill.green{color:#2c6c51;background:#e5f0e7}.pill.orange{color:#96532c;background:#fae7d7}.pill.neutral{background:#f4f2eb;color:#777368}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:19px;box-shadow:var(--shadow);min-width:0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:15px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.homegrid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:22px}.hero{position:relative;overflow:hidden;min-height:230px;border-radius:22px;padding:25px;background:var(--deep);color:#fff;margin-bottom:22px;isolation:isolate}.heroart{position:absolute;inset:0 0 0 auto;width:62%;height:100%;z-index:-2;opacity:.92}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#173f3c 30%,#173f3ce6 43%,#173f3c4a 73%,#173f3c00 100%);z-index:-1}.hero .eyebrow{color:#b7d6c9}.hero h1{font-size:39px;font-weight:760;letter-spacing:-2px;max-width:420px;margin:11px 0 6px}.hero .sub{color:#d3e7de;font-size:13px}.hero-bottom{display:flex;align-items:flex-end;gap:29px;margin-top:26px}.hero-bottom strong{display:block;font-size:27px;letter-spacing:-1.2px;line-height:1.1}.hero-bottom span{color:#c4ded1;font-size:11px}.hero-bottom .avatar-stack{margin-left:auto;align-self:flex-end}.hero-bottom .avatar{border-color:#173f3c;color:var(--deep)}.quickcard{padding:14px 13px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;min-height:112px;transition:transform .15s}.quickcard:hover{transform:translateY(-2px)}.iconbox{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:var(--light);color:var(--green);flex-shrink:0}.iconbox.orange{background:#fae9db;color:#a45e37}.iconbox.sand{background:#f4ecda;color:#8a6937}.iconbox.blue{background:#e5eff4;color:#3a677e}.quickcard strong{font-size:13px}.quickcard small{font-size:11px;line-height:1.3}.event{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);width:100%;background:none;border-left:0;border-right:0;border-top:0;text-align:left}.event:first-child{padding-top:0}.event:last-child{padding-bottom:0;border-bottom:0}.event:hover .eventtitle{color:var(--green)}.datebox{min-width:48px;width:48px;border-radius:12px;background:#f2f4ef;padding:7px 4px;text-align:center;line-height:1.1}.datebox strong{display:block;font-size:19px;letter-spacing:-.6px}.datebox span{display:block;font-size:10px;text-transform:uppercase;color:var(--muted);font-weight:800;margin-top:3px}.eventtext{flex:1;min-width:0}.eventtitle{font-weight:750;font-size:14px;line-height:1.2}.eventmeta{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.4}.chev{color:#8d9b91;margin-left:auto}.notice{padding:11px 13px;background:#fff5e6;border:1px solid #f2dfc8;border-radius:12px;font-size:11px;color:#886a46;margin-bottom:18px;display:flex;align-items:center;gap:9px}.notice .icon{color:#a66a36}.row{display:flex;align-items:center;gap:10px}.row.between{justify-content:space-between}.stack{display:grid;gap:13px}.divider{border-top:1px solid var(--line);margin:13px 0}.stat{font-size:27px;line-height:1.15;font-weight:790;letter-spacing:-1.3px;font-variant-numeric:tabular-nums}.amount{font-weight:760;font-variant-numeric:tabular-nums}.positive{color:#2d7658}.negative{color:#b85d38}.seg{display:flex;gap:3px;background:#eceee8;border-radius:12px;padding:3px;flex-wrap:wrap}.seg button{border:0;background:none;padding:8px 13px;border-radius:9px;font-weight:650;color:var(--muted);font-size:12px}.seg button.active{background:white;color:var(--deep);box-shadow:0 1px 5px #0000000a}.eventblock{display:grid;gap:12px}.eventgroup{display:flex;gap:17px;align-items:flex-start}.eventgroup .groupdate{width:75px;padding:9px 0;flex-shrink:0}.eventgroup .groupdate strong{font-size:20px;letter-spacing:-.5px;display:block;line-height:1.1}.eventgroup .groupdate small{display:block;margin-top:4px}.eventgroup .card{flex:1;padding:17px}.eventgroup .card .event{padding:0}.personrow,.expense-row,.mealrow,.postrow{display:flex;align-items:flex-start;gap:11px;padding:13px 0;border-bottom:1px solid var(--line)}.personrow:last-child,.expense-row:last-child,.mealrow:last-child,.postrow:last-child{border:0;padding-bottom:0}.personrow:first-child,.expense-row:first-child,.mealrow:first-child,.postrow:first-child{padding-top:0}.personrow .info,.expense-row .info,.mealrow .info,.postrow .info{flex:1;min-width:0}.personrow .info strong,.expense-row .info strong,.mealrow .info strong{display:block}.balance-list .row{padding:8px 0;border-bottom:1px solid var(--line)}.balance-list .row:last-child{border:0}.empty{padding:28px 12px;text-align:center;color:var(--muted);font-size:13px}.checkrow{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.checkrow:last-child{border:0}.checkrow input{accent-color:var(--green);width:18px;height:18px;flex-shrink:0}.checkrow.done span{text-decoration:line-through;color:#9aaba1}.checkrow .del{margin-left:auto;color:var(--muted);border:0;background:none;padding:4px}.polloption{position:relative;overflow:hidden;background:#f7f8f4;border:1px solid #e7eae1;padding:11px 12px;border-radius:10px;display:flex;justify-content:space-between;width:100%;text-align:left;gap:10px;margin-top:7px}.polloption.selected{border-color:#6b9780}.polloption .fill{position:absolute;left:0;top:0;bottom:0;background:#dcece2;z-index:0}.polloption span{position:relative;z-index:1;font-weight:650;font-size:12px}.menu{display:none;position:fixed;inset:0;z-index:50;background:#142b295e;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(3px)}.menu.open{display:flex}.dialog{width:min(100%,540px);max-height:90vh;max-height:90dvh;overflow:auto;border-radius:23px;background:white;box-shadow:0 25px 100px #102b2940;padding:22px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.dialog-head h2{font-size:22px}.form{display:grid;gap:13px}.field label{font-size:12px;display:block;font-weight:750;margin-bottom:5px}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #dce2d9;border-radius:10px;padding:11px 12px;background:#fcfdfb;color:var(--ink);font-size:14px}.field textarea{resize:vertical;min-height:75px}.field .hint{font-size:11px;color:var(--muted);margin-top:4px}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.checks label{border:1px solid var(--line);padding:8px;border-radius:9px;font-weight:550;font-size:12px;display:flex;gap:6px;align-items:center;margin:0}.checks input{width:auto;accent-color:var(--green)}.modalfoot{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}.error{color:#ae482d;font-size:12px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--deep);color:white;z-index:80;border-radius:12px;padding:11px 16px;box-shadow:0 4px 20px #0003;font-size:13px;display:none}.toast.show{display:block}.mobile-nav{display:none}.mobile-brand{display:none}.details-top{border-radius:15px;background:#f3f6f0;padding:16px;margin-bottom:15px}.details-top .iconbox{background:white}.comments{display:grid;gap:10px}.comment{padding:9px 10px;border-radius:11px;background:#f6f7f2;font-size:13px}.comment small{display:block;margin-bottom:3px}.inlineform{display:flex;gap:8px}.inlineform input{min-width:0;flex:1;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fcfdfb;color:var(--ink)}.linkline{overflow-wrap:anywhere}.photo-card{border:1px dashed #cbd6c7;background:#f4f7f1;border-radius:14px;padding:18px;text-align:center}.toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}.fineprint{font-size:11px;color:var(--muted);margin-top:15px}.inline-warning{background:#fff2e6;border-radius:10px;padding:10px;font-size:12px;color:#a3683f}.no-wrap{white-space:nowrap}.hide-desktop{display:none}.headlabel{margin-bottom:7px}.bottomspace{height:10px}
@media(max-width:1050px){.app{grid-template-columns:192px minmax(0,1fr)}.side{padding:22px 13px}.main{padding:25px 24px 50px}.homegrid{grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:14px}.hero h1{font-size:33px}.grid3{gap:8px}.quickcard{padding:12px 9px}.hero-bottom{gap:19px}}
@media(max-width:800px){.app{display:block}.side{display:none}.main{padding:18px 18px 100px;max-width:740px}.mobile-brand{display:flex;align-items:center;gap:8px;font-weight:800;letter-spacing:-.8px;font-size:20px}.mobile-brand .mark{width:28px;height:28px}.topbar .trail{display:none}.topbar{margin-bottom:18px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:7px 5px max(9px,env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -5px 20px #00000006}.mobile-nav button{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;padding:6px 3px;align-items:center;font-size:10px;border-radius:8px}.mobile-nav button.active{color:var(--green);font-weight:800;background:#edf4ee}.homegrid{grid-template-columns:1fr;gap:0}.hero{min-height:218px;padding:22px;margin-bottom:18px}.hero h1{font-size:35px}.pagehead h1{font-size:27px}.pagehead{margin-bottom:18px}.sectionhead{margin-top:22px}.hide-desktop{display:block}.toast{bottom:90px}.grid3{gap:9px}.hero-bottom{gap:20px}.hero-bottom .avatar-stack{display:none}.heroart{width:72%}.hero:before{background:linear-gradient(90deg,#173f3c 16%,#173f3ce8 43%,#173f3c88 72%,#173f3c40 100%)}.homegrid>div+div{margin-top:22px}.card{padding:16px}.menu{padding:8px;align-items:flex-end}.dialog{max-height:92dvh;border-radius:22px 22px 14px 14px;padding:20px}.eventgroup{gap:10px}.eventgroup .groupdate{width:53px}.eventgroup .groupdate strong{font-size:18px}.eventgroup .card{padding:13px}.eventgroup .pill{display:none}.topbar .tools .demo-label{display:none}}
@media(max-width:380px){.main{padding-left:12px;padding-right:12px}.hero{padding:18px}.hero h1{font-size:31px}.hero-bottom strong{font-size:23px}.btn{padding:8px 10px}.grid2{gap:8px}.grid3{gap:6px}.quickcard{min-height:110px}.event{gap:9px}.event .pill{display:none}.pagehead{align-items:flex-start}.topbar .tools{gap:4px}}

[hidden]{display:none!important}.gate{max-width:440px;margin:12vh auto;padding:32px 24px;text-align:center}.gate .brand{justify-content:center;margin:0 0 24px}.gate p{margin:14px 0}.gate .mark{margin:auto}#syncRetry .btn{margin:2px}#inviteValue{width:100%;padding:12px;margin:12px 0;border:1px solid var(--line);border-radius:10px}

/* Ensure the invite gate is centred without the sidebar layout. */
.gate{width:min(440px,calc(100% - 32px));margin:12vh auto;padding:32px 24px}.gate .brand{justify-content:center;gap:12px}.gate .mark{margin:0}

/* V0.4 design system: calm travel journal, consistent hierarchy, large tap targets. */
:root{--bg:#f5f4ee;--white:#fffefa;--ink:#243934;--muted:#526660;--line:#e1e5dc;--green:#206b58;--deep:#173f38;--light:#e5f0e8;--coral:#a75031;--sand:#f3e8d3;--shadow:0 2px 12px #183c2e08;--radius:18px}
body{font-size:15px;line-height:1.55;background:var(--bg)}
small,.small{font-size:12px;color:var(--muted)}
.eyebrow{font-size:11px;letter-spacing:1.35px;font-weight:750}
.app{grid-template-columns:240px minmax(0,1fr)}
.side{background:#fffefa;padding:26px 17px 20px;border-color:var(--line);overflow-y:auto;scrollbar-width:thin}
.side .brand{font-size:25px;margin-bottom:24px;letter-spacing:-1.45px}
.tripnav{padding:15px;border-radius:13px;margin-bottom:22px;background:#f1f5ee;border:1px solid #dce6d9}
.tripnav .eyebrow{margin-bottom:4px}.tripnav strong{font-size:14px;line-height:1.35}.tripnav small{font-size:11px}
.nav button{min-height:46px;font-size:14px;gap:12px;padding:11px 12px;color:#475c55}
.nav button.active{background:#e3efe6;color:#174f40;border-left:3px solid #2e7964;padding-left:9px}
.nav .navlabel{letter-spacing:1px;font-size:10px}
.main{max-width:1320px;padding:25px 38px 66px}
.topbar{margin-bottom:12px;min-height:42px}.topbar .trail{font-size:13px;color:#344b44}
.sync-strip{min-height:26px;flex-wrap:wrap;margin-bottom:23px;padding-bottom:10px;border-bottom:1px solid var(--line);gap:7px}
.sync-copy{display:flex;align-items:center;gap:8px;min-width:0;color:#346d53}
.sync-copy small{font-size:12px;font-weight:650;color:inherit}.sync-dot{width:8px;height:8px;flex-shrink:0;border-radius:50%;background:#3d9069;box-shadow:0 0 0 3px #3d90691c}
.sync-note{font-size:11px;color:#65766d;border-left:1px solid #cdd8cf;padding-left:9px}
.sync-strip[data-state=offline] .sync-dot,.sync-strip[data-state=saving] .sync-dot{background:#aa7936;box-shadow:0 0 0 3px #aa793624}.sync-strip[data-state=offline] .sync-copy,.sync-strip[data-state=saving] .sync-copy{color:#86591c}
.sync-strip[data-state=error] .sync-copy{color:#a33c27}.sync-strip[data-state=error] .sync-dot{background:#a33c27;box-shadow:0 0 0 3px #a33c2720}
.home-welcome{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:0 0 20px}
.home-welcome h1{font-size:30px;letter-spacing:-1.15px;margin-top:3px;font-weight:760}.home-welcome .eyebrow{text-transform:none;letter-spacing:.2px;font-size:13px;color:var(--muted)}
.hero-v4{min-height:215px;margin-bottom:28px;padding:27px 29px;border-radius:23px;background:#17483e;box-shadow:0 10px 26px #173f381b}
.hero-v4:before{background:linear-gradient(90deg,#173f38 15%,#173f38f2 40%,#173f3880 68%,#173f3820 100%)}
.hero-v4 .hero-content{max-width:750px}.hero-v4 .heroart{width:58%;opacity:1}.hero-v4 h1{font-size:clamp(32px,4vw,46px);max-width:600px;margin:8px 0;letter-spacing:-1.8px;line-height:1.12}.hero-v4 .sub{font-size:14px;color:#e1efe6}
.hero-v4 .hero-bottom{margin-top:23px;gap:25px;align-items:stretch}.hero-v4 .hero-bottom>div{padding-right:24px;border-right:1px solid #d8f0dd42}.hero-v4 .hero-bottom>div:last-of-type{border:0;padding-right:0}.hero-v4 .hero-bottom strong{font-size:30px}.hero-v4 .hero-bottom span{font-size:12px;color:#d5e7dc}.hero-v4 .avatar-stack .avatar{color:#193e35}
.v4-homegrid{grid-template-columns:minmax(0,1.6fr) minmax(275px,1fr);gap:26px;align-items:start}.v4-homegrid .sectionhead{margin:24px 0 12px}.v4-homegrid .sectionhead:first-child{margin-top:0}.sectionhead h2{font-size:19px;font-weight:760;letter-spacing:-.35px}.sectionhead .btn.text{font-size:13px}
.card{background:#fffefa;border:1px solid var(--line);box-shadow:var(--shadow);padding:19px;border-radius:var(--radius)}
.timeline-card{padding:4px 17px}.timeline-card .event{min-height:76px;padding:13px 0}.timeline-card .event:first-child{padding-top:13px}.timeline-card .event:last-child{padding-bottom:13px}
.eventtitle{font-size:15px;line-height:1.3}.eventmeta{font-size:12px;line-height:1.5}.event .datebox{background:#ecf1e9;border:1px solid #e1e9dd;padding:8px 4px;width:50px;min-width:50px;border-radius:12px}.datebox strong{font-size:20px}.event .chev{color:#657c70}
.compact-empty{display:flex;align-items:center;justify-content:center;gap:10px;padding:20px 8px;font-size:14px}.compact-empty .icon{color:var(--green)}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-action{min-height:94px;border:1px solid var(--line);background:#fffefa;border-radius:15px;padding:12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;font-weight:730;font-size:13px;text-align:left;transition:background .15s,border .15s;min-width:0}.quick-action>span:nth-child(2){flex:1 0 100%;order:3;line-height:1.3;overflow-wrap:anywhere}.quick-action>.icon{color:#698276}.quick-action:hover{background:#f3f8f1;border-color:#a6bfae}.quick-action .iconbox{width:36px;height:36px}
.stay-card{min-height:108px;padding:15px;background:#fffefa;border:1px solid #deded0}.stay-card strong{font-size:14px}.stay-card small{font-size:12px}
.home-balance .eyebrow{letter-spacing:1px}.balance-values{margin:10px 0}.balance-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.balance-entry:last-child{border-bottom:0;padding-bottom:0}.balance-entry:first-child{padding-top:0}.balance-entry>div{text-align:right}.balance-entry .amount{font-size:20px;letter-spacing:-.5px}.balance-list .balance-entry .amount{font-size:16px}.balance-entry small{font-size:11px}.positive{color:#206d4e}.negative{color:#aa4f31}
.currency-chip{display:inline-flex;align-items:center;justify-content:center;background:#edf3eb;border:1px solid #dce8da;color:#355b48;font-weight:750;font-size:11px;letter-spacing:.4px;border-radius:7px;padding:4px 8px;min-width:43px;line-height:1.4}
.currency-chips{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 3px}.currency-summary{flex:1;min-width:0}.currency-summary strong{font-size:14px;color:var(--ink)}.currency-summary small{font-size:12px}.notice:has(.currency-summary){background:#eaf2ea;border:1px solid #d8e7d7;color:#284d3a;align-items:flex-start;padding:14px;gap:10px}.notice:has(.currency-summary) .icon{color:#326b53;margin-top:3px}.notice:has(.currency-summary)>.btn{align-self:center}
.currency-checks label{display:grid;grid-template-columns:24px 1fr;gap:1px 8px;min-height:60px;padding:10px}.currency-checks input{grid-row:span 2;align-self:center}.currency-checks small{font-size:11px;line-height:1.25}
.filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 12px;color:var(--muted);font-weight:600;font-size:13px}.filter-row select{min-height:42px;background:#fffefa;border:1px solid var(--line);border-radius:10px;padding:8px 12px;color:var(--ink);max-width:65%}
.update-preview{font-size:14px;line-height:1.55;color:var(--muted);margin:10px 0 3px;overflow-wrap:anywhere}.poll-preview .eventtext small{display:block;margin-top:3px}.together-card strong{font-size:14px}
.pagehead{margin-bottom:22px;align-items:center}.pagehead h1{font-size:32px;letter-spacing:-1px}.pagehead p{font-size:14px;max-width:700px}
.btn{min-height:44px;font-size:13px;border-radius:10px;font-weight:700;gap:8px}.btn.primary{background:#1d5b49;border-color:#1d5b49}.btn.primary:hover{background:#174b3d}.btn.soft{background:#e5f0e6;border-color:#d4e5d6}.btn.square{width:44px;min-width:44px}.btn.tiny{min-height:34px;font-size:12px}.btn.text{min-height:36px}.btn.danger{color:#a13e29}
.seg{background:#e8ece5;padding:4px;border-radius:12px;gap:4px}.seg button{min-height:40px;font-size:13px;padding:8px 12px}.seg button.active{color:#173f38;box-shadow:0 1px 4px #00000010}
.expense-row,.personrow,.postrow,.mealrow{padding:16px 0;gap:12px}.expense-row .info strong,.personrow .info strong{font-size:14px;line-height:1.4}.expense-row .info small{font-size:12px}.expense-row .amount{font-size:16px}.expense-row>div:last-child{min-width:0}.expense-row .amount{overflow-wrap:anywhere}
.polloption{min-height:51px;padding:13px 14px;background:#f7f8f3;border-color:#dfe6da}.polloption.selected{border:2px solid #488065;padding:12px 13px}.polloption .fill{background:#d8ebde;transition:width .25s ease}.polloption span{font-size:14px}.polloption span:first-of-type{overflow-wrap:anywhere}.polloption span:last-child{white-space:nowrap;flex-shrink:0}
.dialog{width:min(100%,580px);padding:25px;border-radius:23px}.dialog-head h2{font-size:23px}.dialog-head{margin-bottom:20px}.form{gap:16px}.field label{font-size:13px;margin-bottom:6px}.field input,.field select,.field textarea{font-size:16px;min-height:45px;background:#fffefa;border-color:#d5ded4}.checks label{font-size:13px;min-height:44px;padding:10px}.checks input,.checkrow input{width:19px;height:19px;flex-shrink:0}.field .hint{font-size:12px}.modalfoot .btn{min-height:46px}.details-top{padding:17px;background:#eef4ec;border:1px solid #dce8d9}.split-total{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 10px}.split-total>span{font-size:13px;font-weight:650;color:var(--muted)}.split-total>strong{font-size:20px;font-variant-numeric:tabular-nums;line-height:1.2;text-align:right}.split-breakdown{margin:10px 0;padding-top:9px;border-top:1px solid #ceddcf}.split-breakdown .row{padding:5px 0;font-size:13px}.split-breakdown .row strong{font-variant-numeric:tabular-nums;white-space:nowrap}.split-breakdown .eyebrow{display:block;margin-bottom:5px}
.gate{max-width:480px;width:calc(100% - 36px);margin:0;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);padding:40px 30px;border-radius:24px;background:#fffefa;box-shadow:0 18px 70px #193e3217}.gate .brand{margin-bottom:25px}.gate h1{font-size:29px;letter-spacing:-.8px}.gate p{font-size:15px;line-height:1.6}.gate small{display:block;font-size:12px}
@media(max-width:1100px){.app{grid-template-columns:210px minmax(0,1fr)}.side{padding:22px 13px}.main{padding:21px 26px 55px}.hero-v4{padding:24px}.v4-homegrid{grid-template-columns:minmax(0,1.4fr) minmax(245px,1fr);gap:18px}.hero-v4 .hero-bottom{gap:16px}.hero-v4 .hero-bottom>div{padding-right:16px}}
@media(max-width:800px){.app{display:block}.main{padding:15px 18px 105px;max-width:740px}.topbar{margin-bottom:9px;min-height:44px}.topbar .tools{gap:7px}.sync-strip{margin-bottom:19px;padding-bottom:9px}.sync-copy small{font-size:11px}.sync-note{font-size:10px}.home-welcome{margin-bottom:16px;align-items:flex-start;gap:8px}.home-welcome h1{font-size:24px;line-height:1.18}.home-welcome .eyebrow{font-size:11px}.home-welcome>.btn{display:none}.hero-v4{min-height:198px;margin-bottom:22px;padding:21px 19px}.hero-v4 h1{font-size:33px;max-width:90%}.hero-v4 .sub{font-size:12px}.hero-v4 .heroart{width:75%}.hero-v4:before{background:linear-gradient(90deg,#173f38 8%,#173f38f5 35%,#173f38a0 68%,#173f3838 100%)}.hero-v4 .hero-bottom{gap:12px;margin-top:20px}.hero-v4 .hero-bottom>div{padding-right:12px;flex:1 1 0;min-width:0}.hero-v4 .hero-bottom strong{font-size:26px}.hero-v4 .hero-bottom span{font-size:10px;line-height:1.2;display:block}.v4-homegrid{grid-template-columns:minmax(0,1fr);gap:22px}.v4-homegrid>div+div{margin-top:0}.v4-homegrid .sectionhead{margin-top:21px}.sectionhead h2{font-size:18px}.card{padding:16px}.timeline-card{padding:3px 14px}.timeline-card .event{min-height:70px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.quick-action{min-height:83px}.home-aside{display:flex;flex-direction:column}.mobile-nav{padding:7px 5px max(9px,env(safe-area-inset-bottom));background:#fffefa;box-shadow:0 -4px 20px #183c2e0b}.mobile-nav button{min-height:49px;gap:4px;font-size:10px;line-height:1.15}.mobile-nav button span{max-width:100%;overflow-wrap:anywhere}.mobile-nav button.active{background:#e3efe6;color:#174f40}.pagehead h1{font-size:27px}.pagehead{align-items:center;gap:10px}.pagehead p{font-size:13px}.btn{min-height:44px}.btn.tiny{min-height:36px}.dialog{padding:19px;border-radius:22px 22px 13px 13px;max-height:92dvh}.field input,.field textarea,.field select{font-size:16px}.toast{max-width:calc(100% - 24px);width:max-content;text-align:center;bottom:93px}.eventgroup .pill{display:inline-flex;white-space:normal}.eventgroup .card .row.between{flex-wrap:wrap}.gate{padding:32px 23px}.gate h1{font-size:27px}}
@media(max-width:380px){.main{padding-left:12px;padding-right:12px}.hero-v4 h1{font-size:30px}.hero-v4 .hero-bottom strong{font-size:23px}.hero-v4 .hero-bottom>div{padding-right:9px}.hero-v4 .hero-bottom{gap:9px}.hero-v4{padding:18px 16px}.pagehead{flex-wrap:wrap}.pagehead>.btn{margin-left:auto}.expense-row{gap:8px}.expense-row .amount{font-size:14px}.currency-checks{grid-template-columns:1fr}.grid2{gap:10px}.topbar .tools .btn{padding:8px 10px}.topbar .tools .btn.square{padding:0}.mobile-brand{font-size:19px}.seg button{padding:8px 10px}.sync-note{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.mobile-quick{display:none}.desktop-quick .sectionhead{margin-top:0}.home-aside>.sectionhead:first-child{margin-top:0}
@media(max-width:800px){.mobile-quick{display:block;margin:0 0 24px}.mobile-quick .sectionhead{margin:0 0 11px}.desktop-quick{display:none}.home-aside>.sectionhead{margin-top:0}.mobile-quick .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.mobile-quick .quick-action{min-height:88px;align-content:start;justify-content:center;text-align:center;padding:9px 5px;gap:7px}.mobile-quick .quick-action>.icon{display:none}.mobile-quick .quick-action>span:nth-child(2){font-size:11px;line-height:1.2;order:2}.mobile-quick .quick-action .iconbox{width:35px;height:35px}}
@media(max-width:360px){.mobile-quick .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-quick .quick-action{min-height:70px}}
/* The date rail and plan content must both fit compact handsets. */
.eventblock,.eventgroup,.eventgroup>.card{min-width:0;max-width:100%}
.eventgroup>.card{overflow-wrap:anywhere}
@media(max-width:360px){.eventgroup .groupdate{width:43px}.eventgroup{gap:8px}.eventgroup>.card{padding:11px}.eventgroup .avatar-stack{flex-wrap:wrap}}
/* Keep the mobile trip summary compact: the participant count already conveys group size. */
@media(max-width:800px){.hero-v4 .hero-bottom>.avatar-stack{display:none}.hero-v4 .hero-bottom>div:last-of-type{border-right:0;padding-right:0}.hero-v4 .hero-bottom{align-items:flex-start}.hero-v4 .hero-bottom>div{min-width:0}}

/* V0.5: calendar-first trip planning. The full calendar is primary; the list is an alternate view. */
.plan-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.plan-views{flex-shrink:0}.plan-views button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:96px}
.plan-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.plan-filters button{border:1px solid var(--line);background:#fffefa;color:var(--muted);border-radius:9px;min-height:38px;padding:7px 11px;font-size:12px;font-weight:650;white-space:nowrap}
.plan-filters button:hover{background:#eaf2e9}.plan-filters button.active{background:#e1eee4;color:#174f40;border-color:#b7d2bd}
.calendar-panel{padding:0;overflow:hidden;border-radius:19px;min-width:0}
.cal-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 18px;flex-wrap:wrap}
.cal-month{display:flex;align-items:center;gap:9px;min-width:0}.cal-month h2{font-size:21px;letter-spacing:-.45px;text-transform:capitalize;min-width:150px;text-align:center;line-height:1.3}
.cal-nav{background:transparent;border-color:var(--line);font-size:25px;font-weight:450;line-height:1}.cal-nav span{line-height:1}.cal-jumps{display:flex;gap:6px;flex-wrap:wrap}.cal-jumps .btn{min-height:36px}
.cal-weekdays,.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0}
.cal-weekdays{background:#f0f3ed;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cal-weekdays span{text-align:center;padding:9px 3px;font-size:11px;text-transform:uppercase;letter-spacing:.6px;font-weight:700;color:#5a7165;overflow:hidden}
.cal-cell{min-width:0;min-height:111px;border-right:1px solid #e3e7de;border-bottom:1px solid #e3e7de;padding:3px 4px 7px;background:#fffefa;position:relative}
.cal-cell:nth-child(7n){border-right:0}.cal-cell.outside-month{background:#f2f3ee;color:#88958b}.cal-cell.in-trip{background:#f0f6ec}.cal-cell.outside-month.in-trip{background:#ebf0e7}.cal-cell.is-selected{box-shadow:inset 0 0 0 2px #39765b;background:#e5f0e5}.cal-cell.is-today:not(.is-selected){box-shadow:inset 0 0 0 1px #a1bba5}
.cal-day{display:flex;align-items:center;justify-content:space-between;gap:2px;text-align:left;width:100%;min-height:35px;padding:3px 5px;background:transparent;color:#344c41;border-radius:7px;position:relative}.cal-day:hover{background:#dae9da}.cal-number{font-weight:750;font-size:13px;display:flex;justify-content:center;align-items:center;width:27px;height:27px;border-radius:50%;flex-shrink:0}.outside-month .cal-number{color:#738478}.is-today .cal-number{box-shadow:inset 0 0 0 1.5px #347658}.is-selected .cal-number{background:#23634c;color:#fff;box-shadow:none}.cal-count{font-size:10px;font-weight:650;color:#60766a;margin-right:3px}.cal-dots{display:none}
.cal-chips{display:flex;flex-direction:column;gap:3px;min-width:0;margin:2px 0 0}.cal-event{display:flex;align-items:center;gap:3px;padding:4px 5px;width:100%;min-height:23px;text-align:left;font-size:10.5px;font-weight:650;border-radius:5px;min-width:0;color:#245e46;background:#dcecdf;border:1px solid #cce2ce;line-height:1.1}.cal-event>span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-event b{font-weight:800}.cal-event-icon{display:inline-flex;flex-shrink:0}.cal-event .icon.sm{width:11px;height:11px}.cal-event.plane{background:#dceaf5;color:#285679;border-color:#c7ddec}.cal-event.stay{background:#eee7d4;color:#705621;border-color:#e5d9b8}.cal-event.meals{background:#f7e3d7;color:#8a4d32;border-color:#efd2c0}.cal-event.proposed{border-style:dashed}.cal-event.continues{border-radius:1px 5px 5px 1px}.cal-event.continues-next{border-top-right-radius:1px;border-bottom-right-radius:1px}.cal-event:hover{filter:brightness(.95)}.cal-more{align-self:flex-start;font-size:11px;color:#28614a;font-weight:700;padding:4px 6px;border-radius:5px;background:transparent;min-height:24px}.cal-more:hover{background:#dce9dd}
.cal-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:13px 18px;color:#536b5e;font-size:11px;font-weight:600}.cal-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.cal-key,.cal-dots i{display:inline-block;width:10px;height:10px;border-radius:3px;background:#80ae8b;border:1px solid #639776}.cal-key.plane,.cal-dots i.plane{background:#93b9d6;border-color:#7da8c9}.cal-key.stay,.cal-dots i.stay{background:#d3b674;border-color:#c1a15e}.cal-key.meals,.cal-dots i.meals{background:#dea181;border-color:#d28c69}.cal-key.proposed{background:transparent;border:1.5px dashed #8d7851}.cal-key.trip-range{background:#e4efe0;border:1px solid #bdd6bc}
.cal-agenda{margin-top:23px}.cal-agenda-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:11px}.cal-agenda-head h2{font-size:20px;letter-spacing:-.3px;margin:4px 0 0;line-height:1.3;text-transform:capitalize}.cal-agenda-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.plan-event-card{min-width:0;border:1px solid var(--line);border-left:3px solid #83b192;background:#fffefa;border-radius:13px;overflow:hidden}.plan-event-card.plane{border-left-color:#8eb6d4}.plan-event-card.stay{border-left-color:#d5b675}.plan-event-card.meals{border-left-color:#d9a185}.plan-event-main{display:flex;align-items:center;gap:11px;width:100%;padding:13px;min-height:76px;background:transparent;text-align:left;color:var(--ink)}.plan-event-main:hover{background:#f3f7f0}.plan-event-main>.icon{margin-left:auto;flex-shrink:0;color:#6b8978}.plan-event-main .iconbox{flex-shrink:0}.plan-event-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.plan-event-copy .eventtitle,.plan-event-copy .eventmeta{overflow-wrap:anywhere;white-space:normal}.plan-event-footer{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 13px 12px;border-top:1px solid #edf0e9}.plan-event-footer .pill{white-space:normal;font-size:10px;line-height:1.2}.plan-guests{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.plan-guests small,.plan-rsvp{font-size:10.5px;line-height:1.35}.plan-rsvp{margin-left:auto}.cal-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:104px;color:var(--muted)}.cal-empty .icon{color:var(--green)}.cal-empty p{margin:0;font-size:13px}.plan-list .sectionhead{margin:23px 0 14px}.plan-list-group{margin:0 0 19px}.plan-list-group h3{display:flex;align-items:center;gap:8px;font-size:14px;color:#456355;text-transform:capitalize;margin:0 0 8px;line-height:1.35}.plan-list-group h3 small{font-size:11px;color:#687e70;background:#e9efe5;border-radius:7px;padding:3px 7px}.plan-list .cal-agenda-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.plan-controls button:focus-visible,.calendar-panel button:focus-visible,.plan-event-main:focus-visible,.cal-agenda button:focus-visible{outline:2px solid #21664e;outline-offset:2px;z-index:1}
@media(max-width:1050px){.cal-cell{min-height:101px}.cal-event{font-size:10px;padding:4px 3px}.cal-event-icon{display:none}.cal-legend{gap:9px 12px}.cal-agenda-list,.plan-list .cal-agenda-list{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){.plan-controls{gap:10px}.plan-views{width:100%}.plan-views button{flex:1;min-width:0}.plan-filters{width:100%;gap:5px;flex-wrap:wrap}.plan-filters button{min-height:38px;font-size:11px;padding:7px 9px}.cal-head{padding:11px 10px;gap:8px}.cal-month{flex:1;justify-content:space-between;gap:5px}.cal-month h2{font-size:18px;min-width:0;flex:1}.cal-jumps{flex-shrink:0;justify-content:flex-end}.cal-jumps .btn{font-size:11px;min-height:32px;padding:6px 8px}.cal-nav{min-width:36px;width:36px;min-height:36px}.cal-weekdays span{font-size:10px;letter-spacing:0;padding:8px 2px}.cal-cell{min-height:55px;padding:0}.cal-day{min-height:55px;flex-direction:column;justify-content:center;gap:2px;padding:3px 1px}.cal-number{font-size:13px;width:25px;height:25px}.cal-count{display:none}.cal-chips{display:none}.cal-dots{display:flex;align-items:center;justify-content:center;gap:2px;min-height:9px;flex-wrap:nowrap}.cal-dots i{width:5px;height:5px;border:0;border-radius:50%}.cal-dots b{font-size:10px;line-height:9px;color:#476b56}.cal-legend{padding:10px;gap:6px 10px;font-size:10px}.cal-key{width:8px;height:8px}.cal-agenda{margin-top:18px}.cal-agenda-head h2{font-size:18px}.cal-agenda-head .eyebrow{font-size:10px}.cal-agenda-head .btn{font-size:12px;padding:7px 9px;min-height:40px}.cal-agenda-head>div{min-width:0}.plan-event-main{padding:12px;min-height:70px}.plan-event-footer{padding:8px 11px 10px}.plan-event-copy .eventtitle{font-size:14px}.plan-event-copy .eventmeta{font-size:11px}.calendar-panel{border-radius:15px}}
@media(max-width:400px){.cal-head{flex-wrap:wrap}.cal-month{flex:1 0 100%}.cal-jumps{margin-left:auto}.cal-day,.cal-cell{min-height:51px}.cal-agenda-head .btn{font-size:11px}.cal-agenda-head h2{font-size:16px}.cal-legend{gap:5px 8px}.plan-filters button{font-size:10.5px;padding:6px 8px}.plan-event-footer .pill{font-size:10px}.plan-rsvp{margin-left:0}}
/* Remove browser-native button outlines from the resting state; preserve keyboard focus. */
.cal-day,.plan-event-main,.cal-more{border:0;appearance:none;-webkit-appearance:none}
@media(min-width:801px){.cal-cell{min-height:89px}.cal-day{min-height:31px}.cal-number{width:25px;height:25px}.cal-head{padding:13px 17px}.cal-legend{padding:11px 17px}.cal-event{min-height:22px}.cal-agenda{margin-top:20px}}
@media(max-width:800px){.cal-agenda-head{align-items:center;flex-wrap:nowrap}.cal-agenda-head>div{flex:1 1 0}.cal-agenda-head .btn{flex:0 0 auto}.cal-agenda-head h2{line-height:1.25}.cal-head{padding:9px 10px}.cal-legend{padding:9px 10px}.cal-cell,.cal-day{min-height:48px}.cal-day{padding:2px 1px}.plan-controls{margin-bottom:12px}.plan-filters button{min-height:39px}}
/* Practical entry actions; keep destructive actions separate from primary forms. */
.entry-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-start;align-items:center;margin:10px 0 0}
.entry-actions>.btn{min-height:36px;white-space:nowrap}
.shopping-entry{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:7px 0;min-width:0}
.shopping-entry:last-child{border:0}.shopping-entry .checkrow{flex:1;min-width:0;border:0}.shopping-entry .entry-actions{margin:0;flex-shrink:0}.shopping-entry .checkrow span{overflow-wrap:anywhere}
.payment-amount{text-align:right;min-width:0}.payment-amount .entry-actions{justify-content:flex-end}.santa-simple{flex-wrap:wrap}.santa-simple .info{flex:1}.santa-simple .info h2{margin-bottom:7px}
.nav-divider{border-top:1px solid var(--line);margin:12px 0}.home-welcome{margin-bottom:14px}
@media(max-width:550px){.shopping-entry{align-items:flex-start;flex-direction:column;gap:0;padding:6px 0 10px}.shopping-entry .checkrow{width:100%}.shopping-entry .entry-actions{align-self:flex-end}.payment-amount .entry-actions{gap:4px}.entry-actions>.btn{min-height:40px}.santa-simple .info{min-width:145px}}

/* V0.7 practical trip planning */
.planning-tabs{flex-wrap:wrap}.planning-tabs button{min-width:0;white-space:normal}.source-area{margin-top:12px;display:flex;flex-direction:column;gap:9px;min-width:0}.source-buttons{display:flex;flex-wrap:wrap;gap:8px}.source-area small,.flight-card small{display:block;line-height:1.45}.flight-code{font-size:19px;letter-spacing:.4px}.flight-card .row{flex-wrap:wrap;align-items:flex-start}.flight-card .row>div{flex:1;min-width:0}.reported-flight{border:1px solid var(--line);border-radius:10px;padding:10px;background:#f0f4ed}.reported-flight p{font-size:13px;margin-top:6px;white-space:pre-wrap}.budget-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:0 0 14px}.budget-total{min-width:0}.budget-total>.currency-chip{margin-bottom:8px}.budget-total>.row{gap:10px;padding:5px 0}.budget-total strong{overflow-wrap:anywhere;text-align:right}.budget-note{margin:0 0 14px}.planning-row .row{gap:9px;flex-wrap:wrap}.planning-row .info{flex:1;min-width:0}.planning-row .info small{display:block;margin-top:4px;overflow-wrap:anywhere}.planning-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin:12px 0}.planning-detail small,.planning-detail strong{display:block;overflow-wrap:anywhere}.planning-detail strong{font-size:13px}.note-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.meal-day>h2{margin:12px 0;font-size:17px}.stay-related .sectionhead{margin:16px 0 10px}.stay-related .planning-row{box-shadow:none}.stay-related .event{width:100%;text-align:left}.stay-related .eventtext{min-width:0}.stay-related .eventtext strong,.stay-related .eventtext small{display:block;overflow-wrap:anywhere}.source-area .btn{align-self:flex-start}.source-buttons .btn{max-width:100%;white-space:normal}
@media(max-width:420px){.planning-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.budget-totals{grid-template-columns:1fr}.source-buttons{display:grid;grid-template-columns:1fr}.source-buttons .btn{justify-content:center}.planning-row .info{min-width:120px}.flight-card .row>div{min-width:140px}}

/* V0.8: travel-only relatives and airport-local flight information. */
.flight-fields:not([hidden]){display:grid;gap:12px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f7f9f4;min-width:0}.flight-fields[hidden]{display:none!important}.flight-fields .small{line-height:1.45;font-size:12px}.flight-route{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:center;gap:8px;padding:12px;background:#f3f6f1;border:1px solid var(--line);border-radius:12px;margin:7px 0 5px}.flight-endpoint{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.flight-endpoint strong{font-size:16px;line-height:1.25}.flight-endpoint span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.flight-route-arrow{color:var(--green);display:flex;justify-content:center}.external-travellers{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:13px;margin-bottom:7px}.flight-card .flight-route{margin-bottom:7px}
@media(max-width:380px){.flight-fields .grid2{grid-template-columns:minmax(0,1fr)}.flight-route{gap:6px;padding:9px;grid-template-columns:minmax(0,1fr) 23px minmax(0,1fr)}.flight-endpoint span{font-size:12px}}
/* V0.9 tropical Christmas: clear navigation, understated festive details. */
:root{--bg:#fbf7ef;--white:#fffefa;--ink:#173f3c;--muted:#647a75;--line:#e8e7df;--green:#087b78;--deep:#075a55;--light:#e4f3e9;--coral:#bd5144;--sand:#faedcf;--shadow:0 4px 18px #183e3510;--radius:16px}
body{background:radial-gradient(ellipse at 95% 0,#fbeedc 0,transparent 38%),var(--bg)}.side{background:#fffefa}.tripnav{border:1px solid #e3e9de;background:#eef5ea}.hero-v4{border-radius:20px;box-shadow:0 6px 22px #133f3720}.hero-v4:after{position:absolute;content:"";height:4px;bottom:0;left:0;right:0;background:linear-gradient(90deg,#cf6549 0 25%,#e9c177 25% 50%,#8bc2aa 50% 75%,#f4d7a2 75%);pointer-events:none}.side .brand{margin-bottom:20px}.nav button{padding:10px 11px}.sidebottom{padding-top:8px}.sync-strip[data-state=live]{display:none}.report-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:12px 0 16px}.report-filters label{display:grid;gap:4px;font-size:12px;color:var(--muted);font-weight:650;min-width:120px;flex:1}.report-filters select,.report-filters input{width:100%;min-height:42px;border:1px solid var(--line);background:white;border-radius:9px;padding:8px;color:var(--ink)}.report-card{padding:18px}.report-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:16px 0 10px}.report-kpis>div{padding:12px;border-radius:10px;background:#edf5ee;min-width:0}.report-kpis>div:first-child{background:#f8efd9}.report-kpis>div:nth-child(4){background:#fae8e3}.report-kpis>div strong{display:block;font-size:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.3}.report-kpis small{display:block;font-size:11px}.report-breakdowns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:17px}.report-breakdown h3{margin-bottom:12px}.report-line{margin:10px 0;font-size:12px}.report-track{height:7px;border-radius:6px;background:#edece4;margin-top:4px;overflow:hidden}.report-track i{display:block;height:100%;background:#15958b;border-radius:6px}.report-breakdown:nth-child(2) .report-track i{background:#d2914f}.privacy-tag{display:inline-flex;gap:3px;align-items:center;color:#72543b;background:#f9ecd6;padding:3px 6px;border-radius:5px;font-size:10px;font-weight:650;white-space:nowrap}.privacy-tag .icon{width:11px;height:11px}.visibility-field{padding:12px;border:1px solid #d9e4d7;border-radius:12px;background:#f5faf4}.visibility-people:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}.visibility-people>small{grid-column:1/-1}.visibility-people .checkrow{min-height:40px;margin:0;gap:6px;padding:6px}.privacy-summary{margin:8px 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.agenda-day{margin:18px 0;scroll-margin-top:15px}.agenda-day header{display:flex;align-items:center;gap:10px;margin:0 0 8px}.agenda-day-number{display:grid;place-items:center;font-weight:800;font-size:25px;min-width:45px;height:47px;border-radius:11px;background:#dceee4;color:var(--deep)}.agenda-day header div{flex:1}.agenda-day header strong,.agenda-day header small{display:block}.agenda-items{padding:0;overflow:hidden}.agenda-row{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);min-height:64px;padding:10px 15px}.agenda-row:last-child{border-bottom:0}.agenda-row:hover{background:#f1f6ef}.agenda-time{width:44px;flex-shrink:0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.agenda-marker{width:4px;height:36px;border-radius:4px;background:#24a78c;flex-shrink:0}.agenda-marker.plane{background:#487fae}.agenda-marker.stay{background:#c59a49}.agenda-marker.meals{background:#d16d5b}.agenda-row .info{flex:1;min-width:0}.agenda-row .info strong,.agenda-row .info small{display:block;overflow-wrap:anywhere}.agenda-status{font-size:10px;white-space:nowrap;color:#9d653a}.agenda-status.confirmed{color:#267c59}.planning-grid,.flight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.planning-grid .planning-row{display:flex;flex-direction:column;gap:9px;margin:0}.planning-grid .planning-row .entry-actions{margin-top:auto}.planning-grid .planning-row .info strong{font-size:16px}.planning-grid .planning-detail{background:#f7f6ed;border-radius:9px;padding:12px}.flight-card{display:flex;flex-direction:column;gap:12px}.flight-card h2{font-size:18px}.flight-card .flight-route{background:#f0f8f7;border-radius:10px;padding:14px;margin:0}.flight-card .flight-route .flight-endpoint strong{font-size:15px}.flight-card .source-buttons{margin-top:auto}.flight-card .source-buttons .btn{flex:1;white-space:normal;text-align:center}.polloption .vote-option-text{display:flex;align-items:center;gap:8px;flex:1;text-align:left;z-index:1}.vote-dot{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border-radius:50%;border:1px solid #8aada3;background:#fff}.polloption.selected .vote-dot{background:var(--green);border-color:var(--green);color:white}.polloption .fill{background:#e2f2e8}.polloption{min-height:48px}.personrow{flex-wrap:wrap;gap:8px}.personrow .info{min-width:90px}.personrow .btn.tiny{min-height:36px}.report-card .report-kpis strong{font-size:clamp(16px,2vw,24px)}
@media(max-width:800px){.planning-grid,.flight-grid{grid-template-columns:1fr}.report-breakdowns{grid-template-columns:1fr}.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filters label{min-width:100px}.agenda-row{padding:10px 9px;gap:7px}.agenda-status{max-width:68px;text-align:right;white-space:normal;line-height:1.1}.agenda-time{width:38px;font-size:11px}.agenda-row .info strong{font-size:13px}.report-kpis>div{padding:10px}.report-kpis small{font-size:11px}.visibility-people:not([hidden]){grid-template-columns:1fr 1fr}.personrow .btn.tiny{font-size:11px;white-space:normal;text-align:center}.flight-card .flight-route{padding:10px}.side{overflow:auto}}
@media(max-width:375px){.agenda-status{display:none}.visibility-people:not([hidden]){grid-template-columns:1fr}.report-filters label{min-width:90px}}
#loginForm:not([hidden]){display:grid;gap:10px;margin-top:22px;text-align:left}#loginForm label{font-size:12px;color:var(--muted);font-weight:650}#loginForm input{min-height:44px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:10px;width:100%}#loginForm button{min-height:46px;margin-top:6px;white-space:normal}#loginError{color:#9d3c32;font-size:13px;min-height:0}#loginError:empty{display:none}.gate #loginForm small{font-size:11px;line-height:1.5}.gate{max-width:460px}
.money-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:thin;max-width:100%;width:100%;justify-content:flex-start}.money-tabs button{flex:1 0 auto!important;min-height:39px;padding:8px 11px!important;white-space:nowrap}.report-filters select{font-size:12px}@media(max-width:500px){.money-tabs button{padding:8px 10px!important;font-size:12px}.report-filters{gap:6px}.report-filters label{min-width:90px}.report-filters select,.report-filters input{padding:7px;font-size:11px}.report-filters label{font-size:11px}}

/* KitchenFlow-inspired calendar and shopping list: keep one shared trip state. */
.meal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.kitchen-credit{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px;white-space:normal;flex-wrap:wrap}
.kitchen-credit a{color:var(--green,#246957);font-weight:750;text-decoration:none;display:inline-flex;gap:3px;align-items:center}
.meal-calendar{padding:18px;min-width:0;overflow:visible}
.meal-calendar-top{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.meal-calendar-top label,.shop-filters label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600;color:var(--muted);min-width:0}
.meal-calendar-top select,.shop-filters select{width:100%;min-width:0;font:inherit;font-size:14px;color:var(--text,#20352c);padding:9px 12px;border:1px solid var(--line,#dbe2d7);border-radius:10px;background:#fff}
.meal-week-controls{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;flex:0 1 auto}
.meal-week-controls strong{font-size:15px;text-align:center;min-width:0}
.meal-week-controls .btn{min-height:40px;min-width:40px;padding:8px;justify-content:center;font-size:21px}
.meal-week-controls .btn:disabled{opacity:.35;cursor:default}
.meal-week-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:14px 0}
.meal-grid-head,.meal-grid-day{display:grid;grid-template-columns:minmax(96px,.75fr) repeat(3,minmax(0,1fr));gap:9px;align-items:start;min-width:0}
.meal-grid-head{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:800;padding:6px 0 9px}
.meal-grid-day{border-top:1px solid var(--line,#e3e7dc);padding:12px 0}
.meal-day-label{display:flex;flex-direction:column;gap:5px;min-width:0;padding:6px 3px}
.meal-day-label strong{text-transform:capitalize;font-size:16px;line-height:1.2}.meal-day-label span{font-size:12px;color:var(--muted)}.meal-day-label small{font-size:10px;line-height:1.35;color:#277760;overflow-wrap:anywhere}
.meal-grid-day.is-today .meal-day-label strong{color:#b35a36}
.meal-slot{background:#f5f7ef;border-radius:12px;padding:7px;min-height:88px;display:flex;flex-direction:column;gap:6px;min-width:0}
.meal-mobile-label{display:none}.meal-tile{background:#fff;border-radius:10px;border:1px solid #e4e8dc;overflow:hidden;min-width:0}
.meal-tile-main{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:10px;width:100%;min-height:50px;text-align:left;background:transparent;border:0;color:inherit;cursor:pointer;overflow-wrap:anywhere;font:inherit}
.meal-tile-main strong{font-size:13px;line-height:1.35}.meal-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;color:var(--muted);line-height:1.4;text-align:left;white-space:pre-line}
.meal-tile-actions{padding:0 6px 6px;display:flex;align-items:center;gap:3px;flex-wrap:wrap;min-width:0}.meal-tile-actions .entry-actions{display:flex;gap:3px;margin:0;flex-wrap:wrap}.meal-tile-actions .btn{min-height:29px;font-size:10px;padding:4px 6px;white-space:normal;max-width:100%}
.meal-add{border:1px dashed #a9bca8;min-height:34px;display:flex;align-items:center;justify-content:center;gap:4px;padding:7px 5px;color:#39775d;border-radius:8px;background:transparent;font:inherit;font-size:11px;cursor:pointer;text-align:center;min-width:0}
.meal-slot:has(.meal-tile) .meal-add{min-height:28px}.meal-add:hover{background:#e9f3e7}.meal-extra{grid-column:2/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.meal-extra>div>small{font-size:11px;color:var(--muted)}
.shop-summary h2,.shop-group h2{font-size:16px;margin:0}.shop-progress{height:9px;background:#edf0e9;border-radius:9px;overflow:hidden;margin:12px 0}.shop-progress>span{height:100%;background:#5f997d;display:block;border-radius:9px}.shop-stats{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin-bottom:15px}.shop-stats strong{font-size:17px;color:var(--text,#20352c)}.shop-quick{display:flex;gap:8px;align-items:center;margin:14px 0}.shop-quick input{flex:1;min-width:0;padding:10px 12px;border:1px solid var(--line,#dbe2d7);border-radius:10px;font:inherit;background:#fff}.shop-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.shop-groups{margin-top:14px}.shop-group>.row{padding-bottom:10px;border-bottom:1px solid var(--line,#e3e7dc)}.shop-group .shopping-entry{padding:8px 0}.shop-quantity{font-size:13px;color:var(--muted)}.shop-group .checkrow{min-width:0}.shop-group .checkrow strong{overflow-wrap:anywhere}.shop-group .checkrow input{flex-shrink:0}
.stay-fields{background:#f5f7ef;padding:12px;border-radius:12px}.stay-fields[hidden]{display:none!important}.stay-info{margin:12px 0;min-width:0}.stay-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.stay-info-grid>div{display:flex;flex-direction:column;gap:5px;background:#f7f8f2;padding:12px;border-radius:11px;min-width:0}.stay-info-grid small{font-size:11px;color:var(--muted)}.stay-info-grid strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.map-actions,.airport-actions{margin-top:8px}.airport-actions .btn{font-size:11px;min-height:32px;white-space:normal}
@media(max-width:780px){.meal-calendar{padding:14px}.meal-grid-head{display:none}.meal-grid-day{display:flex;flex-direction:column;gap:6px;padding:12px 0}.meal-day-label{width:100%;padding:6px 0;flex-direction:row;align-items:center;gap:7px;flex-wrap:wrap}.meal-day-label small{margin-left:auto}.meal-slot{display:grid;grid-template-columns:minmax(76px,24%) minmax(0,1fr);align-items:center;gap:7px;width:100%;padding:6px;min-height:48px}.meal-mobile-label{display:block;font-size:11px;color:var(--muted);font-weight:750;align-self:start;padding:8px 2px;grid-row:1/span 6;overflow-wrap:anywhere}.meal-slot .meal-tile,.meal-slot .meal-add{grid-column:2}.meal-tile-main{min-height:44px;padding:9px}.meal-add{min-height:42px}.meal-extra{width:100%;grid-template-columns:minmax(0,1fr)}.meal-calendar-top{align-items:stretch;flex-direction:column;gap:10px}.meal-calendar-top label{width:100%}.meal-week-controls{justify-content:space-between}.shop-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-filters label:first-child{grid-column:1/-1}.shop-group .shopping-entry{gap:6px}.shop-group .entry-actions{flex-wrap:wrap}.shop-group .entry-actions .btn{font-size:10px;padding:5px 6px}.stay-info-grid>div{padding:10px}}
/* A single empty mobile slot must occupy only one row. */
@media(max-width:780px){.meal-mobile-label{grid-row:1;align-self:center}.meal-slot{align-content:start}.meal-slot .meal-tile+.meal-add{min-height:34px}}
