:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #0d1219;
  --panel-2: #121925;
  --panel-3: #182131;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.15);
  --text: #f5f7fb;
  --muted: #8793a5;
  --muted-2: #647084;
  --accent: #8fb5ff;
  --accent-soft: rgba(143,181,255,.12);
  --good: #52d68a;
  --danger: #ff7474;
  --shadow: 0 22px 60px rgba(0,0,0,.25);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px 22px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0c1118 0%, #090d13 100%);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  background: linear-gradient(145deg, #253348, #121a27);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.brand-title { font-weight: 750; letter-spacing: .02em; }
.brand-subtitle { margin-top: 2px; color: var(--muted); font-size: 12px; }

.nav { display: grid; gap: 7px; }

.nav-item {
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  color: #aab4c3;
  transition: .16s ease;
}

.nav-item:hover { background: rgba(255,255,255,.045); color: var(--text); }
.nav-item.active {
  background: var(--accent-soft);
  color: #dfe9ff;
  box-shadow: inset 0 0 0 1px rgba(143,181,255,.12);
}

.nav-icon { opacity: .85; }
.nav-count {
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255,255,255,.06);
  font-size: 12px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 10px;
  align-items: center;
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #718096;
  box-shadow: 0 0 0 4px rgba(113,128,150,.08);
}
.connection-dot.online {
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(82,214,138,.09);
}
.connection-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255,116,116,.08);
}
.connection-title { font-size: 12px; font-weight: 650; }
.connection-meta { color: var(--muted-2); margin-top: 2px; font-size: 11px; }

.main { min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 105px;
  padding: 24px clamp(22px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(8,11,16,.83);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
h2 { letter-spacing: -.025em; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: min(420px, 42vw);
}

.search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 43px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.search-icon { color: var(--muted); }
.search-wrap input {
  min-width: 0;
  flex: 1;
  color: var(--text);
  outline: 0;
  border: 0;
  background: transparent;
}
.search-wrap input::placeholder { color: #5f6b7b; }

.icon-button, .mobile-menu {
  height: 43px;
  min-width: 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}
.icon-button:hover, .mobile-menu:hover { background: var(--panel-2); }

.mobile-menu { display: none; }

.content { padding: 30px clamp(22px, 4vw, 54px) 70px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}
.section-description {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 15px;
}

.card {
  position: relative;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18,25,37,.96), rgba(12,17,24,.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(143,181,255,.25);
  background: linear-gradient(145deg, rgba(22,31,46,.98), rgba(13,19,28,.98));
}

.card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  right: -60px;
  top: -60px;
  background: rgba(143,181,255,.04);
}

.card-kicker {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.card-title { font-size: 19px; font-weight: 700; line-height: 1.2; padding-right: 20px; }
.card-meta { color: var(--muted); margin-top: 8px; font-size: 13px; }
.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 17px;
  color: var(--muted-2);
  font-size: 18px;
}

.back-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  margin-bottom: 18px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18,25,37,.96), rgba(11,16,23,.98));
  margin-bottom: 20px;
}

.detail-name { font-size: clamp(27px, 4vw, 44px); margin-bottom: 9px; }
.detail-description { color: var(--muted); line-height: 1.6; max-width: 820px; margin-bottom: 0; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: #b9c5d5;
  background: rgba(255,255,255,.025);
  font-size: 12px;
}

.detail-stat {
  min-width: 115px;
  align-self: start;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(143,181,255,.13);
}
.stat-value { font-size: 24px; font-weight: 750; }
.stat-label { color: var(--muted); font-size: 11px; margin-top: 4px; text-transform: uppercase; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .42fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 18px;
}

.panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-body { padding: 20px; }

.pinout {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 13px;
}
.pinout:last-child { margin-bottom: 0; }

.pinout-title {
  background: var(--panel-2);
  padding: 13px 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.pinout-sub {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .055em;
  background: rgba(255,255,255,.016);
}
td:first-child { width: 72px; color: var(--accent); font-variant-numeric: tabular-nums; }
.note { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; line-height: 1.4; }

.kv-list { display: grid; gap: 0; }
.kv {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.kv:last-child { border-bottom: 0; }
.kv-key { color: var(--muted); font-size: 12px; }
.kv-value { font-size: 13px; word-break: break-word; }

.file-list, .simple-list { display: grid; gap: 8px; }
.file-link, .repo-link {
  text-decoration: none;
  color: var(--text);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.022);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.file-link:hover, .repo-link:hover { border-color: rgba(143,181,255,.27); background: var(--accent-soft); }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-kind { color: var(--muted); font-size: 11px; flex: 0 0 auto; }

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.image-grid a {
  display: block;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070a;
}
.image-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.empty-state, .loading-state, .error-state {
  min-height: 330px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  text-align: center;
  color: var(--muted);
}
.empty-icon { font-size: 35px; color: var(--muted-2); }
.spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  background: #1a2331;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.connector-box {
  padding: 10px 14px 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}

.revision-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  padding: 7px 10px;
}

@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-102%);
    width: min(84vw, 300px);
    transition: transform .2s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }

  .mobile-menu { display: block; }

  .topbar {
    min-height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }

  .topbar-actions {
    width: 100%;
    min-width: 0;
  }

  .content { padding: 22px 18px 50px; }
  .detail-hero { grid-template-columns: 1fr; padding: 21px; }
  .grid { grid-template-columns: 1fr; }
}


/* ==========================================================
   MOBILE USABILITY PATCH
   ========================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overscroll-behavior-x: none;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

.content,
.main,
.panel,
.panel-body,
.pinout,
.table-wrap {
  min-width: 0;
}

.image-grid img {
  user-select: none;
  -webkit-user-drag: none;
}

/* Full-screen image viewer */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(0, 0, 0, .96);
  overflow: hidden;
  touch-action: none;
}

.image-viewer.open {
  display: block;
}

.image-viewer-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}

