/* =========================================================
   Pythagoras Secure Analytics – application styles
   Self-hosted fonts, no external requests (works offline).
   ========================================================= */

@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/saira-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/saira-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy-950: #050f24;
  --navy-900: #081a3a;
  --navy-800: #0d2550;
  --navy-700: #15346b;
  --blue-600: #1f56d1;
  --blue-500: #2b66df;
  --blue-400: #3d7be8;
  --sky-300: #8fd0f7;
  --sky-100: #e4f3fd;
  --magenta-700: #a3125f;
  --magenta-600: #c2187a;
  --magenta-100: #fbe1ef;
  --grey-900: #1d2430;
  --grey-800: #2a3240;
  --grey-600: #535d6e;
  --grey-500: #6b7587;
  --grey-300: #c5ccd7;
  --grey-200: #dbe0e8;
  --grey-150: #e6eaf0;
  --grey-100: #eef1f5;
  --canvas: #f4f6f9;
  --white: #ffffff;
  --green-700: #1c6b3a;
  --green-100: #e2f3e8;
  --amber-700: #8a5a00;
  --amber-100: #fdf1d6;
  --red-700: #b3261e;
  --red-100: #fce4e2;

  --font-display: "Saira Semi Condensed", "Arial Narrow", sans-serif;
  --font-text: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 6px;
  --side-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); font-size: 1rem; line-height: 1.55; color: var(--grey-800); background: var(--canvas); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy-900); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 700; }
h2 { font-size: 1.3rem; margin-bottom: 14px; }
p { margin: 0 0 12px; }
a { color: var(--blue-600); text-underline-offset: 2px; }
a:hover { color: var(--magenta-600); }
:focus-visible { outline: 3px solid var(--magenta-600); outline-offset: 2px; }
code, .mono { font-family: var(--font-mono); font-size: .88em; }
.muted { color: var(--grey-500); }
.small { font-size: .875rem; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: 40px; }

