/* IT Responsibility Dashboard — styles
   Colors: only the semantic ownership colors (P/S/G/?) + one neutral accent (slate ink).
   Risk flags reuse status red/amber and always carry an icon + text. */

:root {
  color-scheme: light;
  --page: #f5f6f8;
  --surface: #ffffff;
  --ink: #111418;
  --ink-2: #4a4f57;          /* secondary text — 8.3:1 on white */
  --ink-3: #6b7078;          /* muted text — 4.9:1 on white */
  --line: #e4e6ea;
  --line-2: #d0d3d9;
  --accent: #2f3a4a;         /* the single neutral accent */
  --accent-soft: #eef0f3;

  /* Ownership — chip (soft fill + dark text) and bar (solid) variants */
  --p-bg: #dcf1dc;  --p-ink: #0b4d12;  --p-line: #8ccf8f;  --p-bar: #107c10;  /* white on bar 5.1:1 */
  --s-bg: #fdecc0;  --s-ink: #5a3b00;  --s-line: #e8bf55;  --s-bar: #eda100;  /* dark ink on bar 9:1 */
  --g-bg: #dce8fb;  --g-ink: #0d366b;  --g-line: #95b8ee;  --g-bar: #256abf;  /* white on bar 5.3:1 */
  --r-bg: #ffffff;  --r-ink: #4a4f57;  --r-line: #9aa0a8;

  /* Risk flags (status) */
  --crit-bg: #fde7e7; --crit-ink: #8a1c1c; --crit-line: #e9a3a3;
  --warn-bg: #fff3d6; --warn-ink: #5a3b00; --warn-line: #e8bf55;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .05);
  --font: "Segoe UI", "Leelawadee UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 32px 56px; }

/* ---------- Header ---------- */
.hdr { margin-bottom: 28px; }
.hdr h1 { font-size: 34px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; line-height: 1.2; }
.hdr .sub { margin: 0; color: var(--ink-2); font-size: 18px; }
.hdr .asof { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.banner {
  margin-top: 20px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
}
.banner .txt { font-size: 17px; }
.banner .txt b { font-weight: 600; }
.meter { flex: 1 1 200px; min-width: 160px; height: 8px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transform-origin: left center; }

/* ---------- Section frame ---------- */
section.blk { margin-top: 40px; }
.blk > h2 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.blk > .lead { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px 16px; }
.kpi .lbl { font-size: 15px; color: var(--ink-2); margin: 0; }
.kpi .val { font-size: 40px; font-weight: 600; line-height: 1.15; margin: 6px 0 2px; }
.kpi .val small { font-size: 18px; font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.kpi .note { font-size: 14px; color: var(--ink-3); margin: 0; }
.kpi.risk { border-top: 3px solid var(--line-2); }
.kpi.risk.crit { border-top-color: var(--crit-line); }
.kpi.risk.warn { border-top-color: var(--warn-line); }
.kpi .flag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-top: 6px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 34px; height: 30px; padding: 0 10px; border-radius: 8px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; white-space: nowrap;
}
.chip .t { font-weight: 400; font-size: 14px; }
.chip.P { background: var(--p-bg); color: var(--p-ink); border-color: var(--p-line); }
.chip.S { background: var(--s-bg); color: var(--s-ink); border-color: var(--s-line); }
.chip.G { background: var(--g-bg); color: var(--g-ink); border-color: var(--g-line); }
.chip.R { background: var(--r-bg); color: var(--r-ink); border: 1.5px dashed var(--r-line); }

.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 14px; font-size: 15px; color: var(--ink-2); }
.legend .it { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Toolbar / filter ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--accent-soft); border-radius: 10px; padding: 3px; }
.seg button {
  font: inherit; font-size: 15px; border: 0; background: transparent; color: var(--ink-2);
  padding: 7px 16px; border-radius: 8px; cursor: pointer; min-height: 36px;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.seg button:focus-visible, .dom-btn:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.linkbtn { font: inherit; font-size: 15px; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 4px 6px; }

/* ---------- Matrix ---------- */
.mx-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.mx { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.mx th, .mx td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mx thead th { font-size: 15px; font-weight: 600; color: var(--ink-2); background: var(--surface); position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line-2); }
.mx thead th .en { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); letter-spacing: .01em; }
.mx thead th .role { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.mx th.svc, .mx td.svc { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 250px; }
.mx thead th.svc { z-index: 3; }
.mx td.svc .nm { font-weight: 500; }
.mx td.depth { text-align: left; white-space: nowrap; }
.src { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; vertical-align: 2px; white-space: nowrap; }

tr.dom td { background: #fafbfc; padding: 0; border-bottom: 1px solid var(--line-2); }
tr.dom td.svc { background: #fafbfc; }
.dom-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--ink);
  background: transparent; border: 0; padding: 12px 14px; cursor: pointer; min-height: 48px;
}
.dom-btn .ico { font-size: 16px; width: 22px; text-align: center; }
.dom-btn .cnt { font-weight: 400; font-size: 14px; color: var(--ink-3); }
.dom-btn .car { margin-left: auto; color: var(--ink-3); transition: transform .2s var(--ease); font-size: 14px; }
.dom-btn[aria-expanded="false"] .car { transform: rotate(-90deg); }

tr.svcrow.pending td { color: var(--ink-3); }
tr.svcrow.pending td.svc { background: #fdfdfe; }
tr.svcrow.pending .nm { font-weight: 400; }
tr.svcrow[hidden] { display: none; }

.flag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; }
.flag.crit { background: var(--crit-bg); color: var(--crit-ink); border-color: var(--crit-line); }
.flag.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.flag.ok   { background: var(--accent-soft); color: var(--ink-2); border-color: var(--line-2); }
.flag.pend { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-2); font-weight: 400; }

