/* Komponenter: knapper, rader, trinn, svaralternativer, skjema, menyer.
   Lilla = handling/valgt, grønn = ferdig/OK, rød = feil/kritisk/forfalt. */

/* ── Knapper ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: var(--btn-h);
  padding: 0 18px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--paper); }
.btn-primary:hover { background: var(--brand-press); }
.btn-secondary { background: var(--stone); color: var(--ink); font-weight: 500; }
.btn-secondary:hover { background: var(--stone-press); }
.btn-ok { background: var(--ok-ink); color: var(--paper); } /* ok-ink gir AA-kontrast for hvit tekst */
.btn-ok:hover { background: var(--ink); }
.btn:disabled { background: var(--disabled); color: var(--disabled-ink); cursor: default; }
.btn-md { min-height: 50px; font-size: var(--fs-md); }
.btn-sm { width: auto; min-height: var(--tap); padding: 0 14px; font-size: 14px; border-radius: 12px; }

.icon-btn, .round-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border-radius: var(--r-md);
  color: var(--ink);
}
.icon-btn:hover { background: var(--stone); }
.round-btn { border-radius: 50%; background: var(--stone); }
.round-btn:hover { background: var(--stone-press); text-decoration: none; }
.badge-dot {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--brand); color: var(--paper);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.link { align-self: flex-start; color: var(--brand); font-size: var(--fs-md); font-weight: 500; }
.link-stack { display: flex; flex-direction: column; gap: 14px; }
.link-list { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }

/* ── Tekst og grupper ────────────────────────────────────────────────── */

.page-title { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2, .section-h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; }
.section-head > span { color: var(--ink-2); font-size: var(--fs-sm); }
.lbl { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; }
.group-label { color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.field-label { margin-bottom: -12px; font-size: 14.5px; font-weight: 600; }
.lead { color: var(--ink-2); font-size: var(--fs-md); }
.note { display: flex; flex-direction: column; gap: 2px; color: var(--ink-2); font-size: 13px; }
.note b { font-weight: 500; }
.mono-line { color: var(--ink-2); font-family: var(--font-mono); font-size: 12.5px; }

.stack-2 { display: flex; flex-direction: column; gap: 2px; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-22 { display: flex; flex-direction: column; gap: var(--gap-section); }

/* ── Chips og piller ─────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px;
  border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 500;
}
.chip-ok .icon { color: var(--ok); }
.chip-brand .icon { color: var(--brand); }
.team {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); font-size: var(--fs-sm); font-weight: 500;
}
.team i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.demo-pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
  border-radius: 999px; background: var(--stone); color: var(--ink-2); font-size: 12.5px; font-weight: 500;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500;
}
.pill-crit { background: var(--crit-soft); color: var(--crit); }
.pill-warn { background: var(--warn-soft); color: var(--ink); }
.pill-warn .icon { color: var(--warn); }
.pill-quiet { background: var(--stone); color: var(--ink-2); }
.adv-tag {
  margin-left: 8px; padding: 3px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px;
}

.notice {
  display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-lg);
  font-size: 14.5px; line-height: 1.4;
}
.notice .icon { margin-top: 1px; }
.notice-warn { background: var(--warn-soft); color: var(--ink); }
.notice-warn .icon { color: var(--warn); }
.notice-crit { background: var(--crit-soft); color: var(--crit); }
.notice b { font-weight: 600; }

/* ── Rader ───────────────────────────────────────────────────────────── */

.rows { display: flex; flex-direction: column; }
.row, .menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
}
.rows > :last-child, .rows > :last-child .row { border-bottom: 0; }
.row:hover, .menu-row:is(a, button):hover { text-decoration: none; background: linear-gradient(90deg, transparent, var(--stone-2) 8%, var(--stone-2) 92%, transparent); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.row-sub { color: var(--ink-2); font-size: var(--fs-sm); }
.row-chev { color: var(--ink-3); }
.row-with-action { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.row-with-action .row { border-bottom: 0; padding-bottom: 4px; }
.row-with-action .btn { align-self: flex-start; }

.menu-row { min-height: 58px; padding: 12px 0; gap: 14px; }
.menu-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--stone); }
.menu-row[aria-pressed='true'] .row-title { color: var(--brand); font-weight: 600; }
.menu-count { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }

.more-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px;
  border-radius: var(--r-lg); background: var(--stone); color: var(--ink); font-weight: 500;
}
.more-row:hover { background: var(--stone-press); text-decoration: none; }
.more-text { flex: 1; }
.more-count {
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 999px; background: var(--paper); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}

