:root {
  --paper: #fff;
  --surface: #f6f5f3;
  --ink: #25272a;
  --muted: #60636b;
  --line: #dedfe3;
  --red: #bc2339;
  --tint: #f9ecee;
  --warning: #815114;
  --shadow: 0 18px 55px #26282d12;
  font-family: Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
html[data-theme="dark"] {
  --paper: #202226;
  --surface: #15171a;
  --ink: #f0f1f3;
  --muted: #b7bac2;
  --line: #454950;
  --red: #ff8d9e;
  --tint: #40252b;
  --warning: #efd1a6;
  --shadow: 0 18px 55px #0003;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a {
  color: var(--red);
}
.skip {
  position: absolute;
  inset-inline-start: 10px;
  top: -60px;
  background: var(--paper);
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 5px;
}
.topbar {
  height: 86px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-top: 4px solid #bc2339;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.identity {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.identity img {
  height: 54px;
  width: 150px;
  padding: 6px;
  object-fit: contain;
  background: #bc2339;
  border-radius: 6px;
  flex-shrink: 0;
}
.identity small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.top-actions,
.toolbar,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top-actions button,
.toolbar button,
.actions button,
button.secondary,
.nav button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  min-height: 42px;
}
.primary {
  padding: 11px 20px;
  border: 1px solid #bc2339;
  border-radius: 8px;
  background: #bc2339;
  color: white;
  font-weight: 700;
  min-height: 44px;
}
.danger {
  color: var(--red) !important;
  border-color: var(--red) !important;
}
.text-button {
  background: none;
  border: 0;
  color: var(--red);
  text-decoration: underline;
  padding: 5px;
}
.nav {
  width: 235px;
  position: sticky;
  top: 106px;
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.nav button {
  display: block;
  text-align: start;
  width: 100%;
  margin-bottom: 6px;
  border-color: transparent;
}
.nav button[aria-current="page"] {
  background: var(--tint);
  color: var(--red);
  border-color: var(--red);
  font-weight: 700;
}
.nav small {
  display: block;
  color: var(--muted);
  padding: 12px;
}
#workspace.authenticated {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 26px;
  padding: 28px;
  max-width: 1700px;
  margin: auto;
}
main {
  min-width: 0;
  padding: 0 0 60px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 10px 0;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 13px;
}
h3 {
  font-size: 17px;
  margin: 8px 0;
}
p {
  margin: 9px 0 16px;
}
.muted,
small {
  color: var(--muted);
}
.notice {
  padding: 16px 20px;
  border-inline-start: 3px solid var(--red);
  background: var(--tint);
  border-radius: 5px;
  margin: 18px 0;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 20px 0;
}
.hero {
  background: linear-gradient(120deg, var(--paper), var(--surface));
  position: relative;
  overflow: hidden;
  padding: 45px;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.hero:after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 260px;
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 50%;
  inset-inline-end: -60px;
  top: -120px;
  box-shadow:
    0 0 0 22px var(--surface),
    0 0 0 23px var(--line),
    0 0 0 50px var(--surface),
    0 0 0 51px var(--line);
}
.hero > * {
  position: relative;
  z-index: 1;
}
.summary-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.summary-card {
  background: var(--paper);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.summary-card strong {
  display: block;
  font-size: 35px;
  line-height: 1.2;
}
.summary-card small {
  font-size: 12px;
}
.search {
  display: flex;
  flex: 1;
  min-width: 180px;
}
.search input,
input,
select,
textarea {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  max-width: 100%;
}
.search input {
  width: 100%;
  min-height: 46px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.field textarea {
  min-height: 100px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  white-space: normal;
  line-height: 1.5;
}
.tag.warning {
  color: var(--warning);
}
.membership-table .member-status {
  font-size: 14px;
  font-weight: 700;
}
.membership-table th,
.membership-table td {
  padding: 12px 10px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: normal;
}
.membership-table td {
  font-size: 14px;
}
.membership-table .member-identifier {
  overflow-wrap: anywhere;
}
@media (min-width: 651px) {
  .membership-table td:first-child {
    width: 22%;
  }
  .membership-table td:nth-child(3) {
    min-width: 8rem;
  }
}
.membership-table .member-actions button {
  margin: 3px;
  max-width: calc(100% - 6px);
  white-space: normal;
}
@media (max-width: 650px) {
  .membership-table,
  .membership-table tbody {
    display: block;
    min-width: 0;
  }
  .membership-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .membership-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .membership-table td {
    display: block;
    min-width: 0;
    padding: 4px;
    border: 0;
  }
  .membership-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
  }
  .membership-table td:first-child,
  .membership-table .member-access,
  .membership-table .member-actions {
    grid-column: 1 / -1;
  }
}
.table-wrap {
  overflow: auto;
  margin-top: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 12px;
}
th {
  text-align: start;
  font-weight: 700;
  background: var(--surface);
  color: var(--muted);
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td strong {
  display: block;
}
td small {
  display: block;
  margin-top: 3px;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.record-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.record-card img {
  height: 160px;
  width: 100%;
  object-fit: contain;
  padding: 18px;
  background: #fff;
  mix-blend-mode: normal;
  opacity: 1;
}
.record-card .card-body {
  padding: 20px;
  flex: 1;
}
.record-card .card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #60636b;
}
.record-card .actions {
  padding: 0 20px 20px;
}
.record-card p {
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 25px 0;
}
.tabs button {
  white-space: nowrap;
}
.tabs [aria-selected="true"] {
  background: var(--tint);
  border-color: var(--red);
  color: var(--red);
}
.equipment-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}
.equipment-hero img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: white;
  padding: 16px;
  border-radius: 12px;
}
.description-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  margin: 0;
}
.description-list dt {
  color: var(--muted);
}
.description-list dd {
  margin: 0;
}
.login-page {
  max-width: 950px;
  margin: 65px auto;
  padding: 25px;
}
.login-page .hero {
  padding: 55px;
}
.login-page h1 {
  max-width: 580px;
  font-size: 44px;
}
.login-page p {
  max-width: 600px;
}
.login-page .primary {
  margin: 20px 0;
}
.pending {
  max-width: 750px;
  margin: 60px auto;
  padding: 30px;
}
.auth-email {
  font-size: 12px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: #0c0d1190;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}
.dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  width: min(100%, 900px);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 30px 100px #0006;
}
.dialog-head {
  padding: 20px 24px;
  position: sticky;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.dialog-body {
  padding: 25px;
}
.dialog-close {
  font-size: 22px;
  background: none;
  border: 0;
  color: var(--ink);
  width: 44px;
  height: 44px;
}
.error {
  color: var(--red);
  font-weight: 700;
}
#message:not(:empty) {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  max-width: 420px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--red);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 60;
}
.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
}
.room-scene {
  min-width: 0;
}
.room-scene canvas {
  width: 100%;
  height: 560px;
  display: block;
  touch-action: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
}
.room-control-panel {
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 16px;
  background: var(--paper);
}
.room-control-panel .actions {
  margin: 12px 0;
}
.room-control-panel .actions button {
  flex: 1;
}
.room-control-panel .field {
  margin-bottom: 12px;
}
.room-list {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 5px;
}
.room-list button {
  text-align: start;
}
.room-list [aria-pressed="true"] {
  border-color: var(--red);
  background: var(--tint);
}
.source-image {
  display: block;
  width: 100%;
  object-fit: contain;
  background: #fff;
}
.startup-document {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
}
.pdf-frame {
  width: 100%;
  height: 65vh;
  border: 1px solid var(--line);
  background: white;
}
.preview-image {
  width: 100%;
  height: auto;
  background: white;
}
.assistant-results {
  display: grid;
  gap: 8px;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.original-source {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.hidden {
  display: none !important;
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-layout {
    grid-template-columns: 1fr;
  }
  .room-control-panel {
    max-height: none;
  }
  .room-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  #workspace.authenticated {
    display: block;
    padding: 18px;
  }
  .nav {
    position: static;
    width: 100%;
    display: flex;
    gap: 7px;
    overflow: auto;
    margin-bottom: 22px;
    padding: 9px;
  }
  .nav button {
    white-space: nowrap;
    width: auto;
    margin: 0;
  }
  .nav small {
    display: none;
  }
  .topbar {
    padding: 12px 16px;
    height: auto;
    min-height: 78px;
  }
  .identity img {
    width: 108px;
    height: 43px;
    padding: 5px;
  }
  .identity span {
    font-size: 12px;
  }
  .top-actions {
    gap: 5px;
  }
  .auth-email {
    display: none;
  }
  .top-actions button {
    padding: 7px 9px;
    font-size: 12px;
  }
  .equipment-hero {
    grid-template-columns: 150px 1fr;
  }
  .hero {
    padding: 26px;
  }
  .page-head {
    display: block;
  }
  h1 {
    font-size: 28px;
  }
  .room-scene canvas {
    height: 440px;
  }
  .room-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .cards,
  .summary-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .topbar .identity span {
    display: none;
  }
  .panel {
    padding: 18px;
  }
  .equipment-hero {
    grid-template-columns: 1fr;
  }
  .equipment-hero img {
    height: 170px;
  }
  .dialog-backdrop {
    padding: 8px;
  }
  .dialog-body {
    padding: 18px;
  }
  .description-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .description-list dd {
    margin-bottom: 10px;
  }
  .login-page {
    margin: 25px auto;
    padding: 16px;
  }
  .login-page .hero {
    padding: 28px;
  }
  .login-page h1 {
    font-size: 34px;
  }
  .room-scene canvas {
    height: 365px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

#room-plan {
  display: block;
  width: 100%;
  height: 560px;
  touch-action: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
#room-plan .plan-floor {
  fill: var(--surface);
  stroke: var(--muted);
  stroke-width: 1;
}
#room-plan .plan-wall {
  stroke: var(--muted);
  stroke-width: 4;
}
#room-plan .plan-door {
  stroke: #a76f2e;
  stroke-width: 2;
  fill: none;
}
#room-plan rect {
  fill: var(--paper);
  stroke: var(--muted);
  stroke-width: 1.5;
}
#room-plan rect.selected {
  stroke: var(--red);
  stroke-width: 3;
  fill: var(--tint);
}
#room-plan text {
  fill: var(--ink);
  font-size: 7px;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 2px;
  pointer-events: none;
}
#room-plan [role="button"] {
  cursor: pointer;
}
@media (max-width: 800px) {
  #room-plan {
    height: 440px;
  }
}
@media (max-width: 500px) {
  #room-plan {
    height: 365px;
  }
}

/* Approved r11 design layers: base, bilingual/theme, architectural EME treatment. */
:root {
  --red: #b91f32;
  --red-dark: #98182a;
  --red-tint: #fdf1f2;
  --ink: #25282d;
  --muted: #74777e;
  --line: #e8e8eb;
  --paper: #fff;
  --canvas: #f7f8fa;
  --amber: #8e620f;
  --amber-bg: #fff7e8;
  --green: #36735d;
  --green-bg: #eef7f2;
  --radius: 16px;
  --shadow: 0 10px 35px #24263108;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #aa3d53;
  outline-offset: 3px;
}
button {
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 31px;
  line-height: 1.4;
  letter-spacing: -0.7px;
  font-weight: 700;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
}
small {
  font-size: 12px;
}
bdi,
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: "Segoe UI", Arial, sans-serif;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 100;
  background: var(--red);
  color: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 236px;
  background: white;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
  padding: 29px 19px 18px;
}
.brand {
  display: block;
  padding: 0 12px 28px;
  border-bottom: 1px solid var(--line);
}
.brand img {
  width: 177px;
  height: 71px;
  object-fit: contain;
  filter: brightness(0);
  display: block;
}
.brand > span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-top: 7px;
}
.workspace-label {
  font-size: 11px;
  color: #93969b;
  padding: 23px 13px 14px;
}
.workspace-label span {
  float: left;
  font-size: 10px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 4px 0;
  color: #65686e;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.nav-link:hover {
  background: #f6f6f7;
}
.nav-link.active {
  color: var(--red);
  background: var(--red-tint);
}
.nav-link.active:before {
  content: "";
  position: absolute;
  right: 0;
  height: 27px;
  width: 3px;
  background: var(--red);
  border-radius: 3px 0 0 3px;
}
.nav-link .nav-count {
  font-size: 10px;
  margin-right: auto;
  background: white;
  border: 1px solid var(--line);
  padding: 0 6px;
  border-radius: 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 13px 17px;
}
.sidebar-bottom strong {
  font-size: 12px;
}
.sidebar-bottom p {
  font-size: 11px;
  margin: 7px 0 12px;
  line-height: 1.8;
}
.support-icon {
  background: #f3f3f5;
  border: 1px solid #e9e9ec;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
  color: #7b7d82;
}
.edition {
  font-size: 10px;
  color: #999;
  border-top: 1px solid var(--line);
  padding: 17px 13px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.red-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}
