/* ================================================================
   Nora Signal — Gjenbrukbare komponenter: knapper, Spør Nora, toggle, modal, toast, pills, slider
   Utledet fra samples/sample2.html · Profilhåndbok v1.0
   ================================================================ */

/* Knapper */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s; border: none; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .45; cursor: default; }
.btn-primary:disabled:hover { background: var(--accent); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-secondary:disabled { opacity: .45; color: var(--text-tertiary); cursor: default; }
.btn-secondary:disabled:hover { background: var(--surface); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); }

/* Underfaner (Firmasøk/Lagrede søk, Overvåkning, produktsider) */
.subtabs {
  display: inline-flex; gap: 3px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 3px; margin-bottom: 16px;
}
.subtab {
  border: none; background: transparent; font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  padding: 7px 14px; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.subtab:hover { color: var(--text); }
.subtab.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.subtab .nav-count { background: var(--bg); }
.subtab.active .nav-count { background: var(--surface); }

/* Klikkbart personnavn — åpner personprofilen */
.p-link { cursor: pointer; }
.p-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Spør Nora */
.nora-ask {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 16px; transition: background .3s;
}
.nora-ask-row { display: flex; align-items: center; gap: 12px; }
.nora-spark {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.nora-spark svg { width: 18px; height: 18px; }
.nora-ask input {
  flex: 1; border: none; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--text);
}
.nora-ask input:focus { outline: none; }
.nora-ask input::placeholder { color: var(--text-tertiary); }
.nora-response {
  display: none; margin-top: 12px; padding: 12px 14px;
  background: var(--accent-light); border-radius: 8px;
  font-size: 13px; color: var(--text); line-height: 1.6;
}
.nora-response.show { display: block; }
.nora-response strong { color: var(--accent); }

/* Avkryssing i tabell */
.rowcheck { display: flex; }
.rowcheck input { display: none; }

/* Infoboks (compliance) */
.infobox {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--blue-light); border-radius: 8px;
  padding: 12px 14px; font-size: 12.5px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 16px;
}
.infobox svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.infobox strong { color: var(--text); font-weight: 600; }

/* Toggle */
.toggle-wrap { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; }
.toggle { position: relative; width: 34px; height: 20px; flex-shrink: 0; }
.toggle input { display: none; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 10px;
  background: var(--border); transition: background .15s;
}
.toggle-knob {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform .15s;
}
.toggle input:checked ~ .toggle-track { background: var(--accent); }
.toggle input:checked ~ .toggle-knob { transform: translateX(14px); }

/* Personer-fane */
.person-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pill {
  padding: 6px 13px; border-radius: 16px; font-size: 12.5px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all .15s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px);
  z-index: 200; background: var(--sb-bg); color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 11px 18px; border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  opacity: 0; pointer-events: none; transition: all .2s ease;
  display: flex; align-items: center; gap: 9px; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; color: #7CBB7D; flex-shrink: 0; }

.content-footer {
  margin-top: 24px; font-size: 11.5px; color: var(--text-tertiary);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.flink { cursor: pointer; }
.flink:hover { color: var(--accent); text-decoration: underline; }

/* ============ Range-slider ============ */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--border); outline: none; margin: 6px 0 2px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid var(--surface); }

