:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#f4f3ee;background:#0d1512;--gold:#d8b878;--panel:#14201b;--line:#2a3832}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 80% 0,#1d2b24 0,transparent 36%),#0d1512;min-height:100vh}.top{height:68px;padding:0 max(20px,5vw);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:#0d1512e8;backdrop-filter:blur(16px);z-index:5}.top-actions{display:flex;gap:8px}.brand{color:#fff;text-decoration:none;font-size:12px;letter-spacing:.18em;font-weight:800}main{width:min(1100px,90vw);margin:0 auto;padding:56px 0 100px}.card,.trip,.panel{background:linear-gradient(145deg,#17251f,#111b17);border:1px solid var(--line);border-radius:24px}.auth{max-width:560px;margin:8vh auto;padding:36px}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--gold);font-weight:800}.hero{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px}h1{font-size:clamp(36px,7vw,68px);line-height:.95;margin:12px 0 16px;letter-spacing:-.045em}h2{font-size:28px;margin:6px 0}.muted{color:#9eaaa4;line-height:1.55}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.trip{padding:24px;min-height:190px;text-align:left;color:inherit;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.trip h3{font-size:25px;margin:4px 0}.trip .meta{color:#c0c8c4;font-size:13px}.trip .muted{margin-top:auto}.trip:hover{border-color:#63756c}button,input,textarea{font:inherit}button{border:0;border-radius:999px;background:#f5f2e9;color:#0d1512;padding:12px 18px;font-weight:750;cursor:pointer}.ghost{background:transparent;color:#e8e8e3;border:1px solid #405048}input,textarea{width:100%;border:1px solid #34443c;border-radius:14px;padding:14px;background:#0c1511;color:#fff;outline:none}input:focus,textarea:focus{border-color:var(--gold)}#login-form{display:flex;gap:10px;margin-top:28px}.trip-head{margin-bottom:25px}.trip-head h1{margin-bottom:10px}.trip-head .ghost{margin-bottom:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.stats div{border:1px solid var(--line);border-radius:18px;padding:18px;background:#111c17}.stats b{display:block;font-size:30px}.stats span{color:#9eaaa4;font-size:12px}.tabs{display:flex;gap:8px;overflow:auto;padding:8px 0 18px}.tabs button{background:transparent;color:#9eaaa4;border:1px solid var(--line);white-space:nowrap}.tabs button.active{background:#f5f2e9;color:#0d1512}.tab-content{min-height:260px}.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.panel{padding:24px}.section-title{margin:34px 0 14px}.day-list{display:grid;gap:8px}.day-list button{border:1px solid var(--line);border-radius:17px;background:#111b17;color:#fff;text-align:left;display:grid;grid-template-columns:130px 1fr 20px;gap:14px;align-items:center}.day-list span{color:var(--gold);font-size:12px}.day-list i{font-style:normal}.timeline{display:grid;gap:26px}.timeline section>header{display:flex;gap:14px;align-items:baseline;border-bottom:1px solid var(--line);padding:0 0 12px}.timeline section>header span{color:var(--gold);font-weight:800}.timeline article{display:grid;grid-template-columns:75px 1fr;gap:14px;padding:15px 0;border-bottom:1px solid #202e28}.timeline time{color:#aab5af;font-weight:700}.timeline article b{font-size:17px}.timeline article p{margin:5px 0;color:#9eaaa4;line-height:1.45}.timeline small{color:var(--gold);text-transform:uppercase}.issue-list,.doc-list{display:grid;gap:9px}.issue{display:grid;grid-template-columns:90px 1fr;gap:14px;border:1px solid var(--line);border-radius:17px;padding:17px;background:#111b17}.issue>span{color:var(--gold);text-transform:uppercase;font-size:11px;font-weight:800}.issue p{margin:5px 0;color:#9eaaa4}.doc-list button{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid var(--line);border-radius:17px;background:#111b17;color:#fff}.doc-list button>span{font-size:24px}.doc-list button div{display:flex;flex-direction:column;min-width:0}.doc-list button b{overflow:hidden;text-overflow:ellipsis}.doc-list small{color:#9eaaa4}.doc-list i{font-style:normal;margin-left:auto;color:var(--gold)}.empty{text-align:center;border:1px dashed var(--line);border-radius:20px;padding:50px 20px}.files{display:flex;flex-direction:column;gap:5px;margin:10px 0;color:#b9c5bf;font-size:12px}.review-files{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:15px}dialog{width:min(720px,94vw);border:1px solid #3a4942;border-radius:26px;padding:0;background:#121d18;color:#fff;box-shadow:0 30px 100px #000b}dialog::backdrop{background:#07100cd9;backdrop-filter:blur(7px)}.wizard-head{display:flex;justify-content:space-between;align-items:start;padding:25px 28px 14px}.close{font-size:24px;padding:5px 12px;background:transparent;color:#fff}.progress{height:2px;background:#28362f}.progress i{display:block;height:100%;width:25%;background:var(--gold);transition:.2s}.wizard-foot{display:flex;justify-content:space-between;padding:20px 28px 26px}.step{padding:22px 28px 28px}.drop{border:1px dashed #53645b;border-radius:18px;padding:26px;text-align:center;margin:14px 0;background:#0d1712}.choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.choice button{white-space:normal;border-radius:16px;min-height:70px}.choice button.selected{outline:2px solid var(--gold)}.note{margin-top:15px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid #3b4a43;border-radius:99px;padding:8px 11px;color:#b8c1bc;font-size:12px}@media(max-width:600px){main{width:min(92vw,1100px);padding-top:30px}.hero{align-items:start;flex-direction:column}#login-form{flex-direction:column}.choice,.overview-grid{grid-template-columns:1fr}.auth{padding:25px}.stats{grid-template-columns:1fr 1fr}.stats div{padding:14px}.day-list button{grid-template-columns:90px 1fr 18px;padding:14px}.timeline article{grid-template-columns:58px 1fr}.issue{grid-template-columns:1fr;gap:6px}dialog{border-radius:20px}.wizard-head,.wizard-foot,.step{padding-left:20px;padding-right:20px}.brand{font-size:10px}.top .ghost{padding:8px 10px;font-size:12px}}.hub-grid{display:grid;grid-template-columns:minmax(0,720px);gap:16px}.hub-coming{min-height:240px;display:flex;flex-direction:column;justify-content:center}.hub-coming p{max-width:620px;font-size:16px}

