/* AI Commander — dashboard app shell (sidebar, topbar, views). */

/* Dashboard-only tokens live in dashboard.css :root (login.html loads that
   file but not this one, and its form fields use them too). */

/* Base links. :where() keeps specificity at zero so every component rule
   (.dash-nv, .dash-tabs a, .btn, …) still wins without !important. */
:where(.dash-app a) { color: var(--accent); text-decoration: none; }
:where(.dash-content a:not([class]):hover) {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Action links (View all →, Manage, Change in Security →). */
:where(.dash-content a:not([class])) { font-weight: 600; }

/* Vertical rhythm: 24px between a view's blocks, 16px inside a group. */
section[data-view]:not([hidden]),
#overview-empty:not([hidden]),
#overview-full:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}
[data-access-panel]:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
.dash-content section[data-view] .table-card,
.dash-content [data-access-panel] .inline-form,
.dash-content [data-access-panel] .reveal-box,
.dash-content [data-access-panel] .field-hint,
.dash-content [data-access-panel] .field-error,
.dash-content [data-access-panel] .section-lede,
.dash-content [data-access-panel] h3,
.dash-content .billing-card,
.dash-content .account-card { margin: 0; }
.dash-content [data-access-panel] h3 + .section-lede { margin-top: calc(-1 * var(--space-3)); }
.dash-content .table-card-flush { margin: 0; }

html:has(body.dash-app),
body.dash-app {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.dash-app { line-height: 1.5; font-size: var(--fs-body); }

.boot-veil { inset: 0; }

.dash-app-shell {
  display: flex;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
}
.dash-app-shell[hidden] { display: none; }

.dash-side {
  width: 248px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 2px;
  box-sizing: border-box;
  overflow-y: auto;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.dash-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}
.dash-nv {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
}
.dash-nv:hover { background: var(--dash-nav-hover); color: var(--ink); }
.dash-nv.on {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px var(--dash-shadow-ink-08), 0 0 0 1px var(--border);
}
.dash-nv.on svg { color: var(--accent); }
.dash-nv .ct {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.dash-grp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  padding: 18px 10px 6px;
}
.dash-me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}
.dash-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.dash-me-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.dash-me-email {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-me-meta { font-size: 12.5px; color: var(--muted); }

.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}
.dash-top {
  position: relative;
  z-index: 30;
  height: 64px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  background: var(--bg);
}
.dash-crumb { font-size: 14px; color: var(--muted); }
.dash-crumb b { color: var(--ink); font-weight: 600; }
.dash-top-spacer { flex: 1; }
.dash-top-logo,
.dash-jump-open,
.dash-top-av { display: none; }

.dash-jump {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  width: min(260px, 100%);
  min-width: 140px;
  flex: 1 1 180px;
  max-width: 260px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  box-sizing: border-box;
}
.dash-jump-ic { flex-shrink: 0; }
.dash-jump-q {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  height: 100%;
  padding: 0;
}
.dash-jump-q::placeholder { color: var(--muted); }
.dash-jump-q::-webkit-search-decoration,
.dash-jump-q::-webkit-search-cancel-button { -webkit-appearance: none; }
.dash-jump:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}
.dash-jump-kbd {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--muted);
  flex-shrink: 0;
}
.dash-jump-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 50;
  padding: 6px;
  margin: 0;
  list-style: none;
}
.dash-jump-menu[hidden] { display: none; }
.dash-jump-menu li {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.dash-jump-menu li.is-active,
.dash-jump-menu li:hover { background: var(--bg-alt); }
.dash-jump-empty {
  color: var(--muted);
  cursor: default;
  font-weight: 400;
}
.dash-jump-empty:hover { background: transparent; }

.access-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
}
.access-chip .btn {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.dash-content {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: auto;
  flex: 1;
  min-width: 0;
}
.dash-h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}
.dash-lede {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
}
.dash-page-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.dash-page-head .dash-grow { flex: 1; }
.dash-head-actions { display: flex; gap: 10px; flex-shrink: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.card-pad { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card-pad h2 { margin: 0; font-size: 15px; font-weight: 600; }
.card-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.row-between { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.machine-add-panel form { display: flex; flex-direction: column; gap: 14px; }
.dash-content .aic-picker { margin: 0; }
.card-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.card-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.card-h .sub { color: var(--muted); font-size: 13px; }
.card-h .grow { flex: 1; }

.dash-stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.dash-stat-k { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dash-stat-v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.dash-stat-v .sub { font-size: 16px; color: var(--muted); font-weight: 500; }
.dash-stat-d { font-size: 12.5px; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.overview-grid > .card { overflow: hidden; }
.overview-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cell-right { text-align: right; }
.nm { font-weight: 600; }
/* Machine aliases read as identifiers: mono everywhere (Overview, table, cards). */
.nm.mono, .alias-text.mono { font-family: var(--mono); font-size: 13.5px; }
.meta { color: var(--muted); font-size: 12.5px; }

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--hairline);
  gap: 2px;
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.seg button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px var(--dash-shadow-ink-08);
  font-weight: 600;
}
.seg .ct { color: var(--label); font-weight: 500; }

.dash-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.dash-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
}
.dash-tabs a.on {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.dash-tabs a .ct {
  font-size: 12px;
  background: var(--hairline);
  border-radius: 999px;
  padding: 1px 7px;
  color: var(--ink-2);
}

.help {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help h3 { margin: 0; font-size: 13px; font-weight: 600; }
.help p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.help-row { display: flex; gap: 10px; align-items: flex-start; }
.help-row svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.access-layout {
  display: flex;
  gap: 20px;
  align-items: start;
}
.access-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.access-aside { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }

.machines-layout { display: flex; gap: 20px; align-items: start; }
.machines-layout .table-card { flex: 1; min-width: 0; margin: 0; overflow: visible; }
.machines-layout .table-scroll { min-width: 0; }
.machine-add-panel {
  width: 340px;
  flex-shrink: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 40px var(--dash-shadow-ink-10);
}
.machine-add-panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; gap: 8px; }
.panel-head h2 { margin: 0; font-size: 16px; flex: 1; }
.machine-add-panel .field-label { margin-bottom: 6px; }
.machine-add-panel .aic-cmd-row { align-items: flex-start; min-width: 0; }
.machine-add-panel .aic-cmd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.machine-toolbar { display: flex; align-items: center; gap: 12px; }
.machine-toolbar .grow { flex: 1; }
.machine-search { width: 240px; }

.row-menu { position: relative; display: inline-block; }
.row-menu > summary {
  list-style: none;
  cursor: pointer;
}
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 5;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--term-bg);
  color: var(--term-text);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.code-row .p { color: var(--accent-bright); }
.code-row .cmd { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.meter { height: 6px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--ink-2);
  font-family: var(--mono);
  white-space: nowrap;
}

.onboarding { display: flex; gap: 20px; align-items: start; }
.onboarding-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.step-card { padding: 22px; display: flex; gap: 18px; }
.step-card h2 { margin: 0; font-size: 16px; }
.step-n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--card);
}
.step-n.pending {
  background: transparent;
  border: 1.5px solid var(--dash-step-border);
  color: var(--muted);
}
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step-body .aic-cmd-row { min-width: 0; }
.step-body .aic-cmd { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.step-body > .btn,
.step-body > a.btn { align-self: flex-start; }
.step-card.current { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-bg); }

