/* Veylo v0.5: quieter workspace, one chat, progressive disclosure. */
@layer components {
.main{animation:none}.sidebar-tip{display:none}.sidebar-bottom{gap:18px}.nav-btn{font-size:.88rem;gap:10px;padding-inline:10px}.nav-btn small{margin-inline-start:auto;font-size:.73rem}.breadcrumb button{padding:8px 0}.footer-note{display:flex;align-items:center;justify-content:flex-start;gap:6px;font-size:.74rem}.footer-note .icon{width:14px;height:14px}
.home-secondary{margin-top:22px}.budget-hero{border:1px solid var(--line);border-radius:20px;background:var(--surface);padding:26px;margin-bottom:30px}.budget-primary{display:flex;justify-content:space-between;gap:26px;align-items:center}.budget-primary h2{font-size:1rem;letter-spacing:0;color:var(--muted);margin-bottom:9px}.budget-remaining{display:block;font-size:clamp(2rem,3.8vw,3.1rem);font-variant-numeric:tabular-nums;letter-spacing:-.045em;line-height:1.15}.budget-remaining.over{color:var(--danger)}.budget-primary p{margin-top:7px;font-size:.86rem}.budget-selector{display:grid;gap:10px;min-width:200px;font-size:.83rem}.budget-selector label{font-size:.78rem}.budget-warning{display:flex;align-items:center;gap:5px;color:var(--warm-text)}.budget-warning .icon{width:16px;height:16px}.budget-hero .progress{margin-block:24px 18px}.budget-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.budget-facts dt{font-size:.79rem;color:var(--muted);margin-bottom:4px}.budget-facts dd{font-weight:650;font-size:1.12rem;font-variant-numeric:tabular-nums;margin:0}.budget-hero .field-help{margin-top:14px}.recommendation-details{margin-block:24px;padding:16px 20px}.recommendation-details>summary{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:44px;font-weight:600}.recommendation-options{padding:14px 0 0;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.recommendation-options p{font-size:.88rem}.destination{transition:transform .18s ease,box-shadow .18s ease}.destination:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.rating{min-width:44px;min-height:44px}.cost-actions{gap:5px}.cost-actions .icon-btn{width:40px;height:40px}.cost-actions .btn{font-size:.8rem}.topic-highlight{outline:2px solid var(--brand);outline-offset:5px;animation:topic-arrival 1.4s ease}.cost-card{scroll-margin-top:90px}
.profile-menu{position:relative;min-width:0}.profile-menu>summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;min-height:48px;border-radius:12px;padding:5px}.profile-menu>summary::-webkit-details-marker{display:none}.profile-menu>summary:hover{background:var(--surface2)}.profile-name{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.profile-menu>summary>.icon{width:13px;height:13px;transform:rotate(-90deg)}.profile-options{position:absolute;bottom:calc(100% + 8px);inset-inline-start:0;min-width:245px;z-index:200;border:1px solid var(--line);background:var(--surface);box-shadow:0 12px 40px #0004;padding:7px;border-radius:14px;display:grid;animation:popover-arrive .15s ease}.profile-options .btn{justify-content:flex-start;border:0;font-size:.87rem;min-height:46px}.mobile-profile{display:none}
/* Category colors supplement labels and distinct icons, never replace them. */
:root{--topic-flight:#3f58a8;--topic-hotel:#7751b8;--topic-food:#926415;--topic-transport:#217166;--topic-entertainment:#a24474;--topic-other:#5a687d}
:root[data-resolved-theme=light]{--topic-flight:#2c3e7f;--topic-hotel:#4f327d;--topic-food:#654307;--topic-transport:#145247;--topic-entertainment:#72294e;--topic-other:#344154}
.topic-flights{--topic:var(--topic-flight)}.topic-hotels{--topic:var(--topic-hotel)}.topic-food{--topic:var(--topic-food)}.topic-transport{--topic:var(--topic-transport)}.topic-entertainment{--topic:var(--topic-entertainment)}.topic-insurance,.topic-sim,.topic-other,.topic-general,.topic-removed{--topic:var(--topic-other)}
.floating-chat-shell{right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));gap:0}.floating-chat-launcher{width:48px;height:48px;border-radius:50%;color:var(--surface);box-shadow:0 6px 22px #0004}.floating-chat-launcher[hidden]{display:none}.floating-chat-launcher .icon{width:22px;height:22px}.floating-chat-window{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:min(380px,calc(100vw - 28px));height:min(540px,calc(100dvh - 104px));border-radius:18px;transform-origin:bottom right;animation:floating-chat-open .2s ease-out}.floating-chat-window.is-closing{animation:floating-chat-close .16s ease-in forwards;pointer-events:none}.floating-chat-window .live-chat{padding:14px;height:100%;border:0;background:var(--surface);display:flex}.floating-chat-window .chat-heading{padding-bottom:10px;flex-wrap:nowrap}.chat-heading h3{font-size:1rem}.chat-header-tools{display:flex;gap:1px}.chat-tool{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:9px;color:var(--muted);flex-shrink:0;transition:background .12s,color .12s}.chat-tool .icon{width:16px;height:16px}.chat-tool:hover,.chat-tool:focus-visible{color:var(--text);background:var(--surface2)}.chat-tool[data-chat-action=delete-message]:hover{color:var(--danger)}.floating-chat-window .chat-stream-label{font-size:.78rem;padding-block:9px}.floating-chat-window .chat-messages{min-height:65px;flex:1;height:auto;gap:12px;padding:5px 2px;max-height:none}.chat-message>.avatar{display:none}.chat-bubble{border:0;background:var(--surface2);padding:10px 11px;border-radius:12px 12px 12px 3px;flex:initial;max-width:96%;width:100%}.chat-message.mine{justify-content:flex-end}.chat-message.mine .chat-bubble{border-radius:12px 12px 3px 12px;background:color-mix(in srgb,var(--mint) 65%,var(--surface))}.chat-message.unread .chat-bubble{border-inline-start:0}.chat-message-meta{gap:5px}.chat-message-meta strong{font-size:.75rem}.chat-message-meta time{font-size:.66rem}.chat-bubble>p{font-size:.9rem;line-height:1.5;margin-top:4px}.unread-dot{background:var(--brand);width:6px;height:6px;border-radius:50%}.chat-message-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:4px;margin-top:7px}.message-topic{background:color-mix(in srgb,var(--topic) 12%,var(--surface));color:var(--topic);border:1px solid color-mix(in srgb,var(--topic) 28%,transparent);border-radius:7px;padding:4px 7px;text-align:start;font-size:.68rem;display:flex;align-items:flex-start;gap:4px;max-width:calc(100% - 64px);overflow-wrap:anywhere;min-height:30px}.message-topic>.icon{width:13px;height:13px;margin-top:2px;flex-shrink:0}.message-subtopic{display:flex;align-items:center;gap:2px;color:var(--text);font-size:.67rem}.message-subtopic .icon{height:10px;width:10px}.chat-message-actions{margin:0;gap:0;flex-wrap:nowrap;flex-shrink:0}.chat-message-actions .chat-tool{width:30px;height:30px}.chat-message-actions .icon{width:14px;height:14px}.chat-new-arrival{animation:message-arrive .16s ease-out}.floating-chat-window .chat-compose{border:1px solid var(--line);margin-top:2px;padding:9px;display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:5px}.chat-input-label{grid-column:1;min-width:0}.floating-chat-window .chat-input-label textarea{min-height:52px;max-height:100px;font-size:.88rem;padding:7px 4px;resize:vertical}.chat-compose-footer{grid-column:2;grid-row:1;margin:0;align-self:end}.chat-send{min-height:38px!important;min-width:38px;padding:8px!important;border-radius:11px!important;color:var(--surface);gap:0!important}.chat-routing{grid-column:1/-1;grid-row:auto;border-top:1px solid var(--line);border-bottom:0;padding:7px 0 0;margin:0;gap:4px;align-items:center}.chat-to{display:flex;align-items:center;flex-wrap:wrap;gap:4px;flex:1;min-width:0}.composer-destination{width:100%;font-size:.65rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topic-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:6px;background:color-mix(in srgb,var(--topic) 12%,var(--surface));color:var(--topic);font-size:.7rem}.topic-chip .icon{width:13px;height:13px}.topic-sub{font-size:.67rem;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-routing .topic-select-button{font-size:.65rem!important;padding:4px!important;min-height:32px}.chat-error,.chat-replying{grid-column:1/-1}.chat-replying{grid-row:1}.chat-replying:not([hidden])~.chat-input-label{grid-row:2}.chat-replying:not([hidden])~.chat-compose-footer{grid-row:2}.chat-typing{min-height:21px;font-size:.7rem;padding:2px}.chat-typing.active::after{display:none}.chat-more .btn{font-size:.7rem;min-height:28px;padding:3px}.topic-picker{position:absolute;z-index:8;inset:65px 10px auto;background:var(--surface);border:1px solid var(--line);box-shadow:0 15px 45px #0006;border-radius:13px;padding:14px;display:grid;gap:12px;animation:popover-arrive .15s ease;max-height:calc(100% - 85px);overflow:auto}.topic-picker label{font-size:.82rem}.chat-plan-list{display:grid;gap:9px;padding:14px}.floating-chat-window>p{padding:14px}
/* Sharing: one generated invitation, with compact but touch-sized actions. */
.invite-existing{margin-bottom:22px}.invite-existing h3,.invite-create h3{font-size:1rem;margin-bottom:12px}.invite-options{display:grid;grid-template-columns:1fr 1fr 100px;gap:12px}.invite-options label{font-size:.8rem}.invite-create>.field-help{margin:11px 0;font-size:.76rem}.invite-value{display:flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:4px 5px 4px 12px;margin-top:10px;background:var(--surface2)}.invite-value-label{font-size:.7rem;color:var(--muted);min-width:54px}.invite-value input{border:0;background:none;min-width:0;min-height:40px;padding:5px;box-shadow:none;font-family:ui-monospace,monospace;font-size:.8rem}.invite-value-actions,.existing-tools{display:flex;flex-shrink:0;gap:2px}.inline-tool{display:inline-grid;place-items:center;width:36px;height:40px;border-radius:8px;color:var(--muted)}.inline-tool:hover{background:var(--surface);color:var(--brand)}.inline-tool .icon{width:16px;height:16px}.invite-expiry{font-size:.72rem;margin:8px 2px}.existing-invite{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-block:10px}.existing-invite strong{font-size:.84rem}.existing-invite small{display:block;font-size:.72rem;color:var(--muted);overflow-wrap:anywhere}.inactive-invites{margin-top:12px;font-size:.78rem}.inactive-invites summary{min-height:40px;cursor:pointer}.inactive-invites p{margin-top:5px}.invite-share-options{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;animation:popover-arrive .18s ease}.share-apps{display:flex;gap:7px;flex-wrap:wrap;margin-block:12px}.email-share>summary{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:44px}.email-share label{margin-block:10px}.email-share .field-help{margin-top:10px}.share-loading{padding:15px;background:var(--surface2);border-radius:10px;font-size:.82rem}.member-list{margin-block:15px}.member-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.member-name{display:flex;align-items:center;gap:10px;flex:1;min-width:0;font-size:.86rem;overflow-wrap:anywhere}.member-permission{width:140px;flex-shrink:0}.member-permission select{font-size:.84rem}#sharing-error:not(:empty){padding-top:12px;color:var(--danger);font-size:.85rem}.profile-options,.email-share[open],.recommendation-details[open]{animation:popover-arrive .18s ease}
@keyframes popover-arrive{from{transform:translateY(5px)}to{transform:none}}
@keyframes message-arrive{from{transform:translateY(4px)}to{transform:none}}
@keyframes floating-chat-close{to{opacity:0;transform:translateY(12px) scale(.97)}}
@keyframes topic-arrival{0%,75%{outline-color:var(--brand)}100%{outline-color:transparent}}
}
@layer responsive{
:root{--sidebar:188px}.sidebar{padding:24px 13px 16px;gap:24px}.brand{font-size:1.35rem;letter-spacing:-.045em}.topbar{height:70px;padding-inline:30px}.main{padding:28px 30px;max-width:1440px}.main .heading-row h1{font-size:2.1rem}.main .heading-row p{font-size:.85rem}.main .section-head h2{font-size:1.35rem}.main .heading-row>.row{flex-wrap:wrap}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--topic-flight:#b7caff;--topic-hotel:#d5baff;--topic-food:#e9c17c;--topic-transport:#8ed5c3;--topic-entertainment:#f0add2;--topic-other:#c1ccdf}}
:root[data-theme=dark]{--topic-flight:#b7caff;--topic-hotel:#d5baff;--topic-food:#e9c17c;--topic-transport:#8ed5c3;--topic-entertainment:#f0add2;--topic-other:#c1ccdf}
@media(max-width:980px){:root{--sidebar:172px}.main{padding:22px}.topbar{padding-inline:22px}.budget-facts{grid-template-columns:1fr 1fr}.budget-primary{align-items:flex-start;gap:18px}.profile-name{font-size:.73rem}}
@media(max-width:700px){.main{padding:23px 16px 100px}.topbar{min-height:68px;height:auto;padding:8px 12px;flex-wrap:nowrap}.top-actions{margin:0;gap:3px;flex-wrap:nowrap}.top-actions>.btn{font-size:0;width:40px;min-width:40px;padding:7px}.mobile-profile{display:block}.mobile-profile .profile-name,.mobile-profile summary>.icon{display:none}.mobile-profile>summary{padding:0;min-width:40px;min-height:44px}.mobile-profile .profile-options{top:calc(100% + 8px);bottom:auto;inset-inline-start:auto;inset-inline-end:0}.mobile-brand .brand>span:last-child:not(.brand-mark){display:inline}.mobile-brand .brand{font-size:1.15rem;gap:5px}.main .heading-row h1{font-size:1.7rem}.budget-hero{padding:18px;margin-bottom:24px}.budget-primary{display:grid;grid-template-columns:1fr;gap:18px}.budget-selector{min-width:0;display:flex;align-items:flex-start;gap:9px;flex-wrap:wrap}.budget-selector label{flex:1;min-width:150px}.budget-selector>span{font-size:.75rem}.budget-facts{gap:13px}.budget-facts dd{font-size:1.08rem}.budget-facts dt{font-size:.74rem}.floating-chat-shell{right:14px;bottom:calc(80px + env(safe-area-inset-bottom))}.floating-chat-launcher{width:46px;height:46px;border-radius:50%}.floating-chat-window{inset:auto 10px calc(80px + env(safe-area-inset-bottom));width:calc(100vw - 20px);height:min(500px,calc(100dvh - 162px));max-height:calc(var(--chat-vh,100dvh) - 105px);bottom:max(calc(80px + env(safe-area-inset-bottom)),calc(var(--chat-keyboard-inset,0px) + 10px))}.chat-tool{min-width:40px;min-height:40px}.chat-message-actions .chat-tool{width:34px;height:40px;min-width:34px;min-height:40px}.message-topic{max-width:calc(100% - 72px)}.floating-chat-window .chat-compose{padding:8px}.invite-options{grid-template-columns:1fr 1fr}.invite-options label:last-child{grid-column:1/-1;max-width:150px}.inline-tool{width:40px;height:44px}.invite-value-label{display:none}.existing-invite{gap:5px}.existing-tools{gap:0}.member-row{gap:6px;flex-wrap:wrap}.member-name{flex:1 1 130px}.member-permission{width:130px}.invite-value input{font-size:.78rem}.recommendation-options{display:grid;gap:10px}.footer-note{font-size:.7rem}}
@media(prefers-reduced-motion:reduce){.floating-chat-window,.chat-new-arrival,.profile-options,.topic-picker,.invite-share-options,.topic-highlight{animation:none!important;transition:none!important}}
:root[data-motion=reduced] *{animation:none!important;transition:none!important}
@media print{.budget-hero{break-inside:avoid}.profile-menu,.floating-chat-shell{display:none!important}}
}

@layer components {.cost-details{margin-block:8px}.cost-details>summary{font-size:.8rem;color:var(--brand);cursor:pointer;min-height:38px;display:flex;align-items:center;gap:6px}.cost-details>summary::before{content:'›';display:inline-block;font-size:1rem;transition:transform .15s}.cost-details[open]>summary::before{transform:rotate(90deg)}.cost-details[open]{padding-bottom:8px}}

@layer responsive{.mobile-profile .avatar{display:grid}}
.item-message-count{display:inline-flex;min-width:1.7em;min-height:1.7em;align-items:center;justify-content:center;padding-inline:.35em;border:1px solid var(--line);border-radius:999px;font-size:.68rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--muted);background:var(--surface2)}
.item-message-count[data-message-count-state="ready"]{color:var(--text)}