.app-shell {
  margin-right: 236px;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 20px;
}
.crumb {
  font-size: 12px;
  color: #777;
}
.crumb span {
  margin: 0 12px;
  color: #c3c4c7;
}
.top-controls {
  display: flex;
  gap: 26px;
  align-items: center;
}
.prototype-pill {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 9px;
  color: #888;
}
.role-button {
  background: transparent;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: right;
  padding: 0;
}
.role-button strong {
  font-size: 12px;
  display: block;
}
.role-button small {
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fae9ec;
  color: var(--red);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
}
.chev {
  margin-right: 14px;
  color: #999;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 34px 40px 45px;
  min-height: calc(100vh - 146px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.eyebrow {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}
.heading-copy p {
  font-size: 13px;
  margin-top: 8px;
}
.date-chip {
  font-size: 11px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 7px;
}
.date-chip svg {
  width: 16px;
}
.btn {
  padding: 10px 18px;
  min-height: 43px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 8px #b91f3215;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  background: white;
  border: 1px solid #dedee3;
  color: #575a60;
}
.btn-secondary:hover {
  border-color: #babcc1;
  background: #fafafa;
}
.btn-light {
  background: var(--red-tint);
  color: var(--red);
}
.text-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  background: transparent;
  color: var(--red);
  padding: 0;
  font-weight: 600;
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 19px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #777;
  font-size: 11px;
}
.metric-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f6f6f8;
  color: #8b8f95;
}
.metric-icon svg {
  height: 16px;
  width: 16px;
}
.metric-value {
  font-size: 29px;
  line-height: 1.3;
  font-weight: 650;
  margin-top: 11px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.metric-value .unit {
  font-size: 11px;
  font-weight: 400;
  color: #999;
}
.metric small {
  font-size: 10px;
  color: #909299;
  display: block;
  margin-top: 7px;
}
.metric.alert .metric-icon {
  background: var(--amber-bg);
  color: var(--amber);
}
.metric.alert .metric-value {
  color: #855c17;
}
.home-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 23px;
  align-items: stretch;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 23px 18px;
  gap: 15px;
}
.panel-head p {
  font-size: 11px;
  margin-top: 3px;
}
.panel-head h2 {
  font-size: 16px;
}
.count-badge {
  font-size: 10px;
  background: #f3f4f6;
  padding: 3px 7px;
  color: #777;
  border-radius: 6px;
}
.action-list {
  padding: 0 23px 7px;
}
.action-row {
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #f0f0f2;
  align-items: start;
}
.action-symbol {
  background: var(--amber-bg);
  color: #a07625;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  width: 31px;
  border-radius: 8px;
}
.action-symbol svg {
  height: 16px;
  width: 16px;
}
.action-row strong {
  font-size: 12px;
  display: block;
}
.action-row p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 4px;
}
.action-row .arrow {
  font-size: 19px;
  color: #a4a6aa;
  align-self: center;
}
.action-row:hover strong {
  color: var(--red);
}
.action-meta {
  font-size: 10px;
  color: #94979e;
  margin-top: 8px;
  display: flex;
  gap: 12px;
}
.action-meta .priority {
  color: #8d651d;
}
.utilization-body {
  padding: 0 23px 23px;
}
.empty-chart {
  height: 112px;
  border-bottom: 1px solid #eceef0;
  position: relative;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-chart:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 34px,
    #f1f2f4 35px,
    #f1f2f4 36px
  );
}
.chart-label {
  position: relative;
  font-size: 11px;
  color: #969ba3;
  background: white;
  padding: 8px 15px;
  border: 1px dashed #e2e3e7;
  border-radius: 6px;
}
.util-legend {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 19px;
  font-size: 10px;
  color: #a0a3a8;
}
.util-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.util-values strong {
  font-size: 18px;
  font-weight: 500;
  display: block;
  color: #999;
}
.util-values small {
  font-size: 10px;
  color: #8c8f95;
}
.empty-hint {
  background: #f8f9fb;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 10px;
  color: #858992;
  margin-top: 20px;
  line-height: 1.9;
}
.lower-home {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 23px;
  margin-top: 24px;
}
.evidence-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 14px 23px;
  border-top: 1px solid #f2f2f4;
}
.file-icon {
  height: 31px;
  width: 28px;
  display: grid;
  place-items: center;
  color: #999;
  border: 1px solid #e5e6e9;
  border-radius: 5px;
}
.file-icon svg {
  width: 15px;
  height: 15px;
}
.evidence-row strong {
  font-size: 11px;
}
.evidence-row p {
  font-size: 10px;
  margin-top: 2px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.5;
  padding: 4px 7px;
  border-radius: 5px;
  background: #f0f1f4;
  color: #6b7079;
  white-space: nowrap;
}
.tag:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.tag.amber {
  background: var(--amber-bg);
  color: var(--amber);
}
.tag.green {
  background: var(--green-bg);
  color: var(--green);
}
.tag.red {
  background: var(--red-tint);
  color: var(--red);
}
.quick-guide {
  padding: 24px;
  background: linear-gradient(135deg, #fff, #fdf5f6);
  display: flex;
  flex-direction: column;
  align-items: start;
}
.quick-guide .guide-art {
  color: var(--red);
  width: 40px;
  height: 40px;
  border: 1px solid #f0d4d9;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 16px;
}
.quick-guide h2 {
  font-size: 18px;
}
.quick-guide p {
  font-size: 12px;
  line-height: 1.9;
  margin: 9px 0 20px;
  max-width: 340px;
}
.quick-guide .btn {
  margin-top: auto;
}
.info-line {
  font-size: 11px;
  color: #838790;
  margin-top: 21px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.info-line svg {
  height: 15px;
  width: 15px;
  margin-top: 2px;
}
.catalog-toolbar {
  background: white;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 23px;
}
.search-row {
  display: flex;
  gap: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #fafafb;
  border: 1px solid #e7e8eb;
  border-radius: 8px;
  padding: 0 13px;
  flex: 1;
  gap: 10px;
}
.search-box svg {
  height: 19px;
  width: 19px;
  color: #8a8e96;
}
.search-box input {
  border: 0;
  background: none;
  padding: 12px 0;
  width: 100%;
  min-width: 0;
  outline: none !important;
  font-size: 12px;
  color: #333;
}
.select-filter {
  border: 1px solid #e4e5e9;
  border-radius: 8px;
  background: white;
  color: #666;
  font-size: 12px;
  padding: 0 12px;
  min-width: 150px;
}
.filter-chips {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.filter-chip {
  font-size: 11px;
  color: #777;
  background: white;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 11px;
}
.filter-chip.active {
  color: var(--red);
  background: var(--red-tint);
  font-weight: 600;
}
.filter-chip:hover {
  border-color: #eed1d7;
}
.filter-count {
  font-size: 10px;
  color: #999;
  margin-right: auto;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}
.equipment-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.equipment-card:hover {
  transform: translateY(-3px);
  border-color: #d9bfc3;
  box-shadow: 0 8px 25px #34151e0b;
}
.card-image {
  height: 155px;
  background: linear-gradient(180deg, #fbfbfc, #f5f6f8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 35px;
}
.card-image img {
  height: 104px;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.card-image .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: white;
  border: 1px solid #e9eaed;
  font-size: 9px;
}
.card-image .equipment-code {
  position: absolute;
  left: 13px;
  bottom: 9px;
  font-size: 9px;
  color: #a6aab0;
  letter-spacing: 0.6px;
  direction: ltr;
}
.equipment-placeholder {
  color: #b3b7bf;
  background: #f0f1f4;
  border: 1px solid #e6e8ed;
  border-radius: 12px;
  width: 107px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.equipment-placeholder svg {
  width: 42px;
  height: 42px;
}
.card-body {
  padding: 18px 20px 12px;
}
.maker {
  font-size: 10px;
  letter-spacing: 1px;
  color: #999;
  text-transform: uppercase;
}
.card-body h2 {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.5;
  margin: 2px 0 3px;
}
.card-body > p {
  font-size: 11px;
  color: #737780;
  min-height: 19px;
}
.card-tags {
  display: flex;
  gap: 6px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.plain-tag {
  font-size: 10px;
  border: 1px solid #ececf0;
  border-radius: 5px;
  padding: 2px 7px;
  color: #858992;
}
.card-status {
  margin: 13px 20px 0;
  padding-top: 13px;
  border-top: 1px solid #f0f0f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #92959b;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 18px;
  margin-top: auto;
}
.card-bottom span {
  font-size: 10px;
  color: #9699a0;
}
.card-bottom .text-button {
  font-size: 11px;
}
.no-results {
  text-align: center;
  padding: 65px 20px;
  background: white;
  border: 1px dashed #ddd;
  border-radius: 12px;
  grid-column: 1/-1;
}
.no-results h2 {
  margin-bottom: 9px;
}
.no-results p {
  margin-bottom: 18px;
}
.breadcrumb {
  font-size: 11px;
  color: #90949b;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 19px;
}
.breadcrumb a {
  color: #70757d;
}
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 30px;
  position: relative;
}
.detail-hero .maker {
  font-size: 11px;
}
.detail-hero h1 {
  font-size: 38px;
  direction: ltr;
  text-align: right;
  margin: 3px 0 2px;
  font-weight: 650;
}
.detail-hero .subtitle {
  font-size: 15px;
  color: #676c75;
}
.detail-hero .tech-badges {
  display: flex;
  gap: 8px;
  margin: 17px 0;
}
.detail-hero .tech-badges span {
  font-size: 11px;
  background: #f6f7f9;
  border: 1px solid #eceef1;
  padding: 4px 9px;
  border-radius: 5px;
  color: #626974;
}
.detail-hero > img {
  width: 100%;
  height: 195px;
  object-fit: contain;
  mix-blend-mode: multiply;
  align-self: center;
}
.identity-line {
  font-size: 10px;
  color: #999;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 19px 0;
  margin-top: 19px;
}
.state-cell {
  padding: 0 20px;
  border-left: 1px solid var(--line);
}
.state-cell:last-child {
  border: 0;
}
.state-cell > span {
  font-size: 10px;
  color: #999;
  display: block;
  margin-bottom: 8px;
}
.state-cell strong {
  font-size: 12px;
  font-weight: 600;
  color: #6c727d;
}
.state-cell small {
  display: block;
  font-size: 9px;
  color: #a0a3aa;
  margin-top: 4px;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 23px;
  margin-top: 25px;
  align-items: start;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
  overflow: auto;
  scrollbar-width: thin;
}
.tab {
  font-size: 12px;
  white-space: nowrap;
  color: #7e828a;
  background: transparent;
  padding: 4px 0 14px;
  border-bottom: 2px solid transparent;
}
.tab.active {
  border-color: var(--red);
  color: var(--red);
  font-weight: 600;
}
.detail-content h2 {
  font-size: 18px;
  margin-bottom: 9px;
}
.detail-content > p {
  font-size: 12px;
  line-height: 2;
}
.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.brief-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px;
}
.brief-card .brief-icon {
  color: var(--red);
  margin-bottom: 9px;
}
.brief-card .brief-icon svg {
  height: 21px;
  width: 21px;
}
.brief-card h3 {
  font-size: 13px;
  margin-bottom: 6px;
}
.brief-card p {
  font-size: 11px;
  line-height: 1.9;
}
.application-card {
  margin-top: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
}
.application-card h3 {
  font-size: 13px;
}
.application-card ul {
  padding-right: 17px;
  margin: 12px 0 0;
  color: #7c818b;
  font-size: 11px;
  line-height: 2.1;
}
.mini-note {
  font-size: 10px;
  color: #9499a2 !important;
  line-height: 1.8;
  margin-top: 13px !important;
}
.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.request-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.request-panel h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.request-panel > p {
  font-size: 11px;
  line-height: 1.9;
}
.request-panel .btn {
  width: 100%;
  margin: 19px 0 8px;
}
.request-panel > small {
  display: block;
  font-size: 9px;
  color: #9b9fa7;
  text-align: center;
}
.checklist {
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 14px;
}
.checklist > div {
  display: flex;
  gap: 7px;
  align-items: start;
  font-size: 10px;
  color: #8d929a;
  margin: 9px 0;
}
.checklist svg {
  width: 14px;
  height: 14px;
  color: #b2a68a;
  margin-top: 2px;
}
.source-panel {
  background: #f0f2f5;
  border-radius: 11px;
  padding: 19px;
}
.source-panel h3 {
  font-size: 11px;
  color: #747b85;
  display: flex;
  gap: 6px;
  align-items: center;
}
.source-panel h3 svg {
  height: 15px;
  width: 15px;
}
.source-panel p {
  font-size: 10px;
  line-height: 1.9;
  margin-top: 8px;
}
.source-panel button {
  margin-top: 12px;
}
.accessory-list,
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 17px;
}
.accessory-item,
.doc-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: start;
}
.accessory-item .accessory-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #ececf0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #8c939e;
  flex-shrink: 0;
}
.accessory-item h3 {
  font-size: 14px;
}
.accessory-item p,
.doc-item p {
  font-size: 11px;
  margin: 5px 0 10px;
}
.accessory-item .tag {
  font-size: 9px;
}
.accessory-item .compat {
  font-size: 10px;
  color: #8a9099;
  margin-top: 8px;
}
.doc-item {
  align-items: center;
}
.doc-item .doc-info {
  flex: 1;
}
.doc-item h3 {
  font-size: 12px;
}
.doc-item small {
  font-size: 10px;
  color: #9399a2;
}
.timeline {
  margin-top: 22px;
  border-right: 2px solid #e6e8ed;
  padding-right: 23px;
}
.timeline-event {
  position: relative;
  padding-bottom: 26px;
}
.timeline-event:before {
  content: "";
  position: absolute;
  right: -29px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
  border: 2px solid #bfc4cc;
}
.timeline-event h3 {
  font-size: 12px;
}
.timeline-event p {
  font-size: 11px;
  margin-top: 6px;
}
.timeline-event time {
  font-size: 10px;
  color: #969ca5;
  display: block;
  margin-bottom: 6px;
}
.notice {
  padding: 14px 17px;
  background: var(--amber-bg);
  border: 1px solid #f1e6d0;
  border-radius: 9px;
  color: #8b6b2e;
  font-size: 11px;
  line-height: 1.9;
  display: flex;
  align-items: start;
  gap: 9px;
}
.notice svg {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.soft-notice {
  background: #f1f3f6;
  border-color: #e5e8ed;
  color: #6e7885;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 11px;
  margin-top: 19px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: right;
}
th {
  font-weight: 500;
  color: #8e949e;
  background: #fafafb;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid #f0f1f3;
  color: #696f79;
  vertical-align: middle;
}
tr:last-child td {
  border: 0;
}
td strong {
  color: #3f454e;
  font-size: 12px;
}
footer {
  margin: 0 40px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #a3a6ac;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  direction: ltr;
}
footer span {
  direction: rtl;
}
.icon-button {
  height: 34px;
  width: 34px;
  border-radius: 7px;
  background: #f6f6f8;
  color: #777;
  display: grid;
  place-items: center;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #20232a66;
  backdrop-filter: blur(3px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: white;
  border: 1px solid #e4e6ea;
  box-shadow: 0 30px 100px #15151c30;
  border-radius: 18px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}
.modal.wide {
  max-width: 820px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 19px;
}
.modal-head p {
  font-size: 11px;
  margin-top: 3px;
}
.modal-body {
  padding: 24px 26px;
}
.modal-body > p {
  font-size: 12px;
  line-height: 2;
}
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.modal-footer > small {
  font-size: 10px;
  color: #969ca5;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 19px 0;
}
.role-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 16px;
  text-align: right;
}
.role-card.selected {
  border-color: var(--red);
  background: var(--red-tint);
}
.role-card h3 {
  font-size: 13px;
}
.role-card p {
  font-size: 11px;
  margin-top: 7px;
}
.role-card small {
  font-size: 10px;
  color: var(--red);
  display: block;
  margin-top: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 15px;
  margin-top: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #666e79;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dfe3e9;
  border-radius: 7px;
  padding: 9px 11px;
  background: white;
  font-size: 12px;
  min-height: 42px;
  color: #444b54;
}
.field textarea {
  resize: vertical;
  min-height: 85px;
}
.field small {
  font-size: 9px;
  color: #979fa9;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f7f8fa;
  border-radius: 7px;
  font-size: 11px;
  margin-top: 7px;
}
.check-row input {
  accent-color: var(--red);
  width: 15px;
  height: 15px;
}
.form-section {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 4px;
}
.form-section h3 {
  font-size: 12px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #9aa0a9;
  margin-bottom: 18px;
}
.steps b {
  background: var(--red-tint);
  color: var(--red);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
}
.steps .step-line {
  height: 1px;
  background: #e6e8ed;
  flex: 1;
}
.form-error {
  color: var(--red);
  font-size: 11px;
  margin-top: 13px;
}
.success-mark {
  width: 54px;
  height: 54px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.success-mark svg {
  width: 27px;
  height: 27px;
}
.success-copy {
  text-align: center;
  padding: 15px 15px 25px;
}
.success-copy h2 {
  margin-bottom: 9px;
}
.success-copy p {
  font-size: 12px;
  line-height: 2;
  max-width: 460px;
  margin: auto;
}
.success-meta {
  background: #f7f8fa;
  border-radius: 9px;
  padding: 18px;
  text-align: right;
  margin-top: 22px;
  font-size: 11px;
  color: #797f88;
  line-height: 2;
}
.toast {
  position: fixed;
  bottom: 27px;
  left: 35px;
  background: #32363f;
  color: white;
  border-radius: 9px;
  padding: 13px 20px;
  z-index: 150;
  font-size: 12px;
  box-shadow: 0 5px 20px #1112;
  transform: translateY(150px);
  opacity: 0;
  transition: 0.2s;
  max-width: 85vw;
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
}
.beneficiary-hero {
  border: 1px solid #efdde1;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #fdf0f2);
  padding: 34px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.beneficiary-hero h1 {
  font-size: 32px;
  max-width: 650px;
}
.beneficiary-hero p {
  font-size: 13px;
  max-width: 660px;
  margin: 12px 0 22px;
  line-height: 1.9;
}
.beneficiary-hero .search-box {
  max-width: 730px;
  background: white;
}
.beneficiary-hero .search-box button {
  margin-left: -6px;
}
.discipline-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.discipline-links button {
  padding: 5px 12px;
  background: white;
  border: 1px solid #eadde0;
  border-radius: 6px;
  font-size: 11px;
  color: #86747b;
}
.request-empty {
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 65px 25px;
}
.request-empty .big-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  background: var(--red-tint);
  color: var(--red);
  display: grid;
  place-items: center;
  border-radius: 17px;
}
.request-empty .big-icon svg {
  height: 30px;
  width: 30px;
}
.request-empty p {
  font-size: 12px;
  max-width: 510px;
  margin: 12px auto 23px;
  line-height: 2;
}
.scope-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  font-size: 12px;
}
.scope-row select {
  border: 1px solid var(--line);
  padding: 9px;
  border-radius: 7px;
}
.permission {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}
.permission-note {
  margin-top: 14px;
  font-size: 10px;
  color: #949ba4;
}
.source-excerpt {
  background: #f7f8fa;
  border: 1px solid #e5e8ed;
  border-radius: 10px;
  padding: 20px;
  margin: 18px 0;
  font-size: 12px;
  line-height: 2;
}
.source-excerpt dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 9px;
  margin: 0;
}
.source-excerpt dt {
  color: #9aa0aa;
}
.source-excerpt dd {
  margin: 0;
  color: #4f5864;
}
.helper-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 17px;
}
.helper-heading p {
  font-size: 11px;
}
.overlay-open {
  overflow: hidden;
}
.mono {
  font-family: Consolas, monospace;
  font-size: 11px;
}
.icon-button.mobile-menu {
  display: none;
}
@media (min-width: 1550px) {
  main {
    padding-top: 42px;
  }
  .equipment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 205px;
    padding-right: 12px;
    padding-left: 12px;
  }
  .brand img {
    width: 157px;
  }
  .app-shell {
    margin-right: 205px;
  }
  main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .home-columns,
  .lower-home {
    grid-template-columns: 1.3fr 1fr;
    gap: 17px;
  }
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-layout {
    grid-template-columns: 1fr 235px;
    gap: 18px;
  }
  .detail-hero {
    grid-template-columns: 1fr 235px;
  }
  .state-cell {
    padding: 0 14px;
  }
  .state-cell strong {
    font-size: 11px;
  }
  footer {
    margin: 0 28px;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric-top {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 185px;
    padding-right: 9px;
    padding-left: 9px;
  }
  .brand {
    padding-right: 6px;
    padding-left: 6px;
  }
  .brand img {
    width: 151px;
  }
  .nav-link {
    font-size: 12px;
    padding: 11px 12px;
    gap: 9px;
  }
  .app-shell {
    margin-right: 185px;
  }
  .home-columns,
  .lower-home {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading {
    align-items: start;
  }
  h1 {
    font-size: 26px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .detail-hero {
    grid-template-columns: 1fr 190px;
    padding: 23px;
  }
  .detail-hero h1 {
    font-size: 32px;
  }
  .detail-hero > img {
    height: 160px;
  }
  .state-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
  }
  .state-cell:nth-child(2) {
    border: 0;
  }
  .top-controls {
    gap: 10px;
  }
  .prototype-pill {
    display: none;
  }
  .topbar {
    height: 74px;
  }
  .detail-aside .request-panel {
    order: 0;
  }
  .detail-aside .source-panel {
    order: 1;
  }
  .scope-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(100%);
    width: 236px;
    transition: transform 0.2s;
    box-shadow: -20px 0 50px #2222;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .brand img {
    width: 178px;
  }
  .sidebar .nav-link {
    font-size: 14px;
  }
  .app-shell {
    margin: 0;
  }
  .topbar {
    padding: 0 19px;
    height: 72px;
    gap: 10px;
  }
  .mobile-menu {
    display: grid;
  }
  .crumb {
    font-size: 10px;
    margin-left: auto;
  }
  .crumb span {
    margin: 0 7px;
  }
  .role-button strong {
    font-size: 10px;
  }
  .role-button small {
    font-size: 8px;
  }
  .role-button .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .role-button .chev {
    margin-right: 0;
  }
  .top-controls {
    gap: 0;
  }
  main {
    padding: 24px 18px 32px;
  }
  .page-heading {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-heading .btn {
    min-height: 38px;
    font-size: 10px;
    padding: 8px 12px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading .heading-copy {
    width: 100%;
  }
  .heading-copy p {
    font-size: 11px;
    line-height: 1.9;
  }
  .eyebrow {
    font-size: 10px;
  }
  .date-chip {
    font-size: 10px;
    margin-top: 2px;
  }
  .summary-grid {
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 14px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-value {
    font-size: 25px;
    margin-top: 9px;
  }
  .metric small {
    font-size: 9px;
    line-height: 1.8;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
  }
  .panel-head {
    padding: 19px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .action-list {
    padding: 0 19px 3px;
  }
  .action-row {
    padding: 16px 0;
    grid-template-columns: 30px 1fr 14px;
    gap: 9px;
  }
  .action-row strong {
    font-size: 11px;
  }
  .action-row p {
    font-size: 10px;
  }
  .action-meta {
    font-size: 9px;
    gap: 8px;
  }
  .action-symbol {
    height: 28px;
    width: 28px;
  }
  .evidence-row {
    padding: 13px 18px;
    gap: 8px;
  }
  .evidence-row strong {
    font-size: 10px;
  }
  .evidence-row .tag {
    font-size: 8px;
  }
  .evidence-row p {
    font-size: 9px;
  }
  .utilization-body {
    padding: 0 19px 19px;
  }
  .quick-guide {
    padding: 22px;
  }
  .info-line {
    font-size: 10px;
    line-height: 1.9;
  }
  .catalog-toolbar {
    padding: 13px;
  }
  .search-row {
    flex-wrap: wrap;
  }
  .search-box {
    min-width: 200px;
  }
  .search-box input {
    font-size: 11px;
    padding: 11px 0;
  }
  .select-filter {
    width: 100%;
    height: 37px;
    font-size: 11px;
  }
  .filter-chips {
    gap: 2px;
    margin-top: 11px;
  }
  .filter-chip {
    font-size: 10px;
    padding: 5px 7px;
  }
  .filter-count {
    width: 100%;
    margin-top: 10px;
    margin-right: 3px;
  }
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .card-image {
    height: 155px;
  }
  .card-image img {
    height: 112px;
  }
  .card-body {
    padding: 17px 19px 12px;
  }
  .card-body h2 {
    font-size: 22px;
  }
  .card-body > p {
    font-size: 12px;
  }
  .card-bottom {
    padding-bottom: 17px;
  }
  .card-status {
    font-size: 10px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  .detail-hero {
    display: flex;
    flex-direction: column;
    padding: 23px 22px 14px;
    gap: 5px;
  }
  .detail-hero > img {
    height: 165px;
    max-width: 280px;
    margin: 7px 0;
  }
  .detail-hero h1 {
    font-size: 35px;
  }
  .detail-hero .subtitle {
    font-size: 13px;
  }
  .detail-hero .tech-badges {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
  }
  .detail-hero .tech-badges span {
    font-size: 10px;
  }
  .identity-line {
    font-size: 9px;
    gap: 10px;
  }
  .state-grid {
    padding: 16px 0;
    gap: 19px 0;
  }
  .state-cell {
    padding: 0 14px;
  }
  .state-cell strong {
    font-size: 10px;
  }
  .state-cell > span {
    font-size: 9px;
    margin-bottom: 5px;
  }
  .state-cell small {
    font-size: 8px;
  }
  .detail-layout {
    margin-top: 21px;
    gap: 21px;
  }
  .tabs {
    gap: 23px;
    margin-bottom: 21px;
  }
  .tab {
    font-size: 11px;
    padding-bottom: 11px;
  }
  .detail-content h2 {
    font-size: 17px;
  }
  .detail-content > p {
    font-size: 11px;
  }
  .brief-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 17px;
  }
  .brief-card {
    padding: 18px;
  }
  .brief-card p {
    font-size: 11px;
  }
  .detail-aside {
    display: flex;
  }
  .request-panel {
    padding: 21px;
  }
  .source-panel {
    padding: 18px;
  }
  .notice {
    font-size: 10px;
    padding: 13px;
  }
  .doc-item,
  .accessory-item {
    padding: 14px;
    gap: 10px;
  }
  .doc-item .btn {
    padding: 8px 10px;
    min-height: 33px;
    font-size: 10px;
  }
  .doc-item h3 {
    font-size: 11px;
  }
  .accessory-item p {
    font-size: 10px;
  }
  .modal-backdrop {
    padding: 12px;
    align-items: center;
  }
  .modal {
    max-height: 94vh;
    border-radius: 13px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-head h2 {
    font-size: 17px;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-footer {
    padding: 16px 19px;
    flex-wrap: wrap;
  }
  .modal-footer > small {
    max-width: 190px;
    font-size: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .role-grid {
    gap: 10px;
  }
  .role-card {
    padding: 13px;
  }
  .role-card h3 {
    font-size: 12px;
  }
  .role-card p {
    font-size: 10px;
  }
  .modal-body table th,
  .modal-body table td {
    padding: 10px;
    font-size: 10px;
  }
  .modal-body table td strong {
    font-size: 10px;
  }
  .beneficiary-hero {
    padding: 25px 21px;
  }
  .beneficiary-hero h1 {
    font-size: 27px;
  }
  .beneficiary-hero p {
    font-size: 11px;
  }
  .beneficiary-hero .search-box {
    min-width: 0;
  }
  .beneficiary-hero .search-box .btn {
    padding: 7px 12px;
    font-size: 10px;
    min-height: 34px;
  }
  .discipline-links {
    gap: 6px;
  }
  .discipline-links button {
    font-size: 10px;
  }
  .helper-heading h2 {
    font-size: 16px;
  }
  .helper-heading p {
    font-size: 10px;
  }
  .request-empty {
    padding: 40px 23px;
  }
  .request-empty h2 {
    font-size: 18px;
  }
  footer {
    margin: 0 18px;
    flex-direction: column;
    font-size: 8px;
    gap: 5px;
    direction: rtl;
  }
  .toast {
    bottom: 17px;
    left: 18px;
    right: 18px;
    font-size: 11px;
  }
  .source-excerpt {
    padding: 15px;
    font-size: 11px;
  }
  .source-excerpt dl {
    grid-template-columns: 90px 1fr;
  }
  .sidebar-bottom {
    padding-bottom: 10px;
  }
}
@media (max-width: 650px) {
  .icon-button.mobile-menu {
    display: grid;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.language-button,
.theme-button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  min-height: 33px;
}
.theme-button {
  width: 34px;
  padding: 5px;
  display: grid;
  place-items: center;
}
.theme-button svg {
  width: 18px;
  height: 18px;
}
.top-controls {
  gap: 15px;
}
html[dir="ltr"] .sidebar {
  left: 0;
  right: auto;
  border-right: 1px solid var(--line);
  border-left: 0;
}
html[dir="ltr"] .app-shell {
  margin-left: 236px;
  margin-right: 0;
}
html[dir="ltr"] .workspace-label span {
  float: right;
}
html[dir="ltr"] .nav-link.active:before {
  left: 0;
  right: auto;
  border-radius: 0 3px 3px 0;
}
html[dir="ltr"] .nav-link .nav-count {
  margin-left: auto;
  margin-right: 0;
}
html[dir="ltr"] .role-button,
html[dir="ltr"] .role-card,
html[dir="ltr"] th,
html[dir="ltr"] td,
html[dir="ltr"] .detail-hero h1,
html[dir="ltr"] .success-meta {
  text-align: left;
}
html[dir="ltr"] .chev {
  margin-left: 14px;
  margin-right: 0;
}
html[dir="ltr"] .filter-count {
  margin-left: auto;
  margin-right: 0;
}
html[dir="ltr"] .card-image .tag {
  left: 12px;
  right: auto;
}
html[dir="ltr"] .card-image .equipment-code {
  right: 13px;
  left: auto;
}
html[dir="ltr"] .state-cell {
  border-left: 0;
  border-right: 1px solid var(--line);
}
html[dir="ltr"] .state-cell:last-child {
  border-right: 0;
}
html[dir="ltr"] svg[data-icon="arrow"] {
  transform: rotate(180deg);
}
html[dir="ltr"] .timeline {
  border-right: 0;
  border-left: 2px solid var(--line);
  padding-right: 0;
  padding-left: 23px;
}
html[dir="ltr"] .timeline-event:before {
  left: -29px;
  right: auto;
}
html[dir="ltr"] .application-card ul {
  padding-right: 0;
  padding-left: 17px;
}
html[dir="ltr"] .steps b {
  margin-left: 0;
  margin-right: 5px;
}
html[dir="ltr"] .toast {
  right: 35px;
  left: auto;
}
html[dir="ltr"] footer span {
  direction: ltr;
}
html[dir="ltr"] .metric-top {
  font-size: 10px;
  gap: 6px;
}
html[dir="ltr"] .page-heading h1 {
  letter-spacing: -0.8px;
}
html[dir="ltr"] .action-row strong {
  font-size: 12px;
}
html[dir="ltr"] .card-status {
  gap: 6px;
  flex-wrap: wrap;
}
/* Use readable text tokens for labels as well as primary copy in either theme. */
:root {
  --muted: #636974;
}
.maker,
.identity-line,
.state-cell > span,
.state-cell small,
.state-cell strong,
.metric small,
.metric-top,
.metric-value .unit,
.workspace-label,
.brand > span,
.edition,
.crumb,
.prototype-pill,
.date-chip,
.card-bottom > span,
.card-status,
.plain-tag,
.filter-count,
.evidence-row p,
.action-meta,
.mini-note,
.source-panel h3,
.count-badge,
.role-button small,
.request-panel > small,
.modal-footer > small,
.field small,
.source-excerpt dt,
.scope-row,
.permission-note,
.util-values small,
.util-legend,
.chart-label,
.empty-hint,
.doc-item small,
.accessory-item .compat,
footer,
.steps {
  color: var(--muted) !important;
}
.tag {
  background: #f0f1f4;
  color: #5d6470;
}
.tag.amber {
  background: var(--amber-bg);
  color: var(--amber);
}
.tag.green {
  background: var(--green-bg);
  color: var(--green);
}
.tag.red {
  background: var(--red-tint);
  color: var(--red);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --red: #f17a8d;
  --red-dark: #a61c30;
  --red-tint: #39242b;
  --ink: #edf0f5;
  --muted: #b6bbc5;
  --line: #393d45;
  --paper: #1e2025;
  --canvas: #151619;
  --amber: #e5bf73;
  --amber-bg: #352d1e;
  --green: #a1d6b9;
  --green-bg: #20372b;
  --shadow: 0 10px 35px #00000018;
}
html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .catalog-toolbar,
html[data-theme="dark"] .equipment-card,
html[data-theme="dark"] .detail-hero,
html[data-theme="dark"] .state-grid,
html[data-theme="dark"] .brief-card,
html[data-theme="dark"] .application-card,
html[data-theme="dark"] .request-panel,
html[data-theme="dark"] .accessory-item,
html[data-theme="dark"] .doc-item,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .role-card,
html[data-theme="dark"] .request-empty {
  background: var(--paper);
  border-color: var(--line);
}
html[data-theme="dark"] .brand img {
  filter: brightness(0) invert(1);
}
html[data-theme="dark"] .btn-primary {
  background: #bc2339;
  color: #fff;
}
html[data-theme="dark"] .btn-primary:hover {
  background: #a61c30;
}
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .select-filter,
html[data-theme="dark"] .scope-row select,
html[data-theme="dark"] .filter-chip {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .nav-link:hover {
  background: #2a2d34;
}
html[data-theme="dark"] .nav-link {
  color: var(--muted);
}
html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .filter-chip.active,
html[data-theme="dark"] .role-card.selected {
  background: var(--red-tint);
  color: var(--red);
  border-color: #77404d;
}
html[data-theme="dark"] .nav-count,
html[data-theme="dark"] .metric-icon,
html[data-theme="dark"] .support-icon,
html[data-theme="dark"] .count-badge,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .detail-hero .tech-badges span,
html[data-theme="dark"] .empty-hint,
html[data-theme="dark"] .check-row,
html[data-theme="dark"] .source-panel,
html[data-theme="dark"] .source-excerpt,
html[data-theme="dark"] .success-meta {
  background: #292c32;
  border-color: var(--line);
  color: var(--muted);
}
html[data-theme="dark"] .tag {
  background: #2b2e34;
  color: #c0c7d2;
}
html[data-theme="dark"] .tag.amber {
  background: var(--amber-bg);
  color: var(--amber);
}
html[data-theme="dark"] .tag.green {
  background: var(--green-bg);
  color: var(--green);
}
html[data-theme="dark"] .tag.red,
html[data-theme="dark"] .avatar {
  background: var(--red-tint);
  color: var(--red);
}
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
html[data-theme="dark"] .search-box input,
html[data-theme="dark"] .field,
html[data-theme="dark"] td,
html[data-theme="dark"] td strong,
html[data-theme="dark"] .source-excerpt dd {
  color: var(--ink);
}
html[data-theme="dark"] th {
  background: #27292f;
  color: var(--muted);
  border-color: var(--line);
}
html[data-theme="dark"] td,
html[data-theme="dark"] .action-row,
html[data-theme="dark"] .evidence-row,
html[data-theme="dark"] .card-status {
  border-color: var(--line);
}
html[data-theme="dark"] .notice {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: #69542b;
}
html[data-theme="dark"] .notice.soft-notice {
  background: #272a31;
  color: var(--muted);
  border-color: var(--line);
}
html[data-theme="dark"] .metric.alert .metric-value {
  color: var(--amber);
}
html[data-theme="dark"] .quick-guide,
html[data-theme="dark"] .beneficiary-hero {
  background: linear-gradient(135deg, #1e2025, #302126);
  border-color: #57333c;
}
html[data-theme="dark"] .discipline-links button {
  background: var(--paper);
  border-color: #69404a;
  color: #f0bdc6;
}
html[data-theme="dark"] .empty-chart:before {
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 34px,
    #30333a 35px,
    #30333a 36px
  );
}
html[data-theme="dark"] .chart-label {
  background: var(--paper);
  border-color: #626975;
}
html[data-theme="dark"] .card-image {
  background: linear-gradient(180deg, #eceef1, #dce0e6);
}
html[data-theme="dark"] .card-image .tag {
  background: #fff;
  color: #525b68;
  border-color: #d6d9df;
}
html[data-theme="dark"] .card-image .equipment-code {
  color: #535c69;
}
html[data-theme="dark"] .card-image img {
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .detail-hero > img {
  background: #e6e8ed;
  border-radius: 10px;
  padding: 12px;
  mix-blend-mode: normal;
}
html[data-theme="dark"] .equipment-placeholder {
  background: #d7dce3;
  color: #566271;
  border-color: #c6ccd4;
}
html[data-theme="dark"] .file-icon,
html[data-theme="dark"] .accessory-icon {
  border-color: var(--line);
  color: var(--muted);
}
html[data-theme="dark"] .modal-backdrop {
  background: #000a;
}
html[data-theme="dark"] .toast {
  background: #edeff3;
  color: #242830;
}
html[data-theme="dark"] .form-error {
  color: #ff9cab;
}
html[data-theme="dark"] .action-meta .priority {
  color: var(--amber);
}
.timeline-event time {
  color: var(--muted);
}
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] select:focus-visible,
html[data-theme="dark"] textarea:focus-visible {
  outline-color: #ff9aaa;
}
@media (max-width: 1180px) {
  html[dir="ltr"] .app-shell {
    margin-left: 205px;
  }
}
@media (max-width: 900px) {
  html[dir="ltr"] .app-shell {
    margin-left: 185px;
  }
  html[dir="ltr"] .state-cell:nth-child(2) {
    border-right: 0;
  }
}
@media (max-width: 650px) {
  html[dir="ltr"] .app-shell {
    margin: 0;
  }
  html[dir="ltr"] .sidebar {
    transform: translateX(-100%);
  }
  html[dir="ltr"] .sidebar.open {
    transform: translateX(0);
  }
  html[dir="ltr"] .crumb {
    margin-left: 0;
    margin-right: auto;
  }
  html[dir="ltr"] .filter-count {
    margin-left: 3px;
    margin-right: 0;
  }
  html[dir="ltr"] .role-button .chev {
    margin: 0;
  }
  html[dir="ltr"] .toast {
    right: 18px;
    left: 18px;
  }
  html[dir="ltr"] footer {
    direction: ltr;
  }
  .language-button {
    padding: 5px 7px;
    font-size: 10px;
  }
  .top-controls {
    gap: 8px;
  }
  html[dir="ltr"] .action-row strong {
    font-size: 11px;
  }
  .topbar .role-button small {
    display: none;
  }
  .crumb {
    max-width: 95px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .role-button {
    gap: 6px;
  }
  .theme-button {
    width: 31px;
  }
}

/* V2 — glass, fascia and circuit geometry from the actual EME laboratory. */
:root {
  --canvas: #f0f1f2;
  --paper: #fff;
  --ink: #25272b;
  --muted: #62666d;
  --line: #dfe1e4;
  --fascia: #202225;
  --fascia-text: #f6f6f7;
  --glass: rgba(255, 255, 255, 0.84);
  --red: #b91f32;
  --red-dark: #961a2b;
  --red-tint: #faedef;
  --radius: 10px;
  --shadow: 0 12px 32px #20222505;
}
html {
  scroll-padding-top: 178px;
}
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.65;
}
h1,
h2,
h3 {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
h1 {
  font-size: 39px;
  font-weight: 620;
  letter-spacing: -1.6px;
}
h2 {
  font-weight: 650;
  letter-spacing: -0.35px;
}
bdi,
.ltr,
.metric-value,
.equipment-code,
.card-spec {
  font-family: Bahnschrift, "Segoe UI", Arial, sans-serif;
}
.btn {
  border-radius: 5px;
  min-height: 45px;
  font-size: 12px;
  padding: 11px 20px;
}
.btn-primary {
  box-shadow: none;
}
.btn-secondary {
  background: var(--paper);
  border-color: var(--line);
}
.text-button {
  font-size: 12px;
}
/* The lab's dark architectural fascia becomes the global header. */
.app-shell,
html[dir="ltr"] .app-shell {
  margin: 0;
  padding-top: 154px;
}
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 88px;
  z-index: 35;
  background: var(--fascia) !important;
  color: var(--fascia-text);
  padding: 0 48px;
  border: 0;
  gap: 28px;
  box-shadow: 0 1px 0 #ffffff1a;
}
.masthead-brand {
  display: block;
  flex-shrink: 0;
  padding-inline-end: 30px;
  border-inline-end: 1px solid #ffffff27;
}
.masthead-brand img {
  display: block;
  width: 186px;
  height: 64px;
  object-fit: contain;
}
.topbar .crumb {
  font-size: 12px;
  margin-inline-end: auto;
  color: #c4c7cb !important;
  letter-spacing: 0.15px;
}
.topbar .crumb span {
  color: #777d85;
  margin: 0 14px;
}
.top-controls {
  gap: 16px;
}
.topbar .prototype-pill {
  background: transparent;
  border-color: #575b62;
  color: #d3d5da !important;
  font-size: 9px;
  letter-spacing: 0.5px;
  border-radius: 3px;
  padding: 5px 9px;
}
.topbar .language-button,
.topbar .theme-button {
  background: #2b2e32;
  color: #fff;
  border-color: #5c626c;
  border-radius: 5px;
  min-height: 36px;
}
.topbar .language-button:hover,
.topbar .theme-button:hover {
  background: #3b3e44;
}
.topbar .role-button strong {
  font-size: 12px;
  color: white;
}
.topbar .role-button small {
  color: #c1c5cc !important;
  font-size: 9px;
}
.topbar .avatar {
  width: 35px;
  height: 35px;
  background: #f5e5e8;
  color: #9e1e31;
  border: 1px solid #eac9cf;
}
.topbar .chev {
  color: #b7bdc5;
}
.icon-button.mobile-menu {
  background: #34383d;
  color: white;
}
.topbar button:focus-visible,
.topbar a:focus-visible {
  outline-color: #ffb6c2;
}
/* Wide navigation follows the glass partition's horizontal mullions. */
.sidebar,
html[dir="ltr"] .sidebar {
  position: fixed;
  left: 0;
  right: 0;
  top: 88px;
  bottom: auto;
  width: 100%;
  height: 66px;
  padding: 0 48px;
  display: block;
  border: 0;
  border-bottom: 1px solid #d8dce1;
  background: var(--glass);
  backdrop-filter: blur(20px);
  z-index: 30;
  box-shadow: 0 4px 15px #20222503;
}
.sidebar > .brand,
.sidebar > .workspace-label,
.sidebar > .sidebar-bottom,
.sidebar > .edition {
  display: none;
}
.sidebar nav {
  display: flex;
  align-items: stretch;
  gap: 25px;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.sidebar nav::-webkit-scrollbar {
  display: none;
}
.nav-link {
  position: relative;
  flex-shrink: 0;
  gap: 9px;
  border-radius: 0;
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05px;
  border-bottom: 2px solid transparent;
  color: #5e646d;
}
.nav-link svg {
  width: 18px;
  height: 18px;
}
.nav-link.active {
  background: none;
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 650;
}
.nav-link.active:before,
html[dir="ltr"] .nav-link.active:before {
  display: none;
}
.nav-link:hover {
  background: none;
  color: var(--red);
}
.nav-link .nav-count {
  margin-inline-start: 5px;
  background: var(--red-tint);
  color: var(--red);
  border: 0;
}
main {
  max-width: 1490px;
  padding: 38px 48px 44px;
  margin: auto;
  min-height: calc(100vh - 216px);
}
.page-heading {
  margin-bottom: 29px;
  align-items: end;
}
.page-heading .eyebrow {
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.heading-copy p {
  font-size: 13px;
  margin-top: 10px;
  max-width: 780px;
}
.heading-copy h1 {
  line-height: 1.2;
}
.info-line {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 23px;
}
.panel {
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.panel-head {
  padding: 25px 26px 19px;
  align-items: start;
}
.panel-head h2 {
  font-size: 18px;
  font-weight: 600;
}
.panel-head p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 6px;
}
.count-badge {
  border: 1px solid var(--line);
  background: none;
  border-radius: 3px;
  padding: 4px 8px;
}
/* Working area is a quiet pane; the physical interior appears only in the hero. */
.home-hero {
  position: relative;
  min-height: 342px;
  border: 1px solid #d7dade;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero-view {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-view > img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
  filter: grayscale(0.72) contrast(0.88);
  opacity: 0.8;
}
.hero-view:after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fffffffb 32%,
    #ffffffe8 46%,
    #ffffff25 72%,
    #ffffff05
  );
}
.circuit-art {
  position: absolute;
  height: 95%;
  width: 62%;
  inset: 10% -5% auto auto;
  stroke: none;
  color: #fff;
  opacity: 0.7;
}
.circuit-art .chip-core {
  fill: var(--red);
  stroke: #70222f;
  stroke-width: 2;
}
.hero-content {
  width: 65%;
  padding: 37px 40px 32px;
}
.hero-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
  font-size: 10px;
}
.hero-content h1 {
  font-size: 49px;
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 650;
  margin: 14px 0;
}
.hero-content h1 span {
  font-weight: 350;
  color: #757a82;
}
.hero-content > p {
  font-size: 12px;
  line-height: 1.9;
  margin: 17px 0;
  max-width: 480px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  border: 1px solid #c8cdd4;
  background: #ffffffed;
  box-shadow: 0 7px 20px #25272b07;
  border-radius: 5px;
  padding: 5px 6px 5px 15px;
}
.hero-search > svg {
  height: 20px;
  width: 20px;
  color: #747d89;
  flex-shrink: 0;
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  padding: 9px 0;
  font-size: 12px;
  color: var(--ink);
}
.hero-search .btn {
  min-height: 39px;
  padding: 9px 17px;
  font-size: 11px;
}
.hero-search .btn svg {
  height: 15px;
  width: 15px;
}
.hero-links {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  font-size: 10px;
  color: #757c85;
}
.hero-links a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.hero-links a:hover {
  color: var(--red);
}
.hero-links a svg {
  width: 14px;
  height: 14px;
}
.hero-links > span {
  color: #b2b7bd;
}
html[dir="rtl"] .hero-view > img {
  left: 0;
  right: auto;
}
html[dir="rtl"] .hero-view:after {
  background: linear-gradient(
    270deg,
    #fff 0%,
    #fffffffb 32%,
    #ffffffe8 46%,
    #ffffff25 72%,
    #ffffff05
  );
}
html[dir="rtl"] .circuit-art {
  left: -5%;
  right: auto;
  transform: scaleX(-1);
}
html[dir="rtl"] .hero-content h1 {
  letter-spacing: -1px;
  font-size: 44px;
  line-height: 1.28;
}
html[dir="rtl"] .hero-search {
  padding: 5px 15px 5px 6px;
}
/* Evidence metrics form one instrument-like rail, not another bank of cards. */
.summary-grid {
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  padding: 0 15px;
  margin: 0 0 29px;
  position: relative;
}
.summary-grid:before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 33px;
  width: 28px;
  height: 3px;
  background: var(--red);
}
.metric {
  border: 0;
  border-inline-end: 1px solid var(--line);
  border-radius: 0;
  margin: 22px 0;
  padding: 0 24px;
  background: none !important;
}
.metric:last-child {
  border-inline-end: 0;
}
.metric-top {
  font-size: 10px;
  align-items: start;
  gap: 10px;
}
.metric-icon {
  height: 24px;
  width: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
}
.metric-icon svg {
  width: 13px;
  height: 13px;
}
.metric-value {
  font-size: 31px;
  line-height: 1.2;
  margin-top: 6px;
  gap: 9px;
  font-weight: 500;
}
.metric-value .unit {
  font-size: 11px;
  line-height: 1.4;
}
.metric small {
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.8;
}
.metric.alert .metric-icon {
  border-color: #e5d7ba;
  background: var(--amber-bg);
}
.home-columns,
.lower-home {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 24px;
}
.action-list {
  padding: 0 26px 9px;
  counter-reset: operating-task;
}
.action-row {
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  gap: 17px;
  padding: 21px 0;
  counter-increment: operating-task;
  position: relative;
}
.action-row .action-symbol {
  background: none;
  width: 34px;
  height: 34px;
  border: 1px solid #d8c5cb;
  border-radius: 50%;
  color: var(--red);
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 12px;
}
.action-row .action-symbol:before {
  content: "0" counter(operating-task);
}
.action-row .action-symbol svg {
  display: none;
}
.action-row:not(:last-child) .action-symbol:after {
  position: absolute;
  content: "";
  width: 1px;
  background: #e8dce0;
  top: 61px;
  bottom: 9px;
}
.action-row strong {
  font-size: 13px;
  font-weight: 600;
}
.action-row p {
  font-size: 12px;
  line-height: 1.85;
  margin-top: 5px;
  max-width: 580px;
}
.action-meta {
  font-size: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 5px 17px;
}
.action-meta .priority {
  font-size: 9px;
  letter-spacing: 0.15px;
}
.action-row .arrow {
  font-size: 24px;
  font-weight: 300;
  color: #868e99;
}
.utilization-body {
  padding: 0 26px 24px;
}
.empty-chart {
  height: 145px;
  margin: 6px auto 0;
  border: 0;
  position: relative;
  background: none;
}
.empty-chart:before {
  inset: 5px calc(50% - 64px);
  width: 126px;
  height: 126px;
  border: 1px solid #d0d6de;
  border-radius: 50%;
  background: none;
  box-shadow:
    0 0 0 13px var(--paper),
    0 0 0 14px #e6e9ed,
    0 0 0 27px var(--paper),
    0 0 0 28px #f0f2f4;
}
.empty-chart:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 64px;
  left: calc(50% - 3px);
  border-radius: 50%;
  background: #a7aeb8;
  box-shadow:
    0 -56px 0 #a7aeb8,
    56px 0 0 #a7aeb8,
    0 56px 0 #a7aeb8,
    -56px 0 0 #a7aeb8;
}
.chart-label {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 9px;
  padding: 7px 9px;
  z-index: 1;
}
.util-legend {
  margin: 12px 0 19px;
  font-size: 9px;
  gap: 7px;
}
.util-values {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  gap: 13px;
}
.util-values strong {
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  color: #626b78;
}
.util-values small {
  font-size: 10px;
}
.empty-hint {
  border: 1px dashed var(--line);
  background: transparent;
  font-size: 10px;
  line-height: 1.9;
  padding: 11px;
  margin-top: 18px;
  border-radius: 3px;
}
.lower-home {
  margin-top: 24px;
}
.evidence-row {
  padding: 17px 26px;
  gap: 13px;
}
.evidence-row strong {
  font-size: 12px;
  font-weight: 600;
}
.evidence-row p {
  font-size: 10px;
  line-height: 1.8;
}
.file-icon {
  border-radius: 3px;
  width: 29px;
  height: 34px;
  background: #fbfcfd;
}
.evidence-row .tag {
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 3px;
}
.quick-guide {
  padding: 27px;
  background: var(--paper) !important;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.quick-guide:before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid #dde1e5;
  border-radius: 50%;
  inset-inline-end: -100px;
  bottom: 5px;
  box-shadow:
    0 0 0 20px var(--paper),
    0 0 0 21px #e8ebee,
    0 0 0 42px var(--paper),
    0 0 0 43px #eff1f3;
  z-index: -1;
}
.quick-guide .guide-art {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: var(--red-tint);
  border-color: #ead1d7;
}
.quick-guide h2 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 270px;
}
.quick-guide p {
  font-size: 12px;
  max-width: 290px;
  margin: 13px 0 21px;
}
.quick-guide .btn {
  z-index: 1;
}
/* The catalog presents an instrument, its range and its evidence at a glance. */
.catalog-toolbar {
  padding: 18px 21px 0;
  border-radius: 8px;
  margin-bottom: 23px;
}
.search-row {
  gap: 12px;
}
.search-box {
  background: #f8f9fa;
  border-radius: 4px;
  border-color: #cfd4db;
  padding: 0 15px;
}
.search-box input {
  font-size: 13px;
  padding: 13px 0;
}
.select-filter {
  border-radius: 4px;
  min-width: 185px;
  padding: 0 15px;
  font-size: 12px;
}
.filter-chips {
  margin-top: 15px;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 0;
  min-height: 55px;
}
.filter-chip {
  border-radius: 0;
  padding: 14px 0 11px;
  font-size: 11px;
  border: 0;
  border-bottom: 2px solid transparent;
}
.filter-chip.active {
  background: none;
  border-bottom-color: var(--red);
  color: var(--red);
}
.filter-chip:hover {
  border-bottom-color: #d7a0ac;
  background: none;
}
.filter-count {
  font-size: 10px;
  padding-inline-start: 12px;
}
.equipment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.equipment-card {
  border-radius: 8px;
  border-color: #d8dce2;
  box-shadow: 0 5px 25px #25272b03;
  transform: none;
  position: relative;
  isolation: isolate;
}
.equipment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px #25272b0b;
  border-color: #a0a7b1;
}
.card-image {
  height: 195px;
  padding: 34px 35px 23px;
  background: linear-gradient(125deg, #f7f8f9, #eceff2);
  overflow: hidden;
  isolation: isolate;
}
.card-image img {
  width: 100%;
  height: 134px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 7px #20222513);
}
.instrument-orbit {
  position: absolute;
  z-index: 0;
  width: 195px;
  height: 195px;
  border-radius: 50%;
  border: 1px solid #d7dce2;
  left: calc(50% - 97px);
  top: 20px;
  box-shadow:
    0 0 0 13px #edf0f3,
    0 0 0 14px #e0e4e9,
    0 0 0 33px #f1f3f5,
    0 0 0 34px #e6eaee;
}
.instrument-orbit:before,
.instrument-orbit:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid #b7bdc6;
  top: 50%;
  left: -4px;
  background: #f9fafb;
}
.instrument-orbit:after {
  left: auto;
  right: -4px;
}
.card-image .tag {
  background: #ffffffb8;
  backdrop-filter: blur(8px);
  border: 1px solid #d5d9df;
  color: #5d6673;
  font-size: 9px;
  top: 13px;
  inset-inline-start: 15px;
  left: auto;
  right: auto;
  z-index: 3;
  border-radius: 3px;
}
.card-image .equipment-code,
html[dir="ltr"] .card-image .equipment-code {
  inset-inline-end: 14px;
  left: auto;
  right: auto;
  bottom: 11px;
  font-size: 9px;
  color: #657080 !important;
  letter-spacing: 1px;
  z-index: 3;
}
.card-body {
  padding: 22px 23px 13px;
}
.maker {
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.card-body h2 {
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 500;
  margin: 4px 0 3px;
  letter-spacing: -0.6px;
}
.card-body > p {
  font-size: 12px;
  min-height: 22px;
  line-height: 1.8;
}
.card-spec {
  font-size: 11px;
  margin-top: 13px;
  color: #474f5b;
  letter-spacing: 0.15px;
}
.card-tags {
  gap: 5px;
  margin-top: 10px;
}
.plain-tag {
  border: 0;
  border-radius: 2px;
  padding: 2px 6px;
  background: #f2f3f5;
  font-size: 9px;
}
.card-status {
  margin: 3px 23px 0;
  padding-top: 13px;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  border-radius: 3px;
  font-size: 10px;
}
.card-bottom {
  padding: 16px 23px 20px;
  gap: 10px;
}
.card-bottom > span {
  font-size: 10px;
}
.card-bottom .text-button {
  font-size: 11px;
  font-weight: 600;
}
#catalog-results > .equipment-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: 1fr auto auto;
}
#catalog-results > .equipment-card:first-child .card-image {
  grid-column: 2;
  grid-row: 1/4;
  height: 100%;
  min-height: 315px;
  border-inline-start: 1px solid var(--line);
}
#catalog-results > .equipment-card:first-child .card-image img {
  height: 200px;
}
#catalog-results > .equipment-card:first-child .instrument-orbit {
  width: 280px;
  height: 280px;
  left: calc(50% - 140px);
  top: calc(50% - 140px);
}
#catalog-results > .equipment-card:first-child .card-body {
  grid-column: 1;
  grid-row: 1;
  padding: 31px 27px 18px;
}
#catalog-results > .equipment-card:first-child h2 {
  font-size: 36px;
  margin-top: 10px;
}
#catalog-results > .equipment-card:first-child .card-status {
  grid-column: 1;
  grid-row: 2;
  margin-inline: 27px;
}
#catalog-results > .equipment-card:first-child .card-bottom {
  grid-column: 1;
  grid-row: 3;
  padding: 19px 27px 25px;
  flex-wrap: wrap;
}
/* A device workspace uses a charcoal fascia and an independent product well. */
.breadcrumb {
  font-size: 11px;
  margin-bottom: 19px;
  gap: 12px;
}
.detail-hero {
  grid-template-columns: minmax(0, 1fr) 39%;
  padding: 0;
  gap: 0;
  background: var(--fascia) !important;
  color: var(--fascia-text);
  border: 1px solid #25272b;
  border-radius: 10px;
  overflow: hidden;
  min-height: 295px;
  isolation: isolate;
}
.detail-hero > div:first-child {
  padding: 32px 35px;
  position: relative;
}
.detail-hero .maker {
  color: #c7ccd3 !important;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.detail-hero h1 {
  font-family: Bahnschrift, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 53px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 13px 0 6px;
  color: #fff;
}
.detail-hero .subtitle {
  font-size: 15px;
  color: #cbd0d7;
  line-height: 1.7;
}
.detail-hero .tech-badges {
  margin: 20px 0 16px;
  gap: 7px;
  flex-wrap: wrap;
}
.detail-hero .tech-badges span {
  background: #34373d !important;
  border-color: #5a6069;
  color: #e4e7ec !important;
  font-size: 10px;
  letter-spacing: 0.2px;
  padding: 4px 8px;
  border-radius: 3px;
}
.detail-hero > div:first-child > .tag {
  background: #3d3830;
  color: #f0cd8a;
  font-size: 10px;
  border: 1px solid #706049;
}
.detail-hero .identity-line {
  color: #c0c6cf !important;
  font-size: 10px;
  line-height: 1.9;
  gap: 6px 17px;
  margin-top: 16px;
}
.detail-hero > img {
  width: 100%;
  height: 100%;
  min-height: 295px;
  max-height: 340px;
  padding: 48px 30px;
  background: radial-gradient(ellipse, #fff 0, #eef0f3 62%, #e2e5e9);
  mix-blend-mode: normal;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  filter: none;
}
.detail-hero > .equipment-placeholder {
  background: #e6e9ee;
  color: #7d8795;
  border-color: #d7dce4;
  width: 190px;
  height: 140px;
  border-radius: 7px;
  margin: 40px auto !important;
}
.state-grid {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  padding: 23px 7px;
  gap: 0;
  background: var(--paper);
  position: relative;
}
.state-cell {
  padding: 0 21px;
  position: relative;
  border-color: var(--line);
}
.state-cell > span {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.state-cell > span:before {
  content: "";
  height: 5px;
  width: 5px;
  border: 1px solid #939ca9;
  border-radius: 50%;
}
.state-cell strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--ink) !important;
}
.state-cell small {
  font-size: 10px;
  margin-top: 4px;
  line-height: 1.8;
}
.detail-layout {
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 32px;
  margin-top: 32px;
}
.tabs {
  gap: 25px;
  margin-bottom: 25px;
  border-bottom-color: #cfd4dc;
  overflow-x: auto;
}
.tab {
  font-size: 12px;
  padding-bottom: 15px;
  font-weight: 500;
}
.tab.active {
  border-bottom-width: 3px;
}
.detail-content h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 11px;
}
.detail-content > p {
  font-size: 13px;
  line-height: 1.95;
  max-width: 850px;
}
.brief-grid {
  display: block;
  margin-top: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.brief-card {
  display: grid;
  grid-template-columns: 30px 150px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  align-items: start;
  background: none !important;
}
.brief-card:last-child {
  border-bottom: 0;
}
.brief-icon {
  margin: 0 !important;
}
.brief-icon svg {
  width: 21px;
  height: 21px;
}
.brief-card h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
}
.brief-card p {
  font-size: 12px;
  line-height: 1.9;
}
.brief-card:has(> .mini-note),
.brief-card:has(> h3:first-child) {
  display: block;
}
.brief-card:has(> h3:first-child) h3 {
  margin-bottom: 7px;
}
.application-card {
  padding: 24px;
  border-radius: 7px;
  margin-top: 20px;
}
.application-card h3 {
  font-size: 14px;
  font-weight: 600;
}
.application-card ul {
  font-size: 12px;
  line-height: 2.05;
  margin-top: 12px;
}
.mini-note {
  font-size: 11px !important;
  line-height: 1.9;
}
.detail-aside {
  gap: 17px;
  position: sticky;
  top: 182px;
}
.request-panel {
  border-radius: 8px;
  padding: 25px;
  border-top: 3px solid var(--red);
}
.request-panel h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 12px;
}
.request-panel > p {
  font-size: 12px;
  line-height: 1.95;
}
.request-panel .btn {
  margin: 23px 0 10px;
  min-height: 47px;
  font-size: 12px;
}
.request-panel > small {
  font-size: 10px;
  line-height: 1.8;
}
.checklist {
  margin-top: 23px;
  padding-top: 13px;
}
.checklist > div {
  font-size: 10px;
  line-height: 1.9;
  gap: 8px;
  margin: 12px 0;
}
.source-panel {
  border-radius: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  background: transparent;
}
.source-panel h3 {
  font-size: 12px;
}
.source-panel p {
  font-size: 11px;
  line-height: 1.9;
  margin-top: 10px;
}
.source-panel button {
  font-size: 11px;
}
.accessory-item,
.doc-item {
  border-radius: 6px;
  padding: 21px;
  gap: 17px;
}
.accessory-item h3 {
  font-size: 15px;
}
.accessory-item p,
.doc-item p {
  font-size: 12px;
  line-height: 1.9;
}
.accessory-item .compat {
  font-size: 11px;
  line-height: 1.9;
}
.accessory-item .accessory-icon {
  width: 41px;
  height: 41px;
  border-radius: 5px;
}
.doc-item h3 {
  font-size: 13px;
}
.doc-item small {
  font-size: 10px;
}
.timeline-event h3 {
  font-size: 14px;
  font-weight: 600;
}
.timeline-event p {
  font-size: 12px;
  line-height: 1.9;
}
.notice {
  font-size: 12px;
  line-height: 1.9;
  border-radius: 5px;
  padding: 16px 19px;
}
.notice svg {
  height: 17px;
  width: 17px;
}
.table-wrap {
  border-radius: 7px;
  margin-top: 23px;
}
table {
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 16px 19px;
  background: #e9edf1;
  color: #515b68;
}
td {
  padding: 19px;
  font-size: 12px;
  line-height: 1.8;
}
td strong {
  font-size: 14px;
  font-weight: 500;
}
td small {
  font-size: 10px;
}
.permission {
  width: 18px;
  height: 18px;
}
.scope-row {
  margin-top: 24px;
}
.scope-row select {
  border-radius: 4px;
}
.permission-note {
  font-size: 11px;
  line-height: 1.9;
}
.beneficiary-hero {
  background: var(--paper) !important;
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #d2d7de;
  border-inline-start: 4px solid var(--red);
  box-shadow: var(--shadow);
}
.beneficiary-hero h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.2px;
}
.beneficiary-hero p {
  font-size: 14px;
  max-width: 800px;
  line-height: 1.9;
}
.beneficiary-hero .search-box {
  max-width: 850px;
  min-height: 55px;
}
.discipline-links {
  gap: 8px;
  margin-top: 20px;
}
.discipline-links button {
  font-size: 11px;
  border-radius: 3px;
  border-color: #d5d9e0;
  padding: 7px 11px;
}
.helper-heading {
  margin: 30px 0 19px;
}
.helper-heading h2 {
  font-size: 22px;
  font-weight: 500;
}
.helper-heading p {
  font-size: 12px;
  line-height: 1.9;
}
.request-empty {
  border-radius: 10px;
  padding: 60px 30px;
}
.request-empty h2 {
  font-size: 24px;
  font-weight: 500;
}
.request-empty .big-icon {
  border: 1px solid #e3c8cf;
  background: var(--red-tint);
  border-radius: 50%;
  width: 74px;
  height: 74px;
}
.request-empty p {
  font-size: 13px;
  max-width: 620px;
  line-height: 2;
}
.modal {
  border-radius: 10px;
  max-width: 680px;
}
.modal.wide {
  max-width: 860px;
}
.modal-head {
  padding: 26px 29px;
  background: #f4f5f6;
}
.modal-head h2 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
}
.modal-head p {
  font-size: 12px;
  margin-top: 6px;
}
.modal-body {
  padding: 26px 29px;
}
.modal-body > p {
  font-size: 13px;
  line-height: 1.95;
}
.modal-footer {
  padding: 21px 29px;
}
.role-card {
  border-radius: 5px;
  padding: 20px;
}
.role-card h3 {
  font-size: 14px;
  font-weight: 600;
}
.role-card p {
  font-size: 12px;
  line-height: 1.8;
}
.role-card small {
  font-size: 10px;
}
.form-grid {
  gap: 18px;
  margin-top: 23px;
}
.field {
  font-size: 12px;
}
.field input,
.field select,
.field textarea {
  border-radius: 4px;
  min-height: 45px;
  font-size: 13px;
  padding: 10px 12px;
}
.field textarea {
  min-height: 100px;
}
.field small {
  font-size: 10px;
  line-height: 1.8;
}
.form-section h3 {
  font-size: 13px;
}
.check-row {
  border-radius: 4px;
  font-size: 12px;
  padding: 13px;
}
.check-row small {
  font-size: 10px;
}
.form-error {
  font-size: 12px;
}
.source-excerpt {
  border-radius: 5px;
  padding: 21px;
  font-size: 12px;
  line-height: 1.9;
}
.source-excerpt dl {
  gap: 12px;
  grid-template-columns: 130px 1fr;
}
.steps {
  font-size: 11px;
  line-height: 1.8;
}
.success-copy p {
  font-size: 13px;
}
.success-meta {
  font-size: 12px;
  border-radius: 5px;
}
.toast {
  border-radius: 5px;
  font-size: 12px;
}
.skip:focus {
  z-index: 120;
}
footer {
  max-width: 1394px;
  margin: 0 auto;
  padding: 22px 0;
  gap: 15px;
  font-size: 10px;
  border-top: 1px solid #d3d8df;
}
/* Dark mode stays neutral; the bright product wells preserve recognition. */
html[data-theme="dark"] {
  --canvas: #17191c;
  --paper: #22252a;
  --ink: #eef0f4;
  --muted: #b9c0c9;
  --line: #3c424b;
  --glass: rgba(29, 32, 36, 0.91);
  --fascia: #111315;
  --fascia-text: #f4f5f7;
  --red: #f17a8d;
  --red-tint: #3c262e;
  --shadow: 0 12px 32px #00000010;
}
html[data-theme="dark"] .sidebar {
  background: var(--glass);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .nav-link {
  color: #c2c8d0;
}
html[data-theme="dark"] .nav-link.active {
  background: none;
  color: var(--red);
}
html[data-theme="dark"] .home-hero {
  background: #23262b;
  border-color: #464b54;
}
html[data-theme="dark"] .hero-view > img {
  opacity: 0.43;
  filter: grayscale(0.8) brightness(0.65);
}
html[data-theme="dark"] .hero-view:after {
  background: linear-gradient(
    90deg,
    #23262b 0%,
    #23262bfc 31%,
    #23262be8 48%,
    #23262b55 76%,
    #23262b22
  );
}
html[dir="rtl"][data-theme="dark"] .hero-view:after {
  background: linear-gradient(
    270deg,
    #23262b 0%,
    #23262bfc 31%,
    #23262be8 48%,
    #23262b55 76%,
    #23262b22
  );
}
html[data-theme="dark"] .hero-content h1 span {
  color: #bbc1ca;
}
html[data-theme="dark"] .hero-search {
  background: #181b1ff0;
  border-color: #626b78;
}
html[data-theme="dark"] .hero-search input {
  color: #eff1f5;
}
html[data-theme="dark"] .hero-search input::placeholder {
  color: #b5bcc7;
}
html[data-theme="dark"] .hero-links {
  color: #c1c8d2;
}
html[data-theme="dark"] .hero-content .eyebrow {
  color: #f4a0af;
}
html[data-theme="dark"] .circuit-art {
  opacity: 0.37;
}
html[data-theme="dark"] .circuit-art .chip-core {
  fill: #bc2339;
  stroke: #ffb9c5;
}
html[data-theme="dark"] .summary-grid {
  background: var(--paper);
  border-color: var(--line);
}
html[data-theme="dark"] .metric-icon {
  background: transparent;
  border-color: #606976;
}
html[data-theme="dark"] .metric.alert .metric-icon {
  background: var(--amber-bg);
}
html[data-theme="dark"] .action-symbol {
  border-color: #81515d;
  color: #efa4b2;
}
html[data-theme="dark"] .action-row:not(:last-child) .action-symbol:after {
  background: #4f3c43;
}
html[data-theme="dark"] .empty-chart:before {
  background: none;
  border-color: #65707e;
  box-shadow:
    0 0 0 13px var(--paper),
    0 0 0 14px #3c424b,
    0 0 0 27px var(--paper),
    0 0 0 28px #30353d;
}
html[data-theme="dark"] .quick-guide:before {
  border-color: #535b67;
  box-shadow:
    0 0 0 20px var(--paper),
    0 0 0 21px #3b424d,
    0 0 0 42px var(--paper),
    0 0 0 43px #30353d;
}
html[data-theme="dark"] .quick-guide .guide-art {
  background: #3c262e;
  border-color: #875260;
}
html[data-theme="dark"] .filter-chip.active {
  background: none;
  border-bottom-color: var(--red);
}
html[data-theme="dark"] .card-image {
  background: linear-gradient(125deg, #e9edf1, #d9dfe6);
}
html[data-theme="dark"] .instrument-orbit {
  border-color: #bec7d2;
  box-shadow:
    0 0 0 13px #e2e7ed,
    0 0 0 14px #cbd3dd,
    0 0 0 33px #e7ebf0,
    0 0 0 34px #d3dae3;
}
html[data-theme="dark"] .card-spec {
  color: #d2d8e1;
}
html[data-theme="dark"] .plain-tag {
  background: #323741;
  color: #c7cfd9;
}
html[data-theme="dark"] .detail-hero {
  background: var(--fascia) !important;
  border-color: #49515d;
}
html[data-theme="dark"] .detail-hero > img {
  border-radius: 0;
  padding: 48px 30px;
  background: radial-gradient(ellipse, #fff, #edf0f4 60%, #d8dfe8);
  mix-blend-mode: normal;
}
html[data-theme="dark"] .brief-grid {
  background: var(--paper);
  border-color: var(--line);
}
html[data-theme="dark"] .source-panel {
  background: none;
}
html[data-theme="dark"] .modal-head {
  background: #2a2e35;
}
html[data-theme="dark"] .beneficiary-hero {
  background: var(--paper) !important;
  border-color: #545e6c;
  border-inline-start-color: var(--red);
}
html[data-theme="dark"] .equipment-card:hover {
  border-color: #8490a1;
}
html[data-theme="dark"] .nav-link:hover {
  background: none;
  color: #f9b3c0;
}
/* Responsive panes retain the complete workflows and text in either direction. */
@media (min-width: 1550px) {
  main {
    padding-top: 45px;
  }
  .equipment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .topbar {
    padding-inline: 30px;
    gap: 20px;
  }
  .masthead-brand {
    padding-inline-end: 22px;
  }
  .masthead-brand img {
    width: 166px;
  }
  .sidebar,
  html[dir="ltr"] .sidebar {
    padding-inline: 30px;
  }
  .sidebar nav {
    gap: 20px;
  }
  .nav-link {
    font-size: 11px;
    gap: 7px;
  }
  .nav-link svg {
    height: 17px;
    width: 17px;
  }
  main {
    padding: 30px;
  }
  .hero-content {
    width: 69%;
    padding: 33px;
  }
  .hero-content h1 {
    font-size: 44px;
  }
  .hero-search {
    max-width: 560px;
  }
  .home-columns,
  .lower-home {
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 1fr);
    gap: 20px;
  }
  .metric {
    padding-inline: 17px;
  }
  .summary-grid {
    padding-inline: 10px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
  .detail-hero h1 {
    font-size: 46px;
  }
  .brief-card {
    grid-template-columns: 25px 118px minmax(0, 1fr);
    gap: 13px;
    padding: 20px;
  }
  .card-body {
    padding-inline: 20px;
  }
  .card-status {
    margin-inline: 20px;
  }
  .card-bottom {
    padding-inline: 20px;
  }
  .equipment-grid {
    gap: 19px;
  }
  .topbar .prototype-pill {
    display: none;
  }
  footer {
    margin-inline: 30px;
  }
}
@media (max-width: 1000px) {
  .topbar .crumb {
    display: none;
  }
  .top-controls {
    margin-inline-start: auto;
  }
  .sidebar nav {
    gap: 18px;
  }
  .sidebar {
    height: 62px;
  }
  .app-shell,
  html[dir="ltr"] .app-shell {
    padding-top: 150px;
  }
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #catalog-results > .equipment-card:first-child {
    grid-column: span 2;
  }
  .home-columns,
  .lower-home {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .panel-head {
    padding: 22px;
  }
  .action-list {
    padding-inline: 22px;
  }
  .action-row {
    gap: 12px;
    padding: 18px 0;
  }
  .action-row strong {
    font-size: 12px;
  }
  .action-row p {
    font-size: 11px;
  }
  .action-meta {
    font-size: 9px;
  }
  .action-meta .priority {
    font-size: 8px;
  }
  .utilization-body {
    padding-inline: 22px;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .metric-top {
    font-size: 9px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-value .unit {
    font-size: 10px;
  }
  .metric small {
    font-size: 9px;
  }
  .quick-guide {
    padding: 24px;
  }
  .quick-guide h2 {
    font-size: 22px;
  }
  .evidence-row {
    padding: 17px 22px;
    flex-wrap: wrap;
  }
  .evidence-row .tag {
    display: none;
  }
  .evidence-row {
    grid-template-columns: 29px 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 20px;
  }
  .detail-hero {
    grid-template-columns: minmax(0, 1fr) 35%;
  }
  .detail-hero > div:first-child {
    padding: 29px;
  }
  .detail-hero > img {
    padding: 33px 22px;
  }
  .detail-hero h1 {
    font-size: 42px;
  }
  .state-cell {
    padding-inline: 16px;
  }
  .state-cell strong {
    font-size: 11px;
  }
  .state-cell small {
    font-size: 9px;
  }
  .state-cell > span {
    font-size: 9px;
  }
  .brief-card {
    grid-template-columns: 28px 150px 1fr;
  }
  .hero-content {
    width: 76%;
  }
  .hero-content > p {
    max-width: 430px;
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .hero-view > img {
    width: 65%;
  }
  .hero-view:after {
    background: linear-gradient(
      90deg,
      #fff 0%,
      #fffffffa 37%,
      #ffffffdd 59%,
      #ffffff40
    );
  }
  html[dir="rtl"] .hero-view:after {
    background: linear-gradient(
      270deg,
      #fff 0%,
      #fffffffa 37%,
      #ffffffdd 59%,
      #ffffff40
    );
  }
  html[data-theme="dark"] .hero-view:after {
    background: linear-gradient(
      90deg,
      #23262b 0%,
      #23262bfc 37%,
      #23262bee 59%,
      #23262b66
    );
  }
  html[dir="rtl"][data-theme="dark"] .hero-view:after {
    background: linear-gradient(
      270deg,
      #23262b 0%,
      #23262bfc 37%,
      #23262bee 59%,
      #23262b66
    );
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 90px;
  }
  .app-shell,
  html[dir="ltr"] .app-shell {
    padding-top: 76px;
  }
  .topbar {
    height: 76px;
    padding: 0 19px;
    gap: 14px;
  }
  .masthead-brand {
    padding: 0;
    border: 0;
  }
  .masthead-brand img {
    width: 151px;
    height: 53px;
  }
  .topbar .icon-button.mobile-menu {
    display: grid;
    order: -1;
    background: #353940;
    flex-shrink: 0;
    width: 32px;
    height: 34px;
  }
  .topbar .role-button > span:not(.avatar) {
    display: none;
  }
  .topbar .role-button .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .topbar .theme-button {
    min-height: 33px;
    width: 31px;
  }
  .topbar .language-button {
    font-size: 10px;
    min-height: 33px;
    padding: 5px 8px;
  }
  .top-controls {
    gap: 8px;
  }
  .sidebar,
  html[dir="ltr"] .sidebar {
    top: 0;
    bottom: 0;
    height: 100dvh;
    width: 275px;
    padding: 25px 19px;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    backdrop-filter: blur(25px);
    z-index: 60;
    border-inline-end: 1px solid var(--line);
    box-shadow: 0 0 70px #0003;
  }
  .sidebar {
    right: 0;
    left: auto;
    transform: translateX(105%);
  }
  html[dir="ltr"] .sidebar {
    left: 0;
    right: auto;
    transform: translateX(-105%);
  }
  .sidebar.open,
  html[dir="ltr"] .sidebar.open {
    transform: translateX(0);
  }
  .sidebar > .brand {
    display: block;
    padding: 0 13px 25px;
  }
  .sidebar > .brand img {
    width: 192px;
    filter: brightness(0);
  }
  html[data-theme="dark"] .sidebar > .brand img {
    filter: brightness(0) invert(1);
  }
  .sidebar > .workspace-label {
    display: block;
    padding: 22px 13px 12px;
  }
  .sidebar > .sidebar-bottom {
    display: block;
    padding: 20px 13px;
    margin-top: auto;
  }
  .sidebar > .edition {
    display: flex;
  }
  .sidebar nav {
    display: block;
    max-height: 58vh;
    overflow: auto;
    width: 100%;
    margin: 0;
    height: auto;
  }
  .nav-link {
    padding: 13px;
    border-radius: 5px;
    font-size: 13px;
    gap: 12px;
    border: 0;
    margin: 4px 0;
    white-space: normal;
  }
  .nav-link.active {
    background: var(--red-tint);
    border: 0;
  }
  .nav-link svg {
    height: 20px;
    width: 20px;
  }
  .sidebar .nav-link .nav-count {
    margin-inline-start: auto;
  }
  .sidebar .brand > span {
    font-size: 11px;
  }
  main {
    padding: 24px 20px 35px;
  }
  .page-heading {
    margin-bottom: 23px;
    align-items: start;
  }
  .heading-copy {
    max-width: 100%;
  }
  .heading-copy h1 {
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -0.8px;
  }
  .heading-copy p {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 10px;
  }
  .home-hero {
    min-height: 350px;
    border-radius: 8px;
  }
  .hero-content {
    width: 100%;
    padding: 29px 26px;
    position: relative;
  }
  .hero-content h1 {
    font-size: 41px;
    letter-spacing: -1.4px;
    margin: 15px 0;
    max-width: 390px;
  }
  .hero-content > p {
    font-size: 12px;
    max-width: 380px;
  }
  .hero-view > img {
    width: 85%;
    opacity: 0.34;
    filter: grayscale(0.85) contrast(0.8);
  }
  .hero-view:after,
  html[dir="rtl"] .hero-view:after {
    background: linear-gradient(100deg, #fffffffc, #ffffffd8 65%, #ffffff66);
  }
  .circuit-art {
    height: 90%;
    width: 95%;
    right: -20%;
    opacity: 0.3;
  }
  html[dir="rtl"] .circuit-art {
    left: -20%;
    right: auto;
  }
  .hero-search {
    padding: 5px 5px 5px 12px;
    gap: 9px;
    max-width: 500px;
  }
  .hero-search input {
    font-size: 11px;
    min-height: 32px;
  }
  .hero-search .btn {
    font-size: 10px;
    padding: 8px 12px;
    min-height: 35px;
  }
  .hero-search .btn svg {
    display: none;
  }
  .hero-search > svg {
    width: 17px;
    height: 17px;
  }
  .hero-links {
    font-size: 10px;
    margin-top: 16px;
    gap: 13px;
  }
  html[dir="rtl"] .hero-content h1 {
    font-size: 36px;
    line-height: 1.35;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 8px;
    border-top: 0;
    margin-bottom: 23px;
  }
  .summary-grid:before {
    inset-inline-start: 25px;
  }
  .metric {
    margin: 20px 0;
    padding-inline: 17px;
  }
  .metric:nth-child(2) {
    border-inline-end: 0;
  }
  .metric:nth-child(-n + 2) {
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
  }
  .metric:nth-child(n + 3) {
    margin-top: 19px;
  }
  .metric-top {
    font-size: 10px;
    line-height: 1.6;
  }
  .metric-value {
    font-size: 29px;
    gap: 7px;
  }
  .metric-value .unit {
    font-size: 10px;
  }
  .metric small {
    font-size: 9px;
    line-height: 1.8;
  }
  .metric-icon {
    height: 23px;
    width: 23px;
  }
  .home-columns,
  .lower-home {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .panel-head {
    padding: 22px 22px 18px;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .panel-head p {
    font-size: 11px;
  }
  .action-list {
    padding: 0 22px 7px;
  }
  .action-row {
    padding: 20px 0;
    gap: 13px;
    grid-template-columns: 34px 1fr 14px;
  }
  .action-row strong,
  html[dir="ltr"] .action-row strong {
    font-size: 12px;
    line-height: 1.65;
  }
  .action-row p {
    font-size: 11px;
    line-height: 1.85;
  }
  .action-meta {
    font-size: 9px;
    line-height: 1.8;
  }
  .action-meta .priority {
    font-size: 9px;
  }
  .utilization-body {
    padding: 0 22px 24px;
  }
  .empty-chart {
    height: 148px;
  }
  .util-values {
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
  }
  .util-values strong {
    font-size: 21px;
  }
  .util-values small {
    font-size: 9px;
    line-height: 1.65;
  }
  .util-legend {
    font-size: 9px;
  }
  .empty-hint {
    font-size: 10px;
  }
  .lower-home {
    margin-top: 19px;
  }
  .evidence-row {
    padding: 17px 22px;
    gap: 12px;
  }
  .evidence-row strong {
    font-size: 12px;
    line-height: 1.7;
  }
  .evidence-row p {
    font-size: 10px;
  }
  .quick-guide {
    padding: 25px;
  }
  .quick-guide h2 {
    max-width: 320px;
    font-size: 25px;
  }
  .quick-guide p {
    font-size: 12px;
    max-width: 360px;
  }
  .quick-guide .btn {
    margin-top: 0;
    min-height: 42px;
  }
  .info-line {
    font-size: 10px;
    line-height: 1.95;
  }
  .catalog-toolbar {
    padding: 14px 14px 0;
  }
  .search-row {
    gap: 10px;
  }
  .search-box {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }
  .search-box input {
    font-size: 12px;
    padding: 12px 0;
  }
  .select-filter {
    width: 100%;
    height: 42px;
    font-size: 12px;
  }
  .filter-chips {
    gap: 12px;
    min-height: 50px;
    flex-wrap: wrap;
    margin-top: 13px;
  }
  .filter-chip {
    font-size: 10px;
    padding: 12px 0 10px;
  }
  .filter-count {
    width: 100%;
    font-size: 10px;
    padding: 0 0 12px;
    margin: 0 !important;
  }
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }
  #catalog-results > .equipment-card:first-child {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
  }
  #catalog-results > .equipment-card:first-child .card-image {
    min-height: 285px;
    padding: 27px 20px;
  }
  #catalog-results > .equipment-card:first-child .card-image img {
    height: 160px;
  }
  #catalog-results > .equipment-card:first-child .card-body {
    padding: 25px 22px 15px;
  }
  #catalog-results > .equipment-card:first-child h2 {
    font-size: 30px;
  }
  #catalog-results > .equipment-card:first-child .card-status {
    margin-inline: 22px;
  }
  #catalog-results > .equipment-card:first-child .card-bottom {
    padding: 17px 22px 23px;
  }
  .card-image {
    height: 160px;
    padding: 31px 23px 22px;
  }
  .card-image img {
    height: 105px;
  }
  .instrument-orbit {
    width: 160px;
    height: 160px;
    left: calc(50% - 80px);
    top: 18px;
  }
  .card-image .tag {
    font-size: 8px;
    inset-inline-start: 11px;
    padding: 4px 5px;
  }
  .card-image .equipment-code {
    font-size: 8px !important;
    inset-inline-end: 10px !important;
    bottom: 8px;
  }
  .card-body {
    padding: 19px 17px 12px;
  }
  .card-body h2 {
    font-size: 23px;
  }
  .card-body > p {
    font-size: 11px;
    line-height: 1.8;
  }
  .maker {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .card-spec {
    font-size: 10px;
    margin-top: 10px;
  }
  .card-tags {
    gap: 5px;
    margin-top: 9px;
  }
  .plain-tag {
    font-size: 8px;
    padding: 2px 5px;
  }
  .card-status {
    margin-inline: 17px;
    padding-top: 12px;
    font-size: 9px;
  }
  .card-status .tag {
    font-size: 8px;
    white-space: normal;
    line-height: 1.7;
  }
  .card-bottom {
    padding: 14px 17px 18px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .card-bottom > span {
    font-size: 9px;
  }
  .card-bottom .text-button {
    font-size: 10px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
    margin-bottom: 16px;
  }
  .detail-hero {
    grid-template-columns: 1fr 35%;
    min-height: 0;
    display: grid;
  }
  .detail-hero > div:first-child {
    padding: 25px;
  }
  .detail-hero h1 {
    font-size: 37px;
    margin: 11px 0 7px;
  }
  .detail-hero .maker {
    font-size: 10px;
  }
  .detail-hero .subtitle {
    font-size: 12px;
  }
  .detail-hero .tech-badges {
    gap: 5px;
    margin: 16px 0 13px;
  }
  .detail-hero .tech-badges span {
    font-size: 9px;
    padding: 4px 6px;
  }
  .detail-hero .identity-line {
    font-size: 9px;
    line-height: 1.8;
    gap: 4px 13px;
  }
  .detail-hero > img,
  html[data-theme="dark"] .detail-hero > img {
    min-height: 0;
    height: 100%;
    max-height: none;
    padding: 26px 14px;
  }
  .detail-hero > div:first-child > .tag {
    font-size: 9px;
  }
  .state-grid {
    grid-template-columns: 1fr 1fr;
    padding: 18px 0;
    gap: 19px 0;
  }
  .state-cell {
    padding-inline: 18px;
  }
  .state-cell:nth-child(2) {
    border-inline-end: 0;
  }
  .state-cell > span {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .state-cell strong {
    font-size: 11px;
  }
  .state-cell small {
    font-size: 9px;
  }
  .detail-layout {
    margin-top: 25px;
    gap: 25px;
  }
  .detail-content h2 {
    font-size: 23px;
  }
  .detail-content > p {
    font-size: 12px;
  }
  .tabs {
    gap: 23px;
    margin-bottom: 23px;
  }
  .tab {
    font-size: 11px;
    padding-bottom: 12px;
  }
  .brief-grid {
    margin-top: 21px;
  }
  .brief-card {
    grid-template-columns: 25px 130px 1fr;
    gap: 12px;
    padding: 20px;
  }
  .brief-card h3 {
    font-size: 12px;
  }
  .brief-card p {
    font-size: 11px;
  }
  .brief-icon svg {
    width: 20px;
    height: 20px;
  }
  .application-card {
    padding: 21px;
  }
  .application-card h3 {
    font-size: 14px;
  }
  .application-card ul {
    font-size: 11px;
  }
  .mini-note {
    font-size: 10px !important;
  }
  .detail-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    position: static;
  }
  .request-panel {
    padding: 23px;
  }
  .request-panel h3 {
    font-size: 20px;
  }
  .request-panel > p {
    font-size: 11px;
  }
  .request-panel .btn {
    font-size: 11px;
    margin-top: 20px;
  }
  .request-panel > small {
    font-size: 9px;
  }
  .source-panel {
    padding: 21px;
  }
  .source-panel p {
    font-size: 10px;
  }
  .notice {
    font-size: 11px;
    padding: 15px;
    gap: 9px;
  }
  .accessory-item,
  .doc-item {
    padding: 18px;
    gap: 13px;
  }
  .accessory-item h3 {
    font-size: 14px;
  }
  .accessory-item p,
  .doc-item p {
    font-size: 11px;
  }
  .accessory-item .compat {
    font-size: 10px;
  }
  .doc-item .btn {
    font-size: 10px;
    padding: 9px 12px;
    min-height: 37px;
  }
  .doc-item h3 {
    font-size: 12px;
  }
  .table-wrap {
    margin-top: 20px;
  }
  th {
    padding: 13px 16px;
    font-size: 9px;
  }
  td {
    padding: 16px;
    font-size: 11px;
  }
  td strong {
    font-size: 12px;
  }
  .beneficiary-hero {
    padding: 29px;
    border-radius: 8px;
  }
  .beneficiary-hero h1 {
    font-size: 34px;
    line-height: 1.2;
  }
  .beneficiary-hero p {
    font-size: 12px;
  }
  .beneficiary-hero .search-box {
    min-height: 47px;
  }
  .discipline-links button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .helper-heading h2 {
    font-size: 21px;
  }
  .helper-heading p {
    font-size: 11px;
  }
  .request-empty {
    padding: 45px 28px;
  }
  .request-empty h2 {
    font-size: 23px;
  }
  .request-empty p {
    font-size: 12px;
  }
  .modal-head {
    padding: 22px;
  }
  .modal-head h2 {
    font-size: 21px;
  }
  .modal-head p {
    font-size: 11px;
  }
  .modal-body {
    padding: 22px;
  }
  .modal-body > p {
    font-size: 12px;
  }
  .modal-footer {
    padding: 19px 22px;
  }
  .role-card {
    padding: 17px;
  }
  .role-card h3 {
    font-size: 13px;
  }
  .role-card p {
    font-size: 11px;
  }
  .field {
    font-size: 12px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 13px;
  }
  .source-excerpt {
    font-size: 11px;
    padding: 18px;
  }
  .source-excerpt dl {
    grid-template-columns: 110px 1fr;
    gap: 9px;
  }
  .form-grid {
    gap: 17px;
  }
  .steps {
    font-size: 10px;
  }
  .success-copy h2 {
    font-size: 23px;
  }
  .success-copy p {
    font-size: 12px;
  }
  .success-meta {
    font-size: 11px;
  }
  .scope-row {
    font-size: 11px;
  }
  .permission-note {
    font-size: 10px;
  }
  footer,
  html[dir="ltr"] footer {
    margin: 0 20px;
    font-size: 9px;
    padding: 20px 0;
    flex-direction: column;
    gap: 6px;
  }
  .topbar .role-button small {
    display: none;
  }
  html[data-theme="dark"] .hero-view:after,
  html[dir="rtl"][data-theme="dark"] .hero-view:after {
    background: linear-gradient(100deg, #23262bfc, #23262be8 65%, #23262b99);
  }
}
@media (max-width: 480px) {
  .topbar {
    padding-inline: 15px;
    gap: 10px;
  }
  .masthead-brand img {
    width: 132px;
    height: 50px;
  }
  .topbar .role-button {
    display: none;
  }
  .top-controls {
    gap: 7px;
  }
  .topbar .language-button {
    font-size: 10px;
    min-height: 32px;
  }
  .topbar .theme-button {
    width: 30px;
    min-height: 32px;
  }
  .topbar .icon-button.mobile-menu {
    width: 30px;
    height: 32px;
  }
  main {
    padding: 21px 17px 32px;
  }
  .hero-content {
    padding: 27px 22px;
  }
  .hero-content h1 {
    font-size: 37px;
  }
  .hero-content > p {
    font-size: 11px;
    line-height: 1.9;
    max-width: 300px;
  }
  .hero-content .eyebrow {
    font-size: 9px;
  }
  .hero-search {
    gap: 7px;
    padding-inline-start: 11px;
  }
  .hero-search input {
    font-size: 10px;
  }
  .hero-search .btn {
    font-size: 10px;
    padding: 8px 11px;
  }
  .home-hero {
    min-height: 330px;
  }
  .hero-links {
    font-size: 9px;
    gap: 11px;
  }
  .summary-grid {
    padding-inline: 5px;
  }
  .metric {
    padding-inline: 15px;
  }
  .metric-top {
    font-size: 9px;
  }
  .metric-value .unit {
    font-size: 9px;
  }
  .metric-icon {
    height: 21px;
    width: 21px;
  }
  .metric small {
    font-size: 8px;
  }
  .page-heading .btn {
    font-size: 11px;
    padding: 10px 14px;
    min-height: 40px;
  }
  .heading-copy h1 {
    font-size: 29px;
  }
  .heading-copy p {
    font-size: 11px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .panel-head {
    padding: 21px 20px 17px;
  }
  .action-list {
    padding-inline: 20px;
  }
  .action-row {
    grid-template-columns: 30px 1fr 12px;
    gap: 11px;
  }
  .action-row .action-symbol {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .action-row strong,
  html[dir="ltr"] .action-row strong {
    font-size: 12px;
  }
  .action-row p {
    font-size: 11px;
  }
  .action-meta {
    gap: 4px 10px;
  }
  .action-meta .priority {
    font-size: 8px;
  }
  .utilization-body {
    padding-inline: 20px;
  }
  .util-values {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .util-values small {
    font-size: 10px;
  }
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  #catalog-results > .equipment-card:first-child {
    grid-column: auto;
    display: flex;
  }
  #catalog-results > .equipment-card:first-child .card-image {
    min-height: 0;
    height: 200px;
    border: 0;
    padding: 33px;
  }
  #catalog-results > .equipment-card:first-child .card-image img {
    height: 145px;
  }
  #catalog-results > .equipment-card:first-child .instrument-orbit {
    height: 210px;
    width: 210px;
    left: calc(50% - 105px);
    top: 10px;
  }
  #catalog-results > .equipment-card:first-child .card-body {
    padding: 23px 23px 14px;
  }
  #catalog-results > .equipment-card:first-child h2 {
    font-size: 30px;
  }
  #catalog-results > .equipment-card:first-child .card-status {
    margin-inline: 23px;
  }
  #catalog-results > .equipment-card:first-child .card-bottom {
    padding: 17px 23px 23px;
  }
  .card-image {
    height: 190px;
    padding: 32px;
  }
  .card-image img {
    height: 137px;
  }
  .instrument-orbit {
    height: 200px;
    width: 200px;
    left: calc(50% - 100px);
    top: 12px;
  }
  .card-image .tag {
    font-size: 9px;
    inset-inline-start: 14px;
  }
  .card-image .equipment-code {
    font-size: 9px !important;
    inset-inline-end: 14px !important;
  }
  .card-body {
    padding: 23px 23px 14px;
  }
  .card-body h2 {
    font-size: 28px;
  }
  .card-body > p {
    font-size: 12px;
  }
  .maker {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .card-spec {
    font-size: 11px;
    margin-top: 12px;
  }
  .plain-tag {
    font-size: 9px;
  }
  .card-status {
    margin-inline: 23px;
    font-size: 10px;
  }
  .card-status .tag {
    font-size: 9px;
  }
  .card-bottom {
    padding: 17px 23px 22px;
  }
  .card-bottom .text-button {
    font-size: 11px;
  }
  .card-bottom > span {
    font-size: 10px;
  }
  .detail-hero {
    display: flex;
    flex-direction: column;
  }
  .detail-hero > div:first-child {
    padding: 27px 25px;
  }
  .detail-hero h1 {
    font-size: 44px;
  }
  .detail-hero .subtitle {
    font-size: 13px;
  }
  .detail-hero .tech-badges span {
    font-size: 10px;
  }
  .detail-hero > img,
  html[data-theme="dark"] .detail-hero > img {
    height: 195px;
    max-height: 195px;
    min-height: 0;
    max-width: none;
    width: 100%;
    padding: 25px 40px;
    margin: 0;
  }
  .identity-line {
    font-size: 9px !important;
  }
  .state-cell {
    padding-inline: 15px;
  }
  .state-cell strong {
    font-size: 10px;
  }
  .state-cell small {
    font-size: 8px;
  }
  .state-cell > span {
    font-size: 9px;
  }
  .detail-content h2 {
    font-size: 22px;
  }
  .detail-content > p {
    font-size: 12px;
  }
  .brief-card {
    grid-template-columns: 24px 1fr;
    gap: 7px 13px;
    padding: 20px;
  }
  .brief-card p {
    grid-column: 2;
    font-size: 11px;
  }
  .brief-card h3 {
    font-size: 12px;
  }
  .brief-icon {
    grid-row: 1/3;
  }
  .detail-aside {
    display: flex;
  }
  .tabs {
    gap: 22px;
  }
  .tab {
    font-size: 11px;
  }
  .accessory-item {
    gap: 12px;
  }
  .accessory-item .accessory-icon {
    height: 34px;
    width: 34px;
  }
  .accessory-item h3 {
    font-size: 13px;
  }
  .accessory-item .tag {
    white-space: normal;
    font-size: 9px;
  }
  .doc-item {
    flex-wrap: wrap;
    gap: 12px;
  }
  .doc-item .doc-info {
    min-width: 170px;
  }
  .doc-item .btn {
    margin-inline-start: 40px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    border-radius: 8px;
  }
  .modal-head {
    padding: 20px;
  }
  .modal-head h2 {
    font-size: 20px;
  }
  .modal-head p {
    font-size: 10px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 17px 20px;
  }
  .modal-footer .btn {
    font-size: 11px;
    min-height: 41px;
  }
  .role-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .role-card {
    padding: 15px;
  }
  .role-card h3 {
    font-size: 12px;
  }
  .role-card p {
    font-size: 10px;
  }
  .field small {
    font-size: 9px;
  }
  .check-row {
    font-size: 11px;
  }
  .check-row small {
    font-size: 9px;
  }
  .source-excerpt dl {
    grid-template-columns: 90px 1fr;
    gap: 9px;
  }
  .beneficiary-hero {
    padding: 27px 23px;
  }
  .beneficiary-hero h1 {
    font-size: 30px;
  }
  .beneficiary-hero .search-box .btn {
    font-size: 10px;
    padding: 9px 12px;
  }
  .discipline-links {
    gap: 6px;
  }
  .discipline-links button {
    font-size: 10px;
  }
  .helper-heading {
    gap: 14px;
  }
  .helper-heading h2 {
    font-size: 20px;
  }
  .helper-heading p {
    font-size: 10px;
  }
  .helper-heading .text-button {
    font-size: 10px;
  }
  .request-empty {
    padding: 40px 24px;
  }
  .request-empty h2 {
    font-size: 22px;
  }
  .request-empty p {
    font-size: 12px;
  }
  .table-wrap {
    max-width: 100%;
  }
  .table-wrap table {
    min-width: 600px;
  }
  .permission-note {
    font-size: 10px;
  }
  .modal .table-wrap table {
    min-width: 520px;
  }
  .timeline-event p {
    font-size: 11px;
  }
  footer,
  html[dir="ltr"] footer {
    margin-inline: 17px;
  }
}
.detail-layout > section {
  min-width: 0;
}
.tabs {
  max-width: 100%;
}
.sidebar {
  transition: none;
}
html {
  scrollbar-gutter: stable;
}
.image-source {
  position: absolute;
  bottom: 11px;
  inset-inline-start: 15px;
  z-index: 3;
  font-size: 8px;
  color: #5c6674;
  background: #ffffffb8;
  backdrop-filter: blur(8px);
  padding: 2px 4px;
  border-radius: 2px;
}
html[dir="ltr"] .action-row .arrow {
  transform: scaleX(-1);
}
footer {
  max-width: 1490px;
  padding-inline: 48px;
}
html[data-theme="dark"] .file-icon {
  background: #2b2f36;
}
@media (max-width: 1200px) {
  footer {
    margin-inline: 0;
    padding-inline: 30px;
  }
}
@media (max-width: 760px) {
  footer,
  html[dir="ltr"] footer {
    margin-inline: 0;
    padding-inline: 20px;
  }
}
@media (max-width: 480px) {
  .topbar .role-button {
    display: flex;
  }
  footer,
  html[dir="ltr"] footer {
    margin-inline: 0;
    padding-inline: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Image refresh r2: consistent opaque product surfaces in either theme. */
.card-image img,
html[data-theme="dark"] .card-image img {
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  border-radius: 4px;
  background: #fff;
}
.device-image {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  background: #fff;
  color: #333b45;
  padding: 24px;
  gap: 13px;
}
.device-image img,
html[data-theme="dark"] .device-image img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: contain;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  background: #fff;
}
.device-image figcaption {
  font-size: 10px;
  line-height: 1.65;
  color: #47515d;
  text-align: start;
}
.card-image .image-source {
  color: #384350;
  background: #fffffff2;
  max-width: 55%;
  font-size: 8px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .device-image {
    padding: 20px 15px;
  }
  .device-image img,
  html[data-theme="dark"] .device-image img {
    height: 180px;
  }
}
@media (max-width: 480px) {
  .device-image {
    padding: 20px 24px;
    width: 100%;
  }
  .device-image img,
  html[data-theme="dark"] .device-image img {
    height: 170px;
  }
}

/* Production adapters: approved r11 composition, real identity and protected runtime data. */
:root {
  --surface: var(--canvas);
  --tint: var(--red-tint);
  --warning: #815114;
  font-size: 16px;
}
html[data-theme="dark"] {
  --surface: var(--canvas);
  --tint: var(--red-tint);
  --warning: #efd1a6;
}
body {
  font-size: 16px;
}
.hidden {
  display: none !important;
}
.topbar {
  min-height: 0;
  border-top: 0;
}
.topbar .identity {
  gap: 0;
  font-weight: normal;
  padding-inline-end: 30px;
}
.topbar .identity > span {
  display: none;
}
.topbar .identity img {
  background: transparent;
  border-radius: 0;
  padding: 0;
  width: 186px;
  height: 64px;
}
.top-actions {
  gap: 16px;
  flex-wrap: nowrap;
}
.top-actions > button,
#account > button {
  background: #2b2e32;
  border: 1px solid #5c626c;
  color: #fff;
  border-radius: 5px;
  padding: 7px 12px;
  min-height: 36px;
  font-size: 14px;
}
#account {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-identity strong {
  font-size: 14px;
  display: block;
  color: #fff;
}
.account-identity small {
  display: block;
  color: #c1c5cc;
  font-size: 12px;
}
.account-identity svg {
  width: 18px;
  height: 18px;
}
#workspace.authenticated {
  display: block;
  max-width: none;
  margin: 0;
  padding: 154px 0 0;
}
#workspace:not(.authenticated) {
  padding-top: 88px;
}
.sidebar .nav {
  position: static;
  display: flex;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  align-items: stretch;
  box-shadow: none;
}
.sidebar .nav button {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  min-height: 64px;
  width: auto;
  display: flex;
  font-size: 14px;
  white-space: nowrap;
  background: none;
}
.sidebar .nav button[aria-current="page"] {
  background: none;
  color: var(--red);
  border-bottom-color: var(--red);
}
.sidebar .nav button:hover {
  background: var(--red-tint);
}
.sidebar nav {
  gap: 22px;
}
.page-head {
  border: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
}
.page-head .heading-copy p {
  margin-top: 10px;
  font-size: 14px;
}
.hero-search input,
.hero-content > p,
.hero-links,
.metric-top,
.metric small,
.panel-head p,
.action-meta,
.action-row p,
.util-values small,
.empty-hint,
.evidence-row p,
.quick-guide p {
  font-size: 14px;
}
.hero-content {
  width: 65%;
}
.hero-content h1 {
  font-size: 49px;
}
.hero-content .eyebrow {
  font-size: 12px;
}
.hero-content .primary {
  margin: 0;
}
.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.summary-grid .metric {
  padding-inline: 24px;
}
.metric-value {
  font-size: 31px;
}
.metric-value .unit {
  font-size: 14px;
}
.home-columns .panel,
.lower-home .panel {
  padding: 0;
}
.home-columns .action-row .action-symbol:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.action-row strong,
.evidence-row strong {
  font-size: 15px;
}
.evidence-row .tag {
  font-size: 12px;
}
.lower-home .quick-guide {
  padding: 27px;
}
.info-line {
  font-size: 14px;
}
.toolbar.catalog-toolbar {
  align-items: center;
  padding: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-toolbar .search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.catalog-toolbar .search svg {
  flex-shrink: 0;
}
.catalog-toolbar .search input {
  border: 0;
  background: none;
  box-shadow: none;
  min-height: 45px;
  width: 100%;
}
.catalog-toolbar .field {
  gap: 3px;
  font-size: 14px;
}
.catalog-toolbar button[data-view] {
  min-height: 45px;
}
.catalog-toolbar button[aria-pressed="true"] {
  background: var(--red-tint);
  color: var(--red);
  border-color: var(--red);
}
.cards.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.equipment-card .card-image {
  height: 195px;
  position: relative;
  display: flex;
  padding: 34px 35px 23px;
  background: #eef0f3;
}
.equipment-card .card-image img {
  height: 134px;
  padding: 0;
  object-fit: contain;
  z-index: 2;
}
.equipment-card .card-image > .tag {
  position: absolute;
}
.equipment-card .equipment-code {
  position: absolute;
}
.equipment-card .card-body {
  padding: 22px 23px 13px;
}
.equipment-card .card-body p {
  font-size: 14px;
}
.equipment-card .card-body h2 {
  font-size: 26px;
}
.equipment-card .maker {
  font-size: 12px;
  color: var(--muted);
}
.equipment-card .card-spec {
  font-size: 14px;
}
.equipment-card .card-status .tag {
  font-size: 12px;
  white-space: normal;
}
.equipment-card .card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.equipment-card .card-bottom > span {
  font-size: 12px;
}
.equipment-card .text-button {
  font-size: 14px;
}
#catalog-results > .equipment-grid > .equipment-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: 1fr auto auto;
}
#catalog-results > .equipment-grid > .equipment-card:first-child .card-image {
  grid-column: 2;
  grid-row: 1/4;
  height: 100%;
  min-height: 315px;
  border-inline-start: 1px solid var(--line);
}
#catalog-results
  > .equipment-grid
  > .equipment-card:first-child
  .card-image
  img {
  height: 200px;
}
#catalog-results > .equipment-grid > .equipment-card:first-child .card-body {
  grid-column: 1;
  grid-row: 1;
  padding: 31px 27px 18px;
}
#catalog-results > .equipment-grid > .equipment-card:first-child .card-status {
  grid-column: 1;
  grid-row: 2;
}
#catalog-results > .equipment-grid > .equipment-card:first-child .card-bottom {
  grid-column: 1;
  grid-row: 3;
  flex-wrap: wrap;
}
.table-wrap {
  overflow: auto;
}
table th {
  font-size: 13px;
}
table td {
  font-size: 14px;
}
table td small {
  font-size: 12px;
}
.detail-hero.equipment-hero {
  padding: 0;
  grid-template-columns: minmax(0, 1fr) 39%;
  gap: 0;
  margin: 0;
}
.detail-hero .subtitle {
  font-size: 17px;
  font-weight: 400;
}
.detail-hero .device-summary {
  padding: 32px 35px;
}
.detail-hero .device-image {
  margin: 0;
}
.detail-hero .device-image img {
  padding: 0;
  height: 215px;
}
.device-image figcaption {
  font-size: 12px;
}
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.state-cell {
  border-inline-end: 1px solid var(--line);
}
.state-cell:last-child {
  border: 0;
}
.state-cell > span {
  font-size: 13px;
}
.state-cell strong {
  font-size: 14px;
}
.detail-layout {
  display: grid;
}
.detail-layout .panel {
  padding: 24px;
}
.detail-layout .request-panel {
  padding: 25px;
}
.detail-layout .tabs {
  margin: 0 0 25px;
  padding: 0;
}
.tabs .secondary {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 14px;
  color: var(--muted);
  padding: 14px 0;
}
.tabs .secondary[aria-selected="true"] {
  border-bottom-color: var(--red);
  color: var(--red);
  background: none;
}
.detail-content > .panel h2 {
  font-size: 25px;
}
.description-list {
  margin-top: 22px;
}
.description-list dt,
.description-list dd {
  font-size: 15px;
  line-height: 1.9;
}
.detail-layout .detail-aside {
  display: flex;
  flex-direction: column;
  align-self: start;
}
.detail-aside p {
  font-size: 14px;
}
.detail-aside .btn {
  width: 100%;
}
.checklist > div {
  display: flex;
  align-items: center;
  font-size: 13px;
}
.tag.warning {
  color: var(--warning);
  background: var(--amber-bg);
}
.tag {
  white-space: normal;
}
.dialog-backdrop {
  z-index: 100;
}
.dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dialog-head h2 {
  font-size: 23px;
}
.dialog-body {
  font-size: 16px;
}
.dialog-body p {
  font-size: 15px;
  line-height: 1.9;
}
.dialog-body .actions {
  margin-block: 16px;
}
.dialog a.primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #b91f32;
  color: #fff;
  border-radius: 5px;
}
.notice {
  font-size: 14px !important;
}
.empty {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 9px;
}
.empty p {
  font-size: 16px;
}
.empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--red);
}
.empty-icon svg {
  width: 35px;
  height: 35px;
}
.startup-document {
  background: var(--paper);
}
.startup-document h3 {
  font-size: 18px;
}
.startup-document .actions a {
  font-size: 15px;
  color: var(--red);
  text-decoration: underline;
}
.room-grid {
  gap: 24px;
}
.room-control-panel h2 {
  font-size: 22px;
}
.room-control-panel .field {
  font-size: 14px;
}
.room-scene {
  padding: 0 !important;
  overflow: hidden;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 25px 48px;
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.login-page {
  max-width: 1140px;
}
.login-page .hero {
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.login-page .hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--paper) 45%, transparent),
    url("/lab-glass.jpg") right center/cover;
  opacity: 0.12;
  pointer-events: none;
}
.login-page .hero > * {
  position: relative;
}
.pending {
  margin: 40px auto;
  padding: 35px;
}
@media (max-width: 1100px) {
  .sidebar nav {
    gap: 12px;
  }
  .sidebar .nav button {
    font-size: 13px;
  }
  .cards.equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-content {
    width: 76%;
  }
  .topbar .crumb {
    display: none;
  }
  .home-columns,
  .lower-home {
    grid-template-columns: 1.35fr 1fr;
  }
}
@media (max-width: 900px) {
  .home-columns,
  .lower-home {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout .detail-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: static;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-grid .metric:nth-child(2) {
    border: 0;
  }
  .hero-content {
    width: 84%;
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .hero-view > img {
    width: 75%;
  }
}
@media (max-width: 760px) {
  #workspace.authenticated {
    padding-top: 138px;
  }
  .sidebar,
  html[dir="ltr"] .sidebar {
    display: block !important;
    transform: none;
    top: 76px;
    height: 62px;
    padding: 0 19px;
  }
  .sidebar .nav {
    height: 62px;
  }
  .sidebar .nav button {
    min-height: 60px;
  }
  .topbar {
    height: 76px;
    min-height: 76px;
  }
  .topbar .identity {
    padding: 0;
    border: 0;
  }
  .topbar .identity img {
    width: 141px;
    height: 53px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-actions > button,
  #account > button {
    font-size: 12px;
    padding: 5px 8px;
  }
  .account-identity {
    display: none;
  }
  .hero-content {
    width: 100%;
    padding: 29px;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .hero-view > img {
    width: 100%;
    opacity: 0.3;
  }
  .hero-view:after {
    background: linear-gradient(
      90deg,
      var(--paper) 10%,
      transparent
    ) !important;
  }
  .circuit-art {
    opacity: 0.3;
  }
  .summary-grid .metric {
    padding: 0 16px;
  }
  .metric-top,
  .metric small {
    font-size: 13px;
  }
  .hero-links {
    flex-wrap: wrap;
  }
  .cards.equipment-grid {
    grid-template-columns: 1fr;
  }
  #catalog-results > .equipment-grid > .equipment-card:first-child {
    display: block;
    grid-column: auto;
  }
  #catalog-results > .equipment-grid > .equipment-card:first-child .card-image {
    height: 195px;
    min-height: 0;
  }
  #catalog-results
    > .equipment-grid
    > .equipment-card:first-child
    .card-image
    img {
    height: 134px;
  }
  .detail-hero.equipment-hero {
    display: flex;
    flex-direction: column;
  }
  .detail-hero .device-image {
    width: 100%;
  }
  .detail-layout .detail-aside {
    display: flex;
  }
  .state-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
  }
  .state-cell:nth-child(2) {
    border: 0;
  }
  .toolbar.catalog-toolbar .search {
    min-width: 100%;
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .page-head .actions {
    width: 100%;
  }
  footer {
    padding: 22px 19px;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .topbar {
    padding-inline: 12px;
    gap: 8px;
  }
  .topbar .identity img {
    width: 113px;
    height: 46px;
  }
  .top-actions {
    gap: 5px;
  }
  #account {
    gap: 0;
  }
  .top-actions > button,
  #account > button {
    font-size: 11px;
    padding: 5px 6px;
  }
  .hero-content {
    padding: 25px 21px;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .hero-search {
    gap: 8px;
    padding-inline: 10px;
  }
  .hero-search input {
    font-size: 13px;
  }
  .hero-search .primary {
    padding: 8px 12px;
  }
  .metric-value {
    font-size: 27px;
  }
  .summary-grid .metric {
    margin-block: 17px;
    padding-inline: 12px;
  }
  .summary-grid {
    padding-inline: 5px;
  }
  .metric-top {
    font-size: 12px;
  }
  .metric small {
    font-size: 12px;
  }
  .evidence-row {
    grid-template-columns: 28px 1fr;
  }
  .evidence-row > .tag {
    grid-column: 2;
    justify-self: start;
  }
  .state-cell {
    padding-inline: 15px;
  }
  .state-cell strong {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Shared requests and real role templates use the approved panel vocabulary. */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-block: 24px;
}
.role-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
}
.role-card.current {
  border-top: 3px solid var(--red);
}
.role-card h3 {
  font-size: 18px;
  margin-block: 12px 8px;
}
.role-card p {
  font-size: 14px;
  line-height: 1.9;
}
.role-card .tag {
  margin-top: 14px;
}
.role-icon {
  color: var(--red);
}
.request-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-block: 22px;
}
.request-process > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: 7px;
  padding: 24px;
}
.request-process svg {
  color: var(--red);
  display: block;
  margin-bottom: 13px;
}
.request-process strong {
  font-size: 17px;
  display: block;
}
.request-process p {
  font-size: 14px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .request-process,
  .role-grid {
    grid-template-columns: 1fr;
  }
}

