/* Notar – Land & Plans farver. Skrift: Inter overalt (aftalt 28.11.2026), ligger i /fonts, så den også virker offline. */
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: light dark;
  --bg: light-dark(#efeae2, #1b1c1e);
  --card: light-dark(#fff, #292a2c);
  --ink: light-dark(#292a2c, #ece7df);
  --mute: light-dark(#565758, #a89d89);
  --line: light-dark(#d8cfbf, #3e3f41);
  --sand: #cbbaa1;
  --acc: #804d58;
  --accd: #6b303d;
  --open: #c43a2f;
  --fix: #d99100;
  --done: #2e8b57;
}

* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip;
  font-feature-settings: "cv11", "ss01"; /* enkel a og tydelige tal */
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(30px, 6vw, 40px); }
h2 { font-size: 26px; }
h3 { font-size: 20px; margin-bottom: 8px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
a { color: var(--acc); }
p { margin: 0 0 12px; }
.mute { color: var(--mute); }
.lille { font-size: 13px; }

/* Midterkolonne til login o.l. */
.midt {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); gap: 16px;
}
.logo { border-radius: 22px; }
.kort {
  width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.kort h1, .kort h2 { text-align: center; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.in {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: var(--card); font-size: 16px; font-weight: 400;
}
.in.kode { font-size: 28px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.stor {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border: 0;
  border-radius: 14px; background: var(--acc); color: #fff; font-weight: 700; font-size: 18px;
}
.stor:active { background: var(--accd); }
.stor:disabled { opacity: .6; }
.lenke { background: none; border: 0; color: var(--acc); text-decoration: underline; padding: 8px; font-size: 15px; }
.fejl { background: light-dark(#fbe9e7, #3a2321); color: light-dark(#8e2a21, #f2b8b0); border-radius: 10px; padding: 10px 12px; }
.ok { background: light-dark(#e3f1e8, #1f3327); color: light-dark(#1f6b42, #a6dbbb); border-radius: 10px; padding: 10px 12px; }
.qr { display: flex; justify-content: center; }
.qr svg { width: 200px; height: 200px; border-radius: 8px; }
.hemmelighed { font-family: ui-monospace, monospace; text-align: center; font-size: 14px; word-break: break-all; }

/* Topbjælke og sider */
.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px max(4vw, 16px);
  /* iPhone: hold topbjælken fri af statuslinjen og "øen" (sikkert område) */
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(4vw, 16px, env(safe-area-inset-left)); padding-right: max(4vw, 16px, env(safe-area-inset-right));
  background: var(--card); border-bottom: 1px solid var(--line);
}
.top .navn { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.top .navn img { border-radius: 8px; }
.top .navn b { font-size: 20px; letter-spacing: -0.02em; }
.top .navn small { display: block; color: var(--mute); font-size: 12px; line-height: 1.2; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; align-items: center; }
.top nav a, .top nav button {
  border: 0; background: none; padding: 10px 12px; border-radius: 9px; font-weight: 600; min-height: 44px;
  color: var(--mute); text-decoration: none; display: inline-flex; align-items: center;
}
.top nav a[aria-current=page] { background: var(--bg); color: var(--ink); }
.top select { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--card); }
.side { max-width: 1320px; margin: auto; padding: 24px max(4vw, 16px) max(48px, env(safe-area-inset-bottom)); }
.side > h2 { margin-bottom: 16px; }

.felt { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.knapper { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { border: 0; background: var(--acc); color: #fff; font-weight: 600; border-radius: 10px; padding: 10px 16px; min-height: 42px; }
.btn:active { background: var(--accd); }
.btn2 { border: 1px solid var(--line); background: var(--card); font-weight: 600; border-radius: 10px; padding: 8px 14px; min-height: 40px; }
.btn2.lille { min-height: 34px; padding: 4px 10px; font-size: 13px; }
.st { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; color: #fff; background: #6b7680; }
.st.aktiv { background: var(--done); }
.st.inviteret { background: var(--fix); }
.st.deaktiveret { background: #6b7680; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Tabeller, der bliver til kort på smalle skærme */
table.stak { width: 100%; border-collapse: collapse; font-size: 14px; }
.stak th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.stak td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.stak tr.slukket td { color: var(--mute); }
.stak select { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 2px 6px; }
@media (max-width: 700px) {
  .stak thead { display: none; }
  .stak tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .stak td { display: block; border: 0; padding: 2px 0; }
  .stak td[data-l]::before { content: attr(data-l) ": "; color: var(--mute); font-size: 12px; }
}

/* Administration */
.adm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.ny { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.ny .in { min-height: 42px; font-size: 15px; }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lst { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); }
.lst > b { font-size: 16px; display: block; margin-bottom: 6px; }
.opt { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.opt.slukket { opacity: .55; }
.opt input[type=text], .opt input[type=email] {
  flex: 1 1 60px; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; background: none; min-height: 34px;
}
.opt input[type=text]:hover, .opt input[type=text]:focus, .opt input[type=email] { border-color: var(--line); }
.opt input[type=color] { width: 28px; height: 28px; border: 0; padding: 0; background: none; }
.opt .ikon { border: 0; background: none; color: var(--mute); font-size: 16px; width: 32px; height: 32px; border-radius: 8px; }
.opt .ikon:hover { background: var(--bg); }
.opt label { flex-direction: row; align-items: center; font-weight: 400; font-size: 12px; color: var(--mute); gap: 4px; }
.opt small { color: var(--mute); font-size: 12px; }
.addopt { display: flex; gap: 6px; margin-top: 8px; }
.addopt input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--card); min-height: 36px; }
.addopt button { border: 0; background: var(--ink); color: var(--bg); border-radius: 8px; width: 36px; font-weight: 700; }
.linkboks { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.linkboks code { word-break: break-all; font-size: 13px; background: var(--bg); padding: 8px; border-radius: 8px; }
@media (max-width: 900px) { .adm { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .lists { grid-template-columns: minmax(0, 1fr); } }

.tom { text-align: center; padding: 40px 16px; color: var(--mute); }
.valg { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 400px; }
.valg button {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: left;
  font-size: 18px; font-weight: 600; min-height: 56px;
}

/* Projekter */
a.btn, a.btn2 { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
a.btn { color: #fff; }
.sidehoved { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sidehoved + #besked, #besked + form { margin-bottom: 12px; }
.kortgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.projkort {
  display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; text-decoration: none; color: inherit; min-height: 96px;
}
.kortgrid > .tom, .kortgrid > p { grid-column: 1 / -1; }
.projkort:hover { border-color: var(--sand); }
.projkort b { font-size: 18px; letter-spacing: -0.01em; }
.projkort .m { color: var(--mute); font-size: 14px; }
.projkort.slukket { opacity: .5; filter: grayscale(.6); }
.tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: light-dark(#efe9df, #3a3b3d); margin-top: 6px; }
.flueben { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; margin-top: 16px; color: var(--mute); }
.projhoved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.projhoved small { display: block; }
.tilbage {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px;
  font-size: 28px; text-decoration: none; color: inherit; flex: none;
}
.tilbage:hover { background: var(--card); }
.faner { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.faner a { padding: 10px 14px; border-radius: 9px; font-weight: 600; min-height: 44px; color: var(--mute); text-decoration: none; display: inline-flex; align-items: center; }
.faner a[aria-current=page] { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.drop { margin-bottom: 16px; border-style: dashed; }
.drop.over { border-color: var(--acc); background: light-dark(#f7f0f1, #33292b); }
.drop p { margin: 0; }
.drop input[type=file] { padding: 8px; }
progress { width: 100%; height: 8px; margin-top: 10px; accent-color: var(--acc); }
.stabel { display: flex; flex-direction: column; gap: 12px; }
.st.fejlst { background: var(--open); }
.stak a.btn, .stak a.btn2 { min-height: 34px; padding: 4px 10px; font-size: 13px; }

/* Planen i fuld skærm */
.planside { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.planbar {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top));
  background: var(--card); border-bottom: 1px solid var(--line); z-index: 2;
}
.planbar .titel { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.planbar .titel b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planbar .titel small { font-size: 12px; }
.planflade { flex: 1; position: relative; background: #e9e4da; }
.planflade .tom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.planside #besked { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; }
.maplibregl-ctrl-group button { width: 44px; height: 44px; }

/* Tilsyn og punkter (mobilskærmene; virker også på PC) */
.mobilside, .ark { display: flex; flex-direction: column; background: var(--bg); }
.mobilside { min-height: 100dvh; max-width: 720px; margin: 0 auto; }
.ark { position: absolute; inset: 0; z-index: 10; }
.ark[hidden] { display: none; }
.rulle { flex: 1; overflow-y: auto; padding: 14px 16px 24px; -webkit-overflow-scrolling: touch; }
.ark .rulle { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
.bund {
  display: flex; gap: 10px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); align-items: center;
}
.bund { justify-content: center; }
.bund .stor { flex: 1; max-width: 520px; }
button.tilbage { border: 0; background: none; padding: 0; }
.stor.moerk { background: var(--ink); color: var(--bg); }
a.stor { text-decoration: none; color: #fff; }
.startknap { margin-bottom: 14px; max-width: 420px; }
.ghost {
  min-height: 48px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 0 14px;
  font-weight: 600; flex: none;
}
.ghost.lille { min-height: 36px; font-size: 13px; }
.ghost:disabled, .stor:disabled { opacity: .5; }
.f { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.chips button[aria-pressed=true] { background: var(--acc); border-color: var(--acc); color: #fff; }
.raekke-mellem { display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.part {
  display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.part > div:first-child { flex: 1; }
.part b { display: block; }
.part small { color: var(--mute); font-size: 13px; }
.part .in { min-height: 42px; }
.tilstede { flex-direction: column; align-items: center; font-size: 12px; font-weight: 400; gap: 2px; }
.tilstede input { width: 24px; height: 24px; accent-color: var(--acc); }
.ny-deltager { display: grid; grid-template-columns: 1fr 1fr 1fr auto; }
.felter3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; flex: 1; }
@media (max-width: 520px) { .ny-deltager { grid-template-columns: 1fr 1fr; } }
.ikon { border: 0; background: none; color: var(--mute); font-size: 22px; width: 44px; height: 44px; border-radius: 10px; flex: none; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #e3f1e8; color: #1f6b42; white-space: nowrap; }
.tag.kladde { background: #fff1d6; color: #6b4700; }

.planfaner { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.planfaner button {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 600; white-space: nowrap;
}
.planfaner button[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.planflade > .kortflade { position: absolute; inset: 0; }   /* skal slå MapLibres egen position: relative */
.banner {
  position: absolute; left: 10px; right: 10px; top: 10px; z-index: 5; background: #292a2c; color: #fff;
  border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: auto;
}
.formvalg { display: flex; gap: 4px; }
.formvalg button, .bannerlinje button {
  border: 0; border-radius: 10px; min-height: 44px; padding: 0 12px; font-weight: 600; background: #fff; color: #292a2c;
}
.formvalg button { flex: 1; }
.formvalg button[aria-pressed=true] { background: var(--acc); color: #fff; }
.bannerlinje { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.bannerlinje span { flex: 1; }
.bannerlinje button:disabled { opacity: .45; }
.bannerlinje .groen { background: var(--done); color: #fff; }
.tegner .kortflade { cursor: crosshair; }
.tegner .pin { pointer-events: none; opacity: .7; }
.planflade .maplibregl-canvas { cursor: inherit; }

.pin {
  min-width: 34px; height: 34px; padding: 0 7px; border-radius: 999px; border: 3px solid #fff; color: #fff;
  font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px #0005; cursor: pointer; font-variant-numeric: tabular-nums;
}
.pin.etiket { border-radius: 8px; }

.fotos { display: flex; flex-wrap: wrap; gap: 8px; }
.ph { position: relative; width: 84px; height: 84px; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ph button {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--bg); font-weight: 700;
}
.addph {
  width: 84px; height: 84px; border: 2px dashed var(--line); border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 22px; font-weight: 400; cursor: pointer; background: var(--card);
}
.addph span { font-size: 11px; font-weight: 600; }
.to { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.historik { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.historik p { margin: 4px 0; }
.lenke.fare { color: var(--open); margin-top: 20px; }
.card {
  display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 10px;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.card-top b { font-size: 18px; }
.card .m { color: var(--mute); font-size: 13px; margin-top: 4px; }
.lille-overskrift { font-size: 15px; margin: 18px 0 8px; color: var(--mute); }
.planside > #besked { position: absolute; left: 12px; right: 12px; bottom: 90px; z-index: 20; max-width: 560px; margin: auto; }

/* Kontorarbejde (upload af planer, nye projekter, omdøbning) vises ikke på telefoner og tablets (principperne). */
@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px) {
  .kun-kontor { display: none !important; }
}
.kun-telefon { display: none; }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px) {
  .kun-telefon { display: block; }
}

/* Topbjælken klæber til toppen: nyere Safari på iPhone farver så området under statuslinjen med bjælkens hvide farve
   i stedet for at tone sidens indhold ud. På telefoner får logoet lidt ekstra luft foroven. */
.top { position: sticky; top: 0; z-index: 30; }
@media (max-width: 760px) { .top { padding-top: max(16px, env(safe-area-inset-top)); } }

/* Fotos med markering */
.ph { cursor: pointer; }
.ph .markering { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; pointer-events: none; }
.fotomodal { position: fixed; inset: 0; z-index: 50; background: #111; color: #fff; display: flex; flex-direction: column; }
.fotobar, .vaerktoej { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #1d1d1f; }
.fotobar { padding-top: max(10px, env(safe-area-inset-top)); }
.fotobar span { flex: 1; text-align: center; font-weight: 600; }
.vaerktoej { justify-content: center; padding-bottom: max(12px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
.fotobar button, .vaerktoej button {
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: #fff; color: #292a2c; font-weight: 600;
}
.fotobar .groen { background: var(--done); color: #fff; }
.vaerktoej button[aria-pressed=true] { background: #e0261b; color: #fff; }
.fotoflade { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px; }
.fotoramme { position: relative; display: inline-block; touch-action: none; line-height: 0; user-select: none; -webkit-user-select: none; }
.fotoramme img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 150px); display: block; -webkit-user-drag: none; }
.fotoramme .lag, .fotoramme .markering { position: absolute; inset: 0; width: 100%; height: 100%; }
.bundvalg { flex: 1; max-width: 520px; }
.bundvalg button { min-height: 52px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px; }
.bundvalg button[aria-pressed=true] { background: var(--acc); border-color: var(--acc); color: #fff; }
.bundvalg button:disabled { opacity: .5; }

/* Avatar og kontomenu øverst til højre */
.avatarboks { position: relative; }
.top nav button.avatar {
  width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--acc); color: #fff;
  font-weight: 700; font-size: 15px; justify-content: center; letter-spacing: .02em;
}
.kontomenu {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 24px)); z-index: 40;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  box-shadow: 0 16px 40px -16px #0006; display: flex; flex-direction: column; gap: 8px;
}
.kontomenu .hvem { display: flex; flex-direction: column; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.kontomenu .hvem small { color: var(--mute); font-size: 13px; }
.top nav .kontomenu button {
  width: 100%; justify-content: flex-start; border: 1px solid var(--line); color: var(--ink); background: var(--card);
}
.kontomenu p { margin: 0; }
.vindue {
  position: fixed; inset: 0; z-index: 60; background: #0008; display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.vindue .kort { max-height: calc(100dvh - 32px); overflow-y: auto; }

/* Punktskærmen på computer: felter til venstre, udsnit af planen til højre */
.punktlayout { flex: 1; min-height: 0; display: flex; }
.punktlayout > .rulle { flex: 1; }
.udsnit { display: none; }
.gemfelt { display: none; }
@media (min-width: 900px) and (pointer: fine) {
  .punktlayout > .rulle { flex: 0 1 620px; margin: 0; max-width: none; }
  .udsnit { display: block; flex: 1; position: relative; border-left: 1px solid var(--line); background: #e9e4da; }
  .gemfelt { display: block; margin: 20px 0 8px; }
  .punktbund { display: none; }
}
#gemspoerg .knapper { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ph .tegnknap {
  position: absolute; bottom: -8px; right: -8px; top: auto; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: var(--acc); color: #fff; font-size: 15px;
}

/* Foto i eget vindue */
.fotoside { position: fixed; inset: 0; display: flex; flex-direction: column; background: #111; color: #fff; }
.fotoside header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #1d1d1f; }
.fotoside header span { flex: 1; }
.fotoside .btn2 { color: #292a2c; }
.fotoside .fotoramme img { max-height: calc(100dvh - 130px); }
.fototekst { margin: 0; padding: 10px 16px; background: #1d1d1f; font-size: 15px; max-height: 20vh; overflow: auto; }
.udsnit > .udsnitkort { position: absolute; inset: 0; }
.udsnitvaerktoej {
  position: absolute; left: 10px; right: 10px; top: 10px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 10px; background: #292a2c; color: #fff; border-radius: 12px; padding: 8px 10px; font-size: 13px;
}
.udsnitvaerktoej #udsnithjaelp { flex: 1 1 200px; }
.udsnitvaerktoej .gruppe { display: inline-flex; align-items: center; gap: 4px; }
.udsnitvaerktoej button {
  border: 0; border-radius: 8px; min-height: 34px; padding: 0 10px; font-weight: 600; background: #fff; color: #292a2c;
}
.udsnitvaerktoej button[aria-pressed=true] { background: var(--acc); color: #fff; }
.udsnitvaerktoej #udsnitfaerdig { background: var(--done); color: #fff; }
.udsnitvaerktoej button:disabled { opacity: .45; }
.knaek { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--acc); cursor: grab; }

/* Registrering på computer: punktlisten til venstre for kortet */
.tilsynkrop { flex: 1; min-height: 0; display: flex; }
.tilsynkrop > .planflade { flex: 1; }
.sideliste { display: none; }
@media (min-width: 900px) and (pointer: fine) {
  .sideliste {
    display: flex; flex-direction: column; width: min(400px, 34vw); flex: none; border-right: 1px solid var(--line);
    background: var(--bg); min-height: 0;
  }
  .sidelistehoved { padding: 12px 16px 4px; }
  .sideliste .rulle { padding: 8px 12px 16px; }
  .sideliste .card { padding: 10px 12px; }
  .sideliste .card.anden-plan { opacity: .65; }
  .sideliste .card:hover { border-color: var(--sand); }
}

/* Computer (stor skærm og mus): kompakt udgave. De store knapper er til telefonen i marken (principperne). */
@media (min-width: 900px) and (pointer: fine) {
  body { font-size: 15px; }
  .stor { min-height: 40px; font-size: 15px; border-radius: 10px; }
  .ghost { min-height: 36px; font-size: 14px; border-radius: 9px; }
  .in { min-height: 38px; font-size: 14px; border-radius: 9px; padding: 7px 10px; }
  .in.kode { font-size: 22px; }
  .f { margin: 12px 0 4px; font-size: 13px; }
  .chips { gap: 6px; }
  .chips button { min-height: 32px; padding: 0 11px; font-size: 13px; }
  .bund { padding: 8px 16px; gap: 8px; }
  .bund .stor { max-width: 360px; }
  .bundvalg { max-width: 420px; }
  .bundvalg button { min-height: 38px; font-size: 14px; border-radius: 9px; }
  .planbar { padding: 4px 12px; }
  .planbar .titel b { font-size: 15px; }
  .tilbage { width: 36px; height: 36px; font-size: 24px; }
  .planfaner { padding: 6px 10px; gap: 4px; }
  .planfaner button { min-height: 30px; padding: 0 11px; font-size: 13px; }
  .pin { min-width: 26px; height: 26px; font-size: 12px; border-width: 2px; padding: 0 5px; }
  .card { padding: 8px 10px; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
  .card-top b { font-size: 15px; }
  .card .m { font-size: 12px; }
  .sideliste .card { padding: 8px 10px; }
  .sidelistehoved { padding: 10px 12px 2px; font-size: 14px; }
  .banner { padding: 8px; }
  .formvalg button, .bannerlinje button { min-height: 34px; font-size: 13px; }
  .top { padding-top: 8px; padding-bottom: 8px; }
  .top nav a, .top nav button { min-height: 36px; padding: 6px 10px; font-size: 14px; }
  .top nav button.avatar { width: 36px; height: 36px; min-height: 36px; font-size: 13px; }
  .faner a { min-height: 36px; padding: 6px 12px; font-size: 14px; }
  .btn { min-height: 36px; padding: 7px 14px; font-size: 14px; }
  .btn2 { min-height: 34px; padding: 6px 12px; font-size: 14px; }
  .ph, .addph { width: 72px; height: 72px; }
  .part { padding: 8px 10px; }
  .ikon { width: 34px; height: 34px; font-size: 18px; }
  .kortgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .projkort { padding: 12px 14px; min-height: 80px; }
  .projkort b { font-size: 16px; }
  .maplibregl-ctrl-group button { width: 30px; height: 30px; }
}

/* Fotovisning på punktskærmen (computer) */
.fotovisning { margin-bottom: 10px; background: #1d1d1f; border-radius: 10px; padding: 6px; text-align: center; }
.fotovisning .fotoramme { display: inline-block; position: relative; cursor: zoom-in; line-height: 0; vertical-align: top; }
.fotovisning .fotoramme img { width: auto; max-width: 100%; max-height: 360px; display: block; }
.fotovisning .fotoramme .markering { position: absolute; inset: 0; width: 100%; height: 100%; }
.bladr { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; font-size: 13px; color: #fff; }
.bladr button { width: 34px; height: 30px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; font-size: 18px; line-height: 1; }

/* Udbakken: "Alt sendt", "3 venter", "Offline" (trin 4) */
.synk {
  font: inherit; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 0; cursor: pointer;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 0; width: auto;
  background: light-dark(#e3f1e8, #1f3a2b); color: light-dark(#1f6b42, #9bd6b3);
}
.synk::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.synk.venter { background: light-dark(#fbefd2, #3d3115); color: light-dark(#8a5a00, #f0c46a); }
.synk.offline { background: light-dark(#e6e3de, #3e3f41); color: var(--mute); }
.synk.fejl { background: light-dark(#f8dedb, #4a1f1b); color: light-dark(#a3271d, #f2a39b); }
.top nav .synk { width: auto; border-radius: 999px; padding: 5px 10px; min-height: 0; font-size: 12px; font-weight: 600; border: 0; }
.tip { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.tip p { margin: 0; }
.offlinelinje { margin-top: 12px; }
.offlinelinje .lenke { font-size: inherit; padding: 0; min-height: 0; }

/* Samtidige rettelser */
.konfliktboks {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0 4px; padding: 10px 12px;
  border-radius: 10px; background: light-dark(#fbefd2, #3d3115); color: light-dark(#6b4500, #f0c46a);
}
.konfliktboks p { margin: 0; font-size: 14px; }
.konfliktboks button { flex: none; }
.konfliktmaerke { font-size: 13px; font-weight: 600; color: light-dark(#8a5a00, #f0c46a); margin-top: 4px; }

/* Kontoret: listen ved siden af planen (computer) */
@media (min-width: 900px) and (pointer: fine) {
  .sideliste { width: min(560px, 42vw); }
}
.kontorhoved { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.kontorhoved .flueben { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0; }
.filtre { gap: 4px; }
.filtre button { min-height: 28px; padding: 0 9px; font-size: 12px; }
.punkttabel { width: 100%; border-collapse: collapse; font-size: 13px; }
.punkttabel th { text-align: left; font-size: 12px; color: var(--mute); font-weight: 600; padding: 6px 6px; position: sticky; top: 0;
  background: var(--bg); z-index: 1; }
.punkttabel td { padding: 7px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.punkttabel td small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }
.punkttabel td.nr { font-weight: 700; white-space: nowrap; }
.punkttabel td.frist { white-space: nowrap; }
.punkttabel td.frist .lenke { display: block; padding: 0; min-height: 0; font-size: 12px; margin-top: 4px; }
.punkttabel tr[data-punkt] { cursor: pointer; }
.punkttabel tr[data-punkt]:hover td { background: light-dark(#f7f3ec, #26272a); }
.punkttabel tr.aktiv td { background: light-dark(#f1e4e7, #3a2a2e); }
.punkttabel tr.anden-plan td { opacity: .7; }
.punkttabel tr.gruppe td { font-weight: 600; color: var(--mute); font-size: 12px; padding-top: 14px; }
.punkttabel input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--acc); }
.punkttabel .st { white-space: nowrap; }
.sideliste .rulle#raekker { padding: 0 6px 12px; }
.tom-liste { padding: 16px 8px; }
.masse { padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.massehoved, .massebund { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.massefelter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.massebund .stor { width: auto; padding: 0 16px; }
.kontorbund { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); }
.pin.aktiv { outline: 3px solid #fff; box-shadow: 0 0 0 6px var(--acc); z-index: 5; }

/* Dokumenter på sagen */
.mappevalg { margin: 12px 0; }
.doktabel { width: 100%; }
.doktabel th { text-align: left; }
.doktabel td small { display: block; color: var(--mute); font-size: 12px; }
.doktabel td.handlinger { white-space: nowrap; text-align: right; }
.doktabel tr.trukket td { opacity: .6; }
.doktabel tr.versioner > td { padding-top: 0; }
.doktabel details summary { cursor: pointer; font-size: 13px; color: var(--mute); }
details.trukne { margin-top: 14px; }
details.trukne summary { cursor: pointer; color: var(--mute); }
label.indlejret { display: flex; flex-direction: column; font-size: 12px; color: var(--mute); }

/* Computer (mus og stor skærm): kompakt over hele sitet (gennemgang 28.11.2026). Telefonen beholder de store
   knapper og felter til marken. Står sidst, så det vinder over de mere specifikke regler længere oppe. */
@media (min-width: 900px) and (pointer: fine) {
  body { font-size: 14px; }
  h2 { font-size: 22px; }
  h3 { font-size: 16px; margin-bottom: 6px; }
  p { margin-bottom: 8px; }
  label { font-size: 13px; }
  .side { padding-top: 16px; }
  .side > h2, .sidehoved, .projhoved { margin-bottom: 12px; }
  .felt { padding: 12px 14px; border-radius: 10px; }
  .tom { padding: 20px 12px; }
  .lille, .mute.lille { font-size: 12px; }

  /* Felter */
  .in, .ny .in, .part .in { min-height: 32px; font-size: 14px; padding: 5px 9px; border-radius: 8px; }
  textarea.in { min-height: 72px; }
  .drop input[type=file] { padding: 3px 6px; }
  .stak select, .top select { min-height: 30px; padding: 2px 6px; border-radius: 7px; font-size: 13px; }
  label.indlejret { gap: 2px; }

  /* Knapper */
  .btn, a.btn { min-height: 32px; padding: 5px 12px; font-size: 14px; border-radius: 8px; }
  .btn2, a.btn2 { min-height: 30px; padding: 4px 10px; font-size: 13px; border-radius: 8px; }
  .btn2.lille, .stak a.btn, .stak a.btn2 { min-height: 26px; padding: 2px 8px; font-size: 12px; }
  .stor { min-height: 36px; font-size: 14px; border-radius: 9px; }
  .ghost { min-height: 32px; font-size: 13px; border-radius: 8px; padding: 0 12px; }
  .ghost.lille { min-height: 28px; font-size: 12px; }
  .lenke { padding: 4px; font-size: 13px; }
  .chips { gap: 5px; }
  .chips button { min-height: 28px; padding: 0 10px; font-size: 12px; }
  .valg button { min-height: 44px; padding: 10px 14px; font-size: 15px; border-radius: 10px; }
  .startknap { max-width: 260px; }

  /* Upload-felter: knappen står for sig selv i stedet for at fylde en hel kolonne */
  .ny { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; gap: 6px; margin-top: 8px; }
  .ny > .btn, .ny > button { justify-self: start; }
  .drop { margin-bottom: 12px; }

  /* Topbjælke, faner og kort */
  .top { padding-top: 6px; padding-bottom: 6px; }
  .top .navn img { width: 30px; height: 30px; }
  .top .navn b { font-size: 17px; }
  .top nav a, .top nav button { min-height: 32px; padding: 4px 10px; font-size: 13px; }
  .top nav button.avatar { width: 32px; height: 32px; min-height: 32px; font-size: 12px; }
  .faner a { min-height: 32px; padding: 4px 11px; font-size: 13px; }
  .tilbage { width: 32px; height: 32px; font-size: 22px; }
  .kortgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 8px; }
  .projkort { padding: 10px 12px; min-height: 0; border-radius: 10px; }
  .projkort b { font-size: 15px; }
  .projkort .m { font-size: 13px; }
  .flueben { margin-top: 10px; }
  .stak td { padding: 6px 8px; }
  .adm { gap: 18px; }
  .part { padding: 6px 10px; }
  .mappevalg { margin: 8px 0; }
}

/* Projektsiden på computer: menu i venstre side, indholdet i midten */
@media (min-width: 900px) and (pointer: fine) {
  .projektramme { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
  .projmenu { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 14px; }
  .projmenu .projhoved { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
  .projmenu .projhoved h2 { font-size: 18px; line-height: 1.25; }
  .projmenu .projhoved small { margin-top: 2px; }
  .projmenu .tilbage { width: auto; height: auto; font-size: 13px; font-weight: 600; color: var(--mute); padding: 2px 0; }
  .projmenu .tilbage::after { content: ' Alle projekter'; }
  .projmenu .tilbage:hover { background: none; color: var(--ink); }
  .projmenu .faner { flex-direction: column; margin: 0; gap: 2px; }
  .projmenu .faner a { justify-content: flex-start; border: 1px solid transparent; }
  .projmenu .faner a:hover { background: light-dark(#e8e1d6, #2c2d2f); color: var(--ink); }
  .projmenu .faner a[aria-current=page] { background: var(--card); border-color: var(--line); color: var(--ink); }
  .projindhold { min-height: 60vh; }
  .projindhold > #besked { margin-bottom: 10px; }
}
@media (min-width: 900px) and (pointer: fine) {
  .projmenu .tilbage::after { content: '\00a0 Alle projekter'; }
  .startknap { display: inline-flex; width: auto; padding: 0 20px; }
  .gemfelt .stor { width: auto; padding: 0 28px; }
  .tilstede input { width: 18px; height: 18px; }
  .udsnitvaerktoej button { min-height: 28px; padding: 0 10px; font-size: 12px; }
  .bund .stor { max-width: 300px; }
}

.doktabel td .in { min-width: 140px; }
.btn.lille { min-height: 26px; padding: 2px 10px; font-size: 12px; }

/* Projektets faner på telefonen: alle fire på én linje */
.projmenu .faner { flex-wrap: nowrap; width: 100%; margin: 4px 0 0; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.projmenu .faner a { flex: 1 1 auto; justify-content: center; padding: 6px 4px; font-size: 13px; min-height: 40px; white-space: nowrap; }
@media (min-width: 900px) and (pointer: fine) {
  .projmenu .faner { width: auto; overflow: visible; }
  .projmenu .faner a { flex: none; justify-content: flex-start; padding: 4px 11px; }
}

/* Telefon: topbjælken på én linje, mapperne på én linje (vandret rulning) og dokumenterne som kort */
@media (max-width: 700px) {
  .top { flex-wrap: nowrap; gap: 8px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .top .navn span { display: none; }   /* kun ikonet; organisationen står i avatar-menuen */
  .top .navn img { width: 32px; height: 32px; }
  .top nav { flex-wrap: nowrap; gap: 2px; }
  .top nav a, .top nav button { min-height: 36px; padding: 6px 8px; font-size: 14px; }
  .top nav button.avatar { width: 36px; height: 36px; min-height: 36px; padding: 0; font-size: 13px; }
  .top select { max-width: 110px; }
  .projhoved { flex-wrap: nowrap; }
  .projhoved > div { flex: 1 1 0; }
  .projhoved h2 { font-size: 21px; }
}

/* Bundbjælken med udbakkens status ("Alt sendt", "3 venter", "Offline") på siderne med topbjælken */
.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: flex-end; align-items: center;
  padding: 4px max(4vw, 12px); padding-bottom: max(4px, env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.statusbar .synk { font-size: 12px; padding: 3px 10px; }
.side { padding-bottom: max(64px, calc(env(safe-area-inset-bottom) + 48px)); }

/* Registreringer på projektet: lave kort, status højrestillet på linjen med dato og antal */
.regkort { min-height: 0; padding: 10px 14px; gap: 2px; }
.regkort b { font-size: 16px; }
.reglinje { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reglinje .tag { margin-top: 0; flex: none; }
#tilsynliste { gap: 8px; }

/* Tegninger på telefonen: navnet på én linje, version, status og dato småt på den næste, knapperne under */
@media (max-width: 700px) {
  .tegningtabel tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 0; }
  .tegningtabel td { padding: 0; }
  .tegningtabel td::before { content: none !important; }
  .tegningtabel tr::after { content: ''; flex-basis: 100%; height: 0; order: 2; }   /* linjeskift før detaljerne */
  .tegningtabel td:first-child { flex: 1 1 0; order: 1; }
  .tegningtabel td:last-child { flex: none; order: 1; }
  .tegningtabel td.kv { order: 3; font-size: 12px; color: var(--mute); }
  .tegningtabel td.kv:nth-child(2) { margin-left: 0; }
  .tegningtabel .knapper { gap: 6px; justify-content: flex-end; }
  .tegningtabel .btn.lille, .tegningtabel .btn2.lille { min-height: 32px; }
}

/* Mærket for tegningen til registreringer, og beskeden når der er en nyere version af den */
.maerke { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; vertical-align: 2px;
  background: var(--acc); color: #fff; cursor: help; }
.nyereversion { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 12px;
  color: light-dark(#6b4500, #f0c46a); }

.mappemenu { margin: 10px 0; }
.tegningtabel tr.gruppe td { font-weight: 600; color: var(--mute); font-size: 12px; padding-top: 16px; border-bottom: 0; }
@media (max-width: 700px) { .tegningtabel tr.gruppe { display: block; } .tegningtabel tr.gruppe::after { content: none; } }

/* Dokumenter på telefonen: titel og knapper på én linje, dato og hvem der lagde det ind småt under */
.kun-telefon-inline { display: none; }
@media (max-width: 700px) {
  .kun-telefon-inline { display: inline; }
  .doktabel tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 8px 0; }
  .doktabel tr::after { content: ''; flex-basis: 100%; height: 0; order: 2; }
  .doktabel td { padding: 0; }
  .doktabel td:first-child { flex: 1 1 0; order: 1; }
  .doktabel td.handlinger { order: 1; flex: none; white-space: nowrap; }
  .doktabel td.kv { order: 3; font-size: 12px; color: var(--mute); }
  .doktabel td.kv:empty { display: none; }
  .doktabel td.lagtind small { display: inline; font-size: 12px; }
  .doktabel td.lagtind br { display: none; }
  .doktabel td.lagtind span::before { content: ' · '; }
  .doktabel .btn2.lille { min-height: 30px; }
  .doktabel tr.versioner { display: block; }
  .doktabel tr.versioner::after { content: none; }
}

/* PDF inde i appen (PDF.js i en ramme under Notars bjælke) */
.pdfflade { flex: 1; width: 100%; border: 0; background: #e9e4da; }
.flytmappe { margin-top: 6px; }

/* Logoet (aftalt 28.11.2026): det brede logo med navn og byline på login-siden og i topbjælken på større skærme;
   ikonet alene på telefonen */
.logo-bred { width: min(320px, 100%); height: auto; }
.top .navn .logo-top { display: none; }
@media (min-width: 701px) {
  .top .navn .ikon-lille { display: none; }
  .top .navn .logo-top { display: block; width: 180px; height: auto; border-radius: 0; }
  .top .navn span b { display: none; }
  .top .navn span small { border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px; }
}
.spaerret { color: var(--open); font-weight: 600; margin-top: 2px; }

/* Rapport-arket */
.rapportkort { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.rapportkort small { display: block; color: var(--mute); font-size: 12px; }
.rapportstatus { display: flex; align-items: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--acc); border-radius: 50%;
  animation: drej .8s linear infinite; }
@keyframes drej { to { transform: rotate(360deg); } }
.modtager { margin: 4px 0; }
.modtager .mute { font-size: 12px; }
.rapporthistorik > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rapporthistorik p { margin: 2px 0 0; }
.logovalg { margin: 6px 0; }
.logovalg img { max-height: 56px; max-width: 220px; object-fit: contain; display: block; background: #fff; padding: 6px;
  border: 1px solid var(--line); border-radius: 8px; }
.fejltekst { color: var(--open); }
.fristknapper { display: flex; gap: 6px; margin-top: 6px; }
.fristknapper .ghost { flex: 1; }

/* Ret dokument på telefonen: titel, mappe og dato under hinanden i fuld bredde, knapperne nederst */
@media (max-width: 700px) {
  .doktabel tr.redigerer { flex-direction: column; align-items: stretch; gap: 8px; }
  .doktabel tr.redigerer::after { content: none; }
  .doktabel tr.redigerer td { order: 0; flex: none; width: 100%; color: inherit; font-size: 14px; }
  .doktabel tr.redigerer td.lagtind, .doktabel tr.redigerer td:nth-child(3), .doktabel tr.redigerer td:empty { display: none; }
  .doktabel tr.redigerer .in { width: 100%; min-width: 0; min-height: 40px; font-size: 16px; box-sizing: border-box; }
  .doktabel tr.redigerer .flytmappe { display: block; margin-top: 8px; }
  .doktabel tr.redigerer td.handlinger { order: 5; display: flex; gap: 8px; }
  .doktabel tr.redigerer td.handlinger .btn, .doktabel tr.redigerer td.handlinger .btn2 { flex: 1; min-height: 40px; }
}

/* Parter på projektet */
.partgruppe { margin: 0 0 12px; }
.partgruppe h4 { margin: 0 0 4px; font-size: 13px; color: var(--mute); font-weight: 600; }
.part2 { border-top: 1px solid var(--line); padding: 6px 0; }
.partlinje { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.partlinje .knapper { display: flex; gap: 10px; font-size: 13px; }
.kontakter { list-style: none; margin: 2px 0 0; padding: 0; font-size: 13px; color: var(--mute); }
.kontakter li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kontakter .ikon.lille { min-height: 22px; min-width: 22px; padding: 0; font-size: 14px; }
.part2 .nykontakt { margin-top: 6px; }
.udelad { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; }
.partlinje .knapper button { margin: 0; padding: 0; min-height: 0; line-height: 1.4; font-size: 13px; }
.kontakter li { margin: 0; line-height: 1.5; }
.kontakter .ikon.lille { height: 20px; width: 20px; min-height: 20px; min-width: 20px; margin: 0; line-height: 1; }
.part2:first-of-type { border-top: 0; }

/* iPhone: datofelter har en indbygget mindstebredde og kan blive bredere end skærmen */
input.in[type=date] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; box-sizing: border-box; }
input.in[type=date]::-webkit-date-and-time-value { text-align: left; }
@media (max-width: 700px) {
  .doktabel tr.redigerer td { min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .doktabel tr.redigerer input.in[type=date] { display: block; width: 100%; }
}
/* Kontakt (ny eller ret): to små felter på en linje, e-mail under, knapperne nederst */
.kontaktform { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0 4px; }
.kontaktform[hidden] { display: none; }
.kontaktform .bred { grid-column: 1 / -1; }
.kontaktform .in { min-height: 34px; font-size: 16px; padding: 4px 8px; min-width: 0; }
.kontaktform .knapper { display: flex; gap: 8px; }
.kontakter.faste [data-fjernkontakt] { display: none; }

/* Punktskærmen på telefonen: intet må blive bredere end skærmen (iPhones datofelt og lange ord i historikken) */
.to { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.to > div { min-width: 0; }
.to .in, #felter textarea.in, #felter select.in, #felter input.in { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.punktlayout, .punktlayout > .rulle { min-width: 0; }
#felter { overflow-x: hidden; }
.historik { overflow-wrap: anywhere; }
.fristknapper .ghost { min-width: 0; white-space: nowrap; padding: 0 6px; }

/* iPhone (Safari): planens side følger det synlige vindue (100dvh), så knapperne nederst ikke havner bag Safaris
   bjælke. inset: 0 kan på nyere iOS række ind under den. */
.planside { bottom: auto; height: 100vh; height: 100dvh; }

/* "Alt sendt" som et lille mærke nederst til højre i stedet for en bjælke i hele bredden */
.statusbar { left: auto; right: 12px; bottom: max(8px, env(safe-area-inset-bottom)); padding: 0; background: none; border: 0; }
.statusbar .synk { box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.side { padding-bottom: 48px; }
/* Kontaktlinjen: tekst til venstre, ✎ og × samlet til højre (brydes ikke hver for sig) */
.kontakter li { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; flex-wrap: nowrap; }
.kontakter .kontekst { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.kontakter .kontekst a { margin-right: 4px; }
.kontakter .konknapper { flex: none; display: flex; gap: 2px; }
.kontakter li { padding: 3px 0; }
.kontakter .konnavn { display: block; color: var(--ink); }
.kontakter .konlinje { display: block; font-size: 12px; }
.kontakter .konlinje:empty { display: none; }

/* Punktskærmen på telefonen: tættere, så alt til og med frist kan ses uden at rulle (historikken må godt ligge under) */
@media (max-width: 700px) {
  #felter.rulle { padding-top: 8px; }
  #felter .f { margin: 10px 0 4px; font-size: 13px; }
  #felter .f:first-child { margin-top: 0; }
  #felter #tekst { min-height: 0; height: 72px; }
  #felter .chips { gap: 6px; }
  #felter .chips button { min-height: 36px; padding: 0 12px; font-size: 14px; }
  #felter .ph, #felter .addph { width: 60px; height: 60px; }
  #felter .addph span { font-size: 10px; }
  #felter .to .in { min-height: 38px; }
  #felter .fristknapper { margin-top: 4px; }
  #felter .fristknapper .ghost { min-height: 30px; font-size: 12px; }
}
@media (max-width: 700px) {
  /* Tag foto / Vælg billede som lave knapper på én linje; fotos som små miniaturer */
  #felter .addph { width: auto; height: 40px; flex-direction: row; gap: 6px; padding: 0 12px; font-size: 17px; }
  #felter .addph span { font-size: 13px; }
  #felter .fotos { align-items: center; }
  .punktbund { padding: 8px 16px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .punktbund .stor { min-height: 46px; }
}

/* Deltagere fra projektets parter: ét tryk tilføjer */
.partvaelger { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.partvaelger > span { flex-basis: 100%; }
.partvaelger button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left;
  border: 1px dashed var(--line); background: var(--card); border-radius: 10px; padding: 5px 10px; font: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; }
.partvaelger button small { font-weight: 400; font-size: 11px; color: var(--mute); }
.lavrapport { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

/* Dokumenter på computeren som Stifinder: mappetræet til venstre, filerne til højre (aftalt 29.11.2026) */
@media (min-width: 761px) and (pointer: fine), (min-width: 1101px) {
  .stifinder { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 420px; background: var(--card);
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .mappetrae { display: flex; flex-direction: column; gap: 1px; padding: 8px 6px; border-right: 1px solid var(--line);
    background: light-dark(#faf8f4, #26262a); }
  .traerod { font-size: 12px; font-weight: 600; color: var(--mute); padding: 4px 8px 6px; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; }
  .mappetrae button { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; border: 0; background: none;
    font: inherit; font-size: 13px; padding: 5px 8px 5px 18px; border-radius: 6px; cursor: pointer; color: var(--ink); min-height: 0; }
  .mappetrae button:hover { background: light-dark(#efe9e0, #34343a); }
  .mappetrae button[aria-pressed=true] { background: light-dark(#e8dcdf, #3d2c31); font-weight: 600; }
  .mappetrae .antal { color: var(--mute); font-weight: 400; }
  .mappeikon { width: 16px; height: 12px; flex: none; position: relative; border-radius: 2px; background: #d8b45a; }
  .mappeikon::before { content: ''; position: absolute; left: 0; top: -3px; width: 7px; height: 4px; border-radius: 2px 2px 0 0; background: #d8b45a; }
  .mappetrae button[aria-pressed=true] .mappeikon { background: #e6c66c; }
  .mapperude { padding: 10px 14px; min-width: 0; position: relative; }
  .mapperude.over { outline: 2px dashed var(--acc); outline-offset: -6px; background: light-dark(#f7f0f1, #33292b); }
  .sti { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
  .sti span { margin: 0 4px; }
  .sti b { color: var(--ink); }
  .vaerktoejslinje { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; padding: 6px 8px;
    border: 0; border-bottom: 1px solid var(--line); background: none; border-radius: 0; }
  .vaerktoejslinje .ny { flex: 1; margin: 0; grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) auto auto; }
  .vaerktoejslinje .indlejret { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); }
  .stifinder .doktabel { font-size: 13px; }
  .stifinder .doktabel th { font-weight: 600; font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line); }
  .stifinder .doktabel td { padding: 5px 8px; border-bottom: 0; vertical-align: middle; }
  .stifinder .doktabel tbody tr:hover > td { background: light-dark(#f4efe8, #2f2f34); }
  .stifinder .doktabel a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
  .stifinder .doktabel a b { font-weight: 500; }
  .stifinder .doktabel a:hover b { text-decoration: underline; }
  .stifinder .doktabel td small { display: inline; margin-left: 8px; }
  .filikon { width: 13px; height: 16px; flex: none; border-radius: 2px; background: #c94a4a; position: relative; }
  .filikon::after { content: 'PDF'; position: absolute; left: 0; right: 0; bottom: 2px; font-size: 5px; font-weight: 700; color: #fff;
    text-align: center; letter-spacing: -.2px; }
  .stifinder .doktabel td.lagtind small { display: inline; margin: 0; }
  .stifinder .doktabel td.lagtind br { display: none; }
  .stifinder .doktabel td.lagtind span::before { content: ' · '; }
  /* Knapperne ses, når musen er over rækken (som i Stifinder) */
  .stifinder .doktabel td.handlinger .btn2 { opacity: 0; border: 0; background: none; color: var(--acc); padding: 2px 6px;
    text-decoration: underline; }
  .stifinder .doktabel tr:hover td.handlinger .btn2, .stifinder .doktabel td.handlinger .btn2:focus { opacity: 1; }
  .stifinder .doktabel tr.redigerer td.handlinger .btn2 { opacity: 1; }
  .stifinder .felt.tom { border: 0; background: none; color: var(--mute); }
}
@media (min-width: 761px) and (pointer: fine), (min-width: 1101px) {
  .mappetrae .mappenavn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stifinder .doktabel td:first-child small { display: none; }
  .vaerktoejslinje .ny { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .vaerktoejslinje .ny > input[type=file] { flex: 1 1 200px; }
  .vaerktoejslinje .ny > input[name=titel] { flex: 1 1 180px; }
  .vaerktoejslinje .indlejret { flex-direction: row !important; margin: 0; }
  .vaerktoejslinje .indlejret .in { width: auto; margin: 0; }
  .partvaelger button { flex-direction: row; align-items: baseline; gap: 6px; padding: 3px 9px; font-size: 13px; }
}

/* Projektets menu i venstre side, når en registrering er åben (kun computer) */
.projskinne { display: none; }
@media (min-width: 1100px) and (pointer: fine) {
  .projskinne { display: flex; flex-direction: column; gap: 1px; width: 200px; flex: none; padding: 12px 10px;
    border-right: 1px solid var(--line); background: var(--card); overflow-y: auto; font-size: 13px; }
  .projskinne a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 7px; font-weight: 600; }
  .projskinne a:hover { background: light-dark(#f1ece4, #34343a); }
  .projskinne .skinnetop { font-size: 12px; color: var(--mute); padding: 2px 10px; }
  .projskinne .skinnenavn { padding: 4px 10px 10px; font-size: 14px; line-height: 1.25; }
  .skinnereg { display: flex; flex-direction: column; gap: 1px; margin: 0 0 6px 10px; padding-left: 6px; border-left: 2px solid var(--line); }
  .skinnereg a { font-weight: 500; padding: 4px 8px; display: flex; justify-content: space-between; gap: 6px; }
  .skinnereg a small { color: var(--mute); font-weight: 400; }
  .skinnereg a[aria-current=page] { background: light-dark(#e8dcdf, #3d2c31); font-weight: 700; }
  .projskinne + .sideliste { width: min(380px, 30vw); }
}

/* Registreringen i rammen på computeren (topbjælke + projektets menu), som de andre sider */
.planside.iramme { position: relative; inset: auto; height: calc(100dvh - 120px); min-height: 520px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.iramme > .planbar .tilbage { display: none; }
.iramme > .planbar { padding-top: 6px; }
.regramme .skinnereg { display: flex; flex-direction: column; gap: 1px; margin: 0 0 6px 12px; padding-left: 6px;
  border-left: 2px solid var(--line); font-size: 13px; }
.regramme .skinnereg a { font-weight: 500; padding: 3px 8px; min-height: 0; display: flex; justify-content: space-between; gap: 6px; }
.regramme .skinnereg a small { color: var(--mute); font-weight: 400; }
.regramme .skinnereg a[aria-current=page] { background: light-dark(#e8dcdf, #3d2c31); font-weight: 700; border-color: transparent; }
.regramme .side, .side:has(.regramme) { padding-bottom: 16px; }

/* Egen filvælger overalt (i stedet for Windows' standardknap) */
.filvaelger { display: inline-flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.filvaelger input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.filvaelger .btn2 { flex: none; pointer-events: none; }
.filvaelger .filnavn { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.filvaelger:focus-within .btn2 { outline: 2px solid var(--acc); outline-offset: 2px; }

@media (min-width: 761px) and (pointer: fine), (min-width: 1101px) {
  /* Tegninger: én rude (ingen mappetræ) */
  .stifinder.eneste { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* Lavere rækker og værktøjslinje på én linje */
  .vaerktoejslinje { flex-wrap: nowrap; padding: 4px 6px; }
  .vaerktoejslinje > .mute { white-space: nowrap; }
  .vaerktoejslinje .ny { flex-wrap: nowrap; }
  .vaerktoejslinje .ny > .filvaelger { flex: 1 1 200px; }
  .vaerktoejslinje .ny > .in { flex: 1 1 150px; min-height: 30px; padding: 3px 8px; font-size: 13px; }
  .vaerktoejslinje .indlejret .in { min-height: 30px; padding: 3px 8px; font-size: 13px; }
  .vaerktoejslinje .btn { min-height: 30px; padding: 3px 12px; font-size: 13px; }
  .stifinder :is(.doktabel, .tegningtabel) { font-size: 13px; }
  .stifinder :is(.doktabel, .tegningtabel) th { font-weight: 600; font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line); padding: 4px 8px; }
  .stifinder :is(.doktabel, .tegningtabel) td { padding: 3px 8px; border-bottom: 0; vertical-align: middle; line-height: 1.3; }
  .stifinder :is(.doktabel, .tegningtabel) tbody tr:hover > td { background: light-dark(#f4efe8, #2f2f34); }
  .stifinder .doktabel a b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42ch; display: inline-block; vertical-align: middle; }
  .stifinder .doktabel td.lagtind, .stifinder .doktabel td.lagtind small { white-space: nowrap; }
  .stifinder .doktabel td.lagtind small { font-size: 12px; }
  .stifinder .tegningtabel .tegningnavn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
  .stifinder .tegningtabel .tegningnavn b { font-weight: 500; }
  .stifinder .tegningtabel .tegningnavn:hover b { text-decoration: underline; }
  .stifinder .tegningtabel td .knapper .btn2 { opacity: 0; border: 0; background: none; color: var(--acc); padding: 2px 6px;
    text-decoration: underline; min-height: 0; }
  .stifinder .tegningtabel tr:hover td .knapper .btn2, .stifinder .tegningtabel td .knapper .btn2:focus { opacity: 1; }
  .stifinder .tegningtabel td .knapper { flex-wrap: nowrap; justify-content: flex-end; }
  .stifinder .tegningtabel .nyereversion .btn { opacity: 1; }
}
.filvaelger { display: inline-flex !important; flex-direction: row !important; margin: 0; }
@media (min-width: 761px) and (pointer: fine), (min-width: 1101px) {
  .stifinder .tegningtabel .knapper a.kun-telefon-inline { display: none; }
  .stifinder #planliste > p.kun-kontor { margin: 4px 0 6px; }
  .stifinder #planliste > p.kun-kontor .btn2 { border: 0; background: none; padding: 0; min-height: 0; font-size: 13px;
    color: var(--acc); text-decoration: underline; font-weight: 600; }
  .stifinder #planliste > p.mute { margin: 10px 0 0; }
}
.projsoeg { width: 100%; max-width: 480px; margin: 0 0 12px; }
.offlinelinje { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 10px; }
.offlinelinje .flueben { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 600; }

/* Favoritprojekter: stjernen i kortets øverste højre hjørne */
.projkortboks { position: relative; display: flex; }
.projkortboks > .projkort { flex: 1; padding-right: 44px; }
.stjerne { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; min-height: 0; border: 0; background: none;
  font-size: 20px; line-height: 1; color: var(--mute); cursor: pointer; border-radius: 8px; padding: 0; }
.stjerne[aria-pressed=true] { color: #d4a017; }
.stjerne:hover { background: light-dark(#f1ece4, #34343a); }
.kortgrid > .fuld { grid-column: 1 / -1; margin: 6px 0 -4px; }

/* Eksterne (trin 7): samme sider, men uden det, de ikke må (serveren håndhæver det) */
.ekstern :is(.eksportlinje, #masse, #kdeltagere, #kafslut, #kgenaabn, #deltagerknap, #afslut, #genaabn, .lavrapport, #sendtilmig) { display: none !important; }
.ekstern #raekker :is(td:has(> input[data-vaelg]), th:has(> #vaelgalle)) { display: none; }
.ekstern-info { margin: 8px 0 0; font-size: 14px; }
.ekstern #tekst[readonly] { background: transparent; border-style: dashed; }
/* Parter: kun til at se for eksterne; adgang for kontakter (projektleder) */
.kunlaes :is(.partlinje .knapper, .konknapper, #nypart, .nykontakt) { display: none !important; }
.kontakter .adgang { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: 12px; }
.kontakter .adgang .lenke { padding: 0; font-size: 12px; min-height: 0; margin: 0; }
.kontakter .adgang .tag { font-size: 11px; padding: 1px 7px; }
.deltmaerke { font-size: 11px; font-weight: 600; color: var(--done, #2e8b57); border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; margin-right: 4px; }
.delboks { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; background: light-dark(#faf8f4, #26262a); border-radius: 8px; }
.delboks .flueben { display: flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.delboks .knapper { display: flex; gap: 8px; }

/* Superbrugerens systemoverblik */
.systemgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 8px 0 24px; }
.syskort { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.syskort h3 { margin: 0 0 6px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.syskort p { margin: 3px 0; color: var(--mute); overflow-wrap: anywhere; }
.syskort p b { color: var(--ink); }
.syskort .prik { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #2e8b57; }
.syskort.gul .prik { background: #d4a017; }
.syskort.roed .prik { background: #c0392b; }
.syskort.roed { border-color: #c0392b; }

/* Bemærkninger til udbedringen/lukningen under beskrivelsen, og fotos af udbedringen (aftalt 29.11.2026) */
.bemboks { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid #c99a2e; background: light-dark(#fbf5e6, #3a3220);
  border-radius: 0 8px 8px 0; font-size: 13px; }
.bemboks p { margin: 2px 0; }
.ph .flytknap { position: absolute; left: -8px; bottom: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.25); font-size: 13px; padding: 0; cursor: pointer; }
.fotos.udbedring .ph img { outline: 2px solid #c99a2e; outline-offset: -2px; }
.fotooverskrift { margin: 8px 0 4px; font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; }
.fotooverskrift.udb { color: #8a6a1e; }
.fotoramme { position: relative; }
.fotoramme.udbedring { outline: 3px solid #c99a2e; outline-offset: -3px; }
.fotoramme .fotogruppe { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px;
  font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.fotoramme.udbedring .fotogruppe { background: #c99a2e; }
.ph .flytknap { color: var(--ink); background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.pill.annulleret { background: light-dark(#f8dedb, #4a1f1b); color: light-dark(#a3271d, #f2a39b); }
.annullerede { margin-top: 14px; }
.annullerede summary { cursor: pointer; color: var(--mute); font-size: 13px; }
.annullerede .projkort { margin-top: 6px; }
button.ghost.fare { color: var(--open); }
.rapporthistorik .slukket { opacity: .6; }
/* Eksterne har ingen rapportknap (aftalt 29.11.2026) */
.ekstern :is(#krapport, #rapportknap) { display: none !important; }
.mappetrae .deltmaerke { margin-left: auto; font-size: 10px; }
.sti .deltmaerke { margin-left: 8px; }
.sti #delmappe { margin-left: 8px; padding: 0; font-size: 12px; min-height: 0; }
#delmappepanel .delboks { margin: 0 0 8px; }
.sertilsyn { display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--mute); margin: 2px 0; }
.seradgang { display: flex; flex-wrap: wrap; gap: 2px 14px; }

/* Forrige/næste punkt i punktarkets top (aftalt 29.11.2026) */
.punktnav { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 13px; color: var(--mute); white-space: nowrap; }
.punktnav .ikon { width: 36px; height: 36px; font-size: 24px; color: var(--ink); }
.punktnav .ikon:disabled { opacity: .3; }