/* ---------- Classification banner ---------- */
.banner { text-align: center; font: 600 .78rem/1 var(--font-text); letter-spacing: .06em; padding: 6px 12px; color: var(--white); }
.banner--unclass { background: #2e7d32; }
.banner--restricted { background: #b26a00; }
.banner--confidential { background: #1f4fa8; }
.banner--secret { background: #b3261e; }
.banner--topsecret { background: #e8710a; color: #1b1000; }

/* ---------- Brand mark ---------- */
.mark { width: 36px; height: 36px; flex: none; }
.mark__a { fill: var(--sky-300); }
.mark__b { fill: var(--blue-400); }
.mark__c { fill: var(--magenta-600); }
.mark__t { fill: var(--navy-900); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--blue-600); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--navy-800); border-color: var(--grey-300); }
.btn--secondary:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--danger { background: var(--magenta-600); color: var(--white); }
.btn--danger:hover { background: var(--magenta-700); color: var(--white); }
.btn--danger-quiet { background: var(--white); color: var(--magenta-700); border-color: #e9b3d0; }
.btn--danger-quiet:hover { background: var(--magenta-100); }
.btn--quiet { background: transparent; color: var(--navy-800); border-color: var(--grey-300); min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn--quiet:hover { border-color: var(--navy-800); }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-600); text-decoration: underline; cursor: pointer; }
.link--danger { color: var(--magenta-700); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .filters label { font-weight: 600; font-size: .92rem; color: var(--navy-900); }
.opt { font-weight: 400; color: var(--grey-500); font-size: .85rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px;
  font: inherit; color: var(--grey-900); background: var(--white);
  border: 1px solid var(--grey-300); border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(31, 86, 209, .18); }
input[disabled], select[disabled] { background: var(--grey-100); }
.input--short { max-width: 140px; }
.hint { font-size: .87rem; color: var(--grey-600); margin: 0; }
.hint.is-weak { color: var(--magenta-700); }
.hint.is-ok { color: var(--green-700); }
.grid { display: grid; gap: 16px; align-items: end; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: 1fr 1.4fr 1.4fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-600); flex: none; }
.check small { display: block; color: var(--grey-600); font-size: .85rem; }
.check--card { padding: 12px 14px; border: 1px solid var(--grey-200); border-radius: var(--radius); background: var(--white); }
.check--card:has(input:checked) { border-color: var(--blue-600); background: #f3f7ff; }
.check--card strong { color: var(--navy-900); }
.tag { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--blue-600); background: var(--sky-100); padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.role-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perm-group { border: 0; border-top: 1px solid var(--grey-150); padding: 14px 0 0; margin: 0; display: grid; gap: 8px; }
.perm-group legend { font: 600 1.05rem var(--font-display); color: var(--navy-800); padding: 0 8px 0 0; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw__toggle { position: absolute; right: 6px; top: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 4px; background: var(--grey-100); color: var(--navy-800); font: 600 .8rem var(--font-text); cursor: pointer; }
.inline-form { margin-top: 12px; }

/* ---------- Flash messages ---------- */
.flashes { display: grid; gap: 8px; margin-bottom: 20px; }
.flash { padding: 12px 16px; border-radius: var(--radius); border-left: 4px solid; font-size: .95rem; }
.flash--success { background: var(--green-100); border-color: var(--green-700); color: #144d2a; }
.flash--error { background: var(--red-100); border-color: var(--red-700); color: #7d1a14; }
.flash--info { background: var(--sky-100); border-color: var(--blue-600); color: var(--navy-800); }

/* ---------- Sign-in pages ---------- */
body.auth { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
.auth__frame { flex: 1; display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; }
.auth__side {
  position: relative; overflow: hidden; color: #c9d6ea; padding: 40px clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 32px;
  background:
    radial-gradient(600px 400px at 100% 100%, rgba(194, 24, 122, .3), transparent 70%),
    radial-gradient(700px 500px at 0% 30%, rgba(31, 86, 209, .45), transparent 70%),
    var(--navy-900);
}
.auth__side::after {
  content: ""; position: absolute; inset: auto -30% -20% -30%; height: 55%;
  background-image: linear-gradient(rgba(143, 208, 247, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 208, 247, .12) 1px, transparent 1px);
  background-size: 48px 48px; transform: perspective(600px) rotateX(60deg); transform-origin: 50% 100%; pointer-events: none;
}
.auth__brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font: 700 1.3rem/1 var(--font-display); }
.auth__brand small, .side__brand small { display: block; font: 500 .8rem var(--font-display); color: var(--sky-300); letter-spacing: .04em; margin-top: 3px; }
.auth__brand .mark { width: 44px; height: 44px; }
.auth__pitch { margin-top: auto; position: relative; z-index: 1; }
.auth__pitch h1 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 12px; }
.auth__pitch p { max-width: 40ch; font-size: 1.05rem; }
.auth__notice { position: relative; z-index: 1; font-size: .82rem; color: #97a9c6; border-top: 1px solid rgba(143, 208, 247, .2); padding-top: 16px; margin: 0; max-width: 52ch; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 48px clamp(20px, 5vw, 64px); }
.auth__panel { width: 100%; max-width: 560px; }
.auth__panel h2 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.lede { color: var(--grey-600); margin-bottom: 24px; }
.auth__alt { margin-top: 24px; }
.auth__help { font-size: .87rem; color: var(--grey-600); }

/* ---------- Application shell ---------- */
.shell { flex: 1; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - 54px); }
body.app { display: flex; flex-direction: column; min-height: 100vh; }
.side { background: var(--navy-900); color: #c9d6ea; padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; color: var(--white); text-decoration: none; font: 700 1.15rem/1 var(--font-display); border-bottom: 1px solid rgba(143, 208, 247, .15); }
.side__nav { display: grid; gap: 2px; }
.side__nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: var(--radius); color: #c9d6ea; text-decoration: none; font-weight: 500; font-size: .95rem; }
.side__nav a:hover { background: rgba(143, 208, 247, .1); color: var(--white); }
.side__nav a[aria-current="page"] { background: var(--blue-600); color: var(--white); }
.side__group { margin: 16px 12px 6px; font: 600 .95rem var(--font-display); color: var(--sky-300); }
.side__version { margin-top: auto; font-size: .78rem; color: #6f84a6; padding: 0 12px; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--magenta-600); color: var(--white); font-size: .75rem; font-weight: 600; display: inline-grid; place-items: center; }

.main-col { display: flex; flex-direction: column; min-width: 0; }
.top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 12px clamp(16px, 3vw, 40px); background: var(--white); border-bottom: 1px solid var(--grey-200); }
.top__menu { display: none; }
.top__user { display: flex; align-items: center; gap: 16px; }
.top__name { text-align: right; font-weight: 600; font-size: .92rem; color: var(--navy-900); line-height: 1.25; }
.top__name small { display: block; font-weight: 400; color: var(--grey-500); font-size: .8rem; }
.content { padding: clamp(20px, 3vw, 40px); max-width: 1320px; width: 100%; }

.page-head { margin-bottom: 24px; }
.page-head p { color: var(--grey-600); margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crumbs { margin: 0 0 8px; font-size: .9rem; }
.crumbs a::before { content: "\2190\00a0"; }

.panel { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 22px 24px; margin-bottom: 20px; }
.panel--plain { background: transparent; border-style: dashed; }
.panel--plain p { color: var(--grey-600); margin: 0; }
.panel--narrow { max-width: 640px; }
.panel--accent { border-color: var(--blue-400); border-left-width: 4px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cols > .panel, .stack > .panel { margin-bottom: 0; }
.cols { margin-bottom: 20px; }
.cols--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.stack { display: grid; gap: 20px; }

.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px 20px; margin: 0 0 16px; }
.kv dt { color: var(--grey-600); font-size: .9rem; }
.kv dd { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 3px 10px; border-radius: 99px; background: var(--sky-100); color: var(--navy-800); font-size: .87rem; }
.role-list { list-style: none; margin: 0 0 16px; padding: 0; }
.role-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grey-150); }
.role-list li span { display: block; font-size: .87rem; color: var(--grey-600); }
.add-role { grid-template-columns: 1fr 1fr auto; align-items: end; border-top: 1px solid var(--grey-150); padding-top: 16px; }
.add-role [data-scope-field][hidden] { display: none; }
.action-list { display: flex; flex-wrap: wrap; gap: 10px; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { padding: 8px 0; border-bottom: 1px solid var(--grey-150); display: grid; }

.callout { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; text-decoration: none; }
.callout--action { background: var(--navy-900); color: var(--white); }
.callout--action:hover { background: var(--navy-800); color: var(--white); }
.callout--action span { color: var(--sky-300); font-weight: 600; }

.secret { background: var(--amber-100); border: 1px solid #ecc76f; border-radius: 8px; padding: 18px 22px; margin-bottom: 20px; }
.secret h2 { margin-bottom: 6px; }
.secret__value { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.secret code { font-size: 1.25rem; padding: 8px 14px; background: var(--white); border: 1px dashed var(--amber-700); border-radius: var(--radius); letter-spacing: .04em; user-select: all; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; margin-bottom: 20px; }
.panel .table-wrap { border: 0; border-radius: 0; margin-bottom: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey-150); vertical-align: top; }
.table thead th { font: 600 .92rem var(--font-display); color: var(--grey-600); background: var(--grey-100); border-bottom-color: var(--grey-200); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table--compact th, .table--compact td { padding: 8px 12px; }
.table .inactive td { opacity: .6; }
.row--warn td { background: #fff8f0; }
.table__group th { background: var(--sky-100); font: 600 .95rem var(--font-display); color: var(--navy-800); }
.table--matrix th.rot { height: 150px; white-space: nowrap; vertical-align: bottom; padding: 8px 4px; }
.table--matrix th.rot span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font-size: .82rem; }
.table--matrix tbody th { font-weight: 400; font-family: var(--font-text); }
.dot-cell { text-align: center; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-600); text-indent: -999px; overflow: hidden; }
.json { margin: 6px 0 0; padding: 8px; background: var(--grey-100); border-radius: 4px; font-size: .78rem; white-space: pre-wrap; max-width: 420px; }

.status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status--active { background: var(--green-100); color: var(--green-700); }
.status--pending { background: var(--amber-100); color: var(--amber-700); }
.status--suspended, .status--locked { background: var(--magenta-100); color: var(--magenta-700); }
.status--rejected, .status--disabled { background: var(--grey-150); color: var(--grey-600); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--grey-200); margin-bottom: 16px; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--grey-600); font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--navy-900); border-bottom-color: var(--blue-600); }
.tabs a span { font-size: .8rem; background: var(--grey-150); border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
.tabs a span.hot { background: var(--magenta-600); color: var(--white); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.filters .field { flex: 1 1 180px; }
.filters .field:first-of-type { flex: 2 1 240px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 16px 0; font-size: .92rem; }
.empty { padding: 40px; text-align: center; background: var(--white); border: 1px dashed var(--grey-300); border-radius: 8px; }
.empty p { color: var(--grey-600); }

.error-page { max-width: 560px; padding: 40px 0; }
.error-page__code { font: 700 4rem/1 var(--font-display); color: var(--magenta-600); margin-bottom: 8px; }
body.auth .error-page { padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cols, .cols--wide { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .2s; }
  .side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(5, 15, 36, .5); }
  .top { justify-content: space-between; }
  .top__menu { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--grey-300); border-radius: var(--radius); background: var(--white); font: 600 .9rem var(--font-text); color: var(--navy-900); cursor: pointer; }
  .auth__frame { grid-template-columns: 1fr; }
  .auth__side { padding: 24px; gap: 16px; }
  .auth__pitch, .auth__side::after { display: none; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .role-pick, .add-role { grid-template-columns: 1fr; }
  .top__name small { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .panel { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   v0.2 – lessons learned process
   ========================================================= */
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill--grey { background: var(--grey-150); color: var(--grey-600); }
.pill--blue { background: #dbe7fc; color: var(--blue-600); }
.pill--amber { background: var(--amber-100); color: var(--amber-700); }
.pill--green { background: var(--green-100); color: var(--green-700); }
.pill--teal { background: #dff3f1; color: #17635b; }
.tag { white-space: nowrap; }
.entry-ref { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; color: var(--grey-600); }
.marking { display: inline-block; font: 600 .78rem/1 var(--font-text); letter-spacing: .05em; color: var(--green-700); border: 1px solid #9fd0ad; background: var(--green-100); padding: 5px 10px; border-radius: 4px; margin-bottom: 12px; }
.prose { max-width: 75ch; }
.prose + h3, .panel h3 { margin: 18px 0 6px; font-size: 1.08rem; color: var(--navy-800); }
.panel h4 { font: 600 .95rem var(--font-display); color: var(--navy-800); margin: 14px 0 6px; }
.kv--stack { grid-template-columns: 1fr; gap: 2px; }
.kv--stack dd { margin-bottom: 10px; }
.callout--info { background: var(--sky-100); color: var(--navy-800); border-left: 4px solid var(--blue-600); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
details.panel > summary { cursor: pointer; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary h2.inline { display: inline; margin: 0; }
details.panel > summary h2.inline::after { content: " +"; color: var(--blue-600); }
details.panel[open] > summary { margin-bottom: 16px; }
.focus-list { margin: 0; padding-left: 20px; }
.focus-list li { margin-bottom: 4px; }
.inline-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.inline-row input:not([type=date]) { flex: 1 1 200px; }
.inline-row input[type=date] { width: auto; flex: 0 0 170px; }
.dims { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.dims legend { font-weight: 600; font-size: .92rem; color: var(--navy-900); margin-bottom: 6px; padding: 0; }
.radio-row { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.radio-row legend { font-weight: 600; font-size: .92rem; color: var(--navy-900); margin-bottom: 4px; padding: 0; }

/* Progress through the process */
.stepper { list-style: none; margin: 4px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: s; }
.stepper__item { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .82rem; color: var(--grey-500); }
.stepper__item::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 3px; background: var(--grey-200); z-index: 0; }
.stepper__item:first-child::before { display: none; }
.stepper__dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--grey-300); font: 700 .9rem var(--font-display); color: var(--grey-500); }
.stepper__item--done .stepper__dot { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.stepper__item--done .stepper__dot::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.stepper__item--done::before, .stepper__item--now::before { background: var(--blue-600); }
.stepper__item--now .stepper__dot { border-color: var(--magenta-600); color: var(--magenta-600); box-shadow: 0 0 0 4px var(--magenta-100); }
.stepper__item--now .stepper__label { color: var(--navy-900); font-weight: 600; }
.stepper__item--skipped .stepper__dot { border-style: dashed; }
.stepper__item--skipped .stepper__label { text-decoration: line-through; }
.stepper--stopped .stepper__item--now .stepper__dot { border-color: var(--grey-500); color: var(--grey-500); box-shadow: none; }
.stepper__note { margin: -14px 0 20px; font-size: .9rem; color: var(--grey-600); }

/* Decisions */
.next-step h2 { margin-bottom: 12px; }
.decisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.decision-card { display: grid; gap: 12px; align-content: start; padding: 14px; border: 1px solid var(--grey-200); border-radius: 8px; background: #fbfcfe; }
.decision-card__help { margin: 0; font-size: .9rem; color: var(--grey-600); }
.decision-card .btn { justify-self: start; }

/* Remedial action */
.action-card { border: 1px solid var(--grey-200); border-left: 4px solid var(--blue-400); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.action-card--completed { border-left-color: var(--green-700); }
.action-card--cancelled { border-left-color: var(--grey-300); opacity: .75; }
.action-card > header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.action-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.action-card .muted { margin: 0; }
.progress { height: 8px; border-radius: 99px; background: var(--grey-150); overflow: hidden; margin: 10px 0; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--sky-300)); }
.action-card--completed .progress span { background: var(--green-700); }
.w-0{width:0%}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}
.milestones { list-style: none; padding: 0; margin: 0; }
.milestones li { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.milestones li.is-done > span:not(.tick) { text-decoration: line-through; color: var(--grey-500); }
.tick { width: 20px; height: 20px; border: 2px solid var(--grey-300); border-radius: 4px; background: var(--white); padding: 0; cursor: pointer; flex: none; display: inline-block; }
.is-done .tick { background: var(--green-700); border-color: var(--green-700); }
.progress-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--grey-200); }
.updates, .cancel-action, .add-action { margin-top: 10px; }
.updates summary, .cancel-action summary, .add-action summary { cursor: pointer; color: var(--blue-600); font-weight: 500; font-size: .92rem; }
.add-action summary { font-weight: 600; font-size: 1rem; }
.add-action[open] summary { margin-bottom: 12px; }
.updates ul { list-style: none; padding: 0; margin: 8px 0 0; }
.updates li { padding: 8px 0; border-bottom: 1px solid var(--grey-150); font-size: .92rem; }
.updates li .muted { display: block; }

/* Comments, files, history */
.comments { list-style: none; padding: 0; margin: 0 0 16px; }
.comments li { padding: 12px 0; border-bottom: 1px solid var(--grey-150); }
.comments__who { margin: 0 0 4px; }
.files { list-style: none; padding: 0; margin: 0 0 14px; }
.files li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--grey-150); }
.files li .muted { grid-column: 1; }
.files li form { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.timeline-v { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--grey-200); }
.timeline-v li { position: relative; padding: 0 0 14px 6px; display: grid; gap: 2px; font-size: .9rem; }
.timeline-v li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-600); border: 2px solid var(--white); }
.timeline-v__comment { margin: 4px 0 0; padding: 6px 10px; background: var(--grey-100); border-radius: 4px; font-size: .88rem; }

/* Dashboard */
.work { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.work__tile { display: grid; gap: 2px; padding: 14px 16px; border-radius: 8px; background: var(--white); border: 1px solid var(--grey-200); text-decoration: none; color: var(--navy-900); }
.work__tile:hover { border-color: var(--blue-600); color: var(--navy-900); }
.work__n { font: 700 2rem/1 var(--font-display); color: var(--navy-800); }
.work__label { font-size: .88rem; color: var(--grey-600); }
.work__tile--hot { border-color: var(--magenta-600); box-shadow: inset 4px 0 0 var(--magenta-600); }
.work__tile--hot .work__n { color: var(--magenta-600); }
.work__tile--library { background: var(--navy-900); border-color: var(--navy-900); }
.work__tile--library .work__n { color: var(--sky-300); }
.work__tile--library .work__label { color: #c9d6ea; }
.quick { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* Library */
.search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.search-bar input { flex: 1; min-height: 48px; font-size: 1.05rem; }
.library { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.facets { position: sticky; top: 16px; }
.facet { margin-bottom: 18px; }
.facet h2 { font-size: 1rem; margin-bottom: 6px; color: var(--grey-600); }
.facet ul { list-style: none; padding: 0; margin: 0; }
.facet li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: .92rem; }
.facet li a { text-decoration: none; color: var(--navy-800); }
.facet li a[aria-current="true"] { font-weight: 700; color: var(--magenta-600); }
.facet li a[aria-current="true"]::before { content: "\2715\00a0"; font-size: .75rem; }
.facet li span { color: var(--grey-500); font-size: .85rem; }
.result { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }
.result h2 { font-size: 1.25rem; margin: 6px 0 8px; }
.result h2 a { text-decoration: none; color: var(--navy-900); }
.result h2 a:hover { color: var(--blue-600); text-decoration: underline; }
.result p { margin: 0 0 8px; color: var(--grey-800); }
.result__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .85rem; color: var(--grey-600); }
.result__marking { margin-left: auto; font-weight: 600; color: var(--green-700); font-size: .75rem; letter-spacing: .04em; }
.result__rec { font-size: .93rem; }

/* Field capture */
.netbar { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-weight: 500; }
.netbar--online { background: var(--green-100); color: var(--green-700); }
.netbar--offline { background: var(--amber-100); color: var(--amber-700); }
.netbar--signed-out { background: var(--red-100); color: var(--red-700); }
.netbar--syncing { background: var(--sky-100); color: var(--navy-800); }
.queue { list-style: none; padding: 0; margin: 0; }
.queue li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grey-150); }
.queue li > div { display: grid; gap: 2px; }
.queue__error { color: var(--red-700); font-size: .85rem; }

@media (max-width: 1100px) {
  .library { grid-template-columns: 1fr; }
  .facets { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
}
@media (max-width: 760px) {
  .stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .stepper__item:nth-child(4)::before { display: none; }
  .dims { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
}

.form > .btn { justify-self: start; }

/* =========================================================
   0.3 – notifications, exercises, nations, communities,
   assistant, dashboards and reports
   ========================================================= */
.plain { list-style: none; margin: 0 0 10px; padding: 0; }
.plain li { padding: 4px 0; }
.dims + .dims, .grid + .dims, .dims + details, details + .assist { margin-top: 14px; }
.dims--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dims--nations { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: .85rem; }
.dims--nations legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nations-pick { margin-top: 14px; }
.nations-pick summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy-900); margin-bottom: 8px; }
.warn-text { color: var(--red-700); }

/* Notifications */
.top__bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--grey-600); }
.top__bell svg { width: 22px; height: 22px; fill: currentColor; }
.top__bell:hover, .top__bell--on { color: var(--navy-800); background: var(--grey-100); }
.top__count { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--magenta-600); color: var(--white); font-size: .68rem; font-weight: 600; display: grid; place-items: center; }
.notes { list-style: none; margin: 0 0 12px; padding: 0; }
.notes__item a { display: grid; gap: 2px; padding: 12px 14px; border-bottom: 1px solid var(--grey-150); text-decoration: none; color: var(--grey-800); }
.notes__item a:hover { background: var(--grey-100); }
.notes__item--new a { border-left: 3px solid var(--magenta-600); background: #fff8fc; }
.notes__item strong { color: var(--navy-900); }
.notes__body { font-size: .9rem; color: var(--grey-600); }
.notes__type { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--blue-600); }
.notes__type--verify, .notes__type--endorse, .notes__type--decide, .notes__type--validate, .notes__type--analyse { color: var(--magenta-700); }
.notes--compact .notes__item a { padding: 8px 10px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: grid; gap: 6px; align-content: start; padding: 18px 20px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; text-decoration: none; color: var(--grey-800); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--blue-400); transform: translateY(-2px); color: var(--grey-800); }
.card--mine { border-left: 4px solid var(--magenta-600); }
.card__title { font: 600 1.12rem var(--font-display); color: var(--navy-900); }
.card__text { font-size: .9rem; color: var(--grey-600); }
.card__meta { font-size: .8rem; color: var(--grey-500); }
.card .tag { margin: 0; justify-self: start; }

/* Exercises */
.chart-panel { overflow: hidden; }
.chart-scroll { overflow-x: auto; }
.chart-scroll .chart--gantt { min-width: 760px; }
.legend { font-size: .82rem; color: var(--grey-600); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 8px 0 0; }
.key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.key--planned { background: var(--blue-500); } .key--conduct { background: var(--magenta-600); }
.key--completed { background: var(--green-700); } .key--cancelled { background: var(--grey-300); } .key--today { background: var(--magenta-600); width: 3px; }
.objectives { margin: 10px 0 0; padding-left: 22px; }
.objectives li { padding: 3px 0; }
.procedure { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: step; }
.procedure__step { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--grey-150); counter-increment: step; }
.procedure__step::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem var(--font-display); background: var(--grey-150); color: var(--grey-600); }
.procedure__step.is-done::before { content: "✓"; background: var(--green-100); color: var(--green-700); }
.procedure__step.is-late::before { background: var(--red-100); color: var(--red-700); }
.procedure__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.procedure__step .hint { margin: 2px 0 6px; }
.procedure__fields { margin-bottom: 6px; }
.procedure .field label { font-size: .8rem; }
.participants { list-style: none; margin: 0 0 12px; padding: 0; }
.participants li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--grey-150); }
.participants li > span:nth-child(2) { display: grid; }
.nation-code { display: inline-block; font: 600 .75rem var(--font-mono); padding: 2px 6px; border-radius: 4px; background: var(--navy-800); color: var(--white); text-decoration: none; letter-spacing: .04em; }
a.nation-code:hover { background: var(--magenta-600); color: var(--white); }

