:root {
  --color-ink: #172f36;
  --color-muted: #536970;
  --color-brand: #006b60;
  --color-brand-hover: #004d45;
  --color-ground: #f2f5f4;
  --color-surface: #ffffff;
  --color-line: #d6e1de;
  --color-tint: #e5f1ec;
  --color-danger: #922f25;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-control: 6px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-ground);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 40px 24px;
}
main {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 16px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.025em;
  margin: 24px 0 16px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}
h3 {
  font-size: 19px;
  margin: 0 0 24px;
}
p {
  max-width: 70ch;
}
a {
  color: var(--color-brand);
  text-underline-offset: 4px;
}
a:hover {
  color: var(--color-brand-hover);
}
nav {
  text-align: right;
}
nav a + a {
  margin-left: 12px;
}
.status {
  margin-top: 32px;
  color: var(--color-brand);
  font-weight: 600;
}
form {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
input,
select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  margin: 8px 0 20px;
  border: 1px solid #8b9f99;
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  caret-color: var(--color-brand);
}
input::placeholder {
  color: var(--color-muted);
}
button {
  min-height: 46px;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-brand);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  background: var(--color-brand-hover);
}
button:disabled,
input:disabled,
select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid #216ab3;
  outline-offset: 3px;
}
::selection {
  background: #c5e7d8;
  color: var(--color-ink);
}
* {
  scrollbar-color: #809b91 var(--color-ground);
  scrollbar-width: thin;
}
.workspace {
  display: grid;
  align-content: start;
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 36px;
  max-width: 1440px;
  min-height: calc(100vh - 80px);
  padding: 32px;
  overflow-wrap: anywhere;
}
.workspace > :not(.section-nav):not(.workspace-header) {
  grid-column: 2;
  min-width: 0;
}
.workspace-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}
.workspace-header h1 {
  font-size: 24px;
  margin: 8px 0 0;
}
.workspace-header > div > a {
  font-weight: 700;
  text-decoration: none;
}
.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
}
.identity span {
  color: var(--color-muted);
}
.section-nav {
  grid-column: 1;
  grid-row: 2 / span 30;
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 4px;
  text-align: left;
  position: sticky;
  top: 24px;
}
.section-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  margin: 0;
  border-radius: var(--radius-control);
  text-decoration: none;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}
.section-nav a:hover {
  background: var(--color-ground);
  color: var(--color-brand);
}
.section-nav a[aria-current="page"] {
  background: var(--color-tint);
  color: var(--color-brand-hover);
}
.section-heading,
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section-heading h2 {
  margin: 0 0 20px;
}
.section-heading > a {
  margin-bottom: 20px;
  font-weight: 600;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.entity-table {
  min-width: 640px;
}
.quota-table {
  min-width: 440px;
}
.quota-table td {
  white-space: nowrap;
}
td,
th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line);
  overflow-wrap: anywhere;
}
thead {
  background: var(--color-ground);
  color: var(--color-muted);
}
th {
  font-weight: 600;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f8faf9;
}
.row-actions {
  min-width: 110px;
}
.row-actions a {
  display: inline-block;
  padding: 8px 0;
  margin-right: 12px;
}
.notice {
  background: var(--color-tint);
  padding: 20px;
  margin: 0 0 24px;
  border-radius: 8px;
}
.error {
  background: #fff0eb;
  color: var(--color-danger);
}
.editor,
.compact-form {
  max-width: 820px;
}
.editor {
  margin-top: 32px;
}
.quota-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
fieldset {
  border: 1px solid var(--color-line);
  padding: 20px;
  margin: 24px 0;
  min-width: 0;
  border-radius: 8px;
}
legend {
  padding: 0 8px;
  font-weight: 600;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 16px 0;
}
.check input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-brand);
}
.inline-form {
  border: 0;
  margin: 8px 0;
  padding: 0;
}
.field-help,
.empty-state {
  color: var(--color-muted);
  max-width: 65ch;
}
.empty-state {
  padding: 32px 0;
}
.pagination {
  margin-top: 16px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip-link:focus {
  top: 16px;
}
@media (max-width: 850px) {
  body {
    padding: 16px;
  }
  .workspace {
    display: block;
    padding: 24px;
    min-height: calc(100vh - 32px);
  }
  .workspace-header {
    align-items: flex-start;
  }
  .section-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-line);
  }
  .section-nav a {
    padding: 8px 12px;
  }
}
@media (max-width: 480px) {
  body {
    padding: 0;
  }
  main,
  .workspace {
    border: 0;
    border-radius: 0;
    padding: 24px 20px;
    min-height: 100vh;
  }
  .workspace-header {
    flex-direction: column;
    gap: 16px;
  }
  .identity {
    justify-content: flex-start;
  }
  .section-nav a {
    font-size: 13px;
  }
}

