/* JP Wine · prototype. Uttrykket følger jpwine.no: burgunder, støvete rosa, varm offwhite og blåsvart. */
:root {
  --burg: #650D21;
  --burg-line: #8C3A4C;
  --rose: #E2AEB1;
  --rose-2: #F6E3E5;
  --rose-3: #FBF1F2;
  --rose-line: #EFD5D8;
  --paper: #F5F4F3;
  --ink: #1A1B1F;
  --dark: #1D1F2A;
  --dark-line: #343747;
  --dark-muted: #C2C5D1;
  --muted: #5B5654;
  --line: #E3DFDC;
  --line-2: #EFEBE8;
  --field: #D4BFC2;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.band :focus-visible, .demo :focus-visible, .tasks :focus-visible, .panel.dark :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- Prototypelinje ---------- */
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 7px 40px; background: var(--dark); color: #fff; font-size: 13px; }
.demo-tag { padding: 1px 10px; border-radius: 10px; background: var(--rose); color: var(--burg); font: 700 11.5px/1.7 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.demo-text { flex: 1 1 260px; color: var(--dark-muted); }
.demo label { display: flex; align-items: center; gap: 8px; }
.demo select { min-height: 30px; padding: 3px 10px; border: 1px solid #4A4D5E; border-radius: 15px; background: #2B2E3C; color: #fff; }
.demo button { min-height: 30px; padding: 3px 0; border: 0; background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Topp ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; padding: 10px 40px; background: var(--paper); }
.logo { display: flex; }
.logo img { display: block; height: 54px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 30px; flex: 1 1 auto; font: 14px var(--label); letter-spacing: .06em; text-transform: uppercase; }
.nav a { padding: 6px 0; text-decoration: none; }
.nav a:hover { color: var(--burg); }
.nav a[aria-current="page"] { color: var(--burg); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.gsearch { position: relative; }
.gsearch input { width: 260px; max-width: 100%; min-height: 40px; padding: 8px 18px; border: 1px solid #D9D4D0; border-radius: 20px; background: #fff; }
.gres { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: 340px; max-width: 90vw; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(26, 27, 31, .14); }
.gres a { display: block; padding: 10px 16px; border-top: 1px solid var(--line-2); text-decoration: none; }
.gres a:first-child { border-top: 0; }
.gres a:hover, .gres a:focus { background: var(--rose-3); }
.gres b { display: block; }
.gres span { font-size: 14px; color: var(--muted); }
.gres p { padding: 12px 16px; color: var(--muted); }
.who { color: var(--muted); }

/* ---------- Burgunder flate og side ---------- */
.band { padding: 26px 0 88px; background: var(--burg); color: #fff; }
.band-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.band-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.band h1 { font-size: 42px; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.band h1 span { display: block; font-weight: 300; }
.back { align-self: flex-start; margin-bottom: -10px; font-size: 14px; color: var(--rose); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 0; }
.fact { display: flex; flex-direction: column; padding: 0 24px; border-left: 1px solid var(--burg-line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact span { font-size: 13px; color: var(--rose); }
.fact b { font-weight: 600; }
.band-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.band-act select { min-height: 42px; padding: 8px 14px; border: 1px solid var(--rose); border-radius: 21px; background: var(--burg); color: #fff; }
.page { display: flex; flex-direction: column; gap: 20px; margin-top: -60px; padding-bottom: 80px; }
.row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.row.stretch { align-items: stretch; }
.col { flex: 1 1 380px; min-width: 0; }
.main { flex: 999 1 560px; min-width: 0; }
.rail { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Felt (paneler) ---------- */
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 52px; padding: 10px 22px; border-bottom: 1px solid var(--line); }
.panel-h h2 { font-size: 18px; font-weight: 700; }
.panel-h .sub { font-size: 14px; color: var(--muted); }
.panel-b { padding: 14px 22px 18px; }
.panel.dark { border-color: var(--dark); background: var(--dark); color: #fff; }
.panel.dark .panel-h { border-bottom-color: var(--dark-line); }
.panel.dark .panel-h .sub, .panel.dark .muted { color: var(--dark-muted); }
.empty { padding: 16px 22px; color: var(--muted); }
.panel.dark .empty { color: var(--dark-muted); }
.duo { font-size: 20px; line-height: 1.2; font-weight: 300; }
.duo b { font-weight: 700; }
.big { font-size: 34px; line-height: 1.1; font-weight: 300; letter-spacing: -.01em; }
.big b { font-weight: 700; }

/* ---------- Knapper og skjemafelt ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 7px 20px; border: 1px solid var(--burg); border-radius: 21px; background: #fff; color: var(--burg); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--rose-3); }
.btn.primary { background: var(--burg); color: #fff; }
.btn.primary:hover { background: #4E0919; }
.btn.rose { border-color: var(--rose); background: var(--rose); color: var(--burg); }
.btn.rose:hover { background: #EBC3C6; }
.btn.onband { border-color: var(--rose); background: none; color: #fff; }
.btn.onband:hover { background: #7A1F33; }
.btn.lg { min-height: 44px; padding: 8px 26px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.act { padding: 6px 0; border: 0; background: none; color: var(--burg); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.panel.dark .act { color: var(--rose); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 14px; font-weight: 700; }
.in { width: 100%; min-height: 42px; padding: 8px 14px; border: 1px solid var(--field); border-radius: 10px; background: #fff; }
textarea.in { font-size: 16px; line-height: 1.5; resize: vertical; }
.sel { min-height: 40px; max-width: 100%; padding: 7px 12px; border: 1px solid #D9D4D0; border-radius: 10px; background: #fff; }
.in[aria-invalid="true"] { border-color: var(--burg); box-shadow: 0 0 0 2px var(--rose); }
.error { color: var(--burg); font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; overflow: hidden; border: 1px solid var(--dark); border-radius: 20px; background: #fff; }
.seg button { min-height: 38px; padding: 6px 16px; border: 0; background: none; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--dark); color: #fff; font-weight: 600; }
.seg.onband { border-color: var(--rose); background: none; }
.seg.onband button { min-height: 40px; color: #fff; }
.seg.onband button[aria-pressed="true"] { background: var(--rose); color: var(--burg); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { min-height: 42px; padding: 8px 15px; border: 1px solid var(--field); border-radius: 21px; background: #fff; font-size: 14px; }
.pill[aria-pressed="true"] { border-color: var(--burg); background: var(--burg); color: #fff; font-weight: 600; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--rose-2); color: var(--burg); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag.solid { background: var(--burg); color: #fff; }
.tag.quiet { background: var(--line-2); color: var(--ink); }

/* ---------- Rader ---------- */
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 22px; border-top: 1px solid var(--line-2); }
.item:first-child { border-top: 0; }
.item.new { background: var(--rose-3); }
.item .grow { flex: 1 1 140px; min-width: 0; }
.t { font-size: 16px; font-weight: 700; }
a.t { text-decoration: none; }
a.t:hover { color: var(--burg); text-decoration: underline; }
.s { font-size: 14px; color: var(--muted); }
.panel.dark .s { color: var(--dark-muted); }
.item .side { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }
.item .side a:first-child { color: var(--burg); font-weight: 600; font-variant-numeric: tabular-nums; }
.item .side b { color: var(--burg); font-weight: 600; font-variant-numeric: tabular-nums; }
.item .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#sheet .dlg { min-height: 100%; }
.day { flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; padding: 7px 0; border-radius: 10px; background: var(--rose-2); color: var(--burg); line-height: 1.2; }
.day small { font-size: 12.5px; }
.day b { font-weight: 700; }
.day.late { background: var(--burg); color: #fff; }
.day.today { background: var(--dark); color: #fff; }
.gh { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px 8px; border-top: 1px solid var(--line); color: var(--muted); font: 700 12.5px var(--label); letter-spacing: .08em; text-transform: uppercase; }
.gh:first-child { border-top: 0; }
.gh + .item { border-top: 0; }
.statline { display: flex; justify-content: space-between; gap: 16px; padding: 11px 22px; border-top: 1px solid var(--dark-line); text-decoration: none; }
.statline:first-child { border-top: 0; }
.statline:hover { background: #262938; }
.statline b { font-variant-numeric: tabular-nums; }

/* ---------- Logg og referat ---------- */
.composer { display: flex; flex-direction: column; gap: 16px; padding: 18px 22px 22px; border-bottom: 1px solid var(--rose-line); background: var(--rose-3); }
.composer-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.composer-h > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.composer-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; }
.composer-row .field:first-child { flex: 1 1 250px; }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--rose-line); }
.log { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; padding: 15px 22px; border-top: 1px solid var(--line-2); }
.log.new { background: var(--rose-3); }
.log .d { flex: 0 0 100px; color: var(--muted); font-variant-numeric: tabular-nums; }
.log .k { flex: 0 0 96px; color: var(--burg); font-weight: 700; }
.log .txt { flex: 1 1 300px; min-width: 0; }

/* ---------- Tabeller ---------- */
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 22px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 22px; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tr.link { cursor: pointer; }
.tbl tr.link:hover, .tbl tr.on { background: var(--rose-3); }
.tbl tfoot td { border-top: 1px solid var(--line); font-weight: 700; }
.tbl td small { display: block; font-size: 14px; color: var(--muted); }
.tbl .rowbtn { padding: 0; border: 0; background: none; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.panel.dark .tbl th { border-bottom-color: #4A4D5E; color: var(--dark-muted); font-weight: 400; }
.panel.dark .tbl td { border-bottom-color: var(--dark-line); }
.panel.dark .tbl th:first-child, .panel.dark .tbl td:first-child { padding-left: 0; }
.panel.dark .tbl th:last-child, .panel.dark .tbl td:last-child { padding-right: 0; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.filters .search { flex: 1 1 260px; min-width: 0; }
.filters .search input { width: 100%; min-height: 42px; padding: 8px 18px; border: 1px solid #D9D4D0; border-radius: 21px; background: #fff; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.countline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 22px; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }

/* ---------- Pipeline ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.lane .panel-h { min-height: 48px; padding: 8px 18px; }
.lane .panel-h h2 { font-size: 16px; }
.count { min-width: 26px; padding: 1px 8px; border-radius: 12px; background: var(--rose-2); color: var(--burg); font-size: 13px; font-weight: 700; text-align: center; }
.deal { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 14px 18px; border: 0; border-top: 1px solid var(--line-2); background: #fff; text-align: left; }
.deal:first-of-type { border-top: 0; }
.deal:hover { background: var(--rose-3); }
.deal .s { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding-top: 4px; }
.late-text { color: var(--burg); font-weight: 700; }

/* ---------- Invitasjoner ---------- */
.pick { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 22px; border-top: 1px solid var(--line-2); cursor: pointer; }
.pick:hover { background: var(--rose-3); }
.pick:has(input:checked) { background: var(--rose-3); }
.pick.off { cursor: not-allowed; color: var(--muted); }
.rail.sticky { position: sticky; top: 16px; }
.pick.off:hover { background: none; }
.pick input { flex: none; width: 20px; height: 20px; accent-color: var(--burg); }
.pick .grow { flex: 1 1 auto; min-width: 0; }
.pickbar { display: none; }
.sample { margin-top: 10px; padding: 14px 18px; border-radius: 10px; background: var(--rose-3); border: 1px solid var(--rose-line); }
.sample p + p { margin-top: 8px; }

/* ---------- Dialoger ---------- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(29, 31, 42, .55); }
#modal { width: min(520px, calc(100% - 24px)); border-radius: 18px; background: #fff; }
#sheet { width: min(460px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; background: #fff; }
.dlg { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px 26px; }
.dlg-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dlg-h h2 { font-size: 24px; line-height: 1.2; font-weight: 700; }
.dlg-h h2 span { font-weight: 300; }
.x { flex: none; min-height: 40px; padding: 6px 4px; border: 0; background: none; color: var(--burg); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dlg-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stages { display: flex; flex-direction: column; gap: 6px; }
.stages button { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 8px 18px; border: 1px solid var(--field); border-radius: 23px; background: #fff; text-align: left; }
.stages button[aria-pressed="true"] { border-color: var(--burg); background: var(--burg); color: #fff; font-weight: 600; }
.linked { padding: 14px 18px; border-radius: 12px; background: var(--paper); }

/* ---------- Melding og oppgavepanel ---------- */
#toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100% - 28px); padding: 12px 20px; border-radius: 22px; background: var(--dark); color: #fff; font-size: 14px; box-shadow: 0 10px 28px rgba(26, 27, 31, .3); }
.tasks { position: fixed; z-index: 30; right: 20px; bottom: 20px; width: 320px; max-height: min(74vh, 640px); overflow: auto; padding: 18px 20px 20px; border-radius: 16px; background: var(--dark); color: #fff; box-shadow: 0 14px 40px rgba(26, 27, 31, .35); }
.tasks-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.tasks-h button { min-height: 36px; padding: 4px 0; border: 0; background: none; color: var(--rose); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tasks ol { display: flex; flex-direction: column; padding: 0; list-style: none; }
.tasks li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-top: 1px solid var(--dark-line); }
.tasks input { flex: none; width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--rose); }
.tasks li > div { flex: 1 1 auto; min-width: 0; }
.tasks li button { width: 100%; min-height: 30px; padding: 2px 0; border: 0; background: none; color: #fff; font-weight: 700; text-align: left; }
.tasks li p { padding: 2px 0 6px; font-size: 14px; color: var(--dark-muted); }
.tasks li.done button { color: var(--dark-muted); text-decoration: line-through; }

.has-tasks .page { padding-bottom: 330px; }

/* ---------- Mobilmeny ---------- */
.tabbar { display: none; }

@media (max-width: 1180px) {
  .top { gap: 8px 28px; }
  .who { display: none; }
}
@media (max-width: 1000px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { padding-bottom: 62px; }
  .wrap { padding: 0 12px; }
  .demo { padding: 6px 12px; gap: 4px 14px; }
  .demo-text { display: none; }
  .demo label span { display: none; }
  .top { padding: 6px 14px; justify-content: space-between; }
  .logo img { height: 44px; }
  .nav, .gsearch { display: none; }
  .band { padding: 16px 0 60px; }
  .band-in { padding: 0 16px; }
  .band h1 { font-size: 27px; line-height: 1.15; }
  .facts { gap: 8px 24px; }
  .fact, .fact:first-child { padding: 0; border: 0; }
  .page { gap: 12px; margin-top: -44px; padding-bottom: 28px; }
  .row { gap: 12px; }
  .rail { gap: 12px; }
  .panel-h { padding: 10px 16px; }
  .panel-b { padding: 12px 16px 16px; }
  .item, .log, .gh, .empty, .filters, .countline, .pick, .statline { padding-left: 16px; padding-right: 16px; }
  .composer { padding: 14px 16px 18px; gap: 12px; }
  .btn, .pill, .seg button, .x, .act { min-height: 44px; }
  .in, .sel, .filters .search input { min-height: 46px; font-size: 16px; }
  .composer .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .composer .seg button { padding: 6px 4px; }
  .composer .pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .composer-row .field { flex: 1 1 100%; }
  .composer-foot .btn { width: 100%; min-height: 48px; font-size: 16px; }
  .log .d, .log .k { flex: 0 0 auto; }
  .log .txt { flex: 1 1 100%; }
  .board { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .dlg { padding: 20px 18px 22px; }
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .tbl.cards tr:last-child { border-bottom: 0; }
  .tbl.cards td, .tbl.cards td:first-child, .tbl.cards td:last-child { padding: 2px 0; border: 0; }
  .tbl.cards td[data-l] { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; text-align: right; }
  .tbl.cards td[data-l]::before { content: attr(data-l); color: var(--muted); text-align: left; }
  .tbl.cards td small { display: inline; }
  .tbl.cards td:first-child small { display: block; }
  .item .grow { flex-basis: 110px; }
  .filters .sel { flex: 1 1 40%; min-width: 0; }
  .filters label { flex: 1 1 100%; }
  .filters label .sel { flex: 1 1 auto; }
  .big { font-size: 26px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 16px; }
  .pickbar { position: sticky; bottom: 62px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--dark); color: #fff; }
  #toast { bottom: 76px; }
  .tasks { left: 10px; right: 10px; bottom: 72px; width: auto; max-height: 62vh; }
  .tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; }
  .tabbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font: 10.5px var(--label); letter-spacing: 0; text-transform: uppercase; text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--burg); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
}
@media (min-width: 1100px) {
  /* Bred skjerm: oppgavene står i en egen kolonne og dekker aldri innholdet. */
  body.has-tasks { padding-right: 320px; }
  .tasks { top: 0; right: 0; bottom: 0; width: 320px; max-height: none; padding: 22px 24px; border-radius: 0; box-shadow: none; }
  .has-tasks .page { padding-bottom: 80px; }
  .has-tasks #toast { left: calc(50% - 160px); }
  .has-tasks .who { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
