/* Initial private Atlas palette for returning members: keep the first frame dark before membership JS mounts. */
html.orevyon-known-member body.atlas-body:not(.member-shell-v2){background:#0c0d0c!important;color:#eee5d8!important}
html.orevyon-known-member body.atlas-body:not(.member-shell-v2) .atlas-rail{background:linear-gradient(155deg,#13110d,#0b0b09)!important;border-color:rgba(201,163,106,.17)!important;color:#eee5d8!important}
html.orevyon-known-member body.atlas-body:not(.member-shell-v2) .atlas-map-stage,
html.orevyon-known-member body.atlas-body:not(.member-shell-v2) .atlas-map-loading{background:#0c0d0c!important;color:#a99d8b!important}
html.orevyon-known-member body.atlas-body:not(.member-shell-v2) .atlas-search-wrap{background:rgba(13,13,11,.93)!important;border-color:rgba(201,163,106,.24)!important}
html.orevyon-known-member body.atlas-body:not(.member-shell-v2) .atlas-search-wrap input{color:#eee5d8!important}
html.orevyon-known-member body.atlas-body:not(.member-shell-v2) .atlas-intro h1{color:#eee5d8!important}
html.orevyon-known-member body.atlas-body:not(.member-shell-v2) .atlas-filters button{color:#aaa092!important;border-color:rgba(201,163,106,.22)!important}
/* OREVYON / Atlas Member House Completion V1
   Applied only after authenticated member-navigation marks Atlas as a member room. */
body.member-shell-v2[data-member-surface="atlas"]{
  --amh-bronze:#c9a36a;--amh-ivory:#eee5d8;--amh-muted:#a99d8b;
  background:#0c0d0c!important;color:#eee5d8!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-header{
  background:rgba(9,10,9,.94)!important;
  border-bottom:1px solid rgba(201,163,106,.22)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.16)!important;
  backdrop-filter:blur(22px)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-brand span{color:#eee4d5!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-brand img{
  filter:drop-shadow(0 0 8px rgba(219,174,104,.18))!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>a,
body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>button,
body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>details>summary{
  color:#9e9384!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>a:hover,
body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>a.active,
body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>details>summary:hover{
  color:#dfc28f!important;
}
body.member-shell-v2[data-member-surface="atlas"] .member-house-rail{
  background:linear-gradient(90deg,#12100d,#0d0d0b)!important;
  border-bottom-color:rgba(201,163,106,.18)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .member-house-rail a{color:#9d9283!important}
body.member-shell-v2[data-member-surface="atlas"] .member-house-rail a:hover,
body.member-shell-v2[data-member-surface="atlas"] .member-house-rail a.is-active{color:#e0c28d!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-rail{
  background:linear-gradient(155deg,rgba(19,17,13,.93),rgba(11,11,9,.86))!important;
  border-color:rgba(201,163,106,.22)!important;
  box-shadow:0 20px 58px rgba(0,0,0,.20)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-intro>span,
body.member-shell-v2[data-member-surface="atlas"] .atlas-filter-block>small,
body.member-shell-v2[data-member-surface="atlas"] .atlas-list-head small{color:#c5a36a!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-intro h1{color:#f0e6d7!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-intro h1 em{color:#d4b47c!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-intro p{color:#a99d8d!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-intro-links a{
  color:#dcc18f!important;border-color:rgba(201,163,106,.34)!important;background:rgba(201,163,106,.035)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-intro-links a:hover{
  background:#eee5d8!important;color:#211a13!important;border-color:#eee5d8!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-filter-block{border-color:rgba(201,163,106,.15)!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-filters button{
  color:#9b9183!important;border-color:rgba(201,163,106,.14)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-filters button:hover{color:#d6c09c!important;border-color:rgba(201,163,106,.28)!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-filters button.active{
  color:#f0dfbf!important;background:rgba(201,163,106,.13)!important;border-color:rgba(201,163,106,.38)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-search-wrap{
  background:rgba(13,13,11,.84)!important;
  border-color:rgba(201,163,106,.25)!important;
  box-shadow:0 20px 54px rgba(0,0,0,.20)!important;
  backdrop-filter:blur(24px)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-search-wrap input{color:#eee5d7!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-search-wrap input::placeholder{color:#8f8578!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-search-wrap button{
  color:#d2b27c!important;border-left-color:rgba(201,163,106,.22)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-map-signature{
  background:rgba(12,12,10,.55)!important;border-color:rgba(201,163,106,.23)!important;
  color:#dec697!important;box-shadow:0 14px 40px rgba(0,0,0,.16)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail{
  background:
    radial-gradient(ellipse at 82% 5%,rgba(193,149,82,.08),transparent 42%),
    linear-gradient(155deg,#171511,#0f0e0c 76%)!important;
  border-color:rgba(201,163,106,.28)!important;
  box-shadow:0 32px 90px rgba(0,0,0,.30)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail h2{color:#f1e7d8!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail-summary,
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail-empty p{color:#aa9e8e!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-read{border-left-color:rgba(216,177,112,.72)!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-actions a,
body.member-shell-v2[data-member-surface="atlas"] .atlas-actions button{
  border-color:rgba(201,163,106,.30)!important;color:#d8c9b2!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-actions .primary{
  background:#eee6d9!important;color:#211a13!important;border-color:#eee6d9!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-map-note{
  background:rgba(10,10,8,.67)!important;color:#aa9d87!important;border:1px solid rgba(201,163,106,.15)!important;
}
@media(max-width:900px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-rail{
    background:linear-gradient(180deg,#12100d,#0d0d0b)!important;border-bottom:1px solid rgba(201,163,106,.16)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-filters button{
    background:#171511!important;color:#ac9f8d!important;border-color:rgba(201,163,106,.20)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-filters button.active{
    background:#2a2219!important;color:#e3c793!important;border-color:rgba(201,163,106,.45)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-search-wrap{background:rgba(16,15,12,.91)!important}
}

/* V2 / MEMBER READABILITY — keep Atlas dense, never microscopic. */
@media(min-width:901px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>a,
  body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>button,
  body.member-shell-v2[data-member-surface="atlas"] .atlas-member-nav>details>summary{
    font-size:10px!important;letter-spacing:.10em!important;
  }
}
body.member-shell-v2[data-member-surface="atlas"] :is(
  .atlas-intro>span,.atlas-filter-block>small,.atlas-list-head small,.atlas-detail small,
  .atlas-detail-empty>span,.atlas-search-wrap label,.atlas-list-item small,.atlas-list-item span,
  .atlas-map-note,.atlas-marker-label,.atlas-marker-fit,.atlas-tags span,.atlas-live-status,
  .atlas-list-fit,.atlas-taste-cta
){
  font-size:9.5px!important;line-height:1.35!important;
}
body.member-shell-v2[data-member-surface="atlas"] :is(
  .atlas-search-wrap button,.atlas-actions a,.atlas-actions button,.atlas-filters button
){
  font-size:10px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail-summary,
body.member-shell-v2[data-member-surface="atlas"] .atlas-intro p{
  font-size:11px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-signal small,
body.member-shell-v2[data-member-surface="atlas"] .atlas-signal strong,
body.member-shell-v2[data-member-surface="atlas"] .atlas-compare-tray :is(span,small,button),
body.member-shell-v2[data-member-surface="atlas"] .atlas-related-head :is(small,p),
body.member-shell-v2[data-member-surface="atlas"] .atlas-related-card :is(small,span,em),
body.member-shell-v2[data-member-surface="atlas"] .atlas-connection-label :is(small,p),
body.member-shell-v2[data-member-surface="atlas"] .atlas-cluster-list :is(span,strong),
body.member-shell-v2[data-member-surface="atlas"] .atlas-combine-main :is(small,span),
body.member-shell-v2[data-member-surface="atlas"] .atlas-combine-compare,
body.member-shell-v2[data-member-surface="atlas"] [class*="atlas-world-route"] :is(small,span,em,b,button),
body.member-shell-v2[data-member-surface="atlas"] [class*="atlas-route-"] :is(small,span,em,b,button,label,input){
  font-size:9.5px!important;line-height:1.4!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-map-signature{
  width:128px!important;height:128px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-map-signature>span,
body.member-shell-v2[data-member-surface="atlas"] .atlas-map-signature small,
body.member-shell-v2[data-member-surface="atlas"] .atlas-map-signature em{
  font-size:9.5px!important;letter-spacing:.10em!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-map-signature small{margin-top:20px!important}
body.member-shell-v2[data-member-surface="atlas"] .atlas-filter-personal:after{
  font-size:8.5px!important;
}
@media(max-width:900px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-filters button{
    font-size:10px!important;min-height:42px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] :is(.atlas-detail small,.atlas-actions a,.atlas-actions button){
    font-size:10px!important;
  }
}
/* V3 / Atlas map-first layout and realistic, legible trip planning.
   Scoped to Atlas members, does not alter routing or itinerary calculations. */
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail{
  scrollbar-width:thin;scrollbar-color:rgba(205,166,106,.45) rgba(0,0,0,.15);
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-signal-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-signal{
  min-width:0!important;overflow-wrap:break-word!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-signal small{
  font-size:10px!important;letter-spacing:.09em!important;line-height:1.5!important;
  color:#baaa91!important;overflow-wrap:anywhere!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-signal strong{
  font-size:12px!important;line-height:1.5!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-detail-summary,
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-read p{
  font-size:13px!important;line-height:1.78!important;color:#d5cab9!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-actions :is(a,button),
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-expand{
  min-height:42px!important;font-size:11px!important;line-height:1.45!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-intelligence-head{
  gap:16px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail :is(
  .atlas-connection-label p,
  .atlas-related-head p,
  .atlas-route-verification>span,.atlas-route-verification>em,
  .atlas-world-route-transport>span,.atlas-world-route-transport>em,
  .atlas-route-readiness>span,.atlas-route-readiness>em,
  .atlas-planning-readiness>div span,.atlas-planning-readiness>em,
  .atlas-trip-length-notice,
  .atlas-world-route-leg span,.atlas-world-route-leg em,
  .atlas-world-route-stops small,
  .atlas-world-route-stop-dates span,
  .atlas-world-route-metrics span
){
  font-size:11px!important;line-height:1.65!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail :is(
  .atlas-route-readiness>small,.atlas-planning-readiness>small,
  .atlas-world-route-transport>small,.atlas-route-verification>small,
  .atlas-trip-length>div:first-child>small,
  .atlas-world-route-head>small,.atlas-connection-label small
){
  font-size:10px!important;line-height:1.5!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail :is(
  .atlas-route-readiness>strong,.atlas-planning-readiness>strong,
  .atlas-world-route-transport>strong,.atlas-route-verification>strong,
  .atlas-trip-length>div:first-child>strong,
  .atlas-world-route-stops strong
){
  font-size:12px!important;line-height:1.5!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-world-route-title{
  font-size:clamp(21px,2vw,27px)!important;line-height:1.24!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail :is(
  .atlas-route-scheduling-head label,.atlas-trip-length-controls label,
  .atlas-stay-editor>span small,.atlas-stay-editor>.lock,
  .atlas-stay-editor>.reset,.atlas-stay-editor>em
){
  font-size:10px!important;line-height:1.45!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail :is(
  .atlas-route-scheduling-head input[type="date"],.atlas-trip-length-controls input
){
  font-size:12px!important;min-height:40px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-world-route-footer button{
  min-height:42px!important;font-size:11px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail :is(
  .atlas-route-scheduling,.atlas-world-route-card,.atlas-world-route-transport
){
  overflow-wrap:anywhere!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-marker.active .atlas-marker-label{
  max-width:185px!important;white-space:normal!important;line-height:1.4!important;
}
@media(min-width:901px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace{
    width:min(820px,calc(100vw - 420px))!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-detail-copy{
    padding:26px 28px 44px!important;
  }
}
@media(min-width:901px) and (max-width:1200px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-grid{
    grid-template-columns:1fr!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-route-scheduling-head,
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-trip-length{
    display:grid!important;grid-template-columns:1fr!important;
  }
}
@media(max-width:900px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail{
    max-height:min(78dvh,740px)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-detail-copy{
    padding:23px 22px 34px!important;
  }
}

/* Member Atlas — even the compact sidebar must give destination names a full line. */
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-world-route-stop-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:7px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-world-route-stop-main{
  min-width:0!important;
  width:100%!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-world-route-stops strong{
  overflow-wrap:normal!important;
  word-break:normal!important;
  white-space:normal!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-stay-editor{
  max-width:calc(100% - 31px)!important;
  margin:0 0 10px 31px!important;
  flex-wrap:wrap!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-world-route-card{
  min-width:0!important;
  overflow-wrap:normal!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-scheduling-head{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-trip-length{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-trip-length-controls{
  flex-wrap:wrap!important;
}
@media(max-width:520px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-date-fields{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
  }
}
/* V4 / Atlas Route Intelligence: one full-width route per row.
   A reduced floating panel can never fit two independent itinerary editors. */
@media(min-width:901px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace{
    width:min(740px,calc(100vw - 360px))!important;
    max-width:calc(100vw - 320px)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:22px!important;
    min-width:0!important;
    width:100%!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-card{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    padding:23px 25px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-stop-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-stay-editor{
    margin:0 0 12px 31px!important;
    width:max-content!important;
    max-width:calc(100% - 31px)!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-stop-main{
    min-width:0!important;
    width:100%!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-stops span{
    min-width:0!important;
    max-width:100%!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-stops strong{
    font-size:13px!important;
    line-height:1.5!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    white-space:normal!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-title{
    font-size:clamp(23px,2.4vw,30px)!important;
    line-height:1.19!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-route-scheduling-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:14px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-route-date-fields{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-route-date-fields label{
    min-width:0!important;
    width:100%!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-route-scheduling-head input[type="date"]{
    width:100%!important;
    min-width:0!important;
    font-size:13px!important;
    padding:8px 11px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-trip-length{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-trip-length-controls{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
    gap:10px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-footer{
    min-width:0!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-world-route-footer button{
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
}
@media(min-width:901px) and (max-width:1130px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace{
    width:min(620px,calc(100vw - 300px))!important;
    max-width:calc(100vw - 270px)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-detail-copy{
    padding:23px 20px 34px!important;
  }
}
@media(max-width:900px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-world-route-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-world-route-stop-row{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-stay-editor{
    flex-wrap:wrap!important;
  }
}

/* V5 / Map-first Atlas: a 300px sidebar is for route previews, not itinerary editing.
   Show compact, actionable route summaries; all existing editing tools remain
   immediately accessible through the dedicated expanded planning workspace. */
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-preview-note,
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-preview-open{
  display:none!important;
}
@media(min-width:901px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-intelligence-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:15px!important;
    min-width:0!important;
    margin-bottom:17px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-intelligence-head>div{
    display:block!important;
    min-width:0!important;
    width:100%!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-connection-label{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:7px!important;
    width:100%!important;
    min-width:0!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-connection-label p{
    margin:0!important;
    max-width:100%!important;
    font-size:11px!important;
    line-height:1.7!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-intelligence h3{
    font-size:25px!important;
    line-height:1.16!important;
    max-width:100%!important;
    margin:11px 0 0!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-preview-note{
    display:block!important;
    margin:10px 0 0!important;
    font-size:11px!important;
    line-height:1.7!important;
    color:#ada191!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-expand{
    display:block!important;
    align-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    min-height:45px!important;
    white-space:normal!important;
    text-align:center!important;
    padding:11px 14px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    gap:12px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-card{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:16px!important;
    gap:0!important;
    background:linear-gradient(155deg,rgba(29,29,25,.94),rgba(13,16,13,.96))!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-title{
    font-size:21px!important;
    line-height:1.28!important;
    letter-spacing:-.012em!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    white-space:normal!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-metrics{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:6px!important;
    margin:12px 0 14px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-metrics span:nth-child(n+4){
    display:none!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-scheduling,
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-stops,
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-swap,
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-footer{
    display:none!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-preview-open{
    display:block!important;
    width:100%!important;
    min-height:43px!important;
    margin-top:4px!important;
    padding:11px 12px!important;
    border:1px solid rgba(206,174,115,.45)!important;
    background:rgba(206,174,115,.09)!important;
    color:#ddc18e!important;
    font:600 10px/1.3 'DM Sans',sans-serif!important;
    letter-spacing:.09em!important;
    text-transform:uppercase!important;
    cursor:pointer!important;
    white-space:normal!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-preview-open:hover,
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-route-preview-open:focus-visible{
    border-color:#d6b981!important;
    background:rgba(206,174,115,.17)!important;
    outline-offset:2px;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-detail-copy{
    padding-bottom:106px!important;
  }
}
@media(max-width:900px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace{
    width:min(620px,calc(100vw - 28px))!important;
    max-width:calc(100vw - 28px)!important;
    right:14px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-intelligence-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:14px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-intelligence-head .atlas-connection-label{
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail .atlas-route-expand{
    width:100%!important;
    white-space:normal!important;
  }
}

/* V6 / Atlas itinerary date fields:
   Empty native Safari date inputs can visually resemble today's chosen date.
   Draw a real not-selected prompt until JS stores a date; keep native picker usable. */
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-fields label{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:7px!important;
  color:#b7aa98!important;
  font-size:10px!important;
  line-height:1.45!important;
  letter-spacing:.09em!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-input{
  display:block!important;
  position:relative!important;
  min-width:0!important;
  width:100%!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-input input[type="date"]{
  display:block!important;
  min-width:0!important;
  width:100%!important;
  height:43px!important;
  padding:10px 11px!important;
  font-size:12px!important;
  line-height:1.3!important;
  letter-spacing:normal!important;
  color:#e6dccd!important;
  -webkit-text-fill-color:#e6dccd!important;
  border:1px solid rgba(205,168,111,.24)!important;
  background:#0b0e0c!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-input input[type="date"]:focus-visible{
  outline:2px solid rgba(207,169,108,.75)!important;
  outline-offset:2px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-prompt{
  display:none;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-input.is-unset:not(:focus-within) .atlas-route-date-prompt{
  display:block!important;
  position:absolute!important;
  left:12px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  max-width:calc(100% - 55px)!important;
  color:#b8ac99!important;
  font-size:11px!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  line-height:1.4!important;
  pointer-events:none!important;
  z-index:2!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-input.is-unset:not(:focus-within) input[type="date"]{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-input.is-unset:not(:focus-within) input[type="date"]::-webkit-datetime-edit{
  opacity:0!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-input.is-unset:focus-within input[type="date"],
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-input.is-unset:focus-within input[type="date"]::-webkit-datetime-edit{
  opacity:1!important;
  color:#e6dccd!important;
  -webkit-text-fill-color:#e6dccd!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-empty-state{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  padding:14px 0 3px!important;
  color:#a99b89!important;
  font-size:11px!important;
  line-height:1.5!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-empty-state>span{
  flex:1 1 180px!important;
  min-width:0!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-empty-state button{
  flex:0 0 auto!important;
  min-height:37px!important;
  padding:8px 11px!important;
  border:1px solid rgba(205,168,111,.44)!important;
  color:#d9be8f!important;
  background:rgba(205,168,111,.1)!important;
  font:600 10px/1.25 'DM Sans',sans-serif!important;
  letter-spacing:.06em!important;
  cursor:pointer!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-empty-state button:hover{
  background:rgba(205,168,111,.19)!important;
}
@media(max-width:520px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail.route-workspace .atlas-route-date-fields{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-route-date-empty-state button{
    width:100%!important;
  }
}

/* V7 / Atlas compact view: reading-sized editorial route previews.
   The narrow map sidebar must NEVER re-use desktop 3-column combination cards.
   The route-workspace remains untouched at its own 740px planning width. */
@media (min-width:901px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace){
    width:min(440px,calc(100vw - 64px))!important;
    max-width:calc(100vw - 64px)!important;
  }
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-detail-copy{
  padding-left:22px!important;
  padding-right:22px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-connections{
  min-width:0!important;
  padding:20px 0 24px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-related-head{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:8px!important;
  min-width:0!important;
  margin-bottom:18px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-related-head small{
  font-size:10px!important;
  letter-spacing:.13em!important;
  color:#bd9f6c!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-related-head strong{
  font-size:23px!important;
  line-height:1.25!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-related-head p{
  display:block!important;
  margin:0!important;
  font-size:11.5px!important;
  line-height:1.7!important;
  color:#a69b89!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-connection-block{
  padding-top:17px!important;
  margin-top:19px!important;
  border-top-color:rgba(207,177,122,.15)!important;
  min-width:0!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-connection-label{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:6px!important;
  margin-bottom:12px!important;
  min-width:0!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-connection-label small{
  display:block!important;
  font-size:10px!important;
  line-height:1.45!important;
  letter-spacing:.13em!important;
  color:#bea16e!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-connection-label p{
  display:block!important;
  font-size:11px!important;
  line-height:1.55!important;
  color:#a59b8d!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-cluster-list{
  gap:7px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-cluster-list button{
  min-width:0!important;
  min-height:37px!important;
  padding:8px 10px!important;
  flex-wrap:wrap!important;
  gap:5px 8px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-cluster-list strong{
  font-size:10.5px!important;
  line-height:1.4!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-cluster-list span{
  font-size:10px!important;
}
/* Single-column list, horizontal action: prevents 65px cards and vertical text */
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:9px!important;
  width:100%!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(83px,auto)!important;
  align-items:stretch!important;
  min-width:0!important;
  width:100%!important;
  background:linear-gradient(140deg,rgba(27,29,25,.95),rgba(11,14,12,.95))!important;
  border-color:rgba(206,175,121,.19)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-main{
  min-width:0!important;
  min-height:93px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:13px 15px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-main small{
  font-size:9.5px!important;
  line-height:1.35!important;
  letter-spacing:.09em!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-main strong{
  width:100%!important;
  min-width:0!important;
  font-size:20px!important;
  line-height:1.23!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-main span{
  font-size:10px!important;
  line-height:1.5!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-compare{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:83px!important;
  min-height:100%!important;
  padding:10px!important;
  border-left:1px solid rgba(205,174,119,.15)!important;
  border-top:0!important;
  background:rgba(201,166,108,.055)!important;
  color:#d8ba83!important;
  font-size:9.5px!important;
  line-height:1.35!important;
  letter-spacing:.06em!important;
  text-align:center!important;
  white-space:normal!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-alternatives-block .atlas-related-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  gap:9px!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-alternatives-block .atlas-related-card{
  min-width:0!important;
  min-height:105px!important;
  padding:15px 16px!important;
  background:linear-gradient(145deg,rgba(22,25,21,.96),rgba(9,12,10,.96))!important;
  border-color:rgba(205,174,119,.16)!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-alternatives-block .atlas-related-card small{
  font-size:9.5px!important;
  line-height:1.45!important;
  letter-spacing:.08em!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-alternatives-block .atlas-related-card strong{
  font-size:21px!important;
  line-height:1.25!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-alternatives-block .atlas-related-card span,
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-alternatives-block .atlas-related-card em{
  font-size:10px!important;
  line-height:1.5!important;
  white-space:normal!important;
  overflow:visible!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-head>small{
  font-size:10px!important;
  line-height:1.4!important;
}
body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-world-route-metrics span{
  font-size:10px!important;
  line-height:1.35!important;
  padding:5px 7px!important;
}
@media(max-width:520px){
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-card{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.member-shell-v2[data-member-surface="atlas"] .atlas-detail:not(.route-workspace) .atlas-combine-compare{
    border-left:0!important;
    border-top:1px solid rgba(205,174,119,.15)!important;
    min-height:38px!important;
  }
}