@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: #f7f9fc;
  --ds-bg-surface: var(--ds-color-white);
  --ds-bg-alt: var(--ds-color-chip);
  --ds-border-default: #e5e7eb;
  --ds-border-strong: #d1d5db;
  --ds-border-soft: #eef1f5;
  --ds-radius-sm: 8px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  --ds-radius-pill: 999px;
  --ds-shadow-sm: 0 6px 16px rgba(10, 18, 42, 0.05);
  --ds-shadow-md: 0 18px 40px rgba(10, 18, 42, 0.16);
  --app-header: 72px;
  --app-sidebar: 104px;
  --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-family: var(--ds-font-family);
  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 1fr;
}

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

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

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

.brand-copy {
  min-width: 0;
  padding-left: 18px;
  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: 21px;
  line-height: 1.2;
}

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

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

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

.topbar-actions .icon-button {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.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);
  min-width: 118px;
  min-height: 38px;
  padding: 0 12px;
  box-shadow: 0 8px 18px rgba(10, 18, 42, 0.16);
}

.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 {
  border-color: var(--ds-color-navy);
}

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

.topbar-actions .text-button.strong svg {
  width: 18px;
  height: 18px;
}

.topbar-actions .icon-button svg {
  width: 22px;
  height: 22px;
  color: var(--ds-border-strong);
  stroke-width: 1.7;
}

.account-menu {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.account-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ds-color-navy);
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-navy);
  color: var(--ds-color-white);
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

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

.workspace-main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.sidebar {
  align-self: stretch;
  width: 72px;
  margin: 0 16px 12px 12px;
  padding: 96px 0 18px;
  border: 1px solid var(--ds-border-soft);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(10, 18, 42, 0.045);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 30px;
}

.side-nav-button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--ds-color-navy);
  display: inline-grid;
  place-items: center;
}

.side-nav-button.active {
  background: #f4f7fb;
  box-shadow: inset 0 0 0 1px var(--ds-border-soft);
}

.side-nav-button.disabled {
  color: #cfd5df;
  cursor: default;
  opacity: 0.52;
  pointer-events: none;
}

.side-nav-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.1;
}

.account-avatar:hover,
.account-avatar[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(10, 18, 42, 0.08);
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid var(--ds-border-default);
  border-radius: 10px;
  background: var(--ds-bg-surface);
  box-shadow: 0 20px 44px rgba(10, 18, 42, 0.16);
}

.account-popover-user {
  display: grid;
  gap: 4px;
  padding: 9px 10px 10px;
  border-bottom: 1px solid var(--ds-border-soft);
  margin-bottom: 6px;
}

.account-popover-user span {
  color: var(--ds-text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.account-popover-user strong {
  min-width: 0;
  color: var(--ds-color-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-popover button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ds-color-navy);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.account-popover button:hover {
  background: #f7f9fb;
}

.account-popover button svg {
  width: 16px;
  height: 16px;
}

.toolbar {
  display: grid;
  padding: 16px 28px 14px 0;
  border-bottom: 0;
  background: transparent;
}

.facet-toolbar {
  display: grid;
  gap: 12px;
  min-width: 0;
  position: relative;
}

.filter-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}

.filter-trigger,
.filter-search-pill,
.filter-chip {
  min-height: 42px;
  border: 1px solid #e2e7ef;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(10, 18, 42, 0.045);
}

.filter-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  width: 42px;
  padding: 0;
  background: #f7f9fc;
  color: var(--ds-color-navy);
  font-size: 13px;
  font-weight: 800;
}

.filter-trigger svg {
  width: 15px;
  height: 15px;
  color: var(--ds-color-navy);
}

.filter-trigger strong {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-color-navy);
  color: var(--ds-color-navy);
  color: var(--ds-color-white);
  font-size: 10px;
  font-weight: 800;
  padding: 0 5px;
}

.filter-search-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 min(360px, 31vw);
  background: var(--ds-bg-surface);
}

.filter-search-pill svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--ds-text-muted);
}

