:root {
  color-scheme: light;
  --ink: #17202e;
  --muted: #687386;
  --line: #e7e9ee;
  --soft-line: #eef0f4;
  --canvas: #f6f7f9;
  --panel: #ffffff;
  --navy: #172a46;
  --navy-2: #213b60;
  --blue: #466cf6;
  --blue-soft: #edf1ff;
  --violet: #7c5ce7;
  --violet-soft: #f1edff;
  --mint: #24a97d;
  --mint-soft: #e8f8f2;
  --amber: #d28a17;
  --amber-soft: #fff5df;
  --red: #d64d5c;
  --red-soft: #fff0f2;
  --shadow: 0 1px 2px rgba(18, 32, 51, 0.04), 0 8px 24px rgba(18, 32, 51, 0.035);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

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

.shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 238px;
  flex-direction: column;
  padding: 24px 14px 18px;
  overflow-y: auto;
  color: #dbe5f4;
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #6888ff, #4466dc);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(55, 89, 208, 0.35);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-mark path {
  fill: rgba(255, 255, 255, 0.65);
}

.brand-mark circle {
  fill: #fff;
}

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 35px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  color: #aebcd0;
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  border-radius: 9px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.84;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #fff;
  background: var(--navy-2);
  box-shadow: inset 3px 0 #7391ff;
}

