/* ==========================================================================
   ProTask — app-shell og app-komponenter (kundeapp, senere håndværker/admin)
   Bygger på protask.css. §7, §33, §139–143.
   ========================================================================== */

body.app-bg { background: var(--bg); }
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(var(--line), var(--line)) 255px 0 / 1px 100% no-repeat, linear-gradient(var(--surface), var(--surface)) 0 0 / 256px 100% no-repeat; }
.sidebar .btn-new { color: var(--primary); border-color: var(--primary-line); background: var(--primary-soft); }
.sidebar .btn-new:hover { background: #D3E8E3; color: var(--primary-hover); }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px 14px; gap: 18px; overflow-y: auto; }
.sidebar .brand { padding: 0 8px; }
.sidebar .btn-primary { width: 100%; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: var(--r-md); color: var(--ink-2); font-weight: 500; text-decoration: none; font-size: 0.9375rem; }
.side-nav a .icon { color: var(--muted); }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-nav a[aria-current="page"] .icon { color: var(--primary); }
.side-nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.side-nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.side-user { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: var(--fs-meta); color: var(--muted); }

/* ---------- Topbar ---------- */
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 45; height: 64px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: var(--s4); padding: 0 var(--s8); }
.topbar .breadcrumb { min-width: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar .mobile-brand { display: none; }
.badge-dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.avatar-btn { border: 0; background: none; padding: 2px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.avatar-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.pop-wrap { position: relative; }
.popover { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); z-index: 90; overflow: hidden; }
.popover-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.popover-foot { padding: 10px 16px; border-top: 1px solid var(--line); text-align: center; }
.menu { padding: 6px; width: 230px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: 0.9375rem; background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu .icon { color: var(--muted); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-head { padding: 10px 10px 8px; }
.menu-head b { display: block; }

/* ---------- Notifikationer ---------- */
.notif-list { max-height: 420px; overflow-y: auto; }
.notif { display: grid; grid-template-columns: 36px minmax(0, 1fr) 10px; gap: 12px; padding: 13px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); align-items: start; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: #FAFBFB; color: inherit; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.notif-icon .icon { width: 17px; height: 17px; }
.notif-title { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.notif-body { font-size: var(--fs-small); color: var(--ink-2); margin-top: 2px; }
.notif-time { font-size: var(--fs-meta); color: var(--muted); margin-top: 4px; }
.notif .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; }
.notif.is-unread { background: #F6FAF9; }
.notif.is-unread .dot { background: var(--primary); }
.notif.is-unread .notif-icon { background: var(--primary-soft); color: var(--primary); }

/* ---------- Indhold ---------- */
.app-content { width: 100%; max-width: var(--w-app); margin: 0 auto; padding: var(--s8) var(--s8) var(--s16); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4) var(--s6); margin-bottom: var(--s8); flex-wrap: wrap; }
.page-head .h-app { font-size: 1.75rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: var(--ink-2); margin-top: 4px; }
.page-head-actions { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.sec { margin-top: var(--s10); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.sec-title { font-size: 1.0625rem; font-weight: 700; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s6); align-items: start; }
.two-col > .side { position: sticky; top: calc(64px + var(--s6)); display: flex; flex-direction: column; gap: var(--s4); }
@media (max-width: 1180px) { .two-col { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 1000px) { .two-col { grid-template-columns: minmax(0, 1fr); } .two-col > .side { position: static; } }

/* Kræver handling (§34) */
.action-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.action-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.action-row:last-child { border-bottom: 0; }
.action-row:hover { background: #FAFBFB; color: inherit; }
.action-icon { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; }
.action-icon .icon { width: 20px; height: 20px; }
.tone-warning { background: var(--warning-soft); color: var(--warning); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-primary { background: var(--primary-soft); color: var(--primary); }
.tone-success { background: var(--success-soft); color: var(--success); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-neutral { background: var(--surface-2); color: var(--ink-2); }
.action-title { font-weight: 600; }
.action-sub { font-size: var(--fs-small); color: var(--muted); margin-top: 1px; }
.action-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.875rem; color: var(--primary); white-space: nowrap; }
@media (max-width: 640px) { .action-row { padding: 14px 16px; grid-template-columns: 36px minmax(0, 1fr) 20px; } .action-cta span { display: none; } .action-icon { width: 36px; height: 36px; } }

/* Opgavekort (kunde) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s4); }
.tiles > * { min-width: 0; }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.tile-id { font-size: var(--fs-meta); color: var(--muted); }
.tile h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; }
.tile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--s4); font-size: var(--fs-small); color: var(--ink-2); }
.tile-facts span { display: flex; gap: 6px; align-items: center; min-width: 0; }
.tile-facts .icon { width: 15px; height: 15px; color: var(--muted); }
.tile-foot { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s3); }
.tile-foot > :first-child { min-width: 0; }
.tile-last { font-size: var(--fs-meta); color: var(--muted); }

/* Opgavehoved (§36) */
.task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4) var(--s6); flex-wrap: wrap; margin-bottom: var(--s5); }
.task-head h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 10px; font-size: var(--fs-small); color: var(--ink-2); }
.task-meta > span { display: inline-flex; gap: 6px; align-items: center; }
.task-meta .icon { width: 16px; height: 16px; color: var(--muted); }
.status-box { padding: var(--s6); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4) var(--s6); align-items: center; }
.status-box.is-open { border-color: var(--primary-line); background: linear-gradient(0deg, var(--surface), var(--surface)) padding-box; box-shadow: inset 4px 0 0 var(--primary); }
.status-box.is-action { box-shadow: inset 4px 0 0 #C77D18; border-color: var(--warning-line); }
.status-box.is-info { box-shadow: inset 4px 0 0 var(--info); border-color: var(--info-line); }
.status-box.is-done { box-shadow: inset 4px 0 0 var(--success); border-color: var(--success-line); }
.status-box h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.status-box .sb-meta > span { display: inline-flex; gap: 6px; align-items: center; }
.status-box .sb-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9375rem; color: var(--ink-2); align-items: center; }
@media (max-width: 640px) { .status-box { grid-template-columns: 1fr; padding: var(--s5); } .status-box .btn { width: 100%; } }

/* Tilbud (§38–40) */
.vat { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; border: 1px solid; vertical-align: middle; }
.vat-inkl { background: var(--success-soft); color: var(--success); border-color: var(--success-line); }
.vat-ekskl { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-line); }
.bid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
@media (max-width: 640px) { .bid-grid { grid-template-columns: 1fr; } }
.bid-card { display: flex; flex-direction: column; }
.bid-card .bc-head { padding: var(--s5); display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.bid-card .bc-name { font-weight: 700; }
.bid-card .bc-price { padding: var(--s5) var(--s5) 0; }
.price-l { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.price-sub { font-size: var(--fs-meta); color: var(--muted); margin-top: 4px; }
.bid-card .bc-facts { padding: var(--s4) var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s4); }
.bid-card .bc-facts div { display: flex; flex-direction: column; font-size: var(--fs-small); }
.bid-card .bc-facts dt { color: var(--muted); font-size: var(--fs-meta); }
.bid-card .bc-facts dd { margin: 0; font-weight: 600; }
.bid-card .bc-foot { margin-top: auto; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bid-slot-empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: var(--s8) var(--s5); color: var(--muted); min-height: 220px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; font-size: 0.9375rem; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: #FAFBFB; vertical-align: bottom; }
.compare tbody th { position: sticky; left: 0; background: var(--surface); font-weight: 500; color: var(--muted); width: 190px; z-index: 1; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare ul { margin: 0; padding-left: 18px; }
.compare li + li { margin-top: 3px; }
.compare .col-head { display: flex; flex-direction: column; gap: 8px; }
.compare-picker { display: none; }
@media (max-width: 720px) {
  .compare-picker { display: flex; }
  .compare { min-width: 0; }
  .compare, .compare thead, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border-bottom: 0; }
  .compare thead th:first-child { display: none; }
  .compare tbody th { grid-column: 1 / -1; position: static; width: auto; padding: 12px 12px 0; font-size: var(--fs-meta); font-weight: 600; background: transparent; }
  .compare td, .compare thead th { padding: 6px 12px 12px; min-width: 0; }
  .compare thead th { padding-top: 12px; }
  .compare .col-head .cluster { flex-wrap: wrap; }
  .compare [data-hide-mobile="1"] { display: none; }
}

/* Spørgsmål og svar (§41) */
.qa { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.qa + .qa { margin-top: var(--s3); }
.qa-q { padding: var(--s5); display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.qa-a { padding: var(--s4) var(--s5) var(--s5) calc(var(--s5) + 48px); border-top: 1px solid var(--line); background: #FAFBFB; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.qa-a.pending { background: var(--warning-soft); }
.qa-who { font-size: var(--fs-meta); color: var(--muted); }
@media (max-width: 560px) { .qa-a { padding-left: var(--s5); } }

/* Chat (§48) */
.chat { display: flex; flex-direction: column; gap: 10px; padding: var(--s5); max-height: 560px; overflow-y: auto; }
.msg { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 14px; font-size: 0.9375rem; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg .msg-meta { font-size: 11px; opacity: .75; margin-top: 4px; }
.msg-sys { align-self: center; font-size: var(--fs-meta); color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 4px 12px; text-align: center; }
.msg-file { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.6); font-size: var(--fs-small); color: var(--ink); }
.msg.me .msg-file { background: rgba(255,255,255,.18); color: #fff; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.composer .textarea { min-height: 46px; max-height: 160px; resize: none; }

/* Stjerner (anmeldelse §50) */
.star-input { display: inline-flex; gap: 2px; }
.star-input button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 4px; border-radius: 6px; color: var(--surface-3); }
.star-input button .icon { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; stroke-width: 1; }
.star-input button.on { color: #C98A12; }
.star-input button:focus-visible { outline: none; box-shadow: var(--focus); }
.review-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

/* Indstillinger */
.settings { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s8); align-items: start; }
.settings-nav { position: sticky; top: calc(64px + var(--s6)); display: flex; flex-direction: column; gap: 2px; }
.settings-nav a { padding: 8px 12px; border-radius: var(--r-md); text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; }
.settings-nav a:hover { background: var(--surface-2); color: var(--ink); }
.settings-nav a.is-active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }
.settings-nav .grp { font-size: var(--fs-meta); font-weight: 600; color: var(--muted); padding: 12px 12px 4px; }
.set-card { scroll-margin-top: 90px; }
.set-card + .set-card { margin-top: var(--s5); }
@media (max-width: 900px) { .settings { grid-template-columns: 1fr; } .settings-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; } .settings-nav .grp { display: none; } .settings-nav a { white-space: nowrap; } }
.pref-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.pref-table th { text-align: left; font-size: var(--fs-meta); color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pref-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pref-table td.c, .pref-table th.c { text-align: center; width: 90px; }
.pref-table tr.grp td { background: #FAFBFB; font-weight: 700; font-size: var(--fs-small); }
.session { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.session:last-child { border-bottom: 0; }

/* Bundnavigation (mobil §33) */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .sidebar { display: none; }
  .topbar { padding: 0 var(--s4); height: 56px; }
  .topbar .breadcrumb, .topbar .desk-only { display: none; }
  .topbar .mobile-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; text-decoration: none; color: var(--ink); }
  .topbar .mobile-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-content { padding: var(--s5) var(--s4) 104px; }
  .page-head { margin-bottom: var(--s6); }
  .page-head .h-app, .task-head h1 { font-size: 1.5rem; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; position: relative; }
  .bottom-nav a[aria-current="page"] { color: var(--primary); }
  .bottom-nav a .icon { width: 22px; height: 22px; }
  .bottom-nav .create { margin-top: -18px; }
  .bottom-nav .create .fab { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); }
  .bottom-nav .create .fab .icon { width: 24px; height: 24px; stroke-width: 2.2; }
  .bottom-nav .nb { position: absolute; top: 2px; left: 50%; margin-left: 6px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
  .sticky-mobile { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 55; }
  body.has-sticky .app-content { padding-bottom: 180px; }
}
@media (min-width: 901px) { .sticky-mobile { display: none !important; } }

/* Håndværkerapp: Pro-mærke og token-chip (§170: tokens synlige, men ikke som reklame) */
.pro-tag { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 5px; background: var(--ink); color: #fff; }
.token-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--fs-small); margin-right: 4px; }
.token-chip:hover { background: var(--surface-2); color: var(--ink); }
.token-chip .icon { width: 17px; height: 17px; color: var(--primary); }
@media (max-width: 900px) { .token-chip { height: 32px; padding: 0 10px; } .token-chip .tc-word { display: none; } }

/* ---------- Håndværker: markedsplads (§55–56, §170) ---------- */
.mk-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.mk-filters { position: sticky; top: calc(64px + var(--s6)); max-height: calc(100vh - 64px - var(--s10)); overflow-y: auto; padding: var(--s5); }
.mk-filters .fgroup + .fgroup { margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.mk-filters .fgroup > .label { display: block; margin-bottom: var(--s3); }
.mk-filters .check { font-size: 0.9375rem; }
.mk-filters .check + .check { margin-top: 8px; }
.mk-filters .chips .chip { min-height: 34px; padding: 0 11px; font-size: 0.875rem; }
.mk-toolbar { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; margin-bottom: var(--s4); }
.mk-toolbar .input-with-icon { flex: 1 1 260px; }
.mk-toolbar .select { width: auto; }
.mk-active { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s4); align-items: center; }
.mk-list { display: flex; flex-direction: column; gap: var(--s3); }
.mk-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) 200px; gap: var(--s5); padding: var(--s5); align-items: center; }
.mk-card.is-muted { background: #FAFBFB; }
.mk-card.is-muted .mk-title a { color: var(--ink-2); }
.mk-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.mk-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.mk-title a { color: var(--ink); text-decoration: none; }
.mk-title a:hover { text-decoration: underline; }
.mk-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-small); color: var(--ink-2); }
.mk-meta span { display: inline-flex; gap: 6px; align-items: center; }
.mk-meta .icon { width: 15px; height: 15px; color: var(--muted); }
.mk-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s4); margin: 0; }
.mk-facts div { display: flex; flex-direction: column; min-width: 0; }
.mk-facts dt { font-size: var(--fs-meta); color: var(--muted); }
.mk-facts dd { margin: 0; font-weight: 600; font-size: 0.9375rem; display: inline-flex; gap: 4px; align-items: center; }
.mk-facts dd .icon { color: var(--primary); }
.mk-side { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-end; }
.mk-save .icon { fill: none; }
.mk-save[aria-pressed="true"] { color: #C98A12; border-color: #EBC98D; background: #FFF8E8; }
.mk-save[aria-pressed="true"] .icon { fill: currentColor; }
.filters-btn { display: none; }
@media (max-width: 1200px) { .mk-card { grid-template-columns: minmax(0, 1fr) 200px; } .mk-facts { grid-column: 1 / 2; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); } .mk-side { grid-row: 1 / 3; grid-column: 2; } }
@media (max-width: 1000px) { .mk-layout { grid-template-columns: 1fr; } .mk-filters-col { display: none; } .filters-btn { display: inline-flex; } }
@media (max-width: 640px) {
  .mk-card { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s4); }
  .mk-facts { grid-column: auto; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .mk-side { grid-row: auto; grid-column: auto; flex-direction: row; justify-content: space-between; align-items: center; padding-top: var(--s3); border-top: 1px solid var(--line); }
  .mk-toolbar .select { flex: 1; }
}