/* Guided tours: visible yellow spotlight; presentation never invokes a mutation. */
#guided-tour[hidden],
#guided-tour-layer[hidden] {
  display: none !important;
}
#guided-tour-layer {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}
.tour-blocker {
  position: fixed;
  inset: 0;
  pointer-events: auto;
}
#guided-tour-spotlight {
  position: fixed;
  border: 4px solid #ffd43b;
  border-radius: 8px;
  box-shadow:
    0 0 0 9999px #0009,
    0 0 0 6px #ffd43b44;
  pointer-events: none;
  z-index: 1;
}
#guided-tour-panel {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  pointer-events: auto;
  width: min(420px, calc(100vw - 24px));
  max-height: 46vh;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid #d6a800;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 12px 45px #0006;
  overscroll-behavior: contain;
}
.tour-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
#guided-tour-panel h2 {
  font-size: 22px;
  line-height: 1.35;
  margin-block: 10px;
}
#guided-tour-panel p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
#guided-tour-panel progress {
  display: block;
  width: 100%;
  height: 5px;
  accent-color: #c99c00;
  margin-block: 12px;
}
#guided-tour-panel .tour-note {
  font-size: 13px;
  color: var(--muted);
  margin-block: 10px;
}
#guided-tour-panel button {
  min-height: 40px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
}
#guided-tour-panel button:focus-visible {
  outline: 3px solid #d6a800;
  outline-offset: 3px;
}
#guided-tour-panel [data-tour="next"] {
  background: #ffd43b;
  color: #25272b;
  border-color: #d6a800;
  font-weight: 700;
}
#guided-tour-panel [data-tour="close"] {
  font-size: 22px;
  min-width: 40px;
  line-height: 1;
}
.tour-controls,
.tour-tools {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 13px;
}
.tour-tools small {
  font-size: 12px;
  color: var(--muted);
}
html[data-theme="dark"] #guided-tour-panel {
  border-color: #ffd43b;
}
@media (max-width: 600px) {
  #guided-tour-panel {
    padding: 14px;
  }
  #guided-tour-panel h2 {
    font-size: 20px;
  }
  #guided-tour-panel p {
    font-size: 14px;
  }
  .tour-tools {
    gap: 6px;
  }
  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .topbar #guided-tour {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #guided-tour-layer * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile tour entry keeps 14px controls in coherent rows, never over the navigation. */
