@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/raleway-400.ttf") format("truetype");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/raleway-500.ttf") format("truetype");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./assets/fonts/raleway-600.ttf") format("truetype");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./assets/fonts/raleway-700.ttf") format("truetype");
}

:root {
  --ds-color-navy: #0a122a;
  --ds-color-navy-light: #c9d2e1;
  --ds-color-green: #21cc36;
  --ds-color-green-light: #ccf1d2;
  --ds-color-yellow: #f0c808;
  --ds-color-yellow-light: #fbe9a2;
  --ds-color-platinum: #f3f4f6;
  --ds-color-platinum-light: #e6e5e3;
  --ds-color-pink: #e81167;
  --ds-color-pink-light: #f7cde1;
  --ds-color-red: #d32f2f;
  --ds-color-red-light: #f8cccc;
  --ds-color-light-blue: #4a90e2;
  --ds-color-light-blue-light: #cfe3f9;
  --ds-color-signal-blue: #69a2b0;
  --ds-color-signal-blue-light: #d1e5eb;
  --ds-color-teal: #09b180;
  --ds-color-teal-light: #c6eee4;
  --ds-color-white: #ffffff;
  --ds-color-soft: #f7f7f7;
  --ds-color-chip: #f0f0f0;
  --ds-color-black: #101318;
  --ds-color-body: #636466;
  --ds-text-title: var(--ds-color-navy);
  --ds-text-body: var(--ds-color-body);
  --ds-text-muted: #8b909a;
  --ds-text-strong: #111827;
  --ds-bg-app: var(--ds-color-soft);
  --ds-bg-surface: var(--ds-color-white);
  --ds-bg-alt: var(--ds-color-chip);
  --ds-border-default: #e5e7eb;
  --ds-border-strong: #d1d5db;
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  --ds-radius-pill: 999px;
  --ds-shadow-sm: 0 4px 14px rgba(10, 18, 42, 0.06);
  --ds-shadow-md: 0 12px 28px rgba(10, 18, 42, 0.12);
  --app-header: 84px;
  --ds-font-family: "Raleway", "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

html {
  font-family: var(--ds-font-family);
}

body {
  margin: 0;
  background: var(--ds-bg-app);
  color: var(--ds-text-title);
  font-family: var(--ds-font-family);
  letter-spacing: 0;
}

* {
  font-family: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--ds-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.loading-shell img {
  height: 44px;
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(105, 162, 176, 0.16), rgba(33, 204, 54, 0.08)),
    var(--ds-bg-app);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-panel {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-md);
  background: var(--ds-bg-surface);
  box-shadow: var(--ds-shadow-md);
}

.auth-logo {
  width: 168px;
  height: auto;
  margin-bottom: 28px;
}

.auth-copy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.auth-copy p:last-child {
  margin: 10px 0 0;
  color: var(--ds-text-body);
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--ds-text-title);
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--ds-border-strong);
  border-radius: 10px;
  color: var(--ds-text-title);
  background: var(--ds-bg-surface);
  outline: none;
}

.auth-form input:focus {
  border-color: var(--ds-color-navy);
  box-shadow: 0 0 0 3px rgba(10, 18, 42, 0.08);
}

.auth-form button {
  min-height: 46px;
  margin-top: 4px;
}

.auth-error {
  min-height: 18px;
  margin: 0;
  color: var(--ds-color-red);
  font-size: 13px;
  font-weight: 600;
}

.auth-error:empty,
.auth-error[hidden] {
  display: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.topbar {
  height: var(--app-header);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  background: var(--ds-bg-surface);
  border-bottom: 1px solid var(--ds-border-default);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 142px;
  height: auto;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--ds-border-default);
}

.eyebrow {
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 260px;
  padding: 0 12px;
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-pill);
  color: var(--ds-text-body);
  background: var(--ds-bg-alt);
  font-size: 12px;
  font-weight: 600;
}

.session-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.text-button,
.view-tab {
  border: 1px solid var(--ds-border-strong);
  background: var(--ds-bg-surface);
  color: var(--ds-color-navy);
  min-height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
}

.icon-button {
  width: 40px;
  padding: 0;
}

.text-button.primary {
  background: var(--ds-color-green);
  border-color: var(--ds-color-green);
  color: var(--ds-color-white);
}

.text-button.strong {
  background: var(--ds-color-navy);
  border-color: var(--ds-color-navy);
  color: var(--ds-color-white);
}

.text-button.danger {
  background: var(--ds-color-pink-light);
  border-color: var(--ds-color-pink);
  color: var(--ds-color-pink);
}

.text-button:hover,
.icon-button:hover,
.view-tab:hover {
  border-color: var(--ds-color-navy);
}