.image-viewer-image {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.image-viewer-close,
.image-viewer-reset {
  position: absolute;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(18, 24, 33, .82);
  backdrop-filter: blur(14px);
  border-radius: 12px;
  cursor: pointer;
}

.image-viewer-close {
  right: max(14px, env(safe-area-inset-right));
  width: 44px;
  font-size: 24px;
}

.image-viewer-reset {
  right: calc(max(14px, env(safe-area-inset-right)) + 54px);
  padding: 0 14px;
  font-size: 13px;
}

.image-viewer-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: rgba(255,255,255,.62);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

body.image-viewer-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  :root {
    --radius: 15px;
  }

  body {
    overflow-x: hidden;
  }

  .topbar {
    position: sticky;
    top: 0;
    padding:
      max(14px, env(safe-area-inset-top))
      14px
      14px;
    gap: 12px;
  }

  .topbar > div:nth-child(2) {
    min-width: 0;
    flex: 1;
  }

  .eyebrow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-actions {
    flex-basis: 100%;
    width: 100%;
  }

  .search-wrap {
    height: 46px;
  }

  .icon-button,
  .mobile-menu {
    height: 46px;
    min-width: 46px;
  }

  .content {
    padding: 18px 13px calc(44px + env(safe-area-inset-bottom));
  }

  .section-header {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .section-description {
    font-size: 13px;
  }

  .card {
    min-height: 120px;
    padding: 17px;
  }

  .detail-hero {
    gap: 16px;
    padding: 18px;
    margin-bottom: 14px;
  }

  .detail-name {
    font-size: 29px;
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .detail-description {
    font-size: 14px;
    line-height: 1.5;
  }

  .detail-stat {
    min-width: 0;
    width: max-content;
  }

  .panel {
    margin-bottom: 13px;
  }

  .panel-head {
    padding: 15px 15px;
    align-items: center;
  }

  .panel-head h2 {
    font-size: 18px;
  }

  .panel-body {
    padding: 13px;
  }

  .revision-select {
    max-width: 48vw;
    min-height: 40px;
  }

  /* Pinouts become touch-friendly cards instead of wide desktop rows */
  .pinout {
    margin-bottom: 12px;
  }

  .pinout-title {
    padding: 12px 13px;
    align-items: center;
  }

  .pinout .table-wrap {
    overflow: visible;
  }

  .pinout table {
    min-width: 0;
    display: block;
    width: 100%;
  }

  .pinout thead {
    display: none;
  }

  .pinout tbody,
  .pinout tr,
  .pinout td {
    display: block;
    width: 100%;
  }

  .pinout tr {
    position: relative;
    padding: 11px 12px 11px 54px;
    border-top: 1px solid var(--line);
  }

  .pinout td {
    border: 0;
    padding: 0;
  }

  .pinout td:first-child {
    position: absolute;
    left: 12px;
    top: 11px;
    width: 32px;
    min-width: 32px;
    font-size: 15px;
    font-weight: 800;
  }

  .pinout td:nth-child(2) {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    padding-right: 4px;
  }

  .pinout td:nth-child(3) {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
  }

  .note {
    margin-top: 3px;
  }

  .connector-box {
    padding: 10px 12px 12px;
    overflow-wrap: anywhere;
  }

  /* Other tables stay scrollable, but don't force whole-page zoom */
  .panel > .panel-body > .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .panel > .panel-body > .table-wrap table {
    min-width: 500px;
  }

  .kv {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 10px 0;
  }

  .kv-key {
    font-size: 11px;
  }

  .kv-value {
    font-size: 14px;
  }

  .file-link,
  .repo-link {
    min-height: 46px;
    padding: 11px 12px;
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .image-grid a {
    min-width: 0;
  }

  .image-grid img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #05070a;
  }

  .back-button {
    min-height: 42px;
    margin: -5px 0 8px;
    padding: 0 4px;
    font-size: 15px;
  }

  .badges {
    margin-top: 14px;
  }

  .badge {
    padding: 6px 9px;
  }

  .image-viewer-image {
    max-width: 100vw;
    max-height: 100vh;
  }
}

@media (max-width: 380px) {
  .image-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* ==========================================================
   MOBILE LAYOUT V2
   Explicit class is added by JS on touch/narrow devices.
   This avoids iOS browser viewport/page-zoom inconsistencies.
   ========================================================== */

html.mobile-layout,
html.mobile-layout body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html.mobile-layout .app-shell {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html.mobile-layout .main {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.mobile-layout .sidebar {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  width: min(86vw, 340px) !important;
  max-width: calc(100vw - 46px) !important;
  height: 100dvh !important;
  z-index: 100 !important;
  transform: translate3d(-105%, 0, 0) !important;
  transition: transform .2s ease !important;
  box-shadow: 18px 0 60px rgba(0,0,0,.42);
}

html.mobile-layout .sidebar.open {
  transform: translate3d(0, 0, 0) !important;
}

.sidebar-backdrop {
  display: none;
}

html.mobile-layout .sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: block;
  background: rgba(0,0,0,.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

html.mobile-layout .sidebar-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

html.mobile-layout .topbar {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.mobile-layout .content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html.mobile-layout .detail-hero,
html.mobile-layout .panel,
html.mobile-layout .grid,
html.mobile-layout .two-col {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html.mobile-layout .two-col {
  display: block !important;
}

html.mobile-layout .mobile-menu {
  display: block !important;
}

/* Header: never exceed viewport even when browser zoom is non-default */
html.mobile-layout .topbar {
  padding-left: max(13px, env(safe-area-inset-left)) !important;
  padding-right: max(13px, env(safe-area-inset-right)) !important;
}

html.mobile-layout .topbar-actions {
  min-width: 0 !important;
  max-width: 100% !important;
}

html.mobile-layout .search-wrap {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Prevent any long board data from widening the whole page */
html.mobile-layout .card-title,
html.mobile-layout .detail-name,
html.mobile-layout .kv-value,
html.mobile-layout .connector-box,
html.mobile-layout td,
html.mobile-layout .file-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Images: one large preview per row on phones for easier tapping/zooming */
html.mobile-layout .image-grid {
  grid-template-columns: 1fr !important;
}

html.mobile-layout .image-grid img {
  width: 100%;
  aspect-ratio: auto;
  max-height: 52vh;
  object-fit: contain;
  padding: 8px;
}

/* Avoid accidentally zooming the whole page on form controls */
html.mobile-layout input,
html.mobile-layout select,
html.mobile-layout textarea {
  font-size: 16px !important;
}

/* Keep ordinary non-pinout tables inside their own horizontal scroller */
html.mobile-layout .table-wrap {
  max-width: 100% !important;
}

html.mobile-layout .panel > .panel-body > .table-wrap {
  overflow-x: auto !important;
  overscroll-behavior-x: contain;
}

/* Pinout remains card-based and never wider than viewport */
html.mobile-layout .pinout .table-wrap {
  overflow: visible !important;
}

html.mobile-layout .pinout table {
  min-width: 0 !important;
  max-width: 100% !important;
}


/* ==========================================================
   PROJECT CABLES / CABLING V5
   ========================================================== */

.project-section {
  margin-top: 28px;
}

.project-section:first-of-type {
  margin-top: 0;
}

.project-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.project-section-head h2 {
  margin: 0;
  font-size: 23px;
}

.project-section-head .card-kicker {
  margin-bottom: 5px;
}

.project-stats {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-empty-panel .panel-body {
  padding: 18px 20px;
}

.cable-source {
  max-width: 520px;
  margin-bottom: 12px;
}

.cable-source-link {
  min-height: 46px;
}

.cable-panel {
  overflow: hidden;
}

.cable-desktop-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cable-table {
  min-width: 1320px;
}

.cable-table th,
.cable-table td {
  white-space: normal;
  min-width: 115px;
}

.cable-table th:first-child,
.cable-table td:first-child {
  min-width: 170px;
}

.cable-table th:nth-child(2),
.cable-table td:nth-child(2),
.cable-table th:nth-child(3),
.cable-table td:nth-child(3) {
  min-width: 180px;
}

.cable-table th:nth-child(4),
.cable-table td:nth-child(4) {
  min-width: 180px;
}

.cable-table th:nth-child(9),
.cable-table td:nth-child(9) {
  min-width: 260px;
}

.cable-name-cell {
  color: var(--accent);
  font-weight: 750;
}

.cable-mobile-list {
  display: none;
}

.cable-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
  overflow: hidden;
}

.cable-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.cable-card-name {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.cable-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.cable-route > div {
  min-width: 0;
}

.cable-route strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cable-route-label,
.cable-field span,
.cable-notes span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: 10px;
  margin-bottom: 4px;
}

.cable-route-arrow {
  color: var(--muted-2);
}

.cable-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cable-field {
  min-width: 0;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.cable-field:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.cable-field strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.cable-notes {
  padding: 13px 15px;
  color: #b8c4d4;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .project-section {
    margin-top: 22px;
  }

  .project-section-head {
    align-items: center;
  }

  .project-section-head h2 {
    font-size: 20px;
  }

  .project-stats {
    width: 100%;
  }

  .project-stats .detail-stat {
    flex: 1 1 120px;
    width: auto;
  }

  .cable-desktop-table {
    display: none;
  }

  .cable-mobile-list {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .cable-panel {
    background: transparent;
    border: 0;
  }

  .cable-card-grid {
    grid-template-columns: 1fr;
  }

  .cable-field:nth-child(odd) {
    border-right: 0;
  }

  .cable-route {
    grid-template-columns: 1fr;
  }

  .cable-route-arrow {
    transform: rotate(90deg);
    width: max-content;
  }
}


/* ==========================================================
   BOARD STRUCTURED DATA / CABLES_PINOUTS V6
   ========================================================== */

.board-wide-section {
  margin-top: 24px;
}

.board-wide-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.board-wide-section-head h2 {
  margin: 0;
  font-size: 24px;
}

.structured-panel {
  margin-bottom: 13px;
}

.structured-panel-head {
  align-items: flex-start;
}

.structured-panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.structured-description {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.tech-source-link,
.mapping-sources a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}

.tech-source-link:hover,
.mapping-sources a:hover {
  text-decoration: underline;
}

.structured-table {
  width: 100%;
  min-width: 760px;
}

.structured-table th,
.structured-table td {
  min-width: 110px;
  vertical-align: top;
  white-space: normal;
}

.structured-table td:first-child {
  width: auto;
  color: var(--text);
}

.structured-notes {
  padding: 13px 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  display: grid;
  gap: 4px;
}

.structured-mobile-list {
  display: none;
}

.cable-pinout-block {
  margin-bottom: 18px;
}

.mapping-sources {
  margin: -5px 4px 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .board-wide-section {
    margin-top: 20px;
  }

  .board-wide-section-head {
    align-items: center;
  }

  .board-wide-section-head h2 {
    font-size: 20px;
  }

  .structured-desktop {
    display: none;
  }

  .structured-mobile-list {
    display: grid;
    gap: 9px;
    padding: 11px;
  }

  .structured-mobile-card {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.018);
    padding: 11px;
  }

  .structured-mobile-index {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 11px;
    font-weight: 800;
  }

  .structured-mobile-fields {
    min-width: 0;
    display: grid;
    gap: 9px;
  }

  .structured-mobile-field {
    min-width: 0;
  }

  .structured-mobile-field span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .055em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .structured-mobile-field strong {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .structured-notes {
    padding: 11px 13px 14px;
  }

  .mapping-sources {
    margin-left: 2px;
  }
}


/* ==========================================================
   DOC LABEL / FILE LINK BORDER FIX V6.3
   ========================================================== */

.file-list {
  width: 100%;
  min-width: 0;
}

.file-link,
.repo-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--line);
}

.file-link::after,
.repo-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
}

.file-link,
.repo-link {
  position: relative;
}

.file-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-kind {
  flex: 0 0 auto;
  margin-left: auto;
}

.panel-body .file-list {
  padding-right: 0;
}

/* Cables_Pinouts no longer displays footer/source blocks */
.cables-pinouts-section .structured-notes,
.cables-pinouts-section .mapping-sources {
  display: none !important;
}


/* ==========================================================
   STRUCTURED REFERENCE CLEANUP V6.4
   ========================================================== */

.technical-data-section .structured-notes,
.technical-data-section .tech-source-link,
.technical-data-section .mapping-sources,
.cables-pinouts-section .structured-notes,
.cables-pinouts-section .tech-source-link,
.cables-pinouts-section .mapping-sources {
  display: none !important;
}


/* ==========================================================
   BOARD GROUPS V6.5
   ========================================================== */

.board-group {
  margin-top: 24px;
}

.board-group:first-of-type {
  margin-top: 8px;
}

.board-group + .board-group {
  margin-top: 34px;
}

.board-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.board-group-head h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.board-group-grid .card {
  position: relative;
}

.board-group-grid .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .65;
}

@media (max-width: 760px) {
  .board-group {
    margin-top: 20px;
  }

  .board-group + .board-group {
    margin-top: 28px;
  }

  .board-group-head {
    align-items: center;
  }

  .board-group-head h2 {
    font-size: 20px;
  }
}

/* ==========================================================
   PROJECT MISC IMAGES V6.9
   ========================================================== */

.project-misc-images {
  margin-top: 30px;
}

.project-misc-group + .project-misc-group {
  margin-top: 24px;
}

.project-misc-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.project-misc-image {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.project-misc-image img {
  width: 100%;
  display: block;
}

.project-misc-image span {
  display: block;
  padding: 9px 11px 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .project-misc-images {
    margin-top: 24px;
  }

  .project-misc-group + .project-misc-group {
    margin-top: 20px;
  }
}

/* ==========================================================
   IIT ADVRF BRAND V6.10
   ========================================================== */

.brand-mark.brand-logo {
  width: 58px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  flex: 0 0 58px;
}

.brand-mark.brand-logo img {
  display: block;
  width: 58px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 760px) {
  .brand-mark.brand-logo {
    width: 54px;
    height: 40px;
    flex-basis: 54px;
  }

  .brand-mark.brand-logo img {
    width: 54px;
    height: 40px;
  }
}


/* THALES SOURCE-LAYOUT V6.11 */

.nav-icon {
  width: 14px;
  height: 14px;
  position: relative;
  flex: 0 0 14px;
}

.nav-icon-boards::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1.5px solid currentColor;
}

.nav-icon-boards::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  bottom: 1px;
  border-left: 1px solid currentColor;
}

.nav-icon-projects::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: 2px;
  top: 2px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.thales-presentation { margin-top: 28px; }

.thales-group-head {
  margin: 38px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.thales-group-head:first-child { margin-top: 0; }

.thales-group-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.thales-slide {
  position: relative;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.thales-slide-title {
  grid-column: 1 / -1;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
}

.thales-slide-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: 20px;
  align-items: start;
}

.thales-slide-triple {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(360px, 1.25fr) minmax(210px, .75fr);
  gap: 16px;
  align-items: center;
}

.thales-slide-data,
.thales-slide-center { min-width: 0; }

.thales-main-image,
.thales-side-image {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.thales-main-image img,
.thales-side-image img {
  width: 100%;
  height: auto;
  display: block;
}

.thales-fact + .thales-fact { margin-top: 18px; }

.thales-fact h3,
.thales-data-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.thales-fact div { line-height: 1.55; }
.thales-data-block + .thales-data-block { margin-top: 18px; }
.thales-table-wrap { margin: 0; }

.thales-source-table {
  width: 100%;
  min-width: 560px;
}

.thales-source-table th,
.thales-source-table td {
  white-space: normal;
  vertical-align: top;
}

.thales-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.thales-attributes > div {
  display: flex;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}

.thales-attributes span { color: var(--muted); }

@media (max-width: 980px) {
  .thales-slide-split,
  .thales-slide-triple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .thales-slide {
    padding: 12px;
    border-radius: 13px;
  }

  .thales-group-head h2 { font-size: 20px; }
  .thales-slide-title { font-size: 17px; }
  .thales-source-table { min-width: 620px; }
}


/* ENCODING-SAFE UI V6.13 */

.nav-icon {
  width: 15px;
  height: 15px;
  position: relative;
  display: inline-block;
  flex: 0 0 15px;
}

.nav-icon-boards::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}

.nav-icon-boards::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  bottom: 1px;
  width: 4px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.nav-icon-projects::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  left: 2px;
  top: 2px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}

.card-arrow,
.cable-route-arrow {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 14px;
  font-size: 0 !important;
  line-height: 0 !important;
}

.card-arrow::before,
.cable-route-arrow::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 1px;
  right: 3px;
  top: 6px;
  background: currentColor;
}

.card-arrow::after,
.cable-route-arrow::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  right: 3px;
  top: 3px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 9px;
}

.image-viewer-close {
  position: absolute;
  font-size: 0 !important;
}

.image-viewer-close::before,
.image-viewer-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}

.image-viewer-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.image-viewer-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.search-icon {
  width: 13px;
  height: 13px;
  position: relative;
  display: inline-block;
}

.search-icon::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 0;
  top: 0;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.4px;
  left: 8px;
  top: 9px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

/* IIT ADVRF BRAND */

.brand-mark.brand-logo {
  width: 58px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  flex: 0 0 58px;
}

.brand-mark.brand-logo img {
  display: block;
  width: 58px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

/* THALES SOURCE LAYOUT */

.thales-presentation {
  margin-top: 28px;
}

.thales-group-head {
  margin: 38px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.thales-group-head:first-child {
  margin-top: 0;
}

.thales-group-head h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.thales-slide {
  position: relative;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.thales-slide-title {
  grid-column: 1 / -1;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
}

.thales-slide-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: 20px;
  align-items: start;
}

.thales-slide-triple {
  display: grid;
  grid-template-columns:
    minmax(180px, .82fr)
    minmax(430px, 1.36fr)
    minmax(180px, .82fr);
  gap: 16px;
  align-items: center;
}

.thales-slide-data,
.thales-slide-center {
  min-width: 0;
}

.thales-main-image,
.thales-side-image {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}

.thales-main-image img,
.thales-side-image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 540px !important;
  object-fit: contain !important;
  object-position: center center !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.thales-slide-triple .thales-side-image img {
  max-height: 500px !important;
}

.thales-slide-split .thales-main-image,
.thales-slide-center {
  align-self: center;
}

.thales-fact + .thales-fact {
  margin-top: 18px;
}

.thales-fact h3,
.thales-data-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.thales-fact div {
  line-height: 1.55;
}

.thales-data-block + .thales-data-block {
  margin-top: 18px;
}

.thales-table-wrap {
  margin: 0;
}

.thales-source-table {
  width: 100%;
  min-width: 560px;
}

.thales-source-table th,
.thales-source-table td {
  white-space: normal;
  vertical-align: top;
}

.thales-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.thales-attributes > div {
  display: flex;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}

.thales-attributes span {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .thales-slide-triple {
    grid-template-columns:
      minmax(160px, .75fr)
      minmax(360px, 1.3fr)
      minmax(160px, .75fr);
  }
}

@media (max-width: 900px) {
  .thales-slide-split,
  .thales-slide-triple {
    grid-template-columns: 1fr !important;
  }

  .thales-main-image img,
  .thales-side-image img {
    max-height: 460px !important;
  }

  .thales-slide-triple .thales-slide-center {
    order: 1;
  }
}

@media (max-width: 760px) {
  .brand-mark.brand-logo {
    width: 54px;
    height: 40px;
    flex-basis: 54px;
  }

  .brand-mark.brand-logo img {
    width: 54px;
    height: 40px;
  }

  .thales-slide {
    padding: 12px;
    border-radius: 13px;
  }

  .thales-group-head h2 {
    font-size: 20px;
  }

  .thales-slide-title {
    font-size: 17px;
  }

  .thales-source-table {
    min-width: 620px;
  }
}



/* CARD ARROW POSITION FIX V6.14 */

.card {
  position: relative;
  padding-bottom: 42px;
}

.card .card-arrow {
  position: absolute !important;
  right: 18px !important;
  bottom: 16px !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  width: 20px !important;
  height: 16px !important;
  color: var(--accent);
}

.card .card-arrow::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 1.5px;
  right: 2px;
  top: 7px;
  background: currentColor;
}

.card .card-arrow::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 2px;
  top: 3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.card .card-meta {
  padding-right: 0 !important;
}

@media (max-width: 760px) {
  .card {
    padding-bottom: 40px;
  }

  .card .card-arrow {
    right: 16px !important;
    bottom: 14px !important;
  }
}



/* PROJECT DATA + ENCODING FIX V6.15 */

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 9px;
}

.card {
  position: relative;
  padding-bottom: 42px;
}

.card .card-arrow {
  position: absolute !important;
  right: 18px !important;
  bottom: 16px !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  width: 20px !important;
  height: 16px !important;
  font-size: 0 !important;
}

.card .card-arrow::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 1.5px;
  right: 2px;
  top: 7px;
  background: currentColor;
}

.card .card-arrow::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: 2px;
  top: 3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.project-data-section {
  margin-top: 28px;
}

.project-data-section + .project-data-section {
  margin-top: 30px;
}

.project-data-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 13px;
}