:root {
  --portal-header-height: 88px;
  --portal-nav-height: 66px;
}
@media (max-width: 760px) {
  :root {
    --portal-header-height: 120px;
    --portal-nav-height: 62px;
  }
  .topbar {
    height: var(--portal-header-height);
    min-height: var(--portal-header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 48px 44px;
    gap: 6px;
    padding: 8px 16px;
    align-content: center;
  }
  .topbar .identity {
    justify-self: start;
  }
  .topbar .identity img {
    width: 146px;
    height: 48px;
  }
  .top-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
  }
  .top-actions > button,
  .topbar #guided-tour,
  #account > button {
    font-size: 14px;
    min-height: 40px;
    padding: 6px 8px;
    white-space: nowrap;
  }
  #account {
    gap: 0;
  }
  .account-identity {
    display: none;
  }
  .sidebar,
  html[dir="ltr"] .sidebar {
    top: var(--portal-header-height);
    height: var(--portal-nav-height);
  }
  #workspace.authenticated {
    padding-top: calc(var(--portal-header-height) + var(--portal-nav-height));
  }
  #workspace:not(.authenticated) {
    padding-top: var(--portal-header-height);
  }
}
@media (max-width: 370px) {
  :root {
    --portal-header-height: 168px;
  }
  .topbar {
    grid-template-rows: 44px 88px;
    padding: 10px 12px;
    gap: 8px;
  }
  .topbar .identity img {
    width: 132px;
    height: 44px;
  }
  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .top-actions > button,
  .topbar #guided-tour,
  #account > button {
    width: 100%;
  }
  #account {
    display: flex;
    width: 100%;
  }
}