.text-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--ds-border-default);
  background: #fbfcfd;
}

.search-box {
  position: relative;
}

.search-box i,
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ds-text-muted);
  width: 18px;
  height: 18px;
}

.search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--ds-border-strong);
  border-radius: 10px;
  padding: 0 14px 0 42px;
  outline: none;
  color: var(--ds-text-strong);
  background: var(--ds-bg-surface);
}

.search-box input:focus,
.filter-select:focus,
.phase-select:focus {
  border-color: var(--ds-color-green);
  box-shadow: 0 0 0 2px rgba(33, 204, 54, 0.18);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-select,
.phase-select {
  height: 40px;
  border: 1px solid var(--ds-border-strong);
  border-radius: 10px;
  padding: 0 34px 0 12px;
  background: var(--ds-bg-surface);
  color: var(--ds-text-strong);
  min-width: 148px;
  outline: none;
  font-size: 13px;
  font-weight: 600;
}

.main {
  padding: 22px 28px 28px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.metric {
  background: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  padding: 15px 16px;
  min-width: 0;
  box-shadow: var(--ds-shadow-sm);
}

.metric-label {
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.metric-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: var(--ds-color-navy);
}

.metric-sub {
  color: var(--ds-text-muted);
  font-size: 12px;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ds-color-red);
  border-radius: 8px;
  background: var(--ds-color-red-light);
  color: var(--ds-color-red);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
}

.error-banner svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.view-tab.active {
  background: var(--ds-color-navy);
  border-color: var(--ds-color-navy);
  color: var(--ds-color-white);
}

.board {
  display: grid;
  grid-auto-columns: minmax(302px, 330px);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  min-height: calc(100vh - 330px);
}

.phase-column {
  background: #fdfdfd;
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.phase-column.drag-over {
  border-color: var(--ds-color-green);
  box-shadow: inset 0 0 0 2px rgba(33, 204, 54, 0.18);
}

.phase-head {
  padding: 13px 13px 12px;
  border-bottom: 1px solid var(--ds-border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phase-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.phase-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--ds-radius-pill);
  background: var(--tone, var(--ds-color-light-blue));
  flex: 0 0 auto;
}

.phase-title h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phase-count {
  min-width: 30px;
  min-height: 24px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-bg-alt);
  color: var(--ds-color-navy);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

.card-list {
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: calc(100vh - 368px);
  overflow-y: auto;
}

.lead-card {
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  background: var(--ds-bg-surface);
  padding: 12px;
  box-shadow: var(--ds-shadow-sm);
  cursor: pointer;
  outline: none;
}

.lead-card:hover {
  border-color: var(--ds-color-navy-light);
}

.lead-card:focus-visible,
.card-row:focus-visible {
  border-color: var(--ds-color-green);
  box-shadow: 0 0 0 2px rgba(33, 204, 54, 0.18);
}

.lead-card.dragging {
  opacity: 0.45;
}

.lead-card-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.lead-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ds-color-navy);
  overflow-wrap: anywhere;
}

.lead-id {
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.lead-meta {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ds-text-body);
}

.lead-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.lead-meta-row span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ds-text-strong);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border-radius: var(--ds-radius-pill);
  padding: 5px 9px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  border: 1px solid transparent;
  color: var(--ds-color-navy);
  background: var(--ds-bg-alt);
}

.tag.green {
  background: var(--ds-color-green-light);
  color: var(--ds-color-teal);
  border-color: #8fdaa0;
}

.tag.blue {
  background: var(--ds-color-light-blue-light);
  color: var(--ds-color-light-blue);
}

.tag.yellow {
  background: var(--ds-color-yellow-light);
  color: #7a6100;
}

.tag.pink {
  background: var(--ds-color-pink-light);
  color: var(--ds-color-pink);
}

.tag.red {
  background: var(--ds-color-red-light);
  color: var(--ds-color-red);
}

.tag.teal {
  background: var(--ds-color-teal-light);
  color: var(--ds-color-teal);
}

.table-wrap,
.dictionary-wrap {
  background: var(--ds-bg-surface);
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  overflow: auto;
  box-shadow: var(--ds-shadow-sm);
  max-height: calc(100vh - 340px);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1460px;
}

th,
td {
  border-bottom: 1px solid var(--ds-border-default);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ds-bg-alt);
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

tbody tr:hover {
  background: rgba(74, 144, 226, 0.08);
}

.card-row {
  cursor: pointer;
  outline: none;
}

