:root {
  --bg: var(--brand-canvas);
  --surface: var(--brand-surface);
  --surface-raised: var(--brand-surface-raised);
  --surface-muted: var(--brand-surface-muted);
  --surface-hover: var(--brand-surface-hover);
  --sidebar: var(--brand-sidebar);
  --sidebar-hover: var(--brand-sidebar-raised);
  --sidebar-current: var(--brand-sidebar-current);
  --sidebar-text: var(--brand-sidebar-text);
  --sidebar-muted: var(--brand-sidebar-muted);
  --text: var(--brand-text);
  --text-strong: var(--brand-navy);
  --text-muted: var(--brand-text-muted);
  --border: var(--brand-border-soft);
  --border-strong: var(--brand-border);
  --accent: var(--brand-coral);
  --accent-hover: var(--brand-coral-hover);
  --accent-soft: var(--brand-coral-soft);
  --danger: var(--brand-danger);
  --danger-hover: var(--brand-danger-hover);
  --danger-soft: var(--brand-danger-soft);
  --warning: var(--brand-warning);
  --warning-soft: var(--brand-warning-soft);
  --primary: var(--brand-success);
  --primary-hover: var(--brand-success-hover);
  --success: var(--brand-success);
  --success-soft: var(--brand-success-soft);
  --info: var(--brand-info);
  --info-soft: var(--brand-info-soft);
  --link: var(--brand-link);
  --link-hover: var(--brand-link-hover);
  --focus: var(--brand-focus);
  --shadow-sm: var(--brand-shadow-small);
  --shadow-md: var(--brand-shadow);
  --radius-sm: var(--brand-radius-small);
  --radius: var(--brand-radius);
  --radius-lg: var(--brand-radius-large);
  --sidebar-width: 15.5rem;
  --topbar-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  background: var(--accent);
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 140ms ease;
  z-index: 110;
}

body.page-loading::before {
  animation: page-progress 1.2s ease-out infinite;
  opacity: 1;
}

