/* Studio Avtrykk — appfilmen i Avtrykk Måned
   Spilleren (kapitler, pause, tekst) ligger først. Selve «appen» i filmen ligger under og har sine egne farger:
   hvit og flat, tynne grå linjer, svart bare på viktigste knapp, én dempet blå for «jobbes med nå». */

/* ---------- spilleren ---------- */
.film { margin-top: clamp(40px, 6vw, 64px); }
.film__intro { max-width: 40em; margin-bottom: 28px; }
.film__intro h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: #fff; margin: 0 0 12px; }
.film__intro p { font-size: 19px; line-height: 1.5; color: #D4D4DA; }

.film__ramme { position: relative; max-width: 1040px; margin: 0 auto; cursor: pointer; border-radius: 20px; }
.film__ramme:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.film__skjerm {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  width: 100%; aspect-ratio: 16 / 10; border-radius: 20px; background: #FAFAF8;
  -webkit-user-select: none; user-select: none;
}
@media (max-width: 719px) { .film__skjerm { aspect-ratio: 9 / 14.5; } }

/* pause: stor «spill av» over bildet når brukeren har trykket pause */
.film__spillover {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; border-radius: 20px;
  background: rgba(14, 14, 16, .34); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease, ease);
}
.film__spillover span {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; color: #0E0E10;
}
.film__spillover svg { width: 34px; height: 34px; margin-left: 5px; }
.film--pauset .film__spillover { opacity: 1; }