.filter-search-pill input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px 0 34px;
  outline: none;
  background: transparent;
  color: var(--ds-text-strong);
  font-size: 13px;
  font-weight: 700;
}

.filter-search-pill input::placeholder {
  color: var(--ds-text-muted);
  font-weight: 700;
}

.filter-field,
.facet-search {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filter-label,
.filter-field span {
  color: var(--ds-text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.filter-search-pill:focus-within,
.filter-chip:hover,
.filter-trigger:hover,
.facet-search input:focus,
.filter-input:focus,
.filter-select:focus,
.phase-select:focus {
  border-color: var(--ds-color-navy-light);
  box-shadow: 0 0 0 3px rgba(10, 18, 42, 0.06);
}

.facet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.filter-logic {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  background: #f8fafc;
}

.filter-logic button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  background: transparent;
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 800;
}

.filter-logic button.active {
  background: var(--ds-color-navy);
  color: var(--ds-color-white);
}

.active-filter-bar {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 120px;
}

.filter-empty {
  color: var(--ds-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 280px;
  background: #ffffff;
  color: var(--ds-color-navy);
  padding: 0 9px 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.filter-chip[data-filter-key="phase"] {
  background: #eef6ff;
  border-color: #dcecff;
}

.filter-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip svg {
  width: 14px;
  height: 14px;
  color: var(--ds-text-muted);
  flex: 0 0 auto;
}

.clear-filters-link {
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #4f46e5;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 800;
}

.clear-filters-link:disabled {
  opacity: 0;
  pointer-events: none;
}

.facet-panel {
  display: grid;
  gap: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 48;
  width: min(560px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 150px));
  overflow: auto;
  padding: 10px;
  border: 1px solid #e2e7ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(10, 18, 42, 0.16);
}

.facet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 8px;
  border-bottom: 1px solid var(--ds-border-soft);
}

.facet-panel-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
}

.facet-panel-note strong {
  color: var(--ds-color-navy);
  letter-spacing: 0;
}

.facet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.facet-section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--ds-border-soft);
  border-radius: 0;
  background: #ffffff;
}

.facet-section:last-child {
  border-bottom: 0;
}

.facet-section-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ds-color-navy);
  padding: 0 8px;
  text-align: left;
}

.facet-section-toggle:hover,
.facet-section.is-open .facet-section-toggle {
  background: #f7f9fb;
}

.facet-section-toggle span {
  min-width: 0;
  color: var(--ds-color-navy);
  color: var(--ds-color-navy);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facet-section-toggle small {
  color: var(--ds-text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.facet-section-toggle svg {
  width: 15px;
  height: 15px;
  color: var(--ds-text-muted);
}

.facet-search {
  position: relative;
  margin: 0 8px;
}

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

.facet-search input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--ds-border-default);
  border-radius: 8px;
  padding: 0 10px 0 30px;
  outline: none;
  color: var(--ds-text-strong);
  background: #fbfcfd;
  font-size: 12px;
  font-weight: 600;
}

.facet-options {
  display: grid;
  gap: 4px;
  max-height: 168px;
  overflow-y: auto;
  padding: 0 8px 2px;
}

.facet-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  border-radius: 6px;
  padding: 4px 7px;
  color: var(--ds-text-strong);
  font-size: 13px;
  font-weight: 700;
}

.facet-option:hover {
  background: #f7f9fb;
}

.facet-option input {
  width: 14px;
  height: 14px;
  accent-color: var(--ds-color-navy);
}

.facet-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facet-option small,
.facet-no-results {
  color: var(--ds-text-muted);
  font-size: 11px;
  font-weight: 700;
}

.range-section {
  grid-column: auto;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 8px 4px;
}

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

.filter-input {
  padding: 0 11px;
}

.filter-input.number {
  text-align: right;
}

.main {
  margin: 0 28px 18px 0;
  padding: 24px 16px 0;
  display: grid;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(10, 18, 42, 0.045);
}

.content-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 6px 8px;
}

.content-title {
  min-width: 0;
}