/* Assistant */
.assist { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: #f6f9ff; border: 1px solid #d6e3fb; }
.assist h3 { font-size: 1.05rem; margin-bottom: 2px; }
.score { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 8px; }
.score__n { font: 700 2rem var(--font-display); line-height: 1; }
.score__l { font-size: .85rem; color: var(--grey-600); }
.score--good .score__n { color: var(--green-700); }
.score--fair .score__n { color: var(--amber-700); }
.score--weak .score__n { color: var(--red-700); }
.score--small { margin: 0; } .score--small .score__n { font-size: 1.3rem; }
.findings { list-style: none; margin: 0 0 8px; padding: 0; font-size: .88rem; }
.findings li { padding: 3px 0 3px 22px; position: relative; }
.findings li::before { position: absolute; left: 0; top: 3px; font-weight: 700; }
.findings__ok::before { content: "✓"; color: var(--green-700); }
.findings__warn::before { content: "!"; color: var(--amber-700); left: 5px; }
.findings__bad { color: var(--red-700); }
.findings__bad::before { content: "✕"; color: var(--red-700); }
.similar { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.similar li { padding: 5px 0; display: grid; }
.similar--dup { border-left: 3px solid var(--red-700); padding-left: 8px !important; }
.chip-btn { border: 1px solid var(--blue-400); background: var(--white); color: var(--blue-600); border-radius: 99px; padding: 1px 10px; font: 500 .82rem var(--font-text); cursor: pointer; }
.chip-btn:hover { background: var(--blue-600); color: var(--white); }
.machine { border-left: 3px solid var(--sky-300); padding-left: 10px; }

/* Charts (server-side SVG) */
.chart { display: block; width: 100%; height: auto; font-family: var(--font-text); }
.chart__label { font-size: 13px; fill: var(--grey-800); }
.chart__value, .chart__axis { font-size: 12px; fill: var(--grey-600); }
.chart__grid { stroke: var(--grey-150); stroke-width: 1; }
.chart__bar--1 { fill: var(--blue-500); } .chart__bar--2 { fill: var(--navy-700); } .chart__bar--3 { fill: var(--magenta-600); }
.chart__bar--4 { fill: #4fa9e6; } .chart__bar--5 { fill: var(--grey-500); } .chart__bar--6 { fill: #7a5bd1; }
.chart a:hover rect { opacity: .8; }
.chart__line { fill: none; stroke: var(--magenta-600); stroke-width: 2.5; }
.chart__point { fill: var(--white); stroke: var(--magenta-600); stroke-width: 2; }
.chart__month--0 { fill: var(--grey-100); } .chart__month--1 { fill: var(--white); }
.chart__today { stroke: var(--magenta-600); stroke-width: 2; stroke-dasharray: 4 3; }
.chart__task--planned { fill: var(--blue-500); } .chart__task--conduct { fill: var(--magenta-600); }
.chart__task--completed { fill: var(--green-700); } .chart__task--cancelled { fill: var(--grey-300); }
.chart--meter { display: inline-block; width: 90px; height: 10px; vertical-align: middle; }
.chart__track { fill: var(--grey-150); } .chart__fill { fill: var(--green-700); }

/* Dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 14px 16px; display: grid; gap: 4px; border-top: 3px solid var(--blue-500); }
.kpi--warn { border-top-color: var(--red-700); }
.kpi__n { font: 700 1.9rem var(--font-display); color: var(--navy-900); line-height: 1; }
.kpi__l { font-size: .82rem; color: var(--grey-600); }

/* Reports: screen, print and the issued document */
.print-page { background: var(--grey-150); }
.print-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px clamp(16px, 3vw, 40px); background: var(--navy-900); color: var(--white); }
.print-bar a:not(.btn) { color: var(--sky-300); }
.print-bar__title { flex: 1; font: 600 .95rem var(--font-display); letter-spacing: .04em; }
.print-page .flashes { max-width: 210mm; margin: 12px auto 0; }
.doc { max-width: 210mm; margin: 20px auto 40px; padding: 18mm 18mm 14mm; background: var(--white); color: #111; box-shadow: 0 4px 24px rgba(5, 15, 36, .12); font-size: 10.5pt; line-height: 1.45; }
.doc h1 { font-size: 18pt; margin: 4px 0 12px; }
.doc h2 { font-size: 13pt; margin: 22px 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--grey-300); }
.doc h3 { font-size: 11pt; margin: 14px 0 6px; color: var(--navy-700); }
.doc p { margin: 0 0 8px; }
.doc-marking { text-align: center; font: 700 11pt var(--font-display); letter-spacing: .12em; margin: 0 0 14px; }
.doc-type { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .12em; color: var(--grey-600); margin: 0; }
.doc-table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 9.5pt; }
.doc-table th, .doc-table td { border: 1px solid #9aa3b2; padding: 4px 7px; text-align: left; vertical-align: top; }
.doc-table th { background: #eef2f8; font-weight: 600; }
.doc-table--kv th { width: 36%; }
.doc-meta { width: 100%; border-collapse: collapse; font-size: 9.5pt; margin-bottom: 8px; }
.doc-meta th, .doc-meta td { border: 1px solid #9aa3b2; padding: 4px 7px; text-align: left; }
.doc-meta th { background: #eef2f8; width: 16%; }
.doc-table--compact th, .doc-table--compact td { padding: 2px 4px; font-size: 8.5pt; text-align: center; }
.doc-fill { color: var(--grey-500); font-style: italic; }
.doc-late td { background: #fdecea; }
.doc-entry { margin: 0 0 14px; padding-bottom: 6px; border-bottom: 1px dashed var(--grey-200); }
.doc-entry__meta { font-size: 8.5pt; color: var(--grey-600); }
.doc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.doc .chart { max-width: 150mm; margin: 6px 0 12px; }
.doc-foot { margin-top: 24px; }
.doc-note { font-size: 8.5pt; color: var(--grey-600); margin-top: 16px; }

@media (max-width: 760px) {
  .dims--nations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dims--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { padding: 16px; margin: 0; box-shadow: none; }
  .doc-two { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  .print-bar, .flashes, .banner, .side, .top, .skip { display: none !important; }
  body, .print-page { background: #fff; }
  .doc { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .doc h2, .doc h3 { break-after: avoid; }
  .doc-table tr, .doc-entry { break-inside: avoid; }
}
.procedure__fields { align-items: end; }
.procedure__fields input, .procedure__fields select { min-width: 0; width: 100%; }
.chart--bars { max-width: 760px; }
.doc .chart--bars { max-width: 120mm; }

/* =========================================================
   0.4 – classifications, networks, documents, chat, profiles
   ========================================================= */
.mark-pill { display: inline-block; padding: 2px 9px; border-radius: 4px; font: 600 .74rem/1.4 var(--font-text); letter-spacing: .04em; color: #fff; white-space: nowrap; }
.mark-pill--unclass { background: #2e7d32; }
.mark-pill--restricted { background: #b26a00; }
.mark-pill--confidential { background: #1f4fa8; }
.mark-pill--secret { background: #b3261e; }
.mark-pill--topsecret { background: #e8710a; color: #1b1000; }
.mark-edge { border-left: 5px solid; padding-left: 12px; }
.mark-edge--unclass { border-color: #2e7d32; } .mark-edge--restricted { border-color: #b26a00; }
.mark-edge--confidential { border-color: #1f4fa8; } .mark-edge--secret { border-color: #b3261e; } .mark-edge--topsecret { border-color: #e8710a; }

/* Networks */
.netchip { display: inline-block; padding: 4px 10px; border-radius: 6px; font: 600 .78rem var(--font-text); color: #fff; }
.netchip--unclass { background: #2e7d32; } .netchip--restricted { background: #b26a00; } .netchip--confidential { background: #1f4fa8; }
.netchip--secret { background: #b3261e; } .netchip--topsecret { background: #e8710a; color: #1b1000; }
.side__net { padding: 0 16px 8px; }
.side__net .netchip { display: block; margin: 0 0 6px; }
.side__nets summary { cursor: pointer; color: var(--sky-300); font-size: .85rem; }
.side__nets ul { list-style: none; margin: 6px 0; padding: 0; font-size: .85rem; }
.side__nets a { color: #dbe7fc; }
.side__nets .small { color: var(--grey-300); }
.nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.net { display: grid; gap: 2px; padding: 12px 14px; border-radius: 8px; color: #fff; }
.net--unclass { background: #2e7d32; } .net--restricted { background: #b26a00; } .net--confidential { background: #1f4fa8; }
.net--secret { background: #b3261e; } .net--topsecret { background: #e8710a; color: #1b1000; }
.net--here { outline: 3px solid var(--navy-900); outline-offset: 2px; }
.findings--guard li { padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--grey-150); }
.editor { font-family: var(--font-mono); font-size: .9rem; line-height: 1.5; }

/* Top bar icons, bell drop-down, avatars */
.top__icon { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--grey-600); }
.top__icon svg { width: 22px; height: 22px; fill: currentColor; }
.top__icon:hover { color: var(--navy-800); background: var(--grey-100); }
.top__me { display: inline-flex; text-decoration: none; }
.bell { position: relative; }
.bell__panel { position: absolute; right: 0; top: 46px; z-index: 30; width: min(380px, 90vw); background: var(--white); border: 1px solid var(--grey-200); border-radius: 10px; box-shadow: 0 12px 32px rgba(5, 15, 36, .18); overflow: hidden; }
.bell__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--grey-150); }
.bell__panel ul { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.bell__panel li a { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--grey-150); text-decoration: none; color: var(--grey-800); font-size: .9rem; }
.bell__panel li a:hover { background: var(--grey-100); }
.bell__panel li.is-new a { border-left: 3px solid var(--magenta-600); background: #fff8fc; }
.bell__panel li span { color: var(--grey-600); font-size: .84rem; }
.bell__panel small { color: var(--grey-500); }
.bell__empty { padding: 14px; color: var(--grey-500); margin: 0; }
.bell__all { display: block; padding: 10px 14px; text-align: center; font-weight: 600; font-size: .9rem; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--magenta-600)); color: #fff; font: 600 .8rem var(--font-display); overflow: hidden; position: relative; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--s { width: 34px; height: 34px; font-size: .78rem; }
.avatar--m { width: 52px; height: 52px; font-size: 1rem; }
.avatar--l { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar--xl { width: 112px; height: 112px; font-size: 2rem; }
.avatar--online::after { content: ""; position: absolute; right: 6%; bottom: 6%; width: 22%; height: 22%; min-width: 8px; min-height: 8px; border-radius: 50%; background: #2ecc71; border: 2px solid #fff; }
.online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; margin-right: 4px; }

/* Profiles and people */
.profile-head__id { display: flex; gap: 18px; align-items: center; }
.profile-head__id p { margin: 2px 0 0; }
.photo-edit { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.dims--1 { grid-template-columns: 1fr; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.person { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; text-decoration: none; color: var(--grey-800); }
.person:hover { border-color: var(--blue-400); color: var(--grey-800); }
.person__text { display: grid; gap: 2px; }
.person__text strong { color: var(--navy-900); }
.person__tags .tag { margin: 4px 4px 0 0; display: inline-block; }
.mini-kpis { display: grid; gap: 6px; margin-bottom: 10px; }
.mini-kpis strong { font: 700 1.3rem var(--font-display); color: var(--navy-900); margin-right: 4px; }

/* Chat */
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.chat__list, .chat__pane { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; }
.chat__list { padding: 14px; }
.chat__new > summary { list-style: none; display: block; text-align: center; margin-bottom: 10px; }
.chat__new > summary::-webkit-details-marker { display: none; }
.chat__new[open] > summary { margin-bottom: 12px; }
.pick { max-height: 220px; overflow-y: auto; border: 1px solid var(--grey-200); border-radius: 6px; padding: 6px 10px; display: grid; gap: 4px; }
.chat__convs { list-style: none; margin: 8px 0 0; padding: 0; }
.chat__convs a { display: grid; gap: 2px; padding: 10px; border-radius: 6px; text-decoration: none; color: var(--grey-800); }
.chat__convs a:hover, .chat__convs a[aria-current="page"] { background: var(--sky-100); }
.chat__name { font-weight: 600; color: var(--navy-900); display: flex; justify-content: space-between; gap: 6px; }
.chat__meta { font-size: .8rem; color: var(--grey-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__pane { padding: 16px 18px; display: grid; gap: 10px; min-height: 520px; grid-template-rows: auto 1fr auto; }
.chat__head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.chat__head h2 { margin: 0 0 4px; }
.chat__msgs { list-style: none; margin: 0; padding: 8px 4px; display: flex; flex-direction: column; gap: 8px; max-height: 58vh; min-height: 300px; overflow-y: auto; background: var(--canvas); border-radius: 8px; }
.msg { max-width: 72%; align-self: flex-start; background: var(--white); border: 1px solid var(--grey-200); border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.msg--mine { align-self: flex-end; background: #e8f0ff; border-color: #c9dafb; border-radius: 12px 12px 4px 12px; }
.msg--system { align-self: center; background: transparent; border: 0; color: var(--grey-500); font-size: .82rem; }
.msg__who { display: block; font-size: .75rem; color: var(--grey-500); margin-bottom: 2px; }
.msg__body { overflow-wrap: anywhere; }
.msg__del { display: inline; }
.chat__compose { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.chat__compose textarea { resize: vertical; }
@media (max-width: 900px) { .chat { grid-template-columns: 1fr; } .msg { max-width: 90%; } }
[hidden] { display: none !important; }
.kv dd { overflow-wrap: anywhere; min-width: 0; }

/* =========================================================
   0.5 – two-factor, security, cyber, accreditation
   ========================================================= */
.code-input { font: 600 1.3rem var(--font-mono); letter-spacing: .25em; max-width: 220px; }
.qr { width: 220px; height: 220px; margin: 10px 0; border: 1px solid var(--grey-200); border-radius: 8px; overflow: hidden; background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
.key { font-size: 1.05rem; letter-spacing: .08em; }
.setup-steps { padding-left: 20px; display: grid; gap: 8px; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 28px; font-size: 1.1rem; }
.sessions { list-style: none; margin: 0 0 12px; padding: 0; }
.sessions li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--grey-150); }
.sessions li > span { display: grid; gap: 2px; }
.sev { display: inline-block; min-width: 64px; text-align: center; padding: 1px 8px; border-radius: 4px; font: 600 .72rem var(--font-text); text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.sev--critical { background: #7a0d0d; } .sev--high { background: var(--red-700); } .sev--medium { background: #b26a00; } .sev--low { background: var(--grey-500); }
.pill--red { background: var(--red-100); color: var(--red-700); }
.alerts { list-style: none; margin: 0; padding: 0; }
.alert-row a { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 6px; border-bottom: 1px solid var(--grey-150); text-decoration: none; color: var(--grey-800); }
.alert-row a > .muted { grid-column: 2; }
.alert-row a:hover { background: var(--grey-100); }
.attack-pick details { border-bottom: 1px solid var(--grey-150); padding: 6px 0; }
.attack-pick summary { cursor: pointer; font-weight: 600; color: var(--navy-900); }
.attack-pick .dims { margin: 8px 0 4px; grid-template-columns: 1fr 1fr; }
.timeline-h { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.timeline-h__step { display: grid; gap: 2px; padding: 10px 12px; background: var(--white); border: 1px solid var(--grey-200); border-top: 3px solid var(--grey-300); border-radius: 6px; }
.timeline-h__step.is-done { border-top-color: var(--green-700); }
.ioc { overflow-wrap: anywhere; }
.matrix-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 12px; }
.matrix { display: grid; grid-template-columns: repeat(14, minmax(118px, 1fr)); gap: 6px; min-width: 1650px; }
.matrix__col h3 { font-size: .8rem; text-align: center; padding: 6px 4px; margin: 0 0 6px; background: var(--navy-900); color: #fff; border-radius: 4px; min-height: 44px; display: grid; place-items: center; }
.matrix__cell { display: block; font-size: .72rem; line-height: 1.25; padding: 6px; margin-bottom: 4px; border-radius: 4px; border: 1px solid var(--grey-200); text-decoration: none; color: var(--grey-800); }
.matrix__cell strong { float: right; }
.heat-0 { background: var(--white); } .heat-1 { background: #fde2ec; } .heat-2 { background: #f7a8c8; } .heat-3 { background: #e0559a; color: #fff; } .heat-4 { background: var(--magenta-700); color: #fff; }
.vuln-form { display: flex; gap: 4px; flex-wrap: wrap; }
.vuln-form select, .vuln-form input { padding: 4px 6px; font-size: .82rem; max-width: 130px; }
@media (max-width: 760px) { .timeline-h { grid-template-columns: 1fr 1fr; } }
.ctl { display: inline-block; padding: 1px 8px; border-radius: 4px; font: 600 .72rem var(--font-text); white-space: nowrap; }
.ctl--implemented { background: var(--green-100); color: var(--green-700); } .ctl--partial { background: var(--amber-100); color: var(--amber-700); }
.ctl--not_started { background: var(--red-100); color: var(--red-700); } .ctl--not_applicable { background: var(--grey-150); color: var(--grey-600); }
.control { padding: 12px 0; border-bottom: 1px solid var(--grey-150); }
.control__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.control p { margin: 4px 0; }
.control .evidence { color: var(--navy-800); }
.control details summary { cursor: pointer; color: var(--blue-600); }
.gaps { list-style: none; margin: 0; padding: 0; } .gaps li { padding: 8px 0; border-bottom: 1px solid var(--grey-150); display: grid; gap: 2px; }
.heat { border-collapse: separate; border-spacing: 3px; margin: 0 auto; }
.heat caption { font-weight: 600; margin-bottom: 6px; }
.heat th { font-size: .8rem; color: var(--grey-600); padding: 2px 6px; }
.heat__cell { width: 64px; height: 44px; text-align: center; font: 600 .72rem var(--font-mono); border-radius: 4px; }
.heat__cell--low { background: #dff2e3; } .heat__cell--medium { background: #fdeccc; } .heat__cell--high { background: #f9c9c4; }
.heat__axes { text-align: center; }
.risk { display: inline-block; min-width: 30px; text-align: center; border-radius: 4px; font-weight: 600; padding: 1px 6px; }
.risk--low { background: #dff2e3; color: var(--green-700); } .risk--medium { background: #fdeccc; color: var(--amber-700); } .risk--high { background: #f9c9c4; color: var(--red-700); }
.dims--codes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 760px) { .dims--codes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   0.6 – search, full observation record, procedure, projects,
   surveys, publications, Key Issues and Trends, training, calendar, hub
   ========================================================= */
.top { justify-content: space-between; }
.top__search { flex: 1; max-width: 420px; }
.top__search input { width: 100%; min-height: 38px; border: 1px solid var(--grey-300); border-radius: 99px; padding: 6px 16px; font: inherit; background: var(--grey-100); }
.top__search input:focus { background: var(--white); }
.top__menu + .top__search { margin-left: 8px; }

/* Search */
.search-form .search-bar select { min-height: 48px; }
.advanced { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 12px 18px; margin-bottom: 20px; }
.advanced > summary { cursor: pointer; font-weight: 600; color: var(--navy-900); }
.advanced__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; margin: 14px 0; }
.advanced__group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.advanced__group legend { font: 600 1rem var(--font-display); color: var(--blue-600); margin-bottom: 6px; padding: 0; }
.advanced .actions { align-items: end; }
.field--inline { display: flex; align-items: center; gap: 8px; }
.badge--quiet { background: var(--grey-150); color: var(--grey-800); }
.search-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.search-tools p { margin: 0; flex: 1; }
.save-search { position: relative; }
.save-search > summary { list-style: none; }
.save-search > summary::-webkit-details-marker { display: none; }
.save-search[open] > form { position: absolute; right: 0; z-index: 10; width: 300px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 14px; box-shadow: 0 8px 24px rgba(5, 15, 36, .14); }
.hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hit { padding: 12px 0; border-bottom: 1px solid var(--grey-150); }
.hit:last-child { border-bottom: 0; }
.hit__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 4px; font-size: .85rem; }
.hit__meta .tag { margin: 0; }
.hit__title { font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.hit__title:hover { text-decoration: underline; }
.hit__text { margin: 4px 0; color: var(--grey-800); font-size: .93rem; }
.hit__facts { margin: 0; }
mark { background: #fff2a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.tips li { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .tag { margin: 0; text-decoration: none; }
.saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.saved li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.saved form { margin-left: auto; }

/* Full observation record */
.revision__head { font-size: 1.05rem; }
.diff del, del { background: var(--red-100); color: var(--red-700); text-decoration: line-through; }
.diff ins, ins { background: var(--green-100); color: var(--green-700); text-decoration: underline; }
.links-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.links-list li { display: grid; gap: 2px; }
.links-list form { display: inline; }
.check--card { border: 1px solid var(--grey-200); border-radius: 6px; padding: 8px 10px; align-self: end; }
.callout { border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; }
.callout--info { background: var(--sky-100); border: 1px solid var(--sky-300); color: var(--navy-800); }

/* Procedure */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 14px; margin-bottom: 24px; overflow-x: auto; }
.process__phase { background: var(--white); border: 1px solid var(--grey-200); border-radius: 10px; padding: 14px; border-top: 4px solid var(--blue-500); }
.process__phase--analysis { border-top-color: var(--navy-700); }
.process__phase--implementation { border-top-color: var(--magenta-600); }
.process__phase--sharing { border-top-color: var(--green-700); }
.process__phase-name { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-600); margin-bottom: 10px; }
.process__steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.pstep { position: relative; flex: 1 1 210px; min-width: 190px; background: var(--grey-100); border-radius: 8px; padding: 12px 12px 10px; display: flex; flex-direction: column; }
.pstep + .pstep::before { content: "→"; position: absolute; left: -11px; top: 14px; color: var(--grey-500); font-weight: 700; }
.pstep--late { box-shadow: inset 0 0 0 2px var(--red-700); }
.pstep__n { font: 700 1.4rem/1 var(--font-display); color: var(--blue-600); margin: 0 0 4px; }
.pstep__title { font-size: 1.05rem; margin: 0 0 2px; }
.pstep__role { font-weight: 600; font-size: .85rem; color: var(--magenta-700); margin: 0 0 6px; }
.pstep__what { font-size: .85rem; color: var(--grey-800); margin: 0 0 6px; flex: 1; }
.pstep__out { font-size: .82rem; margin: 0 0 6px; }
.pstep__stats { font-size: .82rem; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pstep__limit { color: var(--grey-600); }
.pstep__late { color: var(--red-700); font-weight: 700; }
.li-table td { vertical-align: top; }
.doc--wide { max-width: 297mm; }
.row--warn td { background: #fff8e6; }

/* Notifications and chat */
.notes__item { position: relative; }
.notes__toggle { position: absolute; right: 12px; top: 10px; }
.chat__search { margin-bottom: 10px; }
.chat__search input { width: 100%; }
.chat__hits { padding: 12px 16px; }
.mention { background: var(--sky-100); color: var(--navy-800); border-radius: 4px; padding: 0 3px; font-weight: 600; }

/* Projects, interviews, surveys */
.lede { font-size: 1.08rem; color: var(--grey-600); margin: 6px 0 0; }
.qlist { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 10px; }
.qlist .inline-row { margin-top: 4px; gap: 12px; }
.survey { max-width: 820px; }
.survey__q { border: 0; border-bottom: 1px solid var(--grey-150); margin: 0 0 14px; padding: 0 0 14px; display: grid; gap: 6px; }
.survey__q legend { font-weight: 600; color: var(--navy-900); margin-bottom: 8px; padding: 0; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.scale__opt { display: grid; justify-items: center; gap: 2px; border: 1px solid var(--grey-200); border-radius: 6px; padding: 8px 4px; cursor: pointer; text-align: center; }
.scale__opt span { font: 700 1.1rem var(--font-display); color: var(--navy-900); }
.scale__opt small { font-size: .72rem; color: var(--grey-600); }
.scale__opt:has(input:checked) { border-color: var(--blue-600); background: var(--sky-100); }
.bars { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bars th { text-align: left; font-weight: 500; padding: 4px 10px 4px 0; width: 34%; }
.bars td { padding: 4px 0; }
.bars__bar { display: block; height: 14px; border-radius: 3px; background: var(--blue-500); min-width: 2px; }
.bars__n { width: 90px; text-align: right; padding-left: 10px; color: var(--grey-600); }
.answers { margin: 0; padding-left: 18px; display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.factsheet__head { border-bottom: 3px solid var(--navy-900); padding-bottom: 8px; margin-bottom: 12px; }
.factsheet__sub { font-size: 12pt; color: var(--grey-600); margin: 0 0 6px; }
.factsheet__facts { font-size: 9pt; color: var(--grey-600); margin: 0; }
.factsheet__summary { font-size: 11pt; font-weight: 500; background: #eef2f8; padding: 10px 12px; border-left: 4px solid var(--blue-600); }

/* Publications */
.pubs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pub { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 16px 18px; border-top: 4px solid var(--blue-500); display: flex; flex-direction: column; }
.pub--featured { box-shadow: 0 0 0 2px var(--magenta-600) inset; }
.pub--kit, .pub--xplainer { border-top-color: var(--magenta-600); }
.pub--magazine, .pub--newsletter { border-top-color: var(--navy-700); }
.pub--factsheet, .pub--report { border-top-color: var(--green-700); }
.pub__type { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-600); margin: 0 0 6px; }
.pub__title { font: 600 1.15rem/1.25 var(--font-display); text-decoration: none; color: var(--navy-900); }
.pub__title:hover { color: var(--magenta-600); }
.pub__sub { color: var(--grey-600); margin: 2px 0 6px; }
.pub__summary { font-size: .9rem; flex: 1; }
.pub__meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--grey-600); margin: 6px 0 0; }
.subs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn[aria-pressed="true"] { background: var(--blue-600); color: var(--white); }
.publication { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 8px 28px 20px; margin-bottom: 20px; }
.pub-section { padding: 16px 0; border-bottom: 1px solid var(--grey-150); }
.pub-section:last-child { border-bottom: 0; }
.pub-section__kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--magenta-700); margin: 0 0 4px; font-weight: 600; }
.pub-section--highlight { background: var(--sky-100); margin: 10px -14px; padding: 14px; border-radius: 8px; border-bottom: 0; }
.pub-lessons { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.magazine__mast { background: var(--navy-900); color: var(--white); margin: 0 -18mm 14px; padding: 12mm 18mm 8mm; }
.magazine__mast h1 { color: var(--white); font-size: 24pt; }
.magazine__series { font: 600 10pt var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-300); margin: 0 0 6px; }
.magazine__sub { font-size: 12pt; color: #c9d6ea; margin: 0 0 4px; }
.magazine__date { font-size: 9pt; color: #c9d6ea; margin: 0; }
.magazine__lede { font-size: 12pt; font-weight: 500; }
.magazine__body { column-count: 2; column-gap: 9mm; }
.magazine__body .pub-section { break-inside: avoid-column; }
.magazine--kit .magazine__body, .magazine--factsheet .magazine__body { column-count: 1; }

/* Key Issues and Trends */
.section-title { margin: 8px 0 12px; }
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kit > .panel { margin: 0; }
.kit__topic--empty { opacity: .7; }
.kit__topic h3 { font-size: 1.15rem; margin-bottom: 4px; }
.kit__topic h4 { margin: 12px 0 4px; font-size: .9rem; color: var(--navy-700); }
.kit__nums { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.kit__list { margin: 0; padding-left: 18px; font-size: .88rem; display: grid; gap: 4px; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; margin-left: 6px; vertical-align: middle; }
.spark__bar { width: 7px; background: var(--magenta-600); border-radius: 1px; }
.h-0 { height: 2px; } .h-10 { height: 10%; } .h-20 { height: 20%; } .h-30 { height: 30%; } .h-40 { height: 40%; } .h-50 { height: 50%; }
.h-60 { height: 60%; } .h-70 { height: 70%; } .h-80 { height: 80%; } .h-90 { height: 90%; } .h-100 { height: 100%; }
.xplainer__topics { columns: 3; column-gap: 8mm; padding-left: 14px; }
.xplainer__topics li { break-inside: avoid; margin-bottom: 8px; }
.xplainer__topics h2 { font-size: 11pt; border: 0; margin: 0 0 2px; }

/* Calendar */
.cal-nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-nav h2 { margin: 0; min-width: 180px; text-align: center; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.cal { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__row--head span { padding: 8px; font-weight: 600; font-size: .85rem; color: var(--grey-600); background: var(--grey-100); text-align: center; }
.cal__day { min-height: 104px; border-top: 1px solid var(--grey-150); border-left: 1px solid var(--grey-150); padding: 4px 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal__day:first-child { border-left: 0; }
.cal__day--out { background: var(--grey-100); color: var(--grey-500); }
.cal__day--today { box-shadow: inset 0 0 0 2px var(--magenta-600); }
.cal__n { font-size: .8rem; font-weight: 600; }
.cal-item { display: block; font-size: .74rem; line-height: 1.3; padding: 1px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; color: var(--navy-900); background: var(--sky-100); border-left: 3px solid var(--blue-500); }
span.cal-item { display: inline-block; }
.cal-item--exercise { background: #fde8f2; border-left-color: var(--magenta-600); }
.cal-item--event { background: var(--sky-100); border-left-color: var(--blue-600); }
.cal-item--training { background: var(--green-100); border-left-color: var(--green-700); }
.cal-item--milestone { background: #eceaf8; border-left-color: #5b4bb7; }
.cal-item--survey { background: var(--amber-100); border-left-color: var(--amber-700); }
.cal-item--action { background: var(--red-100); border-left-color: var(--red-700); }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.agenda__date { min-width: 108px; font-weight: 600; font-size: .88rem; color: var(--navy-900); }

/* Hub */
.hub-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); gap: 20px; align-items: end; margin-bottom: 20px; }
.hub-head p { color: var(--grey-600); margin: 6px 0 0; }
.hub-head__search { margin: 0; }
.gateway { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--navy-800); }
.gateway__step { position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 22px; background: var(--navy-900); color: #c9d6ea; text-decoration: none; }
.gateway__step:nth-child(2) { background: var(--navy-800); } .gateway__step:nth-child(3) { background: var(--navy-700); } .gateway__step:nth-child(4) { background: var(--blue-600); color: #eef4ff; }
.gateway__step strong { color: var(--white); font: 700 1.2rem var(--font-display); }
.gateway__step span:last-child { font-size: .86rem; }
.gateway__step:hover { filter: brightness(1.15); color: var(--white); }
.gateway__n { font: 700 .8rem var(--font-display); color: var(--sky-300); letter-spacing: .1em; }
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--blue-400); }
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.hub > .panel { margin: 0; }
.hub-list { display: grid; gap: 10px; }
.hub-list li { display: grid; gap: 1px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel-head h2 { margin-bottom: 10px; }

@media (max-width: 1100px) {
  .process { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top__search { max-width: none; }
  .hub-head { grid-template-columns: 1fr; }
  .gateway { grid-template-columns: 1fr 1fr; }
  .process__steps { flex-direction: column; }
  .pstep + .pstep::before { content: "↓"; left: 12px; top: -15px; }
  .cal__day { min-height: 64px; }
  .cal-item { font-size: 0; padding: 0; height: 6px; border-left-width: 6px; }
  .scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .scale__opt small { display: none; }
  .magazine__body, .xplainer__topics { column-count: 1; columns: 1; }
  .magazine__mast { margin: 0 -16px 14px; padding: 16px; }
  .notes__toggle { position: static; margin: 0 12px 8px; }
}
@media print {
  .magazine__mast { -webkit-print-color-adjust: exact; print-color-adjust: exact; margin: 0 0 12px; padding: 8mm; }
  .pub-section--highlight { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc--wide { max-width: none; }
}
.top__user { margin-left: auto; }
.notes__item a { padding-right: 110px; }
@media (max-width: 760px) { .notes__item a { padding-right: 14px; } }
/* Procedure map: one row per phase, phase name on the left */
.process { grid-template-columns: 1fr; overflow: visible; gap: 10px; }
.process__phase { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: start; border-top: 0; border-left: 5px solid var(--blue-500); }
.process__phase--analysis { border-left-color: var(--navy-700); }
.process__phase--implementation { border-left-color: var(--magenta-600); }
.process__phase--sharing { border-left-color: var(--green-700); }
.process__phase-name { margin: 6px 0 0; }
.process__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pstep { min-width: 0; }
.pstep + .pstep::before { left: -14px; }
@media (max-width: 900px) {
  .process__phase { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .pstep + .pstep::before { content: "↓"; left: 12px; top: -15px; }
}
.search-form .search-bar input { flex: 1 1 auto; min-width: 0; }
.search-form .search-bar select { flex: 0 0 auto; width: auto; max-width: 240px; }
@media (max-width: 760px) { .search-form .search-bar select { max-width: none; width: 100%; } }
@media (max-width: 760px) {
  .top__search { display: none; }
  .cal-legend .cal-item, .agenda .cal-item { font-size: .74rem; height: auto; padding: 1px 6px; border-left-width: 3px; }
}
@media (max-width: 480px) { .top__user { gap: 8px; } .top__name { display: none; } }

/* ---- 0.6.2 Overview ---- */
.ov-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ov-head h1 { font-size: 2rem; }
.ov-head__date { margin: 0 0 4px; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-600); }
.ov-head__sum { margin: 6px 0 0; color: var(--grey-600); }
.ov-late { color: var(--magenta-700); }
.ov-search { display: flex; gap: 8px; flex: 0 1 420px; min-width: 260px; }
.ov-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--grey-300); border-radius: var(--radius); font: inherit; background: var(--white); }
.ov-search input:focus { outline: 2px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-600); }
.ov-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ov-quick__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--white); border: 1px solid var(--grey-200); color: var(--navy-800); text-decoration: none; font-weight: 600; font-size: .92rem; }
.ov-quick__btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.ov-quick__ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sky-100); color: var(--blue-600); font-size: .85rem; line-height: 1; }
.ov-quick__btn--main { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.ov-quick__btn--main:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.ov-quick__btn--main .ov-quick__ico { background: rgba(255,255,255,.2); color: var(--white); }
.work--compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.work--compact .work__tile { padding: 10px 14px; }
.work--compact .work__n { font-size: 1.6rem; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.ov-main, .ov-side { display: grid; gap: 20px; min-width: 0; }
.ov-main > .panel, .ov-side > .panel { margin-bottom: 0; }
.att { list-style: none; margin: 0 0 8px; padding: 0; }
.att__item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--grey-150); position: relative; }
.att__item:last-child { border-bottom: 0; }
.att__item:hover { background: var(--grey-100); }
.att__item--late { box-shadow: inset 3px 0 0 var(--magenta-600); }
.att__verb { flex: 0 0 74px; text-align: center; padding: 3px 0; border-radius: 4px; font: 600 .74rem/1.3 var(--font-text); letter-spacing: .04em; text-transform: uppercase; background: var(--grey-150); color: var(--grey-800); }
.att__verb--verify, .att__verb--analyse { background: #dbe7fc; color: var(--blue-600); }
.att__verb--endorse, .att__verb--decide, .att__verb--validate, .att__verb--account { background: var(--amber-100); color: var(--amber-700); }
.att__verb--action { background: #dff3f1; color: #17635b; }
.att__verb--security { background: var(--red-100); color: var(--red-700); }
.att__verb--draft { background: var(--grey-150); color: var(--grey-600); }
.att__verb--survey, .att__verb--training, .att__verb--transfer { background: var(--magenta-100); color: var(--magenta-700); }
.att__body { flex: 1; min-width: 0; display: grid; gap: 1px; text-decoration: none; color: var(--grey-800); }
.att__body::after { content: ""; position: absolute; inset: 0; }
.att__title { font-weight: 600; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att__ref { font-size: .8rem; font-weight: 400; color: var(--grey-600); }
.att__meta { font-size: .84rem; color: var(--grey-600); }
.att__go { color: var(--grey-500); font-size: 1.3rem; line-height: 1; }
.att__item .mark-pill { position: relative; z-index: 1; }
.att__more { display: inline-block; margin: 0 10px 4px 0; }
.ov-empty { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 8px; background: var(--green-100); color: var(--green-700); }
.ov-empty p { margin: 0; }
.ov-empty__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green-700); color: var(--white); font-weight: 700; }
.prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.prog__title { display: block; font-weight: 600; text-decoration: none; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog__bar { list-style: none; display: flex; gap: 4px; margin: 6px 0 4px; padding: 0; }
.prog__seg { flex: 1; height: 6px; border-radius: 3px; background: var(--grey-150); }
.prog__seg--done { background: var(--blue-400); }
.prog__seg--now { background: var(--magenta-600); }
.prog__status { margin: 0; }
.ov-list { list-style: none; margin: 0; padding: 0; }
.ov-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--grey-150); flex-wrap: wrap; }
.ov-list li:last-child { border-bottom: 0; }
.ov-list a { min-width: 0; font-weight: 600; text-decoration: none; color: var(--navy-900); }
.kf { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.kf__now { display: grid; gap: 2px; flex: 0 0 auto; }
.kf__n { font: 700 2.4rem/1 var(--font-display); color: var(--navy-900); }
.kf__l { font-size: .82rem; color: var(--grey-600); }
.kf__d { font-weight: 600; }
.kf__d--up { color: var(--green-700); }
.kf__d--down { color: var(--magenta-700); }
.spark12 { flex: 1; min-width: 0; height: auto; max-height: 80px; }
.spark12__bar { fill: var(--sky-300); }
.spark12__bar--now { fill: var(--blue-600); }
.spark12__label { font: 10px var(--font-text); fill: var(--grey-600); }
.kf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kf__grid a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; background: var(--grey-100); text-decoration: none; color: var(--grey-800); border: 1px solid transparent; }
.kf__grid a:hover { border-color: var(--blue-600); }
.kf__k { font-size: .8rem; color: var(--grey-600); }
.kf__v { font: 700 1.4rem/1 var(--font-display); color: var(--navy-900); }
.kf__grid a.kf__bad { background: var(--magenta-100); }
.kf__grid a.kf__bad .kf__v { color: var(--magenta-700); }
.up { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.up__item { display: flex; gap: 12px; align-items: center; }
.up__date { flex: 0 0 46px; display: grid; place-items: center; padding: 4px 0; border-radius: 6px; background: var(--sky-100); color: var(--navy-800); font-size: .72rem; text-transform: uppercase; line-height: 1.1; }
.up__date b { font: 700 1.15rem/1 var(--font-display); }
.up__date--now { background: var(--navy-900); color: var(--sky-300); }
.up__item a { display: grid; min-width: 0; text-decoration: none; color: var(--navy-900); font-weight: 600; }
.up__item a span { font-weight: 400; }
.count-badge { display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 99px; background: var(--magenta-600); color: var(--white); font: 600 .78rem/1.3 var(--font-text); text-align: center; vertical-align: middle; }
.kv--tight { gap: 0; margin-bottom: 8px; }
.kv--tight dd { margin-bottom: 8px; }
.ov-custom summary { cursor: pointer; font-weight: 600; color: var(--navy-800); }
.ov-custom fieldset { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.ov-side .empty, .ov-main .empty { padding: 18px; }
@media (max-width: 1000px) { .ov-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .ov-head h1 { font-size: 1.6rem; }
  .ov-search { flex-basis: 100%; min-width: 0; }
  .att__verb { flex-basis: 62px; font-size: .68rem; }
  .att__title { white-space: normal; }
  .kf { flex-wrap: wrap; }
}
.prog__item, .ov-list li > a, .att__body { min-width: 0; }
.ov-main > .panel, .ov-side > .panel { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .prog__title { white-space: normal; } }
.kpi--link { text-decoration: none; color: inherit; }
.kpi--link:hover { border-color: var(--blue-600); box-shadow: 0 2px 8px rgba(8,26,58,.08); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.presets__a { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--grey-200); background: var(--white); text-decoration: none; color: var(--navy-800); font-size: .88rem; font-weight: 600; }
.presets__a:hover { border-color: var(--blue-600); }
.presets__a.is-on { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* ---- 0.7 NLLT capabilities ---- */
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card-link { display: block; padding: 18px 20px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; text-decoration: none; color: var(--grey-800); }
.card-link:hover { border-color: var(--blue-600); box-shadow: 0 4px 14px rgba(8, 26, 58, .08); color: var(--grey-800); }
.card-link h2 { font-size: 1.15rem; margin-bottom: 6px; }
.card-link p { margin: 0; font-size: .92rem; color: var(--grey-600); }
.req { font-size: .75rem; font-weight: 600; color: var(--magenta-700); text-transform: none; }
.field--row { display: grid; grid-template-columns: minmax(140px, 1fr) 1.4fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.field--row label { margin: 0; font-size: .9rem; }
.field--inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.field--inline label { margin: 0; font-size: .85rem; white-space: nowrap; }
.field--inline select { width: auto; }
.tree--1 { padding-left: 18px; } .tree--2 { padding-left: 36px; } .tree--3, .tree--4 { padding-left: 54px; }
td.tree--1, td.tree--2, td.tree--3, td.tree--4 { border-left: 0; }
.dims--tree { display: block; columns: 2 220px; column-gap: 18px; }
.dims--tree legend { column-span: all; }
.dims--tree .hint { column-span: all; }
.dims--tree .check { break-inside: avoid; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__list, .menu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px; background: var(--white); border: 1px solid var(--grey-200);
  border-radius: 8px; box-shadow: 0 10px 30px rgba(8, 26, 58, .16); padding: 8px; margin: 0; list-style: none; }
.menu__list a { display: block; padding: 8px 10px; border-radius: 4px; text-decoration: none; color: var(--navy-800); font-size: .92rem; }
.menu__list a:hover { background: var(--grey-100); }
.menu__panel { padding: 14px; display: grid; gap: 14px; min-width: 280px; }
.menu__panel .form { gap: 6px; }
.stat-row { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; padding: 0; margin: 0 0 14px; }
.stat-row li { background: var(--grey-100); border-radius: 6px; padding: 8px 10px; display: grid; }
.stat-row strong { font: 700 1.3rem/1.1 var(--font-display); color: var(--navy-900); }
.stat-row span { font-size: .78rem; color: var(--grey-600); }
.risk-out { margin: 4px 0 10px; font-weight: 600; min-height: 1.4em; }
.risk-out--low, .risk-badge--low { color: var(--green-700); }
.risk-out--medium, .risk-badge--medium { color: var(--amber-700); }
.risk-out--high, .risk-badge--high { color: var(--magenta-700); }
.risk-out--critical, .risk-badge--critical { color: var(--red-700); }
.risk-badge { font-weight: 700; }
.risk-pick { border: 0; padding: 0; margin: 10px 0; }
.risk-pick legend { font-weight: 600; margin-bottom: 6px; }
.marking-hint { border-left: 4px solid var(--magenta-600); background: var(--magenta-100); padding: 10px 14px; border-radius: 4px; margin: 10px 0; font-size: .9rem; }
.marking-hint p { margin: 0 0 6px; } .marking-hint ul { margin: 0 0 8px; padding-left: 18px; }
.callout--danger { background: var(--red-100); color: var(--red-700); border-left: 4px solid var(--red-700); display: block; }
.callout--warn { background: var(--amber-100); color: var(--amber-700); border-left: 4px solid var(--amber-700); display: block; }
.chip-btn--quiet { border-color: var(--grey-300); color: var(--grey-600); }
.chip-btn[aria-pressed="true"] { background: var(--blue-600); color: var(--white); }
.fb-row { display: inline-flex; gap: 6px; margin-left: 6px; }
.media-thumb img { display: block; max-width: 100%; max-height: 220px; border-radius: 6px; border: 1px solid var(--grey-200); margin-bottom: 4px; }
.media-player { display: block; width: 100%; max-height: 260px; margin-bottom: 4px; background: var(--navy-950); border-radius: 6px; }
audio.media-player { background: transparent; }
.langs { margin: 6px 0 0; color: var(--grey-600); }
.seen-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--grey-150); }
.seen-list .ok, .ok { color: var(--green-700); font-weight: 600; }
.tag--accent { background: var(--magenta-100); color: var(--magenta-700); }
.tag--warn { background: var(--amber-100); color: var(--amber-700); }
.coords { margin: -4px 0 12px; font-size: .92rem; }
.coords summary { cursor: pointer; color: var(--blue-600); }
.btn--small { min-height: 28px; padding: 0 10px; font-size: .82rem; }
.dictate { margin-top: 4px; }
.dictate.is-on { border-color: var(--magenta-600); color: var(--magenta-700); }
form.inline { display: inline; }
.feedback-form .radio-row { display: flex; gap: 16px; align-items: center; border: 0; padding: 0; margin: 0 0 8px; }
.feedback-form .radio-row legend { float: left; margin-right: 12px; font-weight: 600; }
.wizard { max-width: 760px; }
.wizard__steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.wizard__steps li { flex: 1 1 100px; height: 6px; border-radius: 3px; background: var(--grey-200); }
.wizard__steps li.is-done { background: var(--blue-400); }
.wizard__steps li.is-now { background: var(--magenta-600); }
.wizard__q { font: 600 1.3rem/1.3 var(--font-display); color: var(--navy-900); margin: 0 0 6px; }
.wizard fieldset[hidden] { display: none; }
.check-table td, .check-table th { vertical-align: top; }
.badge--ok { background: var(--green-100); color: var(--green-700); }
.badge--warn { background: var(--amber-100); color: var(--amber-700); }
.badge--bad { background: var(--red-100); color: var(--red-700); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--grey-300); vertical-align: middle; }
.status-dot--ok { background: #2e9d57; } .status-dot--warn { background: #d99a00; } .status-dot--bad { background: var(--red-700); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpis > div, .kpis > a { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 12px 14px; text-decoration: none; color: var(--grey-800); display: grid; }
.kpis strong { font: 700 1.6rem/1.1 var(--font-display); color: var(--navy-900); }
.kpis span { font-size: .82rem; color: var(--grey-600); }
.wordcloud { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; line-height: 1.1; }
.wordcloud a { text-decoration: none; color: var(--navy-800); font-family: var(--font-display); font-weight: 600; }
.wordcloud a:hover { color: var(--magenta-600); }
.wc-1 { font-size: .85rem; opacity: .75; } .wc-2 { font-size: 1rem; } .wc-3 { font-size: 1.25rem; } .wc-4 { font-size: 1.6rem; color: var(--blue-600) !important; } .wc-5 { font-size: 2rem; color: var(--magenta-700) !important; }
.netgraph { width: 100%; height: auto; max-height: 620px; background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; }
.netgraph line { stroke: var(--grey-300); }
.netgraph .ng-node circle { stroke: var(--white); stroke-width: 1.5; }
.netgraph .ng-entry circle { fill: var(--blue-400); }
.netgraph .ng-term circle { fill: var(--magenta-600); }
.netgraph .ng-org circle { fill: var(--amber-700); }
.netgraph text { font: 10px var(--font-text); fill: var(--grey-800); }
.netgraph a:hover circle { stroke: var(--navy-900); stroke-width: 2; }
.cluster { border-left: 4px solid var(--blue-400); padding: 4px 0 4px 14px; margin-bottom: 16px; }
.cluster h3 { margin-bottom: 4px; font-size: 1.05rem; }
.timeline-bar { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--grey-300); padding-top: 8px; }
.timeline-bar span { flex: 1; background: var(--blue-400); border-radius: 2px 2px 0 0; min-height: 1px; position: relative; }
.timeline-bar span:hover { background: var(--magenta-600); }
.annot mark { padding: 0 2px; border-radius: 2px; }
.code-chip { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; color: var(--white); background: var(--blue-500); }
.code-chip--green { background: #2e9d57; } .code-chip--amber { background: #c98a00; } .code-chip--magenta { background: var(--magenta-600); } .code-chip--navy { background: var(--navy-700); } .code-chip--red { background: var(--red-700); } .code-chip--teal { background: #11817a; }
.suggest-box { position: relative; }
.suggest-list { position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px; list-style: none; background: var(--white); border: 1px solid var(--grey-200); border-radius: 6px; box-shadow: 0 8px 20px rgba(8, 26, 58, .14); }
.suggest-list li a, .suggest-list li button { display: block; width: 100%; text-align: left; padding: 6px 10px; border: 0; background: none; font: inherit; color: var(--navy-800); text-decoration: none; border-radius: 4px; cursor: pointer; }
.suggest-list li a:hover, .suggest-list li button:hover, .suggest-list li .is-active { background: var(--grey-100); }
.suggest-list small { color: var(--grey-500); margin-left: 6px; }
.help-tip { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--sky-100); color: var(--blue-600); font: 700 .72rem var(--font-text); cursor: help; text-decoration: none; vertical-align: middle; margin-left: 4px; }
.prompt-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(5, 15, 36, .55); padding: 16px; }
.prompt-modal__box { background: var(--white); border-radius: 10px; max-width: 560px; width: 100%; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.prompt-modal__box h2 { margin-bottom: 10px; }
.prompt-modal__box ul { margin: 0 0 14px; padding-left: 18px; }
.prompt-modal[hidden] { display: none; }
.announce { border-left: 4px solid var(--blue-600); background: var(--white); padding: 12px 16px; border-radius: 6px; margin-bottom: 10px; }
.announce--campaign { border-left-color: var(--magenta-600); background: linear-gradient(90deg, var(--magenta-100), var(--white) 60%); }
.announce--announcement { border-left-color: var(--amber-700); }
.announce h3 { margin-bottom: 4px; font-size: 1.05rem; }
.announce p { margin: 0 0 4px; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.health-grid > div { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 12px 14px; }
pre.code { background: var(--navy-950); color: #d8e6ff; padding: 12px 14px; border-radius: 6px; overflow: auto; font-size: .82rem; max-height: 420px; }
.req-table td:first-child { white-space: nowrap; font-family: var(--font-mono); font-size: .8rem; }
.pill--full { background: var(--green-100); color: var(--green-700); }
.pill--partial { background: var(--amber-100); color: var(--amber-700); }
.pill--none { background: var(--red-100); color: var(--red-700); }
@media (max-width: 640px) {
  .field--row { grid-template-columns: 1fr; gap: 2px; }
  .menu__list, .menu__panel { right: auto; left: 0; }
  .dims--tree { columns: 1; }
}

/* 0.7 analysis and knowledge */
.timeline-bar span.h-0 { height: 1px; }
.timeline-bar span.h-5 { height: 5%; }
.timeline-bar span.h-10 { height: 10%; }
.timeline-bar span.h-15 { height: 15%; }
.timeline-bar span.h-20 { height: 20%; }
.timeline-bar span.h-25 { height: 25%; }
.timeline-bar span.h-30 { height: 30%; }
.timeline-bar span.h-35 { height: 35%; }
.timeline-bar span.h-40 { height: 40%; }
.timeline-bar span.h-45 { height: 45%; }
.timeline-bar span.h-50 { height: 50%; }
.timeline-bar span.h-55 { height: 55%; }
.timeline-bar span.h-60 { height: 60%; }
.timeline-bar span.h-65 { height: 65%; }
.timeline-bar span.h-70 { height: 70%; }
.timeline-bar span.h-75 { height: 75%; }
.timeline-bar span.h-80 { height: 80%; }
.timeline-bar span.h-85 { height: 85%; }
.timeline-bar span.h-90 { height: 90%; }
.timeline-bar span.h-95 { height: 95%; }
.timeline-bar span.h-100 { height: 100%; }
.glossary dt { font-weight: 600; margin-top: 12px; color: var(--navy-900); }
.glossary dd { margin: 2px 0 0; }
abbr[title] { text-decoration: underline dotted var(--blue-400); cursor: help; }
.option { border-left: 3px solid #2e9d57; padding: 2px 0 2px 12px; margin-bottom: 12px; }
.quote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--grey-300); color: var(--grey-800); background: var(--grey-100); border-radius: 0 6px 6px 0; }
.annot { margin-bottom: 12px; }
.annot mark { background: #fff1b8; }
.comment--accepted { border-left: 3px solid #2e9d57; padding-left: 10px; }
.input--narrow { width: 5rem; }
.text-warn { color: var(--red-700); }
.row--current { background: var(--sky-100); }
.panel--accent { border-top: 3px solid #2e9d57; }
.top__fav { display: inline; margin: 0; }
.top__fav button { background: none; border: 0; font-size: 1.25rem; line-height: 1; color: var(--amber-700); cursor: pointer; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--grey-150); }
.announce--spotlight { border-left-color: #2e9d57; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; font-size: .9rem; }
.map-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
code.token { word-break: break-all; font-size: .95rem; background: var(--grey-100); padding: 4px 8px; border-radius: 4px; }
.login-alt { margin-top: 16px; display: grid; gap: 8px; text-align: center; }
.stackbar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--grey-150); }
.stackbar span { display: block; height: 100%; }
.stackbar__f { background: #2e9d57; } .stackbar__p { background: #d99a00; } .stackbar__n { background: var(--red-700); }
.bars--stack th { width: 40%; }
.req-table td:first-child { white-space: normal; font-family: inherit; font-size: inherit; min-width: 240px; max-width: 360px; }
.req-table td:nth-child(2) { min-width: 260px; }

/* ---------- Two-level navigation: areas on top, pages of the area at the side ---------- */
.topnav { display: flex; gap: 2px; padding: 0 clamp(16px, 3vw, 40px); background: var(--white); border-bottom: 1px solid var(--grey-200); overflow-x: auto; scrollbar-width: thin; position: sticky; top: 0; z-index: 20; }
.topnav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 11px 14px 10px; color: var(--grey-600); text-decoration: none; font-weight: 600; font-size: .93rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.topnav a:hover { color: var(--navy-900); background: var(--grey-100); }
.topnav a[aria-current="true"] { color: var(--navy-900); border-bottom-color: var(--blue-600); }
.topnav a:focus-visible { outline: 3px solid var(--blue-400); outline-offset: -3px; }
.topnav__badge { min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--magenta-600); color: var(--white); font-size: .72rem; text-align: center; }
.side .side__group:first-child { margin-top: 4px; }
.side__all { display: grid; gap: 0; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(143, 208, 247, .15); }
.side__all a { display: flex; justify-content: space-between; padding: 5px 12px; color: #8fa3c2; text-decoration: none; font-size: .85rem; border-radius: var(--radius); }
.side__all a:hover { color: var(--white); background: rgba(143, 208, 247, .1); }
.side__all .side__group { font-size: .8rem; margin: 4px 12px; color: #6f84a6; }
@media (max-width: 900px) {
  .topnav { padding: 0 8px; }
  .topnav a { padding: 10px 10px 9px; font-size: .88rem; }
}

/* ---------- Data migration ---------- */
.callout--history { background: #f3efe6; border-left: 4px solid #8a6d3b; color: #4a3b1f; }
.tag--history { background: #f3efe6; color: #6b5427; }
.mig-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.mig-steps div { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 10px 12px; font-size: .9rem; color: var(--grey-700); }
.mig-steps span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--blue-600); color: var(--white); font-weight: 700; font-size: .8rem; }
.mig-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; align-items: start; }
.mig-cards .panel { margin: 0; }
.mig-card h2 { font-size: 1.15rem; }
.mig-opts { margin: 4px 0 12px; font-size: .9rem; }
.mig-opts summary { cursor: pointer; color: var(--blue-600); }
.mig-opts .grid { margin-top: 10px; }
.mig-report { max-height: 520px; overflow: auto; }
.mig-actions { position: sticky; bottom: 0; background: var(--grey-50, #f6f8fb); padding: 12px 0; border-top: 1px solid var(--grey-200); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
form.is-busy button[type="submit"] { opacity: .6; pointer-events: none; }
.busy-note { font-size: .9rem; color: var(--blue-600); margin-left: 8px; }
@media (min-width: 901px) { .side__all { display: none; } }
@media (max-width: 1100px) { .mig-cards { grid-template-columns: 1fr; } .mig-steps { grid-template-columns: 1fr 1fr; } }

/* ---------- Menus as buttons (0.7.2) ---------- */
.nav-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Top menu: one button per area */
.topnav { gap: 8px; padding-top: 10px; padding-bottom: 10px; align-items: center; }
.topnav a.topbtn { gap: 8px; padding: 8px 14px; border: 1px solid var(--grey-200); border-radius: 10px; background: var(--grey-100); color: var(--navy-800); font-size: .9rem; border-bottom-width: 1px; box-shadow: 0 1px 0 rgba(8, 26, 58, .04); transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.topnav a.topbtn:hover { background: var(--white); border-color: var(--blue-400); color: var(--blue-600); box-shadow: 0 2px 8px rgba(8, 26, 58, .08); }
.topnav a.topbtn[aria-current="true"] { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); box-shadow: 0 2px 10px rgba(30, 90, 200, .3); }
.topnav a.topbtn[aria-current="true"] .topnav__badge { background: var(--white); color: var(--magenta-600); }
/* Side menu: full-width buttons for the pages of the area */
.side__nav { gap: 6px; }
.side__nav a.navbtn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(143, 208, 247, .06); border: 1px solid rgba(143, 208, 247, .12); color: #dbe6f6; font-weight: 500; font-size: .93rem; justify-content: flex-start; transition: background .15s, border-color .15s; }
.side__nav a.navbtn .nav-ico { color: var(--sky-300); }
.side__nav a.navbtn:hover { background: rgba(143, 208, 247, .16); border-color: rgba(143, 208, 247, .35); color: var(--white); }
.side__nav a.navbtn[aria-current="page"] { background: var(--blue-600); border-color: var(--blue-400); color: var(--white); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.side__nav a.navbtn[aria-current="page"] .nav-ico { color: var(--white); }
.navbtn__label { flex: 1; min-width: 0; line-height: 1.25; }
.navbtn__badge { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--magenta-600); color: var(--white); font-size: .75rem; font-weight: 600; text-align: center; }
.side__nav a.navbtn:focus-visible, .topnav a.topbtn:focus-visible, .side__all a.navbtn:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.side__group { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.side__all { gap: 4px; }
.side__all a.navbtn { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #b9c7dc; font-size: .87rem; }
.side__all a.navbtn .nav-ico { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .topnav { gap: 6px; padding: 8px; }
  .topnav a.topbtn { padding: 7px 11px; font-size: .86rem; }
}
@media (max-width: 480px) {
  .topnav a.topbtn span:not(.topnav__badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topnav a.topbtn[aria-current="true"] span { position: static; width: auto; height: auto; clip: auto; }
}
@media (min-width: 901px) {
  .topnav { flex-wrap: wrap; overflow: visible; gap: 5px; padding-left: clamp(16px, 2vw, 40px); padding-right: clamp(16px, 2vw, 40px); }
  .topnav a.topbtn { padding: 6px 10px; gap: 6px; font-size: .86rem; }
  .topnav a.topbtn .nav-ico { width: 18px; height: 18px; }
}
@media (min-width: 901px) and (max-width: 1400px) {
  .topnav { gap: 4px; }
  .topnav a.topbtn { padding: 6px 7px; gap: 5px; }
}
@media (min-width: 901px) and (max-width: 1300px) {
  .topnav a.topbtn .nav-ico { display: none; }
  .topnav a.topbtn { padding: 6px 9px; }
}

/* ---------- Releasable versions (0.8) ---------- */
.redacted { display: inline-block; min-width: 4.5em; height: 1.05em; margin: 0 2px; vertical-align: -0.15em; background: #111; border-radius: 2px; cursor: help; }
.rel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.rel-field__head { display: flex; justify-content: space-between; align-items: end; gap: 8px; flex-wrap: wrap; }
.rel-tools { display: inline-flex; gap: 6px; align-items: center; }
.rel-tools select { padding: 4px 6px; font-size: .85rem; }
.btn--dark { background: #111; color: #fff; border-color: #111; }
.btn--dark:hover { background: #333; }
.rel-preview { margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--grey-300); border-radius: 6px; background: var(--white); font-size: .9rem; white-space: pre-wrap; max-height: 220px; overflow: auto; }
.rel-side .panel { margin-bottom: 14px; }
.rel-suggest li { padding: 4px 0; border-bottom: 1px solid var(--grey-150); font-size: .9rem; }
.rel-suggest mark { background: #fde68a; }
.checklist { margin: 0; padding-left: 1.1em; font-size: .9rem; }
.checklist--bad li { color: var(--red-700); }
.text-ok { color: #1f7a3f; }
.rel-doc .prose { margin-bottom: 14px; }
@media (max-width: 1100px) { .rel-layout { grid-template-columns: 1fr; } }
.rel-tools select { width: auto; min-height: 0; height: 32px; padding: 2px 8px; font-size: .85rem; }
.rel-tools .btn { white-space: nowrap; height: 32px; }
.rel-field { margin-bottom: 18px; }
.rel-field__head label { margin-bottom: 0; }

/* ---------- Implementation and closure (0.8) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0 0 8px; padding: 0; counter-reset: none; }
.pipeline__step a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--grey-200); background: var(--white); text-decoration: none; color: var(--navy-900); height: 100%; }
.pipeline__step a strong { font-size: 1.5rem; }
.pipeline__step a span { font-size: .82rem; color: var(--grey-600); }
.pipeline__step a[aria-current="true"] { outline: 3px solid var(--blue-400); }
.pipeline__step--blue a { border-top: 4px solid var(--blue-600); } .pipeline__step--amber a { border-top: 4px solid #d99a00; }
.pipeline__step--green a { border-top: 4px solid #2e9d57; } .pipeline__step--red a { border-top: 4px solid var(--red-700); } .pipeline__step--grey a { border-top: 4px solid var(--grey-300); }
.pill--red { background: #fde2e2; color: var(--red-700); }
.panel--warn { border-top: 3px solid #d99a00; }
.closure-item { border-left: 4px solid var(--grey-300); padding: 4px 0 4px 12px; margin-bottom: 14px; }
.closure-item--green { border-left-color: #2e9d57; } .closure-item--red { border-left-color: var(--red-700); } .closure-item--blue { border-left-color: var(--blue-600); } .closure-item--amber { border-left-color: #d99a00; }
.closure-new > summary { list-style: none; display: inline-flex; margin: 6px 0 10px; }
.closure-new > summary::-webkit-details-marker { display: none; }
@media (max-width: 1000px) { .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Federated search (0.8) ---------- */
.fed-toggle { margin: 8px 0 0; }
.fed-panel { border-left: 4px solid var(--magenta-600); }
.fed-source { margin-bottom: 12px; }
.fed-source h3 { margin: 0 0 6px; }
.fed-items li { padding: 6px 0; border-bottom: 1px solid var(--grey-150); }

/* Lessons boards */
.board-agenda { padding-left: 1.4em; margin: 0; }
.bagenda__item { display: block; padding: 12px 0; border-bottom: 1px solid var(--grey-150, #e5e7eb); }
.bagenda__item:last-child { border-bottom: 0; }
.bagenda__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.bagenda__decide { display: grid; max-width: 760px; grid-template-columns: minmax(200px, 320px) 1fr; gap: 8px 12px; align-items: start; }
.bagenda__decide textarea { grid-column: 1 / -1; }
.bagenda__decide label.small { display: flex; gap: 6px; align-items: center; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mark-line { margin: 0 0 4px; }
@media (max-width: 700px) { .bagenda__decide { grid-template-columns: 1fr; } }

/* Briefing packs */
.brief-list { padding-left: 1.4em; }
.brief { padding: 14px 0; border-bottom: 1px solid var(--grey-150, #e5e7eb); }
.brief__title { font-size: 1.1rem; margin: 0 0 2px; }
.brief p { margin: 4px 0; }
.checks--inline { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cols--tight { gap: 12px; }
.brief__note { background: var(--amber-100, #fff4d6); padding: 6px 10px; border-radius: 6px; }

/* Ask the lessons */
.ask-form textarea { font-size: 1.05rem; }
.ask-form { margin-bottom: 20px; }
.ask-answer .prose li { margin-bottom: 6px; }
a.cite { text-decoration: none; font-weight: 600; font-size: .85em; vertical-align: super; }
.ask-sources li { margin-bottom: 4px; }

/* Collection coverage */
.day-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.day-bars li { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 8px; }
.day-bars__bar { display: block; height: 12px; border-radius: 3px; background: var(--blue-600, #2563eb); opacity: .75; }
.req { padding: 14px 0; border-bottom: 1px solid var(--grey-150, #e5e7eb); }
.req:last-child { border-bottom: 0; }
.req__title { font-size: 1.05rem; margin: 0 0 4px; }
.req__links li { padding: 3px 0; }
.req__sug { opacity: .85; }
.req__link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.req__link label { font-weight: 400; color: var(--cds-text-secondary, #555); margin: 0; }
.req__link input[name=ref] { width: 180px; padding: 4px 8px; }

/* Lessons portfolio heatmap */
.heatmap { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .92rem; }
.heatmap th { font-weight: 600; text-align: left; padding: 4px 8px; white-space: nowrap; }
.heatmap thead th { text-align: center; }
.heatmap td { text-align: center; padding: 8px 4px; border-radius: 4px; min-width: 44px; }
.heatmap td a { display: block; color: inherit; text-decoration: none; font-weight: 600; }
.heatmap__tot { color: var(--cds-text-secondary, #555); font-weight: 600; }
.heat-0 { background: transparent; border: 1px solid var(--grey-150, #e5e7eb); }
.heat-1 { background: rgba(37, 99, 235, .10); }
.heat-2 { background: rgba(37, 99, 235, .22); }
.heat-3 { background: rgba(37, 99, 235, .38); }
.heat-4 { background: rgba(37, 99, 235, .58); color: #fff; }
.heat-5 { background: rgba(37, 99, 235, .80); color: #fff; }
.persist li { margin-bottom: 12px; }
.inline-select { display: flex; gap: 6px; align-items: center; }
.inline-select select { max-width: 200px; padding: 4px 6px; }

/* Research intake */
.rs-list { margin: 0 0 12px; }
.rs-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--grey-150); }
.rs-item:last-child { border-bottom: 0; }
.rs-item__pick input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--blue-600); }
.rs-item__title { font-size: 1.05rem; margin: 0 0 4px; line-height: 1.3; }
.rs-item__title a { text-decoration: none; }
.rs-item__title a:hover { text-decoration: underline; }
.rs-item p { margin: 0 0 4px; }
.rs-item .mark-pill { margin-right: 4px; }
.rs-status li { padding: 2px 0; }
.sel-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.sel-pick legend { font-weight: 600; font-size: .92rem; color: var(--navy-900); margin-bottom: 4px; padding: 0; }
.sel-pick__row { display: grid; grid-template-columns: minmax(200px, auto) minmax(0, 1fr); gap: 10px; align-items: center; }
.sel-pick__row .check { margin: 0; }
.rs-matrix th[scope=row] { white-space: normal; min-width: 240px; font-weight: 500; }
.rs-matrix td { font-weight: 700; font-size: 1rem; }
.rel--supports { background: var(--green-100); color: var(--green-700); }
.rel--extends { background: #dbe7fc; color: var(--blue-600); }
.rel--contradicts { background: var(--amber-100); color: var(--amber-700); }
.rel--related { background: var(--grey-100); color: var(--grey-500); }
.rs-obs { padding: 14px 0; border-bottom: 1px solid var(--grey-150); }
.rs-obs:last-child { border-bottom: 0; }
.rs-obs h3 { margin: 0 0 8px; }
.rs-link { margin: 0 0 12px 0; padding: 8px 0 8px 14px; border-left: 3px solid var(--grey-200); }
.rs-link--supports { border-left-color: var(--green-700); }
.rs-link--extends { border-left-color: var(--blue-500); }
.rs-link--contradicts { border-left-color: var(--amber-700); }
.rs-link p { margin: 0 0 6px; }
.rs-ev { margin: 6px 0; padding: 8px 12px; background: var(--grey-100); border-radius: 4px; }
.rs-ev p { margin: 0 0 4px; }
@media (max-width: 640px) { .sel-pick__row { grid-template-columns: 1fr; } }
.rs-decide { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.rs-decide select { width: auto; min-height: 32px; padding: 3px 8px; font-size: .85rem; }
.rs-src { border: 0; padding: 0; margin: 0; }
.rs-src legend { font-weight: 600; font-size: .92rem; color: var(--navy-900); margin-bottom: 6px; padding: 0; }

/* Lessons agent */
.ag-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.ag-side { position: sticky; top: 16px; }
.btn--block { display: block; width: 100%; text-align: center; }
.ag-convs { margin: 14px 0; }
.ag-convs li { padding: 7px 8px; border-radius: 4px; line-height: 1.3; }
.ag-convs li a { display: block; text-decoration: none; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-convs li.is-current { background: var(--grey-100); }
.ag-thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.ag-msg { display: flex; }
.ag-msg--user { justify-content: flex-end; }
.ag-msg--user .ag-bubble { background: var(--navy-900); color: #fff; border-radius: 12px 12px 2px 12px; max-width: 78%; padding: 10px 14px; white-space: normal; }
.ag-msg--agent .ag-bubble { background: #fff; border: 1px solid var(--grey-200); border-radius: 12px 12px 12px 2px; width: 100%; padding: 14px 18px; }
.ag-meta { font-size: .8rem; color: var(--grey-500); margin: 0 0 8px; }
.ag-progress { color: var(--grey-500); margin: 0; display: flex; align-items: center; gap: 8px; }
.ag-text h4 { margin: 12px 0 6px; font-size: 1rem; }
.ag-text p { margin: 0 0 8px; }
.ag-text ul, .ag-text ol { margin: 0 0 8px 20px; padding: 0; }
.ag-text li { margin-bottom: 4px; }
.ag-text .table-wrap { margin: 8px 0; }
.cite { font-size: .78em; vertical-align: super; text-decoration: none; padding: 0 1px; font-weight: 600; }
.ag-sources { margin-top: 10px; border-top: 1px solid var(--grey-150); padding-top: 8px; }
.ag-sources summary { cursor: pointer; font-size: .85rem; color: var(--grey-600); }
.ag-sources li { padding: 3px 0; }
.ag-sources li:target { background: #fff7d6; }
.ag-n { display: inline-block; min-width: 2em; font-weight: 600; color: var(--grey-600); }
.ag-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ag-fb[open] { flex-basis: 100%; }
.ag-fb form { margin-top: 8px; padding: 12px; background: var(--grey-100); border-radius: 6px; }
.ag-rate { display: flex; gap: 16px; margin-bottom: 8px; }
.ag-compose { background: var(--canvas); padding: 12px 0 4px; border-top: 1px solid var(--grey-200); }
.ag-compose textarea { width: 100%; min-height: 80px; resize: vertical; }
.ag-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ag-mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ag-mode span { display: inline-block; padding: 5px 12px; border: 1px solid var(--grey-300, #c6ccd4); border-radius: 999px; font-size: .85rem; cursor: pointer; background: #fff; }
.ag-mode input:checked + span { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.ag-mode input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.ag-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.ag-bar .btn { margin-left: auto; }
.ag-empty { padding: 8px 0; }
.ag-tries li { margin: 4px 0; }
.ag-review { border-bottom: 1px solid var(--grey-150); padding: 12px 0; }
.ag-review:last-child { border-bottom: 0; }
.ag-term { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.ag-term input { flex: 1 1 160px; }
.ag-gloss { columns: 2; column-gap: 24px; }
.ag-gloss li { break-inside: avoid; padding: 2px 0; }
.ag-teach li { margin-bottom: 6px; }
@media (max-width: 900px) { .ag-layout { grid-template-columns: 1fr; } .ag-side { position: static; } .ag-gloss { columns: 1; } }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--grey-300); border-top-color: var(--navy-800); border-radius: 50%; animation: ag-spin .8s linear infinite; }
@keyframes ag-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.ag-bar select { width: auto; min-height: 36px; padding: 4px 10px; } .ag-bar .small.muted { flex: 1 1 260px; }

/* Knowledge base */
.kb-bar { height: 10px; background: var(--grey-150); border-radius: 5px; overflow: hidden; margin: 8px 0; }
.kb-bar span { display: block; height: 100%; background: var(--blue-500); }