/* ---------- Hero ----------
   One soft panel: teal→sky wash (same family as the diagram: #e6f1fb / #b9d4ee / #1d5c63) + faint dot grid.
   Left: eyebrow, headline message, 3 stats with hairline dividers. Right: team→service network (decorative). */
.hero {
  --h-teal: #1d5c63;          /* 7.6:1 on the wash */
  --h-sky: #e6f1fb; --h-bd: #cfe0ee; --h-blue: #3a78b0;
  --h-wash: linear-gradient(115deg, #f1f8f8 0%, #edf5fb 55%, #e4effa 100%);
  position: relative; overflow: hidden; isolation: isolate;
  padding: 26px 36px 30px; border-radius: 18px; border: 1px solid var(--h-bd);
  background: var(--h-wash);
  box-shadow: 0 1px 2px rgba(29, 92, 99, .05), 0 8px 28px rgba(29, 92, 99, .07);
}
.hero::before { /* dot grid, fades out toward the text side */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(29, 92, 99, .13) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 75%);
          mask-image: linear-gradient(90deg, transparent 25%, #000 75%);
}
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.hero-eb {
  margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--h-teal);
}
.hero-eb-sep { color: #8fb3c4; font-weight: 400; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--h-teal); box-shadow: 0 0 0 4px rgba(29, 92, 99, .12); }
.hero-asof {
  margin: 0; padding: 4px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--h-bd); font-variant-numeric: tabular-nums;
}
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 12px 40px; }
.hero-txt { min-width: 0; }
.hero-h {
  margin: 18px 0 26px; font-size: 38px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em;
  color: var(--ink); text-wrap: balance;
}
.hero-sub { display: block; margin-top: 6px; font-size: 18px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.hero-hl { color: var(--h-teal); white-space: nowrap; background: linear-gradient(transparent 68%, rgba(29, 92, 99, .14) 68%); padding: 0 2px; }
.hero-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; }
.hs { display: flex; flex-direction: column; gap: 2px; padding: 0 34px; min-width: 0; }
.hs:first-child { padding-left: 0; }
.hs + .hs { border-left: 1px solid #bcd3e3; }
.hs-row { display: flex; align-items: center; gap: 14px; }
.hs-v { font-size: 72px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hs-team .hs-v { color: var(--h-teal); }
.hs-u { font-size: 17px; color: var(--ink-2); }
.hs-avas { display: inline-flex; padding-left: 8px; }
.ava-hero {
  width: 40px; height: 40px; border-radius: 50%; margin-left: -10px; flex: none;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .15); background: var(--h-sky);
}
.ava-hero .ava-fb { font-size: 16px; color: var(--h-teal); }
/* network */
.hero-net { min-width: 0; }
.hero-net svg { display: block; width: 100%; height: auto; max-height: 250px; overflow: visible; }
.hero-net .nl { stroke: var(--h-blue); stroke-opacity: .28; stroke-width: 1; }
.hero-net .nl-hub { stroke: var(--h-teal); stroke-opacity: .45; stroke-width: 1.5; }
.hero-net .nl-hub.is-dot { stroke-dasharray: 4 4; }
.hero-net .nd { fill: var(--h-blue); fill-opacity: .5; }
.hero-net .nh { fill: var(--h-teal); stroke: #fff; stroke-width: 2.5; }
.hero-net .nh-halo { fill: var(--h-teal); fill-opacity: .08; }
.hero-net .nt { font-family: var(--font); font-size: 12.5px; font-weight: 600; fill: var(--h-teal); stroke: #f1f7fb; stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }
.net-cap { margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--ink-2); }
.net-cap .nc-h, .net-cap .nc-d { display: inline-block; border-radius: 50%; flex: none; }
.net-cap .nc-h { width: 10px; height: 10px; background: var(--h-teal); box-shadow: 0 0 0 2px #fff; }
.net-cap .nc-d { width: 7px; height: 7px; background: var(--h-blue); opacity: .7; margin-left: 10px; }

/* ---------- Domain overview: Department / Corporate diagram ----------
   Department row (>=1100px): [category] —line— [system/scope] ~S-curve→ [process steps], width ~1 : 1.2 : 1.8.
   Corporate sits BELOW Department, full width: pill → horizontal spine → 4 committee boxes (2×2 when narrow).
   Spine / branches are CSS borders (print-safe); the S-curve is a fixed-size inline SVG per row. */
.dg {
  --dg-fill: #e6f1fb; --dg-bd: #b9d4ee; --dg-line: #1d5c63; --dg-muted: #4f5a66;
  --dg-rail: 26px; --dg-gap: 14px; --dg-w: 2px; --dg-ln: 28px; --dg-cv: 52px;
  --cm-p: 16px; --cm-drop: 16px; --cm-r: 14px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
}
.dg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.dg-pill {
  display: inline-block; padding: 7px 24px; border-radius: 999px; border: var(--dg-w) solid var(--dg-line);
  background: var(--surface); color: var(--dg-line); font-size: 17px; font-weight: 600; letter-spacing: .02em;
}
.dg-desc { font-size: 14px; color: var(--ink-3); }
.dg-box { background: var(--dg-fill); border: 1px solid var(--dg-bd); border-radius: 10px; padding: 12px 16px; min-width: 0; }
.dg-name { font-size: 16.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.dg-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 13.5px; color: var(--dg-muted); }
.dg-cnt { white-space: nowrap; }
.dg-none { color: var(--ink-3); }

/* --- Department --- */
.dg-list { list-style: none; margin: 0; padding: var(--dg-gap) 0 0 calc(var(--dg-rail) * 2); }
.dg-row {
  position: relative; display: grid; align-items: stretch;
  grid-template-columns: minmax(0, 1fr) var(--dg-ln) minmax(0, 1.2fr) var(--dg-cv) minmax(0, 1.8fr);
  grid-template-areas: "cat ln sys cv proc";
}
.dg-row + .dg-row { margin-top: var(--dg-gap); }
.dg-left { grid-area: cat; } .dg-ln { grid-area: ln; } .dg-sys { grid-area: sys; } .dg-cv { grid-area: cv; } .dg-right { grid-area: proc; }
/* spine: each row draws its own segment (row top-gap → row bottom); the last row's segment stops at the
   category box's middle, so it is drawn by the box itself (works in every layout — the box is always first) */
.dg-row::before {
  content: ""; position: absolute; left: calc(-1 * var(--dg-rail) - 1px); top: calc(-1 * var(--dg-gap)); bottom: 0;
  border-left: var(--dg-w) solid var(--dg-line);
}
.dg-row:last-child::before { content: none; }
.dg-left {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: inherit; text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* positions are from the padding box → subtract the 1px border so lines meet the rail exactly */
.dg-left::after {
  content: ""; position: absolute; pointer-events: none;
  left: calc(-1 * var(--dg-rail) - 2px); top: calc(50% - 1px); width: calc(var(--dg-rail) + 1px);
  border-top: var(--dg-w) solid var(--dg-line);
}
.dg-row:last-child .dg-left::before {
  content: ""; position: absolute; pointer-events: none;
  left: calc(-1 * var(--dg-rail) - 2px); top: calc(-1 * var(--dg-gap) - 1px); bottom: 50%;
  border-left: var(--dg-w) solid var(--dg-line);
}
.dg-left:hover { border-color: var(--dg-line); box-shadow: 0 2px 8px rgba(29, 92, 99, .12); }
.dg-left:focus-visible { outline: 2px solid var(--dg-line); outline-offset: 2px; }
.dg-names { display: flex; flex-direction: column; gap: 1px; }
.dg-sub { font-size: 13px; color: var(--dg-muted); line-height: 1.35; overflow-wrap: anywhere; }
/* middle: system / scope (domain.summary — same text in TH and EN) */
.dg-sys {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 15.5px; font-weight: 500; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere;
}
/* connector 1→2: short straight line, no arrowhead */
.dg-ln { align-self: center; height: 0; border-top: var(--dg-w) solid var(--dg-line); }
/* connector 2→3: S-curve + arrowhead (inline SVG, fixed size, never stretched) */
.dg-cv { align-self: center; display: flex; align-items: center; justify-content: center; color: var(--dg-line); }
.dg-cv svg { display: block; width: var(--dg-cv); height: 40px; overflow: visible; }
.dg-cp { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: butt; }
.dg-ah { fill: currentColor; stroke: none; }
/* right: numbered process steps with chevrons, wrapping onto multiple lines */
.dg-right { display: flex; align-items: center; font-size: 15px; color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; }
.dg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 2px; }
.dg-step { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.dg-step:not(:last-child)::after {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 7px 0 5px;
  border-top: var(--dg-w) solid var(--dg-line); border-right: var(--dg-w) solid var(--dg-line);
  transform: rotate(45deg); opacity: .75;
}
.dg-chip {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%;
  padding: 3px 11px 3px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--dg-bd);
  font-size: 14.5px; line-height: 1.3; color: var(--ink);
}
.dg-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--dg-line); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1;
}
.dg-st { min-width: 0; overflow-wrap: anywhere; }

/* --- Corporate (below Department): pill → rail → horizontal spine → drop into each committee box ---
   Base = 2 columns (2×2); >=900px = 4 in one row. li = spine level (top) + drop; a = the box. */
.dg-cm-list {
  position: relative; list-style: none; margin: 0;
  padding: var(--cm-p) 0 0 calc(var(--dg-rail) * 2);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cm-r) var(--dg-gap);
}
.dg-cm-list::before { /* rail from the pill down to the first spine */
  content: ""; position: absolute; left: calc(var(--dg-rail) - 1px); top: 0; height: var(--cm-p);
  border-left: var(--dg-w) solid var(--dg-line);
}
.dg-cm { position: relative; display: flex; padding-top: var(--cm-drop); min-width: 0; }
.dg-cm::before { /* drop */
  content: ""; position: absolute; left: calc(50% - 1px); top: 0; height: var(--cm-drop);
  border-left: var(--dg-w) solid var(--dg-line);
}
.dg-cm::after { /* horizontal spine piece: from the gap on the left to the right edge */
  content: ""; position: absolute; top: -1px; left: calc(-1 * var(--dg-gap)); right: 0;
  border-top: var(--dg-w) solid var(--dg-line);
}
.dg-cmb {
  position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.dg-cmb:hover { border-color: var(--dg-line); box-shadow: 0 2px 8px rgba(29, 92, 99, .12); }
.dg-cmb:focus-visible { outline: 2px solid var(--dg-line); outline-offset: 2px; }
/* 2 columns */
.dg-cm:nth-child(2n+1)::after { left: calc(-1 * var(--dg-rail) - 1px); }
.dg-cm:nth-child(2n)::after, .dg-cm:last-child::after { right: calc(50% - 1px); }
.dg-cm:nth-child(2n+1):not(:nth-last-child(-n+2)) .dg-cmb::before { /* rail continues down to the next row's spine */
  content: ""; position: absolute; pointer-events: none;
  left: calc(-1 * var(--dg-rail) - 2px); top: calc(-1 * var(--cm-drop) - 1px); bottom: calc(-1 * var(--cm-r) - 1px);
  border-left: var(--dg-w) solid var(--dg-line);
}
/* 4 in one row */
@media (min-width: 900px) {
  .dg-cm-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dg-cm:nth-child(2n+1)::after { left: calc(-1 * var(--dg-gap)); }
  .dg-cm:nth-child(2n)::after { right: 0; }
  .dg-cm:nth-child(4n+1)::after { left: calc(-1 * var(--dg-rail) - 1px); }
  .dg-cm:nth-child(4n)::after, .dg-cm:last-child::after { right: calc(50% - 1px); }
  .dg-cm:nth-child(2n+1):not(:nth-last-child(-n+2)) .dg-cmb::before { content: none; }
  .dg-cm:nth-child(4n+1):not(:nth-last-child(-n+4)) .dg-cmb::before {
    content: ""; position: absolute; pointer-events: none;
    left: calc(-1 * var(--dg-rail) - 2px); top: calc(-1 * var(--cm-drop) - 1px); bottom: calc(-1 * var(--cm-r) - 1px);
    border-left: var(--dg-w) solid var(--dg-line);
  }
}

.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 4px; }
.sec-head h2 { font-size: 22px; font-weight: 600; margin: 0; }
.seg-sm button { font-size: 14px; padding: 4px 14px; min-height: 32px; letter-spacing: .03em; }