.content-title h2 {
  margin: 0;
  color: var(--ds-color-navy);
  font-size: 24px;
  line-height: 1.15;
}

.content-title span {
  display: inline-block;
  margin-top: 5px;
  color: var(--ds-text-muted);
  font-size: 12px;
  font-weight: 400;
}

.content-kpis {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.content-kpis span {
  display: grid;
  gap: 2px;
  min-width: 124px;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.content-kpis strong {
  color: var(--ds-color-teal);
  font-size: 26px;
  line-height: 1;
}

.content-kpis small {
  color: var(--ds-text-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.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;
}

.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;
}

.board {
  display: grid;
  grid-auto-columns: clamp(238px, calc((100vw - 230px) / 6), 304px);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 0;
  min-height: calc(100vh - 254px);
  scrollbar-gutter: stable;
}

.phase-column {
  overflow: hidden;
  background: rgba(252, 253, 255, 0.72);
  border: 1px solid #e3e8f0;
  border-radius: 8px 8px 0 0;
  min-height: calc(100vh - 270px);
  display: grid;
  grid-template-rows: auto 1fr;
  box-shadow: none;
}

.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: 12px 14px;
  border-bottom: 1px solid var(--ds-border-default);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.phase-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--ds-radius-pill);
  background: #c7ced8;
  flex: 0 0 auto;
}

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

.phase-count {
  min-width: 26px;
  min-height: 22px;
  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;
}

.phase-total {
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--ds-radius-pill);
  background: #eef8f4;
  color: var(--ds-color-teal);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
}

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

.lead-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  border: 1px solid #edf1f6;
  border-radius: 9px;
  background: var(--ds-bg-surface);
  height: 86px;
  padding: 9px 11px 8px;
  box-shadow: 0 10px 22px rgba(10, 18, 42, 0.045);
  cursor: pointer;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.lead-card:hover {
  border-color: #dfe6ef;
  box-shadow: 0 12px 24px rgba(10, 18, 42, 0.075);
  transform: translateY(-1px);
}

.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;
  min-width: 0;
  min-height: 22px;
}

.lead-card-miniatures {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 46%;
}

.lead-card h3 {
  margin: 0;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.15;
  color: var(--ds-color-navy);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.lead-id {
  color: var(--ds-text-muted);
  font-size: 9.5px;
  font-weight: 800;
  flex: 0 0 auto;
  line-height: 1.2;
}

.lead-value-mini {
  flex: 0 0 auto;
  margin-left: auto;
  background: transparent;
  color: #a5acb8;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.1;
  padding: 0;
  white-space: nowrap;
}

.lead-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  margin-top: 5px;
  padding-top: 0;
  border-top: 0;
  font-size: 10px;
  color: var(--ds-text-strong);
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
}

.lead-meta > span:not(.tag) {
  min-width: 0;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-meta > span:not(.tag) + span:not(.tag) {
  color: var(--ds-text-muted);
  font-weight: 700;
}

.lead-linkedin {
  width: 17px;
  height: 17px;
  margin-left: auto;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(10, 102, 194, 0.12);
  color: #0a66c2;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
}

.lead-linkedin:hover {
  background: #0a66c2;
  color: #fff;
}

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

.lead-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  min-width: 0;
}

.lead-card-footer .tags {
  margin-top: 0;
  min-width: 0;
  max-height: 20px;
  overflow: hidden;
}

.lead-card-side-tags {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  margin-left: auto;
}

.tag {
  border-radius: var(--ds-radius-pill);
  padding: 3px 7px;
  font-size: 9.5px;
  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.black {
  background: var(--ds-color-navy);
  color: var(--ds-color-white);
}

.vip-context-tag {
  letter-spacing: 0.02em;
}

.tag.emoji-tag,
.tag.strength-tag {
  align-items: center;
  background: var(--ds-bg-surface);
  border-color: var(--ds-border-default);
  display: inline-flex;
}

.tag.emoji-tag {
  font-size: 12px;
  padding-inline: 7px;
}

.tag.strength-tag {
  color: var(--ds-color-teal);
  font-size: 10px;
  letter-spacing: 0;
}

.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: 0 8px 22px rgba(10, 18, 42, 0.045);
  max-height: calc(100vh - 340px);
}

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

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: #f8fafc;
  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: var(--ds-font-family);
}

