/* Same customer CSS/markup as the live app. This only adds an unmistakable
 * demo provenance strip, safe reset and accessible readiness messages.
 */
:root{--native-demo-accent:#cfb46f}
body.native-demo{background:#edf1e9}
.native-demo .demo-accountbar{position:sticky;top:0;z-index:100;background:#143524;color:#fff;box-shadow:0 3px 11px #0b23161e}
.native-demo .demo-accountbar small{color:#e1c783!important;font-weight:750;letter-spacing:.07em}
.native-demo #pilotProfileBtn{cursor:default;opacity:.9}
.native-demo #pilotSignout,.native-demo #resetNativeDemo{background:#dce8d5;color:#204c35;border:1px solid #8ca58b;border-radius:7px;padding:8px 10px;min-height:36px;font-weight:750;cursor:pointer}
.native-demo #resetNativeDemo{background:#c7a866;border-color:#ad8b4c;color:#193925}
#nativeDemoSourceNotice{padding:12px clamp(14px,4vw,38px);margin:0;background:#e6eddc;border-bottom:1px solid #aec29f;color:#38583e;font-size:12px;line-height:1.6;display:flex;gap:8px;flex-wrap:wrap}
#nativeDemoSourceNotice strong{font-weight:850;color:#27503a}
#nativeDemoLoading{position:fixed;z-index:999;left:50%;top:47%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 40px));background:#173629;color:#eaf4df;border:1px solid #8a9f86;padding:23px;border-radius:14px;box-shadow:0 16px 55px #0b24196e;line-height:1.6;text-align:center;font-size:14px}
#nativeDemoLoading[data-failed=true]{border-color:#a86b56}
.native-demo .pilot-accountbar .pilot-wordmark{white-space:normal}
@media(max-width:720px){
 #nativeDemoSourceNotice{padding:10px 13px;font-size:11px;display:block}
 .native-demo #pilotSignout,.native-demo #resetNativeDemo{min-height:39px;padding:7px;font-size:11px}
 .native-demo .pilot-accountbar{gap:9px}
}

/* Private v2: the real customer app, with discoverable original modules.
 * Sticky navigation never replaces native dialogs or customer state. */
.native-demo .native-demo-guide{position:sticky;top:59px;z-index:95;margin:0;padding:11px clamp(13px,3vw,32px) 8px;background:#f8faf4;border-block:1px solid #cad6c5;box-shadow:0 7px 25px #1b38231b;color:#234432}
.native-demo .native-guide-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:9px}
.native-demo .native-guide-heading strong{display:block;font-size:14px;line-height:1.3;font-weight:800}
.native-demo .native-guide-heading small{display:block;font-size:11px;color:#687d6d;margin-top:1px}
.native-demo .native-guide-datapill{font-size:10px;font-weight:800;color:#486b4c;white-space:nowrap;border:1px solid #cbd8c4;border-radius:999px;padding:5px 9px;background:#e8f0e3}
.native-demo .native-demo-guide-rail{display:flex;align-items:center;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:5px}
.native-demo .native-demo-guide-rail button{flex:none;white-space:nowrap;font:inherit;font-size:12px;font-weight:750;line-height:1.2;padding:9px 12px;min-height:38px;border-radius:9px;border:1px solid #c8d9c2;background:#fffdf6;color:#294e35;cursor:pointer}
.native-demo .native-demo-guide-rail button:hover,.native-demo .native-demo-guide-rail button.selected{background:#254d37;color:#fff;border-color:#254d37}
.native-demo .native-demo-guide-rail button:focus-visible{outline:3px solid #d5af55;outline-offset:2px}
.native-demo .native-demo-guide-status{font-size:10px;line-height:1.35;color:#58715c;padding-top:1px;min-height:14px}
.native-demo .native-searchmap-panel{margin:20px 0 26px;padding:0;background:#fafbf6;border:1px solid #cad9ca;border-radius:17px;box-shadow:0 12px 35px #253f2912;overflow:hidden;scroll-margin-top:190px}
.native-demo .native-searchmap-heading{padding:19px 23px;display:flex;justify-content:space-between;align-items:center;gap:22px;background:linear-gradient(100deg,#e8f0e2,#fffdf8)}
.native-demo .native-kicker{color:#688668;font-size:10px;letter-spacing:.13em;font-weight:800;margin:0 0 6px}
.native-demo .native-searchmap-heading h2{font:500 clamp(24px,2.8vw,34px)/1.2 Georgia,serif;margin:0 0 7px;color:#233f2c}
.native-demo .native-searchmap-heading p:not(.native-kicker){margin:0;max-width:760px;font-size:13px;line-height:1.6;color:#5c7161}
.native-demo #nativeExpandSearchMap{flex:none;border-radius:9px;background:#28593d;border:1px solid #28593d;color:#fff;font-weight:750;padding:11px 15px;cursor:pointer;min-height:42px}
.native-demo .native-searchmap-panel iframe{width:100%;height:570px;display:block;border:0;background:#ecf3ea}
.native-demo .native-searchmap-panel.expanded iframe{height:min(85dvh,940px)}
.native-demo .native-feature-spotlight{outline:3px solid #d8b96c;outline-offset:6px;border-radius:12px;transition:outline-color .2s;scroll-margin-top:190px}
.native-demo #seasonOverview,.native-demo #huntJournal,.native-demo #insightExplorer,.native-demo #seasonMaps,.native-demo #nextHuntPlanner,.native-demo #lifetimePanel{scroll-margin-top:190px}
@media(max-width:800px){.native-demo .native-demo-guide{top:62px;padding:9px 12px}.native-demo .native-guide-heading{margin-bottom:7px}.native-demo .native-guide-heading small{font-size:10px}.native-demo .native-searchmap-heading{flex-direction:column;align-items:stretch;padding:16px}.native-demo #nativeExpandSearchMap{align-self:flex-start}.native-demo .native-searchmap-panel iframe{height:625px}}
@media(max-width:520px){.native-demo .native-guide-datapill{display:none}.native-demo .native-demo-guide-rail button{min-height:37px;font-size:11px}.native-demo .native-searchmap-panel iframe{height:680px}}
@media(prefers-reduced-motion:reduce){.native-demo .native-feature-spotlight{transition:none}}

/* Original kitchen stays in this app rather than redirecting to account pages. */
.native-demo .native-kitchen-dialog{position:fixed;inset:4dvh auto auto;margin:auto;width:min(1250px,calc(100vw - 36px));max-width:none;max-height:93dvh;border:1px solid #aec7ad;border-radius:18px;padding:0;box-shadow:0 20px 80px #071f17a3;overflow:hidden;background:#f7faf4}
.native-demo .native-kitchen-dialog::backdrop{background:#10281ecd;backdrop-filter:blur(4px)}
.native-demo .native-kitchen-dialog-header{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:12px 18px;background:#1c452e;color:#f3f7ec;min-height:58px}
.native-demo .native-kitchen-dialog-header strong{font-size:15px}
.native-demo .native-kitchen-dialog-header span{font-size:11px;color:#e0e8d6;flex:1;text-align:right}
.native-demo .native-kitchen-dialog-header button{background:#e9f1e5;border:1px solid #92b096;border-radius:8px;padding:9px 13px;color:#1c462b;font-weight:750;cursor:pointer}
.native-demo .native-kitchen-dialog iframe{display:block;border:0;width:100%;height:min(82dvh,830px);background:#f7faf4}
@media(max-width:600px){.native-demo .native-kitchen-dialog{width:calc(100vw - 12px);max-height:97dvh;inset:1dvh auto auto;border-radius:12px}.native-demo .native-kitchen-dialog-header{flex-wrap:wrap;gap:8px}.native-demo .native-kitchen-dialog-header strong{font-size:13px}.native-demo .native-kitchen-dialog-header span{display:none}.native-demo .native-kitchen-dialog iframe{height:calc(97dvh - 57px)}}


/* Luna-only real photo presentation. Real customer and owner styles untouched. */
.native-demo .hero-visual{position:relative;isolation:isolate}
.native-demo .hero-visual .hero-photo{object-fit:cover;filter:brightness(.76) saturate(.95)}
.native-demo .hero-visual .hero-heading{position:relative;z-index:1;text-shadow:0 2px 15px #0b201fa8}
.native-demo .luna-image-credit{position:absolute;right:14px;bottom:12px;z-index:3;
 color:#fff;max-width:calc(100% - 25px);text-align:right;font:600 10px/1.45 system-ui,sans-serif;
 background:#112d21d9;border:1px solid #ffffff44;padding:6px 10px;border-radius:7px}
.native-demo .season-moments .moment-card{position:relative;isolation:isolate;overflow:hidden}
.native-demo .season-moments .moment-card img{object-fit:cover;filter:brightness(.82) saturate(.96)}
.native-demo .season-moments .moment-card figcaption{position:absolute;z-index:1;bottom:0;
 text-shadow:0 2px 12px #071d16dc}
.native-demo .season-moments .luna-photo-credit{display:block;font:600 9px/1.4 system-ui,sans-serif;
 color:#f0ead9;letter-spacing:.01em;margin-top:6px}
.native-demo #nativeSearchMapShortcut{font-weight:800;background:#e3edde;color:#214c34}
.native-demo #nativeSearchMapShortcut:hover,.native-demo #nativeSearchMapShortcut:focus-visible{background:#cbdcbf}
.native-demo #nativeSearchMapPanel{margin-inline:clamp(12px,2.7vw,38px);scroll-margin-top:135px}
.native-demo #nativeSearchMapPanel iframe{min-height:560px}
@media(max-width:680px){
 .native-demo .luna-image-credit{font-size:9px;bottom:7px;right:8px;padding:5px 7px}
 .native-demo #nativeSearchMapPanel{margin-inline:10px}
 .native-demo #nativeSearchMapPanel iframe{min-height:600px}
 .native-demo .season-moments .luna-photo-credit{font-size:8px}
}

/* The public Luna league is fully interactive but never shares real account data. */
.native-demo .luna-league-provenance{margin:9px 23px 5px;padding:10px 13px;
 border:1px solid #d8caa4;border-radius:9px;background:#f9f4e9;
 color:#4f614c;font-size:12px;line-height:1.5}
.native-demo .luna-join-hint{margin:8px 24px 18px;color:#5b6d5d;font-size:12px;line-height:1.5}
.native-demo .league-podium .league-avatar[src*="lefty-01"]{object-fit:cover;object-position:50% 35%}
.native-demo #nativeSearchMapPanel{scroll-margin-top:155px}
@media(max-width:680px){
 .native-demo .luna-league-provenance{margin:8px 10px;padding:10px}
 .native-demo .luna-join-hint{margin:8px 13px 14px}
}

/* Accessible first actions in the nested native league dialog. */
.native-demo .league-dialog .luna-league-quick{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-left:auto}
.native-demo .league-dialog .luna-league-quick button{background:#eaf0e5;border:1px solid #bacdb7;border-radius:9px;
 color:#214c34;font-weight:750;font-size:12px;padding:8px 10px;min-height:39px;white-space:nowrap;cursor:pointer}
.native-demo .league-dialog .luna-league-quick button:hover,.native-demo .league-dialog .luna-league-quick button:focus-visible{background:#d4e5cf;outline-offset:2px}
.native-demo .league-dialog>.luna-league-provenance{margin:13px 24px 0}
@media(max-width:640px){.native-demo .league-dialog-head{flex-wrap:wrap;padding:12px;gap:8px}
 .native-demo .league-dialog .luna-league-quick{order:3;width:100%;margin-left:0}
 .native-demo .league-dialog .luna-league-quick button{flex:1;min-height:40px}
 .native-demo .league-dialog>.luna-league-provenance{margin:10px 13px 0}
}

/* Sticky save uses real form validation, but is always reachable from dialog header. */
.native-demo .league-dialog .luna-league-quick [data-league-save]:not([hidden]){background:#28593d;color:#fff;border-color:#28593d}
.native-demo .league-dialog .luna-league-quick [hidden]{display:none!important}


/* Isolated Luna example: the season map opens on a legible single dog route. */
.luna-season-map-focus{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:8px 0 13px;padding:11px 13px;border:1px solid #d8e4d4;border-radius:11px;background:#f0f5eb;color:#2e4e39}
.luna-season-map-focus label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;font-weight:750}
.luna-season-map-focus select{min-height:37px;max-width:min(100%,390px);padding:7px 9px;background:#fffdf8;border:1px solid #bacdb7;border-radius:8px;color:#2d4a38;font:inherit;font-weight:600}
.luna-season-map-focus>span{font-size:11px;line-height:1.5;color:#647b66;flex:1;min-width:220px}
@media(max-width:640px){.luna-season-map-focus label{width:100%;align-items:stretch;flex-direction:column}.luna-season-map-focus select{max-width:100%;width:100%}.luna-season-map-focus>span{min-width:0}}


/* In the full-page Luna explorer, the OUTER Jaktbikkja bar owns branding,
   exit and reset. Keep original customer actions/dialogs, but never stack
   their sticky headers on top of the active journal. Standalone stays intact. */
body.native-demo.explorer-contained .demo-accountbar,
body.native-demo.explorer-contained .lefty-section-nav{display:none!important}
body.native-demo.explorer-contained #pilotApp>.topbar{
 position:static!important;top:auto!important;z-index:auto!important;
 transform:none!important;box-shadow:none!important;
 min-height:58px!important;padding:8px clamp(12px,2vw,24px)!important;
 justify-content:flex-end!important;
}
body.native-demo.explorer-contained #pilotApp>.topbar .brand{display:none!important}
body.native-demo.explorer-contained #pilotApp>.topbar .top-actions{margin-left:auto!important}
body.native-demo.explorer-contained .native-demo-guide{
 position:static!important;top:auto!important;z-index:auto!important;
 padding:9px clamp(12px,2vw,23px)!important;
 margin:0!important;box-shadow:none!important;
}
body.native-demo.explorer-contained .native-guide-heading,
body.native-demo.explorer-contained .native-demo-guide-status{display:none!important}
body.native-demo.explorer-contained .native-demo-guide-rail{padding-bottom:0;gap:6px}
body.native-demo.explorer-contained .native-feature-spotlight,
body.native-demo.explorer-contained #seasonOverview,
body.native-demo.explorer-contained #huntJournal,
body.native-demo.explorer-contained #insightExplorer,
body.native-demo.explorer-contained #seasonMaps,
body.native-demo.explorer-contained #nextHuntPlanner,
body.native-demo.explorer-contained #lifetimePanel,
body.native-demo.explorer-contained #nativeSearchMapPanel{scroll-margin-top:18px}
@media(max-width:720px){
 body.native-demo.explorer-contained #pilotApp>.topbar{min-height:48px!important;padding:7px 11px!important}
 body.native-demo.explorer-contained .native-demo-guide{padding:7px 10px!important}
 body.native-demo.explorer-contained .native-demo-guide-rail button{font-size:11px;min-height:36px}
}


/* Luna-only latest outing preview. Real topo WMTS + fictional GPS data, never
   a decorative map mock-up. Keep native card click/links unobstructed. */
.native-demo #seasonLatestTrip .luna-latest-map-host{position:relative!important;isolation:isolate;overflow:hidden}
.native-demo #seasonLatestTrip .luna-latest-topomap{position:absolute;inset:0;z-index:5;
 background:#dce6d7;overflow:hidden;border-radius:inherit;pointer-events:none}
.native-demo #seasonLatestTrip .luna-latest-map-canvas{position:absolute;inset:0;background:#dce6d7}
.native-demo #seasonLatestTrip .luna-latest-topomap .leaflet-container{background:#dce6d7!important}
.native-demo #seasonLatestTrip .luna-latest-map-note{position:absolute;left:10px;bottom:10px;
 z-index:500;background:#fffdf2ec;border:1px solid #cedbc6;color:#29533b;
 font:800 10px/1.3 system-ui,sans-serif;padding:5px 8px;border-radius:6px;box-shadow:0 2px 8px #1c382521}
.native-demo #seasonLatestTrip .luna-latest-topomap .leaflet-control-attribution{font-size:8px;background:#fffdf2d9}
@media(max-width:650px){
 .native-demo #seasonLatestTrip .luna-latest-map-note{left:7px;bottom:7px;font-size:9px;padding:4px 6px}
}
/* A fully sized Søkekart in the customer preview must scroll with the page,
   on desktop and touch devices, not trap scrolling inside a short iframe. */
.native-demo .native-searchmap-panel iframe{max-height:none!important;overflow:visible;overscroll-behavior:auto}
.native-demo .native-searchmap-panel #nativeExpandSearchMap[hidden]{display:none!important}


.native-demo #seasonLatestTrip.luna-latest-map-host{position:relative!important}
.native-demo #seasonLatestTrip .luna-latest-map-root-fallback{left:0;right:auto;width:42%;height:100%}
@media(max-width:650px){
 .native-demo #seasonLatestTrip .luna-latest-map-root-fallback{width:44%;height:100%}
}


/* Full Luna explorer: one Search Map entry, not a third nested mobile iframe. */
.native-demo .luna-native-sector-launch{display:flex;gap:15px;align-items:center;justify-content:space-between;
 padding:20px;background:linear-gradient(100deg,#e8f0e4,#fefcf4);border-top:1px solid #d0dec8}
.native-demo .luna-native-sector-launch p{font-size:13px;color:#4b6551;line-height:1.65;margin:0;max-width:640px}
.native-demo .luna-native-sector-launch button{min-height:44px;background:#285339;color:#fff;
 border:0;border-radius:10px;font-weight:800;padding:12px 18px;white-space:nowrap;cursor:pointer}
.native-demo #nativeExpandSearchMap[hidden]{display:none!important}
/* Second genuine detailed outing alongside Latest Trip (all data still fictional).
   Clicks open the ORIGINAL customer trip dialog, not a short fake preview. */
.native-demo .luna-second-outing{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,44%) minmax(0,1fr);
 align-items:stretch;min-width:0;overflow:hidden;grid-column:1/-1;background:#fffdf6;
 border:1px solid #d4dccb;border-radius:15px;box-shadow:0 6px 22px #273d2412;margin:15px 0}
.native-demo .luna-second-photo{min-height:255px;position:relative;background:#dbe4d4;overflow:hidden}
.native-demo .luna-second-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 47%}
.native-demo .luna-second-photo small{position:absolute;left:11px;bottom:11px;right:11px;
 display:block;width:max-content;max-width:calc(100% - 22px);
 font-size:10px;font-weight:800;line-height:1.3;color:#234b35;background:#fffdf1e9;padding:7px 9px;border-radius:8px}
.native-demo .luna-second-copy{padding:clamp(20px,2.4vw,32px);min-width:0}
.native-demo .luna-second-kicker{font-size:10px;letter-spacing:.13em;font-weight:850;color:#748f76}
.native-demo .luna-second-copy h3{font:400 clamp(25px,2.5vw,35px)/1.15 Georgia,serif;color:#244332;margin:12px 0}
.native-demo .luna-second-copy p{font-size:13px;line-height:1.65;margin:10px 0;color:#516654}
.native-demo .luna-second-copy .luna-second-meta{font-weight:750;color:#36583d}
.native-demo .luna-second-copy button{padding:10px 14px;margin-top:9px;background:#2b543c;color:#fff;border:0;border-radius:9px;font-weight:800;cursor:pointer;min-height:43px}
.native-demo #seasonLatestTrip .diary-cover.luna-latest-map-host>.diary-fallback{visibility:hidden}
@media(max-width:700px){
 .native-demo .luna-native-sector-launch{flex-direction:column;align-items:stretch;padding:14px}
 .native-demo .luna-native-sector-launch button{width:100%;white-space:normal}
 .native-demo .luna-second-outing{grid-template-columns:1fr}
 .native-demo .luna-second-photo{min-height:235px}
 .native-demo .luna-second-copy{padding:17px}
}


/* The tiny Leaflet attribution SVG flag was stretched to a full-width
   rectangle by native diary-cover CSS. Remove it ONLY in this mini-map:
   the Leaflet text link and Kartverket copyright remain visible. */
.native-demo #seasonLatestTrip .luna-latest-topomap .leaflet-attribution-flag{
 display:none!important;width:0!important;height:0!important
}
.native-demo #seasonLatestTrip .luna-latest-topomap .leaflet-control-attribution svg{
 width:12px!important;height:8px!important;max-width:12px!important
}


/* Full Luna dashboard: show the whole original Søkekart in this card.
   It renders at its measured natural height, never with a 570px/680px
   internal scrolling viewport. One native browser scroll on touch devices. */
body.native-demo.explorer-contained #nativeSearchMapPanel.luna-native-map-inline{
 overflow-anchor:none;scroll-margin-top:16px;
}
body.native-demo.explorer-contained #nativeSearchMapPanel.luna-native-map-inline iframe{
 display:block;width:100%;max-width:none;min-height:680px;max-height:none!important;
 overflow:hidden!important;overscroll-behavior-y:auto;
 border:0;touch-action:pan-y;background:#eef4eb;
}
body.native-demo.explorer-contained #nativeSearchMapPanel .luna-native-sector-launch{
 display:none!important;
}
@media(max-width:800px){
 body.native-demo.explorer-contained #nativeSearchMapPanel.luna-native-map-inline{
  border-radius:12px;scroll-margin-top:12px;
 }
 body.native-demo.explorer-contained #nativeSearchMapPanel.luna-native-map-inline iframe{
  min-height:780px;touch-action:pan-y;
 }
}


/* Luna-only: same premium Training Journal entry as Lefty and customers.
 * Visible during the native customer dashboard's long-page scroll. */
.native-demo #lunaCustomerTrainingEntry.luna-customer-training-entry{
 display:block;
 box-sizing:border-box;
 width:100%;
 margin:19px 0 25px;
 scroll-margin-top:18px;
}
.native-demo #lunaCustomerTrainingEntry .lefty-training-entry-link{
 width:100%;
 box-sizing:border-box;
 text-align:left;
 cursor:pointer;
 font-family:inherit;
}
.native-demo #lunaCustomerTrainingEntry .lefty-training-entry-map{pointer-events:none}
@media(max-width:600px){
 .native-demo #lunaCustomerTrainingEntry.luna-customer-training-entry{margin:13px 0 18px;scroll-margin-top:12px}
}
