.uksw-dashboard {
  --uksw-navy: #153878;
  --uksw-link: #005bb4;
  --uksw-text: #111827;
  --uksw-muted: #354c6a;
  --uksw-border: #e1e7ef;
  box-sizing: border-box;
  width: 100%;
  padding: 28px 32px 32px;
  color: var(--uksw-text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

[data-page-id="account"] .pf-v5-c-page__main > .uksw-dashboard:not(.uksw-dashboard--help) > * {
  max-width: none;
}

.uksw-dashboard .uksw-dashboard-heading {
  margin: 0 0 20px;
}

.uksw-dashboard h1,
.uksw-dashboard h2,
.uksw-dashboard h3,
.uksw-dashboard p {
  margin: 0;
}

.uksw-dashboard h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
}

.uksw-dashboard h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
}

.uksw-dashboard h3 {
  font-size: 1rem;
  font-weight: 700;
}

.uksw-dashboard p {
  color: var(--uksw-muted);
}

.uksw-dashboard .uksw-dashboard-heading__welcome {
  margin-top: 2px;
  color: var(--uksw-text);
  font-size: 1.25rem;
  font-weight: 600;
}

.uksw-dashboard-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
}

.uksw-dashboard .uksw-dashboard-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #deebfc;
  border-radius: 10px;
  background: #f0f6ff;
}

.uksw-dashboard-hero__status {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d7e6fa;
  color: #0055ad;
  font-size: 1.75rem;
}

.uksw-dashboard-hero__content {
  flex: 1 1 40rem;
  min-width: 0;
}

.uksw-dashboard-hero__content h2 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.uksw-dashboard-hero__content p {
  max-width: 44rem;
  font-size: 1.0625rem;
}

.uksw-dashboard .uksw-dashboard-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--uksw-navy);
  border-radius: 5px;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.uksw-dashboard .uksw-dashboard-button--primary {
  background: var(--uksw-navy);
  color: #fff;
}

.uksw-dashboard .uksw-dashboard-button--primary:hover {
  background: #0d2b60;
}

.uksw-dashboard :is(a, button):focus-visible {
  outline: 3px solid var(--uksw-link);
  outline-offset: 4px;
}

.uksw-dashboard button.uksw-dashboard-action {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
}

.uksw-dashboard button.uksw-dashboard-action:disabled {
  opacity: .65;
  cursor: wait;
}

.uksw-dashboard-action-error {
  margin: 8px 0 0;
  color: #a30000;
  font-size: .875rem;
}

.uksw-dashboard .uksw-dashboard-section {
  margin: 0 0 20px;
}

.uksw-dashboard-section > h2 {
  margin-bottom: 14px;
}

.uksw-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.uksw-dashboard .uksw-dashboard-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--uksw-border);
  border-radius: 9px;
  color: var(--uksw-text);
  text-decoration: none;
}

.uksw-dashboard .uksw-dashboard-card:hover {
  border-color: var(--uksw-link);
  color: var(--uksw-text);
  text-decoration: none;
}

.uksw-dashboard .uksw-dashboard-card:is(:hover, :focus-visible) .uksw-dashboard-action {
  color: #004080;
  text-decoration: underline;
}

.uksw-dashboard-card--blue { --uksw-card-accent: #0055ad; background: #f0f6ff; }
.uksw-dashboard-card--green { --uksw-card-accent: #3b6d24; background: #f4f8f0; }
.uksw-dashboard-card--orange { --uksw-card-accent: #a65013; background: #fff6ed; }
.uksw-dashboard-card--purple { --uksw-card-accent: #6942a0; background: #f5f2ff; }

.uksw-dashboard-card__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #dceafd;
  color: var(--uksw-card-accent);
  font-size: 1.6rem;
}

.uksw-dashboard-card--green .uksw-dashboard-card__icon { background: #e0edcf; }
.uksw-dashboard-card--orange .uksw-dashboard-card__icon { background: #ffe7c9; }
.uksw-dashboard-card--purple .uksw-dashboard-card__icon { background: #eae3fc; }
.uksw-dashboard-card .uksw-dashboard-action .uksw-dashboard-icon { color: var(--uksw-card-accent); }

.uksw-dashboard-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
}

.uksw-dashboard .uksw-dashboard-card__title {
  margin: 2px 0 8px;
}

.uksw-dashboard .uksw-dashboard-card__description {
  flex: 1;
  margin-bottom: 14px;
  font-size: .875rem;
}

.uksw-dashboard .uksw-dashboard-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--uksw-link);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}

.uksw-dashboard .uksw-dashboard-action:hover {
  color: #004080;
  text-decoration: underline;
}

.uksw-dashboard .uksw-dashboard-details {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin: 0;
}

.uksw-dashboard-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--uksw-border);
  border-radius: 9px;
  background: #fff;
}

.uksw-dashboard-panel h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 1.125rem;
}

.uksw-dashboard-panel h2 .uksw-dashboard-icon { color: var(--uksw-navy); }
.uksw-dashboard-panel p { margin-bottom: 16px; }

.uksw-dashboard-data {
  margin: 0 0 16px;
  border: 1px solid var(--uksw-border);
  border-radius: 5px;
  overflow: hidden;
}

.uksw-dashboard-data > div {
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  background: #f8fafc;
}

.uksw-dashboard-data > div + div { border-top: 1px solid var(--uksw-border); }
.uksw-dashboard-data dt { padding: 8px 12px; border-right: 1px solid var(--uksw-border); }
.uksw-dashboard-data dd { margin: 0; padding: 8px 12px; color: var(--uksw-muted); }

.uksw-dashboard-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uksw-dashboard-links li + li { border-top: 1px solid #eef1f5; }

.uksw-dashboard-links .uksw-dashboard-action {
  display: flex;
  justify-content: space-between;
  min-height: 36px;
  color: var(--uksw-muted);
  font-weight: 400;
}

.uksw-dashboard-links .uksw-dashboard-icon { color: var(--uksw-link); }
.uksw-dashboard--help { max-width: 1000px; }

@media (max-width: 1279px) {
  .uksw-dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .uksw-dashboard { padding: 20px 16px; }
  .uksw-dashboard .uksw-dashboard-hero { gap: 16px; padding: 20px 16px; }
  .uksw-dashboard-hero__status { width: 44px; height: 44px; font-size: 1.25rem; }
  .uksw-dashboard-hero__content h2 { font-size: 1.25rem; }
  .uksw-dashboard .uksw-dashboard-details { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 575px) {
  .uksw-dashboard-actions { grid-template-columns: minmax(0, 1fr); }
  .uksw-dashboard .uksw-dashboard-hero { flex-direction: column; }
  .uksw-dashboard-hero__content { flex-basis: auto; }
}