.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.36);
  z-index: 60;
}

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

.detail-drawer {
  width: min(760px, 100vw);
  background: #fcfdff;
  box-shadow: -14px 0 36px rgba(10, 18, 42, 0.12);
}

.drawer-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ds-border-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

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

.detail-drawer .drawer-head {
  padding: 16px 24px 8px;
  border-bottom: 0;
  align-items: start;
}

.lead-identity {
  display: grid;
  gap: 6px;
}

.lead-id-chip {
  justify-self: start;
  margin: 0;
  border-radius: 6px;
  background: #edf2ff;
  color: #61708f;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.detail-drawer .drawer-head h2 {
  margin: 0;
  color: var(--ds-color-navy);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.12;
}

.detail-drawer .drawer-head .icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-color: #dfe5f0;
  background: #fff;
  border-radius: 8px;
  color: var(--ds-color-navy);
}

.detail-drawer .drawer-head .icon-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.drawer-phase {
  padding: 12px 22px;
  border-bottom: 1px solid var(--ds-border-soft);
  background: #fbfcfd;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.detail-drawer .drawer-phase {
  padding: 8px 24px 12px;
  border-bottom: 0;
  background: transparent;
  grid-template-columns: minmax(220px, 340px) auto auto;
  justify-content: space-between;
  gap: 14px;
}

.phase-select-shell {
  position: relative;
  display: grid;
  align-items: center;
}

.phase-select-shell > svg {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  color: #405075;
  pointer-events: none;
  stroke-width: 1.8;
  z-index: 1;
}

.phase-select-shell .phase-select {
  height: 34px;
  border-color: #dfe5f0;
  border-radius: 8px;
  background: #fff;
  color: var(--ds-color-navy);
  padding-left: 34px;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 5px 14px rgba(10, 18, 42, 0.025);
}

.archive-icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-color: #f3a9c8;
  background: #fff2f7;
  color: var(--ds-color-pink);
  box-shadow: none;
}

.archive-icon-button:hover {
  border-color: var(--ds-color-pink);
  background: #ffe7f1;
}

.archive-icon-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.vip-toggle,
.vip-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-color-navy);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.vip-toggle {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(10, 18, 42, 0.025);
}

.vip-toggle.is-on {
  border-color: var(--ds-color-navy);
}

.vip-toggle:focus-within,
.vip-switch:focus-within {
  outline: 2px solid rgba(10, 18, 42, 0.18);
  outline-offset: 2px;
}

.vip-toggle input,
.vip-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vip-toggle-track,
.vip-switch-control {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: #e7ecf4;
  transition: background 140ms ease;
}

.vip-toggle-knob,
.vip-switch-control::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 18, 42, 0.18);
  content: "";
  transition: transform 140ms ease;
}

.vip-toggle input:checked + .vip-toggle-track,
.vip-switch input:checked + .vip-switch-control {
  background: var(--ds-color-navy);
}

.vip-toggle input:checked + .vip-toggle-track .vip-toggle-knob,
.vip-switch input:checked + .vip-switch-control::after {
  transform: translateX(13px);
}

.vip-toggle-label,
.vip-switch-text {
  white-space: nowrap;
}

.vip-form-field .detail-value {
  min-height: 38px;
  display: flex;
  align-items: center;
}

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

.detail-drawer .drawer-body {
  padding: 2px 24px 24px;
}

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

.detail-drawer .detail-section {
  margin-bottom: 12px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px 16px;
  box-shadow: 0 10px 22px rgba(10, 18, 42, 0.03);
}

.detail-section h3 {
  margin: 0 0 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ds-border-soft);
  font-size: 11px;
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.detail-drawer .detail-section h3 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 0 0 10px 38px;
  border-bottom-color: #dfe5f0;
  color: var(--ds-color-navy);
  font-size: 10px;
  font-weight: 700;
}

