@font-face { font-family: "Monument Grotesk"; src: url("fonts/ABCMonumentGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Monument Grotesk"; src: url("fonts/ABCMonumentGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Monument Grotesk"; src: url("fonts/ABCMonumentGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bradford"; src: url("fonts/BradfordLLWeb-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bradford"; src: url("fonts/BradfordLLWeb-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bradford"; src: url("fonts/BradfordLLWeb-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Evidi-palett (Brand Guide 2026) */
:root {
  --gutter: 1.1rem;
  --green-1: #1C4E50; --green-2: #466869; --green-3: #00AE79; --green-4: #C4FAE7; --green-5: #EFFEF8;
  --blue-1: #002981; --blue-3: #0172E2; --blue-4: #D2F2FF; --blue-5: #EBF7FE;
  --red-1: #821708; --red-3: #F97767; --red-4: #FFE0E0; --red-5: #FDF2F2;
  --yellow-1: #5C4300; --yellow-3: #FFC31A; --yellow-4: #FAF5CD; --yellow-5: #FBFAE7;
  --white: #FFFFFF;

  --bg: var(--green-5);
  --bg-elev: var(--white);
  --bg-soft: var(--green-4);
  --ink: var(--green-1);
  --ink-muted: var(--green-2);
  --accent: var(--green-1);
  --accent-2: var(--blue-3);
  --danger: var(--red-1);
  --line: rgba(28, 78, 80, 0.16);
  --radius: 14px;
  --shadow: 0 4px 16px rgba(28, 78, 80, 0.08);
  --nav-h: 68px;
  --top-h: 64px;
  --font-display: "Bradford", Georgia, serif;
  --font-body: "Monument Grotesk", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}

h1, h2, h3, .brand {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}

/* Keep the menu in the app layout, outside the scrolling feed. iOS can leave
   fixed footers and their touch targets displaced after dismissing the keyboard. */
.app-shell--viewport {
  position: relative;
  width: 100%;
  height: var(--app-viewport-height, 100dvh);
  min-height: 0;
  overflow: hidden;
}
.app-shell--viewport .app-topbar { flex-shrink: 0; }
.app-shell--viewport .app-main {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-bottom: 1.25rem;
}
.app-shell--viewport .bottom-nav {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  flex-shrink: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
body.viewer-open .app-shell--viewport .app-main { overflow: hidden; }

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  background: rgba(239, 254, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.55rem;
  color: var(--ink);
}

.brand-logo { height: 30px; width: auto; display: block; }

.topbar-meta {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.app-main {
  flex: 1;
  padding: 1rem var(--gutter) calc(var(--nav-h) + 1.25rem);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(720px, 100%);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-decoration: none !important;
  min-height: 48px;
}

.nav-item .nav-icon { font-size: 1.1rem; line-height: 1; }
.nav-item .nav-icon svg { display: block; }
.nav-item.active { color: var(--green-1); font-weight: 700; }
.nav-item.active .nav-icon { color: var(--green-3); }

.page-title {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  outline: none;
}

.page-title:focus { outline: none; }

.lede {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
}

.article-reading-time { margin: 0 0 1rem; }

.pub-heading, .pub-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.pub-heading .card-title, .pub-toolbar p, .pub-toolbar h2 { margin: 0; }
.pub-back-link { color: var(--blue-1); }
.pub-pulse, .pub-post-kind { display: inline-block; border-radius: 100px; padding: .25rem .65rem; font-size: .8rem; font-weight: 500; background: var(--green-5); color: var(--green-1); border: 1px solid var(--green-2); }
.pub-pulse-1 { background: var(--yellow-4); color: var(--yellow-1); border-color: var(--yellow-1); }
.pub-pulse-2 { background: var(--red-4); color: var(--red-1); border-color: var(--red-1); }
.pub-post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.pub-form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.pub-filter { display: grid; gap: .4rem; }
.pub-filter select { width: 100%; min-height: 44px; }
.pub-map { margin-top: .75rem; }
.pub-map-canvas { height: 330px; width: 100%; border-radius: var(--radius); z-index: 0; }
.pub-map-status { color: var(--red-1); }
.pub-map .pub-map-pin { display: grid; place-items: center; border-radius: 50%; }
.pub-map-pin span { width: 28px; height: 28px; border: 2px solid white; border-radius: 50%; background: var(--green-1); color: white; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--green-1); }
.pub-map .leaflet-bar a.leaflet-control-zoom-in, .pub-map .leaflet-bar a.leaflet-control-zoom-out { width: 44px; height: 44px; line-height: 44px; }
.pub-map :focus-visible, .pub-filter :focus-visible { outline: 3px solid var(--blue-1); outline-offset: 3px; }

.stack { display: grid; gap: 0.85rem; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}

.panel.highlight {
  border-color: var(--green-3);
  background: var(--green-4);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-2);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.muted { color: var(--ink-muted); }
.tiny { font-size: 0.85rem; }

.btn, button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--green-1);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
}

.btn:hover:not(:disabled) { background: var(--green-2); }

.btn.secondary {
  background: transparent;
  border-color: var(--green-1);
  color: var(--green-1);
}
.btn.secondary:hover:not(:disabled) { background: var(--green-4); }

.btn.danger {
  background: transparent;
  border-color: var(--red-1);
  color: var(--red-1);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.offline-save { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.offline-save .tiny { margin: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.list-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.list-link:hover .panel { border-color: var(--green-3); }

.form-grid { display: grid; gap: 0.75rem; }
.form-grid label, .form-grid .form-field { display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--ink-muted); }
.form-grid input, .form-grid textarea, .form-grid select, .pub-filter select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid input[type="checkbox"], .form-grid input[type="radio"] {
  width: 1.2rem;
  min-height: 0;
  height: 1.2rem;
  accent-color: var(--green-1);
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  font: inherit;
}

.empty-state, .error-state, .loading-state {
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.photo-feed img, .hero-photo, .home-photos .home-photo-main img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  max-height: 420px;
  background: var(--green-4);
}

/* Forside: stort + tre små i samme hvite ramme */
.home-photos { display: grid; gap: 0.55rem; }
.home-photo-main { display: block; }
.home-photo-main:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 2px; border-radius: 12px; }
.home-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.home-photo-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green-4);
}
.home-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-photo-thumb:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 2px; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--green-1);
  background: var(--green-4);
}

.person-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.program-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.program-row-body {
  flex: 1;
  min-width: 0;
}

.program-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.program-thumb-placeholder {
  border: 1px solid var(--line);
  background:
  var(--green-4);
}

.program-detail-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--green-4);
  display: block;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.markdown-body p { margin: 0 0 0.75rem; }
.markdown-body ul, .markdown-body ol { padding-left: 1.2rem; }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 1rem 0 0.4rem; font-size: 1.1rem; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body a { color: var(--accent-2); text-decoration: underline; }

/* Fagartikler leses nesten bare på mobil: luft, tydelige mellomtitler, bilder som får plass. */
.markdown-body.article-body {
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.markdown-body.article-body p { margin: 0 0 0.95rem; }
.markdown-body.article-body h2,
.markdown-body.article-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.markdown-body.article-body h2 { font-size: 1.45rem; margin: 1.35rem 0 0.45rem; }
.markdown-body.article-body h3 { font-size: 1.2rem; margin: 1.15rem 0 0.35rem; }
.markdown-body.article-body li { margin: 0.28rem 0; }
.markdown-body.article-body img,
.markdown-body.article-body video { max-width: 100%; height: auto; border-radius: 10px; }
.markdown-body.article-body pre { white-space: pre-wrap; }
.markdown-body.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.markdown-body.article-body th,
.markdown-body.article-body td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.alert {
  border-radius: var(--radius);
  border: 1px solid var(--yellow-3);
  background: var(--yellow-4);
  color: var(--yellow-1);
  padding: 0.9rem 1rem;
}

.admin-nav {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.admin-nav a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none !important;
}

#blazor-error-ui {
  background: var(--red-4);
  bottom: var(--nav-h);
  box-shadow: 0 -1px 8px rgba(28, 78, 80, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  color: var(--red-1);
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

/* Gruppearbeid */
.wk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.wk-badge { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--line); }
.wk-badge--draft { background: rgba(232, 184, 109, 0.14); border-color: rgba(232, 184, 109, 0.5); }
.wk-badge--done { background: rgba(61, 154, 139, 0.18); border-color: rgba(61, 154, 139, 0.6); }
.wk-members { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.wk-members li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 1.05rem; }
.wk-list { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.wk-steps { list-style: none; margin: 0.75rem 0 0; padding-left: 0; display: grid; gap: 0.5rem; font-size: 1.05rem; }
.wk-claim { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; margin: 0.4rem 0; }
.wk-text { white-space: pre-wrap; margin: 0.2rem 0 0; }
.wk-rich { margin: 0.35rem 0 0; }
.wk-rich > :first-child { margin-top: 0; }
.wk-rich > :last-child { margin-bottom: 0; }
.wk-rich-inline { font: inherit; }
.wk-rich-inline strong, .wk-rich-inline b { font-weight: 700; }
.wk-rich-inline em, .wk-rich-inline i { font-style: italic; }
.wk-rich-inline a { color: var(--accent-2); text-decoration: underline; }

/* Enkel rich text-editor (admin). Større trykkflater for mobil. */
.rte { display: grid; gap: 0.4rem; }
.rte--large .rte-toolbar {
  position: sticky;
  top: var(--top-h);
  z-index: 5;
}
.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--green-5, #f3f6f5);
}
.rte-btn {
  font: inherit;
  font-size: 0.9rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.rte-btn:hover { background: var(--green-4, #e4eeeb); }
.rte-btn:focus-visible { outline: 2px solid var(--green-3); outline-offset: 1px; }
.rte-btn-label--bold { font-weight: 700; }
.rte-btn-label--italic { font-style: italic; font-family: var(--font-body); }
.rte-surface {
  min-height: 120px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.65rem 0.75rem;
  font: inherit;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.rte-surface--compact { min-height: 72px; }
.rte-surface--large {
  min-height: max(22rem, 62dvh);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.rte-surface--large h2,
.rte-surface--large h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.rte-surface--large h2 { font-size: 1.45rem; margin: 1.1rem 0 0.4rem; }
.rte-surface--large h3 { font-size: 1.2rem; margin: 0.95rem 0 0.3rem; }
.rte-surface:focus {
  border-color: var(--green-3);
  outline: 2px solid var(--green-4);
}
.rte-surface:empty:before {
  content: attr(data-placeholder);
  color: var(--ink-muted);
  pointer-events: none;
}
.rte-surface ul, .rte-surface ol { margin: 0.35rem 0; padding-left: 1.2rem; }
.rte-surface p { margin: 0 0 0.55rem; }
.rte-surface p:last-child { margin-bottom: 0; }
.rte-surface a { color: var(--accent-2); }
.rte-meta { text-align: right; }
.wk-block { margin-top: 0.9rem; }
.wk-block-title { font-size: 0.85rem; margin: 0; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.wk-fields textarea { min-height: 96px; font-size: 1.05rem; }
.wk-timer-panel { text-align: center; }
.wk-timer-label { color: var(--ink-muted); font-size: 0.9rem; }
.wk-timer { font-family: var(--font-display); font-size: 3.6rem; line-height: 1.1; margin: 0.2rem 0 0.7rem; font-variant-numeric: tabular-nums; }
.wk-timer.is-done { color: var(--danger); }
.wk-reflection .wk-claim { font-size: 1.15rem; }
.wk-admin-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

@media (min-width: 800px) {
  .app-main { padding-top: 1.25rem; }
  .page-title { font-size: 2rem; }
}

:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 2px; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus, .search-box input:focus { border-color: var(--green-3); outline: 2px solid var(--green-4); }

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px dashed var(--green-3);
  border-radius: var(--radius);
  background: var(--green-5);
}
.admin-bar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-2);
  margin-right: auto;
}
.admin-bar .btn { min-height: 38px; padding: 0.35rem 0.85rem; font-size: 0.9rem; }

.confirm-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  background: var(--red-5);
  border: 1px solid var(--red-3);
  color: var(--red-1);
}
.confirm-row .btn { min-height: 38px; padding: 0.3rem 0.8rem; font-size: 0.9rem; }

.text-input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.comment-form { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.comment-form .text-input { flex: 1; min-height: 40px; padding: 0.4rem 0.6rem; }

.btn.small { min-height: 36px; padding: 0.3rem 0.7rem; font-size: 0.85rem; }
.form-grid label.check-row { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; }
.validation-message { color: var(--red-1); font-size: 0.85rem; }
.validation-errors { color: var(--red-1); font-size: 0.9rem; margin: 0; padding-left: 1.1rem; }
.table-scroll { overflow-x: auto; }
.import-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.import-table th, .import-table td { text-align: left; padding: 0.3rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.import-table tr.bad td { background: var(--red-5); }
.import-table tr.skip td { color: var(--ink-muted); }
.invite-link { width: 100%; font-size: 0.8rem; }
.password-set { gap: 0.4rem; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.password-set p { margin: 0; }
.password-set .text-input { font-family: ui-monospace, Consolas, monospace; }
.person-main { display: flex; gap: 0.85rem; align-items: center; color: inherit; text-decoration: none !important; flex: 1; min-width: 0; }
.section-title { font-size: 1.05rem; margin: 0; }
.pending-tag { color: var(--yellow-1); font-weight: 700; }
.search-box.spaced { margin-bottom: 1rem; }
.person-actions { flex-basis: 100%; padding-left: calc(48px + 0.85rem); }
.contact-actions .btn { min-height: 44px; }

.spaced { margin-bottom: 1rem; }
.spaced-top { margin-top: 0.5rem; }

.avatar { flex-shrink: 0; }
.person-main > div:not(.avatar) { flex: 1; min-width: 0; }

.day-heading { font-size: 1.05rem; margin: 0 0 0.55rem; }
.program-row.now { border-color: var(--green-3); background: var(--green-4); }
.program-row.done { opacity: 0.6; }
.now-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--green-1);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.emergency-card {
  border: 2px solid var(--red-1);
  background: var(--red-5);
  color: var(--red-1);
}
.emergency-card .eyebrow { color: var(--red-1); }
.emergency-card .btn { background: var(--red-1); color: var(--white); }
.emergency-link { display: block; text-decoration: none !important; }
.emergency-link .panel { border-color: var(--red-1); background: var(--red-5); color: var(--red-1); font-weight: 700; }
.card-title { margin: 0.1rem 0 0.4rem; font-size: 1.2rem; }
#i-dag { scroll-margin-top: calc(var(--top-h) + 0.5rem); }

/* Bilder */
.photo-card { padding: 0.65rem; }
.photo-card img { width: 100%; height: auto; }
.photo-open { all: unset; cursor: zoom-in; display: block; width: 100%; }
.photo-open:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 2px; border-radius: 12px; }
.photo-caption { padding: 0.5rem 0.25rem 0; }
.photo-meta { padding: 0.25rem 0.25rem 0; }
.photo-actions { margin-top: 0.55rem; padding: 0 0.25rem; align-items: center; }
.photo-comments { padding: 0.5rem 0.25rem 0; }
.comment { margin-bottom: 0.35rem; }
.comment-delete { min-height: 28px; padding: 0.1rem 0.45rem; font-size: 0.75rem; margin-left: 0.35rem; }
.more-row { display: flex; justify-content: center; margin-top: 1rem; }
.upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.upload-item { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0.6rem; border-radius: 10px; background: var(--green-5); border: 1px solid var(--line); }
.upload-item.done { background: var(--green-4); }
.upload-item.failed { background: var(--red-5); color: var(--red-1); border-color: var(--red-3); }
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); z-index: 80; display: grid; place-items: center; padding: 3.5rem 1rem 1rem; }
.lightbox img { max-width: 100%; max-height: 85dvh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px; border: 0;
  background: var(--white); color: var(--green-1); font: inherit; font-weight: 700; cursor: pointer;
}

/* Varsler og meldinger */
[hidden] { display: none !important; }
.push-panel { display: grid; gap: 0.5rem; }
.push-panel p { margin: 0; }
.msg-body { white-space: pre-line; }
.full-width { width: 100%; }

/* Konto */
.alert.success { border-color: var(--green-3); background: var(--green-4); color: var(--green-1); }
.alert.error { border-color: var(--red-3); background: var(--red-5); color: var(--red-1); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.tab {
  padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid var(--green-1);
  color: var(--green-1); text-decoration: none !important; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center;
}
.tab.active { background: var(--green-1); color: var(--white); }
.form-grid input:disabled { background: var(--green-5); color: var(--ink-muted); }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }

/* Grupper og påmelding */
.chip-ok { background: var(--green-4); color: var(--green-1); border-color: var(--green-3); }
.chips { margin-top: 0.35rem; }
.group-filter { margin-bottom: 1rem; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.check-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.1rem; max-height: 22rem; overflow-y: auto; }
.check-list label { min-height: 40px; padding: 0.15rem 0.25rem; }
.check-row input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: var(--green-1); flex-shrink: 0; }
.plain-list { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.field-group { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.75rem; margin: 0; display: grid; gap: 0.2rem; }
.field-group legend { padding: 0 0.3rem; font-size: 0.9rem; color: var(--ink-muted); }

/* Bilderutenett og bildevisning */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo-cell {
  all: unset; cursor: pointer; display: block; position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--green-4); border-radius: 6px;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 2px; }
.download-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.download-all > div { flex: 1 1 14rem; }

body.viewer-open { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 90; background: #0b1f20; display: flex; flex-direction: column; color: var(--white); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.75rem; flex-shrink: 0; }
.viewer-count { font-weight: 500; }
.viewer-close {
  min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px; border: 0;
  background: var(--white); color: var(--green-1); font: inherit; font-weight: 700; cursor: pointer;
}
.viewer-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 40dvh; touch-action: pan-y; }
.viewer-image { max-width: 100%; max-height: 68dvh; object-fit: contain; display: block; }
.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0;
  background: rgba(0, 0, 0, 0.45); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; border-radius: 10px;
}
.viewer-nav:disabled { opacity: 0.25; cursor: default; }
.viewer-prev { left: 0.4rem; }
.viewer-next { right: 0.4rem; }
.viewer-preload { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.viewer-info {
  background: var(--bg); color: var(--ink); border-radius: 16px 16px 0 0; padding: 1rem 1.1rem 2rem; margin-top: 0.5rem;
  display: grid; gap: 0.6rem; min-height: 40dvh;
}
.viewer-actions { align-items: center; }
.photo-caption-big { font-size: 1.05rem; }

/* Faglig: vedlegg og tilbakemelding */
.attachment-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.attachment-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.attachment-list li:first-child { border-top: 0; }
.attachment-main { min-width: 0; flex: 1 1 12rem; word-break: break-word; }
.rating-group { min-width: 0; }
.rating-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.rating-option {
  position: relative; display: flex !important; flex-direction: row !important; align-items: center; justify-content: center;
  min-height: 48px; border: 1px solid var(--green-1); border-radius: 12px; cursor: pointer;
  color: var(--green-1); font-weight: 700; background: var(--white);
}
.rating-option:has(input:checked) { background: var(--green-1); color: var(--white); }
.rating-option:focus-within { outline: 2px solid var(--blue-3); outline-offset: 2px; }
.rating-option input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.rating-bars { display: grid; gap: 0.3rem; }
.rating-bar { display: grid; grid-template-columns: 1rem 1fr 2rem; gap: 0.5rem; align-items: center; }
.rating-bar-track { background: var(--green-4); border-radius: 999px; height: 0.7rem; overflow: hidden; display: block; }
.rating-bar-fill { background: var(--green-1); height: 100%; display: block; }
.comments-anon li { padding: 0.35rem 0; white-space: pre-line; }

/* Bilder som feed (de ti nyeste) */
.upload-panel > summary { cursor: pointer; font-weight: 700; color: var(--green-1); list-style: none; min-height: 28px; display: flex; align-items: center; }
.upload-panel > summary::-webkit-details-marker { display: none; }
.upload-panel[open] > summary { margin-bottom: 0.25rem; }

.feed { display: grid; gap: 1.25rem; margin: 0 calc(-1 * var(--gutter, 1.1rem)); }
.feed-card { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; }
.feed-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem var(--gutter, 1.1rem); }
.feed-head-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.feed-time { white-space: nowrap; }
.avatar-sm { width: 36px; height: 36px; font-size: 0.95rem; }
.feed-location { font-size: 0.85rem; color: var(--blue-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-image { all: unset; display: block; width: 100%; cursor: zoom-in; background: var(--green-4); }
.feed-image img { width: 100%; height: auto; max-height: 85dvh; object-fit: contain; display: block; }
.feed-image:focus-visible { outline: 2px solid var(--blue-3); outline-offset: -2px; }
.feed-actions { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem var(--gutter, 1.1rem) 0; }
.like-btn { all: unset; cursor: pointer; font-size: 1.7rem; line-height: 1; min-width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--green-1); margin-left: -0.5rem; }
.like-btn.liked { color: var(--red-3); }
.like-btn:focus-visible { outline: 2px solid var(--blue-3); border-radius: 8px; }
.like-count { font-size: 0.9rem; font-weight: 500; }
.feed-caption, .feed-comment, .feed-more-comments { padding: 0.1rem var(--gutter, 1.1rem); }
.feed-comment { font-size: 0.92rem; }
.link-button { all: unset; cursor: pointer; color: var(--ink-muted); font-size: 0.9rem; display: block; }
.link-button:focus-visible { outline: 2px solid var(--blue-3); }
.feed-comment-form { padding: 0.4rem var(--gutter, 1.1rem) 0; margin-top: 0; }
.location-field { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.location-field input { flex: 1 1 14rem; }

/* Turassistent */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ai-assistant { --ai-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 0.75rem); }
.ai-fab {
  position: fixed;
  bottom: var(--ai-bottom);
  right: max(0.9rem, calc(50% - 360px + 0.9rem));
  z-index: 40;
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--green-1);
  border: 2px solid var(--green-1);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.ai-fab:hover { background: var(--green-4); }
.ai-fab:focus-visible { outline: 3px solid var(--blue-3); outline-offset: 2px; }
.ai-fab-icon { width: 34px; height: 34px; }
.ai-fab-clip { width: 42px; height: 42px; overflow: visible; }
.ai-clip-wire { fill: none; stroke: var(--green-2); stroke-width: 2.6; stroke-linecap: round; }
.ai-clip-eye { fill: var(--white); stroke: var(--green-1); stroke-width: 0.9; }
.ai-clip-pupil { fill: var(--green-1); }
.ai-clip-brow { fill: none; stroke: var(--green-1); stroke-width: 1.7; stroke-linecap: round; }

/* Rolig liv i figuren: den vugger, blunker, løfter øyenbrynene og ser seg rundt i korte glimt med lange pauser. */
.ai-clip-figure { animation: ai-clip-bob 4s ease-in-out infinite; }
.ai-clip-eyes { transform-box: fill-box; transform-origin: center; animation: ai-clip-blink 5.5s infinite; }
.ai-clip-brows { animation: ai-clip-brows 9s ease-in-out infinite; }
.ai-clip-pupils { animation: ai-clip-look 11s ease-in-out infinite; }
@keyframes ai-clip-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.1px); } }
@keyframes ai-clip-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
@keyframes ai-clip-brows {
  0%, 16%, 100% { transform: translateY(0); }
  4%, 12% { transform: translateY(-1.4px); }
  8% { transform: translateY(-0.4px); }
}
/* Blikket hviler mot høyre, ser til venstre, rett fram og tilbake igjen. */
@keyframes ai-clip-look {
  0%, 52%, 100% { transform: translate(0, 0); }
  60%, 70% { transform: translate(-2.2px, 0); }
  78%, 90% { transform: translate(-1px, -0.4px); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-clip-figure, .ai-clip-eyes, .ai-clip-brows, .ai-clip-pupils { animation: none; }
}
.ai-panel {
  position: fixed;
  bottom: calc(var(--ai-bottom) + 4.25rem);
  right: max(0.9rem, calc(50% - 360px + 0.9rem));
  width: min(420px, calc(100vw - 1.8rem));
  max-height: calc(100dvh - var(--ai-bottom) - var(--top-h) - 4.5rem);
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ai-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.ai-muted { color: var(--ink-muted); }
.ai-messages { flex: 1 1 auto; min-height: 140px; overflow-y: auto; padding: 0.8rem; display: grid; align-content: start; gap: 0.5rem; }
.ai-bubble { max-width: 88%; padding: 0.55rem 0.8rem; border-radius: var(--radius); font-size: 0.95rem; overflow-wrap: anywhere; }
.ai-bubble-user { justify-self: end; background: var(--green-1); color: var(--white); }
.ai-bubble-assistant { justify-self: start; background: var(--green-5); border: 1px solid var(--line); }
.ai-bubble .markdown-body ol, .ai-bubble .markdown-body ul { margin: 0.3rem 0 0.6rem; }
.ai-bubble .markdown-body li::marker { font-family: var(--font-body); }
.ai-bubble .markdown-body > :first-child { margin-top: 0; }
.ai-bubble .markdown-body > :last-child { margin-bottom: 0; }
.ai-messages > p { margin: 0; }
.ai-note { margin: 0; padding: 0 0.8rem 0.5rem; text-align: center; }
.ai-starters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.ai-starter { font: inherit; font-size: 0.88rem; padding: 0.4rem 0.75rem; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.ai-starter:hover { background: var(--green-4); }
.ai-composer { display: flex; gap: 0.5rem; padding: 0.6rem; border-top: 1px solid var(--line); }
.ai-composer input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; }
.ai-composer input:focus { border-color: var(--green-3); outline: 2px solid var(--green-4); }
.ai-status { padding: 0.5rem 0.75rem; border-radius: 10px; border: 1px solid var(--line); }
.ai-status--ok { background: var(--green-4); }
.ai-status--off { background: var(--yellow-5); border-color: var(--yellow-3); }
.ai-test-reply { margin-top: 0.75rem; padding: 0.7rem 0.9rem; background: var(--green-5); border: 1px solid var(--line); border-radius: var(--radius); white-space: pre-wrap; }
.ai-test-context { max-height: 320px; overflow: auto; font-size: 0.8rem; white-space: pre-wrap; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem; }
.ai-entry { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.ai-entry-body { color: var(--ink-muted); }
.ai-log-counts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.95rem; }
.ai-log-row { display: grid; gap: 0.35rem; }
.ai-log-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: center; }
.ai-log-status { padding: 0.05rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.ai-log-status--noanswer { background: var(--yellow-4); border-color: var(--yellow-3); color: var(--yellow-1); }
.ai-log-status--unavailable { background: var(--red-4); border-color: var(--red-3); color: var(--red-1); }
.ai-log-q { font-weight: 500; overflow-wrap: anywhere; }
.ai-log-a { color: var(--ink-muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Posisjonsikon (Evidi, Generell-01) og hvem som liker */
.icon-pin { width: 16px; height: 16px; vertical-align: -3px; margin-right: 0.15rem; }
.feed-location { display: inline-flex; align-items: center; gap: 0.25rem; }
.feed-location .icon-pin { margin-right: 0; vertical-align: 0; flex-shrink: 0; }
.likes-line { font-size: 0.9rem; min-width: 0; flex: 1; }
.viewer-info .likes-line { padding: 0; }
.inline-link { display: inline; color: var(--blue-3); font-weight: 700; text-decoration: underline; padding: 0.35rem 0; }
.liker-list { margin: 0.3rem 0 0.2rem; padding-left: 1.1rem; }
.btn .icon-pin { margin-right: 0.2rem; }

/* Været i Dublin: lav boks på forsiden */
.weather-box {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem 0.5rem;
  padding: 0.5rem 0.7rem 0.3rem; margin: 0 0 0.85rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.weather-cell { min-width: 0; }
.weather-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); font-weight: 700; }
.weather-main { display: flex; align-items: center; gap: 0.35rem; color: var(--green-1); }
.weather-main strong { font-size: 1.2rem; line-height: 1.2; }
.weather-icon { width: 26px; height: 26px; flex-shrink: 0; }
.weather-desc { font-size: 0.75rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weather-credit { grid-column: 1 / -1; justify-self: end; font-size: 0.62rem; color: var(--ink-muted); text-decoration: none; opacity: 0.8; }

/* Hjertet og hvem som liker på samme linje, og lite profilbilde til høyre for kommentarer */
.feed-actions .likes-line { align-self: center; }
.avatar-xs { width: 26px; height: 26px; font-size: 0.75rem; flex-shrink: 0; }
.feed-comment, .comment { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.comment-text { min-width: 0; flex: 1; overflow-wrap: anywhere; }

.feed-more-comments { padding: 0.1rem var(--gutter, 1.1rem); }
.likes-line { line-height: 1.35; }


/* Operational workshop overview, stacked on mobile. */
.wk-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.wk-status-card { padding: 1rem; border: 1px solid var(--border, #ddd); border-radius: 12px; overflow-wrap: anywhere; }
.wk-status-card .btn-row { flex-wrap: wrap; }
.wk-admin-group-card { min-width: 0; overflow-wrap: anywhere; }

/* Felles liker og kommentarer for fagartikler og gruppenes refleksjoner. */
.content-interactions { min-width: 0; }
.content-likes { display: flex; align-items: flex-start; gap: 0.6rem; }
.content-likes .like-btn { display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; margin-left: 0; }
.content-likes .like-btn:disabled { cursor: default; opacity: 0.6; }
.content-likes .likes-line { align-self: center; overflow-wrap: anywhere; }
.content-like-total { font-size: 0.9rem; font-weight: 700; }
.content-comments-heading { margin-top: 0.65rem; font-size: 0.95rem; }
.content-comments-empty { margin: 0.4rem 0 0.65rem; }
.content-comments { margin: 0.3rem 0 0.65rem; }
.content-comment { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.content-comment-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.15rem 0; }
.content-comment .comment-delete { flex: 0 0 auto; min-height: 44px; margin-left: 0; }
.content-comment-form .text-input { min-width: 0; min-height: 44px; }
.content-comment-form .btn { flex: 0 0 auto; }
.content-online-hint { margin: 0.4rem 0 0; }
.content-interaction-error { margin: 0.6rem 0; }
.wk-reflection .content-interactions { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }

.article-list-meta { display: flex; align-items: center; gap: 0.65rem; min-width: 0; margin-top: 0.35rem; }
.article-list-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-list-counts { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.article-list-count { display: inline-flex; align-items: center; gap: 0.2rem; white-space: nowrap; }
.article-list-count svg { width: 0.95rem; height: 0.95rem; flex: none; }

.article-detail-meta { margin: 0.2rem 0 0.65rem; }
.article-detail-meta-row { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
.article-detail-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-detail-actions { display: inline-flex; align-items: center; gap: 0.2rem; flex: 0 0 auto; }
.article-detail-control { display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; min-width: 44px; min-height: 44px; padding: 0.25rem; border: 0; border-radius: 8px; background: transparent; color: var(--green-1); font: inherit; font-size: 0.85rem; line-height: 1.35; text-decoration: none; cursor: pointer; }
.article-detail-control svg { width: 1rem; height: 1rem; flex: none; }
.article-detail-control.liked { color: var(--red-3); }
.article-detail-control:hover { text-decoration: none; }
.article-detail-control:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 1px; }
.article-detail-control:disabled { cursor: default; opacity: 0.6; }
.article-detail-interaction-error { margin: 0.25rem 0; }
.article-comments-anchor { scroll-margin-top: calc(var(--top-h) + 1rem); }


/* Start screens and group quiz: code-native illustrations in the Evidi palette. */
.wk-launch { margin: 1rem 0; padding: clamp(1.25rem, 4vw, 2.5rem); border-radius: 24px; background: var(--green-1); color: var(--white); text-align: center; overflow: hidden; }
.wk-launch-myth { background: var(--blue-1); }
.wk-launch .eyebrow, .wk-launch .lede { color: inherit; }
.wk-launch h1 { font-size: clamp(2rem, 7vw, 3rem); margin: .4rem 0 1rem; line-height: 1.1; }
.wk-launch .btn { background: var(--green-4); color: var(--green-1); margin-top: 1rem; min-height: 52px; }
.wk-launch .btn:disabled { opacity: .6; }
.wk-launch-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.wk-launch-facts span { border: 1px solid currentColor; border-radius: 100px; padding: .4rem .65rem; font-size: .8rem; }
.wk-launch-art { width: min(100%, 320px); height: auto; display: block; margin: 1rem auto; }
.wk-art-halo { fill: var(--green-4); opacity: .15; }
.wk-art-paper { fill: var(--green-5); stroke: var(--green-1); stroke-width: 3; }
.wk-art-second { fill: var(--green-4); stroke: var(--green-1); stroke-width: 3; }
.wk-art-line { fill: none; stroke: var(--green-1); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.wk-art-spark, .wk-art-dot { fill: var(--yellow-3); }
.wk-quiz-progress { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 .5rem; }
.wk-clock { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-time { width: 100%; height: .6rem; accent-color: var(--green-1); margin-bottom: 1.5rem; }
.wk-answer { width: 100%; min-height: 64px; display: flex; gap: 1rem; align-items: center; text-align: left; background: var(--bg-elev); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem; font: inherit; cursor: pointer; }
.wk-answer strong { background: var(--bg-soft); border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; flex-shrink: 0; }
.wk-answer-picked { border-color: var(--green-1); background: var(--green-5); }
.wk-answer:disabled { cursor: default; opacity: .8; }
.wk-answer:focus-visible, .wk-launch .btn:focus-visible { outline: 3px solid var(--yellow-3); outline-offset: 3px; }
.wk-feedback { padding: 1rem; background: var(--green-5); border-radius: var(--radius); border-left: 4px solid var(--green-1); }
.wk-results dd { white-space: pre-wrap; overflow-wrap: anywhere; margin: .35rem 0 1rem; }
.wk-results dt { font-weight: 700; }
.wk-leaderboard { padding: 0; list-style: none; display: grid; gap: .75rem; }
.wk-leaderboard li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; background: var(--bg-elev); padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.wk-leaderboard strong { overflow-wrap: anywhere; }
.wk-rank { background: var(--green-4); border-radius: 50%; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; font-weight: 700; }
.wk-points { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Admin: innloggingslenker til utsending */
.links-note { margin: 0; }
.links-filter { display: flex; align-items: center; gap: 0.5rem; }
.links-alert, .links-result { margin-top: 1rem; }
