:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5d6b7c;
  --border: #d7dce3;
  --accent: #1f5f99;
  --accent-text: #ffffff;
  --ok: #1d7a46;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;
  --error: #a32020;
  --error-bg: #fdecec;
  --info-bg: #eaf2fb;
  --radius: 6px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.surface-admin { --accent: #5b3a8c; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c; --surface: #1b2129; --text: #e6e9ee; --muted: #9aa6b5; --border: #313a46;
    --accent: #6ea8de; --accent-text: #0d1117; --info-bg: #17283a; --warn-bg: #2e2412; --error-bg: #3a1717;
    --ok: #57c98a; --warn: #e5b45a; --error: #f08a8a;
  }
  .surface-admin { --accent: #b69ae6; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.45; }
a { color: var(--accent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
.brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--text); }
.user { display: flex; align-items: center; gap: 8px; color: var(--muted); }
h1 { font-size: 1.5rem; margin: 0.2em 0 0.6em; }
h2 { font-size: 1.2rem; margin: 0.4em 0; }
h3 { font-size: 1.05rem; margin: 0.4em 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.card.narrow { max-width: 520px; margin: 48px auto; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.field-label { font-weight: 600; font-size: 0.92rem; }
.field small, .muted { color: var(--muted); }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); max-width: 100%; }
textarea { width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.btn { font: inherit; border-radius: 4px; padding: 7px 14px; cursor: pointer; border: 1px solid var(--accent); display: inline-block; text-decoration: none; margin: 4px 6px 4px 0; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-secondary { background: var(--surface); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); border-color: transparent; }
.btn-danger { background: var(--surface); color: var(--error); border-color: var(--error); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.alert { border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; border: 1px solid var(--border); }
.alert-info { background: var(--info-bg); }
.alert-ok { background: var(--info-bg); border-color: var(--ok); }
.alert-warn { background: var(--warn-bg); border-color: var(--warn); }
.alert-error { background: var(--error-bg); border-color: var(--error); color: var(--text); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); }
.badge { display: inline-block; font-size: 0.78rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); }
.badge.ok { border-color: var(--ok); color: var(--ok); }
.badge.warn, .status-dpia_required, .status-pending_approval, .status-queued { border-color: var(--warn); color: var(--warn); }
.status-active, .status-approved, .status-published, .status-validated, .status-verified, .status-sent { border-color: var(--ok); color: var(--ok); }
.status-rejected, .status-suspended, .status-disabled, .status-ineffective, .status-failed { border-color: var(--error); color: var(--error); }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin: 12px 0; padding: 10px 14px; background: var(--surface); }
legend { font-weight: 600; padding: 0 6px; }
.group { margin: 18px 0; }
.rows .row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.cell { display: flex; flex-direction: column; font-size: 0.88rem; }
.refs { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow: auto; padding: 4px; border: 1px solid var(--border); border-radius: 4px; }
.check { display: flex; gap: 6px; align-items: baseline; }
.badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.check.muted { color: var(--muted); }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.checklist { list-style: none; padding: 0; }
.checklist .ok { color: var(--ok); }
.checklist .todo { color: var(--warn); }
.summary { white-space: pre-wrap; background: var(--bg); padding: 8px; border-radius: 4px; font-size: 0.85rem; max-height: 360px; overflow: auto; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.score { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.qr { background: #fff; display: inline-block; padding: 4px; }
.secret { word-break: break-all; }
.codes code { font-size: 1.05rem; }
.tree { margin: 4px 0 4px 18px; padding: 0; }
.question { padding: 6px 0; border-bottom: 1px dashed var(--border); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
dt { color: var(--muted); }
dd { margin: 0; word-break: break-word; }
.context select { margin-left: 4px; }
.mail-body { max-height: 60vh; }

.checks { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.5rem 0 1rem; }
label.check { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: normal; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li + li { margin-top: 2px; }
.badge.level-low { border-color: var(--ok); color: var(--ok); }
.badge.level-medium { border-color: var(--warn); color: var(--warn); }
.badge.level-high, .badge.level-very_high { border-color: var(--error); color: var(--error); }
.badge.level-very_high { background: var(--error-bg); font-weight: 600; }
.score .badge { font-size: 1rem; margin-top: 4px; }
details.card > summary, details.danger-zone > summary { cursor: pointer; font-weight: 600; }
details.danger-zone { margin: 24px 0; padding: 12px 16px; border: 1px dashed var(--error); border-radius: var(--radius); }


/* Training (participants) */
body.learn { background: linear-gradient(160deg, #e3f2fd 0%, #fce4ec 50%, #e8f5e9 100%); min-height: 100vh; }
.learn-shell { max-width: 860px; margin: 0 auto; padding: 16px; }
.learn-header { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: #1a237e; padding: 8px 4px 16px; }
.learn-logo { font-size: 1.6rem; }
.learn-card { background: #fff; color: #1c2430; border-radius: 22px; padding: 28px 32px; margin: 0 0 20px; box-shadow: 0 10px 30px rgba(26, 35, 126, .12); }
.learn-hero { text-align: center; }
.learn-hero .learn-art { max-width: 420px; }
.learn-art { display: block; width: 100%; max-width: 520px; margin: 12px auto 20px; border-radius: 18px; }
.learn-card h1 { font-size: 1.7rem; margin: .2em 0 .5em; }
.learn-lead { font-size: 1.12rem; color: #37474f; }
.learn-text p, .learn-text li { font-size: 1.05rem; line-height: 1.65; }
.learn-text ul { padding-left: 1.3em; }
.learn-chapter { border-top: 10px solid var(--chapter); }
.learn-chapter-head h1 { color: var(--chapter); }
.learn-step { display: inline-block; background: var(--chapter); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 600; }
.learn-key { background: color-mix(in srgb, var(--chapter) 12%, #fff); border-left: 6px solid var(--chapter); border-radius: 14px; padding: 12px 20px; margin: 18px 0; }
.learn-key h2 { font-size: 1.05rem; margin: 4px 0; color: var(--chapter); }
.learn-key li { margin: 4px 0; font-weight: 600; }
.learn-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; }
.learn-hero .learn-nav { justify-content: center; }
.learn-progress { height: 10px; background: rgba(255, 255, 255, .7); border-radius: 999px; margin: 0 0 16px; overflow: hidden; }
.learn-progress-bar { height: 100%; background: linear-gradient(90deg, #1e88e5, #8e24aa, #e53935, #fb8c00, #43a047); border-radius: 999px; transition: width .3s; }
.learn-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 20px 0; }
.learn-facts div { background: #f3f6ff; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; }
.learn-facts strong { font-size: 1.6rem; color: #3949ab; }
.learn-question { border: 2px solid #e8eaf6; border-radius: 16px; padding: 14px 18px; margin: 16px 0; background: #fafbff; }
.learn-question legend { font-weight: 700; font-size: 1.05rem; padding: 0 6px; }
.learn-hint { color: #6a1b9a; font-size: .9rem; margin: 2px 0 6px; }
.learn-option { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.learn-option:hover { background: #eef2ff; }
.learn-option input { margin-top: 4px; transform: scale(1.2); }
.learn-input { width: 100%; font-size: 1.1rem; padding: 12px 14px; border-radius: 12px; margin: 10px 0; }
.learn-score { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #43a047, #00897b); color: #fff; font-size: 2.2rem; font-weight: 800; margin: 8px auto; }
.learn-score-fail { background: linear-gradient(135deg, #fb8c00, #e53935); }
@media (max-width: 600px) { .learn-card { padding: 20px 18px; border-radius: 16px; } .learn-card h1 { font-size: 1.35rem; } }
.delegate-main { max-width: 1100px; margin: 0 auto; padding: 16px; background: var(--surface); border-radius: 18px; margin-top: 16px; }

/* Tenant appearance (issue #6) */
.tenant-logo { height: 32px; max-width: 160px; object-fit: contain; vertical-align: middle; margin-right: 10px; border-radius: 4px; background: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.swatch { width: 118px; padding: 8px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.swatch:disabled { cursor: default; opacity: 0.8; }
.swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); font-weight: 600; }
.swatch-chip { display: block; height: 34px; border-radius: 4px; margin-bottom: 6px; }
.logo-preview { display: block; max-height: 80px; max-width: 320px; background: #fff; border: 1px solid var(--border); padding: 6px; border-radius: var(--radius); margin: 8px 0; }

/* Organization tree (issue #5) */
.org-tree { list-style: none; padding: 0; margin: 8px 0 12px; }
.org-tree li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.org-tree li.current .org-name { font-weight: 600; }
.org-tree .org-name { flex: 1; }

/* Forms (issue #7): uniform section cards, table of contents, fields in rows,
   save bar that stays visible. Applies to all forms via the shared classes. */
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.form-toc { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 14px; margin: 12px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; }
.form-toc a { text-decoration: none; }
.form-toc a:hover { text-decoration: underline; }
.form-section { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 20px 10px; margin: 16px 0; scroll-margin-top: 12px; }
.form-section > h2 { margin-top: 0; }
.form-section > p.muted { margin-top: -2px; }
/* List editors inside a section: no box in a box, legend as sub-heading. */
.form-section fieldset { border: 0; padding: 0; margin: 12px 0 4px; background: transparent; }
.form-section legend { padding: 0; font-size: 0.95rem; color: var(--text); }
.rows .row { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px; margin: 6px 0; }
.rows .row .cell { flex: 1 1 180px; }
.rows .row .cell input, .rows .row .cell select { width: 100%; }
.form-actions { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--border); padding: 10px 0; margin-top: 8px; }
fieldset { padding: 12px 16px; }
.danger-zone { border-color: var(--error); }
.danger-zone > h2 { color: var(--error); }

/* ---------------------------------------------------------------------
   Layout (issue #7): top bar, side navigation from 1024px, drawer below.
   Style follows datenschutz-ludwigsburg.eu: navy/slate, soft shadows,
   rounded cards; the tenant accent colours links, icons and highlights.
   --------------------------------------------------------------------- */
:root { --nav-w: 248px; --shadow: 0 8px 22px rgba(15, 23, 42, .06); --brand-navy: #1f2a44; --brand-green: #34d399; }
.icon { width: 20px; height: 20px; flex: none; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px 16px; padding: 8px 16px;
  background: var(--surface); border-bottom: 3px solid var(--accent); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--text); min-width: 0; flex: 0 1 auto; }
.brand .icon { width: 26px; height: 26px; color: var(--accent); }
.brand .tenant-logo + .icon { display: none; }
.brand-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .context { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.topbar .context select { max-width: 260px; }
.user { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); flex: none; }
.topbar .context + .user { margin-left: 8px; }
.user .logout { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.layout { display: block; }
main { padding: 20px; max-width: 1200px; margin: 0 auto; min-width: 0; }
.sidenav { background: var(--surface); border-right: 1px solid var(--border); }
.mainnav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 24px; }
.navlink { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.navlink .icon { color: var(--accent); }
.navlink:hover { background: var(--bg); }
.navlink.current { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--text); font-weight: 600; }
.navlink.sub { padding: 6px 10px 6px 40px; font-size: 0.94rem; }
.navgroup { margin-top: 10px; }
.navhead { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); }
.navhead .icon { color: var(--accent); }
.nav-backdrop { display: none; }
.card, .form-section, fieldset, .score { box-shadow: var(--shadow); }
.card { border-radius: 14px; }
/* Wide screens (landscape tablets, PCs): navigation permanently on the left. */
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); align-items: start; }
  .sidenav { position: sticky; top: 59px; height: calc(100vh - 59px); overflow-y: auto; }
}
/* Narrow screens: drawer behind the menu button. */
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .sidenav { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(84vw, 300px); overflow-y: auto;
    transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(15, 23, 42, .2); }
  .app.nav-open .sidenav { transform: none; }
  .app.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15, 23, 42, .35); }
}
/* Phones */
@media (max-width: 640px) {
  main { padding: 12px; }
  .topbar { padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
  .brand { flex: 1 1 0; font-size: 0.98rem; }
  .user-name, .user > .icon, .user .logout span, .topbar .context > span { display: none; }
  .topbar .context { order: 5; width: 100%; margin-left: 0; }
  .topbar .context select { max-width: none; width: 100%; }
  h1 { font-size: 1.3rem; }
  .card, .form-section { padding: 12px 14px; }
  .card.narrow { margin: 16px auto; }
  .field-row { grid-template-columns: 1fr; }
  .rows .row .cell { flex-basis: 100%; }
  .actions .btn, .form-actions .btn { flex: 1 1 auto; text-align: center; }
  dl { grid-template-columns: 1fr; }
  dt { margin-top: 6px; }
  .form-toc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sidenav { transition: none; } }
/* Illustrations (login, welcome) */
.hero { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 12px; }

/* ISMS (issue #37): process map, process editor, matrix, radar chart */
.warn-text { color: var(--warn); }
.ok-text { color: var(--ok); }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; margin: 8px 0; }
.check-row { display: flex; align-items: baseline; gap: 4px; }
.switch-row { display: flex; align-items: baseline; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.canvas-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-height: 75vh; }
.map-wrap { padding: 8px; }
.isms-svg { display: block; font: 12px system-ui, sans-serif; user-select: none; }
.isms-svg text { fill: var(--text); }
.isms-svg .lbl { font-size: 12px; }
.pm-band { stroke: var(--border); }
.pm-band.pm-mgmt, .pm-box.pm-mgmt { fill: rgba(59, 91, 169, 0.10); }
.pm-band.pm-core, .pm-box.pm-core { fill: rgba(217, 130, 43, 0.12); }
.pm-band.pm-support, .pm-box.pm-support { fill: rgba(58, 143, 75, 0.10); }
.pm-box { stroke-width: 1.5; }
.pm-box.pm-mgmt { stroke: #3b5ba9; fill: rgba(59, 91, 169, 0.22); }
.pm-box.pm-core { stroke: #d9822b; fill: rgba(217, 130, 43, 0.28); }
.pm-box.pm-support { stroke: #3a8f4b; fill: rgba(58, 143, 75, 0.22); }
.pm-link { cursor: pointer; }
.pm-link:hover .pm-box, .pm-link:focus .pm-box { stroke-width: 3; }
.isms-svg .pm-band-label { font-weight: 700; font-size: 13px; fill: var(--muted); }
.isms-svg .pm-empty, .isms-svg .pm-customer { fill: var(--muted); font-style: italic; }
.pm-need { fill: var(--warn); }
.pm-cif { fill: var(--error); }
.isms-svg .pm-badge-text { fill: #fff; font-size: 10px; font-weight: 700; }
.dg-toolbar, .dg-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 6px 0; }
.dg-palette .btn { padding: 4px 9px; font-size: 0.9rem; }
.btn.active { background: var(--accent); color: var(--accent-text); }
.dg-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .dg-body { grid-template-columns: 1fr; } }
.dg-props { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.dg-props h3 { margin-top: 0; }
.dg-props .field { display: flex; flex-direction: column; gap: 2px; margin: 6px 0; }
.dg-props textarea, .dg-props input, .dg-props select { width: 100%; box-sizing: border-box; }
.diagram:focus { outline: none; }
.dg-bg { fill: var(--surface); }
.lane { fill: var(--bg); stroke: var(--border); }
.lane-head { fill: var(--border); stroke: var(--border); cursor: pointer; }
.lane-head.selected { fill: var(--accent); }
.isms-svg .lane-lbl { font-weight: 600; pointer-events: none; }
.dg-node { cursor: move; }
.dg-node .shape { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.dg-node .shape.thick { stroke-width: 4; }
.dg-node .shape.inner { fill: none; }
.dg-node .shape.doc { fill: rgba(229, 180, 90, 0.18); }
.dg-node .shape.sys { fill: rgba(110, 168, 222, 0.18); }
.dg-start .shape { stroke: var(--ok); }
.dg-end .shape { stroke: var(--error); }
.dg-node .glyph { stroke: var(--accent); stroke-width: 3; fill: none; }
.dg-node .glyph.thin { stroke-width: 1.5; }
.dg-node.selected .shape { stroke: var(--warn); stroke-width: 4; }
.dg-node text { pointer-events: none; }
.dg-edge { cursor: pointer; }
.dg-edge .edge { stroke: var(--muted); stroke-width: 1.6; fill: none; }
.dg-edge .edge-hit { stroke: transparent; stroke-width: 12; fill: none; }
.dg-edge.selected .edge { stroke: var(--warn); stroke-width: 3; }
.isms-svg .edge-lbl { font-size: 11px; fill: var(--muted); }
.arrowhead { fill: var(--muted); }
table.matrix th.rot { height: 150px; white-space: nowrap; vertical-align: bottom; padding: 4px 2px; }
table.matrix th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; max-height: 145px; overflow: hidden; text-overflow: ellipsis; }
table.matrix td.center { text-align: center; }
.radar-wrap { overflow-x: auto; }
.radar-ring { fill: none; stroke: var(--border); }
.radar-axis { stroke: var(--border); }
.isms-svg .radar-scale { font-size: 10px; fill: var(--muted); }
.isms-svg .radar-lbl { font-size: 11px; }
.radar-actual { fill: rgba(31, 95, 153, 0.25); stroke: var(--accent); stroke-width: 2; }
.radar-target { fill: none; stroke: var(--warn); stroke-width: 2; stroke-dasharray: 6 4; }
.key { display: inline-block; width: 18px; height: 4px; vertical-align: middle; }
.key-actual { background: var(--accent); }
.key-target { background: var(--warn); }
.pm-linkline { fill: none; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.75; }
.pm-linkline.support { stroke: #3a8f4b; }
.pm-linkline.management { stroke: #3b5ba9; }
.pm-links { pointer-events: stroke; }
.ctx-center { stroke-width: 3; }
.isms-svg .ctx-center-lbl { font-weight: 700; font-size: 13px; }
.ctx-asset { fill: rgba(110, 168, 222, 0.15); stroke: var(--accent); }
.ctx-asset.high { stroke: var(--warn); stroke-width: 2; }
.ctx-cif { fill: rgba(163, 32, 32, 0.08); stroke: var(--error); }
.ctx-asset-line { stroke: var(--accent); stroke-width: 1.2; fill: none; opacity: 0.6; }
.ctx-cif-line { stroke: var(--error); stroke-width: 1.2; fill: none; opacity: 0.6; }
.isms-svg .ctx-sub { font-size: 10px; fill: var(--muted); }
.period-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 12px; }
.period-picker .field { margin: 0; }
.status-not_applicable { border-color: var(--muted); color: var(--muted); }
details.not-applicable > summary { cursor: pointer; color: var(--muted); margin: 8px 0; }
.module-select { margin-left: 6px; font-size: 0.9rem; }
.module-select select { padding: 2px 4px; }