.empty { display: flex; flex-direction: column; gap: 4px; padding: 22px 18px; border-radius: 18px; background: var(--stone-2); color: var(--ink-2); font-size: 14.5px; }
.empty b { color: var(--ink); font-size: 16px; font-weight: 600; }

/* ── Trinn (SJA → sjekkpunkter → fullfør) ────────────────────────────── */

.stages { display: flex; flex-direction: column; }
.stage {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 14px 0;
  border-bottom: 1px solid var(--line-2); color: var(--ink);
}
.stage:last-child { border-bottom: 0; }
a.stage:hover { text-decoration: none; }
.stage .row-title { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.num {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink-2); font-size: var(--fs-md); font-weight: 600;
}
.stage[data-state='active'] .num { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.stage[data-state='done'] .num { background: var(--ok); border-color: var(--ok); color: var(--paper); }
.stage[data-state='locked'] .row-title, .stage[data-state='todo'] .row-title { color: var(--ink-2); }

/* ── SJA ─────────────────────────────────────────────────────────────── */

.confirm-list { display: flex; flex-direction: column; gap: 10px; }
.confirm {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); font-size: 15.5px; line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}
.confirm .cb {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none; margin-top: -1px;
  border: 1.8px solid var(--line-strong); border-radius: var(--r-sm); color: var(--paper);
}
.confirm[aria-pressed='true'] { border-color: var(--ok); background: var(--ok-soft); }
.confirm[aria-pressed='true'] .cb { border-color: var(--ok); background: var(--ok); }
.confirm:disabled { cursor: default; }

/* ── Sjekkpunkt ──────────────────────────────────────────────────────── */

.segs { display: flex; gap: 4px; padding: 0 var(--gutter) 6px; background: var(--paper); position: sticky; top: 60px; z-index: var(--z-top); }
.segs i { flex: 1; height: 4px; border-radius: 9px; background: var(--line-2); }
.segs i.done { background: var(--brand); }
.segs i.current { background: var(--brand-soft-2); }
.ref-img {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  height: 150px; margin-top: 12px; border-radius: 18px; background: var(--stone); color: var(--ink-2); font-size: var(--fs-sm);
}
.check-title { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.hint { margin-top: -12px; font-size: 15.5px; }
.asset-line { margin-top: -14px; color: var(--ink-2); font-size: 14px; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); font-size: var(--fs-lg); font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.opt-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: var(--paper); }
.opt-icon .icon { stroke-width: 2.4; }
.opt[data-kind='ok'] .opt-icon { background: var(--ok); }
.opt[data-kind='fault'] .opt-icon { background: var(--crit); }
.opt[data-kind='na'] .opt-icon { background: var(--stone); color: var(--ink-2); }
.opt[data-kind='ok'][aria-pressed='true'] { border-color: var(--ok); background: var(--ok-soft); }
.opt[data-kind='fault'][aria-pressed='true'] { border-color: var(--crit); background: var(--crit-soft); }
.opt[data-kind='na'][aria-pressed='true'] { border-color: var(--ink-3); background: var(--stone-2); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fault-box { display: flex; flex-direction: column; gap: 6px; }
.fault-box small { color: var(--ink-2); font-size: 13px; }

/* ── Skjema ──────────────────────────────────────────────────────────── */

textarea {
  width: 100%; min-height: 96px; padding: 14px 16px; resize: vertical;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  font-size: 16px; line-height: 1.4;
}
textarea::placeholder, input::placeholder { color: var(--ink-2); opacity: 0.8; }
textarea:focus { outline: none; border-color: var(--brand); }
textarea:focus-visible { outline: none; }

.search {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 6px 0 14px;
  border-radius: var(--r-md); background: var(--stone); color: var(--ink-2);
}
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
/* 16 px i alle tekstfelt: under det zoomer iOS inn ved fokus, og den innzoomede siden kan dras sideveis. */
.search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.search-scan { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--paper); color: var(--ink); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--stone); }
.seg button {
  min-width: 0; min-height: 42px; padding: 0 6px; border-radius: 11px; color: var(--ink-2); overflow-wrap: anywhere;
  font-size: var(--fs-md); font-weight: 500; text-align: center; line-height: 1.2;
}
.seg button[aria-pressed='true'] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lift); }
.seg button:focus-visible { outline-offset: -2px; }