.table-title {
  max-width: 260px;
  color: var(--ds-color-navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.table-link {
  color: var(--ds-color-light-blue);
  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.dictionary-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--ds-border-default);
  background: #fbfcfd;
  position: sticky;
  top: 0;
  z-index: 2;
}

.dictionary-header h2 {
  margin: 0;
  font-size: 16px;
}

.connections-wrap {
  display: grid;
  gap: 18px;
}

.connections-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  background: var(--ds-bg-surface);
  padding: 18px;
  box-shadow: var(--ds-shadow-sm);
}

.connections-hero h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.connections-hero p {
  max-width: 860px;
  margin: 8px 0 0;
  color: var(--ds-text-body);
  font-size: 14px;
  line-height: 1.55;
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px;
}

.connection-method {
  min-width: 0;
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  background: var(--ds-bg-surface);
  padding: 14px;
  box-shadow: var(--ds-shadow-sm);
}

.connection-method header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.connection-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: var(--ds-color-green-light);
  color: var(--ds-color-teal);
}

.connection-icon svg,
.connection-panel-head svg {
  width: 18px;
  height: 18px;
}

.connection-method h3,
.connection-panel-head h3,
.code-card h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.connection-method header span:not(.connection-icon) {
  display: inline-block;
  margin-top: 4px;
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.connection-method p {
  min-height: 66px;
  margin: 12px 0;
  color: var(--ds-text-body);
  font-size: 13px;
  line-height: 1.5;
}

.connection-method dl {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
  font-size: 12px;
}

.connection-method dt {
  color: var(--ds-text-muted);
  font-weight: 700;
}

.connection-method dd {
  min-width: 0;
  margin: 0;
  color: var(--ds-text-strong);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.connection-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.connection-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 2px;
}

.connection-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-color-navy);
}

.connection-panel-head svg {
  color: var(--ds-color-teal);
}

.connection-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 14px 14px 32px;
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  background: var(--ds-bg-surface);
  color: var(--ds-text-body);
  font-size: 13px;
  line-height: 1.45;
}

.connection-list code,
.action-row code,
.code-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.connection-list code {
  color: var(--ds-color-navy);
  font-size: 12px;
  font-weight: 700;
}

.action-catalog {
  display: grid;
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ds-bg-surface);
}

.action-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--ds-border-default);
  color: var(--ds-text-body);
  font-size: 13px;
}

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

.action-row code {
  color: var(--ds-color-navy);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.code-card {
  min-width: 0;
}

.code-card h4 {
  margin-bottom: 8px;
}

.code-card pre {
  min-height: 260px;
  margin: 0;
  padding: 13px;
  border-radius: 8px;
  background: var(--ds-color-navy);
  color: var(--ds-color-white);
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 10px;
  padding: 14px;
}

.field-row {
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  padding: 12px;
  background: var(--ds-bg-surface);
}

.field-row h3 {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.3;
}

.field-row dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin: 0;
  color: var(--ds-text-body);
  font-size: 12px;
}

.field-row dt {
  color: var(--ds-text-muted);
  font-weight: 700;
}

.field-row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 42, 0.28);
  z-index: 60;
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(620px, 100vw);
  background: var(--ds-bg-surface);
  z-index: 70;
  box-shadow: var(--ds-shadow-md);
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.drawer-head {
  padding: 20px;
  border-bottom: 1px solid var(--ds-border-default);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.drawer-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.drawer-phase {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ds-border-default);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.drawer-body {
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.detail-section {
  margin-bottom: 22px;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ds-text-muted);
  text-transform: uppercase;
}

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

.detail-item {
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.detail-label {
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}

.detail-value {
  color: var(--ds-text-strong);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.detail-value input,
.detail-value select,
.detail-value textarea {
  width: 100%;
  border: 1px solid var(--ds-border-strong);
  border-radius: 8px;
  background: var(--ds-bg-surface);
  color: var(--ds-text-strong);
  min-height: 38px;
  padding: 8px 10px;
  outline: none;
}

.detail-value textarea {
  resize: vertical;
}

.detail-value input:focus,
.detail-value select:focus,
.detail-value textarea:focus {
  border-color: var(--ds-color-green);
  box-shadow: 0 0 0 2px rgba(33, 204, 54, 0.18);
}

.empty-state {
  min-height: 360px;
  border: 1px dashed var(--ds-border-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ds-text-muted);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .topbar,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .filters {
    justify-content: flex-start;
  }

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

  .dictionary-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .connection-grid,
  .code-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .connection-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --app-header: auto;
  }

  .topbar,
  .toolbar,
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-copy {
    border-left: 0;
    padding-left: 0;
  }

  .metrics,
  .dictionary-grid,
  .detail-grid,
  .connection-grid,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-select {
    width: 100%;
  }

  .board {
    grid-auto-columns: minmax(286px, 92vw);
  }

  .connections-hero {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr;
  }
}