.film__bunn { max-width: 1040px; margin: 24px auto 0; }
.film__tekst {
  display: flex; align-items: center; gap: 16px; min-height: 3.4em;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; color: #fff;
}
.film__nr {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: #0E0E10; font-size: 18px; font-weight: 650; letter-spacing: 0;
}
.film__tekst.ny .film__setning { animation: film-tekst .3s var(--ease, ease) both; }
.film__tekst.ny .film__nr { animation: film-pop .38s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes film-pop { from { transform: scale(.5); } to { transform: none; } }
@keyframes film-tekst { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.film__styring { display: grid; gap: 12px; margin-top: 18px; }
.film__spill {
  appearance: none; border: 0; cursor: pointer; min-height: 56px; padding: 0 24px 0 20px; border-radius: 999px;
  background: #fff; color: #0E0E10; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  transition: scale .2s var(--ease, ease), background-color .18s;
}
.film__spill:active { scale: .97; }
.film__spill svg { width: 22px; height: 22px; flex: none; }
.film__spill .ik-spill { display: none; }
.film__spill.er-pause .ik-spill { display: block; }
.film__spill.er-pause .ik-pause { display: none; }
.film__kapitler { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .film__kapitler { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .film__styring { grid-template-columns: auto 1fr; gap: 14px; align-items: stretch; } .film__kapitler { grid-template-columns: repeat(8, 1fr); } }
.film__kapittel {
  appearance: none; cursor: pointer; position: relative; overflow: hidden; width: 100%; height: 100%; min-height: 60px;
  display: grid; align-content: center; gap: 2px; text-align: left; padding: 11px 14px 14px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #E6E6EA;
  transition: background-color .2s var(--ease, ease), color .2s var(--ease, ease), border-color .2s, scale .2s var(--ease, ease);
}
.film__kapittel:active { scale: .98; }
@media (hover: hover) and (pointer: fine) { .film__kapittel:hover { border-color: rgba(255, 255, 255, .45); } }
.film__kapnr { font-size: 13px; font-weight: 600; color: #A3A3AB; letter-spacing: 0; }
.film__kapnavn { font-size: 16px; font-weight: 550; line-height: 1.2; letter-spacing: -0.01em; }
.film__fyll { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .12); }
.film__fyll::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.film__kapittel.er-sett .film__kapnr { color: #D4D4DA; }
.film__kapittel.er-aktiv { background: #fff; color: #0E0E10; border-color: #fff; }
.film__kapittel.er-aktiv .film__kapnr { color: #55555A; }
.film__kapittel.er-aktiv .film__fyll { background: rgba(14, 14, 16, .14); }
.film__kapittel.er-aktiv .film__fyll::after { background: #0E0E10; }
.film__tips { margin-top: 14px; font-size: 16px; color: #BDBDC4; }

/* ====================================================================================
   «APPEN» I FILMEN (kommer under)
   ==================================================================================== */

.film__merk { margin-top: 10px; font-size: 16px; color: #BDBDC4; }
@media (min-width: 720px) and (max-width: 999px) { .film__skjerm { aspect-ratio: 4 / 3; } }
.film__tekstversjon { margin-top: 12px; font-size: 16px; color: #BDBDC4; }
.film__tekstversjon summary { cursor: pointer; display: inline-block; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.film__tekstversjon ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; color: #D4D4DA; }

.vindu__topp { flex: none; height: 42px; display: grid; place-items: center; background: #F2F2F2; border-bottom: 1px solid rgba(11, 11, 12, .09); }
.vindu__adresse { display: inline-flex; align-items: center; gap: 7px; padding: 6px 16px; border-radius: 999px; background: #fff; font: 500 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif; color: rgba(11, 11, 12, .62); }
.vindu__adresse svg { width: 13px; height: 13px; }

/* markøren */
.pekare { position: absolute; left: 0; top: 0; z-index: 80; width: 0; height: 0; pointer-events: none; opacity: 0; transition: transform .5s cubic-bezier(.3, .7, .2, 1), opacity .3s; }
.pekare__pil { position: absolute; left: -5px; top: -3px; width: 26px; height: 26px; max-width: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); transition: transform .15s; transform-origin: 5px 3px; }
.pekare__finger { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; display: none; background: rgba(11, 11, 12, .18); border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(11, 11, 12, .3); transition: transform .15s; }
.pekare__ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(11, 11, 12, .5); opacity: 0; }
.pekare.ring .pekare__ring { animation: ka-klikk .42s ease-out; }
.pekare.klikker .pekare__pil { transform: scale(.86); }
.pekare.klikker .pekare__finger { transform: scale(.82); }
@keyframes ka-klikk { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (max-width: 719px) { .pekare__pil { display: none; } .pekare__finger { display: block; } }

/* ====================================================================================
   «APPEN» (slik kundene ser den). Hvit og flat, tynne linjer, svart bare på viktigste knapp,
   én dempet blå for «jobbes med nå». Alle klasser starter på ka- så de ikke kolliderer med nettsiden.
   ==================================================================================== */
.app {
  --app-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
  --a-blekk: #0B0B0C; --a-2: rgba(11, 11, 12, .62); --a-3: rgba(11, 11, 12, .42);
  --a-linje: rgba(11, 11, 12, .09); --a-linje2: rgba(11, 11, 12, .16);
  --a-fyll: #F2F2F2; --a-fyll2: #EAEAEA; --a-hover: #F7F7F7; --a-bg: #FAFAF8;
  --a-jobb: #E8F0FD; --a-jobb-tekst: #2A5BD7; --a-gronn: #2E9E5B;
  --a-svev: 0 1px 1px rgba(11, 11, 12, .04), 0 12px 32px -8px rgba(11, 11, 12, .18);
  --a-ease: cubic-bezier(.23, 1, .32, 1);
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  background: var(--a-bg); color: var(--a-blekk);
  font: 400 15px/1.4 var(--app-font); letter-spacing: -.006em; -webkit-font-smoothing: antialiased;
}
.app *, .app *::before, .app *::after { box-sizing: border-box; }
.app p, .app b, .app ol { margin: 0; }
.app b { font-weight: 600; }
.app svg { display: block; flex: none; }

.ka-valg > [data-v]:not(.on) { display: none; }
.ka-inn { animation: ka-inn .34s cubic-bezier(.34, 1.4, .64, 1) backwards; }
.app .trykket { scale: .96; }
@keyframes ka-inn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.ka-merket { outline: 2px solid var(--a-jobb-tekst); outline-offset: 4px; border-radius: 8px; }

/* topplinje */
.ka-topp {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6; height: 56px; display: flex; align-items: center; gap: 14px;
  padding: 0 max(18px, calc((100% - 760px) / 2 + 20px));
  background: rgba(250, 250, 248, .88); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--a-linje);
}
.ka-topp__merke { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.ka-topp__merke svg { width: 22px; height: 22px; color: var(--a-blekk); }
.ka-topp__merke svg circle:last-child { fill: var(--a-blekk); }
.ka-topp__kunde { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ka-topp__kunde b { font-size: 13px; }
.ka-topp__pille { padding: 7px 13px; border-radius: 999px; background: var(--a-fyll); font-size: 13px; font-weight: 500; }

/* siden */
.ka-side { position: absolute; inset: 0; padding-top: 56px; overflow: hidden; }
.ka-rull { transition: transform .6s var(--a-ease); will-change: transform; }
.ka { max-width: 780px; margin: 0 auto; padding: 22px 20px 0; }
.ka-h1 { font-size: 34px; font-weight: 600; letter-spacing: -.028em; line-height: 1.1; }
.ka-ingress { margin-top: 6px; font-size: 17px; color: var(--a-2); }
.ka-h2 { font-size: 17px; font-weight: 500; letter-spacing: -.012em; color: var(--a-2); }
.ka-kort { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--a-linje); }
.ka-kort-topp { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ka-tall { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--a-jobb-tekst); color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; }
.ka-tall.lys { background: var(--a-fyll); color: var(--a-2); margin-left: 6px; display: inline-block; }
.ka-kort-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--a-2); flex-wrap: wrap; }
.ka-niva { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #EEE9FB; color: #5A3EB0; font-size: 12px; font-weight: 600; }
.ka-niva svg { width: 6px; height: 10px; opacity: .55; }
.ka-prikker { display: inline-flex; gap: 5px; }
.ka-prikker i { width: 10px; height: 10px; border-radius: 50%; background: var(--a-fyll2); transition: background-color .25s; }
.ka-prikker i.full { background: var(--a-jobb-tekst); }
.ka-bunnluft { height: 120px; }

/* kort for oppgaver */
.ka-forslag-rad { margin-bottom: 12px; }
.ka-kortgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.ka-ny-rute { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 16px 12px; min-height: 150px; border: 1px solid var(--a-linje); border-radius: 14px; background: transparent; }
.ka-ny-pluss { width: 34px; height: 34px; border-radius: 50%; background: var(--a-fyll); display: grid; place-items: center; font-size: 22px; line-height: 1; font-weight: 400; }
.ka-ny-rute b { font-size: 15px; }
.ka-ny-rute .ka-valg { font-size: 13px; color: var(--a-2); }
.ka-oppg { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--a-linje); border-radius: 14px; text-align: left; min-width: 0; }
.ka-oppg-bilde { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--a-fyll); overflow: hidden; display: grid; place-items: center; }
.ka-oppg-tom { font-size: 22px; font-weight: 500; color: var(--a-3); }
.ka-oppg-bilde__plakat { position: absolute; inset: 0; display: grid; place-items: center; }
.ka-oppg-bilde [data-plakat] { height: 100%; width: auto; }
.ka-nr { position: absolute; top: 7px; left: 8px; z-index: 2; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 600; color: var(--a-2); }
.ka-oppg-tekst { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ka-pille { align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--a-fyll); color: var(--a-2); font-size: 12px; font-weight: 500; line-height: 1.35; transition: background-color .25s, color .25s; }
.ka-oppg[data-t="lager"] .ka-pille, .ka-oppg[data-t="endrer"] .ka-pille { background: var(--a-jobb); color: var(--a-jobb-tekst); }
.ka-oppg[data-t="klar"] .ka-pille { background: var(--a-blekk); color: #fff; }
.ka-oppg-tekst > b { font-size: 15px; line-height: 1.25; letter-spacing: -.01em; }
.ka-strek { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 2px; }
.ka-strek i { height: 3px; border-radius: 2px; background: var(--a-fyll2); transition: background-color .3s; }
.ka-oppg[data-t="ko"] .ka-strek i:nth-child(1) { background: var(--a-jobb-tekst); }
.ka-oppg[data-t="lager"] .ka-strek i:nth-child(1), .ka-oppg[data-t="endrer"] .ka-strek i:nth-child(1),
.ka-oppg[data-t="klar"] .ka-strek i:nth-child(-n+2) { background: var(--a-blekk); }
.ka-oppg[data-t="lager"] .ka-strek i:nth-child(2), .ka-oppg[data-t="endrer"] .ka-strek i:nth-child(2) { background: var(--a-jobb-tekst); }
.ka-oppg[data-t="klar"] .ka-strek i:nth-child(3) { background: var(--a-jobb-tekst); }

/* forslag fra William */
.ka-forslag { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--a-linje); border-radius: 14px; }
.ka-forslag-merke { font-size: 13px; font-weight: 500; color: var(--a-2); }
.ka-forslag b { font-size: 16px; letter-spacing: -.012em; }
.ka-forslag-bunn { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: 13px; color: var(--a-2); }
.ka-forslag-pil { font-weight: 600; color: var(--a-blekk); white-space: nowrap; }
.ka-rapport-forslag { display: grid; gap: 10px; }

/* trenger svar fra dere */
.ka-svarkort { display: grid; grid-template-columns: 124px 1fr; gap: 18px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--a-linje); border-radius: 14px; }
.ka-bilde { position: relative; display: block; border-radius: 10px; background: var(--a-fyll); overflow: hidden; }
.ka-bilde.stor { aspect-ratio: 3 / 4; }
.ka-bilde.fyll { flex: none; width: 60px; height: 60px; }
.ka-bilde [data-plakat] { height: 100%; width: auto; margin: 0 auto; }
.ka-se-merke { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
.ka-se-merke svg { width: 14px; height: 14px; }
.ka-svar-tekst { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ka-svar-tekst > b { font-size: 16px; letter-spacing: -.012em; }
.ka-svar-tekst > span { font-size: 14px; color: var(--a-2); }
.ka-v { margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--a-fyll); font-size: 12px; font-weight: 500; color: var(--a-2); }
.ka-knapper { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.ka-ark .ka-ferdiggrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ka-ark .ka-ferdigkort { display: block; }
.ka-ark .ka-ferdigkort .ka-bilde.fyll { width: 100%; height: auto; aspect-ratio: 4 / 3; }

/* knapper */
.ka-knapp { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--a-linje2); background: #fff; color: var(--a-blekk); font: 500 15px/1 var(--app-font); letter-spacing: -.01em; white-space: nowrap; transition: scale .2s var(--a-ease), background-color .2s; }
.ka-knapp--mork { background: var(--a-blekk); border-color: var(--a-blekk); color: #fff; }
.ka-knapp--stor { min-height: 46px; padding: 0 20px; font-size: 16px; }
.ka-knapp--liten { min-height: 34px; padding: 0 12px; font-size: 14px; }
.ka-knapp--spok { background: transparent; }
.ka-knapp.trykket { scale: .95; }
.ka-bunnlenke { font-size: 15px; font-weight: 500; color: var(--a-2); text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; }
.ka-lenke { font-size: 14px; font-weight: 500; color: var(--a-2); }

/* rapport og ferdig */
.ka-rapport { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: #fff; border: 1px solid var(--a-linje); border-radius: 14px; }
.ka-rapport-topp { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ka-rapport-topp b { font-size: 17px; }
.ka-rapport-topp span { font-size: 12px; color: var(--a-2); }
.ka-rapport-pil { font-size: 14px; font-weight: 600; }
.ka-ferdiggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ka-ferdigkort { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ka-ferdigkort > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ka-ferdigkort b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* flytende bar */
.ka-bar { position: absolute; left: 50%; bottom: 16px; z-index: 8; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--a-linje); border-radius: 18px; box-shadow: var(--a-svev); transition: opacity .3s; }
.ka-bar-knapp { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 18px; border-radius: 13px; font-size: 15px; font-weight: 500; transition: scale .2s var(--a-ease); }
.ka-bar-knapp svg { width: 18px; height: 18px; }
.ka-bar-knapp.mork { background: var(--a-blekk); color: #fff; }
.ka-bar-knapp.trykket { scale: .95; }

/* lag over siden */
.app .ka-lag { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--a-ease), visibility 0s .2s; }
.app .ka-lag.ka-apen { opacity: 1; visibility: visible; transition: opacity .2s var(--a-ease); }

/* ark: midtboks på PC, bunnark på mobil */
.ka-ark-vert { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(11, 11, 12, .36); }
.ka-ark { width: min(100%, 540px); max-height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: var(--a-svev); overflow: hidden; transform: translateY(14px) scale(.985); transition: transform .32s cubic-bezier(.34, 1.3, .64, 1); }
.ka-apen > .ka-ark { transform: none; }
.ka-ark.bred { width: min(100%, 640px); }
.ka-ark > header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.ka-ark .ka-h2 { font-size: 17px; font-weight: 600; color: var(--a-blekk); }
.ka-lukk { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--a-fyll); display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--a-2); }
.ka-ark-kropp { flex: 1; min-height: 0; padding: 0 20px 20px; overflow: hidden; }
.ka-ark-kropp-in { transition: transform .5s var(--a-ease); }
.ka-ark-del { margin-top: 18px; }
.ka-ark-del:first-child { margin-top: 0; }
.ka-h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.ka-beskr { font-size: 15px; color: var(--a-blekk); line-height: 1.5; }
.ka-utheving { padding: 2px 6px; margin: -2px -6px; border-radius: 6px; transition: background-color .25s; }
.ka-utheving.ka-merket { background: var(--a-jobb); outline: 0; }
.ka-bib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.ka-bib-fil { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; min-width: 0; }
.ka-bib-bilde { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--a-fyll); overflow: hidden; display: grid; place-items: center; }
.ka-bib-bilde [data-plakat] { height: 100%; width: auto; }
.ka-bib-tekst { display: flex; flex-direction: column; min-width: 0; }
.ka-bib-tekst b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ka-bib-last { width: 34px; height: 34px; border-radius: 50%; background: var(--a-fyll); display: grid; place-items: center; position: relative; transition: background-color .3s, color .3s; }
.ka-bib-last svg { width: 16px; height: 16px; }
.ka-bib-last .ik-ok { position: absolute; opacity: 0; transition: opacity .3s; }
.ka-bib-last.ferdig { background: var(--a-blekk); color: #fff; }
.ka-bib-last.ferdig svg:first-child { opacity: 0; }
.ka-bib-last.ferdig .ik-ok { opacity: 1; }

/* ny oppgave */
.ka-ny { display: grid; gap: 14px; }
.ka-ny-bilder { display: flex; gap: 10px; align-items: stretch; }
.ka-ny-bilde { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.ka-ny-legg { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 64px; border: 1.5px dashed var(--a-linje2); border-radius: 12px; }
.ka-ny-legg svg { width: 22px; height: 22px; color: var(--a-2); }
.ka-ny-legg b { font-size: 15px; font-weight: 600; display: block; }
.ka-ny-legg > .ka-valg, .ka-ny-legg > b { flex: none; }
.ka-ny-felt { display: grid; gap: 6px; }
.ka-label { font-size: 14px; font-weight: 600; }
.ka-felt { display: block; width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid var(--a-linje2); border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.ka-felt.ka-fokus { border-color: var(--a-blekk); box-shadow: 0 0 0 3px rgba(11, 11, 12, .08); }
.ka-felt__tekst:empty::before { content: attr(data-plassholder); color: var(--a-3); }
.ka-felt.ka-fokus .ka-felt__tekst::after, .ka-felt__tekst.skriver::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -.17em; background: var(--a-blekk); animation: ka-blink 1s steps(1) infinite; }
@keyframes ka-blink { 50% { opacity: 0; } }
.ka-ny-forslag { display: flex; flex-wrap: wrap; gap: 6px; }
.ka-chip { padding: 7px 12px; border-radius: 999px; background: var(--a-fyll); font-size: 14px; font-weight: 500; transition: background-color .25s, color .25s, scale .2s var(--a-ease); }
.ka-chip.trykket { scale: .94; }
.ka-chip.valgt { background: var(--a-blekk); color: #fff; }
.ka-ny-bunn { display: flex; justify-content: flex-end; }
.ka-forslag-valg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ka-ark > .ka-ark-kropp > .ka-forslag-merke { margin-bottom: 8px; }

/* Se over: mørk heldekkende visning */
.ka-se { position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; background: #141417; color: #fff; transition: opacity .22s var(--a-ease), visibility 0s .22s, transform .32s var(--a-ease); transform: translateY(18px); }
.ka-se.ka-apen { transform: none; transition: opacity .22s var(--a-ease), transform .32s var(--a-ease); }
.ka-se-topp { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ka-se-lukk, .ka-se-last { flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.ka-se-last svg { width: 17px; height: 17px; }
.ka-se-navn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ka-se-navn b { font-size: 15px; }
.ka-se-navn > span { font-size: 13px; color: rgba(255, 255, 255, .62); }
.ka-se-flate { flex: 1; min-height: 0; display: grid; place-items: center; padding: 2px 16px 10px; }
.ka-se-bilde { position: relative; height: 100%; aspect-ratio: 3 / 4; max-width: 100%; cursor: crosshair; }
.ka-se-bilde > [data-plakat] { width: 100%; height: 100%; }
.ka-se-pin { position: absolute; z-index: 3; width: 28px; height: 28px; margin: 0; background: #000; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: translate(-50%, calc(-100% - 6px)) rotate(-45deg); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.ka-se-pin::after { content: attr(data-n); transform: rotate(45deg); font-size: 13px; font-weight: 700; color: #fff; }
.ka-se-pin.ka-inn { animation-name: ka-pin; }
.ka-se-pop.ka-inn { animation-name: ka-pop; }
@keyframes ka-pop { from { opacity: 0; } to { opacity: 1; } }
@keyframes ka-pin { from { opacity: 0; transform: translate(-50%, calc(-100% - 22px)) rotate(-45deg) scale(.6); } to { opacity: 1; transform: translate(-50%, calc(-100% - 6px)) rotate(-45deg); } }
.ka-se-pop { position: absolute; z-index: 4; width: 230px; padding: 10px; display: grid; gap: 8px; background: #fff; color: var(--a-blekk); border-radius: 14px; box-shadow: var(--a-svev); transform: translate(-50%, 14px); }
.ka-se-pop.over { transform: translate(-50%, calc(-100% - 46px)); }
.ka-se-pop.venstre { transform: translate(-12%, 14px); }
.ka-se-pop.hoyre { transform: translate(-88%, 14px); }
.ka-se-pop.over.venstre { transform: translate(-12%, calc(-100% - 46px)); }
.ka-se-pop.over.hoyre { transform: translate(-88%, calc(-100% - 46px)); }
.ka-felt--pop { min-height: 56px; padding: 9px 11px; font-size: 14px; }
.ka-se-pop-knapper { display: flex; justify-content: flex-end; gap: 8px; }
.ka-se-bunn { flex: none; display: grid; gap: 10px; padding: 8px 16px 16px; }
.ka-se-hint { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.ka-se-hint-ikon { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.ka-se-liste { list-style: none; padding: 0; display: grid; gap: 6px; }
.ka-se-liste li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ka-se-liste i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-style: normal; }
.ka-se-knapper { display: flex; flex-wrap: wrap; gap: 10px; }
.ka-se .ka-knapp--mork { background: #fff; border-color: #fff; color: var(--a-blekk); }

/* godkjenning */
.gk-vert { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(11, 11, 12, .5); }
.gk { width: min(100%, 420px); display: grid; gap: 12px; padding: 22px; background: #fff; border-radius: 18px; box-shadow: var(--a-svev); transform: translateY(14px) scale(.985); transition: transform .3s cubic-bezier(.34, 1.3, .64, 1); }
.ka-apen > .gk { transform: none; }
.gk .ka-h2 { font-size: 20px; font-weight: 600; color: var(--a-blekk); letter-spacing: -.02em; }
.gk-navn { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.gk-navn .ka-felt { font-weight: 400; }
.gk-knapper { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* e-post, melding og tid */
.ka-epost { position: absolute; inset: 0; z-index: 35; display: grid; place-items: center; padding: 20px; background: #F4F1EA; }
.ka-epost-kort { width: min(100%, 410px); display: grid; gap: 12px; justify-items: start; padding: 26px; background: #fff; border: 1px solid rgba(11, 11, 12, .06); border-radius: 14px; transform: translateY(14px); transition: transform .35s cubic-bezier(.34, 1.3, .64, 1); }
.ka-apen > .ka-epost-kort { transform: none; }
.ka-epost-merke { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.ka-epost-merke::after { content: "."; color: #E4492B; }
.ka-epost-emne { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ka-epost-kort p { font-size: 15px; }
.ka-epost-kort .ka-knapp { margin-top: 6px; }
.ka-toast { position: absolute; left: 50%; bottom: 84px; z-index: 50; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--a-blekk); color: #fff; font-size: 15px; font-weight: 500; text-align: center; transform: translate(-50%, 12px); box-shadow: var(--a-svev); transition: opacity .2s var(--a-ease), transform .3s var(--a-ease), visibility 0s .2s; }
.ka-toast.ka-apen { transform: translate(-50%, 0); transition: opacity .2s var(--a-ease), transform .3s cubic-bezier(.34, 1.4, .64, 1); }
.ka-tid { position: absolute; left: 50%; top: 74px; z-index: 60; padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--a-linje2); box-shadow: var(--a-svev); font-size: 16px; font-weight: 600; transform: translateX(-50%) scale(.85); transition: opacity .2s var(--a-ease), transform .3s cubic-bezier(.34, 1.56, .64, 1), visibility 0s .2s; }
.ka-tid.ka-apen { transform: translateX(-50%) scale(1); transition: opacity .2s var(--a-ease), transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ka-slutt { position: absolute; inset: 0; z-index: 70; display: grid; align-content: center; justify-items: center; gap: 26px; background: #fff; text-align: center; }
.ka-slutt p { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.ka-slutt__ringer { position: relative; width: 130px; height: 130px; display: grid; place-items: center; }
.ka-slutt__ringer i { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; border: 1.5px solid var(--a-blekk); opacity: 0; animation: ka-ring 3.3s cubic-bezier(.2, .6, .3, 1) infinite; }
.ka-slutt__ringer i:nth-child(2) { animation-delay: 1.1s; }
.ka-slutt__ringer i:nth-child(3) { animation-delay: 2.2s; }
.ka-slutt__ringer b { width: 16px; height: 16px; border-radius: 50%; background: var(--a-blekk); }
@keyframes ka-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(7.5); opacity: 0; } }

/* kundens egne bilder (ikke appens): plakaten og små miniatyrer */
[data-plakat] { display: block; width: 100%; aspect-ratio: 3 / 4; }
.plakat { display: block; width: 100%; height: 100%; container-type: inline-size; background: #F2EADB; color: #2B2118; overflow: hidden; }
.plakat__in { display: flex; flex-direction: column; height: 100%; padding: 2.4em 2.2em 1.8em; font: 400 4.4cqw/1.25 Georgia, "Times New Roman", serif; }
.plakat__navn { font: 600 .74em/1 var(--app-font, system-ui); letter-spacing: .24em; text-transform: uppercase; text-align: center; color: #8A5A36; }
.plakat__tittel { margin: .55em 0 .05em; text-align: center; font-size: 3.1em; line-height: 1.02; font-style: italic; letter-spacing: -.01em; transition: font-size .8s cubic-bezier(.23, 1, .32, 1); }
.plakat[data-v="2"] .plakat__tittel { font-size: 3.9em; }
.plakat__dato { text-align: center; font: 500 .8em/1.2 var(--app-font, system-ui); color: #7A6A55; }
.plakat__linje { display: block; height: 1px; margin: 1.3em 0 .9em; background: #2B2118; opacity: .3; }
.plakat__rett { display: flex; align-items: baseline; gap: .5em; margin: .5em 0; font-size: 1.05em; }
.plakat__prikker { flex: 1; min-width: .6em; border-bottom: 1px dotted rgba(43, 33, 24, .45); transform: translateY(-.25em); }
.plakat__pris { font-weight: 700; color: #8A3D1B; font-variant-numeric: tabular-nums; }
.plakat[data-v="1"] .plakat__pris i[data-v="2"], .plakat[data-v="2"] .plakat__pris i[data-v="1"] { display: none; }
.plakat__pris i { font-style: normal; }
.plakat__bunn { margin-top: auto; padding-top: 1em; text-align: center; font: 500 .74em/1.3 var(--app-font, system-ui); letter-spacing: .06em; color: #7A6A55; }
.ka-mini { display: grid; place-items: center; width: 100%; height: 100%; container-type: size; text-align: center; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.ka-mini > span { font-size: 17cqh; line-height: 1.05; padding: 0 8%; }
.ka-mini--a { background: #B4532A; color: #F6EBDD; }
.ka-mini--b { background: #2F4A3A; color: #F1E8D6; }
.ka-mini--c { background: #D8A43C; color: #2B2118; }
.ka-mini--foto { position: relative; background: #CFC7B8; }
.ka-mini--foto::before { content: ""; position: absolute; inset: 14% 24%; background: #FBF8F1 repeating-linear-gradient(to bottom, transparent 0 .42em, rgba(43, 33, 24, .26) .42em calc(.42em + 1px)); transform: rotate(-3deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .22); }

/* prisene: oppgaver om gangen som prikker */
.plasser { display: inline-flex; gap: 6px; margin-right: 10px; vertical-align: -1px; }
.plasser i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .35; }
.plasser[data-antall="1"] i:nth-child(1), .plasser[data-antall="2"] i:nth-child(-n+2), .plasser[data-antall="3"] i { background: currentColor; opacity: 1; }

/* smalt: telefon */
@media (max-width: 719px) {
  .vindu__topp { display: none; }
  .ka-topp { padding: 0 16px; height: 52px; }
  .ka-side { padding-top: 52px; }
  .ka { padding: 18px 16px 0; }
  .ka-h1 { font-size: 28px; }
  .ka-ingress { font-size: 16px; }
  .ka-kort { margin-top: 20px; padding-top: 16px; }
  .ka-kortgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ka-ny-rute { min-height: 0; padding: 14px 10px; }
  .ka-oppg-bilde { aspect-ratio: 4 / 3; }
  .ka-topp { gap: 10px; }
  .ka-topp__merke b { font-size: 14px; white-space: nowrap; }
  .ka-topp__kunde { min-width: 0; }
  .ka-topp__kunde b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .ka-topp__pille { white-space: nowrap; }
  .ka-ny { gap: 11px; }
  .ka-ny-bilde { width: 56px; height: 56px; }
  .ka-ny-legg { min-height: 56px; padding: 8px 12px; }
  .ka-ny-forslag { gap: 5px; }
  .ka-chip { padding: 6px 11px; font-size: 13px; }
  .ka-felt { min-height: 42px; padding: 9px 12px; }
  .ka-svarkort { grid-template-columns: 92px 1fr; gap: 12px; padding: 10px; }
  .ka-svar-tekst > b { font-size: 15px; }
  .ka-ferdiggrid { grid-template-columns: 1fr; gap: 10px; }
  .ka-ark-vert { place-items: end center; padding: 0; }
  .ka-ark, .ka-ark.bred { width: 100%; max-height: 94%; border-radius: 18px 18px 0 0; }
  .ka-ark-kropp { padding: 0 16px 16px; }
  .ka-ark > header { padding: 14px 16px 10px; }
  .ka-bar { bottom: 12px; }
  .ka-bar-knapp { padding: 0 14px; }
  .ka-toast { bottom: 78px; }
  .ka-tid { top: 66px; }
  .ka-se-pop { width: 200px; }
  .ka-bib-grid { gap: 12px 10px; }
  .ka-slutt p { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .film__spill, .film__kapittel { transition: none; }
}