.table-hint {
  display: none;
}
@media (max-width: 850px) {
  .table-hint {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
    margin: 0 0 12px;
  }
}

/* SaaS workspace: shared operational shell and resource surfaces. */
.app-body {
  padding: 0;
  --color-brand: #0079b4;
  --color-brand-hover: #005b89;
  --color-tint: #e8f4fa;
  --color-ground: #f3f6f9;
  --color-ink: #183043;
  --color-muted: #536a7b;
  --color-line: #dce5ec;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.app-sidebar {
  background: #102b3e;
  color: #d7e6f0;
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.app-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 0 16px 32px;
  color: white;
  text-decoration: none;
  font-size: 13px;
}
.app-brand img {
  object-fit: contain;
}
.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.app-sidebar nav a,
.sidebar-account {
  color: #d7e6f0;
  margin: 0;
  padding: 12px 16px;
  min-height: 46px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}
.app-sidebar nav a:hover,
.sidebar-account:hover {
  background: #1d3d52;
  color: white;
}
.app-sidebar nav a[aria-current="page"] {
  background: #0079b4;
  color: white;
  font-weight: 600;
}
.nav-divider {
  border-top: 1px solid #315065;
  margin: 16px;
}
.sidebar-account {
  margin-top: auto;
}
.app-main {
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 100%;
  max-width: 1580px;
  margin: 0 auto;
  padding: 24px clamp(24px, 4vw, 56px) 56px;
  min-width: 0;
}
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}
.app-topbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: baseline;
}
.app-topbar span,
.app-topbar a {
  font-size: 13px;
  color: var(--color-muted);
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 32px 0;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
}
.page-title p {
  margin: 10px 0 0;
  color: var(--color-muted);
}
.page-title > div > a {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 6px;
  background: var(--color-brand);
  color: white;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button-link:hover {
  background: var(--color-brand-hover);
  color: white;
}
.button-link.secondary {
  color: var(--color-brand);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}
.lead-text {
  color: var(--color-muted);
  margin: 0 0 24px;
}
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 24px 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.summary-strip > div {
  min-width: 120px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}
.summary-strip dt {
  font-size: 14px;
  color: var(--color-muted);
}
.summary-strip dd {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}
.surface {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 28px;
  margin: 0 0 24px;
  min-width: 0;
}
.surface h2 {
  font-size: 20px;
  margin-top: 0;
}
.surface h3 {
  margin-top: 24px;
}
.surface form {
  max-width: 820px;
}
.surface.table-surface {
  padding: 0;
  overflow: hidden;
}
.surface.table-surface > .table-hint {
  margin: 16px;
}
.table-surface .table-scroll {
  border: 0;
  border-radius: 0;
}
.resource-list,
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.resource-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}
.resource-list li:last-child {
  border-bottom: 0;
}
.event-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}
.event-list strong,
.event-list span {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.event-list span {
  color: var(--color-muted);
  margin-top: 4px;
}
.onboarding-empty {
  padding: 24px 0;
}
.onboarding-empty h3 {
  margin: 0 0 12px;
}
.onboarding-empty p {
  color: var(--color-muted);
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 4px;
  background: #edf2f6;
  color: #425968;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.connected {
  background: #e1f3ea;
  color: #216141;
}
.badge.pending {
  background: #fff0d2;
  color: #805214;
}
.badge.revoked,
.badge.offline,
.badge.failed {
  background: #fce8e5;
  color: #922f25;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
.customer-form,
.settings-form {
  max-width: 1040px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
textarea {
  display: block;
  width: 100%;
  border: 1px solid #8b9f99;
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0 24px;
  font: inherit;
  color: inherit;
  background: white;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
.filter-bar > div {
  flex: 1;
  min-width: 180px;
}
.filter-bar input,
.filter-bar select {
  margin-bottom: 0;
}
.resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  text-align: left;
  padding: 0 0 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}
.resource-tabs a {
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  margin: 0;
  color: var(--color-muted);
}
.resource-tabs a[aria-current="page"] {
  background: var(--color-surface);
  color: var(--color-brand);
  font-weight: 600;
  border-radius: 6px;
}
.details-list {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px 24px;
}
.details-list dt {
  color: var(--color-muted);
}
.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
td small {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 4px;
}
.install-command {
  background: #102b3e;
  color: #e3f2fc;
  padding: 24px;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
}
.danger-button {
  background: #922f25;
}
.danger-button:hover {
  background: #70251e;
}
.login-brand {
  width: 138px;
  height: auto;
  display: block;
  margin: 24px 0;
}
@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 750px) {
  .app-shell {
    display: block;
  }
  .app-sidebar {
    padding: 20px;
  }
  .app-brand {
    flex-direction: row;
    align-items: center;
    padding: 0 0 16px;
  }
  .app-brand img {
    width: 78px;
    height: 28px;
  }
  .app-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .app-sidebar nav a {
    padding: 10px 12px;
  }
  .nav-divider {
    display: none;
  }
  .sidebar-account {
    display: block;
    margin: 8px 0 0;
  }
  .app-main {
    padding: 24px 20px;
  }
  .app-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .page-title {
    flex-wrap: wrap;
  }
  .surface {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .details-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .details-list dd {
    margin-bottom: 16px;
  }
  .summary-strip {
    gap: 24px;
  }
}

.mobile-nav {
  display: none;
}
[data-copy-feedback] {
  display: block;
  margin: 12px 0;
  color: var(--color-brand-hover);
}
textarea.install-command {
  color: #e3f2fc;
  background: #102b3e;
  border: 0;
  font-family: ui-monospace, monospace;
}
@media (max-width: 750px) {
  .app-sidebar nav.desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav summary {
    min-height: 46px;
    padding: 12px 8px;
    cursor: pointer;
    color: white;
  }
  .mobile-nav nav {
    margin-top: 12px;
  }
}

/* MVO workspace v3: light navigation, compact chrome and operational hierarchy. */
.app-body {
  --color-ink: #202c40;
  --color-muted: #59677b;
  --color-ground: #f3f6fa;
  --color-line: #e0e7ef;
  --color-tint: #eaf5fc;
  font-size: 14px;
  background: var(--color-ground);
}
.app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}
.app-sidebar {
  background: white;
  color: var(--color-ink);
  border-right: 1px solid var(--color-line);
  padding: 0 14px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.app-brand {
  color: var(--color-muted);
  height: 80px;
  padding: 16px 14px;
  gap: 6px;
  justify-content: center;
  font-size: 11px;
}
.app-brand img {
  width: 87px;
  height: 31px;
}
.app-brand span {
  line-height: 1;
}
.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-group-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  padding: 8px 14px;
}
.app-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  padding: 11px 13px;
  min-height: 43px;
  border-radius: 8px;
  font-size: 13px;
  margin: 0;
}
.app-sidebar nav a:hover {
  color: var(--color-ink);
  background: #f3f6fa;
}
.app-sidebar nav a[aria-current="page"] {
  color: #006b9f;
  background: #eaf5fc;
  font-weight: 650;
}
.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
}
.nav-account {
  border-top: 1px solid var(--color-line);
  padding-top: 12px;
  margin-top: 8px;
}
.app-main {
  max-width: none;
  padding: 0 clamp(24px, 3.3vw, 48px) 48px;
  margin: 0;
}
.app-topbar {
  min-height: 80px;
  background: white;
  margin: 0 calc(-1 * clamp(24px, 3.3vw, 48px)) 0;
  padding: 12px clamp(24px, 3.3vw, 48px);
  gap: 24px;
  border-bottom: 1px solid var(--color-line);
}
.app-topbar > .company-context {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}
.company-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--color-tint);
  color: #006b9f;
}
.company-context > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.company-context strong {
  font-size: 14px;
  line-height: 1.3;
}
.company-context span {
  font-size: 11px;
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(390px, 40%);
  margin: 0 auto;
  padding: 0 12px;
  background: #f5f7fa;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-muted);
}
.topbar-search input {
  padding: 10px 0;
  border: 0;
  margin: 0;
  min-height: 40px;
  background: transparent;
  font-size: 13px;
  min-width: 0;
}
.topbar-search button {
  background: transparent;
  color: var(--color-muted);
  padding: 0;
  min-height: 36px;
  min-width: 30px;
}
.topbar-search button:hover {
  color: var(--color-brand);
}
.profile-control {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.profile-control > .ui-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  color: var(--color-brand);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.page-title {
  margin: 34px 0 12px;
  align-items: center;
}
.page-title h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.page-title p {
  font-size: 13px;
  margin-top: 8px;
}
.lead-text {
  margin: 0 0 26px;
  font-size: 14px;
}
.app-body button,
.app-body .button-link {
  min-height: 40px;
  padding: 10px 17px;
  font-size: 13px;
  border-radius: 7px;
}
.app-body .topbar-search button {
  padding: 0;
  min-height: 36px;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 16px;
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}
.summary-strip > div {
  background: white;
  padding: 20px;
  border-radius: 12px;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--color-line);
}
.summary-strip dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.summary-strip dt .ui-icon {
  color: var(--color-brand);
  width: 18px;
  height: 18px;
}
.summary-strip dd {
  font-size: 27px;
  font-weight: 650;
  color: var(--color-ink);
  line-height: 1;
}
.quick-section {
  margin: 28px 0;
}
.quick-section h2 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 14px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  background: white;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-ink);
}
.quick-action:hover {
  border-color: #9ccde5;
  background: #fafdff;
}
.action-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: var(--color-tint);
  border-radius: 10px;
  color: #006b9f;
}
.quick-action > span:nth-child(2) {
  flex: 1;
}
.quick-action strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.quick-action small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}
.quick-action > .ui-icon {
  color: var(--color-muted);
  width: 16px;
  height: 16px;
}
.dashboard-grid {
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.surface {
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 12px;
}
.surface h2 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 18px;
}
.surface h3 {
  font-size: 16px;
  font-weight: 650;
}
.section-heading {
  align-items: center;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading a {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.resource-list li {
  padding: 17px 0;
}
.resource-list a {
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
}
.resource-list a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}
.event-list li {
  position: relative;
  padding: 15px 0 15px 23px;
}
.event-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #0079b4;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 21px;
}
.event-list strong {
  font-size: 13px;
  font-weight: 600;
}
.event-list span {
  font-size: 11px;
}
.onboarding-empty {
  padding: 35px 12px;
  text-align: center;
}
.onboarding-empty p {
  max-width: 46ch;
  margin: 0 auto 20px;
  font-size: 13px;
}
.badge {
  border-radius: 5px;
  font-size: 11px;
  gap: 6px;
  padding: 4px 8px;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.filter-bar {
  background: white;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 18px 20px;
  gap: 16px;
  margin: 25px 0 16px;
  max-width: none;
}
.filter-bar > div:first-of-type {
  flex: 2;
}
.filter-bar label {
  font-size: 12px;
}
.app-body input,
.app-body select,
.app-body textarea {
  border-color: #bac7d6;
  font-size: 14px;
  min-height: 42px;
}
.app-body .topbar-search input {
  border: 0;
}
.app-body table {
  font-size: 13px;
}
.app-body th {
  background: #f8fafc;
  color: #59677b;
  font-size: 11px;
  font-weight: 600;
  padding: 16px 20px;
}
.app-body td {
  padding: 19px 20px;
  border-color: var(--color-line);
}
.app-body tbody tr:hover {
  background: #f8fbfe;
}
.app-body td a {
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
}
.app-body td a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}
.table-hint {
  font-size: 11px;
  color: var(--color-muted);
}
.resource-tabs {
  border-bottom: 1px solid var(--color-line);
  padding: 0;
  margin: 26px 0 20px;
  gap: 12px;
}
.resource-tabs a {
  padding: 12px 10px;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.resource-tabs a[aria-current="page"] {
  background: transparent;
  border-radius: 0;
  border-color: var(--color-brand);
}
.customer-form,
.settings-form {
  margin-top: 24px;
}
.app-body .notice {
  margin-top: 20px;
}
.app-body :focus-visible {
  outline: 3px solid #0079b4;
  outline-offset: 3px;
}
.app-body ::selection {
  background: #cce9fa;
  color: #183043;
}
.app-body {
  scrollbar-color: #b7c7d5 #f3f6fa;
}
.app-body .pagination {
  font-size: 13px;
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .company-context span {
    max-width: 150px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 750px) {
  .app-shell {
    display: block;
  }
  .app-sidebar {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }
  .app-brand {
    height: 65px;
    padding: 10px 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
  }
  .app-brand span {
    font-size: 12px;
  }
  .mobile-nav summary {
    color: var(--color-ink);
    padding: 12px 0;
    font-size: 13px;
    min-height: 44px;
  }
  .mobile-nav nav {
    padding-bottom: 18px;
    flex-direction: column;
    gap: 12px;
  }
  .nav-group-title {
    padding: 6px 12px;
  }
  .app-main {
    padding: 0 20px 30px;
  }
  .app-topbar {
    padding: 14px 20px;
    margin: 0 -20px;
    min-height: 72px;
    gap: 12px;
  }
  .company-context {
    flex: 1;
  }
  .profile-control span {
    display: none;
  }
  .topbar-search {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .page-title {
    margin-top: 26px;
    gap: 16px;
  }
  .page-title h1 {
    font-size: 25px;
  }
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .summary-strip > div {
    padding: 16px;
  }
  .summary-strip dt {
    gap: 7px;
    font-size: 12px;
  }
  .quick-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .quick-action {
    padding: 16px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .surface {
    padding: 20px;
  }
  .filter-bar {
    padding: 16px;
  }
  .filter-bar > div {
    min-width: 100%;
  }
  .filter-bar button {
    width: 100%;
  }
  .resource-tabs {
    gap: 0;
  }
  .resource-tabs a {
    padding: 12px 9px;
  }
}
.server-identity,
.customer-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.server-identity small {
  display: block;
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 4px;
}
.customer-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--color-tint);
  color: #006b9f;
  font-size: 14px;
  font-weight: 600;
  flex: 0 0 36px;
}
.app-body td .table-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  border: 1px solid var(--color-line);
  padding: 7px 11px;
  border-radius: 6px;
  white-space: nowrap;
  background: white;
}
.table-action .ui-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.badge.active {
  background: #e1f3ea;
  color: #216141;
}
.dashboard-grid > .surface {
  align-self: start;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.login-panel {
  border: 0;
  border-radius: 0;
  background: white;
  max-width: none;
  width: 100%;
  padding: max(40px, 8vh) clamp(32px, 7vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-panel nav {
  font-size: 12px;
  margin-bottom: 36px;
}
.login-panel .login-brand {
  margin: 0 0 32px;
  width: 108px;
}
.login-panel h1 {
  font-size: 30px;
  margin: 0 0 12px;
}
.login-intro {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0;
}
.login-panel form {
  border: 0;
  padding: 0;
  margin-top: 32px;
}
.login-panel button {
  width: 100%;
  margin-top: 4px;
  min-height: 44px;
}
.login-platform {
  margin-top: 36px;
  color: var(--color-muted);
  font-size: 12px;
}
.login-context {
  background: #eaf5fc;
  display: flex;
  align-items: center;
  padding: clamp(36px, 6vw, 96px);
  border-left: 1px solid #d3e9f6;
}
.login-context h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  color: #153b56;
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 14ch;
}
.login-context p {
  font-size: 15px;
  color: #33576d;
  max-width: 45ch;
}
.login-context ul {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}
.login-context li {
  padding: 15px 0;
  border-bottom: 1px solid #badbea;
  color: #153b56;
  font-size: 14px;
}
.account-page {
  padding: 60px 24px;
}
@media (max-width: 750px) {
  .login-page {
    display: block;
  }
  .login-panel {
    min-height: 100vh;
    padding: 32px 28px;
  }
  .login-context {
    display: none;
  }
  .server-identity {
    min-width: 0;
  }
  .resource-list li {
    align-items: flex-start;
  }
}
/* Contain accessible table labels within the horizontal scroll region. */
.table-scroll {
  position: relative;
}
/* Customer columns preserve semantic groups; phones scroll rather than crush copy. */
.customer-table {
  min-width: 900px;
}
.customer-table th {
  white-space: nowrap;
}
.customer-table th:first-child {
  width: 28%;
  min-width: 230px;
}
.customer-table th:nth-child(2) {
  width: 30%;
  min-width: 250px;
}
.customer-table td {
  overflow-wrap: normal;
}
.customer-table td:nth-child(n + 3) {
  white-space: nowrap;
}
.customer-identity a {
  min-width: 150px;
}
.node-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.node-metrics dt {
  color: var(--color-muted);
  font-size: 12px;
}
.node-metrics dd {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.node-metrics small {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
  margin-top: 5px;
}
.node-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.node-role-options {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.node-role-options legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}
.app-body .member-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}
.volume-table th,
.volume-table td {
  white-space: nowrap;
}
@media (max-width: 750px) {
  .node-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .node-role-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Server operations: current measurements, explicit function and configuration views. */
.server-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: -10px 0 24px;
  color: #59677b;
  font-size: 13px;
}
.server-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #dce3ed;
  margin-bottom: 24px;
}
.server-tabs a {
  padding: 14px 4px;
  text-decoration: none;
  color: #59677b;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.server-tabs a[aria-current] {
  color: #0079b4;
  border-color: #0079b4;
}
.system-strip {
  display: flex;
  align-items: center;
  gap: 32px;
}
.system-strip h2 {
  min-width: 150px;
  font-size: 16px;
  margin: 0;
}
.system-strip dl {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  flex: 1;
  gap: 20px;
  margin: 0;
}
.system-strip dt {
  color: #59677b;
  font-size: 12px;
  margin-bottom: 7px;
}
.system-strip dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.server-monitoring {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.server-monitoring h2 {
  font-size: 17px;
}
.load-value {
  display: block;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  margin: 22px 0 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -3px;
}
.load-footer {
  display: flex;
  gap: 36px;
  padding-top: 18px;
  border-top: 1px solid #e5eaf1;
}
.load-footer span {
  color: #59677b;
  font-size: 12px;
}
.load-footer strong {
  display: block;
  color: #202c40;
  font-size: 17px;
  margin-top: 6px;
}
.monitor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0079b4;
}
.gauge-panel > p {
  text-align: center;
  font-size: 13px;
  color: #59677b;
}
.resource-gauge {
  width: 190px;
  max-width: 100%;
  margin: 20px auto;
  position: relative;
}
.resource-gauge svg {
  width: 100%;
  display: block;
  transform: rotate(-90deg);
}
.resource-gauge circle {
  fill: none;
  stroke-width: 8;
}
.gauge-track {
  stroke: #e9eef5;
}
.gauge-fill {
  stroke: #0079b4;
  stroke-linecap: round;
}
.resource-gauge > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.resource-gauge strong {
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.resource-gauge span {
  color: #59677b;
  margin-top: 5px;
  font-size: 12px;
}
.functions-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}
.function-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.function-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e5eaf1;
  font-size: 14px;
}
.function-symbol {
  color: #0079b4;
}
.function-symbol svg {
  width: 20px;
  height: 20px;
}
.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.tool-list span {
  padding: 14px 16px;
  background: #f3f6fa;
  border-radius: 6px;
}
.operations-dashboard {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
}
.fleet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fleet-list > li {
  display: flex;
  flex-wrap: wrap;
  border: 0;
  border-bottom: 1px solid #e5eaf1;
  border-radius: 0;
  padding: 8px 0 20px;
  gap: 14px;
}
.fleet-list .server-identity {
  flex: 1 1 100%;
}
.fleet-list .server-identity a {
  font-size: 17px;
}
.fleet-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  width: 100%;
  padding: 18px 0;
  border-top: 1px solid #e5eaf1;
  border-bottom: 1px solid #e5eaf1;
}
.fleet-facts span {
  font-size: 12px;
  color: #59677b;
}
.fleet-facts strong {
  display: block;
  color: #202c40;
  margin-top: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.fleet-manage {
  font-weight: 600;
  font-size: 13px;
}
@media (max-width: 1200px) {
  .system-strip {
    display: block;
  }
  .system-strip dl {
    margin-top: 20px;
  }
  .fleet-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .server-monitoring {
    grid-template-columns: 1fr 1fr;
  }
  .load-panel {
    grid-column: 1 / -1;
  }
  .operations-dashboard {
    grid-template-columns: 1fr;
  }
  .functions-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 550px) {
  .server-monitoring {
    grid-template-columns: 1fr;
  }
  .server-tabs {
    gap: 18px;
  }
  .server-tabs a {
    font-size: 13px;
  }
  .system-strip dl {
    grid-template-columns: 1fr 1fr;
  }
  .server-context {
    margin-top: 0;
  }
  .tool-list {
    grid-template-columns: 1fr;
  }
}

/* Last-observed systemd state; the list reflows without a horizontal table. */
.service-status-panel .section-heading > span {
  color: #59677b;
  font-size: 12px;
}
.service-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.service-status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e5eaf1;
}
.service-status-list strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.service-status-list small {
  display: block;
  margin-top: 6px;
  color: #59677b;
}
.service-status-list .badge {
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .service-status-list {
    grid-template-columns: 1fr;
  }
}