/* Main hub chrome: account controls live in Я. */
body:has(#app:not([hidden]))>.top,body:has(#hub-section:not([hidden]))>.top{display:none!important}#app>.hero{position:relative;padding-right:64px;align-items:flex-start}#new-trip{position:absolute;right:0;top:0;width:48px;height:48px;min-width:48px;padding:0;border-radius:50%;display:grid;place-items:center;overflow:hidden;color:transparent;background:#d8b878;font-size:0;box-shadow:none}#new-trip::after{content:'+';color:#0d1512;font-size:30px;font-weight:400;line-height:1}#new-trip:active{transform:scale(.94);background:#c9a968}

/* Universal section add action — same geometry/placement, section-specific accent. */
#hub-section>.hero{position:relative!important;padding-right:64px!important}.hub-top-actions{position:absolute;right:0;top:0}.hub-top-plus{box-sizing:border-box;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:28px;font-weight:400;line-height:1;appearance:none;-webkit-appearance:none}.hub-plus-tastings{background:#7c2633}.hub-plus-collection{background:#315b49}.hub-plus-profile{background:#5f6770}.hub-top-plus:active{transform:scale(.94);filter:brightness(.9)}
/* One canonical plus glyph: identical to Wine Registry. */
#new-trip,.hub-top-plus{font-size:0!important;overflow:hidden!important;display:grid!important;place-items:center!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;border-radius:50%!important}
#new-trip::after,.hub-top-plus::after{content:'+';display:block;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-size:28px;font-weight:500;line-height:1;width:28px;height:28px;text-align:center;transform:translateY(-1px)}
#new-trip::after{color:#0d1512}.hub-top-plus::after{color:#fff}
/* Light Companion hub: Wine Registry is the visual reference for every root section. */
body:has(#app:not([hidden])),body:has(#hub-section:not([hidden])){background:#f7f7f9!important;color:#111!important}
body:has(#app:not([hidden])) main,body:has(#hub-section:not([hidden])) main{width:min(1120px,calc(100% - 36px))!important;max-width:1120px!important;margin:0 auto!important;padding-top:calc(20px + env(safe-area-inset-top))!important}
#app>.hero,#hub-section>.hero{position:relative!important;display:block!important;padding-right:64px!important;margin-bottom:24px!important;color:#111!important}
#app>.hero .eyebrow,#hub-section>.hero .eyebrow{color:#7c2633!important;font-size:11px!important;letter-spacing:.14em!important;font-weight:800!important}
#app>.hero h1,#hub-section>.hero h1{color:#111!important;font-size:40px!important;line-height:1!important;margin:8px 0 14px!important;letter-spacing:-.045em!important}
#app>.hero .muted,#hub-section>.hero .muted{color:#7c2633!important;max-width:620px!important;font-size:15px!important;line-height:1.45!important}
#app .grid{gap:12px!important}.trip{min-height:0!important;padding:20px!important;border:1px solid #e2e5e3!important;border-radius:22px!important;background:#fff!important;color:#111!important;box-shadow:none!important}.trip .eyebrow{color:#315b49!important}.trip h3{color:#111!important;font-size:22px!important}.trip .meta,.trip .muted{color:#777!important}.trip:hover{border-color:#cbd7d1!important}.trip .open-trip{color:#315b49!important}
body[data-hub-route="tastings"] #hub-section>.hero .eyebrow,body[data-hub-route="tastings"] #hub-section>.hero .muted{color:#7c2633!important}body[data-hub-route="collection"] #hub-section>.hero .eyebrow,body[data-hub-route="collection"] #hub-section>.hero .muted{color:#315b49!important}body[data-hub-route="profile"] #hub-section>.hero .eyebrow,body[data-hub-route="profile"] #hub-section>.hero .muted{color:#5f6770!important}
@media(max-width:600px){body:has(#app:not([hidden])) main,body:has(#hub-section:not([hidden])) main{width:calc(100% - 30px)!important;max-width:none!important;padding-top:calc(20px + env(safe-area-inset-top))!important}#app>.hero h1,#hub-section>.hero h1{font-size:40px!important}}
/* Trips root keeps its noble travel palette; geometry remains Companion-standard. */
body:has(#app:not([hidden])){background:radial-gradient(circle at 80% 0,#1d2b24 0,transparent 36%),#0d1512!important;color:#f4f3ee!important}
body:has(#app:not([hidden])) #app>.hero{color:#f4f3ee!important}
body:has(#app:not([hidden])) #app>.hero .eyebrow{color:#d8b878!important}
body:has(#app:not([hidden])) #app>.hero h1{color:#f4f3ee!important}
body:has(#app:not([hidden])) #app>.hero .muted{color:#aeb9b3!important}
body:has(#app:not([hidden])) .trip{background:linear-gradient(145deg,#17251f,#111b17)!important;border-color:#2a3832!important;color:#f4f3ee!important}
body:has(#app:not([hidden])) .trip .eyebrow{color:#d8b878!important}
body:has(#app:not([hidden])) .trip h3{color:#f4f3ee!important}
body:has(#app:not([hidden])) .trip .meta,body:has(#app:not([hidden])) .trip .muted{color:#aeb9b3!important}
/* Travel add button copies Wine's exact circle/glyph geometry; only palette changes. */
#new-trip{background:#d8b878!important;border:1px solid #d8b878!important;color:#0d1512!important;font-size:28px!important;font-weight:500!important;line-height:1!important;overflow:visible!important}
#new-trip::after{content:none!important}

/* Trips plus = Wine plus component, palette only. */
#new-trip{box-sizing:border-box!important;width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;padding:0!important;border:1px solid #d8b878!important;border-radius:50%!important;background:#d8b878!important;color:#0d1512!important;font-size:28px!important;font-weight:500!important;line-height:1!important;display:grid!important;place-items:center!important;text-align:center!important;appearance:none!important;-webkit-appearance:none!important;overflow:hidden!important}#new-trip::after{content:none!important}

/* Definitive trip plus: ignore legacy button text metrics entirely. */
#new-trip{font-size:0!important;overflow:hidden!important}#new-trip::after{content:'＋'!important;display:grid!important;place-items:center!important;width:100%!important;height:100%!important;color:#0d1512!important;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;font-size:28px!important;font-weight:400!important;line-height:1!important;transform:none!important}
:root{--theme-tasting:#8f1736;--theme-cellar:#17633f;--theme-profile:#77736e;--warm-paper:#f7f5f2}body[data-hub-route="tastings"]{background:#faf6f7!important}body[data-hub-route="collection"]{background:#f5f8f5!important}body[data-hub-route="profile"]{background:var(--warm-paper)!important}.hub-plus-tastings{background:var(--theme-tasting)!important}.hub-plus-collection{background:var(--theme-cellar)!important}.hub-plus-profile{background:var(--theme-profile)!important}#new-trip,.hub-top-plus{position:relative!important;font-size:0!important}.hub-top-plus::before,.hub-top-plus::after,#new-trip::before,#new-trip::after{content:''!important;position:absolute!important;left:50%!important;top:50%!important;display:block!important;border-radius:2px!important;transform:translate(-50%,-50%)!important}.hub-top-plus::before,#new-trip::before{width:20px!important;height:2px!important}.hub-top-plus::after,#new-trip::after{width:2px!important;height:20px!important}.hub-top-plus::before,.hub-top-plus::after{background:#fff!important}#new-trip::before,#new-trip::after{background:#0d1512!important}
/* Canonical root-page geometry: every tab shares the Wine Registry canvas exactly. */
:root{--companion-canvas:1120px;--companion-gutter:18px;--companion-mobile-gutter:15px;--companion-top:32px;--companion-safe-top:env(safe-area-inset-top,0px);--companion-bottom:110px}
body:has(#app:not([hidden])) main,body:has(#hub-section:not([hidden])) main{box-sizing:border-box!important;width:min(var(--companion-canvas),calc(100% - 2 * var(--companion-gutter)))!important;max-width:var(--companion-canvas)!important;margin:0 auto!important;padding:calc(var(--companion-top) + env(safe-area-inset-top)) 0 calc(var(--companion-bottom) + env(safe-area-inset-bottom))!important}
#app,#hub-section{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
#app>.hero,#hub-section>.hero{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0 0 24px!important;padding:0 64px 0 0!important}
#app>.hero>div:first-child,#hub-section>.hero>div:first-child{max-width:720px!important}
#app>.hero .eyebrow,#hub-section>.hero .eyebrow{margin:0 0 8px!important}
#app>.hero h1,#hub-section>.hero h1{margin:0 0 14px!important}
#app>.hero .muted,#hub-section>.hero .muted{margin:0!important}
#trip-grid,#hub-content{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:0!important}
#app .grid{grid-template-columns:1fr!important;width:100%!important}.trip{box-sizing:border-box!important;width:100%!important;margin:0!important}
#new-trip,.hub-top-actions,.wine-top-actions{right:0!important;top:0!important}
@media(max-width:600px){body:has(#app:not([hidden])) main,body:has(#hub-section:not([hidden])) main{width:calc(100% - 2 * var(--companion-mobile-gutter))!important;max-width:none!important;padding-top:calc(var(--companion-top) + env(safe-area-inset-top))!important}#app>.hero,#hub-section>.hero{padding-right:64px!important}}
/* Hero action is anchored, never participates in flex/grid flow. */
#app>.hero,#hub-section>.hero{position:relative!important;display:block!important;min-height:48px!important}
#new-trip{position:absolute!important;right:0!important;top:0!important;margin:0!important;float:none!important;z-index:2!important}
.hub-top-actions,.wine-top-actions{position:absolute!important;right:0!important;top:0!important;margin:0!important;z-index:2!important}

.leaflet-container .leaflet-control-attribution{color:#515b57;background:rgba(255,255,255,.85);font-size:10px;line-height:1.4}.leaflet-container .leaflet-control-attribution a{color:inherit}
/* Close/settings controls keep their neutral appearance when dialogs autofocus. */
button:is([data-ui-icon="close"],[data-ui-icon="settings"],[data-close],[data-edit],[aria-label="Закрыть"],.detail-close,.detail-edit):is(:focus,:focus-visible,:active){outline:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent!important}

html.mtc-dialog-open{overflow:hidden!important;overscroll-behavior:none}
dialog[open]{overscroll-behavior:contain}
dialog[open] main{-webkit-overflow-scrolling:touch}

/* Section descriptor casing: descriptors are uppercase; Trips title is uppercase too. */
#hub-section>.hero .eyebrow{text-transform:uppercase!important}
#app>.hero h1{text-transform:uppercase!important}

/* Shared section inset: direct page canvas only, never nested dialog main. */
body:has(#app:not([hidden]))>main,body:has(#hub-section:not([hidden]))>main{padding-top:calc(var(--companion-top) + var(--companion-safe-top))!important}
body[data-hub-route="tastings"] #hub-section>.hero h1{text-transform:uppercase!important}

/* Long translated headings wrap before the reserved action column. */
#app>.hero h1,#hub-section>.hero h1{overflow-wrap:anywhere;hyphens:auto}