.detail-drawer .detail-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f4ff;
}

.detail-drawer .detail-section h3::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 10px;
  height: 10px;
  background-color: var(--ds-color-navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

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

.detail-item {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.detail-drawer .detail-item {
  gap: 5px;
}

.detail-label {
  color: var(--ds-text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.detail-drawer .detail-label {
  color: #7280a0;
  font-size: 8px;
  font-weight: 700;
}

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

.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-drawer .detail-value {
  color: var(--ds-color-navy);
  font-size: 11px;
}

.detail-drawer .detail-value input,
.detail-drawer .detail-value select,
.detail-drawer .detail-value textarea {
  min-height: 32px;
  border-color: #dfe5f0;
  border-radius: 8px;
  background: #fff;
  padding: 7px 10px;
  color: var(--ds-color-navy);
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(10, 18, 42, 0.018);
}

.lead-value-field .detail-value input,
.lead-value-field .detail-value select,
.lead-value-field .detail-value textarea {
  border-color: rgba(9, 177, 128, 0.72);
  box-shadow: 0 0 0 2px rgba(9, 177, 128, 0.1), 0 4px 12px rgba(10, 18, 42, 0.018);
}

.lead-value-field .detail-value input:focus,
.lead-value-field .detail-value select:focus,
.lead-value-field .detail-value textarea:focus {
  border-color: var(--ds-color-green);
  box-shadow: 0 0 0 3px rgba(33, 204, 54, 0.18), 0 4px 12px rgba(10, 18, 42, 0.018);
}

.detail-url-link {
  min-height: 32px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  color: #4a90e2;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  box-shadow: 0 4px 12px rgba(10, 18, 42, 0.018);
}

.detail-url-link:hover {
  border-color: #b8d5f4;
  background: #f4f9ff;
}

.attachment-body {
  display: grid;
  gap: 10px;
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attachment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(10, 18, 42, 0.018);
}

.attachment-row > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #7280a0;
}

.attachment-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.attachment-name {
  color: #4a90e2;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.attachment-name:hover {
  color: var(--ds-color-navy);
}

.attachment-size {
  color: #7280a0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.attachment-delete {
  width: 32px;
  min-height: 32px;
  flex-shrink: 0;
}

.attachment-delete svg {
  width: 15px;
  height: 15px;
}

.attachment-add {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
  cursor: pointer;
}

.attachment-add input[disabled] {
  pointer-events: none;
}

.attachment-add svg {
  width: 15px;
  height: 15px;
}

.detail-drawer .detail-value textarea {
  min-height: 54px;
}

.detail-value textarea {
  resize: vertical;
  min-height: 76px;
}

.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: 220px;
  border: 1px dashed var(--ds-border-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ds-text-muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.48);
}

.card-list .empty-state {
  min-height: 90px;
  border-color: var(--ds-border-default);
  background: transparent;
  font-size: 12px;
}

.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) {
  :root {
    --app-sidebar: 92px;
  }

  .topbar {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .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;
  }

  .sidebar {
    width: 64px;
    margin-inline: 10px 14px;
  }

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

@media (max-width: 900px) {
  .filter-strip {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .active-filter-bar {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
  }

  .main {
    padding-top: 18px;
  }
}

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

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

  .sidebar {
    display: none;
  }

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

  .toolbar {
    padding-top: 14px;
  }

  .main {
    margin: 0 16px 18px;
  }

  .topbar {
    height: auto;
    grid-template-columns: 1fr;
  }

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

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

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

  .filter-search-pill {
    flex: 1 1 100%;
  }

  .clear-filters-link {
    margin-left: auto;
  }

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

  .facet-grid,
  .range-grid {
    grid-template-columns: 1fr;
  }

  .range-section {
    grid-column: 1 / -1;
  }

  .filter-field,
  .filter-input,
  .filter-select {
    min-width: 0;
    width: 100%;
  }

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

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

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

  .detail-drawer .drawer-phase .vip-toggle {
    justify-self: start;
  }

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