.project-data-head h2 {
  margin: 0;
  font-size: 22px;
}

.project-data-table {
  width: 100%;
  min-width: 760px;
}

.project-data-table th,
.project-data-table td {
  white-space: normal;
  vertical-align: top;
}

.project-documents {
  display: grid;
  gap: 8px;
}

.project-document-link {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.project-board-quantity {
  margin-left: 7px;
  color: var(--accent);
  font-weight: 750;
}

@media (max-width: 760px) {
  .project-data-head {
    align-items: center;
  }

  .project-data-head h2 {
    font-size: 20px;
  }
}



/* GENERIC PROJECT PRESENTATION V6.16 */

.thales-slide-image-table {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(430px, 1.25fr);
  gap: 22px;
  align-items: center;
}

.thales-slide-image-table .thales-main-image {
  align-self: center;
}

.thales-slide-image-table .thales-main-image img {
  max-height: 500px !important;
}

.thales-presentation .thales-main-image,
.thales-presentation .thales-side-image {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.thales-presentation .thales-main-image img,
.thales-presentation .thales-side-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

@media (max-width: 900px) {
  .thales-slide-image-table {
    grid-template-columns: 1fr;
  }
}



/* PROJECT COMPONENTS CLEANUP V6.19 */

[hidden] {
  display: none !important;
}

#searchInput:disabled {
  opacity: .55;
  cursor: default;
}

.components-misc-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.components-misc-grid {
  margin-top: 14px;
}

.components-misc-card {
  position: relative;
  padding-bottom: 42px;
}

@media (max-width: 760px) {
  .components-misc-section {
    margin-top: 30px;
    padding-top: 20px;
  }
}



/* PROJECT REFERENCE CONSISTENCY V6.23 */

.project-board-quantity {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent);
  font-weight: 750;
}