.overview-attention-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}

.usage-chart {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.usage-bar {
  flex: 1;
  min-width: 0;
  height: 0;
  background: var(--accent-border);
  border-radius: 4px 4px 0 0;
}
.usage-bar-recent { background: var(--accent); }
.usage-chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
}
.usage-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.usage-raw { margin-top: 0; }

.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-danger { color: var(--danger-text); }

.dash-ic { flex-shrink: 0; }

.dash-tabbar { display: none; }
.dash-subtabs { display: none; }

.machines-cards { display: none; }
.machine-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}
.machine-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.machine-card-head .cell-alias {
  flex: 1;
  min-width: 0;
}
.machine-card-head .alias-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.machine-card-head .status-pill,
.machine-card-head .machine-status-stack { flex-shrink: 0; }
.machine-card-head:has(.rename-form) { flex-wrap: wrap; }
.machine-card-head .cell-alias:has(.rename-form) { flex-basis: 100%; }
.machine-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  overflow-wrap: anywhere;
}
.machine-card .alias-meta { align-self: flex-start; max-width: 100%; }
.machine-card .row-menu { flex-shrink: 0; }
.machine-card .rename-form { width: 100%; }
.machine-card .rename-form .input-prefix { min-width: 0; }
.machine-cards-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  padding: 16px;
  text-align: center;
}
.machine-cards-error { color: var(--danger-text); }