/* 700–1099px: category spans the top; system + process side by side beneath */
@media (max-width: 1099px) {
  .dg-row {
    grid-template-columns: minmax(0, 1fr) var(--dg-cv) minmax(0, 1.6fr);
    grid-template-areas: "cat cat cat" "ln . ." "sys cv proc";
  }
  .dg-left { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
  .dg-left .dg-meta { flex-direction: column; align-items: flex-end; text-align: right; }
  .dg-ln { align-self: stretch; justify-self: center; width: 0; height: 16px; border-top: 0; border-left: var(--dg-w) solid var(--dg-line); }
}
/* <700px: all stacked, joined by small down-arrows */
@media (max-width: 699px) {
  .dg { --dg-rail: 14px; --dg-gap: 12px; }
  .dg-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cat" "ln" "sys" "cv" "proc"; }
  .dg-left { flex-direction: column; align-items: stretch; justify-content: center; }
  .dg-left .dg-meta { flex-direction: row; align-items: baseline; text-align: left; }
  .dg-ln, .dg-cv {
    position: relative; display: block; justify-self: center; align-self: stretch;
    width: 0; height: 18px; border: 0; border-left: var(--dg-w) solid var(--dg-line);
  }
  .dg-cv svg { display: none; }
  .dg-ln::after, .dg-cv::after {
    content: ""; position: absolute; left: calc(-1 * var(--dg-w) / 2); bottom: 0; transform: translateX(-50%);
    border-top: 7px solid var(--dg-line); border-left: 5px solid transparent; border-right: 5px solid transparent;
  }
  .dg-box { padding: 10px 14px; }
}
tr.dom.flash td { animation: flash .6s ease; }
@keyframes flash { from { background: var(--accent-soft); } to { background: #fafbfc; } }
tr.dom { scroll-margin-top: 16px; }

/* ---------- Pending (neutral) ---------- */
.tbd { display: inline-block; margin-left: 8px; font-size: 13px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; vertical-align: 2px; }
.dash { color: var(--ink-3); }

/* ---------- Team "involved" ---------- */
.tc .inv { margin: 0; font-size: 16px; color: var(--ink-2); }
.tc .inv b { font-size: 28px; font-weight: 600; color: var(--ink); margin: 0 4px; }

/* ---------- Source toggle (internal checking) ---------- */
.meta { display: none !important; }
.show-src .src.meta, .show-src .pill-inf.meta, .show-src .mk-i.meta { display: inline-block !important; }
.show-src .mk:hover ~ .svc-note.meta, .show-src .mk:focus ~ .svc-note.meta { display: block !important; }
.srctoggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); cursor: pointer; margin-top: 4px; }
.srcbox { margin-top: 12px; }
.srcnote { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ---------- Inference marker + notes ---------- */
.pill-inf {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: var(--accent-soft); border: 1px dotted var(--ink-3); border-radius: 999px;
  padding: 0 8px; margin-left: 6px; white-space: nowrap; vertical-align: 2px;
}
.mk { cursor: help; }
.mk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mk-i { margin-left: 6px; color: var(--ink-3); font-size: 14px; }
.svc-note { display: none; font-size: 13px; color: var(--ink-3); margin-top: 2px; white-space: normal; max-width: 320px; }
.mk:hover ~ .svc-note, .mk:focus ~ .svc-note { display: block; }
.banner .infer-line { flex-basis: 100%; font-size: 15px; color: var(--ink-2); }
.banner .infer-line .pill-inf { margin-left: 0; }
.govnote { margin: -4px 0 14px; font-size: 14px; color: var(--ink-3); }

/* ---------- SPOF list ---------- */
.spof { margin-top: 14px; padding: 18px 20px; border-left: 4px solid var(--crit-line); }
.spof h3 { margin: 0; font-size: 18px; font-weight: 600; }
.spof .hint { margin: 2px 0 12px; font-size: 14px; color: var(--ink-3); }
.spof-grp { display: grid; grid-template-columns: 170px 1fr; gap: 6px 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.spof-own { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.spof-own .cnt { font-weight: 400; font-size: 14px; color: var(--ink-3); }
.spof ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.spof li { font-size: 15px; padding: 2px 10px; border-radius: 6px; background: var(--crit-bg); color: var(--crit-ink); }

/* ---------- Scenario (peak day) ---------- */
.eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.lanes { padding: 8px 24px; }
.lane { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lane:last-child { border-bottom: 0; }
.lane-who { font-weight: 600; font-size: 17px; }
.lane-who small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.lane-track { position: relative; display: flex; align-items: center; gap: 12px; padding-left: 4px; }
.lane-track::before { content: ""; position: absolute; left: 9px; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.lane-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px var(--surface); }
.lane-txt { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 14px; font-size: 16px; }
.insight { margin: 14px 0 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; font-size: 16px; color: var(--ink); }

/* ---------- Workload ---------- */
.wl { padding: 24px; }
.wl-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wl-row:last-child { border-bottom: 0; }
.wl-name { font-weight: 600; font-size: 17px; }
.wl-name small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.bar { display: flex; gap: 2px; height: 34px; align-items: stretch; }
.bar .seg-p, .bar .seg-s, .bar .seg-g {
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; min-width: 0;
}
.bar > span:first-child { border-radius: 4px 0 0 4px; }
.bar > span:last-of-type { border-radius: 0 4px 4px 0; }
.bar > span:only-of-type { border-radius: 4px; }
.seg-p { background: var(--p-bar); color: #fff; }
.seg-s { background: var(--s-bar); color: #0b0b0b; }
.seg-g { background: var(--g-bar); color: #fff; }
.bar-line { display: flex; align-items: center; gap: 12px; }
.bar-wrap { flex: 1 1 auto; min-width: 0; }
.bar-wrap .bar { transform-origin: left center; }
.bar-total { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.bar-empty { font-size: 15px; color: var(--ink-3); font-style: italic; }
.wl-r { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.wl-foot { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* ---------- Team cards ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tc { padding: 0; overflow: hidden; }
.tc-body { padding: 16px 20px 20px; }
.tc h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; }
.tc h3 .en { display: block; margin-top: 1px; font-size: 14px; font-weight: 400; color: var(--ink-3); letter-spacing: .01em; }

/* Avatars — photo or initial-letter fallback (same box, so layout never shifts) */
.ava { display: block; position: relative; overflow: hidden; background: var(--accent-soft); }
.ava img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ava-fb {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  color: var(--ink-3); font-weight: 600; line-height: 1; user-select: none;
}
.tc-ph { aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.tc-ph .ava-fb { font-size: 72px; }
.ava-sm { width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 4px; border: 1px solid var(--line-2); }
.ava-sm .ava-fb { font-size: 16px; }

/* ---------- Org chart (team section) ----------
   Connectors are plain CSS borders (print-safe). --ls = solid | dashed per person (line "dotted" → dashed). */
.org { --org-gap: 24px; --org-drop: 32px; --org-line: #8a9099; --org-w: 2px; --org-card: 380px; }
/* compact cards (เบล 2026-11-20 14:04: รูปใหญ่เกิน ต้องเลื่อนจอ) — photo beside text so the whole chart fits one screen */
.org .tc { display: grid; grid-template-columns: 130px 1fr; align-items: stretch; }
.org .tc-ph { aspect-ratio: auto; min-height: 160px; border-bottom: 0; border-right: 1px solid var(--line); }
.org .tc-ph .ava-fb { font-size: 48px; }
.org .tc-body { padding: 14px 16px 14px; min-width: 0; }
.org .tc h3 { font-size: 20px; }
.org .tc .focus { margin: 6px 0 8px; font-size: 14px; }
.org-t1 { display: flex; justify-content: center; gap: var(--org-gap); position: relative; }
.org-t1.has-subs { padding-bottom: var(--org-drop); }
.org-t1.has-subs::after {
  content: ""; position: absolute; left: 50%; bottom: 0; height: var(--org-drop);
  border-left: var(--org-w) solid var(--org-line); transform: translateX(-1px);
}
.org-t1 > .tc { width: calc((100% - (var(--n) - 1) * var(--org-gap)) / var(--n)); max-width: var(--org-card); }
.org-t2 {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--org-gap);
}
.org-cell { position: relative; padding-top: var(--org-drop); display: flex; justify-content: center; --ls: solid; }
.org-cell.ln-dotted { --ls: dashed; }
.org-cell > .tc { width: 100%; max-width: var(--org-card); }
.org-cell::before {
  content: ""; position: absolute; top: 0; left: 50%; height: var(--org-drop);
  border-left: var(--org-w) var(--ls) var(--org-line); transform: translateX(-1px);
}
.org-cell.to-r::after, .org-cell.to-l::after {
  content: ""; position: absolute; top: 0; height: 0;
  border-top: var(--org-w) var(--ls) var(--org-line);
  width: calc(var(--dist) * (100% + var(--org-gap)));
}
.org-cell.to-r::after { left: 50%; }
.org-cell.to-l::after { right: 50%; }
.org-tail { display: none; }
.org-tail.ln-solid { --ls: solid; }
.org-tail.ln-dotted { --ls: dashed; }
.org-legend { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--ink-3); }

/* Phones: stack as a simple tree — a left rail from ต้น with an elbow to each person */
@media (max-width: 599px) {
  .org { --org-gap: 12px; --org-rail: 14px; --org-elbow: 40px; }
  .org-t1.has-subs { padding-bottom: 0; }
  .org-t1.has-subs::after { display: none; }
  .org-t1 { flex-direction: column; }
  .org-t1 > .tc { width: 100%; max-width: none; }
  .org-t2 { grid-template-columns: 1fr; margin-top: var(--org-gap); padding-left: calc(var(--org-rail) * 2); }
  .org-cell { padding-top: 0; display: block; }
  .org-cell > .tc { max-width: none; }
  .org-cell::before {
    top: calc(-1 * var(--org-gap)); left: calc(-1 * var(--org-rail)); transform: none;
    height: calc(var(--org-gap) + var(--org-elbow));
  }
  .org-cell::after, .org-cell.to-r::after, .org-cell.to-l::after {
    content: ""; position: absolute; top: var(--org-elbow); left: calc(-1 * var(--org-rail)); right: auto;
    height: 0; width: var(--org-rail); border-top: var(--org-w) var(--ls) var(--org-line);
  }
  .org-tail {
    display: block; position: absolute; left: calc(-1 * var(--org-rail)); top: var(--org-elbow);
    bottom: calc(-1 * var(--org-gap) - 1px); border-left: var(--org-w) var(--ls) var(--org-line);
  }
  .org-legend { text-align: left; }
}

/* Hover lift (pointer devices only) */
@media (hover: hover) {
  .tc { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
  .tc:hover, .anim .tc.reveal.in:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 10px 24px rgba(16,24,40,.10); }
}
.tc .role { margin: 2px 0 0; color: var(--ink-2); font-size: 16px; }
.tc .focus { margin: 10px 0 16px; color: var(--ink-3); font-size: 15px; }
.tc dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.tc dl div { text-align: center; padding: 8px 4px; border-radius: 8px; background: var(--accent-soft); }
.tc dt { font-size: 13px; color: var(--ink-2); }
.tc dd { margin: 0; font-size: 24px; font-weight: 600; }
.tc .cap { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- Footer ---------- */
footer.ft { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 15px; }
footer.ft h2 { font-size: 17px; margin: 0 0 8px; color: var(--ink); }
footer.ft ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
footer.ft li { margin: 4px 0; }
footer.ft .calc { font-weight: 600; color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 24px 16px 40px; }
  .hdr h1 { font-size: 26px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: 30px; }
  .wl { padding: 16px; }
  .wl-row { grid-template-columns: 1fr; gap: 6px; }
  .mx th.svc, .mx td.svc { min-width: 190px; }
  .hero { padding: 20px 18px 22px; border-radius: 14px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); }
  .hero-net { display: none; }
  .hero-eb { font-size: 12px; letter-spacing: .06em; }
  .hero-eb-sep { display: none; }
  .hero-eb > span:last-child { flex-basis: 100%; }
  .hero-h { font-size: 26px; margin: 14px 0 18px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs { padding: 0 12px; }
  .hs-v { font-size: 42px; }
  .hs-u { font-size: 14px; }
  .hs-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hs-avas { padding-left: 8px; }
  .ava-hero { width: 28px; height: 28px; margin-left: -8px; border-width: 1.5px; }
  .ava-hero .ava-fb { font-size: 12px; }
  .lanes { padding: 4px 16px; }
  .lane, .spof-grp { grid-template-columns: 1fr; gap: 6px; }
  .bar-line { flex-wrap: wrap; gap: 4px 12px; }
  .bar-wrap { flex-basis: 100%; }
}
/* Phones: photo beside the text so 4 tall portraits don't fill the whole scroll */
@media (max-width: 599px) {
  .tc { display: grid; grid-template-columns: 112px 1fr; align-items: stretch; }
  .tc-ph { border-bottom: 0; border-right: 1px solid var(--line); aspect-ratio: auto; min-height: 150px; }
  .tc-ph .ava-fb { font-size: 44px; }
  .tc-body { padding: 12px 14px 14px; min-width: 0; }
  .tc h3 { font-size: 20px; }
  .tc .focus { margin: 6px 0 10px; font-size: 14px; }
}
@media (max-width: 330px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- Motion (progressive enhancement) ----------
   Elements are only hidden when JS has added .anim to <html>
   (JS skips that under prefers-reduced-motion). Without JS everything is visible. */
.anim .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim tr.svcrow.reveal { transform: none; }
.anim tr.svcrow.reveal td { transform: translateX(-8px); transition: transform .4s var(--ease); }
.anim tr.svcrow.reveal.in td { transform: none; }
.anim .chip.pop { transform: scale(.6); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.anim .in .chip.pop { transform: none; opacity: 1; }
.anim .grow .bar, .anim .grow.meter > span { transform: scaleX(0); transition: transform .6s var(--ease); }
.anim .grow.in .bar, .anim .grow.in.meter > span { transform: none; }
.anim tr.svcrow.fade { transition: opacity .2s ease; opacity: 0; }
.anim .lane.reveal { transform: translateX(-16px); }
.anim .lane.reveal.in { transform: none; }
/* team photo: gentle scale-in inside its frame as the card reveals */
.anim .tc.reveal .tc-ph > * { transform: scale(1.06); transition: transform .6s var(--ease); }
.anim .tc.reveal.in .tc-ph > * { transform: none; }
/* diagram: rows fade up (via .reveal); spine → branch → line → curve → chips draw in sequence.
   --d = the row's stagger delay (set in JS). Every piece ≤ .4s; whole row settles within ~0.6s of its delay. */
.anim .dg-row.reveal::before, .anim .dg-row.reveal .dg-left::before,
.anim .dg-cm.reveal::before, .anim .dg-cm.reveal .dg-cmb::before {
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease) var(--d, 0ms);
}
.anim .dg-row.reveal .dg-left::after, .anim .dg-cm.reveal::after {
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease) calc(var(--d, 0ms) + 60ms);
}
.anim .dg-row.reveal .dg-ln { transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease) calc(var(--d, 0ms) + 120ms); }
.anim .dg-row.reveal .dg-cp { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .3s var(--ease) calc(var(--d, 0ms) + 160ms); }
.anim .dg-row.reveal .dg-ah { opacity: 0; transition: opacity .15s ease calc(var(--d, 0ms) + 400ms); }
.anim .dg-row.reveal.in::before, .anim .dg-row.reveal.in .dg-left::before, .anim .dg-row.reveal.in .dg-left::after,
.anim .dg-row.reveal.in .dg-ln, .anim .dg-cm.reveal.in::before, .anim .dg-cm.reveal.in::after,
.anim .dg-cm.reveal.in .dg-cmb::before { transform: none; }
.anim .dg-row.reveal.in .dg-cp { stroke-dashoffset: 0; }
.anim .dg-row.reveal.in .dg-ah { opacity: 1; }
@media (max-width: 1099px) {
  .anim .dg-row.reveal .dg-ln { transform: scaleY(0); transform-origin: top; }
  .anim .dg-row.reveal.in .dg-ln { transform: none; }
}
@media (max-width: 699px) {
  .anim .dg-row.reveal .dg-cv { transform: scaleY(0); transform-origin: top; transition: transform .2s var(--ease) calc(var(--d, 0ms) + 160ms); }
  .anim .dg-row.reveal.in .dg-cv { transform: none; }
}
/* hero: faster reveal (whole hero settles ≤ ~600ms); network lines draw out from each hub, dots follow */
.anim .hero .reveal { transition-duration: .35s; }
.anim .hero-net.reveal { transform: none; }
.anim .hero-net.reveal .nl { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s var(--ease) var(--i, 0ms); }
.anim .hero-net.reveal .nd { opacity: 0; transition: opacity .25s ease calc(var(--i, 0ms) + 120ms); }
.anim .hero-net.reveal.in .nl { stroke-dashoffset: 0; }
.anim .hero-net.reveal.in .nd { opacity: 1; }
/* ambient: services drift very slightly around their hubs (2px, 14s) — off under reduced motion */
.anim .hero-net .net-drift { animation: netDrift 14s ease-in-out 1s infinite alternate; }
@keyframes netDrift { from { transform: translate(0, 0); } to { transform: translate(2px, -1.5px); } }

/* process steps: quick left→right stagger (per-step delay set in JS) */
.anim .dg-row.reveal .dg-step { opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.anim .dg-row.reveal.in .dg-step { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal, .chip.pop, .bar, .meter > span, tr.svcrow td, .tc-ph > *, .dg-step { opacity: 1 !important; transform: none !important; }
  .dg-ln, .dg-cv, .dg-row::before, .dg-left::before, .dg-left::after, .dg-cm::before, .dg-cm::after, .dg-cmb::before { transform: none !important; }
  .dg-cp { stroke-dashoffset: 0 !important; } .dg-ah { opacity: 1 !important; }
  .hero-net .nl { stroke-dashoffset: 0 !important; } .hero-net .nd { opacity: 1 !important; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 12pt; }
  .wrap { max-width: none; padding: 0; }
  .card, .banner { box-shadow: none !important; }
  .toolbar .seg, .toolbar .linkbtn, .dom-btn .car { display: none !important; }
  .reveal, .chip.pop, .bar, .meter > span, tr.svcrow td { opacity: 1 !important; transform: none !important; transition: none !important; }
  tr.svcrow, tr.svcrow[hidden], tr.dom { display: table-row !important; opacity: 1 !important; }
  .mx tbody, .mx tbody[hidden] { display: table-row-group !important; }
  .show-src .svc-note { display: block !important; }
  .srctoggle { display: none !important; }
  .dg-row, .dg-head { break-inside: avoid; }
  .hero { background: #fff; box-shadow: none; border-color: #c9d6e0; break-inside: avoid; }
  .hero::before { display: none; }
  .hero-net .nl { stroke-dashoffset: 0 !important; transition: none !important; } .hero-net .nd { opacity: 1 !important; transition: none !important; }
  .hero-net .net-drift { animation: none !important; }
  .hs-v { font-size: 44pt; }
  .hero-h, .hs, .hero-net, .dg-row, .dg-head, .dg-cm, .dg-ln, .dg-cv, .tc, .tc-ph > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dg-row::before, .dg-left::before, .dg-left::after, .dg-cm::before, .dg-cm::after, .dg-cmb::before { transform: none !important; transition: none !important; }
  .dg-cp { stroke-dashoffset: 0 !important; transition: none !important; } .dg-ah { opacity: 1 !important; transition: none !important; }
  .dg-cm { break-inside: avoid; }
  .dg-box, .dg-pill { box-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dg-step { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dg-chip, .dg-num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .seg-sm { display: none !important; }
  .org { --org-card: 190px; break-inside: avoid; }
  .org-t1, .org-cell, .org-legend { break-inside: avoid; }
  .tc { display: block; break-inside: avoid; }
  .tc-ph { border-right: 0; border-bottom: 1px solid var(--line); }
  .tc-body { padding: 10px 12px 12px; }
  .ava, .ava-sm { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lane, .insight, .spof { opacity: 1 !important; transform: none !important; }
  .spof li, .pill-inf { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mx-scroll { overflow: visible; }
  table.mx { min-width: 0; }
  .mx thead th, .mx th.svc, .mx td.svc { position: static; }
  section.blk, .card, tr { break-inside: avoid; }
  .chip, .seg-p, .seg-s, .seg-g, .flag, .meter > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