.project-linked-revision {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 12px;
  margin-right: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.project-linked-revision span {
  color: var(--muted);
}

.project-linked-revision strong {
  color: var(--accent);
  font-weight: 750;
}

@media (max-width: 760px) {
  .project-linked-revision {
    margin-top: 10px;
  }
}



/* EXTERNAL MARKDOWN SECTIONS V6.25 */

.external-docs-page {
  width: 100%;
}

.external-docs-loading {
  padding: 28px 0;
  color: var(--muted);
}

.external-md-document {
  margin-top: 20px;
}

.external-md-document + .external-md-document {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.external-md-file-name {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.external-md-content {
  max-width: 100%;
  line-height: 1.55;
}

.external-md-content h1,
.external-md-content h2,
.external-md-content h3,
.external-md-content h4,
.external-md-content h5,
.external-md-content h6 {
  margin: 28px 0 12px;
}

.external-md-content h1:first-child,
.external-md-content h2:first-child,
.external-md-content h3:first-child {
  margin-top: 0;
}

.external-md-content p {
  margin: 10px 0;
}

.external-md-content ul,
.external-md-content ol {
  margin: 10px 0 16px;
  padding-left: 24px;
}

.external-md-content li {
  margin: 5px 0;
}

.external-md-content a {
  color: var(--accent);
  text-decoration: none;
}

.external-md-content a:hover {
  text-decoration: underline;
}

.external-md-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: .9em;
}

.external-md-content pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.external-md-content pre code {
  padding: 0;
  border: 0;
}

.external-md-content blockquote {
  margin: 14px 0;
  padding-left: 14px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.external-md-content hr {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.external-md-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.external-md-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.external-md-table th,
.external-md-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.external-md-table th {
  font-size: 12px;
  font-weight: 750;
}

.external-md-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .external-md-content {
    font-size: 14px;
  }

  .external-md-table th,
  .external-md-table td {
    padding: 9px 10px;
  }
}


/* EXTERNAL NAV V6.29 */
[data-section="workshop-maintenance"] {
  white-space: normal;
  line-height: 1.2;
}


/* WORKSHOP PDF LIST V6.32 */

.external-pdf-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.external-pdf-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 44px 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.external-pdf-row:hover {
  border-color: var(--accent);
}

.external-pdf-name {
  font-weight: 700;
}

.external-pdf-path {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}


/* ORDERS READ-ONLY V6.40 */

.nav-icon-orders::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 1px;
  bottom: 1px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.nav-icon-orders::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 4px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 3px 0 currentColor, 0 6px 0 currentColor;
}

.order-status-section { margin-bottom: 32px; }
.orders-grid { margin-top: 14px; }
.order-card { min-height: 190px; }

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.order-status-triage { border-color: rgba(59,130,246,.55); }
.order-status-rda { border-color: rgba(245,158,11,.55); }
.order-status-oda { border-color: rgba(139,92,246,.55); }
.order-status-partial { border-color: rgba(20,184,166,.55); }
.order-status-delivered { border-color: rgba(34,197,94,.55); }

.order-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px 14px;
  margin-top: 18px;
}

.order-card-meta-grid span,
.order-comment-date {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.order-card-meta-grid strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.order-card-project { margin-top: 14px; }

.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 18px;
}

.order-prose {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.order-comments {
  display: grid;
  gap: 12px;
}

.order-comment {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.order-comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.order-comment-avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 34px;
}

.order-comment-avatar-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-weight: 700;
}

.order-comment-author { font-weight: 700; }
.order-comment-attachments { margin-top: 12px; }

@media (max-width: 760px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-card-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .order-status-pill {
    white-space: normal;
    text-align: right;
  }
}



/* ==========================================================
   THREE THEMES V6.41
   ========================================================== */

.sidebar-theme {
  margin-top: auto;
  padding: 0 10px 14px;
}

.theme-switcher-label {
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.theme-switcher {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  overflow: hidden;
  isolation: isolate;
}

.theme-switcher-thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: 8px;
  background: var(--panel-3);
  box-shadow:
    0 1px 4px rgba(0,0,0,.20),
    inset 0 0 0 1px var(--line-strong);
  transition:
    transform .22s cubic-bezier(.2,.7,.2,1),
    background .2s ease,
    box-shadow .2s ease;
  pointer-events: none;
}

html[data-theme="dark"] .theme-switcher-thumb {
  transform: translateX(0);
}

html[data-theme="mixed"] .theme-switcher-thumb {
  transform: translateX(100%);
}

html[data-theme="light"] .theme-switcher-thumb {
  transform: translateX(200%);
}

.theme-choice {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .015em;
  transition: color .16s ease;
}

.theme-choice:hover,
.theme-choice.active {
  color: var(--text);
}

.sidebar-footer {
  margin-top: 0;
}

/* LIGHT */

html[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f1f4f8;
  --panel-3: #e8edf5;

  --line: rgba(15,23,42,.10);
  --line-strong: rgba(15,23,42,.17);

  --text: #172033;
  --muted: #647084;
  --muted-2: #8792a3;

  --accent: #356fd6;
  --accent-soft: rgba(53,111,214,.095);

  --good: #1e9d5a;
  --danger: #d84d4d;

  --shadow: 0 22px 60px rgba(20,32,54,.10);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: var(--bg);
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

html[data-theme="light"] .topbar {
  background: rgba(250,252,255,.88);
}

html[data-theme="light"] .brand-mark {
  background: linear-gradient(145deg, #eef3fa, #dfe7f2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

html[data-theme="light"] .nav-item {
  color: #5b6778;
}

html[data-theme="light"] .nav-item:hover {
  background: rgba(31,55,90,.045);
  color: var(--text);
}

html[data-theme="light"] .nav-item.active {
  background: var(--accent-soft);
  color: #224f9a;
  box-shadow: inset 0 0 0 1px rgba(53,111,214,.13);
}

html[data-theme="light"] .nav-count {
  background: rgba(23,32,51,.055);
}

html[data-theme="light"] .search-wrap,
html[data-theme="light"] .icon-button,
html[data-theme="light"] .mobile-menu {
  background: #ffffff;
}

html[data-theme="light"] .search-wrap input::placeholder {
  color: #929baa;
}

html[data-theme="light"] .icon-button:hover,
html[data-theme="light"] .mobile-menu:hover {
  background: var(--panel-2);
}

html[data-theme="light"] .card {
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(247,249,252,.99));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

html[data-theme="light"] .card:hover {
  border-color: rgba(53,111,214,.27);
  background: linear-gradient(145deg, #ffffff, #f4f7fc);
}

html[data-theme="light"] .card::after {
  background: rgba(53,111,214,.045);
}

html[data-theme="light"] .detail-hero {
  background: linear-gradient(145deg, #ffffff, #f6f8fb);
}

html[data-theme="light"] .badge {
  color: #536174;
  background: rgba(15,23,42,.025);
}

html[data-theme="light"] th {
  background: rgba(15,23,42,.025);
}

html[data-theme="light"] .file-link,
html[data-theme="light"] .repo-link {
  background: rgba(15,23,42,.018);
}

html[data-theme="light"] .image-grid a {
  background: #eef1f5;
}

html[data-theme="light"] .spinner {
  border-color: rgba(15,23,42,.13);
  border-top-color: var(--accent);
}

html[data-theme="light"] .toast {
  background: #ffffff;
}

html[data-theme="light"] .theme-switcher {
  background: #edf1f6;
}

html[data-theme="light"] .theme-switcher-thumb {
  background: #ffffff;
  box-shadow:
    0 2px 8px rgba(31,45,70,.13),
    inset 0 0 0 1px rgba(15,23,42,.10);
}

/* MIXED */

html[data-theme="mixed"] {
  color-scheme: dark;

  --bg: #090b12;
  --panel: #10141f;
  --panel-2: #151b29;
  --panel-3: #1c2639;

  --line: rgba(148,163,184,.12);
  --line-strong: rgba(148,163,184,.19);

  --text: #f4f7fc;
  --muted: #8f9bad;
  --muted-2: #6e7c91;

  --accent: #72c7f4;
  --accent-soft: rgba(79,170,235,.13);

  --good: #55d995;
  --danger: #ff7777;

  --mixed-violet: #a78bfa;
  --mixed-cyan: #67e8f9;

  --shadow: 0 24px 66px rgba(0,0,0,.31);
}

html[data-theme="mixed"] .sidebar {
  background: linear-gradient(180deg, #101521 0%, #0b0d16 58%, #100d18 100%);
}

html[data-theme="mixed"] .topbar {
  background: rgba(9,11,18,.84);
}

html[data-theme="mixed"] .brand-mark {
  background: linear-gradient(145deg, #243958, #251c3d);
  border-color: rgba(124,190,255,.18);
}

html[data-theme="mixed"] .nav-item.active {
  color: #eaf5ff;
  background: linear-gradient(90deg, rgba(50,151,230,.17), rgba(154,107,255,.105));
  box-shadow: inset 0 0 0 1px rgba(100,190,255,.15);
}

html[data-theme="mixed"] .nav-item:hover {
  background: rgba(100,170,255,.065);
}

html[data-theme="mixed"] .card {
  background: linear-gradient(145deg, rgba(17,25,39,.98), rgba(15,17,29,.99));
}

html[data-theme="mixed"] .card:hover {
  border-color: rgba(103,232,249,.26);
  background: linear-gradient(145deg, rgba(20,32,51,.99), rgba(24,19,39,.99));
}

html[data-theme="mixed"] .card::after {
  background: radial-gradient(circle, rgba(167,139,250,.09), rgba(103,232,249,.025) 68%, transparent 70%);
}

html[data-theme="mixed"] .card-kicker,
html[data-theme="mixed"] .back-button,
html[data-theme="mixed"] td:first-child {
  color: var(--mixed-cyan);
}

html[data-theme="mixed"] .detail-hero {
  background: linear-gradient(145deg, rgba(18,27,43,.98), rgba(22,17,35,.98));
}

html[data-theme="mixed"] .detail-stat {
  background: linear-gradient(145deg, rgba(54,165,220,.13), rgba(147,96,255,.10));
}

html[data-theme="mixed"] .badge {
  background: rgba(139,92,246,.045);
}

html[data-theme="mixed"] .file-link:hover,
html[data-theme="mixed"] .repo-link:hover {
  border-color: rgba(103,232,249,.28);
  background: linear-gradient(90deg, rgba(56,189,248,.09), rgba(167,139,250,.055));
}

html[data-theme="mixed"] .theme-switcher-thumb {
  background: linear-gradient(135deg, rgba(42,92,138,.95), rgba(82,57,128,.95));
  box-shadow:
    0 2px 10px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(130,205,255,.18);
}



/* ==========================================================
   MIXED THEME BRIGHTER V6.42
   ========================================================== */

html[data-theme="mixed"] {
  color-scheme: dark;

  --bg: #101727;
  --panel: #182238;
  --panel-2: #202d49;
  --panel-3: #2a3b5f;

  --line: rgba(154, 190, 235, .18);
  --line-strong: rgba(168, 205, 250, .28);

  --text: #f6f9ff;
  --muted: #aab8cb;
  --muted-2: #8193ad;

  --accent: #74d3ff;
  --accent-soft: rgba(70, 170, 255, .18);

  --good: #64e3a4;
  --danger: #ff858f;

  --mixed-blue: #59b7ff;
  --mixed-cyan: #71e6ff;
  --mixed-violet: #b394ff;
  --mixed-purple: #8f6cff;

  --shadow:
    0 24px 66px
    rgba(3, 8, 20, .28);
}

html[data-theme="mixed"],
html[data-theme="mixed"] body {
  background:
    radial-gradient(
      circle at 18% 6%,
      rgba(74, 127, 255, .12),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 14%,
      rgba(159, 95, 255, .10),
      transparent 26%
    ),
    var(--bg);
}

html[data-theme="mixed"] .sidebar {
  background:
    linear-gradient(
      180deg,
      #18243b 0%,
      #131c30 46%,
      #18152c 100%
    );
  border-right-color:
    rgba(123, 181, 255, .20);
}

html[data-theme="mixed"] .topbar {
  background:
    linear-gradient(
      90deg,
      rgba(18, 27, 46, .93),
      rgba(28, 23, 48, .93)
    );
  border-bottom-color:
    rgba(126, 185, 255, .17);
  backdrop-filter: blur(14px);
}

html[data-theme="mixed"] .brand-mark {
  background:
    linear-gradient(
      145deg,
      #315b8e,
      #553c88
    );
  border-color:
    rgba(137, 205, 255, .26);
  box-shadow:
    0 8px 22px
    rgba(24, 65, 120, .22),
    inset 0 1px 0
    rgba(255, 255, 255, .08);
}

html[data-theme="mixed"] .nav-item {
  color: #aebbd0;
}

html[data-theme="mixed"] .nav-item:hover {
  color: #f4f8ff;
  background:
    linear-gradient(
      90deg,
      rgba(67, 160, 255, .11),
      rgba(153, 103, 255, .075)
    );
}

html[data-theme="mixed"] .nav-item.active {
  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      rgba(61, 161, 255, .28),
      rgba(141, 91, 255, .22)
    );
  box-shadow:
    inset 0 0 0 1px
    rgba(136, 205, 255, .23),
    0 8px 20px
    rgba(30, 84, 145, .12);
}

html[data-theme="mixed"] .nav-count {
  color: #dce9f8;
  background:
    rgba(104, 169, 241, .13);
}

html[data-theme="mixed"] .search-wrap,
html[data-theme="mixed"] .icon-button,
html[data-theme="mixed"] .mobile-menu {
  background:
    rgba(28, 40, 64, .94);
  border-color:
    rgba(138, 184, 241, .17);
}

html[data-theme="mixed"] .search-wrap:focus-within {
  border-color:
    rgba(100, 201, 255, .48);
  box-shadow:
    0 0 0 3px
    rgba(87, 181, 255, .10);
}

html[data-theme="mixed"] .card {
  background:
    linear-gradient(
      145deg,
      rgba(29, 43, 70, .98),
      rgba(30, 32, 60, .98)
    );
  border-color:
    rgba(139, 184, 239, .16);
  box-shadow:
    0 10px 28px
    rgba(0, 0, 0, .12),
    inset 0 1px 0
    rgba(255, 255, 255, .035);
}

html[data-theme="mixed"] .card:hover {
  border-color:
    rgba(101, 215, 255, .40);
  background:
    linear-gradient(
      145deg,
      rgba(34, 54, 88, .99),
      rgba(43, 36, 77, .99)
    );
  transform: translateY(-1px);
}

html[data-theme="mixed"] .card::after {
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(84, 190, 255, .12),
      transparent 48%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(172, 116, 255, .10),
      transparent 45%
    );
}

html[data-theme="mixed"] .card-kicker,
html[data-theme="mixed"] .back-button,
html[data-theme="mixed"] td:first-child,
html[data-theme="mixed"] .external-md-content a {
  color: var(--mixed-cyan);
}

html[data-theme="mixed"] .detail-hero {
  background:
    linear-gradient(
      145deg,
      rgba(30, 48, 79, .98),
      rgba(44, 35, 76, .98)
    );
  border-color:
    rgba(132, 188, 246, .19);
}

html[data-theme="mixed"] .detail-stat {
  background:
    linear-gradient(
      145deg,
      rgba(70, 166, 238, .18),
      rgba(155, 103, 255, .14)
    );
  border-color:
    rgba(131, 198, 255, .15);
}

html[data-theme="mixed"] .badge {
  color: #d7e8fb;
  background:
    linear-gradient(
      90deg,
      rgba(63, 160, 231, .10),
      rgba(142, 95, 238, .09)
    );
  border-color:
    rgba(143, 190, 243, .16);
}

html[data-theme="mixed"] .panel,
html[data-theme="mixed"] .board-wide-section,
html[data-theme="mixed"] .external-md-table-wrap,
html[data-theme="mixed"] .order-comment {
  background:
    linear-gradient(
      145deg,
      rgba(24, 36, 58, .92),
      rgba(28, 29, 53, .92)
    );
  border-color:
    rgba(133, 181, 239, .15);
}

html[data-theme="mixed"] th {
  background:
    rgba(77, 140, 210, .08);
}

html[data-theme="mixed"] .file-link,
html[data-theme="mixed"] .repo-link,
html[data-theme="mixed"] .external-pdf-row {
  background:
    rgba(39, 55, 87, .62);
}

html[data-theme="mixed"] .file-link:hover,
html[data-theme="mixed"] .repo-link:hover,
html[data-theme="mixed"] .external-pdf-row:hover {
  border-color:
    rgba(102, 221, 255, .35);
  background:
    linear-gradient(
      90deg,
      rgba(56, 189, 248, .15),
      rgba(167, 139, 250, .11)
    );
}

html[data-theme="mixed"] .image-grid a,
html[data-theme="mixed"] .thales-source-image {
  background:
    rgba(33, 45, 70, .88);
}

html[data-theme="mixed"] .theme-switcher {
  background:
    rgba(26, 37, 60, .95);
  border-color:
    rgba(132, 187, 248, .20);
}

html[data-theme="mixed"] .theme-switcher-thumb {
  background:
    linear-gradient(
      135deg,
      #387fc0,
      #7450b5
    );
  box-shadow:
    0 3px 12px
    rgba(16, 54, 100, .32),
    inset 0 0 0 1px
    rgba(154, 218, 255, .23);
}

html[data-theme="mixed"] .sidebar-footer {
  color: #9fb0c5;
}

html[data-theme="mixed"] .status-dot {
  box-shadow:
    0 0 0 4px
    rgba(100, 227, 164, .11),
    0 0 12px
    rgba(100, 227, 164, .38);
}



/* ==========================================================
   MIXED PREMIUM ENTERPRISE V6.43
   ========================================================== */

/*
  Design goals:
  - enterprise / engineering dashboard
  - restrained navy + slate palette
  - one primary blue accent
  - minimal gradients
  - clearer surface hierarchy
  - subtle depth, no neon/gaming look
*/

html[data-theme="mixed"] {
  color-scheme: dark;

  --bg: #0f1623;
  --panel: #151e2d;
  --panel-2: #1a2536;
  --panel-3: #223047;

  --line: rgba(166, 184, 207, .11);
  --line-strong: rgba(166, 190, 222, .20);

  --text: #f2f5f9;
  --muted: #9aa8ba;
  --muted-2: #748398;

  --accent: #6ea8fe;
  --accent-soft: rgba(110, 168, 254, .12);

  --good: #55c895;
  --danger: #f1777d;

  --enterprise-blue: #6ea8fe;
  --enterprise-blue-strong: #83b4ff;
  --enterprise-surface: #172235;
  --enterprise-surface-raised: #1b283c;

  --shadow:
    0 18px 48px
    rgba(3, 8, 17, .22);
}

/* Base */
html[data-theme="mixed"],
html[data-theme="mixed"] body {
  background: var(--bg);
}

/* Sidebar */
html[data-theme="mixed"] .sidebar {
  background: #121b29;
  border-right-color: rgba(165, 187, 216, .10);
}

html[data-theme="mixed"] .sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: rgba(255,255,255,.035);
  pointer-events: none;
}

/* Top bar */
html[data-theme="mixed"] .topbar {
  background: rgba(15, 22, 35, .92);
  border-bottom-color: rgba(165, 187, 216, .10);
  backdrop-filter: blur(16px);
}

/* Brand */
html[data-theme="mixed"] .brand-mark {
  background: #1a2638;
  border-color: rgba(154, 181, 218, .16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 6px 18px rgba(0,0,0,.12);
}

/* Navigation */
html[data-theme="mixed"] .nav-item {
  color: #a3b0c1;
  border: 1px solid transparent;
}

html[data-theme="mixed"] .nav-item:hover {
  color: #edf3fb;
  background: rgba(255,255,255,.032);
}

html[data-theme="mixed"] .nav-item.active {
  color: #f7fbff;
  background: rgba(110, 168, 254, .11);
  border-color: rgba(110, 168, 254, .16);
  box-shadow:
    inset 3px 0 0 #6ea8fe;
}

html[data-theme="mixed"] .nav-item.active .nav-icon {
  color: #8ab9ff;
}

html[data-theme="mixed"] .nav-count {
  color: #bac6d5;
  background: rgba(255,255,255,.05);
}

/* Search / controls */
html[data-theme="mixed"] .search-wrap,
html[data-theme="mixed"] .icon-button,
html[data-theme="mixed"] .mobile-menu {
  background: #141e2d;
  border-color: rgba(166, 187, 215, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}

html[data-theme="mixed"] .search-wrap:focus-within {
  border-color: rgba(110, 168, 254, .45);
  box-shadow:
    0 0 0 3px rgba(110, 168, 254, .075);
}

html[data-theme="mixed"] .search-wrap input::placeholder {
  color: #66758a;
}

html[data-theme="mixed"] .icon-button:hover,
html[data-theme="mixed"] .mobile-menu:hover {
  background: #1a2638;
  border-color: rgba(166, 187, 215, .18);
}

/* General cards */
html[data-theme="mixed"] .card {
  background: #172235;
  border-color: rgba(163, 184, 211, .105);
  box-shadow:
    0 8px 24px rgba(0,0,0,.09),
    inset 0 1px 0 rgba(255,255,255,.018);
}

html[data-theme="mixed"] .card::after {
  display: none;
}

html[data-theme="mixed"] .card:hover {
  background: #1a2639;
  border-color: rgba(110, 168, 254, .26);
  box-shadow:
    0 12px 30px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.025);
  transform: translateY(-1px);
}

/* Typography accents */
html[data-theme="mixed"] .card-kicker,
html[data-theme="mixed"] .back-button,
html[data-theme="mixed"] .external-md-content a {
  color: #83b4ff;
}

html[data-theme="mixed"] td:first-child {
  color: #a7c9fb;
}

/* Hero/detail */
html[data-theme="mixed"] .detail-hero {
  background: #172235;
  border-color: rgba(166, 187, 215, .12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.02);
}

html[data-theme="mixed"] .detail-stat {
  background: #1b283b;
  border-color: rgba(166, 187, 215, .10);
}

/* Panels */
html[data-theme="mixed"] .panel,
html[data-theme="mixed"] .board-wide-section,
html[data-theme="mixed"] .external-md-table-wrap,
html[data-theme="mixed"] .order-comment {
  background: #151f2f;
  border-color: rgba(163, 184, 211, .105);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.016);
}

html[data-theme="mixed"] .panel-head,
html[data-theme="mixed"] .board-wide-section-head {
  border-bottom-color: rgba(163, 184, 211, .09);
}

/* Tables */
html[data-theme="mixed"] table {
  border-color: rgba(163, 184, 211, .10);
}

html[data-theme="mixed"] th {
  color: #a9b8ca;
  background: #182335;
  border-bottom-color: rgba(163, 184, 211, .11);
}

html[data-theme="mixed"] td {
  border-bottom-color: rgba(163, 184, 211, .08);
}

html[data-theme="mixed"] tr:hover td {
  background: rgba(110, 168, 254, .025);
}

/* Badges */
html[data-theme="mixed"] .badge,
html[data-theme="mixed"] .order-status-pill {
  color: #c7d3e2;
  background: rgba(255,255,255,.028);
  border-color: rgba(166, 187, 215, .12);
}

html[data-theme="mixed"] .order-status-delivered {
  color: #8ed9b8;
  border-color: rgba(85, 200, 149, .28);
  background: rgba(85, 200, 149, .055);
}

html[data-theme="mixed"] .order-status-triage,
html[data-theme="mixed"] .order-status-rda,
html[data-theme="mixed"] .order-status-oda,
html[data-theme="mixed"] .order-status-partial {
  color: #a9caff;
  border-color: rgba(110, 168, 254, .22);
  background: rgba(110, 168, 254, .05);
}

/* Files / repos / external docs */
html[data-theme="mixed"] .file-link,
html[data-theme="mixed"] .repo-link,
html[data-theme="mixed"] .external-pdf-row {
  background: #172235;
  border-color: rgba(163, 184, 211, .10);
}

html[data-theme="mixed"] .file-link:hover,
html[data-theme="mixed"] .repo-link:hover,
html[data-theme="mixed"] .external-pdf-row:hover {
  background: #1b283c;
  border-color: rgba(110, 168, 254, .24);
}

/* Image containers */
html[data-theme="mixed"] .image-grid a,
html[data-theme="mixed"] .thales-source-image {
  background: #111a28;
  border-color: rgba(163, 184, 211, .10);
}

/* Project/presentation blocks */
html[data-theme="mixed"] .thales-presentation {
  --thales-card-bg: #151f2f;
}

html[data-theme="mixed"] .thales-section,
html[data-theme="mixed"] .thales-slide,
html[data-theme="mixed"] .thales-presentation-slide {
  border-color: rgba(163, 184, 211, .10);
}

/* Orders */
html[data-theme="mixed"] .order-card-meta-grid span,
html[data-theme="mixed"] .order-comment-date {
  color: #8190a4;
}

html[data-theme="mixed"] .order-card-meta-grid strong,
html[data-theme="mixed"] .order-comment-author {
  color: #e7edf5;
}

/* Theme switcher */
html[data-theme="mixed"] .theme-switcher {
  background: #111a28;
  border-color: rgba(163, 184, 211, .12);
}

html[data-theme="mixed"] .theme-switcher-thumb {
  background: #243552;
  box-shadow:
    inset 0 0 0 1px rgba(124, 177, 255, .18),
    0 2px 8px rgba(0,0,0,.16);
}

/* Footer */
html[data-theme="mixed"] .sidebar-footer {
  color: #8d9caf;
}

html[data-theme="mixed"] .status-dot {
  box-shadow:
    0 0 0 4px rgba(85, 200, 149, .09);
}

/* Scrollbars where supported */
html[data-theme="mixed"] {
  scrollbar-color:
    #314058
    #111926;
}

html[data-theme="mixed"] *::-webkit-scrollbar-thumb {
  background: #314058;
  border-radius: 10px;
}

html[data-theme="mixed"] *::-webkit-scrollbar-track {
  background: #111926;
}



/* ==========================================================
   MOBILE BOARD UX V6.44
   ========================================================== */

.sr-only {
  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;
}

.hamburger-icon {
  position: relative;
  width: 19px;
  height: 14px;
  display: inline-block;
}

.hamburger-icon::before,
.hamburger-icon::after,
.hamburger-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.hamburger-icon::before { top: 0; }
.hamburger-icon span { top: 6px; }
.hamburger-icon::after { bottom: 0; }

.mobile-menu { font-size: 0; }
.mobile-menu .hamburger-icon { font-size: initial; }

.pinout-mobile-group,
.board-mobile-jumps {
  display: none;
}

@media (max-width: 760px) {
  .mobile-menu {
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 11px;
  }

  .board-mobile-jumps {
    display: flex;
    gap: 7px;
    width: 100%;
    margin: 0 0 14px;
    padding: 2px 1px 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .board-mobile-jumps::-webkit-scrollbar { display: none; }

  .board-mobile-jumps a {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
  }

  .board-mobile-jumps a:active {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--panel-2);
  }

  #board-overview,
  #board-pinout,
  #board-connectors,
  #board-documents,
  #board-connections,
  #board-technical {
    scroll-margin-top: 12px;
  }

  #board-pinout .pinout-desktop-content { display: none; }

  #board-pinout .pinout-mobile-group {
    display: block;
    margin: 0 0 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
  }

  .pinout-mobile-group > summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    cursor: pointer;
    list-style: none;
    user-select: none;
  }

  .pinout-mobile-group > summary::-webkit-details-marker { display: none; }

  .pinout-mobile-summary-main {
    min-width: 0;
    flex: 1 1 auto;
  }

  .pinout-mobile-name {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 760;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .pinout-mobile-count {
    display: block;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 11px;
  }

  .pinout-mobile-chevron {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  .pinout-mobile-chevron::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    left: 4px;
    top: 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .16s ease;
  }

  .pinout-mobile-group[open] .pinout-mobile-chevron::before {
    transform: translateY(4px) rotate(225deg);
  }

  .pinout-mobile-body { border-top: 1px solid var(--line); }

  .mobile-pin-row {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 8px;
    gap: 10px;
    align-items: start;
    min-height: 51px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-pin-row:last-child { border-bottom: 0; }

  .mobile-pin-number {
    min-width: 32px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-pin-content { min-width: 0; }

  .mobile-pin-signal {
    color: var(--text);
    font-size: 14px;
    font-weight: 720;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .mobile-pin-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
  }

  .mobile-pin-notes span {
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .mobile-pin-kind {
    width: 6px;
    height: 6px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--muted-2);
  }

  .mobile-pin-kind-power .mobile-pin-kind { background: #d8a24e; }
  .mobile-pin-kind-ground .mobile-pin-kind { background: #8c98a8; }
  .mobile-pin-kind-safety .mobile-pin-kind { background: #d36d74; }
  .mobile-pin-kind-network .mobile-pin-kind { background: #639fcd; }
  .mobile-pin-kind-signal .mobile-pin-kind { background: #8a82c7; }

  .pinout-mobile-connectors {
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .cables-pinouts-section .structured-mobile-list { display: none; }

  .cables-pinouts-section .mobile-connection-list {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
  }

  .mobile-connection-card {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 12px 12px 12px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel-2);
  }

  .mobile-connection-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 999px;
    background: var(--muted-2);
    opacity: .65;
  }

  .mobile-connection-card.mobile-pin-kind-power::before { background: #d8a24e; }
  .mobile-connection-card.mobile-pin-kind-safety::before { background: #d36d74; }
  .mobile-connection-card.mobile-pin-kind-network::before { background: #639fcd; }
  .mobile-connection-card.mobile-pin-kind-signal::before { background: #8a82c7; }

  .mobile-connection-index {
    position: absolute;
    top: 8px;
    right: 9px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-connection-endpoint {
    min-width: 0;
    padding-right: 25px;
  }

  .mobile-connection-endpoint span,
  .mobile-connection-meta span {
    display: block;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .mobile-connection-endpoint strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .mobile-connection-route {
    position: relative;
    padding-left: 16px;
  }

  .mobile-connection-line {
    position: absolute;
    left: 4px;
    top: 2px;
    bottom: 3px;
    width: 1px;
    background: var(--line-strong);
  }

  .mobile-connection-line::before,
  .mobile-connection-line::after {
    content: "";
    position: absolute;
    left: -2.5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
  }

  .mobile-connection-line::before { top: 0; }
  .mobile-connection-line::after { bottom: 0; }

  .mobile-connection-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 5px 0;
  }

  .mobile-connection-meta strong {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .mobile-connection-endpoint-to { padding-left: 16px; }

  .technical-data-section .structured-mobile-card {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 10px;
    border-radius: 10px;
  }

  .technical-data-section .structured-mobile-index {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .technical-data-section .structured-mobile-fields { gap: 7px; }

  .technical-data-section .structured-mobile-field {
    grid-template-columns: minmax(82px, .8fr) minmax(0, 1.4fr);
    gap: 8px;
  }
}



/* ==========================================================
   WIRING / STRUCTURED RESPONSIVE CLEANUP V6.49
   ========================================================== */

/*
  The structured renderer contains both desktop and mobile
  representations in the DOM. Only one must ever be visible.
*/

/* Desktop/default: never show mobile duplicates. */
.structured-mobile-list,
.mobile-connection-list {
  display: none !important;
}

/* Keep the desktop representation clean and compact. */
.cables-pinouts-section .structured-panel {
  overflow: hidden;
}

.cables-pinouts-section .structured-desktop {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cables-pinouts-section .structured-table {
  width: 100%;
  min-width: 620px;
}

.cables-pinouts-section .structured-table th,
.cables-pinouts-section .structured-table td {
  padding: 10px 12px;
  min-width: 0;
  line-height: 1.35;
}

.cables-pinouts-section .structured-table th {
  white-space: normal;
}

.cables-pinouts-section .structured-table td {
  overflow-wrap: anywhere;
}

/*
  Slightly reduce vertical noise between mappings.
  The panel already provides enough visual separation.
*/
.cables-pinouts-section .cable-pinout-block {
  margin-bottom: 14px;
}

.cables-pinouts-section .cable-pinout-block:last-child {
  margin-bottom: 0;
}

/* Desktop safety: V6.44 mobile board components stay hidden. */
@media (min-width: 761px) {
  .pinout-mobile-group,
  .board-mobile-jumps,
  .structured-mobile-list,
  .mobile-connection-list {
    display: none !important;
  }

  .pinout-desktop-content,
  .structured-desktop {
    display: block !important;
  }
}

/*
  Mobile:
  - generic structured sections -> mobile cards only
  - Cables_Pinouts -> From / metadata / To cards only
  - no duplicated desktop table beneath or above them
*/
@media (max-width: 760px) {
  .structured-desktop {
    display: none !important;
  }

  .technical-data-section .structured-mobile-list {
    display: grid !important;
  }

  .cables-pinouts-section .structured-mobile-list {
    display: none !important;
  }

  .cables-pinouts-section .mobile-connection-list {
    display: grid !important;
    gap: 8px;
    padding: 0 11px 11px;
  }

  .cables-pinouts-section .structured-panel {
    background: var(--panel);
    border: 1px solid var(--line);
  }

  .cables-pinouts-section .structured-panel-head {
    padding: 14px 15px;
  }

  .cables-pinouts-section .structured-panel-head h3 {
    font-size: 16px;
    line-height: 1.25;
  }

  .mobile-connection-card {
    margin: 0;
  }
}



/* ==========================================================
   KYON IKEA + TECHNICAL LAYOUT CLEANUP V6.53
   ========================================================== */

/* The individual technical panels already carry their own titles.
   Avoid a second redundant title block and the large dark gap. */
.technical-data-section {
  margin-top: 12px !important;
  padding-top: 0 !important;
  background: transparent !important;
}

.technical-data-section > .board-wide-section-head {
  display: none !important;
}

.technical-data-section .structured-panel {
  margin-top: 0;
  margin-bottom: 12px;
}

.technical-data-section .structured-panel:last-child {
  margin-bottom: 0;
}

.technical-data-section .structured-panel-head {
  padding-top: 14px;
  padding-bottom: 14px;
  align-items: center;
}

.technical-data-section .structured-panel-head h3 {
  font-size: 18px;
  line-height: 1.25;
}

/* Do not stack the last mapping's old bottom spacing with
   the following technical-data section. */
.cables-pinouts-section .cable-pinout-block:last-child {
  margin-bottom: 0;
}

.cables-pinouts-section + .technical-data-section {
  margin-top: 14px !important;
}

/* Board descriptions are intentionally not part of DOCs anymore. */
.detail-hero .detail-description {
  display: none !important;
}

@media (max-width: 760px) {
  .technical-data-section {
    margin-top: 10px !important;
  }

  .cables-pinouts-section + .technical-data-section {
    margin-top: 10px !important;
  }

  .technical-data-section .structured-panel-head {
    padding: 13px 15px;
  }

  .technical-data-section .structured-panel-head h3 {
    font-size: 17px;
  }
}


/* ==========================================================
   DOCS CUMULATIVE FIX V6.54
   ========================================================== */

.detail-description {
  display: none !important;
}

.technical-data-section {
  margin-top: 12px !important;
  padding-top: 0 !important;
  background: transparent !important;
}

.technical-data-section > .board-wide-section-head {
  display: none !important;
}

.technical-data-section .structured-panel {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.technical-data-section .structured-panel:last-child {
  margin-bottom: 0 !important;
}

.technical-data-section .structured-panel-head {
  padding-top: 14px;
  padding-bottom: 14px;
  align-items: center;
}

.technical-data-section .structured-panel-head h3 {
  font-size: 18px;
  line-height: 1.25;
}

.cables-pinouts-section .cable-pinout-block:last-child {
  margin-bottom: 0 !important;
}

.cables-pinouts-section + .technical-data-section {
  margin-top: 14px !important;
}

.order-github-link {
  display: none !important;
}

@media (max-width: 760px) {
  .technical-data-section,
  .cables-pinouts-section + .technical-data-section {
    margin-top: 10px !important;
  }

  .technical-data-section .structured-panel-head {
    padding: 13px 15px;
  }

  .technical-data-section .structured-panel-head h3 {
    font-size: 17px;
  }
}



/* ==========================================================
   DOCS CUMULATIVE FIX V6.56
   ========================================================== */

.detail-description {
  display: none !important;
}

.technical-data-section {
  margin-top: 12px !important;
  padding-top: 0 !important;
  background: transparent !important;
}

.technical-data-section > .board-wide-section-head {
  display: none !important;
}

.technical-data-section .structured-panel {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.technical-data-section .structured-panel:last-child {
  margin-bottom: 0 !important;
}

.technical-data-section .structured-panel-head {
  padding-top: 14px;
  padding-bottom: 14px;
  align-items: center;
}

.technical-data-section .structured-panel-head h3 {
  font-size: 18px;
  line-height: 1.25;
}

.cables-pinouts-section .cable-pinout-block:last-child {
  margin-bottom: 0 !important;
}

.cables-pinouts-section + .technical-data-section {
  margin-top: 14px !important;
}

.order-github-link {
  display: none !important;
}

@media (max-width: 760px) {
  .technical-data-section,
  .cables-pinouts-section + .technical-data-section {
    margin-top: 10px !important;
  }

  .technical-data-section .structured-panel-head {
    padding: 13px 15px;
  }

  .technical-data-section .structured-panel-head h3 {
    font-size: 17px;
  }
}


/* ==========================================================
   ORDERS COMMENTS RESPONSIVE CLEANUP V6.56
   ========================================================== */

.order-comments-panel-v656 {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  margin-bottom: 0;
  overflow: hidden;
}

.order-comments-panel-head-v656 {
  align-items: center;
}

.order-comments-panel-head-v656 > div {
  min-width: 0;
}

.order-comments-panel-body-v656 {
  padding: 16px 18px 18px;
  min-width: 0;
}

.order-comments-v656 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.order-comment-v656 {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  overflow: hidden;
}

.order-comment-header-v656 {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin: 0 0 12px;
}

.order-comment-avatar-v656 {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.order-comment-avatar-placeholder-v656 {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.order-comment-identity-v656 {
  flex: 1 1 auto;
  min-width: 0;
}

.order-comment-author-v656 {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.order-comment-date-v656 {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.order-comment-body-v656 {
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-comment-attachments-v656 {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .order-comments-panel-v656 {
    margin-top: 13px;
  }

  .order-comments-panel-body-v656 {
    padding: 11px;
  }

  .order-comment-v656 {
    padding: 13px;
    border-radius: 10px;
  }

  .order-comment-header-v656 {
    margin-bottom: 10px;
  }

  .order-comment-body-v656 {
    font-size: 13px;
  }
}


/* ==========================================================
   ORDERS FINAL CONTAINMENT V6.56
   ========================================================== */

.order-comments-panel-v656 {
  grid-column: 1 / -1 !important;
  display: block !important;
  clear: both !important;
}

.order-comments-panel-v656 .panel-head {
  width: 100% !important;
  min-width: 0 !important;
}

.order-comments-panel-v656 .panel-body,
.order-comments-v656,
.order-comment-v656,
.order-comment-body-v656 {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.order-comment-body-v656 {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* Board descriptions are intentionally omitted from DOCs. */
.detail-hero > div > .detail-description {
  display: none !important;
}

