/* Approved 14 Nov: calm app palette, cells beside the real route, report at 1×. */
body.report-normal-size{zoom:1;width:100%;height:100%}
.vodila-report{background:#0f191b;color:#f3f8f7;padding:calc(20px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));scroll-padding-block:24px}
.vodila-report .result-top{gap:12px;margin-bottom:18px}
.vodila-report .result-top .brand img{width:48px;height:auto;object-fit:contain}
.vodila-report .result-top button{min-height:44px}
.vodila-report .tr-card{height:auto!important;background:none;border:0;border-radius:0;box-shadow:none;gap:12px;overflow:visible;--tr-mint:#3dbd9a;--tr-amber:#d7b967;--tr-red:#dc7975}
.vodila-report .tr-card::before{display:none}
.vodila-report .tr-date{padding:0;margin:0 0 4px;gap:8px;font-size:14px}
.vodila-report .tr-hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);border:1px solid #497b77;border-radius:20px;background:#132326;overflow:hidden;min-height:154px}
.vodila-report .tr-hex{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;border:0;border-right:1px solid #497b77;border-radius:0;background:none;margin:16px 0;padding:0 14px}
.vodila-report .tr-hex-label{display:contents;font-size:14px;font-weight:700}
.vodila-report .tr-hex-label svg{order:-2;width:25px;height:25px}
.vodila-report .tr-hex .tr-number{order:-1;font-size:clamp(38px,12vw,64px);line-height:1.05;max-width:100%;overflow-wrap:anywhere}
.vodila-report .tr-map-wrap{min-height:154px;border:0;background:#132326}
.vodila-report .tr-map-caption{padding:0 4px;font-size:11px;color:#9bb5b0}
.vodila-report .tr-summary{border:1px solid #497b77;border-radius:20px;background:#132326;margin:0;padding:14px 5px}
.vodila-report .tr-summary>div{border-color:#497b77;display:flex;flex-direction:column;align-items:center;gap:5px}
.vodila-report .tr-stat-icon{width:26px;height:26px;color:#3dbd9a;flex:none}
.vodila-report .tr-summary .tr-number{font-size:clamp(18px,5vw,24px);line-height:1.2;overflow-wrap:anywhere}
.vodila-report .tr-features{margin:0;gap:8px}
.vodila-report .tr-feature{border:1px solid #497b77;background:#132326;border-radius:20px;padding:12px}
.vodila-report .tr-feature-title{min-height:0;display:flex;align-items:center;gap:6px;margin-bottom:6px;font-size:14px;color:#f3f8f7;font-weight:650}
.vodila-report .tr-feature-icon,.vodila-report .tr-ruler-icon{width:22px;height:22px;flex:none;color:#3dbd9a}
.vodila-report .tr-flow-track{height:8px;margin-top:8px}
.vodila-report .tr-perfect .tr-number{font-size:clamp(22px,6.5vw,32px)}
.vodila-report .tr-detail{font-size:11px;color:#9bb5b0}
.vodila-report .tr-speed{margin:0;border:1px solid #497b77;border-radius:20px;padding:14px;background:#132326}
.vodila-report .tr-speed-title{font-size:16px;font-weight:650}
.vodila-report .tr-bar{height:10px;background:linear-gradient(90deg,#3dbd9a,#d7b967,#dc7975);gap:0}
.vodila-report .tr-bar span{display:none!important}
.vodila-report .tr-legend{gap:12px}.vodila-report .tr-legend strong{font-size:23px}
.vodila-report .result-actions{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:22px}
.vodila-report .result-actions button{min-height:48px;font-size:16px;border-radius:16px}
.vodila-report .result-actions button:first-child{background:#3dbd9a;color:#08251e}
.vodila-report .result-actions button:last-child{background:#132326;border:1px solid #497b77;color:#f3f8f7}
@media(max-width:359px){.vodila-report{padding-inline:10px}.vodila-report .tr-feature{padding:10px}.vodila-report .tr-feature-title{font-size:12px}.vodila-report .result-top .brand{font-size:20px}}

:is(#tripStoryPreview,#medalStoryPreview)[hidden]{display:none}:is(#tripStoryPreview,#medalStoryPreview){position:fixed;inset:0;z-index:1600;overflow:auto;overscroll-behavior:contain;background:#0f191b;padding:calc(12px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));scroll-padding-block:20px}
.story-inner{width:min(100%,480px);margin:auto}.story-inner>img{display:block;width:100%;height:auto;border-radius:16px}
body:has(:is(#tripStoryPreview,#medalStoryPreview):not([hidden])) :is(.sync-note,.vodila-trip-notice){visibility:hidden}
.story-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:16px}.story-actions button{min-height:46px;white-space:normal;overflow-wrap:anywhere;font-size:16px;border-radius:14px}:is(#closeTripStory,#closeMedalStory){background:#263d39;color:#f3f8f7}

.tr-missing{display:block;color:#b5ccc3;font:500 13px/1.4 system-ui,sans-serif;margin-top:6px;overflow-wrap:anywhere}
.tr-missing[hidden]{display:none}

/* MAP REPORT (owner decision 2026-11-16, same design as the Story and the vodila.app card):
   the trip map is the hero, the date sits on it, cells | smoothness float over its lower edge,
   then the 3 stats, then flawless | speed. Same elements and ids — only the layout changes. */
.vodila-report .tr-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:10px;row-gap:10px}
.vodila-report .tr-hero,.vodila-report .tr-features{display:contents}
.vodila-report .tr-map-wrap{grid-column:1/-1;grid-row:1;position:relative;z-index:0;isolation:isolate;flex:none;height:340px;min-height:0;border:1px solid rgba(61,189,154,.32);border-radius:24px;overflow:hidden;background:#25483b}
.vodila-report .tr-map-wrap::before{content:'';position:absolute;inset:0 0 auto;height:76px;z-index:450;pointer-events:none;background:linear-gradient(rgba(15,25,27,.85),rgba(15,25,27,0))}
.vodila-report .tr-map-wrap::after{content:'';position:absolute;inset:auto 0 0;height:120px;z-index:450;pointer-events:none;background:linear-gradient(rgba(15,25,27,0),rgba(15,25,27,.88))}
.vodila-report .tr-map .leaflet-top.leaflet-left{top:50%;left:auto;right:0;transform:translateY(-50%)}
.vodila-report .tr-map .leaflet-bottom.leaflet-right{bottom:auto;top:46px}
.vodila-report .tr-date{grid-column:1/-1;grid-row:1;align-self:start;position:relative;z-index:2;margin:0;padding:12px 16px;font-weight:650;color:#f3f8f7;pointer-events:none}
.vodila-report .tr-date .tr-awards-count{pointer-events:auto}
.vodila-report .tr-hex,.vodila-report .tr-feature:not(.tr-perfect){grid-row:2;margin:-84px 0 0;position:relative;z-index:2;background:rgba(16,35,38,.84);-webkit-backdrop-filter:blur(10px) saturate(140%);backdrop-filter:blur(10px) saturate(140%);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:12px 14px}
.vodila-report .tr-hex{grid-column:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;min-height:0}
.vodila-report .tr-hex-label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:650;color:#f3f8f7}
.vodila-report .tr-hex-label svg{order:0;width:18px;height:18px;color:#3dbd9a;flex:none}
.vodila-report .tr-hex .tr-number{order:1;font-size:clamp(34px,10vw,52px);line-height:1;color:#52d6ae;font-weight:800}
.vodila-report .tr-hex .tr-missing{order:2;margin-top:2px}
.vodila-report .tr-feature:not(.tr-perfect){grid-column:2}
.vodila-report .tr-map-caption{grid-column:1/-1;grid-row:3;padding:0 4px}
.vodila-report .tr-summary{grid-column:1/-1;grid-row:4;border-color:rgba(255,255,255,.1)}
.vodila-report .tr-perfect{grid-column:1;grid-row:5}
.vodila-report .tr-speed{grid-column:2;grid-row:5;padding:12px;min-width:0}
.vodila-report .tr-speed-title{font-size:14px}
.vodila-report .tr-legend{gap:6px;display:grid;grid-template-columns:minmax(0,1fr);font-size:11px}
.vodila-report .tr-legend>span{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;white-space:nowrap}
.vodila-report .tr-legend strong{display:inline;flex-basis:auto;padding-left:0;margin-left:auto;font-size:16px;line-height:1.2}
.vodila-report .tr-summary,.vodila-report .tr-feature,.vodila-report .tr-speed{border-color:rgba(255,255,255,.1)}
@media(max-width:359px){.vodila-report .tr-hex,.vodila-report .tr-feature:not(.tr-perfect){margin-top:-72px;padding:10px}}
.vodila-report .tr-speed-title{overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}
@media(max-width:359px){.vodila-report .tr-perfect,.vodila-report .tr-speed{grid-column:1/-1}.vodila-report .tr-speed{grid-row:6}}
.vodila-report .tr-map-wrap,.vodila-report .tr-map-wrap .leaflet-container{background:#25483b}