.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { min-height: var(--tap); padding: 0 16px; border-radius: 999px; background: var(--stone); font-weight: 500; }
.tchip[aria-pressed='true'] { background: var(--brand); color: var(--paper); }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 26px 16px;
  border: 1.5px dashed #D7D4CE; border-radius: var(--r-xl); background: var(--stone-2); text-align: center;
}
.drop-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.drop b { font-size: var(--fs-lg); font-weight: 600; }
.drop small { color: var(--ink-2); font-size: 14px; }
.drop.has { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.drop.has .drop-icon { background: var(--ok); color: var(--paper); }

.place { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--stone-2); }
.place-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.place-text small { color: var(--ink-2); font-size: var(--fs-xs); }
.place-text b { font-size: 15.5px; font-weight: 500; }
.place-btn { min-height: var(--tap); padding: 0 6px; color: var(--brand); font-weight: 500; }

.toggle {
  position: relative; width: 48px; height: 30px; flex: none; border-radius: 99px; background: #D6D3CD; transition: background 0.2s;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: transform 0.2s;
}
.toggle[aria-checked='true'] { background: var(--brand); }
.toggle[aria-checked='true']::after { transform: translateX(18px); }
/* Utvid trykkflaten til 44 px uten å endre utseendet. */
/* Bare vertikalt: utvidelsen sideveis rant 2 px ut av raden (funnet av layout-revisjonen). */
.toggle::before { content: ''; position: absolute; inset: -7px 0; }

/* ── Detaljer og aktivitet ───────────────────────────────────────────── */

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; border-radius: 18px; background: var(--stone-2); }
.kv div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv dt { color: var(--ink-2); font-size: var(--fs-xs); }
.kv dd { font-size: var(--fs-md); overflow-wrap: anywhere; }

.timeline { display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.tl-dot { width: 10px; height: 10px; margin: 6px 0 0 7px; border-radius: 50%; background: var(--line); }
.timeline li:first-child .tl-dot { background: var(--brand); }
.timeline p { font-size: var(--fs-md); }
.timeline small { color: var(--ink-2); font-size: 13px; }

.profile { display: flex; align-items: center; gap: 14px; }
.profile b { display: block; font-size: 18px; font-weight: 600; }
.profile small { color: var(--ink-2); font-size: 14px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 17px; font-weight: 600; }

/* ── 2.0: skjemafelt, objektfelt, skanning, mengde ───────────────────── */

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field .field-label { margin-bottom: 0; }
.field-aside { color: var(--ink-2); font-size: var(--fs-sm); }
.field-hint { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.field-hint .icon { flex: none; }
.field-hint + .field-hint { margin-top: -4px; }

.input {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
}
.input:focus-within { border-color: var(--brand); }
.input input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: none; font-size: 16px; }
.input-suffix { color: var(--ink-2); font-weight: 500; }

.select {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); font-size: 16px;
}
.select:focus { outline: none; border-color: var(--brand); }
.select:disabled { background: var(--stone-2); color: var(--ink-2); }

.code-input {
  display: flex; align-items: center; gap: 6px; min-height: 54px; padding: 0 6px 0 14px;
  border-radius: var(--r-md); background: var(--stone);
}
.code-input:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.code-input input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); }
.code-input .search-scan { width: var(--tap); height: var(--tap); }
.code-input[data-state='found'], .code-input[data-state='found']:focus-within { box-shadow: inset 0 0 0 1.5px var(--ok); }
.code-input[data-state='not-found'], .code-input[data-state='not-found']:focus-within { box-shadow: inset 0 0 0 1.5px var(--crit); }

.obj-preview:empty { display: none; }
.obj-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: var(--r-lg); background: var(--ok-soft);
}
.obj-card .menu-icon { background: var(--paper); }
.obj-card-neutral { background: var(--stone-2); }
.obj-card-neutral .menu-icon { background: var(--stone); }
.obj-card .row-title { font-size: 15.5px; }
.obj-card .row-sub { font-size: 13px; }

.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 14px;
  border-radius: var(--r-lg); background: var(--stone-2); color: var(--ink);
}
.choice:hover { background: var(--stone); }
.choice .row-text { gap: 1px; }
.choice .row-sub { font-size: 13px; }
.row-title.is-empty { color: var(--brand); font-weight: 500; }

.stepper { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 4px; border-radius: var(--r-md); background: var(--stone); }
.step-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lift); }
.step-btn:disabled { background: transparent; box-shadow: none; color: var(--disabled-ink); cursor: default; }
.step-value { min-width: 56px; font-size: var(--fs-xl); font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }

.attach {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 16px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--stone-2); color: var(--ink); font-weight: 500;
}
.attach .icon { color: var(--brand); }
.attach.has { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.attach.has .icon { color: var(--ok-ink); }

.context-line { display: flex; align-items: flex-start; gap: 6px; color: var(--ink-2); font-size: 14px; }
.context-line .icon { margin-top: 2px; }
.section-h2 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; }
.desc.pre, .pre { white-space: pre-line; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); color: var(--brand); font-weight: 500; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form .input { flex: 1; min-width: 0; }

