.exchanges-page.exchanges-dashboard {
  background: #eef3f4;
  color: #04182f;
  font: 400 16px/1.5 "Poppins", system-ui, sans-serif;
}

.exchanges-dashboard .exchanges-header {
  display: block;
  max-width: none;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #d9e0e4;
}
.dashboard-header-inner {
  max-width: 1300px;
  margin: auto;
  padding: 6px clamp(14px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.exchanges-dashboard .exchanges-brand { font-size: clamp(24px, 2.5vw, 34px); font-weight: 700; }
.dashboard-header-session { display: flex; min-width: 0; align-items: center; gap: clamp(4px, 2vw, 20px); }
.dashboard-header-session form { flex: none; }
.dashboard-header-inner .dashboard-greeting { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.exchanges-dashboard .dashboard-header-inner form { display: block; margin: 0; }
.exchanges-dashboard .dashboard-sign-out {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px;
  background: transparent;
  color: #04182f;
  font-weight: 500;
  white-space: nowrap;
}
.dashboard-sign-out svg { flex-shrink: 0; }
.exchanges-dashboard .exchanges-content { max-width: 1300px; padding: 32px clamp(14px, 3vw, 28px) 0; }
.exchanges-dashboard :focus-visible { outline: 2px solid #04182f; outline-offset: 3px; }
.exchange-back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 10px; font-weight: 600; text-decoration: none; }
.exchange-back-link:hover { text-decoration: underline; }
.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 32px;
  margin-bottom: 26px;
}
.exchanges-dashboard .dashboard-intro h1 {
  max-width: none;
  margin: 0 0 6px;
  font-size: clamp(26px, 3.15vw, 46px);
  line-height: 1.17;
}
.dashboard-intro p, .dashboard-section-heading p, .dashboard-promo p {
  margin: 0;
  color: #485465;
  line-height: 1.4;
}
.exchanges-dashboard :is(.dashboard-create, .dashboard-card-action) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid #04182f;
  border-radius: 8px;
  background: #fff;
  color: #04182f;
  text-align: center;
  text-decoration: none;
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 700;
  line-height: 1.25;
}
.exchanges-dashboard .dashboard-create {
  min-height: 48px;
  padding-inline: clamp(16px, 3vw, 44px);
  font-size: clamp(16px, 1.5vw, 21px);
}
.exchanges-dashboard :is(.dashboard-create, .dashboard-card-action):hover { background: #eafbf6; }
.exchanges-dashboard .dashboard-card--organized .dashboard-card-action { background: #04182f; color: #d3fcf3; }
.exchanges-dashboard .dashboard-card--organized .dashboard-card-action:hover { background: #163652; }
.dashboard-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.dashboard-section, .dashboard-drafts { border: 1px solid #cbd4da; border-radius: 10px; background: #fff; }
.dashboard-section-heading, .dashboard-drafts-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(12px, 1.5vw, 20px);
  border-radius: 9px 9px 0 0;
}
.dashboard-section-heading { min-height: 100px; }
.dashboard-section--organized .dashboard-section-heading { background: #d3fcf3; }
.dashboard-section--memberships .dashboard-section-heading { background: #ecdef8; }
.dashboard-section-heading p { color: inherit; }
.exchanges-dashboard .dashboard-section-heading h2 {
  margin: 0 0 4px;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.22;
  overflow-wrap: anywhere;
}
:is(.exchanges-dashboard, .exchanges-confirm-creation, .exchanges-access, .exchanges-landing) .dashboard-promo h2 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.2vw, 31px);
  line-height: 1.22;
}
.dashboard-group-icon {
  display: grid;
  align-self: stretch;
  place-items: center;
  padding-inline-end: clamp(8px, 1.4vw, 18px);
  border-inline-end: 1px solid #cbd4da;
}
.dashboard-group-icon svg { display: block; width: clamp(25px, 3.2vw, 40px); height: auto; }
.dashboard-cards { margin: 0; padding: 0 clamp(12px, 1.35vw, 18px); list-style: none; }
.dashboard-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name action" "status action";
  align-items: center;
  gap: 5px 12px;
  padding-block: 14px;
}
.dashboard-card + .dashboard-card { border-top: 1px solid #cbd4da; }
.exchanges-dashboard .dashboard-card h3 {
  grid-area: name;
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.23;
  overflow-wrap: anywhere;
}
.dashboard-card h3 a { text-decoration: none; }
.dashboard-card h3 a:hover { text-decoration: underline; }
.dashboard-card-status {
  grid-area: status;
  justify-self: start;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}
.dashboard-card--organized .dashboard-card-status { background: #d3fcf3; }
.dashboard-card--active .dashboard-card-status { background: #ecdef8; }
.dashboard-card--pending .dashboard-card-status { background: #ffecac; }
.dashboard-card-action { grid-area: action; justify-self: end; min-width: min(100%, 144px); overflow-wrap: anywhere; }
.dashboard-empty { margin: 0; padding: 18px; color: #485465; }
.dashboard-drafts { margin-top: clamp(14px, 2vw, 28px); }
.dashboard-drafts-summary {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 56px;
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 1.9vw, 25px);
  line-height: 1.25;
  font-weight: 700;
}
.dashboard-drafts-summary::-webkit-details-marker { display: none; }
.dashboard-drafts-label { display: flex; align-items: center; gap: 8px; }
.dashboard-drafts-count { flex: none; padding: 2px 9px; border-radius: 7px; background: #dde4eb; font-size: .8em; }
.dashboard-drafts[open] .dashboard-drafts-summary { border-bottom: 1px solid #cbd4da; border-radius: 9px 9px 0 0; }
.dashboard-drafts[open] .dashboard-drafts-chevron { transform: rotate(180deg); }
.dashboard-card--draft { grid-template-areas: "name action"; }
.dashboard-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 24%);
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  border-radius: 10px;
  background: #d3fcf3;
  overflow: hidden;
}
.dashboard-promo-copy { padding: 16px 20px; }
:is(.exchanges-dashboard, .exchanges-confirm-creation, .exchanges-access, .exchanges-landing) .dashboard-promo h2 { text-wrap: balance; }
:is(.exchanges-dashboard, .exchanges-confirm-creation, .exchanges-access, .exchanges-landing) .dashboard-promo .button_to { display: block; width: fit-content; margin-top: 6px; }
:is(.exchanges-dashboard, .exchanges-confirm-creation, .exchanges-access, .exchanges-landing) .dashboard-promo button {
  min-height: 44px;
  padding: 4px 0;
  background: transparent;
  color: #04182f;
  font-weight: 700;
  text-align: left;
}
.dashboard-promo button::after { content: " →"; }
.dashboard-promo button:hover { text-decoration: underline; }
.dashboard-promo-image { display: block; width: 100%; height: auto; align-self: end; }
.dashboard-promo.dashboard-promo--compact {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 27%);
  margin-top: 18px;
  border: 1px solid #cbd4da;
  border-radius: 9px;
  background: #d3fcf3;
  box-shadow: 0 2px 4px #04182f12;
  overflow-wrap: anywhere;
}
.dashboard-promo--compact .dashboard-promo-image { width: 100%; max-width: 255px; justify-self: end; }
.dashboard-preferences { margin: 14px 0 0; font-size: 14px; }

@media (max-width: 900px) {
  .dashboard-intro { grid-template-columns: minmax(0, 1fr); }
  .dashboard-groups { grid-template-columns: minmax(0, 1fr); }
  .dashboard-section-heading { min-height: auto; }
  .dashboard-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "status action"; }
  .dashboard-card--draft { grid-template-areas: "name name" "action action"; }
}

@media (max-width: 680px) {
  .exchange-back-link { display: flex; width: fit-content; margin-bottom: 0; }
  .exchanges-dashboard .exchanges-content { padding-top: 22px; }
  .dashboard-promo.dashboard-promo--compact { grid-template-columns: minmax(0, 1fr) minmax(100px, 33%); }
  .dashboard-promo--compact .dashboard-promo-image { align-self: center; }
  .dashboard-promo--compact .dashboard-promo-copy { padding: 12px 0 12px 14px; }
}

@media (max-width: 520px) {
  .dashboard-promo { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dashboard-promo-image { width: min(100%, 340px); justify-self: end; }
}

@media (max-width: 360px) {
  .dashboard-promo.dashboard-promo--compact { grid-template-columns: minmax(0, 1fr); }
  .dashboard-promo--compact .dashboard-promo-copy { padding-right: 14px; }
  .dashboard-promo--compact .dashboard-promo-image { width: 55%; }
}
@media (prefers-reduced-motion: no-preference) {
  .exchanges-dashboard [data-dashboard-entry] {
    animation: exchange-screen-enter 220ms ease-out 80ms backwards;
  }

  .exchanges-dashboard [data-dashboard-entry="0"] { animation-delay: 0ms; }
  .exchanges-dashboard [data-dashboard-entry="1"] { animation-delay: 40ms; }
}
