/* CPX Intelligence OS — identidade oficial CPADV 2026. */

@font-face {
  font-family: "Geist CPADV";
  src: url("/assets/fonts/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist CPADV";
  src: url("/assets/fonts/Geist-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist CPADV";
  src: url("/assets/fonts/Geist-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk CPADV";
  src: url("/assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk CPADV";
  src: url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter CPADV";
  src: url("/assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter CPADV";
  src: url("/assets/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --atlantic: #141414;
  --navy: #1e1e1e;
  --cobalt: #c46a1a;
  --cobalt-dark: #ee8600;
  --ice: rgba(196, 106, 26, 0.12);
  --porcelain: #fdfdfd;
  --paper: #fdfdfd;
  --ink: #141414;
  --slate: #626262;
  --line: rgba(20, 20, 20, 0.16);
  --line-dark: #989898;
  --amber: #ee8600;
  --green: #c46a1a;
  --red: #ee8600;
  --display: "Geist CPADV", sans-serif;
  --body: "Inter CPADV", sans-serif;
  --utility: "Space Grotesk CPADV", sans-serif;
  --shadow: 0 24px 65px rgba(20, 20, 20, 0.13);
  --radius-sm: 5px;
  --radius: 6px;
  --radius-lg: 7px;
}

html,
body {
  background: var(--porcelain);
}

body {
  letter-spacing: -0.006em;
}

:focus-visible {
  outline-color: rgba(196, 106, 26, 0.42);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.19em;
}

.button {
  min-height: 42px;
  border-radius: 4px 13px 4px 4px;
  letter-spacing: -0.015em;
  box-shadow: none;
}

.button--primary {
  background: var(--cobalt);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(196, 106, 26, 0.15);
}

.button--primary:hover {
  background: var(--cobalt-dark);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(238, 134, 0, 0.17);
}

.button--quiet {
  border-color: var(--line-dark);
}

.icon-button {
  border-radius: 3px 11px 3px 3px;
}

input,
select,
textarea {
  border-radius: 4px 12px 4px 4px;
  border-color: var(--line);
  background: var(--paper);
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(196, 106, 26, 0.13);
}

/* Login — a primeira aparição do Fio de Continuidade. */

.login-view {
  grid-template-columns: minmax(0, 1.32fr) minmax(390px, 0.68fr);
  background: var(--porcelain);
}

.login-story {
  padding: 42px clamp(34px, 6.6vw, 104px) 48px;
  background: var(--atlantic);
  isolation: isolate;
}

.login-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  right: -16%;
  top: -15%;
  border: 0;
  border-radius: 0;
  background: url("/assets/brand/cpadv-monogram-dark.png") center / contain no-repeat;
  opacity: 0.22;
}

.login-story::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.045) 12% 12.15%, transparent 12.15% 100%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.brand {
  display: block;
  color: var(--paper);
  text-decoration: none;
}

.brand-lockup {
  display: grid;
  gap: 8px;
}

.brand-logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
}

.brand small,
.brand--light small {
  margin: 0 0 0 47px;
  color: var(--cobalt);
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.login-thesis {
  max-width: 820px;
}

.login-thesis .eyebrow {
  color: var(--cobalt);
}

.login-thesis h1 {
  max-width: 800px;
  font-family: var(--display);
  font-size: clamp(54px, 6.2vw, 94px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.login-thesis > p:last-child {
  max-width: 650px;
  color: #989898;
  font-size: 18px;
}

.login-flow {
  position: relative;
  max-width: 790px;
  color: #989898;
}

.login-flow b {
  position: relative;
  height: 2px;
  background: rgba(152, 152, 152, 0.55);
}

.login-flow b::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(238, 134, 0, 0.13);
  animation: cpx-route 5.4s ease-in-out infinite;
}

.login-flow b:nth-of-type(2)::after { animation-delay: 1.8s; }
.login-flow b:nth-of-type(3)::after { animation-delay: 3.6s; }

@keyframes cpx-route {
  0%, 15% { transform: translateX(0); opacity: 0; }
  23%, 78% { opacity: 1; }
  92%, 100% { transform: translateX(calc(100% - 8px)); opacity: 0; }
}

.login-panel {
  position: relative;
  padding: 54px clamp(30px, 5vw, 76px);
  background: var(--porcelain);
}

.login-panel::before {
  content: "ACESSO CONTROLADO";
  position: absolute;
  top: 30px;
  right: 34px;
  color: #626262;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.login-card {
  width: min(100%, 420px);
  padding: 34px;
  gap: 21px;
  border: 1px solid var(--line-dark);
  border-top: 5px solid var(--cobalt);
  border-radius: 3px 28px 3px 3px;
  background: var(--paper);
  box-shadow: 18px 18px 0 rgba(20, 20, 20, 0.07);
}

.login-card h2 {
  font-family: var(--display);
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -0.045em;
}

/* Estrutura principal */

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
  width: 264px;
  padding: 30px 18px 22px;
  color: white;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--atlantic);
  background-size: 100% 38px;
  border-right: 0;
}

.sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 118px;
  background: var(--cobalt);
}

.sidebar .brand {
  color: white;
  margin-bottom: 39px;
}

.sidebar .brand small {
  color: var(--cobalt);
}

.primary-nav {
  gap: 5px;
}

.nav-item {
  position: relative;
  min-height: 43px;
  border-radius: 3px 14px 3px 3px;
  color: #989898;
  font-size: 12px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.nav-item[aria-current="page"] {
  color: var(--ink);
  background: var(--cobalt);
}

.nav-item[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: -18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(238, 134, 0, 0.18);
}

.nav-glyph {
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item[aria-current="page"] .nav-glyph {
  background: rgba(255, 255, 255, 0.17);
}

.nav-count {
  color: #626262;
}

.nav-item[aria-current="page"] .nav-count {
  color: var(--ink);
}

.sidebar-foot {
  border-top-color: rgba(255, 255, 255, 0.13);
}

.sidebar-foot strong { color: white; }
.sidebar-foot small { color: #989898; }
.environment-dot {
  border-color: var(--atlantic);
  background: var(--cobalt);
  box-shadow: 0 0 0 1px rgba(196, 106, 26, 0.45);
}

.workspace {
  grid-column: 2;
  background: var(--porcelain);
}

.topbar {
  height: 94px;
  padding: 0 clamp(24px, 3.2vw, 50px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(16vw, 190px);
  height: 3px;
  background: var(--cobalt);
}

.topbar h1 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.topbar .eyebrow {
  margin-bottom: 2px;
  color: #626262;
}

.user-pill > span:first-child {
  border-radius: 3px 12px 3px 3px;
  background: var(--atlantic);
}

#main-content {
  padding: clamp(30px, 4vw, 62px);
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-stack {
  gap: 24px;
  max-width: 1510px;
}

.page-intro {
  min-height: 126px;
  padding: 2px 0 15px 23px;
  align-items: center;
  border-left: 5px solid var(--cobalt);
}

.page-intro h2 {
  max-width: 890px;
  font-family: var(--display);
  font-size: clamp(31px, 3.3vw, 49px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.page-intro p {
  max-width: 800px;
  color: var(--slate);
}

/* Indicadores operacionais: uma fita, não quatro cartões soltos. */

.stat-strip {
  position: relative;
  grid-template-columns: repeat(4, 1fr);
  border: 0;
  border-radius: 3px 22px 3px 3px;
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(20, 20, 20, 0.05);
}

.stat-strip::before {
  content: "PULSO DO SISTEMA";
  position: absolute;
  z-index: 2;
  right: 18px;
  top: -18px;
  padding: 5px 9px;
  background: var(--atlantic);
  color: white;
  font-family: var(--utility);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.stat {
  min-height: 108px;
  padding: 22px 25px;
  border-color: var(--line);
}

.stat:first-child {
  border-top: 4px solid var(--cobalt);
}

.stat:nth-child(2) { border-top: 4px solid var(--amber); }
.stat:nth-child(3) { border-top: 4px solid #343434; }
.stat:nth-child(4) { border-top: 4px solid var(--amber); }

.stat strong {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 900;
}

.stat small {
  color: var(--slate);
}

/* Assinatura visual: o Fio de Continuidade. */

.intelligence-map {
  position: relative;
  padding: clamp(28px, 3.4vw, 48px);
  overflow: hidden;
  border: 0;
  border-radius: 3px 56px 3px 3px;
  background: var(--atlantic);
  box-shadow: 14px 14px 0 rgba(196, 106, 26, 0.12);
  isolation: isolate;
}

.intelligence-map::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

.intelligence-map::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -105px;
  top: -170px;
  border: 0;
  border-radius: 0;
  background: url("/assets/brand/cpadv-monogram-dark.png") center / contain no-repeat;
  opacity: 0.23;
}

.map-head {
  align-items: end;
}

.map-head h3 {
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.map-head p {
  max-width: 430px;
  color: #989898;
}

.map-flow {
  margin-top: 42px;
  gap: 10px;
}

.map-flow::before {
  left: 8%;
  right: 8%;
  top: 27px;
  height: 3px;
  background: var(--cobalt);
  box-shadow: 0 0 18px rgba(196, 106, 26, 0.55);
}

.map-node {
  min-height: 132px;
  padding: 18px 19px;
  border: 1px solid rgba(152, 152, 152, 0.4);
  border-radius: 3px 24px 3px 3px;
  background: rgba(30, 30, 30, 0.94);
}

.map-node:hover {
  transform: translateY(-5px);
  border-color: #989898;
}

.map-node-index {
  width: 24px;
  height: 24px;
  border: 3px solid var(--cobalt);
  background: white;
  color: var(--atlantic);
}

.map-node strong {
  margin-top: 19px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.map-node small {
  color: #989898;
}

.map-node:last-child {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--atlantic);
}

.map-node:last-child small { color: #343434; }
.map-node:last-child .map-node-index { border-color: white; color: var(--atlantic); }

/* Conteúdo e catálogo */

.dashboard-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.panel,
.table-panel {
  border-color: var(--line);
  border-radius: 3px 22px 3px 3px;
  box-shadow: 7px 7px 0 rgba(20, 20, 20, 0.04);
}

.panel-head {
  min-height: 72px;
  border-bottom-color: var(--line);
}

.panel-head h3 {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.review-row,
.activity-row {
  border-bottom-color: var(--line);
}

.activity-mark,
.entity-glyph {
  border: 0;
  border-radius: 3px 12px 3px 3px;
  background: var(--ice);
  color: var(--ink);
}

.status {
  border-radius: 2px 8px 2px 2px;
  letter-spacing: 0.05em;
}

.status--active {
  background: var(--ice);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--cobalt);
}

.status--review {
  background: rgba(196, 106, 26, 0.12);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--amber);
}

.status--failed {
  background: rgba(238, 134, 0, 0.12);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--amber);
}

.status:not(.status--active):not(.status--review):not(.status--failed) {
  background: #ececea;
  color: #626262;
}

.catalog-toolbar {
  padding: 10px;
  border-radius: 3px 18px 3px 3px;
  box-shadow: 6px 6px 0 rgba(20, 20, 20, 0.035);
}

.catalog-grid {
  gap: 14px;
}

.catalog-card {
  position: relative;
  min-height: 244px;
  border: 0;
  border-top: 4px solid var(--line-dark);
  border-radius: 3px 26px 3px 3px;
  box-shadow: 0 0 0 1px var(--line), 8px 8px 0 rgba(20, 20, 20, 0.04);
}

.catalog-card::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 52px;
  height: 4px;
  background: var(--cobalt);
}

.catalog-card:hover {
  transform: translate(-2px, -3px);
  border-color: var(--line-dark);
  box-shadow: 0 0 0 1px var(--line-dark), 12px 12px 0 rgba(196, 106, 26, 0.1);
}

.catalog-card h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.card-meta {
  border-top-color: var(--line);
  color: #626262;
}

.search-wrap::before {
  color: #626262;
}

.text-button {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--cobalt);
}

/* Execução e simuladores */

.execute-layout {
  border: 0;
  border-radius: 3px 34px 3px 3px;
  box-shadow: 0 0 0 1px var(--line), 12px 12px 0 rgba(20, 20, 20, 0.055);
}

.execute-form {
  position: relative;
  background: white;
  border-right-color: var(--line);
}

.execute-form::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--cobalt);
}

.execute-form h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.provider-choice span {
  border-radius: 3px 12px 3px 3px;
}

.provider-choice input:checked + span {
  box-shadow: inset 4px 0 0 var(--cobalt);
}

.orchestrator-card,
.agent-route {
  border: 0;
  border-radius: 3px 18px 3px 3px;
  background: rgba(20, 20, 20, 0.035);
  box-shadow: inset 4px 0 0 var(--cobalt), 0 0 0 1px var(--line);
}

.orchestrator-mark {
  border: 2px solid var(--cobalt);
  border-radius: 3px 13px 3px 3px;
  background: var(--atlantic);
}

.orchestrator-head strong,
.agent-route-head strong,
.agent-route-card strong {
  font-family: var(--display);
  font-weight: 700;
}

.layer-choice {
  border: 0;
  border-radius: 3px 18px 3px 3px;
  box-shadow: 0 0 0 1px var(--line);
}

.layer-choice--review {
  background: rgba(196, 106, 26, 0.07);
  box-shadow: 0 0 0 1px var(--cobalt);
}

.layer-number {
  border: 2px solid var(--cobalt);
  background: var(--paper);
  color: var(--ink);
}

.layer-copy strong {
  font-family: var(--display);
  font-weight: 700;
}

.layer-connector {
  color: var(--amber);
}

.execution-result {
  background:
    linear-gradient(rgba(20, 20, 20, 0.024) 1px, transparent 1px),
    #f7f6f3;
  background-size: 100% 30px;
}

.result-placeholder .large-glyph {
  border-radius: 3px 18px 3px 3px;
}

.result-placeholder {
  color: #626262;
}

.result-content h3 {
  font-family: var(--display);
  font-weight: 700;
}

.layer-result,
.layer-draft {
  border-radius: 3px 14px 3px 3px;
}

.layer-result > span {
  border: 2px solid var(--cobalt);
  background: white;
}

.layer-result:last-child {
  background: rgba(238, 134, 0, 0.08);
}

.trace-chip {
  border-radius: 2px 7px 2px 2px;
}

.simulator-layout {
  gap: 18px;
}

.scenario-table th {
  letter-spacing: 0.09em;
}

.data-table th {
  background: rgba(20, 20, 20, 0.035);
  color: #626262;
}

.warning-box {
  border-left: 4px solid var(--amber);
  background: rgba(238, 134, 0, 0.08);
  color: var(--ink);
}

.dialog {
  border-radius: 3px 30px 3px 3px;
  box-shadow: 0 30px 90px rgba(20, 20, 20, 0.32);
}

.dialog::backdrop {
  background: rgba(20, 20, 20, 0.62);
}

.dialog-header {
  border-top: 5px solid var(--cobalt);
}

.dialog-header h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.dialog-footer {
  background: var(--porcelain);
}

.toast {
  border-radius: 3px 14px 3px 3px;
  background: var(--atlantic);
}

.skeleton {
  background: linear-gradient(90deg, #e7e5e1 20%, #f8f7f4 45%, #e7e5e1 70%);
  background-size: 250% 100%;
}

@media (max-width: 1120px) {
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: 470px;
  }

  .login-thesis h1 {
    font-size: clamp(46px, 13vw, 68px);
  }

  .login-panel::before {
    top: 22px;
    right: 24px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    width: 264px;
    transform: translate3d(-110vw, 0, 0);
  }

  .workspace {
    width: 100%;
  }

  .topbar {
    height: 78px;
  }

  #main-content {
    min-height: calc(100vh - 78px);
    padding: 27px 18px;
  }

  .page-intro {
    min-height: 0;
    padding-left: 16px;
  }

  .map-head {
    display: block;
  }

  .map-flow {
    grid-template-columns: 1fr 1fr;
  }

  .map-flow::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .login-card {
    padding: 27px 22px;
    box-shadow: 10px 10px 0 rgba(20, 20, 20, 0.055);
  }

  .login-story {
    min-height: 440px;
  }

  .login-thesis > p:last-child {
    font-size: 16px;
  }

  .topbar::after {
    width: 70px;
  }

  .page-intro h2 {
    font-size: 31px;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    min-height: 102px;
    padding: 17px;
  }

  .intelligence-map {
    border-radius: 3px 34px 3px 3px;
  }

  .map-flow {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-flow b::after {
    animation: none;
    opacity: 1;
  }
}

/* Núcleo interno — a faixa de confidencialidade transforma acesso em informação visual. */

.internal-preview-banner {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 4px 22px 4px 4px;
  background: var(--atlantic);
  color: var(--paper);
}

.internal-preview-banner::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -62px;
  top: -82px;
  border: 1px solid rgba(238, 134, 0, .42);
  transform: rotate(45deg);
}

.internal-preview-banner > div:first-child {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.internal-preview-mark {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 3px 15px 3px 3px;
  background: var(--cobalt);
  color: var(--ink);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
}

.internal-preview-banner .eyebrow { margin: 1px 0 8px; color: var(--cobalt-dark); }
.internal-preview-banner h3 { margin: 0; color: var(--paper); font-family: var(--display); font-size: clamp(23px, 2.4vw, 35px); letter-spacing: -.045em; }
.internal-preview-banner p:last-child { margin: 9px 0 0; max-width: 690px; color: #aaa; font-size: 11px; line-height: 1.6; }
.internal-preview-pills { position: relative; z-index: 1; display: grid; gap: 8px; }
.internal-preview-pills span { padding: 10px 12px; border-left: 2px solid var(--cobalt); background: rgba(255,255,255,.06); color: #d8d8d8; font-family: var(--utility); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.catalog-section-head {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 0 2px 10px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line-dark);
}

.catalog-section-head div { display: grid; gap: 4px; }
.catalog-section-head span, .catalog-section-head small { color: var(--cobalt); font-family: var(--utility); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.catalog-section-head strong { font-family: var(--display); font-size: 18px; }
.catalog-section-head--quiet { margin-top: 18px; }
.catalog-section-head--quiet span { color: var(--slate); }

.catalog-card--internal {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--cobalt);
  background: linear-gradient(180deg, rgba(196,106,26,.055), #fff 32%);
}

.catalog-card--internal::before {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(196,106,26,.22);
  transform: rotate(45deg);
}

.catalog-card--vault {
  border-color: var(--cobalt);
  background: var(--atlantic);
  color: var(--paper);
}

.catalog-card--vault h3 { color: var(--paper); }
.catalog-card--vault > p { color: #aaa; }
.catalog-card--vault .card-meta { border-color: rgba(255,255,255,.14); color: #aaa; }
.catalog-card--vault .entity-glyph { background: var(--cobalt); color: var(--ink); }

.access-badge {
  width: fit-content;
  margin: 15px 0 3px;
  padding: 6px 8px;
  border-radius: 2px 9px 2px 2px;
  font-family: var(--utility);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
}

.access-badge--internal { border: 1px solid rgba(196,106,26,.35); color: #9a5115; background: rgba(196,106,26,.08); }
.access-badge--vault { border: 1px solid rgba(238,134,0,.6); color: var(--cobalt-dark); background: rgba(238,134,0,.08); }
.access-note { margin-top: 14px; color: var(--slate); font-size: 9px; line-height: 1.45; }
.catalog-card--vault .access-note { color: #c2c2c2; }

@media (max-width: 820px) {
  .internal-preview-banner { grid-template-columns: 1fr; padding: 23px 20px; }
}