.sidebar-section {
  display: grid;
  gap: 4px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-label {
  margin: 0 0 8px 12px;
  color: #667b96;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.workspace-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-avatar,
.user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 760;
}

.workspace-avatar {
  width: 34px;
  height: 34px;
  color: #d9e2ff;
  background: #314b70;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.workspace-card strong,
.workspace-card span {
  display: block;
}

.workspace-card strong {
  overflow: hidden;
  color: #edf4ff;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-card div:nth-child(2) span {
  color: #7489a3;
  font-size: 10px;
}

.workspace-menu {
  color: #7489a3;
  letter-spacing: 1px;
}

.main {
  min-width: 0;
  margin-left: 238px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mobile-menu {
  display: none;
}

.search-wrap {
  display: flex;
  width: min(430px, 42vw);
  height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #8b94a2;
  background: #f8f9fb;
  border: 1px solid #e3e6eb;
  border-radius: 9px;
}

.search-wrap svg,
.table-search svg {
  width: 17px;
  height: 17px;
}

.search-wrap input,
.table-search input {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-wrap input::placeholder,
.table-search input::placeholder {
  color: #929ba8;
}

kbd {
  padding: 2px 6px;
  color: #8993a0;
  background: #fff;
  border: 1px solid #dee2e8;
  border-bottom-width: 2px;
  border-radius: 5px;
  font: 10px/1.4 inherit;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.fixture-role {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 11px;
  color: var(--muted);
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
}

.fixture-role select {
  padding: 3px 24px 3px 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  outline: none;
}

.icon-button {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #596577;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.icon-button:hover {
  background: #f3f5f8;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border: 1px solid #fff;
  border-radius: 50%;
}

.user-avatar {
  width: 35px;
  height: 35px;
  color: #465ccb;
  background: #e8ecff;
  border: 1px solid #d4dcff;
}

.content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 30px 30px 50px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #8b95a4;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  color: #172235;
  font-size: clamp(25px, 2.3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.page-heading > div > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
}

.heading-actions,
.table-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 680;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  border: 1px solid #3d61e7;
  box-shadow: 0 4px 10px rgba(70, 108, 246, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: #3d61eb;
  box-shadow: 0 7px 16px rgba(70, 108, 246, 0.24);
}

.button-secondary {
  color: #344052;
  background: #fff;
  border: 1px solid #dfe3e9;
  box-shadow: 0 1px 2px rgba(18, 32, 51, 0.04);
}

.button-secondary:hover:not(:disabled) {
  background: #f9fafb;
}

.button.small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 11.5px;
}

.button.full {
  width: 100%;
}

.notice {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 10px 13px;
  color: #435273;
  background: #f0f4ff;
  border: 1px solid #dce5ff;
  border-radius: 9px;
  font-size: 11.5px;
}

.notice p {
  margin: 0;
}

.notice-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: #6682e8;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.notice button {
  width: 26px;
  height: 26px;
  color: #7b88a2;
  background: transparent;
  border: 0;
  font-size: 19px;
}

.metric-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ledger-cell {
  min-width: 0;
  padding: 13px 17px;
  border-right: 1px solid var(--soft-line);
}

.ledger-cell:last-child {
  border-right: 0;
}

.metric-top,
.metric-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-top {
  color: #6d7889;
  font-size: 11.5px;
  font-weight: 600;
}

.metric-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  font-size: 14px;
}

.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.violet { color: var(--violet); background: var(--violet-soft); }
.metric-icon.mint { color: var(--mint); background: var(--mint-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }

.ledger-cell > strong {
  display: block;
  margin: 10px 0 9px;
  color: #172235;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.metric-foot {
  justify-content: flex-start;
  color: #929aa7;
  font-size: 10px;
}

.trend {
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.trend.positive {
  color: #248461;
  background: #eaf8f3;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(260px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

.panel {
  min-width: 0;
  border-radius: 11px;
}

.panel-header {
  display: flex;
  min-height: 67px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--soft-line);
}

.panel-header.compact {
  min-height: 62px;
}

.panel-header h2 {
  margin: 0;
  color: #1f2a3a;
  font-size: 13.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.panel-header p {
  margin: 3px 0 0;
  color: #8a94a3;
  font-size: 10.5px;
}

.live-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: #287858;
  background: #ebf8f3;
  border: 1px solid #d3eee4;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 720;
  white-space: nowrap;
}

.live-badge span {
  width: 5px;
  height: 5px;
  background: #3fb388;
  border-radius: 50%;
}

.status-pill.neutral {
  color: #657085;
  background: #f5f6f8;
  border-color: #e5e8ed;
}

.status-pill.warning {
  color: #a56b11;
  background: var(--amber-soft);
  border-color: #f4ddb0;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 1px;
  min-height: 302px;
  overflow-x: auto;
  background: var(--soft-line);
}

.pipeline-column {
  min-width: 145px;
  padding: 13px 11px 16px;
  background: #fbfbfc;
}

.pipeline-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stage-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #526072;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.stage-dot {
  width: 6px;
  height: 6px;
  background: #aab2bf;
  border-radius: 50%;
}

.stage-dot.new { background: #7691ff; }
.stage-dot.qualified { background: #9a79ee; }
.stage-dot.proposal { background: #e7a638; }
.stage-dot.won { background: #38ac80; }

.stage-total {
  color: #9099a7;
  font-size: 9px;
}

.deal-stack {
  display: grid;
  gap: 8px;
}

.deal-card {
  padding: 11px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(23, 32, 46, 0.035);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.deal-card:hover {
  border-color: #ccd5e7;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(23, 32, 46, 0.06);
}

.deal-company {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #8b95a3;
  font-size: 9px;
}

.company-mini-avatar,
.contact-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  font-weight: 760;
}

.company-mini-avatar {
  width: 20px;
  height: 20px;
  color: #4760bb;
  background: #edf0ff;
  font-size: 7px;
}

.deal-card h3 {
  min-height: 2.8em;
  margin: 0;
  color: #2d3949;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}

.deal-value {
  display: block;
  margin: 3px 0 10px;
  color: #1e2b3c;
  font-size: 13px;
  font-weight: 740;
}

.deal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #98a0ab;
  font-size: 8px;
}

.deal-owner {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #5b6ec4;
  background: #e9edff;
  border-radius: 50%;
  font-size: 7px;
  font-weight: 800;
}

.advance-deal {
  margin-top: 8px;
  padding: 4px 0 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 8.5px;
  font-weight: 720;
}

.empty-stage {
  display: grid;
  min-height: 86px;
  place-items: center;
  color: #adb4bf;
  border: 1px dashed #dde1e7;
  border-radius: 8px;
  font-size: 9px;
}

.activity-count {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #5670d8;
  background: #eef1ff;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 750;
}

.activity-list {
  display: grid;
  padding: 2px 16px 8px;
}

.activity-item {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--soft-line);
}

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

.activity-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #5e72ce;
  background: #eef1ff;
  border-radius: 8px;
  font-size: 12px;
}

.activity-copy strong,
.activity-copy span {
  display: block;
}

.activity-copy strong {
  color: #354052;
  font-size: 10.5px;
}

.activity-copy span {
  margin-top: 2px;
  color: #939ba7;
  font-size: 8.5px;
}

.complete-activity {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #a0a8b4;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  font-size: 11px;
}

.complete-activity:hover:not(:disabled) {
  color: #fff;
  background: var(--mint);
  border-color: var(--mint);
}

.contacts-panel {
  margin-top: 14px;
}

.contacts-header {
  min-height: 70px;
}

.table-search {
  display: flex;
  width: 180px;
  height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: #8a95a3;
  background: #f9fafb;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  font-size: 10.5px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 9px 17px;
  color: #919aa7;
  background: #fafbfc;
  border-bottom: 1px solid var(--soft-line);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

td {
  padding: 11px 17px;
  color: #536073;
  border-bottom: 1px solid var(--soft-line);
  font-size: 10.5px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.contact-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.contact-avatar {
  width: 29px;
  height: 29px;
  color: #445fb9;
  background: #e9edff;
  font-size: 8.5px;
}

.contact-cell strong,
.contact-cell span {
  display: block;
}

.contact-cell strong {
  color: #344052;
  font-size: 10.5px;
}

.contact-cell span {
  color: #9aa2ae;
  font-size: 8.5px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  color: #287858;
  background: #ebf8f3;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 680;
}

.status-badge::before {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.status-badge.redacted {
  color: #7b6670;
  background: #f4f1f3;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.import-drop {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 11px;
  align-items: center;
  margin: 15px;
  padding: 13px;
  background: #fafbfc;
  border: 1px dashed #d8dde6;
  border-radius: 9px;
}

.drop-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 9px;
  font-size: 17px;
  font-weight: 700;
}

.import-drop strong,
.import-drop span {
  display: block;
}

.import-drop strong {
  color: #3d4858;
  font-size: 10.5px;
}

.import-drop span {
  margin-top: 2px;
  color: #929ba8;
  font-size: 8.5px;
}

.import-results {
  margin: 0 15px 15px;
  padding: 10px 12px;
  color: #7f8998;
  background: #f8f9fb;
  border-radius: 8px;
  font-size: 9.5px;
}

.import-results p {
  margin: 0;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.result-number {
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
}

.result-number strong,
.result-number span {
  display: block;
}

.result-number strong {
  color: #2c394b;
  font-size: 16px;
}

.result-number span {
  color: #8d96a4;
  font-size: 8px;
  text-transform: uppercase;
}

.provider-flow {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  padding: 25px 18px 21px;
}

.flow-node {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.flow-node > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  color: #798395;
  background: #f1f3f6;
  border: 1px solid #e0e4ea;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 760;
}

.flow-node.complete > span {
  color: #fff;
  background: var(--mint);
  border-color: var(--mint);
}

.flow-node.warning > span {
  color: #fff;
  background: var(--amber);
  border-color: var(--amber);
}

.flow-node strong,
.flow-node small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-node strong {
  color: #3c4859;
  font-size: 9.5px;
}

.flow-node small {
  margin-top: 2px;
  color: #929ba8;
  font-size: 8px;
}

.flow-line {
  height: 1px;
  margin: 0 4px;
  background: #dce1e8;
}

.safety-panel .button.full {
  width: calc(100% - 30px);
  margin: 0 15px 15px;
}

.example-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 2px 0;
  color: #929ba8;
  font-size: 9.5px;
}

.example-footer p {
  margin: 0;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 40px));
}

.toast {
  padding: 12px 14px;
  color: #eef4ff;
  background: #21344f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(17, 30, 48, 0.24);
  font-size: 11px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  background: #713745;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 13px;
  box-shadow: 0 28px 80px rgba(19, 31, 49, 0.25);
}

dialog::backdrop {
  background: rgba(18, 31, 48, 0.42);
  backdrop-filter: blur(3px);
}

.dialog-card {
  display: grid;
  gap: 14px;
  padding: 21px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.dialog-heading button {
  width: 30px;
  height: 30px;
  color: #778293;
  background: #f5f6f8;
  border: 0;
  border-radius: 8px;
  font-size: 20px;
}

.dialog-card label {
  display: grid;
  gap: 5px;
  color: #566175;
  font-size: 11px;
  font-weight: 650;
}

.dialog-card input,
.dialog-card select {
  width: 100%;
  height: 39px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe3e9;
  border-radius: 8px;
  outline: none;
}

.dialog-card input:focus,
.dialog-card select:focus {
  border-color: #8ca2fa;
  box-shadow: 0 0 0 3px #edf1ff;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 5px;
}

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

  .ledger-cell:nth-child(2) {
    border-right: 0;
  }

  .ledger-cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--soft-line);
  }

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

  .activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 45px rgba(15, 27, 43, 0.2);
  }

  .main {
    margin-left: 0;
  }

  .mobile-menu {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    color: #566175;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .search-wrap {
    width: 42vw;
  }

  .fixture-role span {
    display: none;
  }

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

@media (max-width: 640px) {
  .topbar {
    gap: 8px;
    padding: 0 14px;
  }

  .search-wrap {
    display: none;
  }

  .fixture-role {
    padding-left: 6px;
  }

  .icon-button {
    display: none;
  }

  .content {
    padding: 22px 14px 40px;
  }

  .page-heading {
    display: grid;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions .button {
    flex: 1;
  }

  .notice {
    grid-template-columns: 22px 1fr;
  }

  .notice button {
    display: none;
  }

  .metric-ledger {
    grid-template-columns: 1fr 1fr;
  }

  .ledger-cell {
    padding: 13px;
  }

  .ledger-cell > strong {
    font-size: 20px;
  }

  .metric-foot span:last-child {
    display: none;
  }

  .pipeline {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
  }

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

  .contacts-header {
    display: grid;
  }

  .table-tools,
  .table-search {
    width: 100%;
  }

  th,
  td {
    padding-right: 12px;
    padding-left: 12px;
    white-space: nowrap;
  }

  .import-drop {
    grid-template-columns: 38px 1fr;
  }

  .import-drop button {
    grid-column: 1 / -1;
  }

  .provider-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-line {
    display: none;
  }

  .example-footer {
    display: grid;
  }
}

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