/* Pinewind SEO – layout and shared components. engine.css holds the map and engine views. */
:root { color-scheme: light; }
.pwseo {
  --bg: #EEF3F4; --surface: #FFFFFF; --sunk: #E3EBED; --fg: #122228; --muted: #5A6E75; --line: #C7D4D8;
  --accent: #0E7383; --gold: #B8860B; --miss: #C0392B; --ok: #2E7D4F; --edge: #9DB0B6; --lt: #7B3FA0; --warn: #B4641A;
  --side: #0F2A31; --side-fg: #D7E4E7; --side-muted: #8FA9AF;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg); font: 14px/1.5 var(--sans); margin: 0; background: var(--bg);
}
.pwseo *, .pwseo *::before, .pwseo *::after { box-sizing: border-box; }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-fg); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 8px; color: #fff; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.brand b { font-size: 15px; line-height: 1.1; } .brand small { display: block; font-weight: 400; color: var(--side-muted); font-size: 11.5px; }
.side nav { display: grid; gap: 2px; }
.side nav a { color: var(--side-fg); text-decoration: none; padding: 8px 10px; border-radius: 8px; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.06); }
.side nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.side nav a .ico { width: 18px; height: 18px; flex: none; opacity: .85; }
.side .group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); padding: 0 10px; margin-top: 4px; }
.side .me { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding: 12px 8px 0; display: grid; gap: 6px; font-size: 13px; }
.side .me a, .side .me button { color: var(--side-muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.side .me a:hover, .side .me button:hover { color: #fff; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: none; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.main { padding: 22px 26px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.main > .flash { padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line)); }
.main > .flash.bad { background: color-mix(in srgb, var(--miss) 10%, var(--surface)); border-color: color-mix(in srgb, var(--miss) 40%, var(--line)); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
  .side nav { display: flex; flex-wrap: wrap; } .side .group { display: none; } .side .me { margin: 0; border: 0; padding: 0; display: flex; gap: 12px; }
  .main { padding: 16px; }
}
.pwseo h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
.pwseo h2 { font-size: 18px; margin: 0 0 6px; }
.pwseo h3 { font-size: 12px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.pwseo a { color: var(--accent); }
.pwseo p { margin: 0 0 8px; }
.pwseo .muted { color: var(--muted); }
.pwseo .mono { font-family: var(--mono); font-size: 12.5px; }
.pwseo .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pwseo .eyebrow a { color: inherit; }
.pwseo .topbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.pwseo .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pwseo .row.between { justify-content: space-between; }
.pwseo .card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.pwseo .card > h2:first-child { margin-bottom: 10px; }
.pwseo .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.pwseo .grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.pwseo .cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pwseo .cols { grid-template-columns: 1fr; } }
.pwseo .btn { font: inherit; font-weight: 600; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.pwseo .btn.ghost { background: transparent; color: var(--accent); }
.pwseo .btn.danger { background: transparent; color: var(--miss); border-color: var(--miss); }
.pwseo .btn.small { padding: 4px 9px; font-size: 12.5px; }
.pwseo .btn:disabled { opacity: .5; cursor: default; }
.pwseo .btn:focus-visible, .pwseo a:focus-visible, .pwseo button:focus-visible, .pwseo input:focus-visible, .pwseo select:focus-visible, .pwseo textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pwseo .tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.pwseo .tabs a, .pwseo .tab { font: inherit; font-weight: 600; padding: 9px 14px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.pwseo .tabs a[aria-current="page"], .pwseo .tab[aria-selected="true"] { color: var(--fg); border-color: var(--accent); }
.pwseo .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pwseo .pill.ok { color: var(--ok); } .pwseo .pill.miss, .pwseo .pill.bad { color: var(--miss); } .pwseo .pill.warn { color: var(--warn); } .pwseo .pill.neutral { color: var(--muted); } .pwseo .pill.accent { color: var(--accent); } .pwseo .pill.gold { color: var(--gold); } .pwseo .pill.lt { color: var(--lt); }
.pwseo .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pwseo .kpi { background: var(--surface); box-shadow: inset -1px -1px 0 var(--line); padding: 12px 14px; display: grid; gap: 2px; align-content: start; }
.pwseo .kpi b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pwseo .kpi span { color: var(--muted); font-size: 13px; }
.pwseo .kpi .delta { font-size: 12px; font-weight: 600; }
.pwseo .delta.up { color: var(--ok); } .pwseo .delta.down { color: var(--miss); }
.pwseo .kpi.bad b { color: var(--miss); } .pwseo .kpi.gold b { color: var(--gold); } .pwseo .kpi.lt b { color: var(--lt); } .pwseo .kpi.ok b { color: var(--ok); }
.pwseo .tablewrap { overflow-x: auto; }
.pwseo table.t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.pwseo table.t th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pwseo table.t td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pwseo table.t tr:last-child td { border-bottom: 0; }
.pwseo table.t tr.click { cursor: pointer; } .pwseo table.t tr.click:hover { background: var(--sunk); }
.pwseo td.num, .pwseo th.num { text-align: right; }
.pwseo .form { display: grid; gap: 12px; }
.pwseo .field { display: grid; gap: 4px; min-width: 0; }
.pwseo .field label, .pwseo label.lbl { font-weight: 600; }
.pwseo input[type=text], .pwseo input[type=url], .pwseo input[type=email], .pwseo input[type=number], .pwseo input[type=password], .pwseo input[type=date], .pwseo input[type=search], .pwseo select, .pwseo textarea { width: 100%; max-width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--surface); color: var(--fg); }
.pwseo .row > input, .pwseo .row > select { width: auto; }
.pwseo .help { color: var(--muted); font-size: 12.5px; margin: 0; }
.pwseo .err { color: var(--miss); }
.pwseo .empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); }
.pwseo .list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pwseo .list li { display: flex; justify-content: space-between; gap: 10px; min-width: 0; align-items: center; }
.pwseo .list li > *:first-child { min-width: 0; overflow-wrap: anywhere; }
.pwseo .facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.pwseo .facts dt { color: var(--muted); } .pwseo .facts dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.pwseo .todo { border-left: 3px solid var(--miss); padding: 8px 10px; background: var(--sunk); border-radius: 0 8px 8px 0; }
.pwseo .todo.info { border-color: var(--accent); }
.pwseo .bar { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; display: flex; }
.pwseo .bar span { display: block; height: 100%; background: var(--accent); }
.pwseo .bar span.over { background: var(--miss); }
.pwseo .toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 20px; }
.pwseo .toggle { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pwseo .toggle small { color: var(--muted); display: block; }
.pwseo .toggle input { margin-top: 3px; }
.pwseo .toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; background: var(--fg); color: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 99999; }
.pwseo .sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.pwseo .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--miss); color: #fff; font-size: 11px; font-weight: 700; }
/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.kcol { background: var(--sunk); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.kcol header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; padding: 0 2px; }
.kcol header span { color: var(--muted); font-weight: 500; }
.kcol.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: grid; gap: 6px; cursor: grab; }
.kcard.late { border-left: 3px solid var(--miss); }
.kcard a.title { color: var(--fg); text-decoration: none; font-weight: 600; line-height: 1.3; }
.kcard a.title:hover { text-decoration: underline; }
.kcard .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
/* 2.7 (#75): långa ord och adresser i titel och metarad bryts i kortet i stället för att ge vågrät rullning (Min vecka i 390 px). */
.kcard { grid-template-columns: minmax(0, 1fr); min-width: 0; } .kcard a.title, .kcard .meta > *, .kcard .kclient { overflow-wrap: anywhere; min-width: 0; }
.type { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--sunk); color: var(--muted); }
.type.pillar { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.type.page { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
.type.longtail { background: color-mix(in srgb, var(--lt) 14%, var(--surface)); color: var(--lt); }
.type.optimize { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--gold); }
.type.link { background: color-mix(in srgb, var(--edge) 30%, var(--surface)); color: var(--fg); }
.type.fix { background: color-mix(in srgb, var(--miss) 12%, var(--surface)); color: var(--miss); }
/* 2.9 P (#101): kundönskemål har ett eget märke. */
.type.request { background: color-mix(in srgb, #c08a2c 18%, var(--surface)); color: #9a6a12; }
/* Calendar */
.cal { display: grid; grid-template-columns: 150px repeat(var(--weeks), minmax(140px, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: auto; background: var(--surface); }
.cal > div { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px 8px; min-height: 44px; font-size: 12.5px; }
.cal .h { background: var(--sunk); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cal .who { font-weight: 600; display: flex; gap: 6px; align-items: center; }
.cal .cell { display: grid; gap: 4px; align-content: start; }
.cal .cell .load { font-size: 11px; color: var(--muted); }
.cal .cell .load.over { color: var(--miss); font-weight: 700; }
.cal .chipt { display: block; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--sunk); color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Notes */
.note { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); display: grid; gap: 6px; }
.note.pinned { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.note .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); align-items: center; }
.note .body { white-space: pre-wrap; }
.tag { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--sunk); }
.tag.mote { color: var(--accent); } .tag.beslut { color: var(--ok); } .tag.ide { color: var(--gold); } .tag.risk { color: var(--miss); } .tag.annons { color: var(--accent); } /* 2.9 M (#95) */
.tag.kontakt { color: var(--ok); } /* 2.9 K2 (#104) */
/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.timeline time { color: var(--muted); font-size: 12px; }
/* Sparkline / charts */
svg.chart { width: 100%; height: 220px; display: block; }
svg.chart .axis text { fill: var(--muted); font: 11px var(--mono); }
svg.chart .axis line, svg.chart .axis path { stroke: var(--line); }
svg.chart .grid line { stroke: var(--sunk); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: min(380px, 100%); display: grid; gap: 14px; }
/* Report (print) */
.report { max-width: 980px; margin: 0 auto; display: grid; gap: 18px; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.report section { break-inside: avoid; }
/* 2.7 R1 (granskningen fynd 1): rapporten bryts om i mobilen; breda tabeller rullar i sin egen ruta. */
.report > *, .report section > * { min-width: 0; }
.report > header.row { flex-wrap: wrap; gap: 10px; }
.report h1, .report h2, .report p { overflow-wrap: anywhere; }
.report .list li { flex-wrap: wrap; }
.report .list li > :last-child { margin-left: auto; text-align: right; }
.report .report-chart { overflow: hidden; }
.report .report-internal { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.report .report-internal > .report-internal-tag { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 600px) { .report { padding: 14px; gap: 14px; } .report h1 { font-size: 20px !important; } }
@media print {
  .side, .noprint { display: none !important; }
  .shell { display: block; } .main { padding: 0; }
  .pwseo { background: #fff; font-size: 12px; }
  .card { border-color: #ddd; }
}
@media (prefers-reduced-motion: reduce) { .pwseo * { transition: none !important; animation: none !important; } }

/* Liten kapacitetsstapel i tabeller (ledarens startsida) */
.t .bar { height: 6px; border-radius: 3px; background: var(--line, #e3e7e4); overflow: hidden; margin-top: 4px; max-width: 140px; }
.t .bar i { display: block; height: 100%; background: var(--accent, #0f6b63); }

/* 2.3 arbetsvyer */
.pills { display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.pills .pill { font-size: 11px; padding: 0 7px; line-height: 18px; }
.pills:not(.sm) .type { font-size: 12px; padding: 2px 8px; }
.pills:not(.sm) .pill { font-size: 12px; padding: 1px 9px; }
.kcard .kact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 2px; }
.kcard .kact form { display: contents; }
.kcard .kact form.kact-url { display: flex; gap: 6px; width: 100%; }
.kcard .kact-url input { flex: 1; min-width: 0; padding: 4px 7px; font-size: 12.5px; }
.kcard .kclient { color: var(--fg); }
.mine-kpis { min-width: 340px; }
.mine-publish { border-left: 3px solid var(--ok); padding-left: 12px; }
.mine-sec { display: grid; gap: 8px; }
.pwseo .mine-sec .grid3, .pwseo .mine-publish .grid3, .pwseo .mine-review .grid3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mine-empty { margin: 0; font-size: 13px; }
.mine-later { color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin: 0; }
.nextstep-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nextstep-row > form { display: contents; }
.nextstep-now { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-right: 6px; }
.nextstep-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.more-actions { position: relative; margin-left: auto; }
.more-actions > summary { list-style: none; }
.more-actions > summary::-webkit-details-marker { display: none; }
.more-actions > summary::after { content: " ▾"; }
.more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgb(0 0 0 / .12); padding: 4px; display: grid; }
.more-menu form { display: contents; }
.more-menu button { font: inherit; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--fg); }
.more-menu button:hover, .more-menu button:focus-visible { background: var(--sunk); }
.more-menu button.danger { color: var(--miss); }
/* 2.9 P (#101): länk i menyn (Avvisa med svar till kunden). */
.more-menu a { padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--fg); }
.more-menu a:hover, .more-menu a:focus-visible { background: var(--sunk); }
.more-menu a.danger { color: var(--miss); }
.more-menu button[disabled] { color: var(--muted); cursor: not-allowed; }
.pwseo .btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-align: left; }
.warn-text { color: var(--warn); }
.due-form { position: relative; display: inline-block; }
.due-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.due-input.show { position: static; width: auto; height: auto; opacity: 1; pointer-events: auto; margin-top: 4px; }
.timelog-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.timelog-row b { font-size: 16px; }
.timelog-sum { margin-left: auto; font-size: 12.5px; }
.guide-alt { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.guide-altbody { margin-top: 10px; padding: 10px 12px; background: var(--sunk); border-radius: 8px; }
.wlist .wl-main { display: inline-flex; gap: 6px; align-items: center; min-width: 0; }
.settings-layout { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.settings-nav { position: sticky; top: 16px; display: grid; gap: 2px; }
.settings-nav a { padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--fg); font-weight: 600; }
.settings-nav a:hover { background: var(--sunk); }
.settings-body { display: grid; gap: 16px; min-width: 0; }
.settings-body > section { scroll-margin-top: 16px; }
@media (max-width: 800px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; display: flex; flex-wrap: wrap; } }
.notif-group { display: grid; gap: 6px; }
.notif-list { list-style: none; margin: 0; padding: 4px 16px; }
.notif { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif a { flex: 1; min-width: 0; }
.notif.unread a { font-weight: 600; }
.notif.read { opacity: .6; }
.notif.read a { color: var(--muted); }
.notif-count { font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--sunk); color: var(--fg); font-variant-numeric: tabular-nums; }
.notif-time { white-space: nowrap; font-size: 12.5px; }

/* 2.3 planering */
.pwseo .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan-bar { margin: 4px 0 2px; }
.plan-bar .qcount { font-size: 11px; font-weight: 700; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); }
.pwseo .bar span.ok { background: var(--ok); }
.pwseo .bar span.warn { background: var(--warn); }
.pwseo .month-bar { padding: 10px 14px; display: grid; gap: 6px; }
.pwseo .month-bar .help { margin: 0; }
.pwseo .month-bar.over { border-color: color-mix(in srgb, var(--miss) 45%, var(--line)); }
.pwseo .qline { padding: 9px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.kanban.board5 { grid-auto-columns: minmax(220px, 1fr); }
.kcol .kempty { font-size: 12.5px; margin: 4px 2px; }
.pwseo .qlist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.pwseo .qrow { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--sunk); }
.pwseo .qlist.compact .qrow { grid-template-columns: 1fr auto; }
.pwseo .qrow:last-child { border-bottom: 0; }
.pwseo .qn { font: 12px var(--mono); color: var(--muted); min-width: 2.2em; text-align: right; }
.pwseo .qmain { display: grid; gap: 3px; min-width: 0; }
.pwseo .qmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: var(--muted); }
.pwseo .qadd { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pwseo .qadd select { width: auto; padding: 4px 8px; font-size: 13px; min-width: 0; }
.pwseo .queue > .row > div:first-child { flex: 1 1 420px; }
.pwseo .pclient h3 { font-size: 16px; font-weight: 600; font-family: inherit; text-transform: none; letter-spacing: 0; color: var(--fg); }
.kcol .kmore { font-size: 12.5px; margin: 2px; }
.pwseo .plan-intro { margin: 12px 0 4px; color: var(--muted); }
.pwseo .plan-intro .wk { color: var(--fg); font-size: 15px; margin-right: 8px; }
.pwseo .weekpick select { min-width: 170px; }
.pwseo .step h2 { display: flex; align-items: center; gap: 8px; }
.pwseo .stepn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.pwseo .step .sub { margin-top: 14px; }
.pwseo .plist li { align-items: center; }
.pwseo .prow { display: grid; grid-template-columns: minmax(150px, 200px) minmax(140px, 190px) 1fr; gap: 10px 18px; padding: 12px 0; border-bottom: 1px solid var(--sunk); align-items: start; }
.pwseo .prow:last-child { border-bottom: 0; }
.pwseo .pwho { display: flex; gap: 8px; align-items: center; }
.pwseo .pcap { display: grid; gap: 4px; font-size: 13px; }
.pwseo .pcap .small { font-size: 12px; }
.pwseo .ptasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.pwseo .ptasks li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pwseo .pclient { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 12px; display: grid; gap: 8px; }
.pwseo .pclient.focus { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.pwseo .pclient h3 { margin: 0; }
.pwseo .mcap { display: grid; gap: 4px; font-size: 13.5px; max-width: 460px; }
.pwseo .warnline { color: var(--warn); }
.pwseo .fillall { border-color: var(--accent); }
.pwseo .nextweek { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.pwseo .nextweek.todo { border-color: var(--warn); box-shadow: inset 4px 0 0 var(--warn); }
.pwseo .nextweek.ok { box-shadow: inset 4px 0 0 var(--ok); }
.pwseo .nextweek .okmark { color: var(--ok); font-weight: 700; }
@media (max-width: 900px) {
  .pwseo .prow { grid-template-columns: 1fr; }
  .pwseo .qrow { grid-template-columns: auto 1fr; }
  .pwseo .qrow .qadd { grid-column: 1 / -1; }
}
/* 2.3 kvartal */
.plan-bar .seg { gap: 0; }
.plan-bar .seg .btn { border-radius: 0; }
.plan-bar .seg .btn:first-child { border-radius: 8px 0 0 8px; }
.plan-bar .seg .btn:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.plan-bar select { width: auto; }
.pwseo .later-line { margin: 2px 2px 0; }
.cal .h.now, .heat .hw.now { color: var(--accent); font-weight: 700; }
.cal .cell.past { background: color-mix(in srgb, var(--sunk) 45%, var(--surface)); }
.cal .cell .load.full { color: var(--fg); font-weight: 600; }
.cal .who .small { font-size: 11px; font-weight: 400; }
.mcal { grid-template-columns: 170px repeat(var(--weeks), minmax(170px, 1fr)); }
.mchip { display: grid; gap: 3px; padding: 5px 7px; border-radius: 7px; background: var(--sunk); color: var(--fg); text-decoration: none; font-size: 12px; line-height: 1.3; cursor: grab; }
.mchip:hover .mt { text-decoration: underline; }
.mchip.late { box-shadow: inset 3px 0 0 var(--miss); }
.mchip .mt { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; }
.pwseo .qhead h2, .pwseo .qfocus h2, .pwseo .qhours h2 { margin: 0 0 4px; }
.pwseo .qfocus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0; }
.pwseo .qmonth { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; display: grid; gap: 6px; min-width: 0; }
.pwseo .qmonth legend { font-weight: 700; padding: 0 4px; }
.pwseo .qmonth.past { opacity: .65; }
.pwseo .qslot { display: flex; gap: 8px; align-items: center; }
.pwseo .qslot select { flex: 1; min-width: 0; padding: 5px 8px; font-size: 13px; }
.pwseo .qpos { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); font: 700 11px var(--mono); }
.pwseo .qfl { margin: 4px 0 0; padding-left: 20px; }
.pwseo .qtl-wrap { overflow-x: auto; }
.qtl { display: grid; grid-template-columns: minmax(200px, 240px) repeat(var(--weeks), minmax(38px, 1fr)); min-width: calc(220px + var(--weeks) * 40px); font-size: 12.5px; }
.qtl > div { border-bottom: 1px solid var(--sunk); }
.qtl .qh { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 4px 6px; background: var(--surface); }
.qtl .qmh { font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--fg); border-left: 1px solid var(--line); }
.qtl .qwh { text-align: center; }
.qtl .qwh.now { color: var(--accent); font-weight: 700; }
.qtl .mstart { border-left: 1px solid var(--line); }
.qtl .qrowh { padding: 8px 10px 8px 0; display: grid; gap: 3px; align-content: center; }
.qtl .qrowh b { line-height: 1.25; }
.qtl .qrowh.other b { color: var(--muted); }
.qtl .qsub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 11.5px; }
.qtl .qcell { display: flex; flex-wrap: wrap; gap: 3px; align-content: center; justify-content: center; padding: 6px 3px; min-height: 44px; }
.qtl .qcell.past { background: color-mix(in srgb, var(--sunk) 40%, transparent); }
.qtl .qcell.beyond, .qtl .qwh.beyond { background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--line) 45%, transparent) 6px 7px); }
.qtl .qcell.focus { background-color: color-mix(in srgb, var(--accent) 9%, transparent); }
.qtl .qcell.focus.f1 { background-color: color-mix(in srgb, var(--accent) 15%, transparent); }
.qd { display: inline-block; width: 9px; height: 16px; border-radius: 3px; background: var(--ok); vertical-align: middle; }
.qd.longtail { background: var(--lt); }
.qd.link, .qd.optimize, .qd.fix, .qd.custom { background: var(--edge); }
.qd.pillar, .qd.pg { background: var(--accent); width: 14px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.qd.st-klar, .qd.st-publicerad { opacity: .45; }
.qd.st-skrivs, .qd.st-granskning { outline: 2px solid var(--gold); outline-offset: 1px; }
a.qd:hover, a.qd:focus-visible { transform: scale(1.25); }
.pwseo .qlegend { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 8px; }
.pwseo .qswatch { display: inline-block; width: 14px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 15%, var(--surface)); border: 1px solid var(--line); }
.pwseo .qhrow { display: grid; grid-template-columns: 110px 1fr 140px; gap: 12px; align-items: center; padding: 6px 0; }
.pwseo .qhrow .bar { height: 12px; border-radius: 6px; }
.pwseo .qhv { text-align: right; font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-template-columns: minmax(170px, 210px) repeat(var(--weeks), minmax(42px, 1fr)); gap: 3px; overflow-x: auto; margin-top: 10px; font-size: 12px; }
.heat .hh { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 2px 4px; text-align: center; text-decoration: none; }
.heat .hh.hm { font-family: var(--sans); font-size: 12.5px; font-weight: 700; color: var(--fg); text-align: left; border-bottom: 1px solid var(--line); }
.heat .hh.corner { text-align: left; }
.heat a.hw:hover { color: var(--accent); text-decoration: underline; }
.heat .hp { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-weight: 600; }
.heat .hp .small { font-size: 11px; font-weight: 400; }
.heat .hc { display: grid; place-items: center; min-height: 38px; border-radius: 6px; text-decoration: none; color: var(--fg); font-variant-numeric: tabular-nums; border: 1px solid transparent; }
.heat .hc:hover, .heat .hc:focus-visible { border-color: var(--accent); }
.heat .hc.h0 { background: var(--sunk); color: var(--muted); }
.heat .hc.h1 { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.heat .hc.h2 { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.heat .hc.h3 { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); color: #fff; }
.heat .hc.h4 { background: var(--accent); color: #fff; font-weight: 700; }
.heat .hc.hover { background: var(--miss); color: #fff; font-weight: 700; }
.pwseo .qmonths { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; }
@media (max-width: 900px) {
  .pwseo .qfocus-grid { grid-template-columns: 1fr; }
  .pwseo .qhrow { grid-template-columns: 80px 1fr; }
  .pwseo .qhrow .qhv { grid-column: 1 / -1; text-align: left; }
}

/* 2.3 del 3 */
/* Kundinställningar: ankarmeny överst. */
.pwseo .settings-anchors { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 0; margin-bottom: 4px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pwseo .settings-anchors a { font-weight: 600; text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.pwseo .settings-anchors a:hover { background: var(--sunk); }
.pwseo .settings-anchors span { color: var(--muted); }
.settings-layout.top { grid-template-columns: 1fr; }
.settings-layout.top .settings-body > section { scroll-margin-top: 60px; }
/* Veckans läge mot avtalen (startsidan och steg 3 på Planera-sidan). */
.pwseo .weekstatus { margin: 6px 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--sunk); border-left: 3px solid var(--warn); }
.pwseo .weekstatus.ok { border-left-color: var(--ok); }
.pwseo .weekstatus .btn.small, .pwseo .nextweek .btn.small { margin-left: 4px; }
.pwseo .muted-step h2 { color: var(--muted); }
/* Väntar på dig (teamledarens startsida). */
.pwseo .waiting { border-left: 3px solid var(--warn); }
.pwseo .waiting li.click { cursor: pointer; }
.pwseo .waiting li.click:hover { background: var(--sunk); }
/* Månadsfokus som chips. */
.pwseo .qfrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pwseo .qfrow.past { opacity: .6; }
.pwseo .qfrow .qfm { min-width: 110px; font-weight: 700; }
.pwseo .chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pwseo .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border: 1px solid var(--accent); border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: 13px; }
.pwseo .chip.sugg { border-style: dashed; background: var(--surface); }
.pwseo .chip .qpos { font: 700 11px var(--mono); color: var(--accent); }
.pwseo .chip .small { font-size: 11px; }
.pwseo .chip-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 50%; }
.pwseo .chip-x:hover { color: var(--miss); }
.pwseo select.chip-add { width: auto; max-width: 220px; padding: 3px 8px; border-style: dashed; color: var(--accent); }
.pwseo .qfocus-save { margin-top: 10px; gap: 10px; align-items: center; }
.pwseo .qpending { padding: 8px 10px; margin-top: 4px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border: 1px dashed var(--warn); font-weight: 600; }
/* Briefen på uppgiften. */
.pwseo .brief-facts dd { overflow-wrap: anywhere; }
.pwseo .brief-list { margin: 4px 0 0; padding-left: 18px; }
.pwseo .brief-list li { margin: 2px 0; }
.pwseo .brief-inline h3.sub { margin: 12px 0 2px; font-size: 13px; }
.pwseo .brief-pre { white-space: pre-wrap; background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: 12.5px/1.5 var(--mono); margin: 8px 0 0; max-height: 520px; overflow: auto; }
/* 2.9 B (#122): briefkortets nya delar. */
.pwseo .brief-goal { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--sunk); border-radius: 0 8px 8px 0; }
.pwseo .brief-goal p { margin: 0; } .pwseo .brief-goal p + p { margin-top: 4px; }
.pwseo .brief-existing { margin: 10px 0; border-color: var(--warn); }
.pwseo .brief-existing a { display: inline-block; margin-top: 4px; }
.pwseo .brief-chips, .pwseo .brief-terms { margin-top: 6px; }
.pwseo .brief-chips .chip, .pwseo .brief-terms .chip { padding: 3px 9px; max-width: 100%; overflow-wrap: anywhere; }
.pwseo .brief-chips .chip .small, .pwseo .brief-terms .chip .small { white-space: nowrap; flex-shrink: 0; }
.pwseo .brief-needs { margin-left: 4px; font-size: 11px; padding: 1px 7px; white-space: normal; }
/* Min vecka: omnämnanden; Min månad. */
.pwseo .mentions { border-left: 3px solid var(--accent); }
.pwseo .mentions h3 { margin: 0 0 4px; }
.pwseo .mymonth { display: grid; gap: 0; padding: 4px 16px; }
.pwseo .mm-week { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pwseo .mm-week:last-child { border-bottom: 0; }
.pwseo .mm-week.now .mm-head b { color: var(--accent); }
.pwseo .mm-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.pwseo .mm-head b { margin-right: auto; }
.pwseo .mm-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
.pwseo .mm-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pwseo .mm-empty { margin: 2px 0 0; font-size: 13px; }
@media (max-width: 700px) { .pwseo .qfrow .qfm { min-width: 0; width: 100%; } }
/* 2.6 M2 */
/* Sidomenyns mörka fält går hela sidans höjd (menyn själv är sticky och 100vh hög). */
@media (min-width: 901px) { .shell { background: linear-gradient(to right, var(--side) 232px, transparent 232px); } }
/* Tips på mobil när en tabell har fler kolumner än som syns. */
.pwseo .scrollhint { display: none; margin: 0 0 6px; font-size: 12px; }
@media (max-width: 700px) { .pwseo .scrollhint { display: block; } }
/* Startsidans rubriker per roll när personen har flera (Säljdagen, Teamet, Din vecka). */
.pwseo .dash-group { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -6px; font-weight: 500; }
/* Mobil: korta sidor (t.ex. felsidor) ska inte sträcka ut sidomenyns rad. */
@media (max-width: 900px) { .shell { align-content: start; } }
/* 2.9 N (#103): Moose-loggan (komponenten x-moose-logo), sidfoten och inloggningen. */
.brand img.mark { width: 34px; height: 34px; background: none; border-radius: 0; flex: none; }
.appfoot { margin: 32px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }
.appfoot a { color: var(--muted); text-decoration: none; } .appfoot a:hover { color: var(--fg); text-decoration: underline; }
.login-brand { display: grid; justify-items: center; gap: 4px; text-align: center; }
.login-logo { width: 132px; height: auto; }
.login-foot { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.pwseo .tw-logo { width: 52px; height: 52px; margin-bottom: 12px; display: block; }
/* 2.9 N (#103): Om Moose */
.about { display: grid; gap: 16px; max-width: 980px; }
.about-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.about-logo { width: 180px; max-width: 100%; height: auto; }
.about-id h1 { margin: 0 0 4px; }
.about-by { margin: 0 0 12px; font-size: 15px; }
.about-build { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.about-build div { display: grid; } .about-build dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .about-build dd { margin: 0; font-weight: 600; }
.about-report { margin: 14px 0 0; }
.about-new { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 8px; } .about-new span { color: var(--muted); }
.about-log { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; margin-top: 8px; }
.about-log > summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.about-md { font-size: 14px; line-height: 1.55; padding-bottom: 8px; overflow-wrap: anywhere; }
.pwseo .about-md h3 { font-size: 15px; margin: 14px 0 6px; font-family: inherit; text-transform: none; letter-spacing: 0; color: var(--fg); font-weight: 650; } .about-md h4 { font-size: 14px; margin: 10px 0 4px; }
.about-md ul { padding-left: 20px; } .about-md li { margin: 3px 0; } .about-md code { font: 12.5px var(--mono); background: var(--sunk); padding: 1px 4px; border-radius: 4px; }
.about-data { padding-left: 18px; display: grid; gap: 6px; margin: 6px 0 0; }
@media (max-width: 600px) { .about-hero { gap: 14px; } .about-logo { width: 140px; } }
/* 2.9 U1 (#100): tabeller som blir kort i mobilen – <table class="t t-cards">, celler med data-label */
@media (max-width: 700px) {
  .pwseo table.t-cards, .pwseo table.t-cards tbody, .pwseo table.t-cards tr, .pwseo table.t-cards td { display: block; width: 100%; }
  .pwseo table.t-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pwseo table.t-cards tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--surface); }
  .pwseo table.t-cards td { border: 0; padding: 3px 0; text-align: left; white-space: normal !important; }
  .pwseo table.t-cards td[data-label] { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
  .pwseo table.t-cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; flex: none; }
  .pwseo table.t-cards td.t-cards-title { font-size: 15px; padding-bottom: 4px; }
  .pwseo table.t-cards td.t-cards-acts .row { flex-wrap: wrap !important; }
  .pwseo .tablewrap:has(> table.t-cards) { overflow: visible; border: 0; }
}
/* 2.9 U1 (#119): hopplänken, kundflikarnas grupper och mobilmenyn */
.skiplink { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--surface); color: var(--fg); padding: 10px 14px; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.2); font-weight: 600; text-decoration: none; }
.skiplink:focus { top: 12px; outline: 2px solid var(--accent); outline-offset: 2px; }
.main:focus { outline: none; }
.pwseo .side a:focus-visible, .pwseo .side button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.pwseo .tabs.ctabs a[aria-current="true"] { color: var(--fg); border-color: var(--accent); }
.pwseo .subtabs { display: flex; gap: 4px; flex-wrap: wrap; margin: -6px 0 2px; padding: 4px; background: var(--sunk); border-radius: 10px; width: fit-content; max-width: 100%; }
.pwseo .subtabs a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 5px 11px; border-radius: 7px; }
.pwseo .subtabs a:hover { color: var(--fg); }
.pwseo .subtabs a[aria-current="page"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pwseo .mbar { display: none; }
@media (max-width: 700px) {
  .pwseo .tabs.ctabs, .pwseo .subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; }
  .pwseo .tabs.ctabs a, .pwseo .subtabs a { white-space: nowrap; flex: none; }
  .pwseo .tabs.ctabs a { padding: 9px 10px; }
  .pwseo .side { display: none; }
  .pwseo .main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html.side-open { overflow: hidden; }
  html.side-open .pwseo .side { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; position: fixed; inset: 0 0 calc(58px + env(safe-area-inset-bottom)) 0; z-index: 900; height: auto; overflow-y: auto; padding: 16px; gap: 14px; }
  html.side-open .pwseo .side nav { display: grid; } html.side-open .pwseo .side .me { display: grid; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
  .pwseo .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: var(--side); border-top: 1px solid rgba(255,255,255,.1); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .pwseo .mbar a, .pwseo .mbar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--side-muted); background: none; border: 0; font: 500 11px var(--sans); text-decoration: none; border-radius: 8px; position: relative; cursor: pointer; }
  .pwseo .mbar .ico { width: 22px; height: 22px; }
  .pwseo .mbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pwseo .mbar a[aria-current="page"], .pwseo .mbar button[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.1); }
  .pwseo .mbar a:focus-visible, .pwseo .mbar button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  .pwseo .mbar-badge { position: absolute; top: 2px; left: 55%; background: var(--miss, #c0392b); color: #fff; font: 700 10px var(--sans); border-radius: 9px; padding: 1px 5px; }
}
.pwseo .field[hidden] { display: none; } /* 2.9 U1: fält med hidden (t.ex. Kampanj på anteckningar) döljs även när .field sätter display */
/* 2.9 U2 (#120): ett tekniskt ord som superadmin behöver står i ett verktygstips (title) på en svensk text. */
.pwseo .term-tip { border-bottom: 1px dotted currentColor; cursor: help; }
.pwseo .term-tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pwseo label.term-tip { display: inline-block; }
