/* ContextLedger UI skin v2.
   Scope: visual ergonomics only. This stylesheet does not change authentication,
   API keys, contracts, links or server behaviour. */

@font-face {
  font-family: 'ContextLedger Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Graph galaxy v35: full-viewport, volume-scaled graph exploration. */
body.projects-galaxy-page {
  padding-bottom: 0 !important;
  background: #030916 !important;
}

body.projects-galaxy-page > main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.projects-galaxy-page > header + nav {
  margin-bottom: 0 !important;
}

body.dashboard-page .projects-universe {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--galaxy-viewport-height, calc(100dvh - 228px));
  min-height: 560px;
  gap: 0;
  overflow: hidden;
  background: #030916;
}

body.dashboard-page .projects-universe-head {
  display: grid;
  grid-template-columns: max-content minmax(280px, 1fr) max-content;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(128, 190, 215, .16);
  background: #07152f;
}

body.dashboard-page .universe-kicker,
body.dashboard-page .projects-universe-head p { display: none; }

body.dashboard-page .projects-universe-head h1 {
  margin: 0;
  color: #f5f9fc;
  font-family: var(--font-body);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}

body.dashboard-page .projects-universe-actions,
body.dashboard-page .view-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.dashboard-page .view-switch {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.dashboard-page .view-switch button {
  min-width: 96px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(132, 195, 218, .30);
  border-radius: 2px;
  background: rgba(255, 255, 255, .07);
  color: #e9f5fa;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

body.dashboard-page .view-switch button.active {
  background: rgba(82, 215, 223, .16);
  color: #fff;
  border-color: rgba(82, 215, 223, .58);
  box-shadow: none;
}

body.dashboard-page .galaxy-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #050d20;
  box-shadow: none;
}

body.dashboard-page .galaxy-toolbar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(280px, 560px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  min-height: 62px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(128, 190, 215, .18);
  background: #081a35;
}

body.dashboard-page .galaxy-search {
  display: block;
  min-width: 0;
  color: #94b7ca;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body.dashboard-page .galaxy-search input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(132, 195, 218, .28);
  border-radius: 2px;
  background: rgba(4, 14, 34, .72);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}

body.dashboard-page .galaxy-search input:focus {
  border-color: #20d3d8;
  box-shadow: 0 0 0 3px rgba(32, 211, 216, .14);
}

body.dashboard-page .galaxy-toolbar .btn {
  border-color: rgba(132, 195, 218, .30) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #e9fbff !important;
}

body.dashboard-page .galaxy-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  isolation: isolate;
  background: linear-gradient(145deg, #07152f, #030916 66%);
}

body.dashboard-page #projectsGalaxyCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  outline: none;
}

body.dashboard-page #projectsGalaxyCanvas:active { cursor: grabbing; }
body.dashboard-page #projectsGalaxyCanvas.edge-hover { cursor: help; }
body.dashboard-page #projectsGalaxyCanvas:focus-visible { box-shadow: inset 0 0 0 3px #20d3d8; }

body.dashboard-page .galaxy-edge-tooltip {
  position: absolute;
  z-index: 5;
  width: min(310px, calc(100% - 24px));
  padding: 14px 15px;
  border: 1px solid rgba(107, 230, 220, .38);
  border-radius: 10px;
  background: rgba(5, 18, 40, .96);
  color: #f7fbff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px);
  pointer-events: none;
  animation: galaxy-edge-tooltip-in .16s ease-out both;
}

body.dashboard-page .galaxy-edge-tooltip[hidden] { display: none; }

body.dashboard-page .galaxy-edge-tooltip-type {
  display: block;
  margin-bottom: 8px;
  color: #6be6dc;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.dashboard-page .galaxy-edge-tooltip-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 13px;
  line-height: 1.25;
}

body.dashboard-page .galaxy-edge-tooltip-pair strong {
  overflow-wrap: anywhere;
}

