/* Approved compact header. Keep the photo and its route animation together. */
.rotezi-main{--header-surface:#fff;--header-ink:#17334e;--header-muted:#61758a;--header-soft:#eaf3ff;--header-line:#dce6ef;--header-glass:rgba(255,255,255,.64);--header-blue:#0764df}
html[data-theme="dark"] .rotezi-main{--header-surface:#10283e;--header-ink:#edf5ff;--header-muted:#b0c4d8;--header-soft:#193c60;--header-line:#2b465e;--header-glass:rgba(18,43,64,.64);--header-blue:#69b0ff}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) .rotezi-main{--header-surface:#10283e;--header-ink:#edf5ff;--header-muted:#b0c4d8;--header-soft:#193c60;--header-line:#2b465e;--header-glass:rgba(18,43,64,.64);--header-blue:#69b0ff}}
.rotezi-main .hero-shell{overflow:visible}
.rotezi-main .hero-shell .topbar{
  position:absolute!important;inset:4px 0 auto!important;z-index:60!important;
  display:grid!important;grid-template-columns:minmax(72px,1fr) auto!important;gap:4px!important;
  width:min(1120px,calc(100% - 24px))!important;height:44px!important;min-height:44px!important;
  padding:0 6px!important;margin:0 auto!important;border:0!important;border-radius:12px!important;
  background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:isolate;
}
.rotezi-main .hero-shell .topbar::before{
  box-sizing:border-box;content:"";position:absolute;z-index:-1;inset:0 0 auto;height:42px;
  border:1px solid rgba(220,235,255,.45);border-radius:12px;background:var(--header-glass);
  backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px);box-shadow:0 2px 7px rgba(13,44,72,.09);pointer-events:none;
}
.rotezi-main .topbar .official-brand{display:flex!important;align-items:center;width:120px!important;max-width:100%;min-width:0;min-height:44px;padding:0!important;flex-basis:auto}
.rotezi-main .topbar .official-brand-art{width:100%!important;max-width:120px;height:auto!important;max-height:40px;object-fit:contain}
.rotezi-main .topbar .top-actions{display:flex!important;gap:0!important;align-items:center;min-width:0;margin:0!important}
.rotezi-main .topbar .top-link{display:none!important}
.rotezi-main .topbar :is(.rotezi-account-button,.menu-button,#rotezi-trip-entry){
  position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;
  width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;
  color:var(--header-ink)!important;font-size:13px!important;gap:6px;cursor:pointer;isolation:isolate;
}
.rotezi-main .topbar .rotezi-account-button{width:44px!important;min-width:44px!important}
.rotezi-main .topbar .rotezi-account-button-label,.rotezi-main .topbar .menu-button>span{display:none!important}
.rotezi-main .topbar .rotezi-account-button-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:0;background:var(--header-soft);color:var(--header-blue);font-size:13px;font-weight:700}
.rotezi-main .topbar #rotezi-trip-entry{order:-1;width:auto!important;min-width:44px;padding:0 12px!important;color:#fff!important;font-family:inherit;font-weight:600;font-size:13px;line-height:1.2}
.rotezi-main .topbar #rotezi-trip-entry::before{content:"";position:absolute;inset:6px 3px;z-index:-1;border-radius:9px;background:#0764df;pointer-events:none}
.rotezi-main .topbar svg{display:block;width:19px;height:19px;flex:none}
.rotezi-main .topbar .menu-button svg{width:20px;height:20px}
.rotezi-main .topbar button:focus-visible,.rotezi-main .header-popover :is(button,a,summary):focus-visible{outline:2px solid var(--header-blue);outline-offset:1px}
.rotezi-main .hero-shell :is(#quick-nav,#rotezi-account-shortcuts){
  position:absolute!important;inset:54px max(12px,calc((100% - 1120px)/2)) auto auto!important;z-index:61!important;
  box-sizing:border-box;display:block;width:280px!important;max-width:calc(100% - 24px);max-height:calc(100svh - env(safe-area-inset-top,0px) - 80px);
  margin:0!important;padding:8px!important;border:1px solid var(--header-line)!important;border-radius:18px!important;
  color:var(--header-ink)!important;background:var(--header-surface)!important;box-shadow:0 10px 30px rgba(10,35,60,.2)!important;
  overflow:auto;overscroll-behavior:contain;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
.rotezi-main .hero-shell :is(#quick-nav,#rotezi-account-shortcuts)[hidden]{display:none!important}
.rotezi-main .header-account-heading{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--header-line);margin-bottom:5px}
.rotezi-main .header-account-heading [data-header-avatar]{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--header-soft);color:var(--header-blue);font-weight:700}
.rotezi-main .header-account-heading strong{font-size:14px}
.rotezi-main #rotezi-account-shortcuts :is(button,.rotezi-special-entry){display:flex!important;align-items:center;gap:9px;width:100%;min-height:48px;padding:10px!important;border:0;border-radius:10px;background:transparent;color:var(--header-ink);box-shadow:none;font-family:inherit;font-weight:600;font-size:13px;line-height:1.4;text-align:left;white-space:normal;cursor:pointer;transform:none}
.rotezi-main #rotezi-account-shortcuts .rotezi-special-entry b{display:inline;font:inherit}
.rotezi-main #rotezi-account-shortcuts .rotezi-special-entry span{display:grid;place-items:center;flex:none;width:18px;height:18px;background:transparent;color:var(--header-blue)}
.rotezi-main #rotezi-account-shortcuts svg{width:18px;height:18px;flex:none}
.rotezi-main #rotezi-account-shortcuts button:hover{background:var(--header-soft)}
.rotezi-main #quick-nav .rotezi-guide-title{display:block;margin:0;padding:10px;font-size:15px;line-height:1.4;font-weight:700;color:var(--header-ink)}
.rotezi-main #quick-nav .rotezi-guide-item{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px;border:0;border-radius:10px;background:transparent!important;color:var(--header-ink)!important;text-align:left;cursor:pointer;font:inherit}
.rotezi-main #quick-nav .rotezi-guide-item:hover{background:var(--header-soft)!important}
.rotezi-main #quick-nav .rotezi-guide-icon{display:flex;flex:none;color:var(--header-blue)}
.rotezi-main #quick-nav svg{width:18px;height:18px;flex:none}
.rotezi-main #quick-nav .rotezi-guide-copy{display:grid;gap:2px;flex:1;min-width:0}
.rotezi-main #quick-nav .rotezi-guide-copy strong{font-size:13px;font-weight:600;color:var(--header-ink)}
.rotezi-main #quick-nav .rotezi-guide-copy small{font-size:11px;line-height:1.4;color:var(--header-muted)}
.rotezi-main #quick-nav .rotezi-guide-chevron{margin-left:auto;color:var(--header-muted)}
.rotezi-main #quick-nav .rotezi-guide-chevron svg{width:14px;height:14px}
.rotezi-main #quick-nav .rotezi-guide-more{border-top:1px solid var(--header-line);margin-top:5px;padding-top:4px}
.rotezi-main #quick-nav summary{padding:12px 10px;font-size:12px;font-weight:600;cursor:pointer;color:var(--header-muted)}
.rotezi-main #quick-nav .v08-guide-group{display:block;padding:0;border:0;background:none}
.rotezi-main #quick-nav .v08-guide-group>strong{display:block;padding:12px 10px 4px;font-size:11px;color:var(--header-muted)}
.rotezi-main #quick-nav .v08-guide-group>button{display:block;width:100%;min-height:44px;padding:10px;border:0;border-radius:10px;background:transparent!important;color:var(--header-ink)!important;text-align:left;font-size:12px;line-height:1.4;cursor:pointer}
.rotezi-main #quick-nav .v08-guide-group>button:hover{background:var(--header-soft)!important}
.rotezi-main #quick-nav summary{display:flex;align-items:center;justify-content:space-between}
@media(max-width:760px){
  /* Browser supplies the real safe area; never add the mock phone's status bar. */
  .rotezi-main .app-shell{padding-top:env(safe-area-inset-top,0px)!important}
  .rotezi-main .hero-shell .topbar{width:calc(100% - max(12px,env(safe-area-inset-left,0px)) - max(12px,env(safe-area-inset-right,0px)))!important}
  .rotezi-main .topbar .official-brand{width:96px!important}
  .rotezi-main .topbar .official-brand-art{max-width:96px;max-height:32px}
  .rotezi-main .topbar #rotezi-trip-entry{width:44px!important;padding:0!important;margin-right:2px!important}
  .rotezi-main .topbar #rotezi-trip-entry::before{inset:6px;border-radius:50%}
  .rotezi-main #rotezi-trip-entry .rotezi-trip-label{display:none}
}
