
/* Offentlig startsida och separata demonstrationsvyer */
.landing-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}
.hero .landing-unavailable,.landing-unavailable{background:#dce4e5!important;color:#60737a!important;border:1px solid #b9c8ca!important;box-shadow:none}
.landing-unavailable:hover{background:#d5dedf!important}
.hero .landing-demo-action{background:#fff;color:#15453e}
.hero .landing-guide-action{background:transparent;color:#fff;border:1px solid #a2c8c5}
.landing-supporting{margin-top:16px;display:flex;gap:9px;flex-wrap:wrap}
.landing-section-lead{max-width:670px;color:var(--sub);font-size:14px}
.demo-qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.demo-qr-card{border:1px solid var(--border);background:#fff;border-radius:17px;padding:19px 14px;text-align:center;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;gap:8px}
.demo-qr-card h3{line-height:1.3;margin:0;font-size:16px}
.demo-qr-card p{font-size:12px;color:var(--sub);line-height:1.5;margin:0;max-width:250px;flex:1}
.demo-qr-card .pill{align-self:center}
.demo-qr-button{border:1px solid #dae5e4;background:#fff;border-radius:13px;padding:10px;display:grid;place-items:center;margin:5px auto;min-height:190px;min-width:190px}
.demo-qr-button:hover,.demo-qr-button:focus-visible{border-color:var(--jade);box-shadow:0 0 0 2px #b6ded5}
.demo-qr-img{display:block;width:168px;height:168px;max-width:100%;image-rendering:pixelated}
.demo-access-panel{padding:20px;background:#f8fbfa;border:1px solid var(--border);border-radius:17px}
.demo-access-panel .demo-access-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.demo-access-panel .field{flex:1 1 260px;margin:0}
.demo-access-panel .btn{flex:0 0 auto}
.demo-access-panel .inline-note{margin-top:10px}
.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:20px 0}
.guide-card{width:100%;min-height:158px;background:#fff;border:1px solid var(--border);border-radius:16px;text-align:left;padding:19px;display:flex;flex-direction:column;gap:8px;color:var(--ink);box-shadow:var(--shadow)}
.guide-card:hover,.guide-card:focus-visible{border-color:var(--jade);box-shadow:0 4px 24px rgba(12,43,48,.12)}
.guide-card .guide-card-symbol{color:var(--jade);font-size:24px;line-height:1.1}
.guide-card strong{font-size:16px}
.guide-card small{font-size:12px;color:var(--sub);line-height:1.5}
.guide-step-panel{position:fixed;z-index:25;bottom:78px;left:50%;transform:translateX(-50%);width:min(740px,calc(100% - 24px));background:#fff;border:2px solid #89b8af;border-radius:17px;box-shadow:0 12px 42px rgba(9,38,47,.23);padding:15px 18px;color:var(--ink)}
.guide-step-panel .guide-step-eyebrow{font-size:11px;letter-spacing:.7px;text-transform:uppercase;color:#366961;font-weight:800}
.guide-step-panel .guide-step-heading{font-size:17px;line-height:1.35;margin:4px 0}
.guide-step-panel p{font-size:13px;line-height:1.5;margin:4px 0 10px;color:var(--sub)}
.guide-step-panel .guide-invite-issue{font-size:12px;line-height:1.45;color:#8c3d2a;font-weight:700;margin:9px 0;padding:7px 0}
.guide-step-panel .guide-step-actions{display:flex;gap:8px;flex-wrap:wrap}
.guide-step-panel .btn{min-height:36px;font-size:12px;padding:7px 12px}
body.guide-active main{padding-bottom:310px}
.guide-highlight{position:relative;outline:3px solid #16887b!important;outline-offset:4px;border-radius:9px;scroll-margin:230px}
.launch-info-overlay{position:fixed;inset:0;background:rgba(7,27,35,.57);z-index:120;display:grid;place-items:center;padding:16px}
.launch-info-dialog{width:min(440px,100%);background:#fff;border:1px solid var(--border);border-radius:18px;padding:25px;box-shadow:0 14px 45px rgba(0,0,0,.22)}
.launch-info-dialog h2{margin:0 0 9px;font-size:21px}
.launch-info-dialog p{margin:0 0 18px;color:var(--sub);font-size:14px}
.launch-info-dialog .actions{justify-content:flex-end}
@media(min-width:780px){.demo-qr-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.demo-qr-card{padding:20px 10px}.guide-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:470px){.demo-qr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.demo-qr-card{padding:13px 7px}.demo-qr-card h3{font-size:13px}.demo-qr-button{padding:5px;min-width:0;width:100%;min-height:0}.demo-qr-img{width:100%;height:auto;max-width:145px;aspect-ratio:1}.guide-grid{grid-template-columns:1fr}.guide-step-panel{padding:12px;bottom:73px}.guide-step-panel .guide-step-heading{font-size:15px}}


/* Styrd instruktion: diskret toning och mycket tydlig markering av exakt reglage. */
body.guide-active #app button:not(.guide-highlight):not(.guide-allowed),
body.guide-active #app select:not(.guide-highlight),
body.guide-active #app input:not(.guide-highlight),
body.guide-active #app textarea:not(.guide-highlight),
body.guide-active .nav button{filter:grayscale(.7);opacity:.42;cursor:not-allowed}
body.guide-active #app .guide-highlight,
body.guide-active #header-profile.guide-highlight,
body.guide-active #header-logout,
body.guide-active #profile-overlay-root .guide-highlight{filter:none!important;opacity:1!important;cursor:pointer}
body.guide-active #header-logout{filter:none;opacity:1}
body.guide-active .nav button{pointer-events:none}
body.guide-active .guide-step-panel{z-index:1005}
body.guide-active .guide-highlight{
 outline:4px solid #008e7d!important;
 outline-offset:5px!important;
 border-radius:10px;
 background-color:#f1fffa!important;
 box-shadow:0 0 0 10px rgba(0,142,125,.19),0 4px 22px rgba(0,94,82,.32)!important;
 animation:guide-focus-pulse 1.5s ease-in-out infinite;
 scroll-margin-block:160px 310px
}
body.guide-active header .guide-highlight{background:#18564e!important;color:#fff!important}
body.guide-active #profile-overlay-root .guide-highlight{position:relative;z-index:1}
.guide-point-at{
 position:fixed;z-index:1006;pointer-events:none;
 background:#087d71;color:#fff;font-size:12px;font-weight:850;letter-spacing:.6px;
 padding:7px 12px;border:2px solid #fff;border-radius:9px;
 box-shadow:0 5px 22px rgba(8,39,46,.28);
 white-space:nowrap;line-height:1.2
}
.guide-step-panel{
 z-index:1005;border:2px solid #087d71;border-top:5px solid #087d71;
 box-shadow:0 12px 45px rgba(12,43,48,.26);
 background:#fff
}
.guide-step-eyebrow{display:flex;align-items:center;gap:6px;color:#275b56;font-size:11px}
.guide-step-label{font-weight:900}
.guide-step-progress{height:5px;border-radius:999px;background:#e1eeeb;margin:9px 0 11px;overflow:hidden}
.guide-step-progress>span{height:100%;display:block;border-radius:999px;background:#087d71;transition:width .2s}
.guide-step-footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:11px}
.guide-step-hint{font-size:12px;color:#415f67;max-width:440px}
.guide-step-footer .btn{flex-shrink:0;white-space:nowrap}
.guide-confirm-overlay{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;background:rgba(6,29,36,.65);padding:18px}
.guide-confirm-dialog{
 background:white;border-radius:18px;padding:26px;
 width:min(470px,100%);box-shadow:0 18px 52px rgba(0,0,0,.25);
 border:1px solid var(--border)
}
.guide-confirm-icon{border-radius:11px;background:#e3f2ef;color:#0a7368;font-weight:850;width:40px;height:40px;display:grid;place-items:center;font-size:23px;margin-bottom:11px}
.guide-confirm-dialog h2{font-size:21px;margin:0 0 8px}
.guide-confirm-dialog p{font-size:14px;color:var(--sub);line-height:1.55;margin:0 0 20px}
.guide-confirm-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
@keyframes guide-focus-pulse{
 0%,100%{box-shadow:0 0 0 8px rgba(0,142,125,.13),0 3px 15px rgba(0,94,82,.17)}
 50%{box-shadow:0 0 0 13px rgba(0,142,125,.32),0 4px 24px rgba(0,94,82,.35)}
}
@media(max-width:540px){
 .guide-step-panel{bottom:70px;padding:12px 13px}
 .guide-step-hint{font-size:11px}
 .guide-step-footer{align-items:stretch}
 .guide-step-footer .btn{min-height:40px}
 .guide-point-at{font-size:11px;padding:6px 9px}
 .guide-confirm-dialog{padding:21px}
 .guide-confirm-actions .btn{flex:1 1 140px}
}
@media(prefers-reduced-motion:reduce){
 body.guide-active .guide-highlight{animation:none}
 .guide-step-progress>span{transition:none}
}

/* Utloggning tillgänglig under hela vägledningen. */
.guide-step-buttons{display:flex;flex-wrap:wrap;gap:8px}
#logout-confirm-root{z-index:1101}
@media(max-width:540px){.guide-step-buttons{width:100%}.guide-step-buttons .btn{flex:1 1 120px}}

/* Genomgång: läsbara etiketter i hela gränssnittet.
   Profil- och andra dialoger ligger utanför #app. Regeln måste även
   omfatta dessa: annars blir vita knapptexter osynliga på ljusgrön markering. */
body.guide-active .guide-highlight:is(button,[role="button"],[role="option"],.tab,.pill),
body.guide-active .guide-highlight:is(button,[role="button"],[role="option"],.tab,.pill) :is(span,strong,small,b,em,.label,.stat,.ico),
body.guide-active .guide-highlight:is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
 color:#16383e!important;
 -webkit-text-fill-color:#16383e!important;
 text-shadow:none!important;
 opacity:1!important;
 filter:none!important
}
body.guide-active .guide-highlight:is(button,[role="button"],[role="option"],.tab,.pill){
 background:#e4f8f2!important;
 background-color:#e4f8f2!important;
 border-color:#087d71!important;
 font-weight:750!important
}
body.guide-active button.guide-highlight svg,
body.guide-active button.guide-highlight svg :is(path,circle,rect,polygon,line){
 color:#16383e!important
}
body.guide-active .guide-highlight:is(input,select,textarea)::placeholder{
 color:#526b70!important;
 -webkit-text-fill-color:#526b70!important;
 opacity:1
}
/* Toppmenyn har mörk bakgrund och behåller därför vit text i markeringen. */
body.guide-active header .header button.guide-highlight,
body.guide-active header .header button.guide-highlight :is(span,strong,small,.header-action-label,.ico),
body.guide-active header .header button.guide-highlight svg{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
 text-shadow:none!important;
 opacity:1!important;
 filter:none!important
}
body.guide-active header .header button.guide-highlight{
 background:#18564e!important;
 background-color:#18564e!important;
 border-color:#a3e0d3!important
}
.guide-card{position:relative;overflow:hidden}
.guide-card-completed{border-color:#a1cfc5}
.guide-card-check{
 position:absolute;top:0;right:0;
 width:35px;height:35px;
 border-bottom-left-radius:13px;
 display:grid;place-items:center;
 background:#087d71;color:#fff;
 font-size:17px;font-weight:850;
 box-shadow:0 3px 9px rgba(13,72,63,.15)
}
.guide-card-completed:after{
 content:"Genomförd";position:absolute;right:43px;top:10px;
 font-size:11px;font-weight:750;color:#176b5e
}
.guide-step-navigation{display:flex;gap:9px;margin-top:13px}
.guide-step-navigation .btn{flex:1 1 50%;min-width:0;min-height:43px;white-space:normal}
.guide-step-navigation .btn:disabled{opacity:.42;cursor:not-allowed}
.guide-step-done-symbol{
 display:grid;place-items:center;width:45px;height:45px;
 margin:11px 0 10px;border-radius:100%;
 background:#ddf2ec;color:#096c60;font-weight:900;font-size:24px
}
.guide-step-complete .guide-step-heading{font-size:19px}
.guide-step-complete .guide-step-footer{margin-top:15px}
.guide-step-complete .guide-step-footer [data-guide-return]{flex:1 1 220px}
@media(max-width:540px){
 .guide-step-navigation{gap:7px}
 .guide-step-navigation .btn{font-size:12px;padding:8px 10px}
 .guide-card-completed:after{font-size:10px}
}

/* Profilinstruktion: fält under panelen måste kunna scrollas fram.
   Gäller endast den guidade vyn, inte den vanliga användarprofilen. */
body.guide-active #profile-overlay-root .billing-dialog{
 overscroll-behavior:contain;
 scroll-behavior:auto;
}
body.guide-active #profile-overlay-root .billing-dialog-content{
 padding-bottom:350px;
 padding-bottom:clamp(300px,44dvh,540px);
}
body.guide-active #profile-overlay-root .field{
 scroll-margin-top:22px;
 scroll-margin-bottom:320px;
}


/* Startsida – diskret och enhetlig prisjämförelse.
   Behåll tvåkortslayouten och samma visuella språk som Kontrolljournalen. */
.plan-section{margin-top:25px}
.plan-section .landing-section-lead{margin:6px 0 0}
.plan-grid{align-items:stretch;gap:14px}
.plan-grid .plan-card{
 position:relative;
 padding:19px 18px 21px;
 gap:6px;
 border-top:3px solid #c5d1d3;
 border-radius:17px;
 box-shadow:0 7px 24px rgba(12,43,48,.055)
}
.plan-grid .plan-card-full{border-top-color:#158676}
.plan-grid .plan-card .pill{
 font-size:11px;
 font-weight:800;
 letter-spacing:.3px;
 padding:4px 11px
}
.plan-grid .plan-price{
 margin-top:6px;
 font-size:clamp(30px,4vw,39px);
 line-height:1.08;
 letter-spacing:-.9px;
 font-variant-numeric:tabular-nums
}
.plan-grid .plan-lead{
 font-size:12px;
 line-height:1.45;
 min-height:34px;
 margin:0
}
.plan-grid .plan-rule{
 width:100%;
 border-top:1px solid #e6edec;
 margin:4px 0 3px
}
.plan-grid .plan-includes{
 margin:5px 0 3px;
 padding:0;
 width:auto;
 background:none;
 border:0;
 border-radius:0;
 color:#536772;
 line-height:1.45;
 font-size:12px;
 font-weight:650
}
.plan-grid .plan-benefits{
 gap:12px;
 margin-top:9px
}
.plan-grid .plan-benefits li{
 padding-left:19px;
 font-size:13px;
 line-height:1.48;
 overflow-wrap:normal;
 hyphens:auto
}
.plan-grid .plan-benefits li::before{left:0;font-weight:900}
@media(max-width:480px){
 .plan-grid{gap:12px}
 .plan-grid .plan-card{padding:15px 12px 17px;gap:5px}
 .plan-grid .plan-price{font-size:clamp(29px,7.2vw,35px)}
 .plan-grid .plan-lead{font-size:11px;min-height:40px}
 .plan-grid .plan-benefits{gap:11px;margin-top:8px}
 .plan-grid .plan-benefits li{font-size:12px;padding-left:16px;line-height:1.45}
 .plan-grid .plan-includes{padding:0;font-size:11px}
}


/* Kort förklarande text – inte en klickbar knapp eller informationsruta. */
.plan-grid .plan-includes-note{
  display:block;
  margin:7px 0 1px;
  padding:0;
  width:auto;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--sub);
  font-size:12px;
  font-weight:600;
  line-height:1.45;
  cursor:default;
}
@media(max-width:480px){
 .plan-grid .plan-includes-note{font-size:11px}
}


/* Startsidan: neutralt bildgalleri för QR-skyltens placering. */
.qr-step-example-action{margin-top:13px}
.qr-example-trigger{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 padding:6px 12px;min-height:34px;
 border:1px solid #bed1d0;border-radius:9px;
 background:#f5faf9;color:#22564f;font:inherit;font-size:12px;font-weight:700;cursor:pointer
}
.qr-example-trigger:hover{background:#e8f4f0;border-color:#6ba69b}
.qr-example-trigger span{font-size:15px;line-height:1}
.qr-example-trigger:focus-visible,.qr-examples-close:focus-visible,
.qr-example-image-button:focus-visible,.qr-photo-lightbox-close:focus-visible{
 outline:3px solid #087d71;outline-offset:3px
}
.qr-examples-overlay,.qr-photo-lightbox{
 position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
 background:rgba(7,31,38,.70);padding:15px;overflow:auto;overscroll-behavior:contain
}
.qr-examples-overlay{z-index:1600}
.qr-photo-lightbox{z-index:1620;background:rgba(5,18,23,.92)}
.qr-examples-dialog{
 box-sizing:border-box;width:min(880px,100%);max-height:calc(100dvh - 30px);
 overflow:auto;padding:18px;border-radius:16px;background:white;color:#17383e;
 border:1px solid #dce6e5;box-shadow:0 15px 60px rgba(0,0,0,.23)
}
.qr-examples-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.qr-examples-header h2{margin:0;font-size:20px;line-height:1.3}
.qr-examples-close,.qr-photo-lightbox-close{
 width:38px;height:38px;display:grid;place-items:center;flex:none;
 border-radius:10px;border:1px solid #dbe4e3;background:#f5f8f8;
 color:#294951;font-size:26px;line-height:1;cursor:pointer
}
.qr-examples-close:hover,.qr-photo-lightbox-close:hover{background:#e8f0ee}
.qr-examples-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.qr-example-image-button{
 display:block;box-sizing:border-box;width:100%;margin:0;padding:0;
 overflow:hidden;border:1px solid #d4e0de;border-radius:11px;
 background:#edf1f0;cursor:zoom-in;aspect-ratio:4/3
}
.qr-example-image-button img{display:block;width:100%;height:100%;object-fit:cover}
.qr-example-image-button:hover{border-color:#5d9289;box-shadow:0 0 0 2px #d4e7e3}
.qr-photo-lightbox-content{
 position:relative;width:min(940px,100%);
 display:flex;align-items:center;justify-content:center
}
.qr-photo-lightbox-content img{
 display:block;width:auto;height:auto;max-width:100%;
 max-height:calc(100dvh - 60px);object-fit:contain;
 border-radius:8px;box-shadow:0 14px 48px rgba(0,0,0,.30)
}
.qr-photo-lightbox-close{
 position:absolute;z-index:1;right:8px;top:8px;
 border:1px solid rgba(255,255,255,.55);
 background:rgba(13,36,48,.86);color:white
}
.qr-photo-lightbox-close:hover{background:#0d2430}
@media(max-width:480px){
 .qr-examples-overlay,.qr-photo-lightbox{padding:10px}
 .qr-examples-dialog{padding:12px;border-radius:14px}
 .qr-examples-header{margin-bottom:10px}
 .qr-examples-header h2{font-size:18px}
 .qr-examples-grid{gap:7px}
 .qr-example-image-button{border-radius:7px}
 .qr-photo-lightbox-content img{max-height:calc(100dvh - 30px)}
 .qr-photo-lightbox-close{top:7px;right:7px}
}

/* Samlade aviseringar – neutral och kompakt presentation. */
.user-maintenance-system{border:1px solid var(--border);border-radius:9px;margin:8px 0;overflow:hidden;background:#f9fbfa}
.user-maintenance-system>summary{padding:11px 13px;font-weight:700;font-size:13px;cursor:pointer;background:#f4f8f6}
.user-maintenance-options{padding:8px 12px 10px}
.user-maintenance-options .checklabel{margin:3px 0!important;padding:9px 5px!important;font-weight:500}
.notification-digest-preview{border:1px solid var(--border);border-radius:12px;padding:12px 14px;margin:16px 0}
.notification-digest-preview summary{cursor:pointer;font-weight:700}
.notification-preview-result{margin-top:13px}
.notification-mail-sample{padding:14px;background:#f8faf9;border:1px solid var(--border);border-radius:9px;min-width:0}
.notification-mail-sample small{display:block;color:var(--sub);margin:8px 0 13px}
.notification-mail-sample pre{font:inherit;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}


/* Förfrågan om behörighet – neutral tjänsteutformning för demo. */
.kj-access-panel-actions{margin:12px 0 8px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.kj-access-panel-actions .mini{margin:0}
.kj-access-overlay{z-index:1200}
.kj-access-dialog{max-width:630px}
.kj-access-dialog .billing-dialog-content{display:grid;gap:12px}
.kj-access-dialog .field{margin:0}
.kj-access-dialog input[readonly]{background:#f2f5f5;color:#405660}
.kj-access-intro{margin:0;padding:13px 15px;border-left:3px solid #168475;background:#eef7f4;border-radius:10px;font-size:14px;line-height:1.55}
.kj-access-missing-email p{margin:0 0 10px;line-height:1.6}
.kj-access-missing-email .btn{display:inline-flex;align-items:center;max-width:100%;white-space:normal;text-align:center}
.kj-access-address{display:block;font-size:12px;color:#5c6c74}
.kj-access-requests{margin-top:18px;border-top:1px solid var(--border);padding-top:15px}
.kj-access-requests h3{margin:0 0 8px}
.kj-access-card{border:1px solid #d5e3e2;border-radius:12px;background:#fff;margin:9px 0;overflow:hidden}
.kj-access-card-trigger{width:100%;display:flex;gap:14px;justify-content:space-between;align-items:center;padding:13px 14px;text-align:left;background:transparent;border:0;color:var(--ink);cursor:pointer}
.kj-access-card-trigger:hover,.kj-access-card-trigger:focus-visible{background:#f3faf7}
.kj-access-card-trigger>span:first-child{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.kj-access-card-trigger strong{font-size:15px}
.kj-access-card-trigger small{font-size:12px;color:var(--sub);line-height:1.5}
.kj-access-detail{border-top:1px solid var(--border);padding:14px;background:#f9fbfb}
.kj-access-detail p{margin:5px 0;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.kj-access-detail .actions{margin:13px 0}
.kj-access-mail,.kj-access-history{margin:13px 0 5px;font-size:13px}
.kj-access-mail>summary,.kj-access-history>summary{font-weight:700;cursor:pointer;color:var(--jade)}
.kj-access-mail .notification-mail-sample{margin:10px 0 0}
.kj-access-mail pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.55}
.kj-access-panel-actions .btn{max-width:100%}
@media(max-width:600px){.kj-access-dialog{width:min(100%,calc(100vw - 16px))}.kj-access-card-trigger{padding:12px}.kj-access-detail{padding:12px}.kj-access-overlay .billing-dialog{max-height:calc(100dvh - 36px);overflow:auto}}
