/* Travlaw Atlas 3: adaptive, scroll-free calculator workspace. */
:root {
  color-scheme: light;
  --atlas-ink: #10243b;
  --atlas-muted: #5f7288;
  --atlas-page: #eef2f7;
  --atlas-panel: #ffffff;
  --atlas-line: #cfdae6;
  --atlas-line-strong: #9fb1c5;
  --atlas-primary: #174f7d;
  --atlas-primary-dark: #071426;
  --atlas-primary-soft: #e5eef7;
  --atlas-cobalt: #2f6fa7;
  --atlas-cobalt-soft: #e8f1f8;
  --atlas-gold: #e7b85b;
  --atlas-gold-soft: #fff2c8;
  --atlas-danger: #ad3d46;
  --atlas-success: #23745b;
  --atlas-shadow: 0 8px 24px rgba(7, 20, 38, .09);
  --atlas-topbar: 72px;
  --atlas-rail: 292px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { letter-spacing: 0; }
html, body { min-width: 320px; overflow-x: hidden; color: var(--atlas-ink); background: var(--atlas-page); }
.scrim[hidden] { display: none !important; }
button, input, select, textarea { border-radius: 5px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(47, 111, 167, .35);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  grid-template-columns: var(--atlas-rail) minmax(0, 1fr);
  grid-template-rows: var(--atlas-topbar) minmax(0, 1fr);
}

.topbar {
  height: var(--atlas-topbar);
  gap: 16px;
  padding: 0 24px;
  color: #fff;
  background: rgba(7, 20, 38, .98);
  border-bottom: 4px solid var(--atlas-gold);
  box-shadow: 0 2px 14px rgba(4, 42, 35, .18);
}

.brand { min-width: 238px; gap: 11px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--atlas-gold);
  color: var(--atlas-gold-soft);
  background: rgba(255, 255, 255, .05);
  font-family: Georgia, serif;
  font-size: 23px;
}
.brand strong { color: #fff; font-family: Georgia, serif; font-size: 19px; }
.brand small { margin-top: 1px; color: #9fb3c9; font-size: 10px; }
.suite-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(171, 198, 224, .15);
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
}
.suite-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 5px;
  color: #9fb3c9;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.suite-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.suite-nav a.active { color: #071426; background: var(--atlas-gold); }
.suite-nav b { font-size: 8px; letter-spacing: .08em; }

.workspace-controls {
  display: inline-flex;
  padding: 3px;
  background: rgba(0, 0, 0, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
}
.view-toggle {
  min-height: 30px;
  padding: 5px 10px;
  color: #d9e5f2;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}
.view-toggle:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.view-toggle.active { color: var(--atlas-primary-dark); background: var(--atlas-gold); }

.profile-controls { margin-left: auto; gap: 8px; }
.profile-portrait {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  color: var(--atlas-gold-soft);
  background: #102a46;
  border: 1px solid var(--atlas-gold);
}
.profile-portrait img { width: 42px; }
.profile-field {
  min-height: 42px;
  padding: 3px 5px 3px 9px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
}
.profile-field > span { color: #9fb3c9; letter-spacing: 0; }
.profile-controls select,
.profile-controls select:hover {
  height: 32px;
  min-width: 108px;
  color: #10243b;
  background: #fff;
  border-color: #9fb1c5;
  color-scheme: light;
}
.profile-controls select option { color: var(--atlas-ink); background: #fff; }
.profile-controls select option:checked { color: #fff; background: var(--atlas-primary); }
#globalTribe { min-width: 118px; }
#globalSpeed { min-width: 88px; }
.offline-badge { color: var(--atlas-gold-soft); border-color: var(--atlas-gold); }

.sidebar {
  top: var(--atlas-topbar);
  height: calc(100vh - var(--atlas-topbar));
  padding: 14px 12px 10px;
  overflow: hidden;
  color: #d9e5f2;
  background: #0a1a2e;
  border-right: 1px solid #243b56;
}
.nav-search { display: block; margin: 0 2px 11px; }
.nav-search > span {
  display: block;
  margin: 0 4px 5px;
  color: #829ab4;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.nav-search input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: #fff;
  background: #071426;
  border: 1px solid #304966;
  outline: none;
  font-size: 12px;
}
.nav-search input::placeholder { color: #748ca6; }
.nav-search input:focus { border-color: var(--atlas-gold); box-shadow: 0 0 0 2px rgba(212, 167, 25, .18); }

#navigation { display: grid; gap: 5px; }
.nav-group { margin: 0; }
.nav-group[hidden], .nav-link[hidden] { display: none !important; }
.nav-group-toggle {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  color: #a8bdd2;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.nav-group-toggle:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-group.open .nav-group-toggle { color: var(--atlas-gold-soft); border-color: #405775; background: #071426; }
.nav-count {
  min-width: 22px;
  padding: 2px 6px;
  color: #8fa8c1;
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  text-align: center;
  font-size: 9px;
}
.nav-group.open .nav-count { color: var(--atlas-primary-dark); background: var(--atlas-gold); }
.nav-group-items { display: none; padding: 4px 0 1px; }
.nav-group.open .nav-group-items { display: grid; gap: 3px; }
.nav-link {
  min-height: 38px;
  gap: 9px;
  padding: 3px 6px;
  color: #d9e5f2;
  border: 1px solid transparent;
  border-radius: 5px;
}
.nav-link:hover { color: #fff; background: #143453; border-color: #395a7a; }
.nav-link.active {
  color: #071426;
  background: var(--atlas-gold);
  box-shadow: none;
  font-weight: 800;
}
.nav-icon {
  width: 32px;
  height: 31px;
  flex-basis: 32px;
  background: #071426;
  border-color: #304966;
}
.nav-icon img { width: 31px; height: 29px; }
.nav-link.active .nav-icon { background: #fff8d7; border-color: #8e7419; }
.nav-label { font-size: 11px; }
.sidebar-footer {
  margin-top: 10px;
  padding: 9px 6px 0;
  color: #7f97b0;
  border-color: #304966;
}
.sidebar-footer a { color: var(--atlas-gold-soft); }
.suite-links-mobile { display: none; }

.workspace {
  min-width: 0;
  padding: 24px clamp(22px, 3vw, 52px) 56px;
  color: var(--atlas-ink);
  background: var(--atlas-page);
}
.page-header,
.content { width: 100%; max-width: 1720px; }
.page-header { margin-bottom: 18px; align-items: center; }
.page-header h1 {
  margin-bottom: 4px;
  color: var(--atlas-primary-dark);
  font-family: Georgia, serif;
  font-size: 30px;
}
.page-header p { max-width: 880px; color: var(--atlas-muted); font-size: 12px; }
.page-emblem {
  width: 56px;
  height: 54px;
  flex-basis: 56px;
  background: #fff;
  border: 1px solid var(--atlas-line-strong);
  border-bottom: 3px solid var(--atlas-gold);
  box-shadow: 0 3px 12px rgba(18, 54, 46, .08);
}
.page-emblem img { width: 52px; height: 49px; }
.confidence {
  color: var(--atlas-primary-dark);
  background: var(--atlas-primary-soft);
  border-color: #a7cfc5;
  border-radius: 999px;
}
.confidence::before { content: ""; width: 6px; height: 6px; display: inline-block; margin-right: 6px; background: var(--atlas-success); border-radius: 50%; vertical-align: 1px; }

.tool-layout {
  grid-template-columns: minmax(560px, 1.12fr) minmax(420px, .88fr);
  gap: 20px;
  align-items: start;
}
.panel {
  min-width: 0;
  container-type: inline-size;
  background: var(--atlas-panel);
  border: 1px solid var(--atlas-line);
  border-top: 4px solid var(--atlas-cobalt);
  border-radius: 6px;
  box-shadow: var(--atlas-shadow);
}
.panel.gold { border-top-color: var(--atlas-gold); }
.tool-layout > .panel:first-child { border-top-color: var(--atlas-primary); }
.tool-layout > .panel:last-child { position: sticky; top: calc(var(--atlas-topbar) + 16px); }
.panel-header {
  min-height: 50px;
  padding: 11px 16px;
  border-bottom-color: var(--atlas-line);
}
.panel-header h2 { color: var(--atlas-primary-dark); font-size: 14px; }
.panel-body { min-width: 0; padding: 16px; }
.panel-body h3 { color: var(--atlas-primary-dark); letter-spacing: 0; }
.panel-note { color: var(--atlas-muted); }
.live-indicator {
  padding: 3px 7px;
  color: var(--atlas-success);
  background: #e4f5ee;
  border: 1px solid #abd5c4;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.live-indicator::before { content: ""; width: 5px; height: 5px; display: inline-block; margin-right: 5px; background: var(--atlas-success); border-radius: 50%; vertical-align: 1px; }

.field-grid { gap: 11px; }
.field { color: var(--atlas-muted); }
.field input, .field select, .field textarea,
.table-input, .table-select {
  min-width: 0;
  width: 100%;
  max-width: none;
  color: var(--atlas-ink);
  background: #fbfdfc;
  border: 1px solid var(--atlas-line-strong);
}
.field input:hover, .field select:hover, .table-input:hover, .table-select:hover { border-color: #71958b; }
.field input:focus, .field select:focus, .field textarea:focus,
.table-input:focus, .table-select:focus {
  border-color: var(--atlas-cobalt);
  box-shadow: 0 0 0 3px rgba(47, 111, 167, .12);
}
.quantity-input { display: grid; grid-template-columns: auto auto minmax(82px, 1fr) auto auto; gap: 4px; align-items: stretch; }
.quantity-input input { min-width: 0; text-align: center; }
.quantity-adjust { min-width: 43px; padding: 5px; border: 1px solid var(--atlas-line-strong); color: var(--atlas-primary-dark); background: var(--atlas-primary-soft); font-size: 10px; font-weight: 850; touch-action: none; user-select: none; }
.quantity-adjust:hover { color: #fff; background: var(--atlas-primary); }
.combat-workspace { display: grid; gap: 18px; }
.combat-settings { border-top-color: var(--atlas-gold); }
.combat-armies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.combat-unit-grid { display: grid; gap: 7px; }
.combat-unit-row { display: grid; grid-template-columns: 42px minmax(110px, .75fr) minmax(280px, 1.6fr) 106px; gap: 8px; align-items: center; padding: 7px; border: 1px solid var(--atlas-line); border-radius: 5px; background: #f8fafc; }
.combat-unit-name strong, .combat-unit-name small { display: block; }
.combat-unit-name strong { color: var(--atlas-primary-dark); font-size: 11px; }
.combat-unit-name small { color: var(--atlas-muted); font-size: 9px; }
.combat-unit-row select { width: 100%; min-height: 36px; border: 1px solid var(--atlas-line-strong); color: var(--atlas-ink); background: #fff; }
.combat-results { position: static !important; }
.combat-result-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 15px; }
.combat-result-tables h3 { margin-bottom: 7px; }
.check-field input { width: auto; }
.button {
  color: #fff;
  background: var(--atlas-primary);
  border-color: var(--atlas-primary);
  border-radius: 5px;
}
.button:hover { color: #fff; background: var(--atlas-primary-dark); }
.button.secondary { color: var(--atlas-primary-dark); background: #fff; border-color: #7fa39a; }
.button.secondary:hover { color: var(--atlas-primary-dark); background: var(--atlas-primary-soft); }
.button.gold { color: #2f2708; background: var(--atlas-gold); border-color: #a98510; }
.button.gold:hover { color: #2f2708; background: #ebc94f; }
.row-remove { color: var(--atlas-danger); background: #fff; border-color: #d8a9ad; }
.row-remove:hover { color: #fff; background: var(--atlas-danger); }

.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.metric {
  min-height: 76px;
  padding: 11px;
  background: #f7faf9;
  border-color: var(--atlas-line);
  border-left-color: var(--atlas-gold);
  border-radius: 5px;
}
.metric span { color: var(--atlas-muted); }
.metric strong { color: var(--atlas-primary-dark); font-size: 19px; }
.metric small { color: var(--atlas-muted); }
.resource-strip { gap: 7px; }
.resource {
  min-height: 60px;
  background: var(--atlas-cobalt-soft);
  border-color: #bfd4e4;
  border-radius: 5px;
}
.resource .resource-name { color: #536d7f; }
.resource strong { color: #1b5f91; }

.table-wrap {
  width: 100%;
  min-width: 0;
  overflow: visible;
  border-color: var(--atlas-line);
  border-radius: 5px;
}
table,
.editor-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  color: var(--atlas-ink);
  background: #fff;
}
th, td {
  min-width: 0;
  padding: 8px;
  overflow-wrap: anywhere;
  white-space: normal;
  border-color: var(--atlas-line);
}
th {
  position: static;
  color: #fff;
  background: var(--atlas-primary-dark);
  font-size: 9px;
}
tbody tr:nth-child(even) { background: #f5f9f7; }
tbody tr:hover { background: var(--atlas-gold-soft); }
.editor-table th:nth-child(1), .editor-table td:nth-child(1) { width: 10%; }
.editor-table th:nth-child(2), .editor-table td:nth-child(2) { width: 48%; }
.editor-table th:nth-child(3), .editor-table td:nth-child(3),
.editor-table th:nth-child(4), .editor-table td:nth-child(4) { width: 16%; }
.editor-table th:last-child, .editor-table td:last-child { width: 10%; }
.training-editor th:nth-child(1), .training-editor td:nth-child(1) { width: 8%; }
.training-editor th:nth-child(2), .training-editor td:nth-child(2) { width: 32%; }
.training-editor th:nth-child(n+3), .training-editor td:nth-child(n+3) { width: 15%; }
#networkResult th:nth-child(1), #networkResult td:nth-child(1) { width: 10%; }
#networkResult th:nth-child(2), #networkResult td:nth-child(2) { width: 36%; }
#networkResult th:nth-child(n+3), #networkResult td:nth-child(n+3) { width: 18%; }
.unit-art-cell { width: 48px; }

.unit-art { color: var(--atlas-gold-soft); background-color: #0a1a2e; box-shadow: 0 0 0 1px #526b86; }
.unit-art--fallback { color: var(--atlas-primary-dark); background: var(--atlas-gold-soft); border-color: #b89725; }
.unit-picker-art { background: var(--atlas-primary-soft); border-color: #b5c6d8; }
.unit-summary {
  background: var(--atlas-primary-soft);
  border-color: #b8c9da;
  border-left-color: var(--atlas-gold);
  border-radius: 5px;
}
.unit-summary strong { color: var(--atlas-primary-dark); }
.unit-summary span { color: var(--atlas-muted); }

.callout { color: #554510; background: var(--atlas-gold-soft); border-color: #dfca78; border-left-color: var(--atlas-gold); }
.callout.info { color: #204e6f; background: var(--atlas-cobalt-soft); border-color: #b7d0e2; border-left-color: var(--atlas-cobalt); }
.empty { color: var(--atlas-muted); }
.status-official { color: var(--atlas-success); }
.status-inferred, .status-reconstructed { color: #8b6d09; }
.status-estimate, .error { color: var(--atlas-danger); }

.portal-hero {
  min-height: 310px;
  padding: 34px 40px;
  background-color: #0b3152;
  background-image: url("assets/command-map.png");
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  border: 1px solid #315878;
  border-bottom: 5px solid var(--atlas-gold);
  border-radius: 6px;
  box-shadow: var(--atlas-shadow);
}
.hero-copy { max-width: 590px; }
.eyebrow, .section-heading span, .portal-status span { color: #f4cf52; letter-spacing: 0; }
.hero-copy h2 { color: #fff3b6; font-size: 40px; }
.hero-copy p { color: #dbe8f5; }
.portal-status {
  margin: 14px 0 26px;
  background: #fff;
  border-color: var(--atlas-line);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(18, 54, 46, .06);
}
.portal-status div { border-color: var(--atlas-line); }
.portal-status span { color: var(--atlas-primary); }
.portal-status strong { color: var(--atlas-ink); }
.section-heading h2 { color: var(--atlas-primary-dark); }
.section-heading p { color: var(--atlas-muted); }
.dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-card {
  min-height: 150px;
  background: #fff;
  border-color: var(--atlas-line);
  border-top-color: var(--atlas-gold);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(18, 54, 46, .06);
}
.dashboard-card::after { display: none; }
.dashboard-card:hover { border-color: var(--atlas-primary); transform: translateY(-2px); }
.dashboard-card .card-icon { background: var(--atlas-primary-soft); border-color: #b5c6d8; border-bottom-color: var(--atlas-gold); }
.dashboard-card h2 { color: var(--atlas-primary-dark); }
.dashboard-card p { color: var(--atlas-muted); }
.dashboard-card span:last-child { color: var(--atlas-primary); }
.card-top small { color: #698078; }

body.focus-mode .app-shell { grid-template-columns: 0 minmax(0, 1fr); }
body.focus-mode .sidebar { visibility: hidden; transform: translateX(-100%); }
body.focus-mode .workspace { grid-column: 1 / -1; }

body.compact-mode .workspace { padding-top: 16px; }
body.compact-mode .page-header { margin-bottom: 12px; }
body.compact-mode .panel-header { min-height: 42px; padding: 8px 12px; }
body.compact-mode .panel-body { padding: 12px; }
body.compact-mode .field-grid { gap: 8px; }
body.compact-mode .field input,
body.compact-mode .field select,
body.compact-mode .table-input,
body.compact-mode .table-select { padding: 6px 8px; }
body.compact-mode .metric { min-height: 62px; padding: 8px; }
body.compact-mode .metric strong { margin-top: 3px; font-size: 17px; }
body.compact-mode th,
body.compact-mode td { padding: 6px; }
body.compact-mode .resource { min-height: 48px; padding: 6px; }

@media (max-width: 1240px) {
  :root { --atlas-rail: 260px; }
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-layout > .panel:last-child { position: static; }
  .workspace { padding-inline: 26px; }
  .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .combat-armies { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .suite-nav { display: none; }
}

@media (max-width: 1020px) {
  .brand { min-width: 190px; }
  .brand small { display: none; }
  .offline-badge { display: none; }
  .field-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  :root { --atlas-topbar: 64px; }
  .app-shell { display: block; }
  .topbar { height: var(--atlas-topbar); padding: 0 10px; gap: 8px; }
  .menu-button { display: inline-grid; place-items: center; }
  .workspace-controls { display: none; }
  .brand { min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 16px; }
  .profile-field > span, .offline-badge { display: none; }
  .profile-field { min-height: 36px; padding: 2px; }
  .profile-controls select, .profile-controls select:hover { min-width: 74px; height: 32px; padding-left: 6px; padding-right: 20px; }
  #globalTribe { min-width: 92px; }
  #globalSpeed { min-width: 72px; }
  .profile-portrait { display: none; }
  .sidebar {
    top: var(--atlas-topbar);
    width: min(88vw, 310px);
    height: calc(100vh - var(--atlas-topbar));
    padding-top: 12px;
    transform: translateX(-105%);
    transition: transform .18s ease;
    box-shadow: 8px 0 24px rgba(0, 0, 0, .24);
  }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  body.focus-mode .sidebar.open { visibility: visible; transform: translateX(0); }
  .scrim { inset: var(--atlas-topbar) 0 0; background: rgba(7, 20, 38, .56); }
  .suite-links-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 9px 6px 0;
    border-top: 1px solid #304966;
  }
  .suite-links-mobile a {
    color: var(--atlas-gold-soft);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
  }
  .workspace { padding: 18px 14px 36px; }
  .page-header { align-items: flex-start; }
  .page-header h1 { font-size: 25px; }
  .confidence { display: none; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-hero { min-height: 360px; padding: 28px 22px; background-position: 52% center; }
  .hero-copy h2 { font-size: 34px; }
  .portal-status { grid-template-columns: repeat(2, 1fr); }
  .portal-status div:nth-child(2) { border-right: 0; }
  .portal-status div:nth-child(-n+2) { border-bottom: 1px solid var(--atlas-line); }
  .combat-unit-row { grid-template-columns: 42px minmax(90px, 1fr); }
  .combat-unit-row .quantity-input, .combat-unit-row select { grid-column: 1 / -1; }
  .combat-result-tables { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand > span:last-child { display: none; }
  .page-heading { align-items: flex-start; }
  .page-emblem { width: 48px; height: 46px; flex-basis: 48px; }
  .page-emblem img { width: 45px; height: 42px; }
  .field-grid, .field-grid.four { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .metric-grid, .resource-strip, .dashboard-grid { grid-template-columns: 1fr; }
  .unit-summary-row { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 7px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .quantity-input { grid-template-columns: repeat(4, 1fr); }
  .quantity-input input { grid-column: 1 / -1; grid-row: 1; }
}

@container (max-width: 410px) {
  .table-wrap { border: 0; }
  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td { display: block; width: 100%; }
  .responsive-table thead { display: none; }
  .responsive-table tbody { display: grid; gap: 9px; }
  .responsive-table tbody tr {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--atlas-line);
    border-left: 3px solid var(--atlas-primary);
    border-radius: 5px;
  }
  .responsive-table tbody tr:nth-child(even),
  .responsive-table tbody tr:hover { background: #fff; }
  .responsive-table td {
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(88px, .42fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #e5ece9;
    text-align: left !important;
  }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table td::before {
    content: attr(data-label);
    color: var(--atlas-muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
  }
  .responsive-table .unit-art-cell { width: 100%; }
  .editor-table th,
  .editor-table td,
  .training-editor th,
  .training-editor td,
  #networkResult th,
  #networkResult td { width: 100% !important; }
}

@media (max-height: 740px) and (min-width: 781px) {
  .sidebar { padding-top: 8px; }
  .nav-search { margin-bottom: 5px; }
  .nav-search > span, .sidebar-footer { display: none; }
  .nav-search input { min-height: 30px; padding-block: 4px; }
  #navigation { gap: 2px; }
  .nav-group-toggle { min-height: 27px; padding-block: 3px; }
  .nav-group-items { padding-top: 2px; }
  .nav-group.open .nav-group-items { gap: 1px; }
  .nav-link { min-height: 29px; }
  .nav-icon { width: 25px; height: 24px; flex-basis: 25px; }
  .nav-icon img { width: 24px; height: 23px; }
}

@media print {
  .workspace { background: #fff; }
  .tool-layout { display: block; }
  .tool-layout > .panel:last-child { position: static; margin-top: 16px; }
}
