/* STRATA ONE V177: scoped trip-map containment, accessible water choices and readable trip briefs. */
body.v78-atlas #trips .v78-trip-frame,
body.v78-atlas #trips .v78-trip-side,
body.v78-atlas #trips .v78-map-world,
body.v78-atlas #trips .trip-intelligence-brief {min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.v78-atlas #trips .v78-map-world :is(.chart-hero,.trip-map-head,.map-layer-title,.map-layer-controls,.map-legend,.trip-contour-note){
 position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
 transform:none!important;width:auto!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;
}
body.v78-atlas #trips .v78-map-world .trip-map-head {padding:10px 14px!important;min-height:0!important;background:#181918!important;border:1px solid var(--ui-accent)!important;border-radius:9px!important}
body.v78-atlas #trips .v78-map-world .trip-map-head :is(h2,p){white-space:normal!important;overflow-wrap:anywhere!important;color:#fff!important}
body.v78-atlas #trips .v78-map-world .map-layer-title{padding:6px 12px!important;color:var(--ui-text-light)!important}
body.v78-atlas #trips .v78-map-world .map-layer-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:8px 12px!important}
body.v78-atlas #trips .v78-map-world .map-layer-controls button{position:relative!important;min-width:0!important;min-height:40px!important;white-space:normal!important;overflow-wrap:break-word!important;line-height:1.2!important}
body.v78-atlas #trips .v78-map-world .map-legend{display:flex!important;flex-wrap:wrap!important;gap:12px!important;padding:8px 12px!important}
body.v78-atlas #trips .v78-map-world .mapbox{position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;height:clamp(370px,55vh,640px)!important;min-height:370px!important;overflow:hidden!important;z-index:0!important}
body.v78-atlas #trips .v78-map-world .map-slab{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.v78-atlas #trips .trip-intelligence-brief :where(.trip-brief-section,.trip-split,.trip-lure-list,.trip-lure-pick,.recCards,.recCard,.trip-position-list,.trip-export-actions){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
/* Briefs must be usable inside a narrow desktop side rail, not just a narrow viewport. */
body.v78-atlas #trips .v78-trip-side .trip-split{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
body.v78-atlas #trips .v78-trip-side .trip-split>div{min-width:0!important;max-width:100%!important}
body.v78-atlas #trips .v78-trip-side .trip-split .recCard{overflow-wrap:anywhere!important;white-space:normal!important;line-height:1.45!important}
body.v78-atlas #trips .v78-trip-side .trip-intelligence-brief{overflow:hidden!important}
body.v78-atlas #trips .trip-water-matches .v177-trip-matches{display:grid!important;gap:4px!important;max-height:270px!important;overflow-y:auto!important;padding:5px!important}
body.v78-atlas #trips .v177-match-caption{font-size:12px!important;font-weight:700!important;color:var(--ui-text-dark)!important}
body.v78-atlas #trips button.v177-water-choice{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;width:100%!important;min-width:0!important;padding:8px 10px!important;background:var(--ui-surface)!important;border:1px solid var(--ui-border-light)!important;border-radius:6px!important;color:var(--ui-text-dark)!important;text-align:left!important;cursor:pointer!important}
body.v78-atlas #trips button.v177-water-choice :is(b,small){color:inherit!important;overflow-wrap:anywhere!important}
body.v78-atlas #trips button.v177-water-choice:is(.is-active,:hover,:focus-visible){background:var(--ui-accent)!important;border-color:var(--ui-accent-border)!important;color:var(--ui-accent-text)!important;outline:2px solid var(--ui-accent-border)!important}
body.v78-atlas #history .history-saved-plan-card{margin-bottom:14px!important}
body.v78-atlas #history .history-saved-plan-card .account-content{min-width:0!important;max-width:100%!important}
@media(max-width:700px){body.v78-atlas #trips .v78-map-world .map-layer-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.v78-atlas #trips .v78-map-world .mapbox{height:420px!important;min-height:420px!important}}

/* Prevent the desktop/map overlay stack shown in the owner's screenshot. */
body.v78-atlas #trips .v78-map-world{display:flex!important;flex-direction:column!important;gap:0!important}
body.v78-atlas #trips .v78-map-world>.chart-hero,
body.v78-atlas #trips .v78-map-world>.map-command-bar{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:auto!important;height:auto!important;margin:0 0 10px!important;padding:12px 14px!important;z-index:1!important}
body.v78-atlas #trips .v78-map-world .chart-hero .micro-export{position:static!important;top:auto!important;right:auto!important;min-width:fit-content!important;white-space:nowrap!important}
body.v78-atlas #trips .v78-map-world .chart-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
body.v78-atlas #trips .v78-map-world .chart-hero h1{font-size:clamp(25px,2.2vw,34px)!important;line-height:1.13!important}
body.v78-atlas #trips .v78-map-world .trip-map-head{display:block!important;padding:12px 14px!important;position:relative!important;z-index:1!important}
body.v78-atlas #trips .v78-map-world .map-slab{display:flex!important;flex-direction:column!important;gap:0!important;overflow:visible!important}
body.v78-atlas #trips .v78-map-world :is(.map-layer-title,.map-layer-controls,.map-legend){margin:0!important;position:relative!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important}
body.v78-atlas #trips .v78-map-world .mapbox{flex:0 0 auto!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important}
body.v78-atlas #trips .v78-trip-side :where(.trip-brief-body,.trip-lure-detail,.trip-pick-card,.trip-move-card,.trip-brief-main,.trip-outcome,.trip-position-body,.trip-location-copy){max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important;white-space:normal!important}
body.v78-atlas #history .v78-history-intro{min-width:0!important}
body.v78-atlas #history .v78-history-intro .vault-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;justify-items:start!important;gap:12px!important;padding:20px!important}
body.v78-atlas #history .v78-history-intro .vault-hero h1{font-size:clamp(30px,2.7vw,44px)!important;line-height:1.08!important;letter-spacing:-.025em!important;overflow-wrap:normal!important;word-break:keep-all!important;white-space:normal!important}
body.v78-atlas #history .v78-history-intro .vault-hero .history-kmz-export{position:static!important;min-width:130px!important}
body.v78-atlas #history .v78-history-intro .stats-river{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.v78-atlas #history .v78-history-intro .stats-river>div{min-width:0!important;padding:12px 8px!important}
body.v78-atlas #history .history-device-note{color:var(--ui-text-light)!important;opacity:.88!important}
body.v78-atlas #history .v78-history-stream{min-width:0!important;overflow-wrap:anywhere!important}
body.v78-atlas #history .history-saved-plan-card{padding:0!important}
body.v78-atlas #history .history-saved-plan-card .account-content{padding:12px 15px!important;color:var(--ui-text-dark)!important;background:var(--ui-surface)!important}
@media(max-width:1000px){body.v78-atlas #trips .v78-map-world .map-layer-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

body.v78-atlas #trips .v109-trip-tool-picker{position:relative!important}
body.v78-atlas #trips .v177-trip-tool-menu:not([hidden]){display:grid!important;position:absolute!important;z-index:1600!important;top:100%!important;left:0!important;right:0!important;padding:5px!important;gap:4px!important;max-height:250px!important;overflow-y:auto!important;border:1px solid var(--ui-accent)!important;border-radius:7px!important;background:var(--ui-surface-3)!important;box-shadow:0 8px 22px rgba(0,0,0,.35)!important}
body.v78-atlas #trips .v177-trip-tool-menu button{display:block!important;min-height:38px!important;width:100%!important;padding:8px 12px!important;text-align:left!important;background:var(--ui-surface-3)!important;color:var(--ui-text-dark)!important;border:1px solid var(--ui-border-light)!important;border-radius:5px!important}
body.v78-atlas #trips .v177-trip-tool-menu button:is(:hover,.is-active,:focus-visible){background:var(--ui-accent)!important;color:var(--ui-accent-text)!important;outline:2px solid var(--ui-accent-border)!important}
body.v78-atlas #history .v177-saved-count{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:27px!important;min-height:27px!important;padding:2px 8px!important;margin-left:8px!important;background:var(--ui-accent)!important;color:var(--ui-accent-text)!important;border-radius:16px!important;font-size:13px!important;font-weight:800!important}
body.v78-atlas #trips .v177-trip-save-location{grid-column:1/-1!important;margin:7px 0!important;padding:9px 11px!important;border-left:4px solid var(--ui-accent)!important;color:var(--ui-text-dark)!important;background:var(--ui-surface-2)!important;font-size:13px!important;line-height:1.45!important}
/* Separate the move role from its technique title (was rendered as one run of text). */
body.v78-atlas #trips .trip-move-rank{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;margin-bottom:9px!important}
body.v78-atlas #trips .trip-move-rank span{display:block!important;font-size:11px!important;letter-spacing:.08em!important;text-transform:uppercase!important}
body.v78-atlas #trips .trip-move-rank b{display:block!important;max-width:100%!important;line-height:1.3!important;overflow-wrap:anywhere!important}