/* Opgaveside for håndværker (§57) */
.bid-panel { padding: var(--s5); }
.bid-panel .bp-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.bid-panel .bp-row:last-of-type { border-bottom: 0; }
.bid-panel .bp-big { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; display: inline-flex; gap: 6px; align-items: center; }
.bid-panel .bp-big .icon { width: 22px; height: 22px; color: var(--primary); }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.gal-item { aspect-ratio: 4/3; border-radius: var(--r-md); border: 0; background: linear-gradient(135deg, #C3CFCB, #E6EBE9); display: grid; place-items: center; color: var(--ink-2); font-size: var(--fs-meta); cursor: zoom-in; font-family: inherit; }
.gal-item:hover { filter: brightness(.97); }
.gal-item:focus-visible { outline: none; box-shadow: var(--focus); }
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.ind { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; gap: 10px; align-items: center; font-size: var(--fs-small); }
.ind .icon { width: 18px; height: 18px; flex: none; }
.ind.ok .icon { color: var(--success); }
.ind.no .icon { color: var(--muted); }
.ind b { display: block; font-size: 0.9375rem; }
@media (max-width: 640px) { .ind-grid { grid-template-columns: 1fr 1fr; } }

/* Forhåndsvisning af tilbud */
.pv-secs { padding: 0 var(--s5) var(--s5); display: grid; gap: var(--s4); }
.pv-secs h4 { font-size: var(--fs-meta); color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pv-list { margin: 0; padding-left: 18px; font-size: var(--fs-small); }
.pv-list li + li { margin-top: 2px; }
.sec-card { padding: var(--s6); }
.sec-card + .sec-card { margin-top: var(--s4); }
.sec-card > h2 { font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--s4); display: flex; gap: 8px; align-items: center; }
.sec-card > h2 .icon { color: var(--muted); width: 19px; height: 19px; }
@media (max-width: 640px) { .sec-card { padding: var(--s5); } }
.datarow a { text-decoration: none; } .datarow a:hover { text-decoration: underline; }