.sheet-scan { min-height: 88dvh; }
.scan-view {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; max-height: 52dvh;
  overflow: hidden; border-radius: 18px; background: var(--ink); color: var(--line);
}
.scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-view:not([data-state='live']):not([data-state='success']) .scan-video { visibility: hidden; }
.scan-target {
  position: relative; z-index: 1; width: min(62%, 240px); aspect-ratio: 1; border-radius: 18px;
  border: 3px solid var(--paper); box-shadow: 0 0 0 100vmax rgb(28 27 25 / 0.35); transition: border-color 0.15s, transform 0.15s;
}
.scan-idle { position: absolute; z-index: 2; display: grid; place-items: center; }
.scan-view[data-state='live'] .scan-idle, .scan-view[data-state='success'] .scan-idle { display: none; }
.scan-view:not([data-state='live']):not([data-state='success']) .scan-target { border-style: dashed; border-color: var(--ink-2); box-shadow: none; }
.scan-view[data-state='success'] .scan-target { border-color: var(--ok); transform: scale(0.96); }
.scan-status { min-height: 1.4em; color: var(--ink-2); font-size: 14.5px; text-align: center; }
.scan-view[data-state='success'] + .scan-status { color: var(--ok-ink); font-weight: 600; }
.scan-manual-link { align-self: center; min-height: var(--tap); }
@media (min-width: 600px) {
  .sheet-scan { min-height: 0; }
  .scan-view { aspect-ratio: 4 / 3; }
}

/* «Mer»-knapp i bunnlinjen: kvadratisk ved siden av de to hovedsnarveiene. */
/* Med tre elementer i bunnlinjen strammes luften inn så tekstene holder seg på én linje. */
.foot-inner:has(> .foot-more) { gap: 8px; }
.foot-inner:has(> .foot-more) > .btn { gap: 6px; padding: 0 10px; white-space: nowrap; }
.foot-inner > .foot-more { flex: none; width: 52px; height: var(--btn-h); border-radius: var(--r-md); background: var(--stone); }
.foot-inner > .foot-more:hover { background: var(--stone-press); }
.foot-cta { display: flex; }

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 359px) {
  .foot-inner:has(> .foot-more) > .btn .icon { display: none; }
}
.link-icon { display: inline-flex; align-items: center; gap: 6px; }
/* Når kameraet ikke kan brukes, krymper forhåndsvisningen så «Skriv inn» kommer frem. */
.scan-view:is([data-state='denied'], [data-state='no-camera'], [data-state='busy'], [data-state='insecure'], [data-state='no-api'], [data-state='error']) { aspect-ratio: auto; height: 96px; }
.scan-view:is([data-state='denied'], [data-state='no-camera'], [data-state='busy'], [data-state='insecure'], [data-state='no-api'], [data-state='error']) .scan-target { display: none; }
.sheet-scan:has(.scan-view:is([data-state='denied'], [data-state='no-camera'], [data-state='busy'], [data-state='insecure'], [data-state='no-api'], [data-state='error'])) { min-height: 0; }

/* «Opprettet»-ark */
.created-head { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.created-head p { min-width: 0; }
.created-check { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ok); color: var(--paper); }
.created-check .icon { stroke-width: 2.4; }

/* Før du starter / sjekkpunkt */
.confirm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.confirm-text b { font-weight: 600; }
.confirm-sub { color: var(--ink-2); font-size: 14px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 0 20px; padding: 0 4px; }
.confirm-actions .link { min-height: var(--tap); }
.foot-stack { display: flex; flex-direction: column; gap: 8px; }
.opts-hint { margin-top: -12px; }

/* Objekt: «Din jobb her» (én åpen jobb for brukeren) */
.your-job { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--brand-soft); color: var(--ink); }
.your-job:hover { text-decoration: none; background: var(--brand-soft-2); }
.your-job .row-text { gap: 4px; }
.your-job-title { font-size: var(--fs-lg); font-weight: 600; line-height: 1.25; }
.row-action { color: var(--brand); font-weight: 500; }
.point-row .menu-icon { flex: none; }
.point-row.is-saved .menu-icon { background: var(--ok-soft); color: var(--ok-ink); }
.result-count { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: -8px; }
.load-more { text-align: center; padding: 8px 0; }
.search-form { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 620px; margin: 0 auto; }
.search-form .form-grid { gap: 18px; }