/* Service configuration workbench */
.service-page-heading {
  margin-block: 1.5rem;
  align-items: flex-start;
}
.service-page-heading p {
  color: var(--color-muted);
  margin: 0.5rem 0 0;
  max-width: 65ch;
}
.service-workbench {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
.service-navigation {
  padding: 8px;
}
.service-navigation a {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-ink);
  border-inline-start: 1px solid transparent;
}
.service-navigation a small {
  color: var(--color-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.service-navigation a:hover {
  background: var(--color-ground);
}
.service-navigation a[aria-current="page"] {
  background: var(--color-tint);
  border-inline-start-color: var(--color-brand);
  color: var(--color-brand);
}
.service-content {
  min-width: 0;
  display: grid;
  gap: 20px;
}
.service-unit {
  margin-block: 0.5rem;
}
.service-editor fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0 0;
  min-width: 0;
}
.service-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}
.service-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.service-field > label {
  font-weight: 600;
  font-size: 0.875rem;
}
.service-field > code {
  color: var(--color-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.service-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-control input,
.service-control select {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.service-control span {
  color: var(--color-muted);
  white-space: nowrap;
  font-size: 0.8125rem;
}
.service-description {
  max-width: 70ch;
}
.service-impact {
  margin-top: 28px;
}
.service-confirm {
  margin-block: 20px;
  max-width: 65ch;
}
.service-editor fieldset:disabled .service-control {
  opacity: 0.75;
}
.service-dependencies h3 {
  margin-top: 0;
}
.job-result {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  max-width: 32ch;
  margin-top: 8px;
}
.snapshot-restore {
  display: grid;
  gap: 10px;
  min-width: 150px;
}
@media (max-width: 1050px) {
  .service-workbench {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
  }
  .service-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .service-workbench {
    grid-template-columns: 1fr;
  }
  .service-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-page-heading {
    display: grid;
    gap: 16px;
  }
  .service-navigation a {
    padding: 12px 8px;
  }
  .service-editor .form-actions {
    flex-wrap: wrap;
  }
}

.service-confirm,
.snapshot-restore .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
}
.service-confirm input,
.snapshot-restore input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 3px 0 0;
}