@keyframes page-progress {
  0% {
    transform: scaleX(0);
  }

  55% {
    transform: scaleX(0.72);
  }

  100% {
    transform: scaleX(0.94);
  }
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button-link,
.link-button {
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: var(--brand-control-radius);
  background: var(--primary);
  box-shadow: var(--brand-control-shadow);
  color: var(--brand-action-text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  min-height: var(--brand-control-height);
  padding: 0.5rem 0.875rem;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

button:hover,
.button-link:hover,
.link-button:hover {
  background: var(--brand-action-hover);
  border-color: var(--brand-action-hover);
  box-shadow: var(--brand-control-shadow-hover);
}

button:active,
.button-link:active,
.link-button:active {
  transform: translateY(1px);
}

button:disabled,
.button-link[aria-disabled="true"] {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

button[aria-busy="true"],
[aria-busy="true"] button,
.image-import-action.htmx-request button {
  box-shadow: none;
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 65%, transparent);
  outline-offset: 2px;
}

.skip-link {
  background: var(--surface-raised);
  border: 1px solid var(--focus);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-weight: 700;
  left: 1rem;
  padding: 0.625rem 0.875rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--topbar-height) minmax(calc(100vh - var(--topbar-height)), auto);
  min-height: 100vh;
}

.sidebar {
  align-self: start;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  grid-row: 1 / -1;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.sidebar-header {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  min-height: var(--topbar-height);
  padding: 0 0.5rem;
}

.brand {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.0625rem;
  font-weight: 750;
  gap: 0.65rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: none;
  height: 1.75rem;
  object-fit: contain;
  width: 1.75rem;
}

.brand-logo--theme-reversed {
  display: none;
}

:root[data-theme="dark"] .brand-logo--theme-primary {
  display: none;
}

:root[data-theme="dark"] .brand-logo--theme-reversed {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo--theme-primary {
    display: none;
  }

  :root:not([data-theme="light"]) .brand-logo--theme-reversed {
    display: block;
  }
}

.sidebar-nav {
  align-content: start;
  display: grid;
  flex: 1;
  gap: 0.2rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-top: 0.85rem;
  scrollbar-width: thin;
}

.nav-label {
  color: var(--sidebar-muted);
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  margin: 0 0.5rem 0.4rem;
  text-transform: uppercase;
}

.nav-divider {
  background: rgb(255 255 255 / 0.09);
  height: 1px;
  margin: 0.8rem 0.5rem;
}

.sidebar-nav a {
  align-items: center;
  border-radius: 7px;
  color: var(--sidebar-muted);
  display: flex;
  font-weight: 550;
  gap: 0.7rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.65rem;
  position: relative;
  text-decoration: none;
  transition:
    background-color 130ms ease,
    color 130ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.sidebar-nav a.is-current {
  background: var(--sidebar-current);
  color: #ffffff;
}

.sidebar-nav a.is-current::before {
  background: #6d9dff;
  border-radius: 999px;
  content: "";
  height: 1.1rem;
  left: -0.75rem;
  position: absolute;
  width: 3px;
}

.sidebar-footer {
  border-top: 1px solid rgb(255 255 255 / 0.09);
  display: grid;
  flex-shrink: 0;
  gap: 0.15rem;
  margin-top: auto;
  overflow: hidden;
  padding: 1rem 0.6rem 0;
}

.sidebar-footer-label,
.top-context-label {
  color: var(--sidebar-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-footer strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-scrim {
  display: none;
}

.top-bar {
  align-items: center;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  grid-column: 2;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.top-context {
  display: grid;
  line-height: 1.15;
}

.top-context-label {
  color: var(--text-muted);
}

.top-context strong {
  color: var(--text-strong);
  font-size: 0.875rem;
}

.top-meta {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  margin-left: auto;
}

.top-meta form {
  display: flex;
}

.user-chip {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  max-width: 14rem;
  overflow: hidden;
  padding: 0.35rem 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary,
.icon-button {
  background: var(--surface-raised);
  border-color: var(--border-strong);
  box-shadow: var(--brand-control-shadow);
  color: var(--text);
}

.secondary:hover,
.icon-button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: var(--brand-control-shadow-hover);
  color: var(--text-strong);
}

.link-button {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--link);
  min-height: var(--brand-control-height-compact);
  padding: 0.3rem 0.45rem;
}

.link-button:hover {
  background: var(--surface-hover);
  border-color: transparent;
  box-shadow: none;
  color: var(--link-hover);
}

.link-button.text-danger {
  color: var(--danger);
}

.link-button.text-danger:hover {
  background: var(--danger-soft);
  color: var(--danger-hover);
}

.icon-button {
  box-shadow: none;
  min-width: var(--brand-control-height);
  padding-inline: 0.625rem;
}

.icon-only {
  justify-content: center;
  padding-inline: 0.625rem;
}

.theme-toggle {
  color: var(--text-muted);
}

.theme-label {
  font-size: 0.8125rem;
}

.mobile-menu-button {
  display: none;
}

.mobile-top-brand {
  color: var(--text-strong);
  display: none;
}

.main-content {
  grid-column: 2;
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2.25rem);
}

.content-frame {
  margin: 0 auto;
  max-width: 92rem;
  width: 100%;
}

.page-header {
  align-items: flex-end;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.page-header h1,
.content-section h2,
.modal-header h2,
.resource-card h3,
.resource-row h2 {
  color: var(--text-strong);
  letter-spacing: -0.025em;
}

.page-header h1 {
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.page-description,
.page-subtitle {
  color: var(--text-muted);
  margin: 0.4rem 0 0;
  max-width: 48rem;
}

.breadcrumbs {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 0.8125rem;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.breadcrumbs a,
.text-link {
  color: var(--link);
  font-weight: 650;
  text-decoration: none;
}

.breadcrumbs a:hover,
.text-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.content-section,
.summary-card,
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.content-section {
  padding: 1.15rem;
}

.content-section h2 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.summary-card {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-height: 6.1rem;
  padding: 1rem;
}

.summary-card-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent);
  display: flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.summary-card p {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  margin: 0 0 0.2rem;
}

.summary-card strong {
  color: var(--text-strong);
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-heading,
.form-actions,
.row-actions,
.inline-actions,
.modal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.inline-actions form {
  display: flex;
}

.inline-actions label {
  color: var(--text-muted);
  display: grid;
  font-size: 0.8rem;
  font-weight: 650;
  gap: 0.35rem;
}

.section-heading,
.form-actions {
  justify-content: space-between;
}

.section-heading {
  margin-bottom: 1rem;
}

.quick-actions {
  align-content: start;
  display: grid;
  gap: 0.6rem;
}

.quick-actions > div {
  margin-bottom: 0.35rem;
}

.quick-actions > a,
.quick-actions > button,
.quick-actions form button {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 0.1rem;
  justify-items: start;
  min-height: auto;
  padding: 0.75rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.quick-actions > a:hover,
.quick-actions > button:hover,
.quick-actions form button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.quick-actions small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 450;
}

.resource-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.resource-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.resource-card h3 {
  font-size: 1rem;
  margin: 0;
}

.resource-card form {
  display: grid;
  gap: 0.65rem;
}

.resource-list {
  display: grid;
  gap: 0;
}

.resource-row {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(18rem, 2fr);
  padding: 1rem 0;
}

.resource-row:first-child {
  padding-top: 0;
}

.resource-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resource-row h2 {
  font-size: 1rem;
  margin: 0;
}

.resource-row p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0.25rem 0 0;
}

.resource-row dl,
.detail-grid {
  display: grid;
  gap: 0.95rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin: 0;
}

.resource-row dt,
.detail-grid dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.resource-row dd,
.detail-grid dd {
  color: var(--text-strong);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.host-detail-columns {
  align-items: stretch;
}

.detail-subsection {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.detail-subsection h3 {
  color: var(--text-strong);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.vm-danger-zone {
  align-items: center;
  background: color-mix(in srgb, var(--danger) 6%, var(--surface-raised));
  border: 1px solid color-mix(in srgb, var(--danger) 34%, var(--border));
  border-radius: var(--radius);
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: 1rem;
}

.vm-danger-zone .eyebrow {
  color: var(--danger);
}

.vm-danger-zone h3,
.vm-danger-zone p {
  margin: 0;
}

.vm-danger-zone h3 {
  color: var(--text-strong);
  font-size: 1rem;
}

.vm-danger-zone > div {
  display: grid;
  gap: 0.35rem;
}

.vm-danger-zone > div > p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.vm-danger-zone .vm-danger-zone-status {
  color: var(--danger);
  font-weight: 650;
}

.modal-panel-danger {
  border-top-color: var(--danger);
}

.vm-delete-title {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.vm-delete-consequences ul {
  color: var(--text-muted);
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.25rem;
}

.vm-delete-form .hint {
  margin: -0.55rem 0 0;
}

.vm-delete-form .busy-label {
  display: none;
}

.vm-delete-form.htmx-request .default-label {
  display: none;
}

.vm-delete-form.htmx-request .busy-label {
  display: inline;
}

.vm-deletion-notice {
  background: color-mix(in srgb, var(--success) 8%, var(--surface-raised));
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.vm-deletion-notice strong {
  color: var(--text-strong);
}

.vm-deletion-notice span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.detail-columns .detail-subsection {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.detail-tabs {
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.detail-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--text-muted);
  margin-bottom: -1px;
  min-height: 2.65rem;
  padding: 0.55rem 0.8rem;
}

.detail-tabs button:hover {
  background: var(--surface-muted);
  box-shadow: none;
  color: var(--text-strong);
}

.detail-tabs button.is-selected {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin-bottom: 1rem;
}

.metric-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
}

.metric-card span {
  color: var(--text-muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.metric-card strong {
  color: var(--text-strong);
  display: block;
  font-size: 1.2rem;
}

.sparkline-wrap {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  height: 8rem;
  padding: 0.75rem;
}

.sparkline-wrap svg {
  display: block;
  height: 100%;
  width: 100%;
}

.table-section {
  padding: 0.35rem 1rem;
}

.table-wrap {
  overflow-x: auto;
  scrollbar-color: var(--border-strong) transparent;
}

.data-table {
  border-collapse: collapse;
  min-width: 54rem;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0.65rem;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background-color 120ms ease;
}

.data-table tbody tr:hover {
  background: var(--surface-muted);
}

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

.data-table td > a {
  color: var(--text-strong);
  font-weight: 650;
  text-decoration: none;
}

.data-table td > a:hover {
  color: var(--link);
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.row-actions button,
.inline-actions button,
.table-actions button {
  border-radius: var(--brand-control-radius-compact);
  font-size: 0.78rem;
  min-height: var(--brand-control-height-compact);
  padding: 0.32rem 0.55rem;
}

.admin-link-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-link-grid a {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.admin-link-grid a:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.admin-link-grid strong {
  color: var(--text-strong);
}

.admin-link-grid span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.activity-list,
.compact-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-list li {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.activity-list li:first-child {
  padding-top: 0;
}

.activity-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.activity-list span {
  color: var(--text-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.activity-filter-panel {
  margin-bottom: 1rem;
}

.activity-filter-heading {
  margin-bottom: 0.85rem;
}

.activity-filter-form {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns:
    minmax(8.5rem, 0.75fr)
    minmax(11rem, 1fr)
    minmax(12rem, 1.2fr)
    minmax(9rem, 0.75fr)
    minmax(9rem, 0.75fr)
    auto;
}

.activity-filter-form label {
  color: var(--text-muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 650;
  gap: 0.35rem;
}

.activity-filter-form label small {
  font-size: 0.68rem;
  font-weight: 600;
}

.activity-filter-submit {
  white-space: nowrap;
}

.image-filter-panel {
  margin-bottom: 1rem;
}

.image-filter-heading {
  margin-bottom: 0.85rem;
}

.image-filter-form {
  align-items: end;
  display: flex;
  gap: 0.75rem;
}

.image-filter-form label {
  color: var(--text-muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 650;
  gap: 0.35rem;
  max-width: 24rem;
  width: 100%;
}

.image-filter-submit,
.image-use-link {
  white-space: nowrap;
}

.vm-list-loading {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: none;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.25rem 0.5rem;
}

.vm-list-loading.htmx-request {
  display: inline-flex;
}

.surface-loading {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: none;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.25rem 0.5rem;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
}

.admin-audit-events-list[aria-busy="true"] .surface-loading,
.admin-audit-events-list.htmx-request .surface-loading,
#images-list[aria-busy="true"] .surface-loading,
#images-list.htmx-request .surface-loading {
  display: inline-flex;
}

.admin-audit-events-list[aria-busy="true"]::after,
#images-list[aria-busy="true"]::after {
  display: none;
}

.activity-results {
  padding: 0;
}

.activity-results-heading {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}

.activity-result-count {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0;
}

.activity-result-count strong {
  color: var(--text-strong);
}

.activity-timeline {
  list-style: none;
  margin: 0;
  padding: 0.7rem 1.15rem 0.15rem;
}

.activity-day {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  padding: 0.7rem 0 0.55rem 3.45rem;
  text-transform: uppercase;
}

.activity-day:first-child {
  padding-top: 0.2rem;
}

.activity-event {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  padding-bottom: 0.85rem;
  position: relative;
}

.activity-event::before {
  background: var(--border);
  bottom: -0.2rem;
  content: "";
  left: 1.275rem;
  position: absolute;
  top: 2.55rem;
  width: 1px;
}

.activity-event:last-child::before {
  display: none;
}

.activity-event-marker {
  align-items: center;
  align-self: start;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: flex;
  height: 2.6rem;
  justify-content: center;
  position: relative;
  width: 2.6rem;
  z-index: 1;
}

.activity-event-marker.status-info {
  background: var(--info-soft);
  color: var(--info);
}

.activity-event-marker.status-success {
  background: var(--success-soft);
  color: var(--success);
}

.activity-event-marker.status-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.activity-event-marker.status-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.activity-event-marker.status-neutral {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.activity-event > article {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
  padding: 0.85rem 0.95rem;
}

.activity-event-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.activity-event h3 {
  color: var(--text-strong);
  font-size: 0.94rem;
  letter-spacing: -0.012em;
  line-height: 1.35;
  margin: 0;
}

.activity-event-meta {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.activity-event-meta a {
  color: var(--link);
  font-weight: 650;
  text-decoration: none;
}

.activity-event-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.activity-deleted-badge {
  font-size: 0.64rem;
  margin: 0 0 0 0.15rem;
  padding: 0.24rem 0.4rem;
}

.activity-event-aside {
  align-items: flex-end;
  display: grid;
  flex: 0 0 auto;
  gap: 0.38rem;
  justify-items: end;
}

.activity-event-aside time {
  color: var(--text-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.activity-technical-details {
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
  padding-top: 0.55rem;
}

.activity-technical-details summary {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  width: fit-content;
}

.activity-technical-details[open] summary {
  color: var(--text);
  margin-bottom: 0.55rem;
}

.activity-technical-details dl {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.activity-technical-details dl > div {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 5rem minmax(0, 1fr);
}

.activity-technical-details dt {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 650;
}

.activity-technical-details dd {
  font-size: 0.74rem;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.activity-empty-state {
  gap: 1.25rem;
  min-height: 12rem;
  padding: 1.5rem;
}

.activity-empty-state .empty-state-content {
  gap: 0.3rem;
}

.activity-empty-state .text-link {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  width: fit-content;
}

.activity-pagination {
  align-items: center;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  padding: 0.85rem 1.15rem 1rem;
}

.activity-pagination > :last-child {
  justify-self: end;
}

.compact-list li {
  padding: 0.35rem 0;
}

.stacked-form,
.form-stack {
  display: grid;
  gap: 1rem;
}

.stacked-form label,
.form-stack label,
.admin-form-grid label,
.resource-card label {
  color: var(--text-muted);
  display: grid;
  font-size: 0.8rem;
  font-weight: 650;
  gap: 0.35rem;
}

input,
textarea,
select {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  min-height: 2.5rem;
  padding: 0.5rem 0.65rem;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.72;
}

input:hover,
textarea:hover,
select:hover {
  border-color: color-mix(in srgb, var(--border-strong) 60%, var(--accent));
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent);
  outline: 0;
}

.admin-form-grid {
  align-items: end;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}

.form-panel {
  border-left: 3px solid var(--accent);
}

.form-section {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.8rem;
  padding: 0.25rem 0 1.15rem;
}

fieldset.form-section {
  border-inline: 0;
  border-top: 0;
  min-inline-size: 0;
  margin: 0;
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section h2 {
  font-size: 0.95rem;
}

.form-section > legend {
  font-size: 0.95rem;
  padding: 0;
}

.option-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.option-row {
  align-items: flex-start;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex !important;
  gap: 0.7rem !important;
  padding: 0.75rem;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.option-row:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.option-row:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.option-row input,
.checkbox-label input,
.checkbox-row input {
  accent-color: var(--accent);
  flex: none;
  margin: 0.2rem 0 0;
  min-height: auto;
  width: auto;
}

.option-row > span {
  display: grid;
  gap: 0.1rem;
}

.checkbox-label,
.checkbox-row {
  align-items: center;
  display: flex !important;
  gap: 0.55rem !important;
  min-height: 2.5rem;
}

.stacked-form textarea {
  resize: vertical;
}

.form-actions {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  margin: -0.45rem 0 0;
}

.hint,
.subtle {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.subtle {
  display: block;
  margin-top: 0.2rem;
}

.spaced-section {
  margin-top: 1rem;
}

.count-chip {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 1.75rem;
  padding: 0.2rem 0.5rem;
  text-align: center;
}

.audit-filter-card {
  overflow: hidden;
  padding: 0;
}

.audit-filter-details > summary {
  align-items: center;
  color: var(--text-strong);
  cursor: pointer;
  display: flex;
  gap: 0.45rem;
  list-style: none;
  padding: 0.9rem 1.15rem;
}

.audit-filter-details > summary::-webkit-details-marker {
  display: none;
}

.audit-filter-details[open] > summary {
  border-bottom: 1px solid var(--border);
}

.audit-filter-details > summary:hover {
  background: var(--surface-muted);
}

.audit-filter-details > summary .subtle {
  display: inline;
  margin: 0;
}

.audit-filter-form {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.15rem 1.15rem;
}

.audit-filter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.audit-filter-grid label {
  color: var(--text-muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 650;
  gap: 0.35rem;
}

.audit-filter-actions {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.audit-filter-actions p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0;
}

.admin-audit-events-list {
  min-width: 0;
}

.audit-events-empty {
  min-height: 12rem;
}

.audit-event-actor,
.audit-event-resource {
  color: var(--text-muted);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 650;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.audit-event-message {
  display: inline-block;
  max-width: 30rem;
  overflow-wrap: anywhere;
}

.header-stats {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stat-pill {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 6rem;
  padding: 0.55rem 0.85rem;
}

.stat-value {
  color: var(--text-strong);
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tenant-detail-columns {
  align-items: stretch;
}

.cell-stack {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.cell-stack strong {
  display: block;
  overflow-wrap: anywhere;
}

.actions-column {
  text-align: right;
  white-space: nowrap;
}

.stepper {
  border-top: 1px solid var(--border);
  margin: 0 0 1.25rem;
  padding-top: 1rem;
}

.stepper-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stepper-item {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}

.stepper-bubble {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  flex: none;
  font-size: 0.85rem;
  font-weight: 750;
  height: 1.85rem;
  justify-content: center;
  width: 1.85rem;
}

.stepper-label {
  font-size: 0.85rem;
  font-weight: 650;
}

.stepper-item.is-current {
  color: var(--text-strong);
}

.stepper-item.is-current .stepper-bubble {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.stepper-item.is-done .stepper-bubble {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 30%, var(--border));
  color: var(--success);
}

.create-vm-form .field-error {
  margin-top: 0.4rem;
}

.create-vm-form .hostname-status {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.3rem;
  min-height: 0;
}

.create-vm-form .hostname-status--ok {
  color: var(--success);
}

.create-vm-form .hostname-status--error {
  color: var(--danger);
}

.create-vm-form .vm-quote .detail-grid {
  border-top: 1px solid var(--border);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}

.review-section-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.review-section-heading h2 {
  margin: 0;
}

.review-key-list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.review-key-list li {
  display: grid;
  gap: 0.1rem;
}

.review-blockers {
  align-items: flex-start;
  background: color-mix(in srgb, var(--warning) 6%, var(--surface-raised));
  border: 1px solid color-mix(in srgb, var(--warning) 32%, var(--border));
  border-radius: var(--radius);
  color: var(--text-strong);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1rem;
}

.review-blockers-icon {
  align-items: center;
  background: var(--warning-soft);
  border-radius: 999px;
  color: var(--warning);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.review-blockers h2 {
  margin: 0;
}

.review-blockers h2 {
  font-size: 1rem;
}

.review-blockers ul {
  display: grid;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.review-blockers li {
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--warning) 24%, var(--border));
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.65rem 0 0;
}

.review-blockers li + li {
  margin-top: 0.65rem;
}

.review-blocker-copy {
  display: grid;
  gap: 0.1rem;
}

.review-blocker-copy > span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.review-blocker-action {
  flex: none;
  white-space: nowrap;
}

.review-detail-grid {
  align-items: start;
}

.review-detail-grid > div {
  border-radius: calc(var(--radius) - 2px);
  padding: 0.55rem;
}

.review-detail-grid .review-field-blocked {
  border-inline-start: 2px solid var(--danger);
  border-radius: 0;
  padding-block: 0.1rem;
  padding-inline-start: 0.65rem;
}

.review-detail-grid dt {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.required-badge {
  color: var(--danger);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-field-action {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.offer-readiness {
  background: var(--surface-muted);
  border-inline-start: 3px solid var(--warning);
}

.offer-readiness.is-blocked {
  border-inline-start-color: var(--warning);
}

.checkout-blocked-message {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 620px) {
  .review-blockers li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

.unavailable {
  color: var(--text-muted);
  font-weight: 700;
}

@media (max-width: 760px) {
  .header-stats {
    width: 100%;
  }

  .stat-pill {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 0;
  }
}

.mono {
  background: var(--surface-muted);
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 4px;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82em;
  overflow-wrap: anywhere;
  padding: 0.13rem 0.3rem;
}

.danger-button {
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: var(--brand-control-shadow);
  color: #ffffff;
}

.danger-button:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
  box-shadow: var(--brand-control-shadow-hover);
}

.text-danger {
  color: var(--danger);
}

.image-import-action .busy-label {
  display: none;
}

.image-import-action.htmx-request .busy-label {
  display: inline;
}

.image-import-action.htmx-request .default-label {
  display: none;
}

[aria-busy="true"] {
  position: relative;
}

[aria-busy="true"]::after {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  content: "Updating…";
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.25rem 0.5rem;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
}

.auth-body {
  min-height: 100vh;
}

.auth-shell {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(24rem, 1.1fr);
  min-height: 100vh;
}

.auth-visual {
  align-content: center;
  align-self: stretch;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: grid;
  padding: clamp(2rem, 6vw, 6rem);
}

.auth-visual .brand {
  margin-bottom: 3rem;
}

.auth-visual h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
  max-width: 10ch;
}

.auth-visual p {
  color: var(--sidebar-muted);
  font-size: 1rem;
  max-width: 32rem;
}

.auth-form-wrap {
  display: grid;
  min-height: 100%;
  padding: 1.25rem;
  place-items: center;
  position: relative;
}

.auth-theme-toggle {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
}

.auth-panel {
  max-width: 25rem;
  width: 100%;
}

.auth-panel h1 {
  color: var(--text-strong);
  font-size: 1.65rem;
  letter-spacing: -0.035em;
  margin: 0;
}

.auth-panel > p {
  color: var(--text-muted);
  margin: 0.4rem 0 1.5rem;
}

.error-shell {
  display: grid;
  min-height: 100vh;
  padding: 1.25rem;
  place-items: center;
}

.error-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 32rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  width: 100%;
}

.error-brand {
  color: var(--text-strong);
  margin-bottom: 2.5rem;
}

.error-panel h1 {
  color: var(--text-strong);
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin: 0;
}

.error-panel > p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 0.45rem 0 1.5rem;
}

/* Fresh brand system ------------------------------------------------------ */

body {
  background: var(--bg);
  min-width: 0;
  overflow-x: clip;
}

.app-shell {
  position: relative;
}

.sidebar {
  border-right: 1px solid rgb(255 255 255 / 0.08);
  padding-inline: 0.9rem;
}


.sidebar-header,
.sidebar-nav,
.sidebar-footer {
  position: relative;
  z-index: 1;
}

.brand {
  font-size: 1.12rem;
  font-weight: 650;
}

.sidebar-nav {
  gap: 0.28rem;
}

.sidebar-nav a {
  border: 1px solid transparent;
  border-radius: 0.8rem;
  min-height: 2.65rem;
  padding-inline: 0.75rem;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  border-color: rgb(255 255 255 / 0.06);
}

.sidebar-nav a.is-current {
  border-color: rgb(62 214 225 / 0.14);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.sidebar-nav a.is-current .icon {
  color: var(--brand-cyan);
}

.sidebar-nav a.is-current::before {
  background: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgb(62 214 225 / 0.09);
  height: 1.25rem;
  left: -0.9rem;
  width: 4px;
}

.nav-label {
  letter-spacing: 0.12em;
}

.top-bar {
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  padding-inline: clamp(1rem, 2.4vw, 2rem);
}

.top-context-label {
  color: var(--info);
}

.user-chip {
  background: color-mix(in srgb, var(--surface-raised) 82%, var(--info-soft));
  border-radius: 999px;
  color: var(--text);
  padding: 0.42rem 0.78rem;
}

.main-content {
  position: relative;
}

.content-frame {
  position: relative;
}

.page-header {
  margin-bottom: 1.75rem;
  min-height: 5rem;
  position: relative;
}

.page-header::after {
  background: var(--accent);
  border-radius: 999px;
  bottom: -0.8rem;
  content: "";
  height: 0.25rem;
  left: 0;
  position: absolute;
  width: 2.5rem;
}

.page-header h1 {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 550;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.eyebrow {
  color: var(--info);
  letter-spacing: 0.13em;
}

.page-description,
.page-subtitle {
  font-size: 0.98rem;
  margin-top: 0.65rem;
}

.breadcrumbs {
  font-weight: 620;
}

.breadcrumbs a,
.text-link {
  color: color-mix(in srgb, var(--info) 82%, var(--text));
}

.content-section,
.summary-card,
.resource-card {
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--brand-sidebar) 11%, transparent);
}

.content-section {
  padding: clamp(1.15rem, 2.2vw, 1.5rem);
}

.content-section h2 {
  font-size: 1.12rem;
  letter-spacing: -0.035em;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.summary-grid {
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.summary-card {
  background: var(--surface-raised);
  gap: 1rem;
  min-height: 6.75rem;
  padding: 1.1rem;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-sidebar) 7%, transparent);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.summary-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-sidebar) 10%, transparent);
}

.summary-card-icon {
  border-radius: 0.8rem;
  height: 2.65rem;
  width: 2.65rem;
}

.summary-card strong {
  font-size: 1.8rem;
  font-weight: 550;
}

.summary-card.tone-cyan .summary-card-icon {
  background: var(--info-soft);
  color: var(--info);
}

.summary-card.tone-orange .summary-card-icon {
  background: var(--warning-soft);
  color: var(--warning);
}

.summary-card.tone-navy .summary-card-icon {
  background: color-mix(in srgb, var(--text-strong) 10%, transparent);
  color: var(--text-strong);
}

.summary-card.tone-danger .summary-card-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.quick-actions {
  gap: 0.75rem;
}

.quick-actions > a,
.quick-actions > button,
.quick-actions form button {
  align-items: center;
  background: var(--surface-raised);
  border-radius: 1rem;
  box-shadow: none;
  color: var(--text);
  column-gap: 0.8rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.85rem;
}

.quick-actions > a:hover,
.quick-actions > button:hover,
.quick-actions form button:hover {
  background: var(--surface-hover);
  border-color: color-mix(in srgb, var(--info) 45%, var(--border));
  transform: translateY(-1px);
}

.quick-action-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 0.75rem;
  color: var(--accent);
  display: flex;
  grid-row: 1 / span 2;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.quick-actions > button .quick-action-icon {
  background: var(--info-soft);
  color: var(--info);
}

.quick-actions form .quick-action-icon {
  background: var(--warning-soft);
  color: var(--warning);
}

.resource-card,
.resource-row,
.admin-link-grid a {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.resource-row {
  border-bottom-color: var(--border);
  padding-block: 1.25rem;
}

.resource-row:hover {
  transform: translateX(3px);
}

.resource-row h2 {
  font-size: 1.1rem;
}

.image-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.image-card-heading p {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.resource-list {
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
}

.resource-row {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 1rem;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  padding: 1.25rem;
}

.resource-list .resource-row:first-child {
  padding-top: 1.25rem;
}

.resource-row:last-child {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.resource-row dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vm-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--brand-sidebar) 11%, transparent);
  min-height: 8rem;
  overflow: hidden;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.vm-hero::after {
  background: var(--info);
  bottom: 0;
  height: 0.3rem;
  left: 0;
  width: 4rem;
}

.vm-status-summary {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.75rem;
  margin: 0.65rem 0 0;
}

.vm-status-summary > span + span {
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
}

.vm-status-summary strong {
  color: var(--text-strong);
}

.vm-panel-loading {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  margin: 0;
  opacity: 0;
  padding: 0.25rem 0.5rem;
  transition: opacity 120ms ease;
  visibility: hidden;
  white-space: nowrap;
  width: fit-content;
}

.vm-panel-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-width: 0;
}

.vm-panel-heading h2 {
  margin: 0;
}

.detail-subpanel.htmx-request .vm-panel-loading,
.detail-subpanel[aria-busy="true"] .vm-panel-loading {
  opacity: 1;
  visibility: visible;
}

.detail-subpanel.htmx-request[aria-busy="true"]::after {
  display: none;
}

.detail-subpanel.htmx-request[aria-busy="true"] button {
  cursor: pointer;
  opacity: 1;
}

.vm-overview-heading {
  align-items: flex-start;
}

.vm-health-grid {
  background: var(--surface-muted);
  border-block: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: clamp(-1.5rem, -2.2vw, -1.15rem);
}

.vm-health-item {
  border-right: 1px solid var(--border);
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 1rem clamp(1rem, 2vw, 1.4rem);
}

.vm-health-item:last-child {
  border-right: 0;
}

.vm-overview-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.vm-health-value {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 1.55rem;
}

.vm-health-item > .subtle {
  font-size: 0.76rem;
}

.vm-desired-state {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 620;
}

.vm-desired-state.has-drift {
  color: var(--warning);
}

.vm-overview-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.vm-overview-group {
  border-right: 1px solid var(--border);
  min-width: 0;
  padding: 1.2rem 1.25rem 0;
}

.vm-overview-group:first-child {
  padding-left: 0;
}

.vm-overview-group:last-child {
  border-right: 0;
  padding-right: 0;
}

.vm-overview-group h3 {
  color: var(--text-strong);
  font-size: 0.86rem;
  margin: 0 0 0.85rem;
}

.vm-overview-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.vm-overview-list > div {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(4.75rem, 0.55fr) minmax(0, 1fr);
  padding: 0.65rem 0;
}

.vm-overview-list > div:first-child {
  padding-top: 0;
}

.vm-overview-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vm-overview-list dt {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 680;
}

.vm-overview-list dd {
  color: var(--text-strong);
  display: grid;
  font-size: 0.84rem;
  gap: 0.3rem;
  margin: 0;
  min-width: 0;
}

.vm-overview-list dd > .status-badge {
  justify-self: start;
}

.vm-overview-list dd > .subtle {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.vm-access-key-list {
  min-width: 0;
}

.vm-access-key-list li {
  min-width: 0;
  padding: 0 0 0.4rem;
}

.vm-access-key-list li:last-child {
  padding-bottom: 0;
}

/* Fingerprints are long and only need to be recognisable; the title holds the whole value. */
.vm-fingerprint {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vm-overview-group > .vm-copy-field {
  margin-bottom: 1rem;
}

.vm-copy-field {
  align-items: center;
  display: flex;
  gap: 0.4rem;
  min-width: 0;
}

.vm-copy-field code {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.vm-copy-button {
  flex: 0 0 auto;
  font-size: 0.72rem;
  min-height: 1.9rem;
  padding: 0.3rem 0.5rem;
}

@media (max-width: 1100px) {
  .vm-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vm-health-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .vm-health-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .vm-overview-heading {
    align-items: stretch;
  }

  .vm-overview-heading .row-actions {
    width: 100%;
  }

  .vm-health-grid,
  .vm-overview-groups {
    grid-template-columns: 1fr;
  }

  .vm-health-item,
  .vm-health-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
    border-right: 0;
  }

  .vm-health-item:last-child {
    border-bottom: 0;
  }

  .vm-overview-group,
  .vm-overview-group:first-child,
  .vm-overview-group:last-child {
    border-right: 0;
    border-top: 1px solid var(--border);
    grid-column: auto;
    margin-top: 1rem;
    padding: 1rem 0 0;
  }

  .vm-overview-group:first-child {
    border-top: 0;
    margin-top: 0;
  }

  .vm-overview-list > div {
    grid-template-columns: minmax(4.75rem, 0.45fr) minmax(0, 1fr);
  }
}

.detail-tabs {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  gap: 0.25rem;
  margin-bottom: 1.2rem;
  padding: 0;
  width: 100%;
}

.detail-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin: 0 0 -1px;
  min-height: var(--brand-control-height);
  padding-inline: 0.875rem;
}

.detail-tabs button.is-selected {
  background: transparent;
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.detail-tabs button.is-selected:hover {
  background: var(--surface-muted);
  color: var(--accent-hover);
}

.metric-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
}

.usage-page-header {
  margin-bottom: 1rem;
}

.usage-summary,
.usage-bandwidth {
  min-width: 0;
  position: relative;
}

.usage-bandwidth {
  margin-top: 1rem;
}

.usage-metric-grid {
  margin-bottom: 0.85rem;
}

.usage-metric-grid dt,
.usage-metric-grid dd {
  margin: 0;
}

.usage-metric-grid dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.usage-metric-grid dd {
  color: var(--text-strong);
  font-size: 1.2rem;
  font-weight: 750;
}

.usage-latest-sample {
  margin: 0;
}

.usage-loading {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: none;
  font-size: 0.72rem;
  font-weight: 650;
  margin: -0.2rem 0 0.8rem;
  padding: 0.25rem 0.5rem;
  width: fit-content;
}

.usage-summary.htmx-request .usage-loading,
.usage-summary[aria-busy="true"] .usage-loading,
.usage-bandwidth.htmx-request .usage-loading,
.usage-bandwidth[aria-busy="true"] .usage-loading {
  display: inline-flex;
}

.usage-summary[aria-busy="true"]::after,
.usage-bandwidth[aria-busy="true"]::after {
  display: none;
}

.usage-transfer-progress {
  accent-color: var(--info);
  display: block;
  height: 0.55rem;
  margin: 0.55rem 0 0.35rem;
  width: min(100%, 18rem);
}

.usage-sparkline {
  height: 5rem;
  margin-top: 0.7rem;
  min-width: 10rem;
  padding: 0.5rem;
}

.usage-bandwidth .data-table td:last-child {
  min-width: 18rem;
}

@media (max-width: 720px) {
  .usage-bandwidth .data-table td:last-child {
    min-width: 0;
  }

  .usage-transfer-progress {
    width: 100%;
  }
}

/* The VM inventory is denser than the console's general-purpose tables. Keep
   related metadata together and let the table border define the outer edge. */

.vm-list-loading-overlay {
  position: absolute;
  right: 1rem;
  top: 0.65rem;
  z-index: 1;
}

.vm-name,
.vm-desired-state {
  display: block;
}

.vm-desired-state {
  margin-top: 0.25rem;
}

.sparkline-wrap {
  background: var(--info-soft);
  border-radius: 1rem;
  color: var(--info);
}

.table-section {
  overflow: hidden;
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
  border-bottom-color: var(--border-strong);
  color: var(--text-muted);
  padding-block: 0.8rem;
}

.data-table th:first-child {
  border-radius: 0.7rem 0 0 0.7rem;
}

.data-table th:last-child {
  border-radius: 0 0.7rem 0.7rem 0;
}

.data-table td {
  padding-block: 0.85rem;
}

.data-table tbody tr:hover {
  background: color-mix(in srgb, var(--info-soft) 52%, transparent);
}

.data-table td > a:hover {
  color: var(--link-hover);
}

.admin-link-grid {
  gap: 0.9rem;
}

.admin-link-grid a {
  background: var(--surface-raised);
  border-radius: 1rem;
  min-height: 6rem;
  overflow: hidden;
  padding: 1.05rem;
  position: relative;
}

.admin-link-grid a::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 0.35rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 1.6rem;
}

.admin-link-grid a:nth-child(3n + 2)::before {
  background: var(--info);
}

.admin-link-grid a:nth-child(3n)::before {
  background: var(--warning);
}

.admin-link-grid a:hover {
  border-color: color-mix(in srgb, var(--info) 35%, var(--border));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-sidebar) 11%, transparent);
  transform: translateY(-2px);
}

.form-panel {
  border-left: 4px solid var(--accent);
}

input,
textarea,
select {
  border-radius: var(--brand-control-radius);
  min-height: 2.7rem;
}

input:hover,
textarea:hover,
select:hover {
  border-color: color-mix(in srgb, var(--info) 55%, var(--border-strong));
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--info) 18%, transparent);
}

.form-section {
  counter-increment: fresh-form-step;
  padding-block: 0.5rem 1.35rem;
}

.stacked-form {
  counter-reset: fresh-form-step;
}

.create-vm-section .form-section h2 {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.create-vm-section .form-section > legend {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.create-vm-section .form-section h2,
.create-vm-section .form-section > legend {
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 0.65rem;
}

.create-vm-section .stepper {
  border-top: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.6rem;
  padding: 0 0 1.2rem;
}

.create-vm-section .stepper-list { gap: 1.5rem; }
.create-vm-section .stepper-item.is-current .stepper-bubble {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

.create-vm-section .form-section { padding-block: 0.4rem 1.4rem; }
.create-vm-section .option-grid { gap: 0.85rem; }

/* Configure step: the form beside a summary that follows the choices. */

.create-summary {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  position: sticky;
  top: 5rem;
}

.create-summary h2 { font-size: 0.95rem; margin: 0 0 0.85rem; }

.create-summary .hint { font-size: 0.76rem; margin: 0; }

/* Fields that only matter once a checkbox is ticked stay usable but step back until then. */

.review-groups {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-groups .review-detail-grid { align-content: start; grid-template-columns: 1fr; }

@media (max-width: 1000px) {

  .create-summary { position: static; }
  .review-groups { grid-template-columns: 1fr; }
}

.create-vm-section .option-row {
  background: var(--surface-raised);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 400;
  min-width: 0;
  padding: 1rem;
}
.create-vm-section .option-row:hover { border-color: var(--border-strong); }
.create-vm-section .option-row:has(input:checked) {
  background: color-mix(in srgb, var(--success) 4%, var(--surface-raised));
  border-color: var(--success);
  box-shadow: inset 0 0 0 1px var(--success);
}
.create-vm-section .option-row:has(input:focus-visible) {
  outline: 2px solid var(--info);
  outline-offset: 3px;
}
.create-vm-section input[type="radio"],
.create-vm-section input[type="checkbox"] { accent-color: var(--success); }
.create-vm-section .option-row strong { font-weight: 650; font-size: 0.9rem; }
.create-vm-section .option-row .subtle,
.create-vm-section .checkbox-label .subtle { font-weight: 400; font-size: 0.82rem; line-height: 1.6; }
.create-vm-section .option-row > span { gap: 0.35rem; min-width: 0; }

.create-vm-section .offer-readiness { background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.create-vm-section .offer-readiness p { margin: 0; }

@media (max-width: 760px) {

  .create-vm-section .stepper-list { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 0.8rem; }
  .create-vm-section .stepper-item { align-items: flex-start; flex-direction: column; }
  .create-vm-section .stepper-label { font-size: 0.75rem; }

}

.option-row {
  background: var(--surface-raised);
  border-radius: 0.9rem;
  padding: 0.9rem;
}

.option-row:has(input:checked) {
  background: var(--info-soft);
  border-color: var(--info);
  box-shadow: inset 0 0 0 1px var(--info);
}

.option-row input,
.checkbox-label input,
.checkbox-row input {
  accent-color: var(--info);
}

.activity-event > article {
  background: var(--surface-raised);
  border-radius: 1rem;
}

.activity-event-marker {
  box-shadow: 0 0 0 4px var(--surface);
}

.activity-filter-panel {
  border-top: 3px solid var(--info);
}

.mono {
  background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
  border-radius: 0.45rem;
}

.count-chip {
  border-radius: 999px;
}

/* Account pages share the public site's typography and uncluttered surfaces. */
.auth-shell {
  background: var(--bg);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.auth-visual {
  align-content: stretch;
  background: var(--brand-sidebar);
  grid-template-rows: auto 1fr auto;
  gap: 4rem;
  min-width: 0;
  padding: clamp(2rem, 5vw, 5rem);
}

.auth-visual .brand {
  margin: 0;
  justify-self: start;
}

.auth-brand-copy {
  align-self: center;
}

/* One line drawing above the headline, in the ink panel's own colours. */
.auth-art {
  --art-fill: var(--brand-sidebar);
  --art-soft: color-mix(in srgb, var(--brand-accent) 22%, var(--brand-sidebar));
  --art-accent: #34c57a;
  color: var(--brand-sidebar-text);
  display: block;
  height: auto;
  margin: 0 0 3rem -0.25rem;
  overflow: visible;
  width: clamp(14rem, 58%, 22rem);
}

.auth-visual .eyebrow {
  color: var(--brand-sidebar-muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  margin: 0 0 1.5rem;
}

.auth-visual .eyebrow::before {
  content: "";
  background: var(--brand-coral);
  height: 2px;
  width: 1.4rem;
}

.auth-visual .auth-headline {
  color: var(--brand-sidebar-text);
  font-size: clamp(2.75rem, 4.8vw, 4.75rem);
  font-weight: 550;
  letter-spacing: -0.06em;
  line-height: 1.08;
  margin: 0;
  max-width: none;
}

.auth-headline span {
  color: var(--brand-sidebar-muted);
}

.auth-visual .auth-brand-description {
  font-size: 1rem;
  line-height: 1.7;
  margin: 1.75rem 0 0;
  max-width: 32ch;
}

.auth-brand-footer {
  border-top: 1px solid rgb(255 255 255 / 0.15);
  color: var(--brand-sidebar-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  padding-top: 1.25rem;
}

.auth-brand-footer a {
  color: var(--brand-sidebar-text);
  text-decoration: none;
}

.auth-brand-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.auth-form-wrap {
  background: var(--bg);
  min-width: 0;
  padding: 6rem clamp(1.5rem, 5vw, 5rem) 3rem;
}

.auth-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 25rem;
  padding: 0;
}

.auth-panel h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.auth-panel > .eyebrow {
  margin-bottom: 1rem;
}

.auth-panel .form-stack {
  gap: 1.25rem;
  margin-top: 2rem;
}

.auth-panel .form-stack label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 550;
  gap: 0.5rem;
}

.auth-panel .form-stack input,
.auth-panel .form-stack > button {
  min-height: 3rem;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  margin-top: 1.25rem;
}

.auth-links a,
.auth-alternate a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

.auth-support {
  border-top: 1px solid var(--border);
  margin-top: 1.6rem;
  padding-top: 1.25rem;
}

.auth-support h3,
.app-support h2 {
  color: var(--text-strong);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-support > p:not(.eyebrow),
.app-support-copy > p:not(.eyebrow) {
  color: var(--text-muted);
  margin: 0.45rem 0 0;
}

.support-link-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 0.8rem;
}

.support-link-list a {
  color: var(--text-strong);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.support-pending {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0.8rem 0 0;
}

.auth-mobile-brand {
  color: var(--text-strong);
  display: none;
  left: 1.25rem;
  position: absolute;
  top: 1.35rem;
}

.error-shell {
  background: var(--bg);
}

.error-panel {
  border-radius: var(--radius-lg);
  border-top: 1px solid var(--border);
  box-shadow: none;
  max-width: 36rem;
}

.error-brand {
  color: var(--text-strong);
}

.error-panel h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.07em;
}

@keyframes console-enter {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  animation: console-enter 420ms ease-out both;
}

.app-support {
  align-items: start;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: 1.35rem 0 0.5rem;
}

.app-support-copy {
  max-width: 42rem;
}

.app-support .support-pending {
  grid-column: 1 / -1;
  margin-top: 0;
}

@media (max-width: 1180px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-filter-submit {
    justify-self: start;
  }

  .image-filter-form {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .image-filter-submit {
    align-self: end;
  }

  .audit-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .app-shell {
    display: block;
    padding-top: var(--topbar-height);
  }

  .sidebar {
    bottom: 0;
    box-shadow: var(--shadow-md);
    left: 0;
    max-width: calc(100vw - 3rem);
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    width: var(--sidebar-width);
  }

  .sidebar[data-open="true"] {
    transform: translateX(0);
  }

  .sidebar-scrim {
    background: rgb(2 6 23 / 0.62);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    bottom: 0;
    display: block;
    left: 0;
    min-height: 0;
    opacity: 0;
    padding: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 180ms ease;
    z-index: 35;
  }

  .sidebar-scrim:hover,
  .sidebar-scrim:active {
    background: rgb(2 6 23 / 0.62);
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }

  body.nav-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .top-bar {
    grid-column: auto;
    left: 0;
    min-height: var(--topbar-height);
    padding: 0 1rem;
    position: fixed;
    right: 0;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .main-content {
    grid-column: auto;
  }

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

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-form-wrap {
    min-height: 100vh;
    padding-top: 6rem;
  }

  .auth-mobile-brand {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .main-content {
    padding: 1rem;
  }

  .app-support {
    grid-template-columns: 1fr;
  }

  .app-support .support-link-list {
    margin-top: 0;
  }

  .top-context,
  .user-chip,
  .theme-label,
  .sign-out-button span:last-child {
    display: none;
  }

  .mobile-top-brand {
    display: inline-flex;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }

  .page-header > form,
  .page-header > button,
  .page-header > .button-link,
  .page-header > .link-button {
    align-self: flex-start;
  }

  .vm-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .vm-danger-zone > button {
    align-self: flex-start;
  }

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

  .summary-card {
    min-height: 5rem;
  }

  .detail-tabs {
    max-width: 100%;
    width: 100%;
  }

  .vm-status-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .vm-status-summary > span + span {
    border-left: 0;
    padding-left: 0;
  }

  .admin-link-grid,
  .resource-row {
    grid-template-columns: 1fr;
  }

  .image-card-heading {
    flex-direction: column;
  }

  .image-use-link {
    align-self: flex-start;
  }

  .table-section {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .table-wrap {
    overflow: visible;
  }

  .data-table {
    display: block;
    min-width: 0;
  }

  .data-table thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .data-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .data-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: grid;
    padding: 0.7rem 0.85rem;
  }

  .data-table td {
    align-items: start;
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(6.5rem, 0.7fr) minmax(0, 1.3fr);
    padding: 0.6rem 0;
    text-align: left;
    white-space: normal;
  }

  .data-table td::before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td.table-actions {
    text-align: left;
  }

  .data-table td .status-badge,
  .data-table td .badge {
    justify-self: start;
  }

  .row-actions,
  .inline-actions {
    justify-content: flex-start;
  }

  .activity-list li {
    align-items: start;
    display: grid;
  }

  .activity-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-filter-form label {
    max-width: none;
  }

  .audit-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-filter-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-filter-actions button {
    margin-left: 0;
  }

  .activity-filter-form label:nth-child(-n + 3) {
    grid-column: 1 / -1;
  }

  .activity-results-heading {
    align-items: flex-start;
  }

  .activity-event-heading {
    display: grid;
  }

  .activity-event-aside {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-items: start;
  }

  .toast-region {
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
    right: 0.75rem;
  }
}

@media (max-width: 420px) {
  .top-bar {
    gap: 0.45rem;
    padding: 0 0.65rem;
  }

  .top-meta {
    gap: 0.35rem;
  }

  .page-header h1 {
    font-size: 1.55rem;
  }

  .data-table td {
    gap: 0.35rem;
    grid-template-columns: 1fr;
  }

  .activity-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-filter-grid {
    grid-template-columns: 1fr;
  }

  .activity-filter-form label:nth-child(-n + 3) {
    grid-column: auto;
  }

  .activity-filter-form label:nth-child(3) {
    grid-column: 1 / -1;
  }

  .activity-results-heading {
    display: grid;
  }

  .activity-timeline {
    padding-inline: 0.8rem;
  }

  .activity-day {
    padding-left: 3rem;
  }

  .activity-event {
    gap: 0.65rem;
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }

  .activity-event::before {
    left: 1.1rem;
    top: 2.25rem;
  }

  .activity-event-marker {
    height: 2.25rem;
    width: 2.25rem;
  }

  .activity-event > article {
    padding: 0.75rem;
  }

  .activity-technical-details dl > div {
    grid-template-columns: 1fr;
  }

  .activity-pagination {
    grid-template-columns: 1fr;
  }

  .activity-pagination > *,
  .activity-pagination > :last-child {
    justify-self: stretch;
  }
}

@media (max-width: 360px) {
  .image-filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .image-filter-submit {
    align-self: flex-start;
  }

  .activity-filter-form {
    grid-template-columns: 1fr;
  }

  .activity-filter-form label:nth-child(3) {
    grid-column: auto;
  }
}

/* Billing: guide first-time setup, then keep recurring subscription details
   and the credit ledger compact. */
.billing-section + .billing-section {
  margin-top: 1rem;
}

.billing-section-heading {
  align-items: flex-start;
}

.billing-section-heading-copy {
  display: grid;
  gap: 0.25rem;
}

.billing-section-intro {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
  max-width: 48rem;
}

.billing-onboarding {
  align-items: center;
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1.15rem;
}

.billing-onboarding-main {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}

.billing-feature-icon,
.billing-credit-icon {
  align-items: center;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 50%;
  color: var(--accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.05rem;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.billing-onboarding-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.billing-onboarding-copy h3,
.billing-credit-empty h3 {
  color: var(--text-strong);
  font-size: 0.925rem;
  line-height: 1.35;
  margin: 0;
}

.billing-onboarding-copy p,
.billing-credit-empty p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.billing-primary-action {
  white-space: nowrap;
}

.billing-facts {
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0.9rem 0 0;
}

.billing-facts li {
  display: grid;
  gap: 0.15rem;
  padding: 0 1rem;
}

.billing-facts li:first-child {
  padding-inline-start: 0;
}

.billing-facts li + li {
  border-inline-start: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
}

.billing-facts strong {
  color: var(--text-strong);
  font-size: 0.775rem;
}

.billing-facts span {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.billing-summary {
  border-block: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.billing-summary-item {
  display: grid;
  gap: 0.4rem;
  min-height: 4.75rem;
  padding: 0.9rem 1rem;
}

.billing-summary-item:first-child {
  padding-inline-start: 0;
}

.billing-summary-item + .billing-summary-item {
  border-inline-start: 1px solid var(--border);
}

.billing-summary-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.billing-summary-item > strong {
  align-self: start;
  color: var(--text-strong);
  font-size: 1rem;
  line-height: 1.3;
}

.billing-summary-item .status-badge {
  vertical-align: top;
}

.billing-items-table td:last-child,
.billing-items-table th:last-child {
  text-align: right;
}

.billing-item-names {
  color: var(--text-muted);
}

.billing-quantity {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-strong);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 750;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.2rem 0.45rem;
}

.billing-sync-note {
  border-block: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
  padding: 0.9rem 0;
}

.billing-credit-empty {
  align-items: center;
  border-block: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.75rem 0;
}

.billing-credit-icon {
  background: var(--surface-muted);
  border-color: var(--border);
  color: var(--text-muted);
  height: 2.15rem;
  width: 2.15rem;
}

.billing-credit-empty > div {
  display: grid;
  gap: 0.15rem;
}

.billing-credits-table td:nth-child(2),
.billing-credits-table th:nth-child(2),
.billing-credits-table td:last-child,
.billing-credits-table th:last-child {
  text-align: right;
}

@media (max-width: 720px) {
  .billing-onboarding {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .billing-primary-action {
    justify-self: start;
  }

  .billing-facts {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .billing-facts li,
  .billing-facts li:first-child {
    padding: 0.65rem 0;
  }

  .billing-facts li:first-child {
    padding-top: 0;
  }

  .billing-facts li:last-child {
    padding-bottom: 0;
  }

  .billing-facts li + li {
    border-inline-start: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  }

  .billing-summary {
    grid-template-columns: 1fr;
  }

  .billing-summary-item,
  .billing-summary-item:first-child {
    min-height: auto;
    padding: 0.75rem 0;
  }

  .billing-summary-item + .billing-summary-item {
    border-inline-start: 0;
    border-top: 1px solid var(--border);
  }

  .billing-items-table td:last-child,
  .billing-credits-table td:nth-child(2),
  .billing-credits-table td:last-child {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .billing-onboarding-main {
    display: grid;
  }

  .billing-primary-action {
    width: 100%;
  }
}

.vm-console-panel {
  display: grid;
  gap: 0.85rem;
}

.console-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.console-panel-heading {
  display: grid;
  gap: 0.25rem;
}

.console-panel-heading .eyebrow,
.console-panel-heading h2,
.console-access-summary {
  margin: 0;
}

.console-access-summary {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.console-access-summary time {
  color: var(--text);
  font-weight: 650;
}

.console-toolbar {
  align-items: center;
  background: color-mix(in srgb, var(--surface-muted) 78%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
}

.console-session-controls,
.console-access-controls,
.console-actions,
.console-grant-form {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.console-session-controls {
  flex: 1 1 auto;
  min-width: 0;
}

.console-actions {
  flex-wrap: wrap;
}

.console-access-controls {
  flex: 0 0 auto;
}

.console-connection-state {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 0.4rem;
  min-width: 6.5rem;
  white-space: nowrap;
}

.console-state-dot {
  background: var(--text-muted);
  border-radius: 999px;
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--text-muted) 10%, transparent);
  height: 0.48rem;
  width: 0.48rem;
}

.console-connection-state[data-console-state="connecting"] {
  color: var(--info);
}

.console-connection-state[data-console-state="connecting"] .console-state-dot {
  background: var(--info);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--info) 12%, transparent);
}

.console-connection-state[data-console-state="connected"] {
  color: var(--success);
}

.console-connection-state[data-console-state="connected"] .console-state-dot {
  background: var(--success);
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--success) 12%, transparent);
}

.console-toolbar button,
.console-grant-form--setup button {
  border-radius: var(--brand-control-radius-compact);
  font-size: 0.78rem;
  min-height: var(--brand-control-height-compact);
  padding: 0.32rem 0.58rem;
}

.console-grant-form label {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 0.76rem;
  font-weight: 650;
  gap: 0.45rem;
  white-space: nowrap;
}

.console-grant-form select {
  min-height: var(--brand-control-height-compact);
  padding-block: 0.3rem;
  width: 8.75rem;
}

.console-toolbar-divider {
  align-self: stretch;
  border-left: 1px solid var(--border);
  margin: 0 0.15rem;
}

.console-disable-form {
  display: flex;
}

.console-message {
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 26%, var(--border));
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
  padding: 0.65rem 0.75rem;
}

.console-viewport {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #080b10;
  border: 1px solid color-mix(in srgb, var(--border-strong) 72%, #080b10);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.025), var(--shadow-sm);
  color: #cbd5e1;
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.console-viewport:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 2px;
}

.console-viewport canvas {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.console-access-setup {
  background: color-mix(in srgb, var(--surface-muted) 64%, var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
}

.console-access-setup .setup-callout {
  margin: 0;
}

.setup-callout,
.secret-callout {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
}

.setup-callout h3,
.setup-callout p,
.secret-callout p {
  margin: 0;
}

.setup-callout h3,
.secret-callout strong {
  color: var(--text-strong);
}

.secret-callout code {
  display: block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
  padding: 0.65rem;
}

.console-grant-form--setup {
  flex-wrap: wrap;
}

.console-viewport:fullscreen {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  height: 100%;
  width: 100%;
}

@media (max-width: 1080px) {
  .console-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .console-access-controls {
    border-top: 1px solid var(--border);
    justify-content: flex-end;
    padding-top: 0.65rem;
  }
}

@media (max-width: 680px) {
  .console-panel-header,
  .console-session-controls,
  .console-access-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-access-controls,
  .console-session-controls {
    width: 100%;
  }

  .console-connection-state {
    min-width: 0;
  }

  .console-actions {
    width: 100%;
  }

  .console-grant-form {
    align-items: flex-end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .console-grant-form label {
    align-items: stretch;
    display: grid;
    gap: 0.3rem;
  }

  .console-grant-form select {
    width: 100%;
  }

  .console-toolbar-divider {
    display: none;
  }
}

@media (max-width: 420px) {
  .console-actions button {
    flex: 1 1 auto;
  }

  .console-grant-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .console-grant-form button,
  .console-disable-form,
  .console-disable-form button {
    width: 100%;
  }
}

/* VM usage detail */
.vm-usage-panel {
  display: grid;
  gap: 1.25rem;
}

.usage-panel-header,
.usage-chart-toolbar {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.usage-period,
.usage-chart-toolbar p {
  margin: 0.25rem 0 0;
}

.usage-sample-time {
  align-items: flex-end;
  color: var(--text-muted);
  display: grid;
  font-size: 0.72rem;
  gap: 0.2rem;
  text-align: right;
}

.usage-sample-time time,
.usage-sample-time strong {
  color: var(--text-strong);
  font-size: 0.76rem;
  font-weight: 650;
}

.usage-summary-grid {
  border-block: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: clamp(-1.5rem, -2.2vw, -1.15rem);
}

.usage-summary-card {
  border-right: 1px solid var(--border);
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem clamp(1rem, 2vw, 1.4rem);
}

.usage-summary-card:last-child {
  border-right: 0;
}

.usage-summary-card > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.usage-summary-card strong {
  color: var(--text-strong);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.usage-summary-card small {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.usage-chart-toolbar {
  align-items: center;
}

.usage-chart-toolbar h3,
.usage-chart-card h3 {
  color: var(--text-strong);
  font-size: 0.9rem;
  margin: 0;
}

.usage-range-picker {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  padding: 0.2rem;
}

button.usage-range-option {
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius-sm) - 2px);
  box-shadow: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 680;
  min-height: 1.9rem;
  padding: 0.35rem 0.7rem;
}

button.usage-range-option:hover {
  background: var(--surface-hover);
  color: var(--text-strong);
}

button.usage-range-option.is-selected {
  background: var(--surface-raised);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text-strong) 12%, transparent);
  color: var(--accent);
}

.usage-chart-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.usage-chart-card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 0;
  padding: 1rem;
}

.usage-chart-card--network {
  grid-column: 1 / -1;
}

.usage-chart-card > header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.usage-chart-card > header p,
.usage-chart-card > header > span {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin: 0.2rem 0 0;
}

.usage-chart-card > header > span {
  flex: none;
  font-weight: 650;
}

.usage-chart-frame {
  height: 220px;
  min-width: 0;
  position: relative;
}

.usage-chart-frame--network {
  height: 270px;
}

.usage-chart-frame canvas {
  display: block;
  height: 100% !important;
  width: 100% !important;
}

.usage-chart-load-error {
  margin: 0;
  max-width: 24rem;
  position: absolute;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
}

.usage-chart-empty {
  display: grid;
  gap: 0.35rem;
  min-height: 250px;
  place-content: center;
  text-align: center;
}

.usage-data-disclosure {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.usage-data-disclosure summary {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 680;
  width: fit-content;
}

.usage-data-disclosure .responsive-table {
  margin-top: 0.75rem;
  max-height: 22rem;
  overflow: auto;
}

.usage-data-disclosure table {
  font-size: 0.75rem;
  min-width: 720px;
}

.usage-policy-note {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin: 0;
}

@media (max-width: 900px) {
  .usage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-summary-card:nth-child(2) {
    border-right: 0;
  }

  .usage-summary-card:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .usage-panel-header,
  .usage-chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .usage-sample-time {
    align-items: start;
    text-align: left;
  }

  .usage-range-picker {
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  button.usage-range-option {
    padding-inline: 0.4rem;
  }

  .usage-chart-grid {
    grid-template-columns: 1fr;
  }

  .usage-chart-card--network {
    grid-column: auto;
  }

  .usage-chart-frame,
  .usage-chart-frame--network {
    height: 220px;
  }
}

@media (max-width: 440px) {
  .usage-summary-grid {
    grid-template-columns: 1fr;
  }

  .usage-summary-card,
  .usage-summary-card:nth-child(2) {
    border-right: 0;
  }

  .usage-summary-card:nth-child(n + 2) {
    border-top: 1px solid var(--border);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  body.page-loading::before {
    animation: none;
    transform: scaleX(0.72);
  }
}

/* Account, team, and per-VM billing surfaces. */
.settings-tabs {
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scrollbar-width: thin;
}

.settings-tabs a {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: -1px;
  min-height: var(--brand-control-height);
  padding: 0.65rem 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.settings-tabs a:hover {
  background: var(--surface-raised);
  color: var(--text-strong);
}

.settings-tabs a:focus-visible {
  outline-offset: -3px;
}

.settings-tabs a[aria-current="page"] {
  background: transparent;
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.ssh-key-section {
  padding: 0;
  overflow: hidden;
}

.ssh-key-list-heading {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}

.ssh-key-list-heading h2,
.ssh-key-list-heading p {
  margin: 0;
}

.ssh-key-list-heading p {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 0.25rem;
}

.ssh-key-count {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
}

.ssh-key-section > .empty-state {
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
}

.ssh-key-list {
  border-top: 1px solid var(--border);
}

.ssh-key-row {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(13rem, 1.25fr) minmax(10rem, 0.8fr) auto;
  padding: 1rem 1.15rem;
}

.ssh-key-row + .ssh-key-row {
  border-top: 1px solid var(--border);
}

.ssh-key-row > *,
.ssh-key-identity,
.ssh-key-fingerprint {
  min-width: 0;
}

.ssh-key-identity h3,
.ssh-key-identity p {
  overflow-wrap: anywhere;
}

.ssh-key-identity h3 {
  display: inline;
  font-size: 0.94rem;
  margin: 0 0.4rem 0 0;
}

.ssh-key-type {
  color: var(--text-muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.ssh-key-identity p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0.35rem 0 0;
}

.ssh-key-label,
.ssh-key-metadata dt {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.ssh-key-copy-value {
  align-items: start;
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
  min-width: 0;
}

.ssh-key-copy-value code {
  flex: 1 1 auto;
  font-size: 0.76rem;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ssh-key-copy-button {
  flex: 0 0 auto;
  font-size: 0.7rem;
  min-height: 1.85rem;
  padding: 0.25rem 0.45rem;
}

.ssh-key-metadata {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.ssh-key-metadata div {
  display: grid;
  gap: 0.1rem;
}

.ssh-key-metadata dd {
  color: var(--text);
  font-size: 0.75rem;
  margin: 0;
}

.ssh-key-actions {
  justify-self: end;
}

.ssh-key-actions button {
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .ssh-key-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ssh-key-fingerprint,
  .ssh-key-metadata {
    grid-column: 1 / -1;
  }

  .ssh-key-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .ssh-key-metadata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .ssh-key-list-heading,
  .ssh-key-row {
    padding-inline: 0.9rem;
  }

  .ssh-key-list-heading {
    align-items: flex-start;
  }

  .ssh-key-row {
    display: flex;
    flex-direction: column;
  }

  .ssh-key-copy-value {
    align-items: stretch;
    flex-direction: column;
  }

  .ssh-key-copy-button,
  .ssh-key-actions {
    align-self: flex-start;
  }

  .ssh-key-metadata {
    grid-template-columns: 1fr;
  }
}

.settings-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spaced-section {
  margin-top: 1rem;
}

.mfa-setup {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  margin: 1rem 0;
}

.mfa-qr {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  line-height: 0;
  padding: 0.75rem;
}

.mfa-qr svg {
  height: auto;
  max-width: 12rem;
  width: 100%;
}

.recovery-codes {
  background: color-mix(in srgb, var(--warning) 9%, var(--surface-raised));
  border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--border));
  border-radius: var(--radius);
  margin: 1rem 0;
  padding: 1rem;
}

.recovery-codes ul {
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.break-all {
  overflow-wrap: anywhere;
}

.order-progress {
  display: grid;
  gap: 1.5rem;
}

/* Stepper: marker, label, then a connector that fills the rest of the column,
   so the line never runs under the next step's text. */
.order-progress-steps {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-progress-step {
  align-items: center;
  color: var(--text-muted);
  display: grid;
  flex: 1 1 0;
  gap: 0.75rem;
  grid-template-columns: auto auto minmax(1.5rem, 1fr);
  min-width: 0;
}

.order-progress-step:last-child {
  flex: 0 1 auto;
  grid-template-columns: auto auto;
}

.order-progress-step:not(:last-child)::after {
  background: var(--border);
  border-radius: 1px;
  content: "";
  height: 2px;
}

.order-progress-step.is-done:not(:last-child)::after {
  background: var(--success);
}

.order-progress-label {
  min-width: 0;
}

.order-progress-step strong,
.order-progress-step small {
  display: block;
}

.order-progress-step strong {
  color: var(--text-muted);
  font-weight: 600;
}

.order-progress-step.is-current strong,
.order-progress-step.is-done strong {
  color: var(--text-strong);
}

.order-progress-step.is-error strong {
  color: var(--danger);
}

.order-progress-marker {
  align-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  flex: none;
  font-family: var(--brand-font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.order-progress-step.is-current .order-progress-marker {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 0.3rem color-mix(in srgb, var(--accent) 12%, transparent);
}

.order-progress-step.is-done .order-progress-marker {
  background: var(--success);
  border-color: var(--success);
  color: var(--surface-raised);
}

.order-progress-check {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  height: 0.7rem;
  margin-top: -0.15rem;
  transform: rotate(45deg);
  width: 0.38rem;
}

.order-progress-step.is-error .order-progress-marker {
  background: color-mix(in srgb, var(--danger) 10%, var(--surface-raised));
  border-color: var(--danger);
  color: var(--danger);
}

/* Status panel: indicator, what is happening, then the order facts. */
.order-progress-summary {
  align-items: start;
  background: var(--surface-muted);
  border-radius: var(--radius);
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 1.25rem 1.5rem;
}

.order-progress-copy h2 {
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
}

.order-progress-copy p {
  color: var(--brand-text-secondary);
  margin: 0;
  max-width: 62ch;
}

.order-progress-indicator {
  --indicator: var(--text-muted);
  background: var(--indicator);
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--indicator) 14%, transparent);
  height: 0.75rem;
  margin: 0.45rem 0.4rem 0;
  width: 0.75rem;
}

.status-checkout-open .order-progress-indicator {
  --indicator: var(--accent);
}

.status-active .order-progress-indicator,
.status-refunded .order-progress-indicator,
.status-credited .order-progress-indicator {
  --indicator: var(--success);
}

.status-failed .order-progress-indicator,
.status-compensated .order-progress-indicator,
.status-canceled .order-progress-indicator,
.status-expired .order-progress-indicator {
  --indicator: var(--danger);
}

/* Work in progress: a spinning ring instead of a static dot. */
.status-accepted .order-progress-indicator,
.status-provisioning .order-progress-indicator {
  animation: order-progress-spin 0.9s linear infinite;
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-top-color: var(--accent);
  box-shadow: none;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  width: 1.25rem;
}

@keyframes order-progress-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-accepted .order-progress-indicator,
  .status-provisioning .order-progress-indicator {
    animation: none;
  }
}

.order-progress-facts {
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  grid-column: 2;
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
}

.order-progress-facts dt {
  color: var(--text-muted);
  font-family: var(--brand-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.order-progress-facts dd {
  color: var(--text-strong);
  font-size: 0.9rem;
  margin: 0.1rem 0 0;
}

.order-progress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.order-progress-actions form {
  margin: 0;
}

.order-page-header h1 {
  overflow-wrap: anywhere;
}

.notice {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.notice-info {
  background: color-mix(in srgb, var(--info) 8%, var(--surface-raised));
  border-color: color-mix(in srgb, var(--info) 30%, var(--border));
}

.notice-warning {
  background: color-mix(in srgb, var(--warning) 8%, var(--surface-raised));
  border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
}

.notice-danger {
  background: color-mix(in srgb, var(--danger) 8%, var(--surface-raised));
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
}

.billing-standing {
  margin-bottom: 1rem;
}

.status-orb {
  background: var(--info);
  border-radius: 50%;
  box-shadow: 0 0 0 0.45rem color-mix(in srgb, var(--info) 14%, transparent);
  height: 0.8rem;
  width: 0.8rem;
}

.status-orb.status-active,
.status-orb.status-refunded,
.status-orb.status-credited {
  background: var(--success);
  box-shadow: 0 0 0 0.45rem color-mix(in srgb, var(--success) 14%, transparent);
}

.status-orb.status-failed,
.status-orb.status-canceled,
.status-orb.status-expired {
  background: var(--danger);
  box-shadow: 0 0 0 0.45rem color-mix(in srgb, var(--danger) 14%, transparent);
}

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

  .order-progress-steps {
    flex-direction: column;
    gap: 0.85rem;
  }

  .order-progress-step,
  .order-progress-step:last-child {
    flex: none;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .order-progress-step:not(:last-child)::after {
    display: none;
  }

  .order-progress-summary {
    padding: 1rem;
  }

  .order-progress-facts {
    grid-column: 1 / -1;
  }

  .order-progress-actions,
  .order-progress-actions .button-link {
    justify-content: stretch;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .recovery-codes ul {
    grid-template-columns: 1fr;
  }
}

/* Visual quality pass: let hierarchy come from layout and type, not repeated
   decoration. Functional status badges, focus rings, and error states remain
   unchanged. */
body {
  background: var(--bg);
}

.main-content::before {
  display: none;
}

.main-content {
  background-image: none;
}

.page-header::after,
.vm-hero::after {
  display: none;
}

.sidebar-nav a.is-current::before {
  display: none;
}

.content-section,
.summary-card,
.resource-card {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.quick-actions > a,
.quick-actions > button,
.quick-actions form button {
  background: transparent;
  border-bottom-color: var(--border);
  border-inline-color: transparent;
  border-radius: 0;
  border-top-color: transparent;
  box-shadow: none;
  padding-inline: 0.25rem;
}

.quick-actions > a:hover,
.quick-actions > button:hover,
.quick-actions form button:hover {
  background: var(--surface-muted);
  border-bottom-color: var(--border-strong);
  border-inline-color: transparent;
  border-top-color: transparent;
  box-shadow: none;
  transform: none;
}

.admin-link-grid a::before {
  display: none;
}

.admin-link-grid a:hover {
  box-shadow: none;
  transform: none;
}

.data-table th:first-child,
.data-table th:last-child {
  border-radius: 0;
}

.vm-hero {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: none;
}

/* High-impact console refresh: use one structural rule per surface, then let
   spacing, type, and status color carry the hierarchy. */
.page-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 1.15rem;
}

.summary-grid {
  border-block: 1px solid var(--border);
  gap: 0;
}

.summary-card {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  min-height: 5.75rem;
  padding: 1rem 1.1rem;
}

.summary-card:last-child {
  border-right: 0;
}

.image-filter-panel,
.audit-filter-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 1.25rem;
  padding: 0 0 1rem;
}

.audit-filter-card {
  overflow: visible;
}

.audit-filter-details > summary {
  padding: 0.2rem 0 0.75rem;
}

.audit-filter-details > summary:hover {
  background: transparent;
  color: var(--accent);
}

.audit-filter-details[open] > summary {
  border-bottom: 1px solid var(--border);
}

.audit-filter-form {
  padding: 1rem 0 0.15rem;
}

.data-table th {
  border-bottom: 2px solid var(--border);
}

.content-section > .section-heading {
  margin-bottom: 0.85rem;
}

@media (max-width: 720px) {
  .summary-grid {
    border-bottom: 0;
  }

  .summary-card {
    border-bottom: 1px solid var(--border);
    border-right: 0;
  }

  .summary-card:last-child {
    border-bottom: 0;
  }
}

/* Operations dashboard: compact inventory and health signals without the
   decorative card treatment used by older overview surfaces. */
.dashboard-page-header {
  margin-bottom: 1rem;
}

.dashboard-page-header h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

/* Machines and their attention strip on the left, the activity feed beside them. */

/* Apps and databases share a row when both are shown. */

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-attention-list a {
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: none;
}

.dashboard-attention-list a:hover {
  color: var(--link-hover);
}

.dashboard-attention {
  background: var(--warning-soft);
  border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
  border-radius: var(--radius, 0.75rem);
  padding: 0.85rem 1.1rem;
}

.dashboard-attention-head {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.dashboard-attention-head h2 {
  align-items: center;
  color: var(--text-strong);
  display: inline-flex;
  font-size: 0.86rem;
  gap: 0.45rem;
  margin: 0;
}

.dashboard-attention-count {
  align-items: center;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent);
  border-radius: 999px;
  color: var(--danger);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 750;
  height: 1.65rem;
  justify-content: center;
  min-width: 1.65rem;
  padding-inline: 0.35rem;
}

.dashboard-attention-list .status-orb {
  box-shadow: none;
  flex: 0 0 auto;
  height: 0.52rem;
  margin-top: 0.3rem;
  width: 0.52rem;
}

.dashboard-attention-list div {
  display: grid;
  gap: 0.16rem;
}

.dashboard-attention-list strong {
  color: var(--text-strong);
  font-size: 0.8rem;
}

.dashboard-attention-list span {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.dashboard-attention-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.dashboard-attention-list li {
  align-items: start;
  border-top: 1px solid color-mix(in srgb, var(--warning) 20%, transparent);
  display: flex;
  gap: 0.65rem;
  padding: 0.6rem 0;
}

.dashboard-attention-list li:last-child {
  padding-bottom: 0;
}

.dashboard-attention-list .status-orb.status-danger {
  background: var(--danger);
}

.dashboard-attention-list .status-orb.status-warning {
  background: var(--warning);
}

.dashboard-attention-list a {
  font-size: 0.76rem;
}

.dashboard-more-issues {
  display: inline-block;
  font-size: 0.76rem;
  margin-top: 0.6rem;
}

.dashboard-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-activity-list li {
  align-items: center;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.7rem 1.1rem;
}

.dashboard-activity-marker {
  background: var(--info);
  border-radius: 50%;
  height: 0.46rem;
  width: 0.46rem;
}

.dashboard-activity-marker.status-success {
  background: var(--success);
}

.dashboard-activity-marker.status-warning {
  background: var(--warning);
}

.dashboard-activity-marker.status-danger {
  background: var(--danger);
}

.dashboard-activity-marker.status-neutral {
  background: var(--text-muted);
}

.dashboard-activity-main {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.dashboard-activity-main strong {
  color: var(--text-strong);
  font-size: 0.8rem;
}

.dashboard-activity-main > span,
.dashboard-activity-list time {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.dashboard-activity-main a {
  color: var(--link);
  text-decoration: none;
}

.dashboard-activity-list time {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .dashboard-table-wrap {
    overflow: visible;
  }

  .dashboard-activity-list li {
    align-items: start;
  }
}

@media (max-width: 480px) {
  .dashboard-activity-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-activity-list time {
    grid-column: 2;
  }
}

/* Shared public/console refinement. Keep state colors and responsive behavior
   in their component rules; typography and structural surfaces are shared. */
button,
.button-link,
.link-button {
  font-weight: 620;
}

.brand { font-weight: 700; }

.eyebrow,
.nav-label,
.top-context-label,
.sidebar-footer-label {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.eyebrow,
.top-context-label { color: var(--text-muted); }

.sidebar-nav a {
  border-radius: var(--brand-control-radius);
  font-weight: 500;
}

.sidebar-nav a.is-current {
  border-color: rgb(255 255 255 / 0.14);
  box-shadow: none;
  font-weight: 600;
}

.sidebar-nav a.is-current .icon { color: inherit; }

.top-bar {
  background: var(--bg);
  backdrop-filter: none;
}

.user-chip {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 500;
}

.top-bar .icon-button {
  background: transparent;
  border-color: transparent;
}

.top-bar .icon-button:hover {
  background: var(--surface-hover);
  border-color: var(--border);
}

.page-header {
  animation: none;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
}

.page-header h1,
.vm-hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.page-header .eyebrow { margin-bottom: 0.65rem; }

.content-section h2,
.resource-card h3,
.resource-row h2,
.modal-header h2,
.section-heading h2,
.auth-support h3,
.app-support h2 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-description,
.page-subtitle { font-size: 0.9375rem; }

.summary-card strong,
.metric-card strong {
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}

.data-table th { font-weight: 600; }

.form-panel { border-left-width: 1px; }
.activity-filter-panel { border-top-width: 1px; }

.support-link-list a { font-weight: 550; }
.auth-support h3 { font-size: 0.9rem; }
.auth-support .support-link-list { font-size: 0.82rem; }
.auth-support .support-pending { font-size: 0.75rem; line-height: 1.5; }
.app-support-copy > p:not(.eyebrow) { font-size: 0.82rem; }

@media (max-width: 960px) {
  .auth-form-wrap { padding: 7rem 1.5rem 3rem; }
}

@media (max-width: 480px) {
  .auth-panel h1 { font-size: 2rem; }
  .auth-form-wrap { align-content: start; }
}