body.dashboard-page .galaxy-edge-tooltip-pair span { color: #6be6dc; }

body.dashboard-page .galaxy-edge-tooltip p {
  margin: 9px 0 0;
  color: #aebfce;
  font-size: 11px;
  line-height: 1.4;
}

body.dashboard-page .galaxy-edge-tooltip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

body.dashboard-page .galaxy-edge-tooltip-tags span {
  padding: 3px 7px;
  border: 1px solid rgba(107, 230, 220, .24);
  border-radius: 999px;
  color: #c9f7f2;
  font-size: 10px;
  line-height: 1.2;
}

@keyframes galaxy-edge-tooltip-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

body.dashboard-page .galaxy-depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.dashboard-page .galaxy-depth { display: none; }

body.dashboard-page .galaxy-depth span {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(79, 178, 205, .08);
  border-radius: 50%;
  transform: rotateX(64deg);
}

body.dashboard-page .galaxy-depth span:nth-child(1) { left: 8%; top: 10%; }
body.dashboard-page .galaxy-depth span:nth-child(2) { left: 34%; top: 32%; width: 620px; height: 620px; }
body.dashboard-page .galaxy-depth span:nth-child(3) { right: -10%; bottom: -24%; width: 540px; height: 540px; }

body.dashboard-page .galaxy-detail {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: min(360px, calc(100% - 36px));
  max-height: calc(100% - 100px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(138, 210, 224, .24);
  border-radius: 12px;
  background: rgba(6, 19, 43, .88);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
}

body.dashboard-page .galaxy-detail-type {
  color: #6be6dc;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.dashboard-page .galaxy-detail h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

body.dashboard-page .galaxy-detail p {
  margin: 0;
  color: #b8cad8;
  font-size: 13px;
  line-height: 1.55;
}

body.dashboard-page .galaxy-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 18px;
}

body.dashboard-page .galaxy-detail-stats > div {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(132, 195, 218, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  text-align: right;
}

body.dashboard-page .galaxy-detail-stats span {
  display: block;
  overflow: hidden;
  color: #8eacbd;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

body.dashboard-page .galaxy-detail-stats b {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
}

body.dashboard-page .galaxy-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

body.dashboard-page .galaxy-detail-tags span {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid rgba(107, 230, 220, .24);
  border-radius: 999px;
  color: #aaf3ec;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dashboard-page .galaxy-detail .galaxy-open {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

body.dashboard-page .galaxy-legend,
body.dashboard-page .galaxy-instructions {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(132, 195, 218, .16);
  border-radius: 9px;
  background: rgba(4, 14, 34, .72);
  color: #a9c1cf;
  font-size: 10px;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

body.dashboard-page .galaxy-legend { left: 16px; bottom: 16px; padding: 10px 12px; }
body.dashboard-page .galaxy-instructions { right: 16px; bottom: 16px; padding: 8px 11px; }
body.dashboard-page .galaxy-legend span,
body.dashboard-page .galaxy-instructions span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
body.dashboard-page .galaxy-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #20d3d8; box-shadow: none; }
body.dashboard-page .galaxy-legend i.planet { width: 7px; height: 7px; background: #ffb44a; }
body.dashboard-page .galaxy-legend i.moon { width: 5px; height: 5px; background: #79e6d2; }
body.dashboard-page .galaxy-legend i.force { width: 22px; height: 2px; border-radius: 0; background: linear-gradient(90deg, transparent, #35d3d6, transparent); }

body.dashboard-page .projects-list-view > .card { margin: 0; }

body.dashboard-page .projects-universe.list-mode {
  height: auto;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

body.dashboard-page .projects-universe.list-mode .projects-universe-head {
  grid-template-columns: 1fr;
  min-height: 58px;
  border-bottom-color: var(--line);
  background: var(--surface);
}

body.dashboard-page .projects-universe.list-mode .projects-universe-head h1,
body.dashboard-page .projects-universe.list-mode .galaxy-search,
body.dashboard-page .projects-universe.list-mode #galaxyReset {
  display: none;
}

body.dashboard-page .projects-universe.list-mode .projects-universe-actions {
  justify-content: flex-end;
}

body.dashboard-page .projects-universe.list-mode .view-switch button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

body.dashboard-page .projects-universe.list-mode .view-switch button.active {
  border-color: #20cbd3;
  background: #eafcfc;
  color: var(--navy);
}

body.dashboard-page .galaxy-view.list-mode {
  flex: 0 0 auto;
}

body.dashboard-page .galaxy-view.list-mode .galaxy-toolbar,
body.dashboard-page .galaxy-view.list-mode .galaxy-stage { display: none; }

@media (max-width: 900px) {
  body.dashboard-page .projects-universe-head { grid-template-columns: 1fr; align-items: stretch; }
  body.dashboard-page .projects-universe-actions { justify-content: space-between; }
  body.dashboard-page .projects-universe { height: auto; min-height: calc(100dvh - 190px); }
  body.dashboard-page .galaxy-stage { min-height: 680px; }
  body.dashboard-page .galaxy-detail { top: auto; right: 12px; bottom: 58px; left: 12px; width: auto; max-height: 270px; }
  body.dashboard-page .galaxy-legend { top: 12px; bottom: auto; flex-wrap: wrap; max-width: calc(100% - 24px); }
  body.dashboard-page .galaxy-instructions { display: none; }
}

@media (max-width: 620px) {
  body.dashboard-page .projects-universe-actions { align-items: stretch; flex-direction: column; }
  body.dashboard-page .view-switch button { flex: 1; min-width: 0; }
  body.dashboard-page .galaxy-toolbar { grid-template-columns: 1fr; }
  body.dashboard-page .galaxy-toolbar .btn { width: 100%; }
  body.dashboard-page .galaxy-stage { min-height: 620px; }
  body.dashboard-page .galaxy-legend { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard-page .view-switch button { transition: none !important; }
}
@font-face {
  font-family: 'ContextLedger Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'ContextLedger Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'ContextLedger Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'ContextLedger Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'ContextLedger Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'ContextLedger Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/source-sans-3-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'ContextLedger Display';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'ContextLedger Display';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'ContextLedger Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'ContextLedger Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'ContextLedger Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'ContextLedger Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'ContextLedger Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'ContextLedger Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #0a0f13;
  --surface: #111820;
  --surface-2: #161f28;
  --glass: rgba(255,255,255,.045);
  --ink: #eef3f2;
  --muted: #a3b0ba;
  --muted-soft: #7e8b95;
  --line: rgba(255,255,255,.09);
  --accent: #1fd9b8;
  --accent-dark: #159a85;
  --accent-2: #7be6d3;
  --accent-ink: #04211c;
  --ok: #3ecf7e;
  --ok-soft: rgba(62,207,126,.14);
  --warn: #e0a83e;
  --warn-soft: rgba(224,168,62,.14);
  --crit: #e0685a;
  --crit-soft: rgba(224,104,90,.14);
  --shadow: 0 12px 32px rgba(0,0,0,.35);
  --font-display: 'ContextLedger Display', 'ContextLedger Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'ContextLedger Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'ContextLedger Mono', 'Cascadia Mono', 'Consolas', monospace;
  --cl-page-width: 1280px;
  --cl-page-gutter: 24px;
}

* { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden !important;
}
body {
  margin: 0;
  font-family: var(--font-body) !important;
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 92% 6%, rgba(31,217,184,.16), transparent 28rem),
    linear-gradient(180deg, #0a0f13 0%, #0d1319 100%) !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  overflow-x: hidden !important;
}
body, table, th, td, a, label, span, div, p, li {
  font-family: var(--font-body) !important;
}
button, input, select, textarea {
  font-family: var(--font-body) !important;
  letter-spacing: 0 !important;
}
pre, code, kbd, samp, .mono, .code, .hash, .key, .url {
  font-family: var(--font-mono) !important;
}

* {
  scrollbar-width: thin !important;
  scrollbar-color: var(--line) transparent !important;
}
*::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}
*::-webkit-scrollbar-thumb {
  background: var(--line) !important;
  border-radius: 999px !important;
}
*::-webkit-scrollbar-track { background: transparent !important; }

:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

.topline, .brand-strip {
  height: 3px !important;
  background: var(--accent) !important;
}

body > header, header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  min-height: 60px !important;
  padding: 12px var(--cl-page-gutter) !important;
  border-bottom: 1px solid var(--line) !important;
  background: rgba(17,24,32,.94) !important;
  box-shadow: none !important;
}
.brand {
  position: relative !important;
  min-height: 42px !important;
  padding-left: 50px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 0 !important;
}
.brand img {
  display: none !important;
}
.brand::before {
  content: "CoL" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 36px !important;
  height: 36px !important;
  transform: translateY(-50%) !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  color: #06241f !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  box-shadow: 0 10px 26px rgba(31,217,184,.24) !important;
}
.brand::after {
  content: "ContextLedger" !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -.03em !important;
}
.brand .brand-subtitle,
.brand-subtitle {
  display: block !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  margin-top: 2px !important;
}
header .masthead, .masthead {
  width: min(var(--cl-page-width), calc(100vw - (var(--cl-page-gutter) * 2))) !important;
  max-width: var(--cl-page-width) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
}
.brand, .brandrow {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.brand img, .top img, .login-logo img {
  width: 240px !important;
  max-width: min(52vw, 320px) !important;
  height: auto !important;
  display: block !important;
}
.login-logo img, .login-brand img {
  width: 360px !important;
  max-width: 78vw !important;
}
.title, .header-tools, .hero-copy {
  text-align: right !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
}
.title h1, .hero-copy h1, .top h1 {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: clamp(20px, 1.55vw, 26px) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}
.title h1 *, .hero-copy h1 *, .top h1 *,
.card h2 *, .panel h2 *, .tile h3 *, .section-title *,
.navbtn *, nav a * {
  font-family: inherit !important;
}
.title p, .hero-copy p, .top div, .muted { color: var(--muted) !important; }

nav, .nav-row, .toolbar, .actions {
  width: min(var(--cl-page-width), calc(100vw - (var(--cl-page-gutter) * 2))) !important;
  max-width: var(--cl-page-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  overflow-x: hidden !important;
}
nav, .toolbar {
  padding: 0 var(--cl-page-gutter) !important;
  background: rgba(17,24,32,.94) !important;
  border-bottom: 1px solid var(--line) !important;
  align-items: center !important;
}
.navbtn, nav a, .toolbar a, .nav-row a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 12px 13px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.navbtn::before,
nav a::before,
.toolbar a::before,
.nav-row a::before {
  display: inline-flex !important;
  width: 18px !important;
  justify-content: center !important;
  color: currentColor !important;
  opacity: .9 !important;
  font-family: var(--font-mono) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
nav a[href*="view=tasks"]::before,
nav a[href*="index.aspx"]::before,
.toolbar a[href*="index.aspx"]::before { content: "▦" !important; }
nav a[href*="view=projects"]::before,
.toolbar a[href*="view=projects"]::before,
.nav-row a[href*="view=projects"]::before { content: "◇" !important; }
nav a[href*="view=users"]::before,
.toolbar a[href*="view=users"]::before,
.nav-row a[href*="view=users"]::before { content: "◎" !important; }
nav a[href*="translation-monitor"]::before,
.toolbar a[href*="translation-monitor"]::before,
.nav-row a[href*="translation-monitor"]::before { content: "⇄" !important; }
nav a[href*="mcp.aspx"]::before,
.toolbar a[href*="mcp.aspx"]::before,
.nav-row a[href*="mcp.aspx"]::before,
nav a[href*="mcp-content.aspx"]::before,
.toolbar a[href*="mcp-content.aspx"]::before,
.nav-row a[href*="mcp-content.aspx"]::before { content: "▣" !important; }
nav a[href*="organization"]::before,
.toolbar a[href*="organization"]::before,
.nav-row a[href*="organization"]::before { content: "⌂" !important; }
nav a[href*="ai-guide"]::before,
.toolbar a[href*="ai-guide"]::before,
.nav-row a[href*="ai-guide"]::before { content: "?" !important; }
nav a[href*="logout"]::before,
.toolbar a[href*="logout"]::before,
.nav-row a[href*="logout"]::before { content: "↪" !important; }
.navbtn.active, nav a.active, .toolbar a.active, .nav-row a.active {
  color: var(--accent-2) !important;
  border-bottom-color: var(--accent) !important;
  background: transparent !important;
}
.navbtn:hover, nav a:hover, .toolbar a:hover, .nav-row a:hover { color: var(--ink) !important; }

main, .page {
  width: min(var(--cl-page-width), calc(100vw - (var(--cl-page-gutter) * 2))) !important;
  max-width: var(--cl-page-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px 0 !important;
}

section.stats, .stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}
.card, .login-card, .panel, .tile, .stat {
  background: var(--glass) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(6px) !important;
}
.stat {
  min-height: 86px !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  cursor: help;
}
.stat span, .stat .l, .stat > span:first-child {
  display: block !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  min-height: 0 !important;
}
.stat b {
  display: block !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  margin-top: 4px !important;
  font-variant-numeric: tabular-nums !important;
}
.stat b *, .stat strong, .stat strong * {
  font-family: var(--font-body) !important;
}
.stat.user-stat b {
  font-size: 20px !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}
.stat .ring {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  flex: 0 0 auto !important;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), var(--line) 0) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.stat .ring::after {
  content: "" !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: var(--surface) !important;
}

.card h2, .panel h2, .tile h3, .section-title {
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.table, table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
}
th {
  text-align: left !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .03em !important;
  padding: 10px 12px !important;
}
td {
  padding: 14px 12px !important;
  vertical-align: top !important;
  line-height: 1.5 !important;
}
td, th {
  border-color: var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}
tbody tr:hover { background: rgba(255,255,255,.03) !important; }
a {
  color: var(--accent-2) !important;
  font-weight: 600 !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px !important;
}
a:hover {
  color: #a9fff0 !important;
}

.cell-desc, td .desc {
  max-width: 34ch !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  color: var(--muted) !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

.pill {
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  background: var(--ok-soft) !important;
  color: var(--ok) !important;
}
.pill.pill-warn, .pill.pending, .pill.in-progress {
  background: var(--warn-soft) !important;
  color: var(--warn) !important;
}
.pill.pill-crit, .pill.attention, .pill.revoked, .pill.suspended {
  background: var(--crit-soft) !important;
  color: var(--crit) !important;
}

input, textarea, select {
  border-radius: 7px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  font-size: 14px !important;
}
textarea { line-height: 1.45 !important; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(31,217,184,.3) !important;
  border-color: var(--accent) !important;
}
.lang select, select {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.btn, .button, .back, button, input[type=submit] {
  min-height: 38px !important;
  border-radius: 8px !important;
  border: 1px solid var(--line) !important;
  background: var(--glass) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}
.btn.primary, .button.primary, .copy-button, input[type=submit] {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.btn:hover, .button:hover, .back:hover, button:hover { border-color: var(--accent) !important; }
.btn.primary:hover, .button.primary:hover, .copy-button:hover, input[type=submit]:hover {
  background: var(--accent-dark) !important;
  color: var(--accent-ink) !important;
}

.context-link { box-shadow: none !important; }

/* Master-detail component for future list migrations. It is passive until pages
   render .split markup; no existing table is changed by this CSS alone. */
.split {
  display: flex !important;
  height: 520px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: var(--surface) !important;
}
.split-list {
  width: 300px !important;
  flex: 0 0 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-right: 1px solid var(--line) !important;
  background: rgba(255,255,255,.02) !important;
}
.split-item {
  padding: 13px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  color: inherit !important;
  cursor: pointer !important;
  text-align: left !important;
  width: 100% !important;
}
.split-item:hover { background: rgba(255,255,255,.04) !important; }
.split-item.is-selected {
  background: rgba(31,217,184,.08) !important;
  border-left-color: var(--accent) !important;
}
.split-item .sid {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  color: var(--muted) !important;
}
.split-item .sname {
  margin-top: 2px !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
.split-details {
  flex: 1 !important;
  min-width: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.split-detail {
  display: none !important;
  padding: 24px !important;
}
.split-detail.is-visible { display: block !important; }
.split-detail h4 {
  margin: 0 0 4px !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}
.split-detail .klex {
  margin-bottom: 16px !important;
  color: var(--muted) !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
}
.split-detail p {
  max-width: 60ch !important;
  margin: 0 0 20px !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}
.split-detail dl {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr)) !important;
  gap: 14px 24px !important;
  margin: 0 !important;
}
.split-detail dt {
  margin-bottom: 3px !important;
  color: var(--muted) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
.split-detail dd {
  margin: 0 !important;
  font-size: 13px !important;
}
.split-detail dd.mono {
  color: var(--accent-2) !important;
  font-family: var(--font-mono) !important;
  font-size: 11.5px !important;
  word-break: break-all !important;
}

/* Readability pass for dense legacy screens. */
td, td span, td div, td p, .card p, .panel p, .tile p {
  font-weight: 400 !important;
}
td b, td strong, .panel b, .panel strong, .card b, .card strong {
  font-weight: 600 !important;
}
td small, td .muted, td .desc, td div:not(:first-child),
.panel small, .card small {
  color: var(--muted-soft) !important;
}
td a {
  font-weight: 600 !important;
}
td br + span,
td br + small,
td br + div {
  margin-top: 2px !important;
}
tbody tr {
  background: rgba(255,255,255,.005) !important;
}
tbody tr:nth-child(even) {
  background: rgba(255,255,255,.012) !important;
}
tbody tr:hover {
  background: rgba(31,217,184,.045) !important;
}
.panel > div, .card > div, .tile > div {
  line-height: 1.52 !important;
}
.panel h2 + *, .card h2 + *, .tile h3 + *, .section-title + * {
  margin-top: 10px !important;
}
.panel a, .card a {
  text-decoration-color: rgba(123,230,211,.45) !important;
}
.panel .pill, .card .pill, td .pill {
  letter-spacing: 0 !important;
}
.panel [class*="activity"],
.card [class*="activity"],
.panel [class*="recent"],
.card [class*="recent"] {
  line-height: 1.55 !important;
}
.knowledge-table td {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}
.knowledge-table a {
  font-weight: 600 !important;
}
.knowledge-table td:nth-child(3),
.knowledge-table td:nth-child(5) {
  font-size: 14px !important;
}
.knowledge-table td:nth-child(5) {
  color: var(--muted) !important;
}
.knowledge-table td:nth-child(5) b,
.knowledge-table td:nth-child(5) strong {
  color: var(--ink) !important;
  font-weight: 600 !important;
}
.activity {
  padding: 18px 18px 17px !important;
  border-left-width: 3px !important;
  background: linear-gradient(90deg, rgba(31,217,184,.045), transparent 46%) !important;
}
.activity-head {
  margin-bottom: 10px !important;
}
.activity-project {
  color: var(--accent-2) !important;
  font-size: 15.5px !important;
  font-weight: 650 !important;
  line-height: 1.22 !important;
}
.activity-type {
  margin-top: 4px !important;
  color: var(--ink) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
.activity p {
  margin: 9px 0 12px !important;
  color: #edf4f2 !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}
.activity .muted {
  color: var(--muted-soft) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}
.activity .pill {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
}
body header .brand img,
body .site-header .brand img,
body header.top > img {
  display: none !important;
}

body header .brand,
body .site-header .brand,
body header.top .brand {
  position: relative !important;
  min-height: 42px !important;
  padding-left: 50px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

body header .brand::before,
body .site-header .brand::before,
body header.top .brand::before {
  content: "CoL" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 36px !important;
  height: 36px !important;
  transform: translateY(-50%) !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  color: #06241f !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  box-shadow: 0 10px 26px rgba(31,217,184,.24) !important;
}

body header .brand::after,
body .site-header .brand::after,
body header.top .brand::after {
  content: "ContextLedger" !important;
  color: #fff !important;
  font-family: var(--font-display) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -.03em !important;
}

@media (max-width: 980px) {
  :root { --cl-page-gutter: 14px; }
  body:not(.login-page) { --cl-page-gutter: 14px !important; }
  body > header, header { padding: 10px var(--cl-page-gutter) !important; }
  header .masthead, .masthead, body > header { display: block !important; }
  .brand img, .top img {
    width: 230px !important;
    max-width: 82vw !important;
  }
  .title, .header-tools, .hero-copy {
    align-items: flex-start !important;
    text-align: left !important;
    margin-top: 12px !important;
  }
  main, .page { padding-top: 16px !important; }
}

@media (max-width: 720px) {
  .split {
    flex-direction: column !important;
    height: auto !important;
    max-height: 600px !important;
  }
  .split-list {
    width: auto !important;
    max-height: 200px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
}

/* Information cards v10: quiet surfaces and a consistent reading anchor. */
body:not(.login-page) .stat,
body:not(.login-page) .metric {
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding: 20px 22px 18px !important;
  border: 1px solid var(--cl-card-line) !important;
  background: #fff !important;
  text-align: right !important;
}

body:not(.login-page) .stat::before,
body:not(.login-page) .stat::after,
body:not(.login-page) .metric::before,
body:not(.login-page) .metric::after {
  content: none !important;
  display: none !important;
}

body:not(.login-page) .stat span,
body:not(.login-page) .stat .l,
body:not(.login-page) .stat > span:first-child,
body:not(.login-page) .metric .label,
body:not(.login-page) .metric .value,
body:not(.login-page) .metric .delta,
body:not(.login-page) .stat b,
body:not(.login-page) .stat strong {
  align-self: flex-end !important;
  text-align: right !important;
}

body:not(.login-page) .stat b,
body:not(.login-page) .stat strong,
body:not(.login-page) .metric .value {
  margin-top: 8px !important;
}

body.project-page .task-stat {
  align-items: stretch !important;
  text-align: right !important;
}
body.project-page .task-stat .stat-head {
  align-self: start !important;
  text-align: left !important;
}
body.project-page .task-stat > span,
body.project-page .task-stat > b {
  justify-self: end !important;
  text-align: right !important;
}

@media (max-width: 620px) {
  body:not(.login-page) .stat,
  body:not(.login-page) .metric {
    padding: 17px 18px 15px !important;
  }
}

/* Translation monitor v33: dashboard-aligned metrics and incident master-detail. */
html body.translation-monitor-page .shell {
  padding-top: 34px !important;
}
html body.translation-monitor-page .translation-kpis {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 0 20px !important;
}
html body.translation-monitor-page .translation-kpis .metric {
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 128px !important;
  padding: 18px !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border: 1px solid var(--cl-card-line, #cbd5e3) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 10px 22px rgba(18, 34, 62, .08) !important;
}
html body.translation-monitor-page .translation-kpis .metric::before {
  display: none !important;
}
html body.translation-monitor-page .translation-kpis .label {
  margin: 0 !important;
  color: #131d62 !important;
  font-size: clamp(15px, 1.1vw, 20px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -.02em !important;
  text-transform: uppercase !important;
}
html body.translation-monitor-page .translation-kpis .value {
  align-self: flex-end !important;
  margin: auto 0 0 !important;
  color: #0a1768 !important;
  font-size: clamp(30px, 2.15vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: right !important;
}
html body.translation-monitor-page .translation-kpis .delta {
  max-width: 100% !important;
  margin-top: 8px !important;
  color: #69768e !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}
html body.translation-monitor-page .translation-workspace {
  display: grid !important;
  height: 640px !important;
  min-height: 640px !important;
  margin: 0 0 20px !important;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr) !important;
  overflow: hidden !important;
  border: 1px solid var(--cl-card-line, #cbd5e3) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(18, 34, 62, .09) !important;
}
html body.translation-monitor-page .translation-workspace > .card {
  min-width: 0 !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body.translation-monitor-page .translation-master,
html body.translation-monitor-page .translation-detail {
  display: flex !important;
  min-height: 0 !important;
  flex-direction: column !important;
}
html body.translation-monitor-page .translation-detail {
  border-left: 1px solid var(--cl-card-line, #cbd5e3) !important;
}
html body.translation-monitor-page .translation-master-head {
  display: grid !important;
  min-height: 76px !important;
  padding: 12px 16px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 16px !important;
  align-items: center !important;
  border-bottom: 0 !important;
}
html body.translation-monitor-page .translation-master-head h2,
html body.translation-monitor-page .translation-detail > h2 {
  margin: 0 !important;
  color: #081344 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
html body.translation-monitor-page .translation-detail > h2 {
  min-height: 76px !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid var(--cl-card-line, #cbd5e3) !important;
}
html body.translation-monitor-page .translation-sample-meta {
  display: flex !important;
  min-width: 0 !important;
  margin-top: 6px !important;
  gap: 6px 14px !important;
  flex-wrap: wrap !important;
  color: #69768e !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}
html body.translation-monitor-page .translation-refresh {
  box-sizing: border-box !important;
  min-width: 118px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  border-radius: 2px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
html body.translation-monitor-page .translation-table-scroll,
html body.translation-monitor-page .translation-detail-body {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow: auto !important;
  scrollbar-gutter: stable !important;
}
html body.translation-monitor-page .translation-table {
  table-layout: fixed !important;
}
html body.translation-monitor-page .translation-table th {
  position: sticky !important;
  z-index: 2 !important;
  top: 0 !important;
  padding: 11px 12px !important;
  background: #f4f6fa !important;
  color: #34405c !important;
  font-size: 10px !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
html body.translation-monitor-page .translation-table th:nth-child(1) { width: 72px !important; }
html body.translation-monitor-page .translation-table th:nth-child(2) { width: 120px !important; }
html body.translation-monitor-page .translation-table th:nth-child(3) { width: 80px !important; }
html body.translation-monitor-page .translation-table th:nth-child(4) { width: 28% !important; }
html body.translation-monitor-page .translation-table th:nth-child(6) { width: 145px !important; }
html body.translation-monitor-page .translation-table td {
  padding: 13px 12px !important;
  color: #152044 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: anywhere !important;
}
html body.translation-monitor-page .translation-row {
  cursor: pointer !important;
  transition: background-color .18s ease, box-shadow .18s ease !important;
}
html body.translation-monitor-page .translation-row:hover {
  background: #f4fbfc !important;
}
html body.translation-monitor-page .translation-row[aria-selected="true"] {
  background: linear-gradient(90deg, #ddf9fb 0%, #f5feff 100%) !important;
  box-shadow: inset 3px 0 0 #1dcad3 !important;
}
html body.translation-monitor-page .translation-row:focus-visible {
  outline: 2px solid #10bac6 !important;
  outline-offset: -2px !important;
}
html body.translation-monitor-page .translation-detail-body {
  padding: 20px 18px 24px !important;
}
html body.translation-monitor-page .translation-detail-empty {
  display: flex !important;
  height: 100% !important;
  min-height: 260px !important;
  padding: 28px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #69768e !important;
  text-align: center !important;
}
html body.translation-monitor-page .translation-detail-empty strong {
  color: #0b195d !important;
  font-size: 18px !important;
}
html body.translation-monitor-page .translation-detail-content {
  min-width: 0 !important;
}
html body.translation-monitor-page .translation-detail-kicker {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  color: #008b92 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}
html body.translation-monitor-page .translation-detail-kicker time {
  color: #69768e !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
html body.translation-monitor-page .translation-detail-content h3 {
  margin: 12px 0 8px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #dce3eb !important;
  color: #074474 !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
html body.translation-monitor-page .translation-detail-status {
  margin-bottom: 16px !important;
}
html body.translation-monitor-page .translation-detail-grid {
  display: grid !important;
  margin: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 18px !important;
}
html body.translation-monitor-page .translation-detail-grid > div {
  min-width: 0 !important;
  padding-bottom: 9px !important;
  border-bottom: 1px solid #e3e8ef !important;
}
html body.translation-monitor-page .translation-detail-grid dt {
  color: #748096 !important;
  font-size: 10px !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
html body.translation-monitor-page .translation-detail-grid dd {
  margin: 4px 0 0 !important;
  color: #081344 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
}
html body.translation-monitor-page .translation-detail-message {
  margin-top: 18px !important;
}
html body.translation-monitor-page .translation-detail-message h4 {
  margin: 0 0 8px !important;
  color: #34405c !important;
  font-size: 10px !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}
html body.translation-monitor-page .translation-detail-message p {
  min-height: 160px !important;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid #dce3eb !important;
  border-left: 3px solid #11b8c0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #152044 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
}
html body.translation-monitor-page .translation-quality-note {
  margin: -10px 0 20px !important;
}
@media (max-width: 1280px) {
  html body.translation-monitor-page .translation-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  html body.translation-monitor-page .translation-workspace {
    grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr) !important;
  }
}
@media (max-width: 900px) {
  html body.translation-monitor-page .translation-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body.translation-monitor-page .translation-workspace {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body.translation-monitor-page .translation-master,
  html body.translation-monitor-page .translation-detail {
    height: 570px !important;
  }
  html body.translation-monitor-page .translation-detail {
    border-top: 1px solid var(--cl-card-line, #cbd5e3) !important;
    border-left: 0 !important;
  }
}
@media (max-width: 620px) {
  html body.translation-monitor-page .translation-kpis {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body.translation-monitor-page .translation-master-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body.translation-monitor-page .translation-refresh {
    width: 100% !important;
  }
  html body.translation-monitor-page .translation-detail-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Unified internal catalogs v22: Features, Context activity and Published APIs
   use the same master-detail language as Narratives and Contributions. */
html body.project-page .catalog-workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, .9fr) !important;
  gap: 0 !important;
  margin: 0 0 18px !important;
  overflow: hidden !important;
  border: 1px solid var(--cl-card-line) !important;
  border-radius: var(--cl-card-radius) !important;
  background: #fff !important;
  box-shadow: var(--cl-card-shadow) !important;
}
html body.project-page .catalog-workspace > .card {
  display: flex !important;
  height: 560px !important;
  min-height: 560px !important;
  max-height: 560px !important;
  min-width: 0 !important;
  flex-direction: column !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body.project-page .catalog-workspace > .card + .card {
  border-left: 1px solid var(--cl-card-line) !important;
}
html body.project-page .catalog-workspace > .card:first-child > .card-titlebar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
  background: #fff !important;
}
html body.project-page .catalog-workspace > .card:first-child > .card-titlebar h2,
html body.project-page .catalog-detail > h2 {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--cl-workspace-title-min-height) !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 14px var(--cl-workspace-header-padding-x) !important;
  border-bottom: 1px solid var(--cl-card-line) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body.project-page .catalog-workspace .tag-filter {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto auto !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 68px !important;
  padding: 12px var(--cl-workspace-header-padding-x) !important;
  align-items: center !important;
  background: #fbfdfb !important;
}
html body.project-page .catalog-workspace .tag-filter .tag-combo,
html body.project-page .catalog-workspace .tag-filter .tag-combo input {
  width: 100% !important;
  min-width: 0 !important;
}
html body.project-page .catalog-workspace .tag-filter input,
html body.project-page .catalog-workspace .tag-filter button {
  height: var(--cl-workspace-control-height) !important;
  min-height: var(--cl-workspace-control-height) !important;
  padding: 0 13px !important;
  border: 1px solid var(--cl-card-line) !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
html body.project-page .catalog-workspace .tag-filter button {
  min-width: 96px !important;
  justify-content: center !important;
}
html body.project-page .catalog-workspace .tag-count {
  min-width: 92px !important;
  text-align: right !important;
}
html body.project-page .catalog-workspace datalist { display: none !important; }
html body.project-page .catalog-master-list {
  height: 0 !important;
  min-height: 0 !important;
  flex: 1 1 0 !important;
  padding: 12px 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #fbfdfb !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
html body.project-page .catalog-master-item {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: minmax(0, 142px) minmax(0, 1fr) !important;
  column-gap: 16px !important;
  margin: 0 0 8px !important;
  padding: 11px 12px !important;
  border: 1px solid var(--cl-card-line) !important;
  border-left: 4px solid var(--teal) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}
html body.project-page .features-workspace .catalog-master-item { border-left-color: var(--green) !important; }
html body.project-page .events-workspace .catalog-master-item { border-left-color: var(--orange) !important; }
html body.project-page .apis-workspace .catalog-master-item { border-left-color: var(--blue) !important; }
html body.project-page .catalog-master-item:hover {
  border-color: #9adbd8 !important;
  box-shadow: 0 8px 18px rgba(8,13,61,.08) !important;
  transform: translateY(-1px) !important;
}
html body.project-page .catalog-master-item.selected {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 2px rgba(0,155,155,.16) !important;
}
html body.project-page .catalog-master-item:focus-visible {
  outline: 3px solid rgba(0,155,155,.28) !important;
  outline-offset: 2px !important;
}
html body.project-page .catalog-item-meta,
html body.project-page .catalog-item-main {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body.project-page .catalog-item-meta { color: var(--muted) !important; font-size: 11px !important; }
html body.project-page .catalog-item-meta b {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #007d7d !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  white-space: nowrap !important;
}
html body.project-page .catalog-item-main h3 {
  display: block !important;
  max-width: 100% !important;
  margin: 0 0 5px !important;
  overflow: hidden !important;
  color: var(--blue) !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body.project-page .catalog-item-main p {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #46536a !important;
  line-height: 1.4 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}
html body.project-page .catalog-empty { display: none; padding: 24px; color: var(--muted); text-align: center; }
html body.project-page .catalog-detail-body {
  height: 0 !important;
  min-height: 0 !important;
  flex: 1 1 0 !important;
  padding: 18px !important;
  overflow: hidden !important;
}
html body.project-page .catalog-detail-content { display: none; }
html body.project-page .catalog-detail-content.active {
  display: flex !important;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
html body.project-page .catalog-detail-content h3 {
  margin: 0 0 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--cl-card-line) !important;
  color: var(--blue) !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}
html body.project-page .catalog-detail .detail-text-section {
  display: flex !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
}
html body.project-page .catalog-detail-text {
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  padding: 12px 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid var(--cl-card-line) !important;
  border-left: 4px solid var(--teal) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--ink) !important;
  line-height: 1.55 !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
@media (max-width: 1100px) {
  html body.project-page .catalog-workspace { grid-template-columns: 1fr !important; }
  html body.project-page .catalog-workspace > .card { height: 520px !important; min-height: 520px !important; max-height: 520px !important; }
  html body.project-page .catalog-workspace > .card + .card { border-top: 1px solid var(--cl-card-line) !important; border-left: 0 !important; }
}
@media (max-width: 620px) {
  html body.project-page .catalog-workspace .tag-filter { grid-template-columns: minmax(0, 1fr) auto !important; }
  html body.project-page .catalog-workspace .tag-filter .tag-combo { grid-column: 1 / -1 !important; }
  html body.project-page .catalog-master-item { grid-template-columns: minmax(0, 1fr) !important; row-gap: 8px !important; }
  html body.project-page .catalog-workspace > .card { height: 500px !important; min-height: 500px !important; max-height: 500px !important; }
  html body.project-page .catalog-detail .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
}

/* Fixed master-detail cards and contextual actions v18. */
html body.project-page .knowledge-workspace > .card {
  height: 720px !important;
  min-height: 720px !important;
  max-height: 720px !important;
}
html body.project-page .narrative-workspace > .card {
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
}
html body.project-page .contribution-workspace > .card {
  height: 620px !important;
  min-height: 620px !important;
  max-height: 620px !important;
}
html body.project-page .knowledge-detail,
html body.project-page .contribution-detail {
  position: relative !important;
  isolation: isolate;
}
html body.project-page .knowledge-detail-body,
html body.project-page .narrative-detail-body,
html body.project-page .contribution-detail-body {
  height: 0 !important;
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
html body.project-page .context-action-rail {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 0;
  width: 11px;
  height: 142px;
  padding: 0;
  border: 1px solid #9eabb8;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(180deg,#f8fafb,#dfe5e8 48%,#f8fafb);
  box-shadow: -2px 0 7px rgba(8,13,61,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(100%);
  transition: width .22s ease, opacity .18s ease, transform .26s cubic-bezier(.2,.75,.25,1), background .18s ease;
}
html body.project-page .context-action-rail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid #173f7a;
  transform: translateY(-50%);
  transition: transform .3s cubic-bezier(.2,.75,.25,1), border-color .18s ease;
}
html body.project-page .has-context-actions > .context-action-rail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
html body.project-page .context-action-rail:hover,
html body.project-page .context-action-rail:focus-visible {
  width: 15px;
  background: #d5f5f2;
  outline: 2px solid rgba(0,155,155,.3);
  outline-offset: 1px;
}
html body.project-page .actions-open > .context-action-rail::before {
  transform: translateY(-50%) rotate(180deg);
}
html body.project-page .context-action-drawer {
  position: absolute;
  z-index: 4;
  top: var(--cl-workspace-title-min-height);
  right: 0;
  bottom: 0;
  display: flex;
  width: min(360px, calc(100% - 18px));
  min-height: 0;
  flex-direction: column;
  border-left: 1px solid var(--cl-card-line);
  background: #fff;
  box-shadow: -16px 0 30px rgba(8,13,61,.13);
  visibility: hidden;
  transform: translateX(102%);
  transition: transform .32s cubic-bezier(.2,.75,.25,1), visibility 0s linear .32s;
}
html body.project-page .actions-open > .context-action-drawer {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}
html body.project-page .context-action-head {
  display: flex;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cl-card-line);
  background: #fbfdfb;
}
html body.project-page .context-action-head h3 { margin: 0; color: var(--blue); font-size: 17px; }
html body.project-page .context-action-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--cl-card-line);
  border-radius: 2px;
  background: #fff;
  color: var(--blue);
  font-size: 21px;
  line-height: 1;
}
html body.project-page .context-action-body {
  height: 0;
  min-height: 0;
  flex: 1 1 0;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
html body.project-page .context-action-body .node-meta { display: flex; flex-direction: column; gap: 10px; }
html body.project-page .context-action-body .node-meta > div { display: none; }
html body.project-page .context-action-body .validity { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
html body.project-page .context-action-body .validity input,
html body.project-page .context-action-body .validity select,
html body.project-page .context-action-body .validity .btn,
html body.project-page .context-action-body .download { width: 100%; min-height: 42px; }
html body.project-page .context-action-feedback { min-height: 20px; margin-top: 10px; color: #087968; font-size: 12px; }
@media (max-width: 1100px) {
  html body.project-page .knowledge-workspace > .card { height: 620px !important; min-height: 620px !important; max-height: 620px !important; }
  html body.project-page .narrative-workspace > .card { height: 500px !important; min-height: 500px !important; max-height: 500px !important; }
  html body.project-page .contribution-workspace > .card { height: 560px !important; min-height: 560px !important; max-height: 560px !important; }
}
@media (max-width: 620px) {
  html body.project-page .knowledge-workspace > .card { height: 580px !important; min-height: 580px !important; max-height: 580px !important; }
  html body.project-page .narrative-workspace > .card { height: 480px !important; min-height: 480px !important; max-height: 480px !important; }
  html body.project-page .contribution-workspace > .card { height: 520px !important; min-height: 520px !important; max-height: 520px !important; }
  html body.project-page .context-action-drawer { width: calc(100% - 14px); }
}

/* Dense master rows v17: long identifiers must never collide with content. */
html body.project-page .narrative-item,
html body.project-page .contribution-item {
  grid-template-columns: minmax(0, 142px) minmax(0, 1fr) !important;
  column-gap: 16px !important;
}
html body.project-page .narrative-item-meta,
html body.project-page .contribution-item-meta,
html body.project-page .narrative-item-main,
html body.project-page .contribution-item-main {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body.project-page .narrative-item-meta b,
html body.project-page .contribution-item-meta b,
html body.project-page .narrative-item-main h3,
html body.project-page .contribution-item-main h3 {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html body.project-page .narrative-workspace .tag-combo datalist,
html body.project-page .contribution-workspace .tag-combo datalist {
  display: none !important;
}
@media (max-width: 620px) {
  html body.project-page .narrative-item,
  html body.project-page .contribution-item {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 8px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* Unified header shell: the brand row and the navigation row are one visual header. */
body > header,
body .site-header,
body .page > header.top {
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
}

body > header + nav,
body > header + nav.toolbar,
body .page > header.top + nav.toolbar {
  width: auto !important;
  max-width: none !important;
  margin-left: var(--cl-page-gutter) !important;
  margin-right: var(--cl-page-gutter) !important;
  margin-top: 0 !important;
  margin-bottom: 22px !important;
  border-top: 1px solid rgba(148, 163, 184, .12) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 86% 0%, rgba(31, 217, 184, .12), transparent 34%),
    rgba(17, 24, 32, .94) !important;
}

body > header + nav a,
body > header + nav a.btn,
body > header + nav a.button,
body > header + nav a.back,
body > header + nav.toolbar a,
body > header + nav.toolbar a.btn,
body .page > header.top + nav.toolbar a,
body .page > header.top + nav.toolbar a.btn {
  min-height: 42px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
}

body > header + nav a:hover,
body > header + nav a.btn:hover,
body > header + nav.toolbar a:hover,
body > header + nav.toolbar a.btn:hover,
body .page > header.top + nav.toolbar a:hover,
body .page > header.top + nav.toolbar a.btn:hover {
  color: var(--ink) !important;
  border-bottom-color: rgba(31, 217, 184, .5) !important;
  background: rgba(31, 217, 184, .055) !important;
}

body > header + nav a.active,
body > header + nav a.btn.active,
body > header + nav.toolbar a.active,
body > header + nav.toolbar a.btn.active,
body .page > header.top + nav.toolbar a.active,
body .page > header.top + nav.toolbar a.btn.active {
  color: var(--accent-2) !important;
  border-bottom-color: var(--accent) !important;
  background: transparent !important;
}

body > header + nav .spacer,
body > header + nav.toolbar .spacer,
body .page > header.top + nav.toolbar .spacer {
  flex: 1 1 auto !important;
}

/* Legacy page components must use the same contrast palette as the shared shell. */
body.project-page .contract-tabs,
body.project-page .contract-tab.active,
body.project-page .project-brief,
body.project-page .filelist,
body.project-page .file-card,
body.project-page .knowledge-card,
body.project-page .knowledge-legend .legend-item,
body.project-page .command-head,
body.project-page .filter-grid,
body.project-page .knowledge-node,
body.project-page .fixed-actions {
  background: var(--surface) !important;
  color: var(--ink) !important;
}
body.project-page .context-link {
  background: #102d2d !important;
  color: var(--ink) !important;
}
body.project-page .context-link pre,
body.project-page .file-card .tags,
body.project-page .tags,
body.project-page .filter-grid input,
body.project-page .filter-grid select,
body.project-page .recipient-row select {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
}
body.project-page .tags,
body.project-page .file-card .tags { color: var(--accent-2) !important; }
body.project-page .knowledge-card.message,
body.project-page .knowledge-card.task,
body.project-page .knowledge-card.ai,
body.project-page .knowledge-card.human,
body.project-page .knowledge-card.collaborative {
  background: var(--surface-2) !important;
}
/* Legacy grouped-control baseline. The Technology Perspective layer below
   replaces its visual treatment while retaining behavior and accessibility. */
body.project-page .contract-tabs,
body.mcp-page .transport-strip {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  width: max-content !important;
  max-width: 100% !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.07) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 1px 2px rgba(0,0,0,.28) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  isolation: isolate;
  clip-path: inset(0 round 9px);
}
body.project-page .contract-tabs::-webkit-scrollbar,
body.mcp-page .transport-strip::-webkit-scrollbar { display: none !important; }
body.mcp-page .transport-strip { margin: 16px 18px 0 !important; }

body.project-page .contract-tab,
body.mcp-page .transport-strip .tab-button {
  flex: 0 0 auto !important;
  min-height: 40px !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}
body.project-page .contract-tab:first-child,
body.mcp-page .transport-strip .tab-button:first-child {
  border-radius: 8px 0 0 8px !important;
}
body.project-page .contract-tab:last-child,
body.mcp-page .transport-strip .tab-button:last-child {
  border-radius: 0 8px 8px 0 !important;
}
body.project-page .contract-tab + .contract-tab,
body.mcp-page .transport-strip .tab-button + .tab-button {
  box-shadow: inset 1px 0 rgba(255,255,255,.09) !important;
}
body.project-page .contract-tab.active,
body.mcp-page .transport-strip .tab-button.is-active {
  background: linear-gradient(180deg, #2be0c1 0%, #18bca2 100%) !important;
  color: var(--accent-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 1px 2px rgba(0,0,0,.42), 0 4px 10px rgba(0,0,0,.18) !important;
  text-shadow: 0 1px rgba(255,255,255,.18) !important;
}
body.project-page .contract-tab:hover:not(:disabled):not(.active),
body.mcp-page .transport-strip .tab-button:hover:not(.is-active),
body.project-page .project-brief b,
body.project-page .command-head h2,
body.project-page .node-type {
  color: var(--accent-2) !important;
}
body.project-page .contract-tab:hover:not(:disabled):not(.active),
body.mcp-page .transport-strip .tab-button:hover:not(.is-active) {
  background: rgba(255,255,255,.075) !important;
}
body.project-page .contract-tab:active:not(:disabled),
body.mcp-page .transport-strip .tab-button:active { transform: translateY(1px) !important; }
body.project-page .contract-tab:disabled,
body.project-page .contract-tab[aria-disabled="true"] {
  background: transparent !important;
  color: var(--muted-soft) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: .48 !important;
}
body.project-page .knowledge-node::before { background: var(--surface) !important; }
body.project-page .command-count,
body.project-page .fixed-actions strong { color: var(--ink) !important; }

body.mcp-page .agent-guide > .panel-body > .tab-strip,
body.mcp-page .tab-strip,
body.mcp-page .panel h2,
body.mcp-page .mini-card,
body.mcp-page .placement-card,
body.mcp-page .transport-card,
body.mcp-page .copy-box,
body.mcp-page .claude-transform-box {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
}
/* Legacy agent chooser baseline, retained for structural compatibility. */
body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button {
  min-height: 38px !important;
  padding: 8px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  font-weight: 650 !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease !important;
}
body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button.is-active {
  border-color: rgba(123,230,211,.25) !important;
  background: linear-gradient(180deg, rgba(31,217,184,.24), rgba(31,217,184,.14)) !important;
  color: var(--accent-2) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.24) !important;
}
body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button:hover:not(.is-active) {
  background: rgba(255,255,255,.055) !important;
  color: var(--ink) !important;
}
body.mcp-page .copy-box .copy-title,
body.mcp-page .panel h2 { color: var(--accent-2) !important; }
body.mcp-page .note,
body.mcp-page .session-note,
body.mcp-page .inline-warning {
  background: #302819 !important;
  color: #f7dfa9 !important;
}
body.mcp-page pre,
body.mcp-page .url { background: var(--surface) !important; color: var(--ink) !important; }
body.mcp-page .client-screen pre,
body.mcp-page .client-screen .url { background: #fff !important; color: #26333b !important; }

@media (max-width: 900px) {
  body.project-page .contract-tabs,
  body.mcp-page .transport-strip {
    display: flex !important;
    width: 100% !important;
  }
  body.mcp-page .agent-guide > .panel-body > .tab-strip {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.07) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 1px 2px rgba(0,0,0,.28) !important;
    scrollbar-width: none !important;
    clip-path: inset(0 round 9px);
  }
  body.mcp-page .agent-guide > .panel-body > .tab-strip::-webkit-scrollbar { display: none !important; }
  body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    padding: 10px 16px !important;
    border-radius: 0 !important;
  }
  body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button:first-child { border-radius: 8px 0 0 8px !important; }
  body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button:last-child { border-radius: 0 8px 8px 0 !important; }
}

body.organization-page .api-key,
body.organization-page .users-modal-dialog,
body.organization-page .notice-modal-dialog,
body.organization-page .users-modal .readonly {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
body.organization-page .field label,
body.organization-page .users-modal .hint,
body.organization-page .notice-modal-dialog p { color: var(--muted) !important; }
body.organization-page .users-modal-head h2 { color: var(--accent-2) !important; }

body:not(.project-page):not(.mcp-page) .grid > section {
  background: var(--surface) !important;
  color: var(--ink) !important;
}
body:not(.project-page):not(.mcp-page) .grid > section h2,
body:not(.project-page):not(.mcp-page) .fixed-actions {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
}
body:not(.project-page):not(.mcp-page) .primary-share,
body:not(.project-page):not(.mcp-page) .link-box,
body:not(.project-page):not(.mcp-page) .copy-url {
  background: var(--surface-2) !important;
  color: var(--ink) !important;
}
body:not(.project-page):not(.mcp-page) .callout {
  background: #302819 !important;
  color: #f7dfa9 !important;
}
body:not(.project-page):not(.mcp-page) .share-header,
body:not(.project-page):not(.mcp-page) .grid > section h2 {
  color: var(--accent-2) !important;
}
body:not(.project-page):not(.mcp-page) .fixed-actions strong {
  color: var(--accent-2) !important;
}
body.translation-monitor-page th,
body.translation-monitor-page .chart-shell {
  background: var(--surface-2) !important;
  color: var(--muted) !important;
}
body.translation-monitor-page .chart-gridline { stroke: #32404a !important; }
body.translation-monitor-page .chart-axis { stroke: #61737e !important; }
body.translation-monitor-page .chart-label { fill: #a3b0ba !important; }

/* Technology Perspective theme.
   Inspired by the editorial rhythm of the approved reference, but implemented
   entirely with local fonts and CSS-generated geometry. No remote assets. */
:root {
  --bg: #f2f3f6;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --glass: #ffffff;
  --ink: #080d3d;
  --muted: #626b82;
  --muted-soft: #858da0;
  --line: #dfe3eb;
  --accent: #20d9e6;
  --accent-dark: #0aa7bb;
  --accent-2: #292d82;
  --accent-ink: #050936;
  --ok: #087f70;
  --ok-soft: #dff7f2;
  --warn: #9a6400;
  --warn-soft: #fff2ce;
  --crit: #b53b4f;
  --crit-soft: #ffe7eb;
  --shadow: 0 18px 44px rgba(8, 13, 61, .105);
}

body:not(.login-page) {
  position: relative !important;
  color: var(--ink) !important;
  background:
    linear-gradient(135deg, rgba(41,45,130,.035) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(315deg, rgba(32,217,230,.025) 25%, transparent 25%) 0 0 / 28px 28px,
    #f2f3f6 !important;
}
body:not(.login-page)::before {
  content: "";
  position: fixed;
  z-index: -1;
  right: -90px;
  top: 184px;
  width: 420px;
  height: 180px;
  opacity: .13;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--accent-2) 0 5px, transparent 5px 17px);
  transform: skewY(-7deg);
}

.topline, .brand-strip {
  height: 5px !important;
  background: linear-gradient(90deg, var(--accent-2) 0 22%, var(--accent) 22% 76%, var(--accent-2) 76%) !important;
}
body > header,
body .site-header,
body .page > header.top,
body > header,
header {
  min-height: 82px !important;
  padding: 16px var(--cl-page-gutter) !important;
  background: rgba(255,255,255,.985) !important;
  border-bottom: 0 !important;
  color: var(--ink) !important;
}
body header .brand::before,
body .site-header .brand::before,
body header.top .brand::before,
.brand::before {
  width: 42px !important;
  height: 42px !important;
  border-radius: 3px !important;
  color: #050936 !important;
  background: linear-gradient(145deg, #2ae4ee, #11b8cf) !important;
  box-shadow: 0 12px 26px rgba(19,190,207,.22) !important;
}
body header .brand,
body .site-header .brand,
body header.top .brand,
.brand { padding-left: 58px !important; }
body header .brand::after,
body .site-header .brand::after,
body header.top .brand::after,
.brand::after {
  color: var(--ink) !important;
  font-size: 19px !important;
  letter-spacing: -.035em !important;
}
.brand .brand-subtitle,
.brand-subtitle {
  color: var(--accent-2) !important;
  font-size: 10px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
.title h1, .hero-copy h1, .top h1 { color: var(--ink) !important; }

body > header + nav,
body > header + nav.toolbar,
body .page > header.top + nav.toolbar,
nav,
.toolbar {
  min-height: 54px !important;
  margin-bottom: 30px !important;
  border: 0 !important;
  border-bottom: 3px solid var(--accent) !important;
  background:
    radial-gradient(circle at 88% 35%, rgba(32,217,230,.15), transparent 22rem),
    #080d3d !important;
  box-shadow: 0 14px 32px rgba(8,13,61,.14) !important;
}
body > header + nav a,
body > header + nav a.btn,
body > header + nav a.button,
body > header + nav a.back,
body > header + nav.toolbar a,
body > header + nav.toolbar a.btn,
body .page > header.top + nav.toolbar a,
body .page > header.top + nav.toolbar a.btn,
.navbtn, nav a, .toolbar a, .nav-row a {
  min-height: 51px !important;
  padding: 15px 14px !important;
  color: #cbd3e6 !important;
  border-bottom-width: 3px !important;
  text-transform: uppercase !important;
  letter-spacing: .055em !important;
  font-size: 11.5px !important;
}
body > header + nav a:hover,
body > header + nav.toolbar a:hover,
body .page > header.top + nav.toolbar a:hover,
.navbtn:hover, nav a:hover, .toolbar a:hover, .nav-row a:hover {
  color: #fff !important;
  background: rgba(32,217,230,.08) !important;
  border-bottom-color: rgba(32,217,230,.58) !important;
}
body > header + nav a.active,
body > header + nav.toolbar a.active,
body .page > header.top + nav.toolbar a.active,
.navbtn.active, nav a.active, .toolbar a.active, .nav-row a.active {
  color: #fff !important;
  border-bottom-color: var(--accent) !important;
  background: rgba(32,217,230,.07) !important;
}
.lang select {
  border-color: #ccd2df !important;
  background: #fff !important;
  color: var(--ink) !important;
}

main, .page { padding-top: 6px !important; }
.card, .login-card, .panel, .tile, .stat {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 2px !important;
  color: var(--ink) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
}
.card, .panel, .tile { position: relative !important; }
.card::before, .panel::before, .tile::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -1px;
  top: -1px;
  width: 82px;
  height: 4px;
  background: var(--accent);
  pointer-events: none;
}
.card > *, .panel > *, .tile > * { position: relative; z-index: 1; }
.card h2, .panel h2, .tile h3, .section-title {
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: -.025em !important;
}

section.stats, .stats {
  gap: 18px !important;
  margin-bottom: 24px !important;
}
.stat {
  position: relative !important;
  min-height: 112px !important;
  padding: 22px 20px 18px 24px !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  border-top: 5px solid var(--accent-2) !important;
  overflow: hidden !important;
}
.stat::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -38px;
  width: 96px;
  height: 96px;
  border: 13px solid rgba(32,217,230,.12);
  border-radius: 50%;
}
.stat span, .stat .l, .stat > span:first-child {
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}
.stat b, .stat strong, .stat.user-stat b {
  color: var(--accent-2) !important;
  font-family: var(--font-display) !important;
  font-size: 27px !important;
  font-weight: 600 !important;
}
.stat.user-stat b { font-size: 20px !important; }

table, .table { background: #fff !important; color: var(--ink) !important; }
th {
  background: #f2f3f7 !important;
  color: #4f5870 !important;
  font-size: 11px !important;
  letter-spacing: .075em !important;
}
td { color: var(--ink) !important; }
td, th { border-color: var(--line) !important; }
tbody tr:hover { background: #f3fbfc !important; }
.muted, td .muted, .panel small, .card small { color: var(--muted) !important; }
a { color: #125db2 !important; }
a:hover { color: var(--accent-2) !important; }

input, textarea, select {
  border-radius: 2px !important;
  border-color: #ccd2df !important;
  background: #fff !important;
  color: var(--ink) !important;
}
input::placeholder, textarea::placeholder { color: #8b93a5 !important; opacity: 1 !important; }
input:focus, textarea:focus, select:focus {
  outline: 0 !important;
  border-color: var(--accent-dark) !important;
  box-shadow: 0 0 0 3px rgba(32,217,230,.16) !important;
}
.btn, .button, .back, button, input[type=submit] {
  min-height: 40px !important;
  border-radius: 2px !important;
  border-color: #cbd1de !important;
  background: #fff !important;
  color: var(--ink) !important;
  text-transform: uppercase !important;
  letter-spacing: .055em !important;
  font-size: 11.5px !important;
}
.btn.primary, .button.primary, .copy-button, input[type=submit] {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.btn:hover, .button:hover, .back:hover, button:hover {
  border-color: var(--accent-dark) !important;
  background: #eefcfd !important;
}
.btn.primary:hover, .button.primary:hover, .copy-button:hover, input[type=submit]:hover {
  background: #16c6d5 !important;
  color: var(--accent-ink) !important;
}
.pill {
  border-radius: 2px !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
}

.activity {
  background: #fff !important;
  border-left-color: var(--accent) !important;
}
.activity-project, .activity-type, .activity p { color: var(--ink) !important; }

body.project-page .project-brief,
body.project-page .filelist,
body.project-page .file-card,
body.project-page .knowledge-card,
body.project-page .knowledge-legend .legend-item,
body.project-page .command-head,
body.project-page .filter-grid,
body.project-page .knowledge-node,
body.project-page .fixed-actions,
body.mcp-page .agent-guide > .panel-body > .tab-strip,
body.mcp-page .tab-strip,
body.mcp-page .panel h2,
body.mcp-page .mini-card,
body.mcp-page .placement-card,
body.mcp-page .transport-card,
body.mcp-page .copy-box,
body.mcp-page .claude-transform-box,
body.organization-page .api-key,
body.organization-page .users-modal-dialog,
body.organization-page .notice-modal-dialog,
body.organization-page .users-modal .readonly,
body:not(.project-page):not(.mcp-page) .grid > section,
body:not(.project-page):not(.mcp-page) .grid > section h2,
body:not(.project-page):not(.mcp-page) .primary-share,
body:not(.project-page):not(.mcp-page) .link-box,
body:not(.project-page):not(.mcp-page) .copy-url {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
body.project-page .context-link,
body.project-page .context-link pre,
body.project-page .file-card .tags,
body.project-page .tags,
body.project-page .filter-grid input,
body.project-page .filter-grid select,
body.project-page .recipient-row select,
body.project-page .knowledge-card.message,
body.project-page .knowledge-card.task,
body.project-page .knowledge-card.ai,
body.project-page .knowledge-card.human,
body.project-page .knowledge-card.collaborative,
body.mcp-page pre,
body.mcp-page .url,
body.translation-monitor-page th,
body.translation-monitor-page .chart-shell {
  background: #f7f8fb !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
body.project-page .tags,
body.project-page .file-card .tags,
body.project-page .project-brief b,
body.project-page .command-head h2,
body.project-page .node-type,
body.mcp-page .copy-box .copy-title,
body.mcp-page .panel h2,
body.organization-page .users-modal-head h2,
body:not(.project-page):not(.mcp-page) .share-header,
body:not(.project-page):not(.mcp-page) .grid > section h2 {
  color: var(--accent-2) !important;
}
body.project-page .knowledge-node::before { background: #fff !important; }
body.project-page .fixed-actions,
body:not(.project-page):not(.mcp-page) .fixed-actions {
  background: #080d3d !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
body.project-page .fixed-actions strong,
body:not(.project-page):not(.mcp-page) .fixed-actions strong { color: #fff !important; }

body.project-page .contract-tabs,
body.mcp-page .transport-strip {
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}
body.project-page .contract-tab,
body.mcp-page .transport-strip .tab-button {
  min-height: 46px !important;
  margin: 0 !important;
  padding: 13px 18px !important;
  border: 0 !important;
  border-top: 4px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  color: #fff !important;
  background: var(--accent-2) !important;
  text-transform: uppercase !important;
  letter-spacing: .055em !important;
  font-size: 11px !important;
}
body.project-page .contract-tab + .contract-tab,
body.mcp-page .transport-strip .tab-button + .tab-button { box-shadow: inset 1px 0 rgba(255,255,255,.2) !important; }
body.project-page .contract-tab.active,
body.mcp-page .transport-strip .tab-button.is-active {
  background: #fff !important;
  border-top-color: var(--accent) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 -1px #fff !important;
  text-shadow: none !important;
}
body.project-page .contract-tab:hover:not(:disabled):not(.active),
body.mcp-page .transport-strip .tab-button:hover:not(.is-active) {
  color: #fff !important;
  background: #171d5e !important;
}

body.mcp-page .agent-guide > .panel-body > .tab-strip {
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}
body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button {
  min-height: 44px !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-top: 4px solid rgba(255,255,255,.12) !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: var(--accent-2) !important;
  color: #fff !important;
  box-shadow: none !important;
  text-transform: uppercase !important;
  letter-spacing: .055em !important;
}
body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button.is-active {
  border-top-color: var(--accent) !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button:hover:not(.is-active) {
  background: #171d5e !important;
  color: #fff !important;
}

/* MCP/OpenCode secondary navigation is a content tab strip, not site navigation. */
.nav-row {
  width: min(var(--cl-page-width), calc(100vw - (var(--cl-page-gutter) * 2))) !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  scrollbar-width: none !important;
}
.nav-row::-webkit-scrollbar { display: none !important; }
.nav-row a,
.nav-row a.button,
.nav-row a.btn {
  flex: 0 0 auto !important;
  min-height: 46px !important;
  padding: 13px 18px !important;
  border: 0 !important;
  border-top: 4px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  background: var(--accent-2) !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: .055em !important;
  font-size: 11px !important;
  box-shadow: none !important;
}
.nav-row a + a { box-shadow: inset 1px 0 rgba(255,255,255,.2) !important; }
.nav-row a.primary,
.nav-row a.active {
  border-top-color: var(--accent) !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: inset 0 -1px #fff !important;
}
.nav-row a:hover:not(.primary):not(.active) {
  border-top-color: rgba(32,217,230,.55) !important;
  background: #171d5e !important;
  color: #fff !important;
}

body.translation-monitor-page .chart-gridline { stroke: #dce1ea !important; }
body.translation-monitor-page .chart-axis { stroke: #939caf !important; }
body.translation-monitor-page .chart-label { fill: #626b82 !important; }

@media (max-width: 980px) {
  body:not(.login-page)::before { display: none; }
  body > header, header { min-height: 72px !important; }
  body > header + nav,
  body > header + nav.toolbar,
  body .page > header.top + nav.toolbar {
    margin-bottom: 20px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }
  body > header + nav::-webkit-scrollbar,
  body > header + nav.toolbar::-webkit-scrollbar { display: none !important; }
  section.stats, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 620px) {
  :root { --cl-page-gutter: 12px; }
  body > header, header { padding: 12px var(--cl-page-gutter) !important; }
  .brand .brand-subtitle, .brand-subtitle { display: none !important; }
  .title, .header-tools, .hero-copy { margin-top: 0 !important; align-items: flex-end !important; }
  .lang select { max-width: 148px !important; }
  section.stats, .stats { grid-template-columns: 1fr !important; gap: 12px !important; }
  .stat { min-height: 92px !important; }
  .card, .panel, .tile { overflow-x: auto !important; }
  .card h2, .panel h2, .tile h3 { min-width: max-content; }
}

/* Unified Shell v5.
   This is the canonical layout contract for every authenticated page. It
   normalizes the page grid and typography without changing page behaviour. */
:root {
  --cl-page-gutter: clamp(14px, 2.25vw, 32px);
  --cl-shell-radius: 3px;
  --cl-shell-shadow: 0 14px 38px rgba(8, 13, 61, .075);
}

html {
  font-family: var(--font-body) !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body,
button,
input,
select,
textarea,
table,
th,
td,
nav,
.toolbar,
.nav-row {
  font-family: var(--font-body) !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.card-title,
.panel-title,
.stat b,
.stat strong,
.activity-project,
.login-wordmark-title {
  font-family: var(--font-display) !important;
}
pre,
code,
kbd,
samp,
.mono,
.code,
.hash,
.key,
.url,
.context-link,
.copy-url {
  font-family: var(--font-mono) !important;
}

body:not(.login-page) {
  min-width: 0 !important;
  padding: 0 !important;
  background-color: #f4f6f9 !important;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(41, 45, 130, .032) .7px, transparent .8px),
    radial-gradient(circle at 88% 7%, rgba(32, 217, 230, .07), transparent 28rem) !important;
  background-size: 24px 24px, auto !important;
  background-attachment: fixed, fixed !important;
}
body:not(.login-page)::before {
  display: none !important;
  content: none !important;
}
body:not(.login-page) > .topline,
body:not(.login-page) > header > .brand-strip {
  display: none !important;
}

/* Header, navigation and content always share the same grid. */
body:not(.login-page) > header,
body:not(.login-page) > header.site-header,
body:not(.login-page) > header.top,
body:not(.login-page) > nav,
body:not(.login-page) > nav.toolbar,
body:not(.login-page) > main,
body:not(.login-page) > main.page,
body:not(.login-page) > main.shell {
  width: calc(100% - (var(--cl-page-gutter) * 2)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body:not(.login-page) > header,
body:not(.login-page) > header.site-header,
body:not(.login-page) > header.top {
  min-height: 86px !important;
  padding: 16px 22px !important;
  border: 1px solid var(--line) !important;
  border-top: 0 !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 8px 28px rgba(8, 13, 61, .055) !important;
}
body:not(.login-page) > header .masthead {
  width: 100% !important;
  max-width: none !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body:not(.login-page) > header .masthead > .heading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 180px !important;
  margin: 0 !important;
  text-align: right !important;
}
body:not(.login-page) > header .masthead > .heading > h1,
body:not(.login-page) > header .masthead > .heading > .sub {
  display: none !important;
}
body:not(.login-page) > header .language-switch,
body:not(.login-page) > header .lang,
body:not(.login-page) > header .lang-picker,
body:not(.login-page) > header .header-tools,
body:not(.login-page) > header .title {
  margin: 0 !important;
}
body.organization-page > header .header-tools,
body.user-edit-page > header .header-tools {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  text-align: right !important;
}
body.organization-page > header .header-tools > div,
body.user-edit-page > header .header-tools > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 1px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
body.organization-page > header .header-tools h1,
body.user-edit-page > header .header-tools > div > div:first-child {
  margin: 0 !important;
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}
body:not(.login-page) > header select {
  min-width: 168px !important;
  min-height: 40px !important;
}

body:not(.login-page) > nav,
body:not(.login-page) > nav.toolbar {
  min-height: 56px !important;
  margin-top: 0 !important;
  margin-bottom: 28px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 3px solid var(--accent) !important;
  border-radius: 0 0 var(--cl-shell-radius) var(--cl-shell-radius) !important;
  background:
    radial-gradient(circle at 88% 35%, rgba(32, 217, 230, .13), transparent 24rem),
    #080d3d !important;
  box-shadow: 0 12px 28px rgba(8, 13, 61, .13) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}
body:not(.login-page) > nav::-webkit-scrollbar,
body:not(.login-page) > nav.toolbar::-webkit-scrollbar {
  display: none !important;
}
body:not(.login-page) > nav a,
body:not(.login-page) > nav a.btn,
body:not(.login-page) > nav a.button,
body:not(.login-page) > nav.toolbar a,
body:not(.login-page) > nav.toolbar a.btn {
  flex: 0 0 auto !important;
  min-height: 53px !important;
  padding: 16px 14px 14px !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #cbd3e6 !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: .035em !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}
body:not(.login-page) > nav a:hover,
body:not(.login-page) > nav a.btn:hover,
body:not(.login-page) > nav.toolbar a:hover,
body:not(.login-page) > nav.toolbar a.btn:hover {
  border-bottom-color: rgba(32, 217, 230, .62) !important;
  background: rgba(32, 217, 230, .075) !important;
  color: #fff !important;
}
body:not(.login-page) > nav a.active,
body:not(.login-page) > nav a.btn.active,
body:not(.login-page) > nav.toolbar a.active,
body:not(.login-page) > nav.toolbar a.btn.active,
body:not(.login-page) > nav a.primary,
body:not(.login-page) > nav.toolbar a.primary {
  border-bottom-color: var(--accent) !important;
  background: rgba(32, 217, 230, .07) !important;
  color: #fff !important;
}

body:not(.login-page) > main,
body:not(.login-page) > main.page,
body:not(.login-page) > main.shell {
  padding: 4px 0 96px !important;
}
.fixed-actions {
  left: 50% !important;
  right: auto !important;
  width: min(var(--cl-page-width), calc(100% - (var(--cl-page-gutter) * 2))) !important;
  max-width: var(--cl-page-width) !important;
  transform: translateX(-50%) !important;
}
.card,
.panel,
.tile,
.stat,
body:not(.project-page):not(.mcp-page) .grid > section {
  border-radius: var(--cl-shell-radius) !important;
  box-shadow: var(--cl-shell-shadow) !important;
}
.card h2,
.panel h2,
.tile h3,
.section-title {
  font-weight: 650 !important;
  letter-spacing: -.022em !important;
}
body:not(.login-page) p,
body:not(.login-page) li,
body:not(.login-page) td,
body:not(.login-page) label {
  letter-spacing: 0 !important;
}
.btn,
.button,
.back,
button,
input[type=submit] {
  font-family: var(--font-body) !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}

/* Secondary navigation remains visually distinct from the shared site menu. */
.nav-row {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 20px !important;
}
body.project-page .contract-tabs,
body.mcp-page .transport-strip,
body.mcp-page .agent-guide > .panel-body > .tab-strip {
  border-bottom: 1px solid var(--line) !important;
  background: #eef1f7 !important;
}
body.project-page .contract-tab,
body.mcp-page .transport-strip .tab-button,
body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button,
.nav-row a,
.nav-row a.button,
.nav-row a.btn {
  min-height: 48px !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-top: 4px solid transparent !important;
  border-radius: 0 !important;
  background: #eef1f7 !important;
  color: #4e5870 !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}
body.project-page .contract-tab.active,
body.mcp-page .transport-strip .tab-button.is-active,
body.mcp-page .agent-guide > .panel-body > .tab-strip .tab-button.is-active,
.nav-row a.active,
.nav-row a.primary {
  border-top-color: var(--accent) !important;
  background: #fff !important;
  color: var(--accent-2) !important;
  box-shadow: inset 0 -1px #fff !important;
}

@media (max-width: 980px) {
  :root { --cl-page-gutter: 14px; }
  body:not(.login-page) > header,
  body:not(.login-page) > header.site-header,
  body:not(.login-page) > header.top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 76px !important;
    padding: 12px 16px !important;
  }
  body:not(.login-page) > header .masthead {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  body:not(.login-page) > nav,
  body:not(.login-page) > nav.toolbar {
    margin-bottom: 20px !important;
    padding-inline: 6px !important;
  }
}
@media (max-width: 620px) {
  :root { --cl-page-gutter: 10px; }
  body:not(.login-page) { --cl-page-gutter: 10px !important; }
  body:not(.login-page) > header,
  body:not(.login-page) > header.site-header,
  body:not(.login-page) > header.top {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-inline: 12px !important;
  }
  body:not(.login-page) > header .masthead { gap: 8px !important; }
  body:not(.login-page) > header .masthead > .heading {
    min-width: 124px !important;
    margin-left: auto !important;
  }
  body:not(.login-page) > header .language-switch { margin-left: auto !important; }
  body:not(.login-page) > header .brand { min-width: 0 !important; padding-left: 46px !important; }
  body:not(.login-page) > header .brand::before { width: 34px !important; height: 34px !important; }
  body:not(.login-page) > header .brand::after { font-size: 15px !important; }
  body:not(.login-page) > header select { min-width: 124px !important; max-width: 132px !important; }
  body.organization-page > header .header-tools > div,
  body.user-edit-page > header .header-tools > div { display: none !important; }
  body:not(.login-page) > nav a,
  body:not(.login-page) > nav a.btn,
  body:not(.login-page) > nav.toolbar a,
  body:not(.login-page) > nav.toolbar a.btn {
    min-height: 49px !important;
    padding: 14px 12px 12px !important;
  }
}

body:not(.login-page) .fixed-actions {
  width: calc(100% - (var(--cl-page-gutter) * 2)) !important;
  max-width: none !important;
}

/* Information Cards v6.
   Shared visual grammar for program surfaces and numeric information cards. */
:root {
  --cl-card-bg: rgba(255, 255, 255, .985);
  --cl-card-line: #dce3ed;
  --cl-card-radius: 10px;
  --cl-card-shadow: 0 12px 30px rgba(25, 35, 72, .075), 0 2px 7px rgba(25, 35, 72, .035);
  --cl-card-shadow-hover: 0 18px 40px rgba(25, 35, 72, .11), 0 3px 9px rgba(25, 35, 72, .045);
}

body:not(.login-page) .card,
body:not(.login-page) .panel,
body:not(.login-page) .tile,
body:not(.login-page) .mini-card,
body:not(.login-page) .placement-card,
body:not(.login-page) .file-card,
body:not(.login-page) .knowledge-card,
body:not(.login-page) .list-card,
body:not(.login-page):not(.project-page):not(.mcp-page) main > .grid > section {
  border: 1px solid var(--cl-card-line) !important;
  border-radius: var(--cl-card-radius) !important;
  background: var(--cl-card-bg) !important;
  box-shadow: var(--cl-card-shadow) !important;
}

body:not(.login-page) .card::before,
body:not(.login-page) .panel::before,
body:not(.login-page) .tile::before,
body:not(.login-page):not(.project-page):not(.mcp-page) main > .grid > section::before {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 3px !important;
  border-radius: var(--cl-card-radius) var(--cl-card-radius) 0 0 !important;
  background: linear-gradient(90deg, var(--accent) 0 26%, var(--accent-2) 26% 70%, rgba(41, 45, 130, .16) 70% 100%) !important;
}

body:not(.login-page) .card > h2,
body:not(.login-page) .panel > h2,
body:not(.login-page) .tile > h3,
body:not(.login-page) .card-titlebar,
body:not(.login-page) .card-title-row,
body:not(.login-page):not(.project-page):not(.mcp-page) main > .grid > section > h2 {
  min-height: 58px !important;
  margin: 0 !important;
  padding: 17px 18px 14px !important;
  border-bottom: 1px solid var(--cl-card-line) !important;
  background: linear-gradient(180deg, rgba(247, 250, 253, .96), rgba(255, 255, 255, .92)) !important;
}

body:not(.login-page) .card > h2,
body:not(.login-page) .panel > h2,
body:not(.login-page) .tile > h3,
body:not(.login-page) .card-titlebar h2,
body:not(.login-page) .card-title-row h2,
body:not(.login-page):not(.project-page):not(.mcp-page) main > .grid > section > h2 {
  color: #17204f !important;
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em !important;
}

section.stats,
.stats,
.metrics {
  gap: clamp(12px, 1.15vw, 20px) !important;
}

body:not(.login-page) .stat,
body:not(.login-page) .metric {
  --cl-info-accent: var(--accent-2);
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  min-height: 128px !important;
  padding: 20px 22px 18px 25px !important;
  overflow: hidden !important;
  border: 1px solid var(--cl-card-line) !important;
  border-top: 1px solid var(--cl-card-line) !important;
  border-radius: var(--cl-card-radius) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.995) 0 58%, rgba(32,217,230,.045) 100%) !important;
  box-shadow: var(--cl-card-shadow) !important;
}

body:not(.login-page) .stat::before,
body:not(.login-page) .metric::before {
  content: "" !important;
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  height: auto !important;
  border-radius: var(--cl-card-radius) 0 0 var(--cl-card-radius) !important;
  background: linear-gradient(180deg, var(--accent), var(--cl-info-accent)) !important;
}

body:not(.login-page) .stat::after,
body:not(.login-page) .metric::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  right: -38px !important;
  bottom: -52px !important;
  top: auto !important;
  width: 142px !important;
  height: 142px !important;
  border: 1px solid rgba(32, 217, 230, .13) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(32,217,230,.11) 0 2px, transparent 2.5px) 0 0 / 13px 13px,
    rgba(32,217,230,.025) !important;
}

body:not(.login-page) .stat:nth-child(3n + 2),
body:not(.login-page) .metric:nth-child(3n + 2) { --cl-info-accent: #3154a4; }
body:not(.login-page) .stat:nth-child(3n),
body:not(.login-page) .metric:nth-child(3n) { --cl-info-accent: #0c938e; }

body:not(.login-page) .stat span,
body:not(.login-page) .stat .l,
body:not(.login-page) .stat > span:first-child,
body:not(.login-page) .metric .label {
  position: relative !important;
  z-index: 3 !important;
  min-height: 0 !important;
  margin: 0 !important;
  color: #657089 !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}

body:not(.login-page) .stat b,
body:not(.login-page) .stat strong,
body:not(.login-page) .metric .value {
  position: relative !important;
  z-index: 3 !important;
  margin: 15px 0 0 !important;
  color: #171f62 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 2.15vw, 38px) !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
  font-variant-numeric: tabular-nums !important;
}

body:not(.login-page) .stat.user-stat b {
  max-width: calc(100% - 22px) !important;
  font-size: clamp(20px, 1.55vw, 27px) !important;
  line-height: 1.08 !important;
  overflow-wrap: anywhere !important;
}

body:not(.login-page) .metric .delta {
  position: relative !important;
  z-index: 3 !important;
  min-height: 17px !important;
  margin-top: 10px !important;
  color: #758097 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.project-page .task-stat {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto 1fr !important;
  align-items: start !important;
  column-gap: 14px !important;
}
body.project-page .task-stat .stat-head {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
body.project-page .task-stat > span { align-self: end !important; }
body.project-page .task-stat > b { align-self: end !important; }

@media (hover: hover) {
  body:not(.login-page) .stat:hover,
  body:not(.login-page) .metric:hover,
  body:not(.login-page) .mini-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(32, 181, 197, .42) !important;
    box-shadow: var(--cl-card-shadow-hover) !important;
  }
}

@media (max-width: 620px) {
  body:not(.login-page) .stat,
  body:not(.login-page) .metric {
    min-height: 108px !important;
    padding: 17px 18px 15px 21px !important;
  }
  body:not(.login-page) .stat b,
  body:not(.login-page) .stat strong,
  body:not(.login-page) .metric .value { font-size: 29px !important; }
}

/* Login travels with the shared theme. Higher specificity intentionally wins
   over legacy page-local presentation without changing form or auth logic. */
html body.login-page {
  font-family: var(--font-body) !important;
  background:
    radial-gradient(circle at 72% 24%, rgba(32,217,230,.18), transparent 24rem),
    repeating-linear-gradient(135deg, rgba(32,217,230,.06) 0 2px, transparent 2px 18px),
    #080d3d !important;
}
html body.login-page .login-layout .login-card,
html body.login-page .login-layout .login-side {
  border-color: #dfe3eb !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,.28) !important;
  font-family: var(--font-body) !important;
}
html body.login-page .login-layout .login-card { border-radius: 2px 0 0 2px !important; }
html body.login-page .login-layout .login-side { border-radius: 0 2px 2px 0 !important; }
html body.login-page .login-card-mark {
  border-radius: 2px !important;
  background: linear-gradient(145deg,#2ae4ee,#11b8cf) !important;
  color: #050936 !important;
  font-family: var(--font-display) !important;
  box-shadow: 0 18px 36px rgba(19,190,207,.24) !important;
}
html body.login-page .login-wordmark-title {
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -.03em !important;
}
html body.login-page .login-wordmark-line { background: var(--accent) !important; }
html body.login-page .login-claim {
  color: var(--accent-2) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}
html body.login-page .login-card .field input {
  border-color: #cbd1de !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--ink) !important;
}
html body.login-page .login-card .field input:focus {
  border-color: var(--accent-dark) !important;
  box-shadow: 0 0 0 3px rgba(32,217,230,.16) !important;
}
html body.login-page .login-card .btn-login {
  border-radius: 2px !important;
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}
html body.login-page .login-card .btn-login:hover { background: #16c6d5 !important; }
html body.login-page .login-powered strong { color: var(--accent-2) !important; }
html body.login-page .login-trace-card {
  border-radius: 2px !important;
  background: linear-gradient(135deg,#e9fbfd,#f2f3fb) !important;
}
html body.login-page .login-trace-card strong { color: var(--accent-2) !important; }
@media (max-width: 520px) {
  html body.login-page .login-layout { grid-template-columns: 1fr !important; }
  html body.login-page .login-layout .login-card { border-radius: 2px 2px 0 0 !important; }
  html body.login-page .login-layout .login-side { border-radius: 0 0 2px 2px !important; }
}

/* Navigation legibility baseline shared by every authenticated surface. */
body:not(.login-page) > nav a,
body:not(.login-page) > nav a.btn,
body:not(.login-page) > nav a.button,
body:not(.login-page) > nav.toolbar a,
body:not(.login-page) > nav.toolbar a.btn {
  gap: 10px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  font-size: 14px !important;
}
body:not(.login-page) > nav a::before,
body:not(.login-page) > nav.toolbar a::before {
  width: 20px !important;
  font-size: 17px !important;
}
@media (max-width: 980px) {
  body:not(.login-page) > nav a,
  body:not(.login-page) > nav a.btn,
  body:not(.login-page) > nav.toolbar a,
  body:not(.login-page) > nav.toolbar a.btn {
    padding-left: 13px !important;
    padding-right: 13px !important;
    font-size: 13px !important;
  }
}

/* Final v10 cascade guard: later legacy bundles must not restore decoration
   or split the label and value across the full card height. */
html body:not(.login-page) .stat,
html body:not(.login-page) .metric {
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 20px 22px 18px !important;
  border: 1px solid var(--cl-card-line) !important;
  background: #fff !important;
  background-image: none !important;
  text-align: right !important;
}
html body:not(.login-page) .stat::before,
html body:not(.login-page) .stat::after,
html body:not(.login-page) .metric::before,
html body:not(.login-page) .metric::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
html body:not(.login-page) .stat > span,
html body:not(.login-page) .stat > b,
html body:not(.login-page) .stat > strong,
html body:not(.login-page) .metric .label,
html body:not(.login-page) .metric .value,
html body:not(.login-page) .metric .delta {
  align-self: flex-end !important;
  margin-left: auto !important;
  text-align: right !important;
}
html body:not(.login-page) .stat > b,
html body:not(.login-page) .stat > strong,
html body:not(.login-page) .metric .value {
  margin-top: 0 !important;
}
html body.project-page .task-stat {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto 1fr auto !important;
  gap: 8px 14px !important;
  align-items: stretch !important;
}
html body.project-page .task-stat .stat-head {
  grid-column: 1 / -1 !important;
  align-self: start !important;
  margin: 0 !important;
  text-align: left !important;
}
html body.project-page .task-stat > span {
  grid-column: 1 !important;
  grid-row: 3 !important;
  align-self: end !important;
  justify-self: end !important;
}
html body.project-page .task-stat > b {
  grid-column: 2 !important;
  grid-row: 3 !important;
  align-self: end !important;
  justify-self: end !important;
}
@media (max-width: 620px) {
  html body:not(.login-page) .stat,
  html body:not(.login-page) .metric {
    padding: 17px 18px 15px !important;
  }
}

/* Master-detail shell v11: list and detail are two panes of one card. */
html body.project-page .knowledge-workspace,
html body.project-page .narrative-workspace,
html body.project-page .contribution-workspace {
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--cl-card-line) !important;
  border-radius: var(--cl-card-radius) !important;
  background: #fff !important;
  box-shadow: var(--cl-card-shadow) !important;
}
html body.project-page .knowledge-workspace > .card,
html body.project-page .narrative-workspace > .card,
html body.project-page .contribution-workspace > .card {
  min-width: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body.project-page .knowledge-workspace > .card + .card,
html body.project-page .narrative-workspace > .card + .card,
html body.project-page .contribution-workspace > .card + .card {
  border-left: 1px solid var(--cl-card-line) !important;
}
html body.project-page .knowledge-detail > h2,
html body.project-page .narrative-detail > h2,
html body.project-page .contribution-detail > h2 {
  flex: 0 0 auto !important;
}
html body.project-page .knowledge-detail-body,
html body.project-page .narrative-detail-body,
html body.project-page .contribution-detail-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
@media (max-width: 1100px) {
  html body.project-page .knowledge-workspace > .card + .card,
  html body.project-page .narrative-workspace > .card + .card,
  html body.project-page .contribution-workspace > .card + .card {
    border-top: 1px solid var(--cl-card-line) !important;
    border-left: 0 !important;
  }
}

/* Master-detail headers v12: title first, controls on their own aligned row. */
html body.project-page {
  --cl-workspace-title-min-height: 58px;
  --cl-workspace-control-height: 44px;
  --cl-workspace-header-padding-x: 16px;
}
html body.project-page .knowledge-workspace .command-head,
html body.project-page .narrative-workspace > .card:first-child > .card-titlebar,
html body.project-page .contribution-workspace > .card:first-child > .card-titlebar {
  background: #fff !important;
}
html body.project-page .knowledge-workspace .command-head {
  height: var(--cl-workspace-title-min-height) !important;
  min-height: var(--cl-workspace-title-min-height) !important;
  padding: 10px var(--cl-workspace-header-padding-x) !important;
  align-items: center !important;
}
html body.project-page .knowledge-workspace .command-head p {
  display: none !important;
}
html body.project-page .knowledge-workspace .command-count {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
html body.project-page .knowledge-workspace .command-count span {
  display: inline !important;
  font-size: 11px !important;
  line-height: 1 !important;
}
html body.project-page .knowledge-workspace .command-head h2,
html body.project-page .narrative-workspace > .card:first-child > .card-titlebar h2,
html body.project-page .contribution-workspace > .card:first-child > .card-titlebar h2,
html body.project-page .knowledge-detail > h2,
html body.project-page .narrative-detail > h2,
html body.project-page .contribution-detail > h2 {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body.project-page .knowledge-detail > h2,
html body.project-page .narrative-detail > h2,
html body.project-page .contribution-detail > h2 {
  display: flex !important;
  min-height: var(--cl-workspace-title-min-height) !important;
  align-items: center !important;
  padding: 14px var(--cl-workspace-header-padding-x) !important;
}
html body.project-page .narrative-workspace > .card:first-child > .card-titlebar,
html body.project-page .contribution-workspace > .card:first-child > .card-titlebar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
}
html body.project-page .narrative-workspace > .card:first-child > .card-titlebar h2,
html body.project-page .contribution-workspace > .card:first-child > .card-titlebar h2 {
  display: flex !important;
  min-height: var(--cl-workspace-title-min-height) !important;
  align-items: center !important;
  padding: 14px var(--cl-workspace-header-padding-x) !important;
  border-bottom: 1px solid var(--cl-card-line) !important;
}
html body.project-page .narrative-workspace .tag-filter,
html body.project-page .contribution-workspace .tag-filter {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto auto !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 68px !important;
  padding: 12px var(--cl-workspace-header-padding-x) !important;
  align-items: center !important;
  background: #fbfdfb !important;
}
html body.project-page .knowledge-workspace .filter-grid {
  padding: 12px var(--cl-workspace-header-padding-x) !important;
  gap: 10px !important;
  background: #fbfdfb !important;
}
html body.project-page .knowledge-workspace .filter-grid input,
html body.project-page .knowledge-workspace .filter-grid select,
html body.project-page .knowledge-workspace .filter-grid button,
html body.project-page .narrative-workspace .tag-filter input,
html body.project-page .narrative-workspace .tag-filter button,
html body.project-page .contribution-workspace .tag-filter input,
html body.project-page .contribution-workspace .tag-filter button {
  height: var(--cl-workspace-control-height) !important;
  min-height: var(--cl-workspace-control-height) !important;
  padding: 0 13px !important;
  border: 1px solid var(--cl-card-line) !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
html body.project-page .knowledge-workspace .filter-grid button,
html body.project-page .narrative-workspace .tag-filter button,
html body.project-page .contribution-workspace .tag-filter button {
  min-width: 96px !important;
  justify-content: center !important;
}
html body.project-page .narrative-workspace .tag-filter .tag-combo,
html body.project-page .contribution-workspace .tag-filter .tag-combo,
html body.project-page .narrative-workspace .tag-filter .tag-combo input,
html body.project-page .contribution-workspace .tag-filter .tag-combo input {
  width: 100% !important;
  min-width: 0 !important;
}
html body.project-page .narrative-workspace .tag-count,
html body.project-page .contribution-workspace .tag-count {
  min-width: 92px !important;
  text-align: right !important;
}
@media (max-width: 620px) {
  html body.project-page .narrative-workspace .tag-filter,
  html body.project-page .contribution-workspace .tag-filter {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  html body.project-page .narrative-workspace .tag-filter .tag-combo,
  html body.project-page .contribution-workspace .tag-filter .tag-combo {
    grid-column: 1 / -1 !important;
  }
}

/* Detail viewport v19: the card stays fixed; only full content scrolls. */
html body.project-page .knowledge-detail-body,
html body.project-page .narrative-detail-body,
html body.project-page .contribution-detail-body {
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}
html body.project-page .detail-content.active,
html body.project-page .narrative-detail-content.active,
html body.project-page .contribution-detail-content.active {
  display: flex !important;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
html body.project-page .knowledge-detail .detail-text-section,
html body.project-page .narrative-detail .detail-text-section,
html body.project-page .contribution-detail .detail-text-section {
  display: flex !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
}
html body.project-page .knowledge-detail .detail-text,
html body.project-page .narrative-detail .narrative-detail-text,
html body.project-page .contribution-detail .contribution-detail-text {
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* Project data cards v24: strong hierarchy and stable corner anchoring. */
html body.project-page section.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.1vw, 20px) !important;
  margin-bottom: 24px !important;
}
html body.project-page section.stats .stat {
  display: flex !important;
  min-width: 0 !important;
  height: 130px !important;
  min-height: 130px !important;
  padding: 18px 18px 16px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
}
html body.project-page section.stats .stat .stat-title {
  align-self: flex-start !important;
  margin: 0 !important;
  color: #171f62 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(24px, 1.55vw, 29px) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  text-align: left !important;
  text-transform: uppercase !important;
}
html body.project-page section.stats .stat > b {
  align-self: flex-end !important;
  margin: auto 0 0 auto !important;
  color: #171f62 !important;
  font-size: clamp(34px, 2.15vw, 41px) !important;
  font-weight: 700 !important;
  line-height: .95 !important;
  text-align: right !important;
}
html body.project-page section.stats .task-stat-bottom {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: auto !important;
  grid-template-columns: minmax(150px, 245px) minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: end !important;
}
html body.project-page section.stats .task-stat-bottom select {
  width: 100% !important;
  min-width: 0 !important;
  height: 39px !important;
  padding: 0 13px !important;
  border-radius: 2px !important;
  background: #fff !important;
  font-size: 13px !important;
}
html body.project-page section.stats .stat-total {
  display: flex !important;
  min-width: 0 !important;
  align-items: flex-end !important;
  justify-content: flex-end !important;
  gap: 11px !important;
  white-space: nowrap !important;
}
html body.project-page section.stats .stat-total span {
  align-self: flex-end !important;
  margin: 0 0 2px !important;
  color: #657089 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .06em !important;
  text-align: right !important;
  text-transform: uppercase !important;
}
html body.project-page section.stats .stat-total b {
  margin: 0 !important;
  color: #171f62 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(34px, 2.15vw, 41px) !important;
  font-weight: 700 !important;
  line-height: .95 !important;
  text-align: right !important;
}
@media (max-width: 1100px) {
  html body.project-page section.stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 620px) {
  html body.project-page section.stats {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  html body.project-page section.stats .stat {
    height: 118px !important;
    min-height: 118px !important;
    padding: 16px !important;
  }
  html body.project-page section.stats .task-stat-bottom {
    grid-template-columns: minmax(140px, 1fr) auto !important;
  }
}
@media (max-width: 620px) {
  html body.project-page .contribution-workspace > .card {
    height: 640px !important;
    min-height: 640px !important;
    max-height: 640px !important;
  }
  html body.project-page .knowledge-detail .detail-grid,
  html body.project-page .narrative-detail .detail-grid,
  html body.project-page .contribution-detail .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

/* Dashboard data cards v25: the project-card hierarchy across all six KPIs. */
html body.dashboard-page section.stats {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1vw, 20px) !important;
  margin-bottom: 24px !important;
}
html body.dashboard-page section.stats .stat {
  display: flex !important;
  min-width: 0 !important;
  height: 130px !important;
  min-height: 130px !important;
  padding: 18px 18px 16px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
}
html body.dashboard-page section.stats .stat .stat-title {
  align-self: flex-start !important;
  min-height: 0 !important;
  margin: 0 !important;
  color: #171f62 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(15px, 1.15vw, 21px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -.015em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  overflow-wrap: anywhere !important;
}
html body.dashboard-page section.stats .stat > b {
  align-self: flex-end !important;
  max-width: 100% !important;
  margin: auto 0 0 auto !important;
  color: #171f62 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 2vw, 40px) !important;
  font-weight: 700 !important;
  line-height: .95 !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
}
html body.dashboard-page section.stats .user-stat > b {
  font-size: clamp(21px, 1.45vw, 28px) !important;
  line-height: 1 !important;
}
@media (max-width: 1400px) {
  html body.dashboard-page section.stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 800px) {
  html body.dashboard-page section.stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  html body.dashboard-page section.stats {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  html body.dashboard-page section.stats .stat {
    height: 118px !important;
    min-height: 118px !important;
    padding: 16px !important;
  }
}

/* Dashboard project master-detail v26: one reading surface, no activity feed. */
html body.dashboard-page {
  --cl-workspace-control-height: 44px;
}
html body.dashboard-page .dashboard-workspace {
  display: grid !important;
  height: 650px !important;
  min-height: 650px !important;
  margin-bottom: 24px !important;
  grid-template-columns: minmax(0, 2fr) minmax(380px, 1fr) !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid #cbd5e3 !important;
  border-radius: var(--cl-card-radius) !important;
  background: #fff !important;
  box-shadow: var(--cl-card-shadow) !important;
}
html body.dashboard-page .dashboard-workspace > .card {
  display: flex !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body.dashboard-page .dashboard-workspace > .card::before {
  display: none !important;
  content: none !important;
}
html body.dashboard-page .dashboard-workspace > .dashboard-detail {
  border-left: 1px solid #cbd5e3 !important;
  background: #fff !important;
}
html body.dashboard-page .dashboard-master-head {
  display: grid !important;
  box-sizing: border-box !important;
  min-height: 76px !important;
  padding: 12px 16px !important;
  grid-template-columns: minmax(190px, 1fr) minmax(520px, auto) !important;
  gap: 16px !important;
  align-items: center !important;
  border-bottom: 0 !important;
  background: #fff !important;
}
html body.dashboard-page .dashboard-master-head h2,
html body.dashboard-page .dashboard-detail > h2 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
}
html body.dashboard-page .dashboard-master-head h2 {
  padding: 0 !important;
  border: 0 !important;
}
html body.dashboard-page .dashboard-detail > h2 {
  display: flex !important;
  box-sizing: border-box !important;
  min-height: 76px !important;
  padding: 12px 18px !important;
  align-items: center !important;
  border-bottom: 1px solid #cbd5e3 !important;
  background: #fff !important;
}
html body.dashboard-page .dashboard-filters {
  display: grid !important;
  margin: 0 !important;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto auto !important;
  gap: 10px !important;
  align-items: center !important;
}
html body.dashboard-page .dashboard-filters .field {
  min-width: 0 !important;
}
html body.dashboard-page .dashboard-filters .dashboard-filter-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
html body.dashboard-page .dashboard-filters select,
html body.dashboard-page .dashboard-filters .btn {
  width: 100% !important;
  height: var(--cl-workspace-control-height) !important;
  min-height: var(--cl-workspace-control-height) !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid var(--cl-card-line) !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
html body.dashboard-page .dashboard-filters .btn {
  display: inline-flex !important;
  min-width: 74px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
html body.dashboard-page .dashboard-filters .btn.primary {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}
html body.dashboard-page .dashboard-table-scroll {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow: auto !important;
  border-top: 0 !important;
  scrollbar-gutter: stable !important;
}
html body.dashboard-page .knowledge-table thead {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: #f5f7fb !important;
}
html body.dashboard-page .knowledge-row {
  cursor: pointer !important;
  transition: background-color .18s ease, box-shadow .18s ease !important;
}
html body.dashboard-page .knowledge-row:hover {
  background: #f4fbfb !important;
}
html body.dashboard-page .knowledge-row[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(32, 217, 230, .12), rgba(32, 217, 230, .035)) !important;
  box-shadow: inset 3px 0 0 var(--accent) !important;
}
html body.dashboard-page .knowledge-row:focus-visible {
  outline: 2px solid var(--accent-dark) !important;
  outline-offset: -3px !important;
}
html body.dashboard-page .project-select {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  color: #075fa8 !important;
  font: inherit !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
html body.dashboard-page .project-select:hover,
html body.dashboard-page .project-select:focus-visible {
  color: #004d8c !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
html body.dashboard-page .dashboard-detail-body {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable !important;
}
html body.dashboard-page .project-detail-empty {
  display: flex !important;
  height: 100% !important;
  min-height: 360px !important;
  padding: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 10px !important;
  color: #667089 !important;
  text-align: center !important;
}
html body.dashboard-page .project-detail-empty[hidden] {
  display: none !important;
}
html body.dashboard-page .project-detail-empty strong {
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-size: 22px !important;
}
html body.dashboard-page .project-detail-content {
  padding: 20px !important;
}
html body.dashboard-page .project-detail-content[hidden] {
  display: none !important;
}
html body.dashboard-page .project-detail-hero {
  display: flex !important;
  margin: 0 !important;
  padding: 0 0 16px !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  border-bottom: 1px solid var(--cl-card-line) !important;
  background: #fff !important;
  color: var(--ink) !important;
}
html body.dashboard-page .project-detail-eyebrow {
  display: block !important;
  margin-bottom: 8px !important;
  color: #007d7d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}
html body.dashboard-page .project-detail-hero h3 {
  margin: 0 0 8px !important;
  color: #075fa8 !important;
  font-family: var(--font-display) !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}
html body.dashboard-page .project-detail-hero code {
  color: #667089 !important;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  overflow-wrap: anywhere !important;
}
html body.dashboard-page .project-detail-hero .pill {
  flex: 0 0 auto !important;
  border: 1px solid rgba(0, 155, 155, .16) !important;
}
html body.dashboard-page .project-detail-description {
  margin: 0 0 18px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--cl-card-line) !important;
  color: #4e5a70 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
html body.dashboard-page .project-detail-metrics {
  display: grid !important;
  margin-bottom: 20px !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 7px !important;
}
html body.dashboard-page .project-detail-metrics > div {
  min-width: 0 !important;
  padding: 10px 8px !important;
  border: 1px solid #dce6ed !important;
  border-radius: 2px !important;
  background: #f7fbfb !important;
  text-align: right !important;
}
html body.dashboard-page .project-detail-metrics span {
  display: block !important;
  min-height: 22px !important;
  color: #68748a !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
html body.dashboard-page .project-detail-metrics b {
  display: block !important;
  margin-top: 5px !important;
  color: #171f62 !important;
  font-family: var(--font-display) !important;
  font-size: 21px !important;
  line-height: 1 !important;
}
html body.dashboard-page .project-detail-section {
  padding: 17px 0 !important;
  border-top: 1px solid var(--cl-card-line) !important;
}
html body.dashboard-page .project-detail-section h4,
html body.dashboard-page .project-detail-section h5 {
  margin: 0 !important;
  color: var(--ink) !important;
}
html body.dashboard-page .project-detail-section h4 {
  margin-bottom: 12px !important;
  font-size: 12px !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}
html body.dashboard-page .project-detail-section h5 {
  font-size: 17px !important;
  line-height: 1.25 !important;
}
html body.dashboard-page .project-detail-section p {
  margin: 8px 0 0 !important;
  color: #566177 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
html body.dashboard-page .project-detail-section-head,
html body.dashboard-page .project-detail-inline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
html body.dashboard-page .project-detail-section-head h4 {
  margin-bottom: 0 !important;
}
html body.dashboard-page .project-detail-grid {
  display: grid !important;
  margin: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 18px !important;
}
html body.dashboard-page .project-detail-grid > div {
  min-width: 0 !important;
  padding-bottom: 9px !important;
  border-bottom: 1px solid #e3e8ef !important;
}
html body.dashboard-page .project-detail-grid dt {
  color: #748096 !important;
  font-size: 10px !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
html body.dashboard-page .project-detail-grid dd {
  margin: 4px 0 0 !important;
  color: var(--ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
}
html body.dashboard-page .project-detail-inline {
  margin-top: 12px !important;
  color: #5f6b81 !important;
  font-size: 11px !important;
}
html body.dashboard-page .project-detail-repository {
  padding: 11px 12px !important;
  border: 1px solid #dce3eb !important;
  border-radius: 2px !important;
  background: #f7f9fc !important;
  color: #20304f !important;
  font-size: 11px !important;
  overflow-wrap: anywhere !important;
}
html body.dashboard-page .project-detail-open {
  display: flex !important;
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 3px !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}
@media (max-width: 1220px) {
  html body.dashboard-page .dashboard-workspace {
    grid-template-columns: minmax(0, 3fr) minmax(350px, 2fr) !important;
  }
  html body.dashboard-page .dashboard-master-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
@media (max-width: 900px) {
  html body.dashboard-page .dashboard-workspace {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body.dashboard-page .dashboard-master,
  html body.dashboard-page .dashboard-detail {
    height: 570px !important;
  }
  html body.dashboard-page .dashboard-workspace > .dashboard-detail {
    border-top: 1px solid var(--cl-card-line) !important;
    border-left: 0 !important;
  }
}
@media (max-width: 620px) {
  html body.dashboard-page .dashboard-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body.dashboard-page .project-detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  html body.dashboard-page .project-detail-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Graph galaxy v35.18: seamless transition from shared navigation to universe. */
html body.projects-galaxy-page > nav,
html body.projects-galaxy-page > nav.toolbar {
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.projects-galaxy-page > main,
html body.projects-galaxy-page > main.page,
html body.projects-galaxy-page > main.shell {
  padding-top: 0 !important;
}

html body.projects-galaxy-page .projects-universe {
  margin-top: 0 !important;
  border-top: 0 !important;
}

/* AI Guide v36: compact editorial cards aligned with the shared CoL language. */
html body.ai-guide-page > header .heading > h1,
html body.ai-guide-page > header .heading > .sub { display: none !important; }

html body.ai-guide-page > header .heading { margin-left: auto !important; }

html body.ai-guide-page > nav {
  margin-bottom: 0 !important;
  border-radius: 0 !important;
}

html body.ai-guide-page > main {
  width: auto !important;
  max-width: none !important;
  margin: 0 32px !important;
  padding: 24px 0 112px !important;
}

html body.ai-guide-page .guide-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
  padding: 0 2px 18px;
  border-bottom: 1px solid var(--line);
}

html body.ai-guide-page .guide-page-head h1 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: clamp(27px, 2.2vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
}

html body.ai-guide-page .guide-page-head p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

html body.ai-guide-page .guide-eyebrow {
  color: #007c8e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html body.ai-guide-page .guide-page-head .back {
  flex: 0 0 auto;
  min-height: 40px;
  margin: 0 !important;
  border: 1px solid #cfd6e3 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

html body.ai-guide-page main > .grid {
  display: block !important;
  column-count: 2;
  column-gap: 16px;
}

html body.ai-guide-page main > .grid > section {
  display: inline-block !important;
  position: relative;
  width: 100%;
  margin: 0 0 16px !important;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid #d8deea !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(8, 13, 61, .055) !important;
  vertical-align: top;
}

html body.ai-guide-page main > .grid > section::before { display: none !important; }

html body.ai-guide-page main > .grid > section > h2 {
  min-height: 56px !important;
  margin: 0 !important;
  padding: 17px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

html body.ai-guide-page main > .grid > section > .content {
  padding: 16px 18px 18px !important;
  color: #252d50 !important;
  font-size: 13.5px;
  line-height: 1.55;
}

html body.ai-guide-page .content > :first-child { margin-top: 0; }
html body.ai-guide-page .content > :last-child { margin-bottom: 0; }
html body.ai-guide-page .content li + li { margin-top: 7px; }
html body.ai-guide-page .content a { color: #086ca5; }

html body.ai-guide-page:not(.project-page):not(.mcp-page) main .callout {
  margin: 12px 0 0 !important;
  padding: 12px 14px !important;
  border: 1px solid #dbe3ed !important;
  border-left: 3px solid var(--accent-dark) !important;
  border-radius: 6px !important;
  background: #f7fafc !important;
  color: #252d50 !important;
}

html body.ai-guide-page:not(.project-page):not(.mcp-page) main .callout strong { color: var(--ink) !important; }

html body.ai-guide-page .primary-share {
  gap: 10px !important;
  margin-top: 12px;
  padding: 14px !important;
  border: 1px solid #cfdbe7 !important;
  border-radius: 8px !important;
  background: #f4fbfc !important;
  box-shadow: none !important;
  animation: none !important;
}

html body.ai-guide-page .share-header { color: var(--ink) !important; }

html body.ai-guide-page .copy-button,
html body.ai-guide-page .fixed-action-button {
  border-color: var(--accent) !important;
  border-radius: 3px !important;
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  box-shadow: none !important;
}

html body.ai-guide-page .copy-button:hover,
html body.ai-guide-page .fixed-action-button:hover {
  border-color: var(--accent-dark) !important;
  background: var(--accent-dark) !important;
  color: #fff !important;
}

html body.ai-guide-page .fixed-action-button.secondary {
  border-color: #cfd6e3 !important;
  background: #fff !important;
  color: var(--ink) !important;
}

html body.ai-guide-page .copy-url,
html body.ai-guide-page .link-box {
  border: 1px solid #d8deea !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #151b4d !important;
  box-shadow: none !important;
}

html body.ai-guide-page code {
  overflow-wrap: anywhere;
  color: #142153;
  font-size: .92em;
}

html body.ai-guide-page .fixed-actions {
  border-color: var(--accent) !important;
  border-radius: 10px !important;
  background: #070d4b !important;
  color: #fff !important;
}

html body.ai-guide-page .fixed-actions strong { color: #fff !important; }

@media (max-width: 1080px) {
  html body.ai-guide-page main > .grid { column-count: 1; }
}

@media (max-width: 720px) {
  html body.ai-guide-page > main { margin: 0 14px !important; padding-top: 16px !important; }
  html body.ai-guide-page .guide-page-head { align-items: stretch; flex-direction: column; gap: 12px; }
  html body.ai-guide-page .guide-page-head .back { align-self: flex-start; }
  html body.ai-guide-page main > .grid > section > h2 { min-height: 0 !important; padding: 15px !important; }
  html body.ai-guide-page main > .grid > section > .content { padding: 15px !important; }
  html body.ai-guide-page .share-header { align-items: stretch; flex-direction: column; }
  html body.ai-guide-page .copy-button { justify-content: center; }
}
