:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  color: #f4f0e7;
  background: #070706;
  --gold: #d8b86f;
  --muted: #b7b0a3;
  --line: #393327;
  --panel: #12120f;
  --danger: #ffb8a8;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: #1a1914;
  border: 1px solid #655535;
  border-radius: 6px;
  min-height: 36px;
  padding: 7px 12px;
}
button:hover {
  background: #29251b;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button.primary {
  color: #17130a;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 650;
}
button.primary:hover {
  background: #e5ca91;
}
.link {
  background: none;
  border: 0;
  color: var(--gold);
  text-align: left;
  padding: 3px;
  min-height: 32px;
}
.link:hover {
  text-decoration: underline;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
select,
textarea {
  color: inherit;
  background: #0c0c0a;
  border: 1px solid #5c5341;
  border-radius: 5px;
  padding: 8px 10px;
  max-width: 100%;
  min-width: 0;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  padding: 0;
  flex-shrink: 0;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #f0d99b;
  outline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  overflow-wrap: anywhere;
  margin: 0 0 16px;
  font-weight: 620;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 18px;
  margin-top: 24px;
}
p {
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.5;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  min-width: 0;
}
legend {
  padding: 0 8px;
}
label {
  font-size: 14px;
}
.app {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: #10100e;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 24px 14px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 650;
  margin: 0 10px 24px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.sidebar nav {
  display: grid;
  gap: 10px;
}
.nav-group summary {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7ad96;
  cursor: pointer;
  padding: 9px 10px;
}
.nav-group a {
  display: block;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 2px;
}
.nav-group a:hover {
  background: #211c13;
}
.nav-group a[aria-current="page"] {
  background: #2a2316;
  color: #f0d99b;
  border-left: 3px solid var(--gold);
  padding-left: 9px;
}
.sidebar footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.sidebar footer button {
  font-size: 12px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  background: #10100e;
  position: sticky;
  top: 0;
  z-index: 5;
  font-size: 12px;
}
.topbar button {
  font-size: 12px;
}
.context-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-trigger {
  margin-left: auto;
  width: 200px;
  text-align: left;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.connection {
  color: #b3d3b3;
  white-space: nowrap;
}
.connection.offline {
  color: var(--danger);
}
.mobile-menu {
  display: none;
}
main {
  padding: 28px 28px 36px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-width: 0;
  flex: 1;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 7px;
}
.page-head h1 {
  margin: 0;
}
.head-actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.scope-select {
  display: grid;
  gap: 4px;
  max-width: 350px;
}
.workspace-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
  padding-bottom: 10px;
}
.tabs button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  min-height: 38px;
}
.tabs button[aria-current="page"] {
  border-color: #655535;
  background: #211c13;
  color: var(--gold);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin-bottom: 20px;
  overflow: hidden;
}
.pad {
  padding: 20px;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}
.toolbar form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.toolbar form input {
  flex: 1 1 160px;
}
.toolbar label {
  display: grid;
  gap: 5px;
}
.toolbar > input {
  flex: 1;
}
.toolbar > button.primary {
  margin-left: auto;
}
.table-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 16px 14px;
  font-size: 12px;
}
.table-options label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.table-options details {
  position: relative;
}
.table-options details[open] {
  background: #211c13;
  padding: 10px;
  border: 1px solid var(--line);
  z-index: 1;
}
.table-options details[open] label {
  margin-top: 8px;
}
.table-options button {
  font-size: 12px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: #181712;
  white-space: nowrap;
}
td,
th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  max-width: 380px;
  overflow-wrap: anywhere;
}
td:first-child:has(input) {
  width: 40px;
}
td .link {
  font-size: 14px;
  font-weight: 550;
}
.dense td {
  padding-top: 6px;
  padding-bottom: 6px;
}
tr:last-child td {
  border-bottom: 0;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.pagination span {
  text-align: center;
  color: var(--muted);
}
.empty {
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.snapshot {
  font-size: 12px;
  color: var(--muted);
  padding: 0 16px 10px;
}
.health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.status-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #93928c;
  flex-shrink: 0;
}
.healthy .status-circle {
  background: #8bc69c;
}
.warning .status-circle {
  background: #f0c35c;
}
.error .status-circle {
  background: #ee8e80;
}
.tag {
  display: inline-block;
  font-size: 12px;
  border: 1px solid #59513f;
  border-radius: 5px;
  padding: 4px 7px;
  background: #211e17;
}
.tag.ready {
  border-color: #63876a;
  color: #b8e1c5;
}
.notice,
.error-box,
.success {
  border: 1px solid #6d5d3c;
  border-radius: 6px;
  padding: 12px 16px;
  line-height: 1.55;
  font-size: 14px;
  background: #211c13;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.error-box {
  border-color: #a46854;
  background: #2a1c16;
  color: #ffd1c3;
}
.error-box strong,
.error-box small {
  display: block;
}
.error-box button {
  margin-top: 10px;
}
.success {
  border-color: #496b50;
  background: #19271d;
  color: #b8e1c5;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px 24px;
  margin: 0;
}
.fields > div {
  min-width: 0;
}
.fields dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.fields dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.fields .fields {
  display: block;
}
.fields .fields > div {
  margin: 8px 0;
}
.pre-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.value-list {
  display: grid;
  gap: 12px;
}
.value-list > div {
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.object-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.object-head h2 {
  margin-bottom: 10px;
}
.actions {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #171611;
  min-width: 120px;
}
.actions summary {
  padding: 10px;
  cursor: pointer;
}
.actions button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0;
}
.actions-row,
.section-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}
.metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #14130f;
  display: grid;
  gap: 12px;
}
.metrics span,
.metrics small {
  color: var(--muted);
  font-size: 12px;
}
.metrics strong {
  font-size: 28px;
}
.records {
  display: grid;
  gap: 12px;
}
.records article {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.records article > div {
  min-width: 140px;
  max-width: 100%;
  font-size: 14px;
}
.records small {
  display: block;
  margin-bottom: 6px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
dialog {
  color: #f4f0e7;
  background: #12120f;
  border: 1px solid #675738;
  border-radius: 10px;
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  box-shadow: 0 20px 100px #000b;
  overflow: auto;
}
dialog.wide {
  width: min(980px, calc(100vw - 32px));
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(2px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head button {
  border: 0;
  background: transparent;
  font-size: 25px;
}
.field {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}
.field > span {
  font-size: 14px;
}
.field textarea,
.field input,
.field select {
  width: 100%;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
  margin: 12px 0;
}
.form-fields {
  border: 0;
  padding: 0;
  margin: 0;
}
.form-fields,
.form-fields fieldset {
  display: grid;
  gap: var(--space-4);
}
.form-fields > *,
.form-fields fieldset > * {
  margin-block: 0;
}
.form-fields fieldset > button {
  justify-self: start;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-4);
}
.lexware-results {
  max-height: 48dvh;
}
.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.login-card {
  padding: 30px;
  width: min(430px, 100%);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
}
.login-card h1 {
  margin-top: 18px;
}
.login-card form > .primary {
  width: 100%;
}
.login-card > .link {
  margin-top: 18px;
}
.login-card > .muted {
  font-size: 12px;
  margin-top: 24px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: #17130a;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.search-results {
  display: grid;
  gap: 8px;
}
.search-results > button {
  text-align: left;
  display: grid;
  gap: 6px;
}
.search-results span {
  font-size: 12px;
  color: var(--muted);
}
time {
  font-size: 12px;
}
kbd {
  font: inherit;
}
.value-list .records article {
  padding: 8px;
}
/* Structure owns spacing: sections, data freshness, dialogs and action groups. */
.page-content {
  display: grid;
  align-content: start;
  gap: var(--space-6);
  min-width: 0;
}
.page-content > *,
.dialog-content > * {
  min-width: 0;
  margin-block: 0;
}
.page-content > button,
.dialog-content > button {
  justify-self: start;
  max-width: 100%;
}
.section-stack {
  display: grid;
  gap: var(--space-8);
  min-width: 0;
}
.content-section {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-width: 0;
}
.content-section > * {
  min-width: 0;
  margin-block: 0;
}
.content-section > button {
  justify-self: start;
}
.data-panel,
.data-content {
  display: flow-root;
  min-width: 0;
}
.data-content > :is(h2, h3):not(:first-child) {
  margin-block-start: var(--space-8);
}
.data-content > :last-child,
.panel.pad > :last-child {
  margin-block-end: 0;
}
.panel.pad > :is(h2, h3):first-child {
  margin-block-start: 0;
}
.panel.pad > :is(button, .fields) + .fields,
.panel.pad > .fields + button {
  margin-block-start: var(--space-3);
}
.view-age {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
  margin: var(--space-3) 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.dialog-content {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}
.dialog-content > .form-actions {
  padding-block-start: var(--space-2);
}
.notice:has(> button) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.object-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.form-actions button {
  max-width: 100%;
}

@media (max-width: 1050px) {
  .topbar {
    padding: 8px 16px;
    gap: 8px;
  }
  .context-label {
    max-width: 200px;
  }
  .search-trigger {
    width: 130px;
  }
  .head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  button,
  input,
  select {
    min-height: 44px;
  }
  .app {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    height: calc(100dvh - 56px);
    width: min(300px, 90vw);
    z-index: 20;
    box-shadow: 20px 0 70px #000b;
  }
  .sidebar.open {
    display: flex;
  }
  .sidebar footer {
    padding-top: 20px;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    padding: 6px 12px;
    flex-wrap: wrap;
    min-height: 56px;
  }
  .context-label {
    display: none;
  }
  .search-trigger {
    margin-left: 0;
    flex: 1;
    width: auto;
  }
  .topbar > button {
    padding: 6px 8px;
  }
  .connection {
    font-size: 12px;
  }
  .topbar > button:last-child {
    display: none;
  }
  main {
    padding: 22px 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .head-actions {
    width: 100%;
    justify-content: space-between;
  }
  .scope-select {
    max-width: calc(100% - 110px);
  }
  h1 {
    font-size: 26px;
  }
  .workspace-footer {
    padding: 16px;
    flex-wrap: wrap;
    line-height: 1.5;
  }
  .toolbar {
    padding: 12px;
  }
  .toolbar form {
    width: 100%;
  }
  .toolbar form input {
    width: 100%;
  }
  .toolbar > label {
    flex: 1;
    min-width: 125px;
  }
  .table-options {
    gap: 10px;
    padding: 0 12px 12px;
  }
  .table-options label {
    flex-wrap: wrap;
  }
  .table-options > button {
    width: 100%;
  }
  .object-head {
    flex-wrap: wrap;
  }
  .tabs {
    gap: 2px;
  }
  .tabs button {
    font-size: 14px;
    padding: 8px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 14px;
  }
  td,
  th {
    padding: 12px;
  }
  .pagination {
    padding: 12px 8px;
    gap: 5px;
  }
  .pagination button {
    padding: 8px;
    font-size: 14px;
  }
  .pagination span {
    font-size: 12px;
  }
  dialog,
  dialog.wide {
    padding: 18px;
    max-height: calc(100dvh - 20px);
    width: calc(100vw - 20px);
  }
  .dialog-head h2 {
    font-size: 20px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions button {
    flex: 1;
  }
  .login-card {
    padding: 24px;
    border-radius: 0;
  }
  .lexware-results {
    max-height: 45dvh;
  }
  .row {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.records article > .fields {
  width: 100%;
  max-width: none;
}
.records article:has(> .fields) {
  display: block;
}
.records .fields > .fields {
  display: grid;
}

.history-chart {
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
  margin: 16px 0;
}

.image-quota {
  width: min(100%, 24rem);
  height: 1rem;
  accent-color: var(--gold);
}

/* System operations: observation-first cockpit; styles stay scoped to this view. */
.operations-cockpit {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.operations-cockpit h3,
.ops-details h3 {
  margin: 0;
}
.ops-hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  border: 1px solid #5c5033;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at top left, #282419 0, transparent 65%), #131310;
}
.ops-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 220px;
  min-width: 0;
}
.ops-identity > div {
  min-width: 0;
}
.ops-host-icon {
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border: 1px solid #615334;
  border-radius: 12px;
  background: #282317;
}
.ops-host-icon svg {
  width: 27px;
  height: 27px;
}
.ops-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 650;
  color: var(--gold);
  margin-bottom: 7px;
}
.ops-identity h3 {
  font-size: 24px;
  margin-bottom: 5px;
}
.ops-os {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ops-hero-status {
  display: grid;
  gap: 9px;
}
.ops-freshness {
  font-size: 12px;
  color: #b4ddbd;
}
.ops-freshness.is-stale {
  color: var(--gold);
}
.ops-contact {
  display: grid;
  gap: 7px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ops-contact > span {
  color: var(--muted);
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ops-metric {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(155deg, #1a1913, #11110f);
}
.ops-metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.ops-metric-label svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
}
.ops-metric-value {
  display: block;
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.2;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  margin: 20px 0 14px;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.ops-metric meter {
  width: 100%;
  height: 6px;
  margin: 0 0 12px;
  appearance: none;
  border: 0;
  background: #333025;
  border-radius: 20px;
  overflow: hidden;
}
.ops-metric meter::-webkit-meter-bar {
  background: #333025;
  border: 0;
  border-radius: 20px;
}
.ops-metric meter::-webkit-meter-optimum-value {
  background: var(--gold);
  border-radius: 20px;
}
.ops-metric meter::-moz-meter-bar {
  background: var(--gold);
  border-radius: 20px;
}
.ops-stale .ops-metric-value,
.ops-stale .ops-service-health {
  opacity: 0.65;
}
.ops-metric-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.ops-sample {
  display: grid;
  gap: 4px;
  font-size: 10px;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 12px;
}
.ops-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
}
.ops-surface {
  min-width: 0;
  border: 1px solid var(--line);
  background: #12120f;
  border-radius: 12px;
  padding: 22px;
}
.ops-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding-bottom: 18px;
}
.ops-section-head h3 {
  font-size: 16px;
}
.ops-count {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.ops-service-list,
.ops-observations {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ops-service-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  border-top: 1px solid #302c23;
  padding: 17px 0;
}
.ops-service-list > li:last-child {
  padding-bottom: 0;
}
.ops-service-name {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.ops-service-name strong {
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.ops-service-name small {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.ops-service-health {
  font-size: 12px;
}
.ops-service-detail {
  grid-column: 1 / -1;
  min-width: 0;
}
.ops-service-detail summary {
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  width: fit-content;
  padding: 3px 0;
}
.ops-service-detail[open] summary {
  color: var(--gold);
  margin-bottom: 12px;
}
.ops-pairs {
  display: grid;
  gap: 16px;
  margin: 0;
  min-width: 0;
}
.ops-pairs > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.ops-pairs dt {
  font-size: 11px;
  color: var(--muted);
}
.ops-pairs dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ops-service-detail .ops-pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 2px solid #5f5032;
  padding: 4px 0 4px 14px;
}
.ops-details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10100e;
}
.ops-details > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-size: 13px;
  list-style: none;
  font-weight: 550;
}
.ops-details > summary::-webkit-details-marker {
  display: none;
}
.ops-details > summary > span {
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}
.ops-details[open] > summary > span {
  transform: rotate(45deg);
}
.ops-details[open] > summary {
  border-bottom: 1px solid var(--line);
}
.ops-details-content {
  padding: 20px;
  min-width: 0;
}
.ops-diagnostics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ops-sensor-list {
  display: grid;
  gap: 16px;
}
.ops-sensor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  min-width: 0;
  font-size: 12px;
}
.ops-sensor:last-child {
  border: 0;
  padding: 0;
}
.ops-sensor > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ops-sensor strong,
.ops-sensor small {
  overflow-wrap: anywhere;
}
.ops-sensor > span {
  color: var(--muted);
}
.ops-sensor > small {
  text-align: right;
}
.ops-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 0;
  margin: 0;
}
.ops-observations > li {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  overflow-wrap: anywhere;
}
.ops-observations > li + li {
  border-top: 1px solid var(--line);
}
.ops-observations strong {
  font-size: 14px;
}
.ops-observations > li > span {
  font-size: 12px;
  color: var(--gold);
}
@media (max-width: 1180px) {
  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ops-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .operations-cockpit {
    gap: 16px;
  }
  .ops-hero {
    padding: 18px;
    gap: 18px;
  }
  .ops-identity {
    flex-basis: calc(100% - 10px);
  }
  .ops-contact {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
    width: 100%;
  }
  .ops-hero-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .ops-metric {
    padding: 14px;
  }
  .ops-metric-label {
    font-size: 11px;
    align-items: flex-start;
  }
  .ops-metric-label svg {
    width: 17px;
    height: 17px;
  }
  .ops-metric-value {
    font-size: 23px;
    margin: 17px 0 12px;
  }
  .ops-metric-note {
    font-size: 11px;
  }
  .ops-surface {
    padding: 18px;
  }
  .ops-service-list > li {
    gap: 12px;
  }
  .ops-service-name strong {
    font-size: 13px;
  }
  .ops-diagnostics {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-details > summary {
    padding: 16px;
  }
  .ops-details-content {
    padding: 16px;
  }
  .ops-sensor {
    grid-template-columns: minmax(0, 1fr);
  }
  .ops-sensor > small {
    text-align: left;
  }
}
.ops-history {
  margin-top: 20px;
}
.ops-history > .panel {
  margin: 0;
  border: 0;
  background: transparent;
}
.ops-history > .panel > h3 {
  display: none;
}
.ops-field-source {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.ops-version-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ops-version-time {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 0;
}
@media (max-width: 600px) {
  .ops-version-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Per-system module management. Layout wraps names and actions at mobile widths. */
.client-modules {
  margin-block: 0 24px;
}
.client-modules > h3 {
  margin-top: 28px;
}
.module-client-heading,
.module-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.module-card {
  border: 1px solid var(--border, #514737);
  border-radius: 10px;
  padding: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.module-card h4 {
  margin: 0;
}
.module-card p {
  margin: 12px 0;
}
.module-meta {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.module-meta div {
  min-width: 0;
}
.module-meta dt {
  font-size: 0.85rem;
  opacity: 0.8;
}
.module-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.module-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.module-operation {
  font-weight: 600;
}

/* Business-facing detail fields; opaque identifiers are opt-in diagnostics. */
.technical-details {
  margin-top: 16px;
  color: var(--muted);
}
.technical-details > summary,
.view-options > summary {
  cursor: pointer;
  padding: 10px 0;
}
.technical-details[open] > .fields {
  margin-top: 14px;
}
.view-options {
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--line);
}
.view-options .table-options {
  padding: 12px 0;
}
.error-box > .technical-details {
  flex-basis: 100%;
}

.access-services {
  margin-top: 24px;
}
.access-services h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 10px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.actions-row > .action-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  max-width: 320px;
}
.actions-row > .action-option small {
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 650px) {
  .table-scroll table,
  .table-scroll tbody {
    display: block;
    width: 100%;
  }
  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-scroll tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 18px 12px;
    border-bottom: 1px solid var(--line);
  }
  .table-scroll tbody tr:last-child {
    border-bottom: 0;
  }
  .table-scroll td {
    display: block;
    padding: 0;
    max-width: none;
    border: 0;
    min-width: 0;
  }
  .table-scroll td:first-child {
    grid-column: 1 / -1;
  }
  .table-scroll td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .table-scroll td:first-child .link {
    font-size: 16px;
  }
}
/* Long destination paths must remain readable on narrow screens. */
.delivery-path { overflow-wrap: anywhere; }
