:root {
  --accent: #da5713;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee4;
  --ink: #1b242d;
  --ink-2: #4a5560;
  --ink-3: #7a858f;
  --bg: #f6f6f4;
  --card: #ffffff;
  --line: #e2e5e8;
  --line-2: #cfd4d9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 36, 45, .06), 0 6px 20px -8px rgba(27, 36, 45, .12);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--accent);
  --maxw: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
:root { color-scheme: light; }
input, textarea, select, button { color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input, textarea, select { background: #fff; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 2.2vw + 1.2rem, 2.7rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 .9em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
a { color: var(--accent); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Topbjælke ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; min-height: 44px; }
.brand img { height: 30px; width: auto; }
.topnav { display: flex; align-items: center; gap: 6px; }
.navbtn { font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 10px 12px; min-height: 44px; border-radius: 10px; text-decoration: none; cursor: pointer; }
.navbtn:hover { background: var(--bg); }
.navbtn.subtle { color: var(--ink-3); font-weight: 500; }
.admin-state { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 10px; background: var(--accent-soft); border-radius: 999px; }
.admin-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 480px) { .brand span { display: none; } .brand img { height: 26px; } }

.status { background: #fff4e5; color: #7a3e00; border-bottom: 1px solid #f5d9b5; padding: 8px 16px; text-align: center; font-size: 15px; }
.loading { color: var(--ink-3); padding: 40px 0; text-align: center; }

main { padding: 28px 16px 56px; }
.footer { color: var(--ink-3); font-size: 14px; padding: 16px; text-align: center; }

/* ---------- Sider ---------- */
.page-head { margin-bottom: 20px; }
.page-head .sub { color: var(--ink-2); font-weight: 600; margin: 0 0 .6em; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.intro { font-size: 1.08em; max-width: 60ch; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); text-decoration: none; min-height: 44px; margin-bottom: 8px; }
.back:hover { color: var(--accent); }

.section { margin: 0 0 24px; }
.section h2 { display: flex; align-items: center; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.card h2 { margin-bottom: .5em; }
.card.note { background: var(--accent-soft); border-color: #f3cdb6; box-shadow: none; }
.card.note h2 { font-size: 1.1rem; }
.card > :last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { display: flex; gap: 10px; padding: 6px 0; }
.check li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border: 2px solid var(--accent); border-radius: 5px; }
details.fold { border-top: 1px solid var(--line); }
details.fold summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); }
details.fold[open] summary::after { content: "–"; }
details.fold .fold-body { padding-bottom: 12px; }

/* ---------- Store knapper ---------- */
.bigbuttons { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 8px 0 28px; }
@media (min-width: 720px) { .bigbuttons { grid-template-columns: 1fr 1fr; } }
.bigbtn { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; min-height: 44px; }
.bigbtn:hover, .bigbtn:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.bigbtn .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.bigbtn .ico svg { width: 30px; height: 30px; }
.bigbtn h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.bigbtn p { color: var(--ink-2); margin-bottom: 12px; }
.bigbtn > span:last-child { min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.bigbtn .cta { margin-top: auto; } /* links i bunden – samme højde på Uge 1/Uge 2-kortene */
.bigbtn .cta { color: var(--accent); font-weight: 700; }
.bigbtn .cta svg { vertical-align: -3px; margin-left: 4px; transition: transform .15s; }
@media (max-width: 420px) { .bigbtn { grid-template-columns: 44px 1fr; gap: 12px; padding: 16px; } .bigbtn .ico { width: 44px; height: 44px; } .bigbtn .ico svg { width: 24px; height: 24px; } }
.bigbtn:hover .cta svg { transform: translateX(3px); }

.linkcard { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; background: var(--ink); color: #fff; border-radius: 16px; padding: 18px 20px; text-decoration: none; margin-bottom: 24px; }
.linkcard .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; }
.linkcard .ico svg { width: 26px; height: 26px; }
.linkcard h2 { margin: 0 0 2px; font-size: 1.25rem; color: #fff; }
.linkcard p { margin: 0; color: #c9d0d6; font-size: 15px; }
.linkcard .arrow { color: #fff; }
.linkcard:hover { background: #26323d; }
@media (max-width: 480px) { .linkcard { grid-template-columns: 48px 1fr; } .linkcard .arrow { display: none; } }

/* ---------- Knapper ---------- */
.btn { font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); padding: 10px 16px; min-height: 44px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--bg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(.95); }
.btn.danger { background: #b3261e; color: #fff; border-color: #b3261e; }
.btn.big { font-size: 18px; padding: 14px 22px; min-height: 52px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.small { font-size: 14px; padding: 6px 10px; min-height: 36px; }
.iconbtn { font: inherit; background: none; border: 0; color: var(--ink-2); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--bg); color: var(--ink); }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Download ---------- */

/* ---------- Ugeplan ---------- */
.weeks { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .weeks { grid-template-columns: 1fr 1fr; } }
.week { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.week h3 { margin: 0; padding: 12px 18px; background: var(--ink); color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.week ul { list-style: none; padding: 0; margin: 0; }
.week li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); }
.week li:first-child { border-top: 0; }
.week li b { color: var(--ink-2); font-weight: 600; }
.sched-note { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.cards3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.cards3 .card h3 { color: var(--accent); }
.cards3 .card p { white-space: pre-line; }
.pre { white-space: pre-line; }

/* ---------- Idébank ---------- */
.search { position: relative; margin: 6px 0 22px; max-width: 560px; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 12px 44px 12px 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); min-height: 48px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.search-hint { color: var(--ink-2); font-size: 15px; margin: -12px 0 16px; }
.topics { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.topic { position: relative; }
.topicbtn { width: 100%; text-align: left; font: inherit; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 18px; cursor: pointer; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; color: var(--ink); box-shadow: var(--shadow); min-height: 88px; }
.topicbtn:hover, .topicbtn:focus-visible { border-color: var(--accent); }
.topicbtn .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.topicbtn .ico svg { width: 26px; height: 26px; }
.topicbtn h3 { margin: 0 0 2px; font-size: 1.1rem; }
.topicbtn .count { color: var(--ink-2); font-size: 15px; }
.topicbtn.dim { opacity: .45; }
.topicbtn .hits { color: var(--accent); font-weight: 700; }
.ideas { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.idea { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.idea .n { color: var(--accent); font-weight: 800; }
.idea.hit { border-color: var(--accent); background: var(--accent-soft); }
mark { background: #ffe39a; color: inherit; padding: 0 1px; border-radius: 2px; }
.frame { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 15px; color: var(--ink-2); }
.empty { color: var(--ink-3); padding: 20px 0; text-align: center; }

/* ---------- Dialoger ---------- */
.dialog { border: 0; border-radius: 18px; padding: 0; width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.dialog.small { width: min(440px, calc(100% - 24px)); }
.dialog::backdrop { background: rgba(27, 36, 45, .55); }
.dialog form { display: contents; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.dialog-head h2 { margin: 0; font-size: 1.3rem; }
.dialog-body { padding: 18px 20px; overflow: auto; max-height: calc(100dvh - 160px); }
.dialog-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 12px 20px 16px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--card); }
.dialog-foot .foot-left { margin-right: auto; font-size: 14px; color: var(--ink-3); }
@media (max-width: 600px) {
  .dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .dialog-body { max-height: none; }
  .topic-dialog[open], .edit-dialog[open] { display: flex; flex-direction: column; }
  .topic-dialog .dialog-body, .edit-dialog .dialog-body { flex: 1; }
}

/* ---------- Formularer ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.field input[type=text], .field input[type=password], .field input[type=number], .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; min-height: 44px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.field.inline { display: flex; align-items: center; gap: 10px; }
.field.inline > span { margin: 0; }
.field input[type=checkbox] { width: 20px; height: 20px; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form-error { color: #b3261e; font-weight: 600; margin: 4px 0 0; }
.subform { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--bg); }
.subform-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; }
.subform-head .btnrow { gap: 4px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; color: var(--ink); }
.settings-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.settings-nav button { font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--line-2); background: var(--card); padding: 8px 12px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.settings-nav button[aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.muted { color: var(--ink-3); font-size: 14px; }

/* ---------- Adminværktøjer på siderne ---------- */
.admintools { display: inline-flex; gap: 4px; margin-left: auto; }
.admintools .tool { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); padding: 4px 8px; min-height: 32px; min-width: 32px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.admintools .tool:hover { border-color: var(--accent); color: var(--accent); }
.admintools .tool svg { width: 15px; height: 15px; }
.admin-add { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 14px; text-align: center; margin: 0 0 24px; }
.admin-add .btn { margin: 4px; }
.toolbar-inline { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.toolbar-inline h2 { margin: 0; }
.idea .admintools { grid-column: 1 / -1; justify-self: end; }
.topic .admintools { display: flex; justify-content: flex-end; margin: 6px 0 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); z-index: 60; max-width: calc(100% - 32px); }
.toast.error { background: #b3261e; }

/* ---------- Elevforslag ---------- */
.proposal { margin-top: 28px; }
.proposal .field { margin-bottom: 10px; }
.proposal textarea, .proposal input[type=text], .proposal select { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; min-height: 44px; }
.proposal textarea { resize: vertical; }
.prop-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--bg); }
.prop-item .meta { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; }
.navbtn .pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; margin-left: 4px; }

/* ---------- Installér som app ---------- */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 10px 10px 12px; box-shadow: 0 10px 30px -10px rgba(27,36,45,.35); }
.install-bar img { border-radius: 9px; }
.install-text { display: grid; min-width: 0; font-size: 14px; line-height: 1.3; }
.install-text span { color: var(--ink-2); }
@media (min-width: 720px) { .install-bar { left: auto; right: 20px; max-width: 460px; } }
.install-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.install-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.install-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.install-steps svg { vertical-align: -4px; }

/* ---------- Elever og grupper ---------- */
.elev-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .elev-grid { grid-template-columns: 1fr 1fr; } }
.elev-form .field { margin-bottom: 12px; } .elev-form .btn { margin-top: 4px; }
.report-card .btn { margin-top: 6px; }
.status-ok { color: #1f7a4d; font-weight: 600; }
.code-pill { font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .12em; background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 8px; font-size: 15px; }
.backup-table { width: 100%; border-collapse: collapse; font-size: 14px; } .backup-table th, .backup-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dialog.modal--wide { width: min(1000px, calc(100% - 24px)); }

/* Gruppevalg (popup) og gruppekode */
.group-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.group-code .code-pill { cursor: pointer; font-size: 18px; padding: 6px 14px; }
.group-code--big .code-pill { font-size: 32px; padding: 10px 22px; letter-spacing: .2em; }

/* Underviser: elevrækker */
.student-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0; }
.student-actions { display: inline-flex; gap: 2px; }
.student-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; max-width: 420px; }
.muted.small { font-size: 12px; }
.flag-warn { color: #b45309; font-weight: 700; }

/* ===================== Visuelt løft: mørk topbjælke, forside, Min gruppe ===================== */
.topbar { background: var(--ink); border-bottom: 0; }
.topbar .brand { color: #fff; }
.topbar .brand img { background: #fff; padding: 4px 8px; border-radius: 8px; height: 34px; }
.topnav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; }
.topnav::-webkit-scrollbar { display: none; }
.topnav .navbtn { color: #e6eaee; white-space: nowrap; padding: 8px 10px; font-size: 15px; }
.topnav .navbtn:hover { background: rgba(255,255,255,.1); }
.topnav .navbtn.subtle { color: #c9d0d6; }
.topnav .admin-state { background: rgba(255,255,255,.12); color: #fff; white-space: nowrap; flex: 0 0 auto; }
.topnav .navbtn { flex: 0 0 auto; }
@media (max-width: 640px) { .topbar-inner { flex-wrap: wrap; min-height: 56px; padding-bottom: 6px; } .topnav { width: 100%; justify-content: flex-start; gap: 2px; } .topnav .navbtn { font-size: 14px; padding: 7px 9px; min-height: 36px; } }
.linkbtn { font: inherit; background: none; border: 0; color: var(--ink-3); text-decoration: underline; cursor: pointer; padding: 6px 4px; min-height: 36px; }
.linkbtn:hover { color: var(--accent); }
.footer { padding: 24px 16px 40px; }

/* Forside – ikke logget ind */
.welcome { max-width: 520px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 16px; }
.welcome-brand { text-align: center; padding: 8px 0 0; }
.welcome-logo { height: 54px; width: auto; margin: 0 auto 14px; }
.welcome-brand h1 { margin-bottom: .25em; }
.welcome-sub { color: var(--ink-2); font-size: 1.05em; margin: 0 auto; max-width: 40ch; }
.auth-card { padding: 16px 18px 20px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.auth-tabs button { font: inherit; font-weight: 700; font-size: 16px; padding: 10px; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; }
.auth-tabs button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .field input[type=text], .auth-form .field input[type=password] { font-size: 17px; padding: 12px 14px; min-height: 48px; }
.field.inline.remember { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.field.inline.remember input { width: 20px; height: 20px; accent-color: var(--accent); }
.btn.big { min-height: 52px; font-size: 17px; justify-content: center; width: 100%; }
.welcome-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.muted.small { font-size: 14px; }

/* Hvor er vi i forløbet */
.progress-bar { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.progress-bar b { display: block; font-size: 15px; }
.progress-text { color: var(--ink-2); }
.progress-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.progress-bar--before { border-left-color: var(--ink-3); } .progress-bar--before .progress-dot { background: var(--ink-3); box-shadow: 0 0 0 4px var(--line); }
.progress-bar--after { border-left-color: #2e9e5b; } .progress-bar--after .progress-dot { background: #2e9e5b; box-shadow: 0 0 0 4px #e3f5ea; }

/* Forside – logget ind (Min gruppe) */
.dash { display: flex; flex-direction: column; gap: 16px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dash-head h1 { margin-bottom: .15em; }
.dash-head p { margin: 0; }
.report-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .report-cards { grid-template-columns: 1fr 1fr; } }
.report-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 20px 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.report-card:hover, .report-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.report-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.report-card .badge { margin: 0; }
.report-card h3 { font-size: 1.3rem; margin: 6px 0 2px; }
.report-card p { color: var(--ink-2); margin: 0; }
.report-card .btn { margin-top: auto; align-self: flex-start; } /* knappen i bunden – samme højde i begge kort */
.report-card > p:last-of-type { margin-bottom: 4px; }
.status-pill { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status-pill.open { background: var(--accent-soft); color: var(--accent); }
.status-pill.ok { background: #e3f5ea; color: #1f7a43; }
@media (max-width: 480px) { .report-card { padding: 16px; } .card { padding: 16px; } }

/* TU2-skabelon i Indstillinger */

/* Læsevisning af opgaven/skabelonen på opgavesiderne */
.tplv summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; list-style: none; }
.tplv summary::-webkit-details-marker { display: none; }
.tplv summary::before { content: '▸'; margin-right: 8px; color: var(--accent); }
.tplv[open] summary::before { content: '▾'; }
.tplv-body { margin-top: 12px; display: grid; gap: 10px; font-size: 15px; }
.tplv-body h3 { margin: 14px 0 2px; font-size: 1.15em; border-top: 1px solid var(--line); padding-top: 12px; }
.tplv-body h4 { margin: 8px 0 0; font-size: 1.02em; } .tplv-body h5 { margin: 6px 0 0; font-size: .95em; color: var(--muted, #556); }
.tplv-body p { margin: 2px 0; } .tplv-body ul, .tplv-body ol { margin: 4px 0 4px 20px; } .tplv-body li { margin: 2px 0; }
.tplv-field { border: 2px dashed #f0a04b; border-radius: 8px; padding: 6px 10px; color: #8a4b08; background: #fff8ef; font-size: 13px; margin: 4px 0 6px; }
.tplv-table { border-collapse: collapse; width: 100%; margin: 4px 0; } .tplv-table td { border: 1px solid var(--line-2, #cfd6dd); padding: 4px 8px; } .tplv-cell { border: 2px solid #f0a04b !important; min-width: 40%; background: #fff8ef; }
.report-card--tpl .status-pill.open { background: #fff1e0; color: #8a4b08; }
.dash--admin .btnrow { flex-wrap: wrap; }

/* Navigation på forsiden (topbjælken har kun logo) */
.nav-cards-title { font-size: 1.05rem; color: var(--ink-2); margin: 22px 0 10px; }
.nav-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.nav-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); min-height: 64px; }
.nav-card:hover { border-color: var(--accent); }
.nav-card .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.nav-card b { display: block; font-size: 15px; } .nav-card .muted.small { display: block; line-height: 1.3; }
.nav-card .arrow { margin-left: auto; color: var(--ink-3); }

/* Gruppe-popups (efter login): opret/tilslut gruppe + Min gruppe. Statuspille på ugekortene. */
.dialog.group-setup { width: min(720px, calc(100vw - 32px)); }
.dialog.group-setup .elev-form h3 { margin: 0 0 4px; }
.dialog.group-info { width: min(560px, calc(100vw - 32px)); }
.elev-head { margin-bottom: 18px; }
/* Rapportkortet: status-mærkat på linje med overskriften (samme højde som de andre bjælker) */
.linkcard > span:nth-child(2) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; min-width: 0; }
.linkcard > span:nth-child(2) h2 { order: 0; }
.linkcard > span:nth-child(2) .status-pill { order: 1; margin: -3px 0; }
.linkcard > span:nth-child(2) p { order: 2; flex-basis: 100%; }
.dialog.group-setup form { display: flex; flex-direction: column; }
.dialog.group-setup .elev-form > p { flex-grow: 1; } /* felter og knapper i samme højde i begge kolonner */
.dialog.group-setup .elev-form .btn { align-self: flex-start; }