/* ============ Modal ============ */
#modalOverlay { z-index: 125; }
.modal {
  position: fixed; z-index: 130; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 380px; max-width: 92vw; background: var(--surface);
  border-radius: 16px; padding: 24px; box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  display: none;
}
.modal.open { display: block; animation: modalIn .2s ease; }
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.modal-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.btn-danger { background: var(--red) !important; color: #fff !important; }
.btn-danger:hover { opacity: .88; }

/* ---- CSV-eksport: feltvelgeren (#ekspModal, eksport.js) ---- */
.eksp-modal { width: 720px; }
.eksp-hurtig {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-secondary); margin-top: 10px;
}
.eksp-dot { color: var(--text-tertiary); }
.eksp-valgt { margin-left: auto; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.eksp-grupper {
  display: flex; gap: 26px; align-items: flex-start;
  max-height: 55vh; overflow-y: auto;
  margin-top: 10px; padding: 2px 6px 2px 2px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.eksp-kol { flex: 1; min-width: 0; }
.eksp-gruppe { padding: 8px 0 6px; }
.eksp-gr-hode {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--text-tertiary); margin-bottom: 2px;
}
.eksp-gr-hode .flink { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 11px; }
.eksp-felt { padding: 4px 0; font-size: 12.5px; }
@media (max-width: 640px) {
  .eksp-grupper { flex-direction: column; max-height: 48vh; }
}

/* ---- Pene nedtrekk (NoraSelect, nselect.js) — erstatter native <select> ---- */
.nsel { position: relative; display: inline-flex; vertical-align: middle; max-width: 100%; }
.nsel > select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0;
}
.nsel-btn {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px 7px 11px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 13px; color: var(--text); text-align: left;
  white-space: nowrap; transition: border-color .15s, box-shadow .15s;
}
.nsel-btn:hover { border-color: var(--accent); }
.nsel-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.nsel-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nsel-btn > svg { width: 14px; height: 14px; flex: none; color: var(--text-tertiary); transition: transform .15s; }
.nsel.open .nsel-btn { border-color: var(--accent); }
.nsel.open .nsel-btn > svg { transform: rotate(180deg); }
.nsel-panel {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 130;
  min-width: 100%; max-height: 300px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  animation: nselInn .12s ease;
}
@keyframes nselInn { from { opacity: 0; transform: translateY(-4px); } }
.nsel-panel.opp { top: auto; bottom: calc(100% + 4px); }
.nsel-panel.opp { animation-name: nselInnOpp; }
@keyframes nselInnOpp { from { opacity: 0; transform: translateY(4px); } }
.nsel-panel.hoyre { left: auto; right: 0; }
.nsel-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer;
  font-size: 13px; color: var(--text); white-space: nowrap;
}
.nsel-opt:hover, .nsel-opt.aktiv { background: var(--bg); }
.nsel-opt.valgt { color: var(--accent); font-weight: 500; }
.nsel-opt.deaktivert { opacity: .45; pointer-events: none; }
.nsel-check { margin-left: auto; font-size: 11px; color: var(--accent); opacity: 0; }
.nsel-opt.valgt .nsel-check { opacity: 1; }

/* ---------- NoraKalender (kalender.js): flytende datovelger ----------
   Body-nivå med position:fixed (som .merk-meny) — filtersidepanelet klipper
   med overflow, og to måneder side om side er bredere enn kolonnen. */