.guided-tour-open {
  scroll-behavior: auto !important;
}
.tour-scroll-space {
  height: 50vh;
  min-height: 260px;
  pointer-events: none;
}
.tour-scroll-space[hidden] {
  display: none !important;
}

/* Software/license evidence uses source-specific states rather than hardware calibration. */
.software-workspace {
  padding: 24px;
}
.software-workspace .toolbar {
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 20px;
}
.software-workspace .search {
  flex: 1;
  min-width: 240px;
}
.software-workspace .search input {
  width: 100%;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.software-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-block: 4px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.software-metrics > div {
  border-inline-end: 1px solid var(--line);
  padding-inline: 12px;
}
.software-metrics > div:last-child {
  border: 0;
}
.software-metrics strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
}
.software-metrics span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.software-state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 20px 10px;
}
.software-state-grid > div {
  padding: 0 16px;
  border-inline-end: 1px solid var(--line);
}
.software-state-grid > div:last-child {
  border: 0;
}
.software-state-grid span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
.software-state-grid strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}
.software-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 135px;
  color: #743242;
  position: relative;
  z-index: 2;
}
.software-symbol svg {
  width: 58px;
  height: 58px;
}
.software-symbol span {
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  padding: 5px 10px;
  border-radius: 4px;
}
.device-image .software-symbol {
  min-height: 215px;
}
.restricted-evidence {
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 18px;
  margin-top: 24px;
}
.restricted-evidence article {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.restricted-evidence a {
  color: var(--red);
  text-decoration: underline;
  font-size: 15px;
}
@media (max-width: 900px) {
  .software-metrics,
  .software-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }
  .software-state-grid > div:nth-child(2),
  .software-metrics > div:nth-child(2) {
    border: 0;
  }
}
@media (max-width: 600px) {
  .software-workspace {
    padding: 16px;
  }
  .software-workspace .search {
    min-width: 100%;
  }
  .software-state-grid {
    padding-block: 18px;
  }
  .software-state-grid > div {
    padding-inline: 12px;
  }
  .software-metrics strong {
    font-size: 27px;
  }
  .software-workspace .toolbar button {
    font-size: 14px;
  }
}