@media (max-width: 1100px) {
  .stat-grid, .usage-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid, .access-layout, .machines-layout, .onboarding {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .access-aside, .machine-add-panel { width: 100%; }
}
@media (max-width: 768px) {
  .dash-side { display: none; }
  .dash-tabbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--card);
    border-top: 1px solid var(--border);
    z-index: 40;
    box-sizing: border-box;
  }
  .dash-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    min-width: 0;
  }
  .dash-tab.on {
    color: var(--accent);
    font-weight: 600;
  }
  .dash-tab svg { flex-shrink: 0; }

  .dash-subtabs:not([hidden]) {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    margin: -8px 0 0;
  }
  .dash-subtabs a {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 500;
  }
  .dash-subtabs a.on {
    color: var(--ink);
    border-bottom-color: var(--accent);
    font-weight: 600;
  }

  .dash-top {
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    flex-wrap: wrap;
    gap: 8px 12px;
    position: relative;
  }
  .dash-top-logo {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .dash-top-logo img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: block;
  }
  .dash-crumb-prefix { display: none; }
  .dash-crumb {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: var(--ink);
    font-weight: 700;
  }
  .dash-crumb b { font-weight: 700; }
  .dash-top-spacer { display: none; }
  .dash-jump {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 16px;
    right: 16px;
    width: auto;
    z-index: 45;
  }
  .dash-jump.is-open { display: flex; }
  .dash-jump-kbd { display: none; }
  .dash-jump-menu { min-width: 0; }
  .dash-jump-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
  }
  .dash-jump-open:hover { color: var(--ink); }
  .dash-jump-open:focus-visible,
  .dash-top-av:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
  .dash-top-av {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--card);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    text-decoration: none;
  }
  .access-chip {
    flex: 1 1 100%;
    justify-content: space-between;
    height: auto;
    min-height: 36px;
    box-sizing: border-box;
    max-width: 100%;
  }

  .dash-content {
    padding: 16px;
    padding-bottom: calc(16px + 72px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100%;
  }
  .dash-h1 { font-size: 24px; }
  .card-h { flex-wrap: wrap; }
  .stat-grid, .usage-tiles { grid-template-columns: 1fr 1fr; }
  .stat-grid .dash-stat:nth-child(n + 3) { display: none; }

  .dash-content > *,
  .access-layout,
  .access-main,
  .machines-layout,
  .overview-grid,
  .onboarding,
  .card {
    min-width: 0;
    max-width: 100%;
  }

  /* Stack the head: title + lede take the full width, actions wrap below. */
  .dash-page-head { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .dash-page-head .dash-grow { flex: none; min-width: 0; }
  .dash-page-head > .btn { align-self: flex-start; }
  .dash-head-actions { flex-wrap: wrap; gap: var(--space-2); }
  .dash-head-actions > .btn { flex: 1 1 auto; justify-content: center; }
  .dash-lede { overflow-wrap: break-word; }
  .usage-chart-axis { flex-wrap: wrap; gap: 4px; }

  .machine-toolbar { flex-wrap: wrap; }
  .machine-toolbar .grow { display: none; }
  .machine-toolbar .seg {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .machine-search { width: 100%; min-width: 0; }

  .machines-layout > .table-card { display: none; }
  .machines-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    width: 100%;
    overflow: visible;
  }
  .machine-card .row-menu > summary.icon-btn {
    width: 44px;
    height: 32px;
    border-radius: 8px;
  }
  .machine-card .row-menu-panel { z-index: 60; }

  .dash-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    contain: paint;
  }
  .dash-tabs a { flex-shrink: 0; white-space: nowrap; }

  .table-card {
    max-width: 100%;
    contain: paint;
  }
  .field-hint, .section-lede { overflow-wrap: anywhere; }
  .inline-field-grow, .inline-form .field-input { min-width: 0; }

  #overview-machines { display: block; width: 100%; }
  #overview-machines tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 2px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
    align-items: center;
  }
  #overview-machines tr:last-child { border-bottom: 0; }
  #overview-machines td {
    padding: 0;
    border: 0;
    width: auto;
    white-space: normal;
  }
  #overview-machines td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  #overview-machines td:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }
  #overview-machines td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }
  #overview-machines td:first-child .nm {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