.nkal {
  position: fixed; z-index: 200;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-width: min(560px, calc(100vw - 16px));
  max-height: calc(100vh - 16px); overflow: auto; overscroll-behavior: contain;
  animation: nselInn .12s ease;
}
.nkal-hode { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.nkal-tittel {
  flex: 1; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--text); text-transform: capitalize;
}
.nkal-nav {
  width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.nkal-nav:hover { border-color: var(--accent); color: var(--accent); }
.nkal-flate { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.nkal-mnd { min-width: 0; }
.nkal-ukedager, .nkal-grid { display: grid; grid-template-columns: repeat(7, 32px); }
.nkal-ukedager span {
  text-align: center; font-size: 11px; color: var(--text-tertiary); padding: 2px 0 6px;
}
.nkal-dag {
  height: 30px; border: none; border-radius: 6px; background: transparent;
  font-family: inherit; font-size: 12.5px; color: var(--text); cursor: pointer;
}
.nkal-dag:hover:not(.utenfor):not(:disabled) { background: var(--bg); }
.nkal-dag.utenfor { pointer-events: none; }
.nkal-dag:disabled { opacity: .35; cursor: default; }
.nkal-dag.idag { font-weight: 700; color: var(--accent); }
.nkal-dag.i-periode { background: color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 0; }
.nkal-dag.valgt { background: var(--accent); color: #fff; font-weight: 600; }
.nkal-hint { margin-top: 8px; font-size: 11.5px; color: var(--text-tertiary); text-align: center; }

/* Kontekstuelle størrelser — speiler de gamle select-stilene på stedet */
.sort-wrap .nsel-btn, .paging-size .nsel-btn, .dash-filter .nsel-btn, .aksje-aar .nsel-btn {
  padding: 5px 8px; font-size: 12.5px; border-radius: 6px;
}
.dash-filter .nsel { max-width: 150px; }
.dash-filter .nsel-btn { border-radius: 8px; }
.aksje-aar .nsel-btn { background: var(--bg); border-radius: 8px; font-weight: 600; font-size: 12px; }
.byra-filt .nsel-btn { padding: 6px 8px; font-size: 12px; }
/* Årsvelgerens gamle dekor-pil er overflødig — knappen har egen chevron */
.aksje-aar-chev { display: none; }

/* Selskaps-favicon (favIkonHtml i ui.js): legges oppå bokstav-ikonet i
   .fk-avatar/.detail-mark; feilet lasting fjerner bildet → bokstaven vises. */
.fav-ikon {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: inherit; object-fit: contain;
  padding: 6px; box-sizing: border-box; background: #fff;
}

/* ---- AI-hjelpen «Spør Nora» (#aiModal, knapper, Mitt selskap — aihjelp.js) ---- */
.ai-hjelp-btn {
  width: 100%; justify-content: center; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--accent);
  color: var(--accent); font-weight: 600;
}
.ai-hjelp-btn:hover { background: var(--accent); color: #fff; }
.ai-hjelp-btn svg { width: 15px; height: 15px; }
.ai-hjelp-knapp { width: auto; margin-bottom: 0; }   /* i .page-actions (Nora BI) */
.ai-modal { width: min(680px, 94vw); max-height: 86vh; overflow: auto; }

/* ---- Oppdragsradar: annonse-modalen (#oppdragModal, products/oppdrag.js) ---- */
.oppdrag-modal { width: min(680px, 94vw); }
.oppd-modal-kropp { max-height: 60vh; overflow-y: auto; margin-top: 4px; padding-right: 4px; }
.oppd-modal-kropp .muted { color: var(--text-tertiary); font-weight: 400; }
.oppd-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.oppd-chip {
  font-size: 11.5px; padding: 3px 10px; border-radius: 12px;
  background: var(--accent-light); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.oppd-seksjon {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-tertiary); margin: 14px 0 6px;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.oppd-kontakt { font-size: 13px; padding: 4px 0; }
.oppd-kontakt-info { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }
.oppd-kontakt-info a { color: var(--accent); }
.oppd-firma { font-size: 13px; line-height: 1.5; }
.oppd-tekst { white-space: pre-wrap; font-size: 13px; line-height: 1.65; color: var(--text-secondary); }
.oppd-flere { font-size: 13px; padding: 5px 0; cursor: pointer; border-bottom: 1px solid var(--border); }
.oppd-flere:hover { color: var(--accent); }
.oppd-tilbake { font-size: 12.5px; color: var(--accent); cursor: pointer; margin-bottom: 8px; }
.oppd-tilbake:hover { text-decoration: underline; }
.ai-intro { font-size: 13px; color: var(--text); line-height: 1.55; margin-bottom: 12px; }
.ai-sett-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-analyse-rad { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ai-status { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.ai-feil { color: var(--red, #C0392B); }
.ai-spinn {
  display: inline-block; width: 12px; height: 12px; vertical-align: -2px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: aiSpinn .8s linear infinite; margin-right: 4px;
}
@keyframes aiSpinn { to { transform: rotate(360deg); } }
.ai-tekst { resize: vertical; font-size: 13px; line-height: 1.5; }
.ai-onske { width: 100%; resize: vertical; }
.ai-forslag-head { font-weight: 600; font-size: 13px; margin-top: 16px; }
.ai-forslag-head span { font-weight: 400; color: var(--text-tertiary); font-size: 12px; }
.ai-forslag {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-top: 10px; background: var(--surface);
}
.ai-forslag-topp { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ai-forslag-navn { font-weight: 600; font-size: 13.5px; }
.ai-forslag-tekst { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.ai-kjor { flex-shrink: 0; }
@media (max-width: 640px) {
  .ai-sett-grid { grid-template-columns: 1fr; }
  .ai-forslag-topp { flex-direction: column; }
  .ai-hjelp-knapp { width: 100%; }
}

/* ============ Salgshjelpen (intern) — #salgModal + rakettknappen ============ */
/* Knappen i firmaprofilens bunnrad: ikon alene, merket som internt verktøy. */
.salg-btn {
  padding: 0 10px; flex-shrink: 0;
  border-color: color-mix(in srgb, var(--blue) 45%, var(--border));
  color: var(--blue);
}
.salg-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.salg-btn svg { width: 16px; height: 16px; margin: 0; }

.salg-modal { width: min(760px, 94vw); max-height: 88vh; overflow: auto; }

/* Seksjonsoverskrift med eget ikon. Ikonene ligger som maskede data-URI-er her
   (ÉN kilde) — markupen `<div class="salg-seksjon ik-…"><span class="salg-ikon">`
   bygges både av NoraSalg.pakkeHtml() i salg.js og analysePakkeHtml() i
   analysis.php. Maske + background-color gjør at ikonet følger temafargen. */
.salg-seksjon {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--text); margin: 26px 0 12px;
  border-top: 1px solid var(--border); padding-top: 18px;
}
.salg-seksjon:first-child { margin-top: 4px; padding-top: 0; border-top: 0; }
.salg-ikon {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent-light); display: grid; place-items: center;
}
.salg-ikon::before {
  content: ''; width: 16px; height: 16px; background-color: var(--accent);
  -webkit-mask: var(--salg-ikon) center / contain no-repeat;
  mask: var(--salg-ikon) center / contain no-repeat;
}
/* Selskapet — bygning */
.ik-selskap { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3Cpath d='M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E"); }
/* Hvorfor vi treffer dem — blink */
.ik-treff { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
/* Produkter å vise fram — eske */
.ik-produkt { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E"); }
/* E-postutkast — konvolutt */
.ik-epost { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a2 2 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
/* Segmenter de bør kjøre — filtertrakt */
.ik-segment { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3H2l8 9.46V19l4 2v-8.54Z'/%3E%3C/svg%3E"); }
/* Innvendinger og svar — replikker */
.ik-innvending { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2Z'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1'/%3E%3C/svg%3E"); }
/* — Ikoner under her brukes av «Snakk med utvalg» (kildelisten + seksjonene i
     selskapskortene, SEKSJON_IKON i snakk.js) — samme maskemekanikk. — */
/* Nettsider — globus */
.ik-nettside { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
/* Regnskap — søylediagram */
.ik-regnskap { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 17v-5'/%3E%3Cpath d='M13 17V8'/%3E%3Cpath d='M18 17V5'/%3E%3C/svg%3E"); }
/* Stillinger — koffert */
.ik-stilling { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
/* Nyheter/hendelser — avis */
.ik-nyhet { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0V9'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Cpath d='M10 6h8v4h-8z'/%3E%3C/svg%3E"); }
/* Teknologi — prosessor */
.ik-tech { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 15h3M1 9h3M1 15h3'/%3E%3C/svg%3E"); }
/* Ledelse og kontakter — person med hake */
.ik-ledelse { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='m17 11 2 2 4-4'/%3E%3C/svg%3E"); }
/* Eiere — kakediagram */
.ik-eier { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.21 15.89A10 10 0 1 1 8 2.83'/%3E%3Cpath d='M22 12A10 10 0 0 0 12 2v10z'/%3E%3C/svg%3E"); }
/* Avdelinger/konsern — forgrening */
.ik-avdeling { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v12'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M18 9a9 9 0 0 1-9 9'/%3E%3C/svg%3E"); }
/* Marked — trendlinje */
.ik-marked { --salg-ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m23 6-9.5 9.5-5-5L1 18'/%3E%3Cpath d='M17 6h6v6'/%3E%3C/svg%3E"); }
.salg-avsnitt { font-size: 13px; line-height: 1.6; color: var(--text); }
.salg-liste { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--text); }
.salg-liste li { margin-bottom: 5px; }

.salg-epost {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px; background: var(--surface);
}
.salg-epost-topp {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 8px;
}
.salg-epost-topp .btn { padding: 3px 12px; font-size: 12px; }
.salg-emne { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.salg-emne span { font-weight: 400; color: var(--text-tertiary); }
/* E-postteksten skal kunne merkes og kopieres som den står */
.salg-tekst {
  white-space: pre-wrap; font-size: 13px; line-height: 1.65;
  color: var(--text-secondary); user-select: text;
}
.salg-fyll {
  font-size: 12px; line-height: 1.5; color: var(--text-secondary);
  margin-top: 10px; padding: 7px 10px; border-radius: 8px;
  background: var(--accent-light);
}
.salg-innv { padding: 8px 0; border-bottom: 1px solid var(--border); }
.salg-innv:last-child { border-bottom: 0; }
.salg-innv-q { font-size: 13px; font-weight: 600; font-style: italic; }
.salg-innv-a { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin-top: 3px; }
.salg-fot { font-size: 11.5px; color: var(--text-tertiary); margin-top: 16px; }
@media (max-width: 640px) {
  .salg-epost-topp { flex-direction: column; align-items: flex-start; }
}

/* ============ Abonnement + kvote (Innstillinger) ============ */
.kvote-rad { margin-bottom: 12px; }
.kvote-topp {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--text-secondary); margin-bottom: 5px;
}
.kvote-topp span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.kvote-bar {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.kvote-fyll {
  height: 100%; border-radius: 99px; background: var(--accent);
  transition: width .3s ease;
}
.kvote-fyll.kvote-full { background: #c0392b; }

/* Forbruksdropdownen i topbaren (NoraPlanMeny, assets/js/plan.js) */
.plan-drop { width: min(320px, calc(100vw - 20px)); padding: 10px 12px; }
.plan-drop .kvote-rad { margin-bottom: 9px; }
.plan-drop .theme-drop-label { padding-left: 0; }
.plan-drop .user-drop-head { padding: 2px 0 8px; }
.plan-mnd-tabell {
  max-height: 180px; overflow-y: auto; margin: 6px 0 2px;
  border: 1px solid var(--border-light); border-radius: 8px;
}
.plan-mnd-tabell table { width: 100%; border-collapse: collapse; font-size: 12px; }
.plan-mnd-tabell th, .plan-mnd-tabell td {
  padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums;
}
.plan-mnd-tabell th:first-child, .plan-mnd-tabell td:first-child { text-align: left; }
.plan-mnd-tabell thead th {
  position: sticky; top: 0; background: var(--surface);
  color: var(--text-tertiary); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em;
}
.plan-mnd-tabell tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--surface-hover) 40%, transparent); }
.plan-periode-velg { margin: 8px 0 2px; }
.plan-periode-velg select {
  width: 100%; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 12.5px;
}

/* Kvote-chip — «X av Y brukt denne måneden» i jakt-/AI-modalene og fanene */
.kvote-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 99px; font-size: 12px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--text-secondary);
}
.kvote-chip b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Vis-popupen (NoraReveal) — skjult selskap → 1 visning */
.vis-modal { width: min(400px, 94vw); }
.vis-modal .vis-kvote, .vis-modal .vis-advarsel { margin: 10px 0 2px; }

/* Team-kortet: invitasjonsskjema + ventende invitasjoner */
.team-invite-form { display: flex; gap: 8px; margin-top: 12px; }
.team-invite-form .input { flex: 1; min-width: 0; }
.team-inv-handlinger { display: flex; gap: 12px; align-items: center; font-size: 12.5px; }
.team-inv-slett { color: #c0392b; }

/* ================================================================
   NoraCRM-eksport (NoraCrm, assets/js/noracrm.js) — modalen med
   tilkobling, framdrift og oppsummering
   ================================================================ */
.crm-modal { width: min(560px, 94vw); max-height: 88vh; overflow: auto; }

.crm-info, .crm-status {
  margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary);
}
.crm-tags { margin-top: 12px; }
.crm-tags .auth-label { display: block; margin-bottom: 6px; }
.crm-tag-boks {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 6px 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; cursor: text;
  transition: all .15s;
}
.crm-tag-boks:focus-within { border-color: var(--accent); background: var(--surface); }
.crm-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px 2px 9px; border-radius: 999px;
  font-size: 12.5px; white-space: nowrap;
  background: var(--surface-alt, var(--border)); color: var(--text);
  border: 1px solid var(--border);
}
.crm-tag-fjern {
  border: 0; background: none; color: var(--text-secondary); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 2px;
}
.crm-tag-fjern:hover { color: var(--text); }
.crm-tag-input {
  flex: 1; min-width: 150px; border: 0; outline: none; background: none;
  font-family: inherit; font-size: 13.5px; color: var(--text); padding: 4px 2px;
}
.crm-tag-input::placeholder { color: var(--text-tertiary); }

.crm-koblet { margin-top: 10px; font-size: 12.5px; color: var(--text-secondary); }
.crm-koblet::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.crm-varsel {
  margin-top: 10px; padding: 9px 12px; border-radius: 6px;
  font-size: 12.5px; line-height: 1.45;
  background: var(--surface-alt, var(--border)); color: var(--text-secondary);
  border-left: 3px solid var(--text-tertiary);
}

.crm-prog {
  margin-top: 14px; height: 6px; border-radius: 3px;
  background: var(--border); overflow: hidden;
}
.crm-prog-fill {
  height: 100%; border-radius: 3px; background: var(--accent);
  transition: width .3s ease;
}

.crm-sum { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.crm-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.crm-sum span { color: var(--text-secondary); }
.crm-sum strong { font-variant-numeric: tabular-nums; }

/* ================================================================
   Kontaktjakt (NoraJakt, assets/js/jakt.js) — modalen med oppsett,
   framdrift, aktive tråder og resultatliste
   ================================================================ */
.jakt-modal { width: min(720px, 94vw); max-height: 88vh; overflow: auto; }

.jakt-sp { font-size: 13px; font-weight: 600; margin: 14px 0 8px; }
.jakt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jakt-chip {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); border-radius: 999px; padding: 6px 14px;
  font-size: 12.5px; font-family: inherit; cursor: pointer;
}
.jakt-chip:hover { border-color: var(--accent); color: var(--text-primary); }
.jakt-chip.aktiv {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.jakt-egen { margin-top: 10px; }
.jakt-forrige { margin-top: 14px; font-size: 12.5px; }

.jakt-topp { margin-top: 12px; }
.jakt-prog {
  height: 6px; border-radius: 3px; background: var(--border); overflow: hidden;
}
.jakt-prog-fill {
  height: 100%; border-radius: 3px; background: var(--accent);
  transition: width .4s ease;
}
.jakt-status { margin-top: 8px; font-size: 12.5px; color: var(--text-secondary); }

/* Feilfelt i jaktmodalen — teksten er alltid den brukervendte fra serveren,
   aldri AI-leverandørens rå melding. Stopp-varianten (tjenesten er nede for
   oss) skal være umulig å overse. */
.jakt-varsel {
  margin-top: 10px; padding: 9px 12px; border-radius: 6px;
  font-size: 12.5px; line-height: 1.45;
  background: var(--surface-alt, var(--border)); color: var(--text-secondary);
  border-left: 3px solid var(--text-tertiary);
}
.jakt-varsel-stopp {
  color: var(--red, #c0392b); border-left-color: var(--red, #c0392b);
  font-weight: 500;
}

.jakt-traader { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.jakt-traad {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  color: var(--text-secondary); min-width: 0;
}
.jakt-fase {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; border-radius: 4px; padding: 1px 6px;
  background: var(--surface-alt, var(--border)); color: var(--text-tertiary);
}
.jakt-fase-ai { background: var(--accent); color: #fff; }
.jakt-traad-navn { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.jakt-traad-side { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-tertiary); font-family: var(--mono, monospace); font-size: 11px; }

.jakt-resultater { margin-top: 14px; max-height: 44vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.jakt-res { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.jakt-res-hode { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jakt-res-navn { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jakt-res-sted { color: var(--text-tertiary); font-size: 12px; }
.jakt-res-badge {
  margin-left: auto; flex: 0 0 auto; min-width: 22px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; padding: 1px 7px;
}
.jakt-res-badge.jakt-res-null { background: var(--border); color: var(--text-tertiary); }
.jakt-kontakt {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  font-size: 12.5px; margin-top: 6px;
}
.jakt-k-navn { font-weight: 600; }
.jakt-k-tittel { color: var(--text-secondary); }
.jakt-k-epost, .jakt-k-li { color: var(--accent); text-decoration: none; }
.jakt-k-epost:hover, .jakt-k-li:hover { text-decoration: underline; }
.jakt-k-tlf { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.jakt-res-feil { margin-top: 5px; font-size: 12px; color: var(--text-tertiary); }

/* ================================================================
   NoraUtvalg (assets/js/utvalg.js) — checkbox i produktenes
   trefflister + flytende handlingslinje for merkede selskaper
   ================================================================ */
/* Checkboxen skal stå til VENSTRE for firmanavnet (første celle har
   block-innhold som .co-name — float lar navnet legge seg ved siden av) */
.uv-check { float: left; padding: 0; margin: 2px 10px 0 0; }
th .uv-check.uv-check-alle { float: none; margin: 0 8px 0 0; vertical-align: middle; }
.uv-bar {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 110; display: none; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 12px 10px 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  max-width: 94vw;
}
.uv-bar.open { display: flex; animation: modalIn .2s ease; }
.uv-antall { font-size: 13px; font-weight: 600; white-space: nowrap; }
.uv-lukk {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent; color: var(--text-tertiary);
  cursor: pointer;
}
.uv-lukk:hover { background: var(--border); color: var(--text-primary); }
.uv-lukk svg { width: 14px; height: 14px; }

/* Kontaktjakter-fanen (NoraJakter) — kilde- og statusbadges i jaktlista */
.jkt-kilde {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
  background: var(--border); color: var(--text-secondary);
}
.jkt-kilde-firma { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.jkt-kilde-bi { background: color-mix(in srgb, var(--blue, #3b6ea5) 14%, transparent); color: var(--blue, #3b6ea5); }
.jkt-beskrivelse {
  max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-secondary); font-size: 12.5px;
}
.jkt-status { font-size: 12px; font-weight: 600; }
.jkt-status-kjorer, .jkt-status-ny { color: var(--accent); }
.jkt-status-feil, .jkt-status-avbrutt { color: var(--red, #c0392b); }
.jkt-status-ok { color: var(--text-secondary); }

/* ================================================================
   «Snakk med utvalg» (#snakkModal, NoraSnakk — assets/js/snakk.js).
   Gjenbruker .jakt-prog/.jakt-traader/.jakt-varsel/.jakt-chip/.jakt-kontakt,
   .salg-seksjon/.salg-ikon (+ .ik-*-ikonene over), .kvote-chip og .subtabs —
   klassene her er bare det snakk-spesifikke.
   ================================================================ */
.snakk-modal { width: min(860px, 94vw); max-height: 90vh; overflow: auto; }

/* Spørsmålet etter sending — grått og i kursiv over framdriften */
.snakk-q {
  font-size: 13px; font-style: italic; color: var(--text-tertiary);
  line-height: 1.5; margin-bottom: 12px; white-space: pre-wrap;
}

/* Shimmer over hovedbaren mens samtalen kjører */
.jakt-prog-fill.snakk-stripe {
  background-image: linear-gradient(105deg, transparent 30%,
    rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: snakkStripe 1.6s linear infinite;
}

/* Kildelisten: én rad per valgt kilde, staggeret inn når planen lander */
.snakk-kilder { margin: 14px 0 6px; }
.snakk-kilde {
  display: grid; grid-template-columns: 28px minmax(110px, max-content) 1fr auto;
  align-items: center; gap: 10px; padding: 6px 0;
  animation: snakkInn 0.35s ease backwards;
  animation-delay: calc(var(--i, 0) * 120ms);
}
.snakk-kilde-navn { font-size: 13px; font-weight: 600; color: var(--text); }
.snakk-kbar {
  height: 6px; border-radius: 3px; overflow: hidden;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
/* Fyllet animeres MOT målet (JS setter transition-duration tilfeldig 1–3 s
   per kilde) og har en lysende sveip i loop så baren lever mens den venter. */
.snakk-kbar-fyll {
  height: 100%; border-radius: 3px; background: var(--accent);
  width: 0; transition: width 1.5s cubic-bezier(0.25, 0.6, 0.35, 1);
  position: relative; overflow: hidden;
}
.snakk-kbar-fyll::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 25%,
    rgba(255, 255, 255, 0.5) 50%, transparent 75%);
  background-size: 220% 100%;
  animation: snakkStripe 1.4s linear infinite;
}
.snakk-kilde.klar .snakk-kbar-fyll::after { animation: none; opacity: 0; }
.snakk-kinfo {
  font-size: 12px; color: var(--text-secondary);
  white-space: nowrap; text-align: right; min-width: 64px;
}
/* Ferdig kilde: ikon-ruta fylles med accent, symbolet blir hvitt */
.snakk-kilde.klar .salg-ikon { background: var(--accent); }
.snakk-kilde.klar .salg-ikon::before { background-color: #fff; }
.snakk-kilde.feilet .snakk-kinfo { color: var(--red, #c0392b); }

/* «Svaret bygges nå» — syntese-fasen */
.snakk-bygger {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 34px 16px; text-align: center;
  animation: snakkPuls 1.6s ease-in-out infinite;
}
.snakk-bygger b { font-size: 14px; }
.snakk-bygger span { font-size: 12.5px; color: var(--text-secondary); max-width: 420px; }

/* «Nora skriver …» — det streamede sammendraget vokser fram i syntese-fasen */
.snakk-skriver-hode {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; margin: 16px 0 8px; color: var(--text);
}
.snakk-skriver {
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  padding: 12px 14px; max-height: 240px; overflow: auto;
  font-size: 13px; line-height: 1.6; color: var(--text-secondary);
  white-space: pre-wrap; animation: snakkInn 0.35s ease;
}
.snakk-markor {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: var(--accent); vertical-align: text-bottom;
  animation: snakkMarkor 0.9s steps(2) infinite;
}

/* Kildehenvisning per seksjon («Kilde: nettsiden ↗») — dempet, aldri i veien */
.snakk-kildeRef {
  font-size: 11px; font-weight: 400; color: var(--text-tertiary);
  margin-left: auto; padding-left: 10px; white-space: nowrap;
  text-decoration: none;
}
a.snakk-kildeRef:hover { color: var(--accent); }
.snakk-kildeRef-linje { text-align: right; margin: 8px 0 2px; display: flex; justify-content: flex-end; }

/* Resultatet: faner + oversikt + selskapskort */
.snakk-tabs { margin: 4px 0 14px; }
.snakk-kortliste { max-height: 56vh; overflow: auto; padding-right: 4px; }
.snakk-kort {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; background: var(--surface);
}
.snakk-kort-hode { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.snakk-kort-navn { font-size: 14px; font-weight: 700; color: var(--text); }
.snakk-kort-org { font-size: 12px; color: var(--text-tertiary); }
.snakk-kort-ingress {
  font-size: 13px; line-height: 1.55; color: var(--text-secondary); margin-top: 4px;
}
.snakk-kort-feil { font-size: 12.5px; color: var(--red, #c0392b); margin-top: 6px; }
/* Seksjonsoverskriftene i kortene er en krympet .salg-seksjon */
.snakk-kort .salg-seksjon { margin: 14px 0 8px; padding-top: 12px; font-size: 13.5px; gap: 8px; }
.snakk-kort .salg-ikon { width: 22px; height: 22px; border-radius: 7px; }
.snakk-kort .salg-ikon::before { width: 13px; height: 13px; }

/* Seksjonstypene */
.snakk-prewrap { white-space: pre-wrap; }
.snakk-fakta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 13px;
}
.snakk-fakta-par { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.snakk-fakta-navn { color: var(--text-secondary); }
.snakk-fakta-verdi { font-weight: 600; color: var(--text); white-space: nowrap; }
.snakk-fakta-sub { font-size: 11.5px; color: var(--text-tertiary); }
.snakk-tabell-wrap { overflow-x: auto; }
.snakk-tabell-wrap table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.snakk-tabell-wrap th {
  text-align: left; padding: 5px 10px 5px 0; color: var(--text-secondary);
  font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.snakk-tabell-wrap td { padding: 5px 10px 5px 0; border-bottom: 1px solid var(--border); }
.snakk-vinkel {
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  background: var(--accent-light); padding: 10px 12px;
  font-size: 13px; line-height: 1.55; color: var(--text); white-space: pre-wrap;
}
.snakk-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.snakk-orgchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.snakk-orgchip {
  font-size: 11.5px; padding: 2px 8px; border-radius: 20px; cursor: pointer;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.snakk-orgchip:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* Funn/anbefalinger i Oversikt-fanen */
.snakk-funn { margin-bottom: 12px; }
.snakk-funn-tittel { font-size: 13px; font-weight: 600; color: var(--text); }
.snakk-funn-tekst { font-size: 13px; line-height: 1.55; color: var(--text-secondary); white-space: pre-wrap; }

/* Oppfølgingsraden under svaret + historikk-chips */
.snakk-oppfolg { display: flex; gap: 8px; margin-top: 16px; }
.snakk-oppfolg .input { flex: 1; }
.snakk-hist-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }

/* Fotlinja: kilder brukt + AI-forbehold */
.snakk-fot {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-tertiary); line-height: 1.6;
}

@keyframes snakkInn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes snakkPuls {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes snakkStripe {
  from { background-position: 200% 0; }
  to { background-position: -20% 0; }
}
@keyframes snakkMarkor {
  to { opacity: 0; }
}

/* Utvalgsdykk-lista (Nora Dypdykk): kilde-miniikoner per rad */
.dykk-kilder { white-space: nowrap; }
.dykk-kilder .salg-ikon {
  display: inline-grid; width: 20px; height: 20px; border-radius: 6px;
  margin-right: 4px; vertical-align: middle;
}
.dykk-kilder .salg-ikon::before { width: 12px; height: 12px; }

@media (max-width: 640px) {
  .snakk-fakta { grid-template-columns: 1fr; }
  .snakk-kilde { grid-template-columns: 24px 1fr; }
  .snakk-kilde .snakk-kbar { grid-column: 1 / -1; }
  .snakk-kilde .snakk-kinfo { grid-column: 1 / -1; text-align: left; }
}