/* Physical edge cues work identically for LTR and RTL scroll positions. */
.nav-overflow {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin-inline: auto;
  min-width: 0;
}
.nav-overflow.has-overflow {
  padding-inline: 44px;
}
.sidebar .nav-overflow .nav {
  width: 100%;
  max-width: none;
  min-width: 0;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 12px;
}
.sidebar .nav-scroll {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 40px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.nav-scroll-left {
  left: 0;
}
.nav-scroll-right {
  right: 0;
}
.nav-scroll[hidden] {
  display: none !important;
}
.sidebar .nav-scroll:disabled {
  opacity: 0.28;
}
.sidebar .nav-scroll:not(:disabled):hover {
  color: var(--red);
  background: var(--tint);
}
.sidebar .nav-scroll:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -3px;
}
.nav-scroll svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.nav-overflow::before,
.nav-overflow::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 22px;
  pointer-events: none;
  opacity: 0;
}
.nav-overflow::before {
  left: 44px;
  background: linear-gradient(to right, var(--paper), transparent);
}
.nav-overflow::after {
  right: 44px;
  background: linear-gradient(to left, var(--paper), transparent);
}
.nav-overflow[data-can-left="true"]::before,
.nav-overflow[data-can-right="true"]::after {
  opacity: 1;
}
.navigation-scroll-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .sidebar .nav {
    scroll-behavior: auto;
  }
}

