/* BOB - Innhald-sida (DECISIONS 67). Everything is scoped under .ih and uses the shell's variables from bob.css
 * (--bg --panel --text --muted --accent --good --warn --bad --radius); the fallbacks only matter if bob.css is missing.
 * Built for a 390 px phone first: one column, big tap targets, no horizontal scroll. */
.ih {
  --ih-panel: var(--panel, #131a22);
  --ih-line: var(--line, rgba(143, 161, 184, .22));
  --ih-text: var(--text, #e8f0ff);
  --ih-muted: var(--muted, #8fa1b8);
  --ih-accent: var(--accent, #6cb4ff);
  --ih-good: var(--good, #4fd1a5);
  --ih-warn: var(--warn, #ffc857);
  --ih-bad: var(--bad, #ff6b6b);
  --ih-radius: var(--radius, 14px);
  color: var(--ih-text);
  padding: 4px 0 24px;
  max-width: 720px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}
.ih *, .ih *::before, .ih *::after { box-sizing: border-box; }
.ih a { color: var(--ih-accent); text-decoration: none; }

.ih-topp { padding: 14px 0 8px; }
.ih-topp h1 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: .5px; }
.ih-undertittel { margin: 2px 0 0; color: var(--ih-muted); font-size: 15px; }
.ih-handle { text-transform: none; letter-spacing: 0; }
.ih-over { margin: 0 0 2px; color: var(--ih-muted); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.ih-alder { margin: 8px 0 0; color: var(--ih-muted); font-size: 13px; }
.ih-alder.ih-varsel { color: var(--ih-warn); }
.ih-liten { font-size: 13px; color: var(--ih-muted); }
.ih-h2 { margin: 0 0 10px; font-size: 13px; letter-spacing: 1.5px; color: var(--ih-muted); text-transform: uppercase; font-weight: 600; }
.ih-h2-kanalar { margin: 22px 0 10px; }
.ih-boks { background: var(--ih-panel); border: 1px solid var(--ih-line); border-radius: var(--ih-radius); padding: 14px; margin: 0 0 12px; }

/* the audit line: the one thing that decides whether anything is public */
.ih-audit { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: var(--ih-radius);
  background: var(--ih-panel); border: 1px solid var(--ih-warn);
  background: color-mix(in srgb, var(--ih-warn) 12%, var(--ih-panel)); border: 1px solid color-mix(in srgb, var(--ih-warn) 45%, transparent); }
.ih-audit b { display: block; font-size: 16px; line-height: 1.3; }
.ih-audit-status { display: block; margin-top: 4px; font-size: 13px; color: var(--ih-muted); }
.ih-audit-merke { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--ih-warn);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ih-warn) 25%, transparent); }
.ih-audit-ok { background: color-mix(in srgb, var(--ih-good) 10%, var(--ih-panel)); border-color: color-mix(in srgb, var(--ih-good) 45%, transparent); }
.ih-audit-ok .ih-audit-merke { background: var(--ih-good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ih-good) 25%, transparent); }
.ih-audit-liten b { font-size: 14px; }

/* numbers: two columns on a phone, three when there is room */
.ih-rutenett { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
@media (min-width: 560px) { .ih-rutenett { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ih-rute { background: var(--ih-panel); border: 1px solid var(--ih-line); border-radius: var(--ih-radius); padding: 12px; min-height: 76px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.ih-rute-tal { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ih-rute-namn { font-size: 13px; color: var(--ih-muted); line-height: 1.25; }
.ih-av { color: var(--ih-muted); font-weight: 500; font-size: 17px; }
.ih-tal { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left;
  font-variant-numeric: tabular-nums; }
.ih-tal:focus-visible { outline: 2px solid var(--ih-accent); outline-offset: 2px; border-radius: 4px; }
.ih-tal.ih-ukjend { color: var(--ih-warn); font-style: italic; font-size: .8em; font-weight: 600; }

.ih-dag { margin: 0 0 12px; font-size: 14px; color: var(--ih-muted); }
.ih-dag b { color: var(--ih-text); font-weight: 600; }
.ih-notat { list-style: none; margin: 0 0 12px; padding: 0; }
.ih-notat li { font-size: 13px; color: var(--ih-muted); padding: 6px 0 6px 12px; border-left: 3px solid var(--ih-line); margin: 0 0 6px; }

/* status colours, shared by chips, dots and card edges */
.ih-chip { display: inline-block; white-space: nowrap; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3;
  border: 1px solid currentColor; }
.ih-c-ingen { color: var(--ih-muted); }
.ih-c-ventar { color: var(--ih-warn); }
.ih-c-klar { color: var(--ih-accent); }
.ih-c-privat { color: var(--ih-accent); background: color-mix(in srgb, var(--ih-accent) 16%, transparent); }
.ih-c-offentleg { color: var(--ih-good); background: color-mix(in srgb, var(--ih-good) 14%, transparent); }
.ih-c-feil { color: var(--ih-bad); }

.ih-prikkar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.ih-prikkar .ih-prikk { width: 100%; height: auto; aspect-ratio: 1; max-width: 26px; }
.ih-prikk { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; background: transparent; }
.ih-prikk.ih-c-privat, .ih-prikk.ih-c-offentleg, .ih-prikk.ih-c-klar { background: currentColor; }
.ih-forklaring { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ih-forkl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ih-muted); }

/* channel cards */
.ih-kortliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .ih-kortliste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ih-kort { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "nr namn chip" "nr meta meta" "nr klipp klipp";
  column-gap: 10px; row-gap: 3px; align-items: center; min-height: 72px; padding: 12px 30px 12px 8px; color: var(--ih-text) !important;
  background: var(--ih-panel); border: 1px solid var(--ih-line); border-left: 4px solid var(--ih-muted); border-radius: var(--ih-radius);
  -webkit-tap-highlight-color: transparent; }
.ih-kort:active { transform: scale(.99); filter: brightness(1.15); }
.ih-kort.ih-k-ventar { border-left-color: var(--ih-warn); }
.ih-kort.ih-k-klar, .ih-kort.ih-k-privat { border-left-color: var(--ih-accent); }
.ih-kort.ih-k-offentleg { border-left-color: var(--ih-good); }
.ih-nr { grid-area: nr; align-self: center; font-size: 22px; font-weight: 700; color: var(--ih-muted); font-variant-numeric: tabular-nums; text-align: center; }
.ih-kort-namn { grid-area: namn; font-size: 16px; line-height: 1.25; min-width: 0; }
.ih-kort-chip { grid-area: chip; justify-self: end; }
.ih-kort-meta { grid-area: meta; min-width: 0; }
.ih-klipptal { grid-area: klipp; font-variant-numeric: tabular-nums; min-width: 0; }
.ih-par { white-space: nowrap; }
.ih-pil { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--ih-muted); font-size: 22px; line-height: 1; }

/* the next step for Sondre, at the top of the list */
.ih-neste-boks { border-left: 4px solid var(--ih-accent); }
.ih-neste-boks.ih-neste-ferdig { border-left-color: var(--ih-good); }
.ih-neste-tittel { display: block; font-size: 18px; line-height: 1.3; }
.ih-neste-tal { color: var(--ih-muted); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.ih-mal { display: block; height: 8px; margin: 10px 0 4px; border-radius: 999px; background: var(--ih-line); overflow: hidden; }
.ih-mal span { display: block; height: 100%; min-width: 0; border-radius: 999px; background: var(--ih-accent); }
.ih-neste-boks p { margin: 8px 0 0; }

/* one channel */
.ih-tilbake { display: inline-block; padding: 12px 0 0; font-size: 16px; min-height: 44px; }
.ih-status-linje { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ih-fakta { margin: 12px 0; padding: 4px 14px; background: var(--ih-panel); border: 1px solid var(--ih-line); border-radius: var(--ih-radius); }
.ih-fakta-rad { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ih-line); }
.ih-fakta-rad:first-child { border-top: 0; }
.ih-fakta dt { color: var(--ih-muted); }
.ih-fakta dd { margin: 0; text-align: right; }
.ih-tom { color: var(--ih-muted); font-style: italic; }

.ih-steg-sum { margin: -4px 0 10px; }
.ih-steg { list-style: none; margin: 0; padding: 0; }
.ih-steg li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ih-line); }
.ih-steg li:first-child { border-top: 0; }
.ih-steg b { display: block; font-size: 15px; }
.ih-steg-tekst { display: block; font-size: 14px; color: var(--ih-muted); margin-top: 2px; }
.ih-steg-merke { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; border: 2px solid var(--ih-line); color: var(--ih-muted); }
.ih-steg-ferdig .ih-steg-merke { border-color: var(--ih-good); background: var(--ih-good); color: var(--bg, #0b0f14); }
.ih-steg-ferdig b { color: var(--ih-muted); font-weight: 500; }
.ih-steg-neste .ih-steg-merke { border-color: var(--ih-accent); color: var(--ih-accent); }
.ih-steg-neste .ih-steg-tekst { color: var(--ih-text); }
.ih-neste { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: 2px;
  color: var(--ih-accent); border: 1px solid var(--ih-accent); }

.ih-klippliste { list-style: none; margin: 0; padding: 0; }
.ih-klipp { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid var(--ih-line); }
.ih-klipp:first-child { border-top: 0; padding-top: 0; }
.ih-klipp-topp { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ih-klipp-topp b { font-size: 15px; line-height: 1.3; }
.ih-grunn { font-style: italic; }
.ih-yt { align-self: flex-start; margin-top: 4px; padding: 8px 0; font-weight: 600; }
.ih-tom-melding { margin: 0; color: var(--ih-muted); }

.ih-bla { display: flex; justify-content: space-between; margin: 16px 0 0; }
.ih-bla a { display: inline-block; padding: 12px 4px; min-height: 44px; font-size: 16px; }

.ih-varsel-boks { border-left: 4px solid var(--ih-warn); margin-top: 14px; }
.ih-drift-ok { border-left: 4px solid var(--ih-good); margin-top: 14px; }
.ih-lastar { color: var(--ih-muted); padding: 40px 0; text-align: center; }

/* Flyten (DECISIONS 75): one strip with five stages, one mark each; the colours say who holds the channel */
.ih-skjult { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ih-flyt { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.ih-flyt li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 6px 0 2px; text-align: center; }
.ih-flyt li + li::before { content: ""; position: absolute; left: -50%; right: 50%; top: 18px; height: 2px; background: var(--ih-line); }
.ih-flyt li.ih-f-ok + li::before { background: var(--ih-good); }
.ih-flyt .ih-f-merke { position: relative; z-index: 1; }
.ih-flyt .ih-f-namn { font-size: 11px; line-height: 1.15; color: var(--ih-muted); overflow-wrap: anywhere; }
.ih-flyt .ih-f-no .ih-f-namn { color: var(--ih-text); font-weight: 650; }
.ih-f-merke { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; flex: 0 0 auto;
  background: var(--ih-panel); color: var(--ih-muted); border: 2px solid var(--ih-line); }
.ih-f-ok .ih-f-merke { background: var(--ih-good); border-color: var(--ih-good); color: var(--bg, #0b0f14); }
.ih-f-neste .ih-f-merke { border-color: var(--ih-accent); color: var(--ih-accent); }
.ih-f-ventar .ih-f-merke { background: var(--ih-warn); border-color: var(--ih-warn); color: #2a1d00; }
.ih-f-feil .ih-f-merke { background: color-mix(in srgb, var(--ih-bad) 18%, transparent); border-color: var(--ih-bad); color: var(--ih-bad); }
.ih-f-ukjend .ih-f-merke { border-style: dashed; }
.ih-f-tekst { margin: 6px 0 0; font-size: 15px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ih-accent) 8%, var(--ih-panel)); border-left: 4px solid var(--ih-accent); }
.ih-f-tekst.ih-f-t-ventar { border-left-color: var(--ih-warn); background: color-mix(in srgb, var(--ih-warn) 10%, var(--ih-panel)); }
.ih-f-tekst.ih-f-t-feil { border-left-color: var(--ih-bad); }
.ih-f-tekst.ih-f-t-ok { border-left-color: var(--ih-good); }
.ih-f-tekst.ih-f-t-ukjend { border-left-color: var(--ih-muted); }
.ih-f-deg-liste { margin: 6px 0 0; padding-left: 18px; }
.ih-f-deg-liste li { margin: 4px 0; }
.ih-f-detaljar { margin-top: 8px; font-size: 13px; color: var(--ih-muted); }
.ih-f-detaljar summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; color: var(--ih-accent); }
.ih-f-detaljar summary::-webkit-details-marker { display: none; }
.ih-f-detaljar summary::before { content: "›"; display: inline-block; transition: transform .15s; }
.ih-f-detaljar[open] summary::before { transform: rotate(90deg); }
.ih-f-liste { list-style: none; margin: 0; padding: 0; }
.ih-f-liste li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ih-line); font-size: 14px; color: var(--ih-text); }
.ih-f-liste li.ih-f-seinare { color: var(--ih-muted); }
.ih-f-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  color: var(--ih-muted); border: 1px solid var(--ih-line); }
.ih-f-chip.ih-f-ok { color: var(--ih-good); border-color: color-mix(in srgb, var(--ih-good) 45%, transparent); }
.ih-f-chip.ih-f-neste { color: var(--ih-accent); border-color: color-mix(in srgb, var(--ih-accent) 45%, transparent); }
.ih-f-chip.ih-f-ventar { color: var(--ih-warn); border-color: color-mix(in srgb, var(--ih-warn) 55%, transparent); }
.ih-f-chip.ih-f-feil { color: var(--ih-bad); border-color: color-mix(in srgb, var(--ih-bad) 45%, transparent); }
.ih-kort-steg { grid-column: 2 / -1; min-width: 0; }
.ih-status-linje .ih-f-chip { margin-left: 2px; }

/* channels per stage, at the top of the list: buttons that filter the cards */
.ih-f-total { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ih-f-tal { min-height: 56px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--ih-line); background: var(--ih-panel); color: var(--ih-text); font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; -webkit-tap-highlight-color: transparent; }
.ih-f-tal b { font-size: 20px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ih-f-tal span { font-size: 11px; color: var(--ih-muted); line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.ih-f-tal.ih-f-tom b { color: var(--ih-muted); font-weight: 500; }
.ih-f-tal.ih-f-vald { border-color: var(--ih-accent); background: color-mix(in srgb, var(--ih-accent) 15%, var(--ih-panel)); }
.ih-f-filter { margin: 10px 0 0; }
.ih-f-alle { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ih-line); background: var(--ih-panel); color: var(--ih-accent); font: inherit; font-size: 14px; cursor: pointer; }
.ih-flyt-total .ih-f-tekst { margin-top: 10px; }
@media (min-width: 560px) { .ih-f-total { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* the queue: thumbnail of the source video, the clip's title, creator, status and what has been done */
.ih-koliste { list-style: none; margin: 0; padding: 0; }
.ih-ko { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ih-line); align-items: flex-start; }
.ih-ko:first-child { border-top: 0; padding-top: 0; }
.ih-ko-bilete { flex: 0 0 auto; display: block; width: 96px; }
.ih-mini { display: block; width: 96px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--ih-line); }
.ih-mini-tom { display: grid; place-items: center; color: var(--ih-muted); font-size: 18px; }
.ih-ko-tekst { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ih-ko-tekst .ih-klipp-topp { flex-wrap: wrap; gap: 4px 10px; }
.ih-ko-tekst .ih-klipp-topp b { font-size: 15px; line-height: 1.3; min-width: 0; }
.ih-flyt .ih-f-namn { letter-spacing: -.2px; }

.ih-kjelder { margin: 20px 0 0; font-size: 13px; color: var(--ih-muted); }
.ih-kjelder summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.ih-kjelder ul { list-style: none; margin: 0; padding: 0; }
.ih-kjelder li { padding: 4px 0; border-top: 1px solid var(--ih-line); }
.ih-kjelder code { font-size: 12px; color: var(--ih-text); }
.ih-kjelde-ok { color: var(--ih-good); }
.ih-kjelde-manglar { color: var(--ih-muted); }
.ih-kjelde-feil { color: var(--ih-bad); }

/* DECISIONS 411: Vekstlaget */
.ih-vekstlag .ih-vekst-del { margin: 0.6rem 0; }
.ih-vekstlag .ih-vekst-del ul { margin: 0.3rem 0 0 1.1rem; padding: 0; }
.ih-vekstlag .ih-vekst-del li { margin: 0.15rem 0; }
/* DECISIONS 450: one short line each, the rest behind «Vis meir» */
.ih-vekstlag .ih-vekst-kort { margin: 0.2rem 0 0; }
.ih-vekstlag .ih-vekst-meir { margin-top: 0; }
.ih-vekstlag .ih-vekst-meir ul { margin: 0 0 0.3rem 1.1rem; }
.ih-dag p { margin: 0; }
.ih-dag .ih-f-detaljar { margin-top: 0; }
.ih-kanaldag .ih-sjef { display: inline-block; margin-top: 0.2rem; font-weight: 600; }   /* DECISIONS 463: «Sjefen: ...» under each channel line */
/* DECISIONS 468: the Partner Program watch - one compact row per channel, percent of the way */
.ih-pengar-tabell { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 8px; }
.ih-pengar-tabell th, .ih-pengar-tabell td { padding: 5px 4px; text-align: right; border-bottom: 1px solid var(--ih-line); white-space: nowrap; }
.ih-pengar-tabell th { color: var(--ih-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.ih-pengar-tabell th:first-child, .ih-pengar-tabell td:first-child { text-align: left; white-space: normal; }
.ih-pengar-tabell .ih-ukjend { color: var(--ih-muted); }
.ih-pengar-tabell tr.ih-pengar-naadd td { color: var(--ih-good); font-weight: 600; }