/* Override the legacy narrow mobile drawer for the shared horizontal menu. */
.sidebar,
html[dir="ltr"] .sidebar {
  width: 100%;
  left: 0;
  right: 0;
}

@media (max-width: 600px) {
  .sidebar,
  html[dir="ltr"] .sidebar {
    padding-inline: 8px;
  }
}
/* Persistent Home cue and scoped assistant launcher, independent of horizontal navigation. */
.topbar .identity .identity-caption {
  display: none !important;
}
.topbar .identity .brand-home-cue {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  border-inline-start: 1px solid #ffffff55;
  padding-inline-start: 12px;
  margin-inline-start: 12px;
}
.topbar .identity {
  padding-inline-end: 16px;
}
.assistant-launcher {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #ffffff70;
  border-radius: 28px;
  padding: 12px 18px;
  background: #bc2339;
  color: #fff;
  box-shadow: 0 8px 30px #0003;
  font-size: 14px;
}
.assistant-launcher svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.assistant-launcher[data-layout-editing="true"] {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}
.guided-tour-open .assistant-launcher,
body:has(#dialog-root .dialog) .assistant-launcher {
  visibility: hidden;
  pointer-events: none;
}
#workspace footer {
  padding-bottom: 90px;
}
.software-host-card h3 {
  font-size: 16px;
  margin: 20px 0 10px;
}
.software-card-evidence {
  list-style: none;
  padding: 0;
  margin: 0;
}
.software-card-evidence button {
  width: 100%;
  text-align: start;
  margin-bottom: 10px;
  padding: 10px;
  white-space: normal;
}
.software-card-evidence small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.public-assistant-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 760px) {
  .topbar .identity .brand-home-cue {
    font-size: 14px;
    padding-inline-start: 10px;
    margin-inline-start: 10px;
  }
}
.assistant-ai,
.assistant-local {
  margin-block: 0 1.4rem;
}
.assistant-ai {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.assistant-ai > button {
  margin-block: 0.45rem;
  margin-inline-end: 0.5rem;
}
.assistant-ai [role="status"] {
  border-inline-start: 3px solid var(--red);
  padding-inline-start: 0.75rem;
}
.assistant-answer {
  margin-block-start: 1rem;
  border-block-start: 1px solid var(--line);
  padding-block-start: 0.75rem;
}
.assistant-answer-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.assistant-workspace-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
}
.unit-scan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.unit-reader video {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #161719;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-block-end: 1rem;
}
.unit-reader form,
.unit-reader > .field {
  margin-block: 1.2rem;
}
.unit-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem 1rem;
}
.unit-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.unit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}
.unit-label-sheet {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  max-width: 360px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  color: #161719;
  background: #fff;
  text-align: center;
}
.unit-label-sheet svg {
  width: 220px;
  max-width: 100%;
  height: auto;
}
.unit-label-sheet small {
  color: #454950;
}
.unit-tag-link {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .unit-scan-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .unit-reader video {
    aspect-ratio: 16/10;
  }
}
@media print {
  body.printing-unit-labels * {
    visibility: hidden !important;
  }
  body.printing-unit-labels .unit-label-sheet,
  body.printing-unit-labels .unit-label-sheet * {
    visibility: visible !important;
  }
  body.printing-unit-labels .unit-label-sheet {
    position: absolute;
    inset: 0 auto auto 0;
    width: 70mm;
    max-width: none;
    break-inside: avoid;
  }
}
