.portal-dashboard {
  --dash-ink: #162529;
  --dash-muted: #667579;
  --dash-border: #e3e9e8;
  --dash-surface: #fff;
  --dash-soft: #f5f8f7;
  --dash-lime: #d8f36a;
  --dash-blue: #2366da;
  width: 100%;
  min-width: 0;
  contain: inline-size;
  color: var(--dash-ink);
  padding: 8px 0 20px;
  isolation: isolate;
}

.portal-dashboard *, .portal-dashboard *::before, .portal-dashboard *::after {
  box-sizing: border-box;
}

.portal-dashboard [hidden] {
  display: none !important;
}

.portal-dashboard a {
  text-decoration: none;
}

.portal-dashboard button {
  font: inherit;
  cursor: pointer;
}

.portal-dashboard :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--dash-blue);
  outline-offset: 5px;
}

.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0 20px;
}

.dashboard-hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.dashboard-greeting {
  margin: 0 0 17px;
  color: var(--dash-muted);
  font-size: 14px;
}

.dashboard-greeting > span {
  display: inline-block;
  color: #809d24;
  margin-left: 5px;
  animation: dashboard-twinkle 5s ease-in-out infinite;
}

.dashboard-hero h1 {
  margin: 0;
  color: var(--dash-ink);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dashboard-hero h1 > strong {
  font-weight: 700;
}

.dashboard-impulse {
  margin: 10px 0 0;
  color: var(--dash-blue);
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 500;
  line-height: 1.4;
}

.dashboard-intro {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--dash-muted);
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--dash-ink);
  font-size: 12px;
  font-weight: 600;
}

.dashboard-text-link > span {
  font-size: 20px;
  transition: transform .2s;
}

.dashboard-text-link:hover > span {
  transform: translate(3px, -3px);
}

.dashboard-hero-art {
  width: 100%;
  max-width: 220px;
  height: 180px;
  justify-self: end;
  position: relative;
}

.dashboard-portal-logo {
  position: absolute;
  width: 132px;
  height: 132px;
  left: 21%;
  top: 10%;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: dashboard-float 8s ease-in-out infinite;
}

.dashboard-orbit {
  position: absolute;
  border: 1px solid var(--dash-border);
  border-radius: 50%;
  inset: 7% 6%;
  transform: rotate(-25deg);
}

.dashboard-orbit-two {
  inset: 17% -1%;
  transform: rotate(28deg);
  border-style: dashed;
  animation: dashboard-orbit 35s linear infinite;
}

.dashboard-orbit-one::after {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  background: var(--dash-blue);
  border: 3px solid var(--dash-surface);
  border-radius: 50%;
  top: 35%;
  left: -3px;
}

.dashboard-benefits {
  overflow: hidden;
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  padding: 9px 0;
  background: var(--dash-surface);
  box-shadow: 0 2px 8px #213c3207;
}

.dashboard-benefits-track {
  display: flex;
  width: max-content;
  animation: dashboard-marquee 32s linear infinite;
}

.dashboard-benefits-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  min-width: 1040px;
}

.dashboard-benefit {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 30px;
  color: var(--dash-muted);
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-benefit svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 7px;
  background: #edf4ff;
  color: #3869b5;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-benefit-separator {
  flex-shrink: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7c5cd;
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-benefits:hover .dashboard-benefits-track {
    animation-play-state: paused;
  }
}

.dashboard-apps {
  padding-top: 24px;
  scroll-margin-top: 85px;
}

.dashboard-section-heading {
  margin-bottom: 16px;
}

.dashboard-section-heading h2 {
  margin: 5px 0 0;
  color: var(--dash-ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.dashboard-section-note {
  color: var(--dash-muted);
  font-size: 11px;
}

.dashboard-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 18px;
  align-items: stretch;
}

.dashboard-app-card {
  --app-accent: #c9e95b;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  background: var(--dash-surface);
  box-shadow: 0 6px 24px #213c3210;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.dashboard-app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px #213c3218;
  border-color: #bccdbe;
}

.dashboard-app-cloud {
  --app-accent: #6dcce8;
}

.dashboard-card-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.dashboard-card-glow::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  top: -95px;
  background: radial-gradient(circle, color-mix(in srgb, var(--app-accent) 26%, transparent), transparent 70%);
  animation: dashboard-glow 10s ease-in-out infinite alternate;
}

.dashboard-card-glow::after {
  content: "";
  position: absolute;
  height: 3px;
  top: 0;
  left: 27px;
  right: 27px;
  background: linear-gradient(90deg, var(--app-accent), transparent);
  border-radius: 0 0 5px 5px;
}

.dashboard-app-content {
  flex: 1;
  position: relative;
  padding: 20px 20px 14px;
  min-height: 0;
}

.dashboard-app-category {
  display: block;
  max-width: 65%;
  color: var(--dash-muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  height: 52px;
  margin: 8px 0;
  min-width: 0;
}

.dashboard-wordmark {
  margin: 0;
  max-width: 100%;
  color: var(--dash-ink);
  font-size: clamp(30px, 2.8vw, 36px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.dashboard-wordmark-image {
  display: block;
  max-height: 42px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left;
}

.has-promotion .dashboard-brand {
  height: 60px;
  padding-right: 112px;
}

.has-promotion .dashboard-app-category {
  max-width: calc(100% - 112px);
}

.dashboard-app-description {
  margin: 0;
  max-width: 360px;
  color: var(--dash-ink);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.dashboard-app-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--dash-border);
}

.dashboard-app-actions .dashboard-button {
  min-width: 96px;
}

.dashboard-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--dash-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  transition: background .2s, transform .2s;
}

.dashboard-button > span {
  font-size: 17px;
  line-height: 1;
}

.dashboard-button > i {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.dashboard-button:hover {
  transform: translateY(-2px);
}

.dashboard-button-secondary {
  background: var(--dash-surface);
  border-color: var(--dash-border);
}

.dashboard-button-secondary:hover {
  background: var(--dash-soft);
}

.dashboard-button-primary {
  background: var(--primary, #2b7fff);
  border-color: var(--primary, #2b7fff);
  color: var(--primary-foreground, #fff);
}

.dashboard-button-primary:hover {
  background: color-mix(in srgb, var(--primary, #2b7fff) 88%, #000);
  border-color: color-mix(in srgb, var(--primary, #2b7fff) 88%, #000);
}

.dashboard-company-offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--dash-border);
  border-radius: 0 0 14px 14px;
  background: var(--dash-soft);
  color: var(--dash-ink);
  font-size: 11px;
}

.dashboard-company-offer > span:last-child {
  margin-left: auto;
}

.dashboard-promotion {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: -12px;
  width: 112px;
  height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 14px;
  text-align: center;
  color: #fff9ef;
  background: #eb593e;
  clip-path: polygon(
    50% 0%, 58% 5%, 67% 3%, 73% 11%, 83% 12%, 87% 21%, 96% 26%, 95% 37%,
    100% 45%, 96% 54%, 98% 64%, 90% 71%, 87% 81%, 77% 85%, 71% 94%, 60% 94%,
    50% 100%, 41% 95%, 31% 97%, 24% 89%, 14% 86%, 11% 76%, 3% 70%, 5% 60%,
    0% 50%, 5% 41%, 3% 31%, 11% 24%, 14% 14%, 24% 11%, 30% 3%, 41% 5%
  );
}

.dashboard-promotion:hover {
  animation-play-state: paused;
  background: #d84a30;
}

.dashboard-promotion::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px dashed white;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.dashboard-promotion:focus-visible::after {
  opacity: 1;
}

.dashboard-promotion-kicker {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.dashboard-promotion strong {
  font-size: 15px;
  letter-spacing: -.035em;
  line-height: 1.15;
  font-weight: 600;
}

.dashboard-promotion strong > span {
  display: block;
  white-space: nowrap;
}

.dashboard-promotion-arrow {
  font-size: 15px;
  line-height: 1;
  margin-top: 4px;
}

.dashboard-loading {
  padding: 20px;
  color: var(--dash-muted);
  border: 1px dashed var(--dash-border);
  border-radius: 18px;
  font-size: 13px;
}

.dashboard-news {
  min-width: 0;
  margin-top: 28px;
}

.dashboard-news-card {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  align-items: center;
  min-height: 210px;
  padding: 22px 26px;
  border: 1px solid #d9e7f5;
  border-radius: 20px;
  background: #eef5fd;
  color: #1e3449;
  overflow: hidden;
}

.dashboard-news-copy {
  position: relative;
  z-index: 1;
}

.dashboard-news-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #42637c;
}

.dashboard-news-card h3 {
  margin: 10px 0 8px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.dashboard-news-card p {
  max-width: 470px;
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.8;
}

.dashboard-button-news {
  background: #fff;
  border-color: #d3deea;
  color: #1e3449;
  font-size: 11px;
  transition: none;
}

.dashboard-button-news:hover {
  background: #f9fcff;
  transform: none;
}

.dashboard-news-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.dashboard-news-art::before {
  content: "";
  position: absolute;
  width: 136px;
  height: 136px;
  border: 1px solid #c9dced;
  border-radius: 50%;
}

.dashboard-news-art img {
  position: relative;
  width: 150px;
  max-width: 90%;
  max-height: 140px;
}

@keyframes dashboard-marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes dashboard-float {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

@keyframes dashboard-twinkle {
  0%, 100% {
    transform: rotate(0) scale(1);
  }
  50% {
    transform: rotate(28deg) scale(.8);
  }
}

@keyframes dashboard-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dashboard-glow {
  to {
    transform: translate(-50px, 35px) scale(1.15);
  }
}

@media (min-width: 1400px) {
  .dashboard-hero {
    padding-block: 18px 20px;
  }
  .dashboard-hero-art {
    margin-right: 35px;
  }
}

@media (max-width: 767px) {
  .portal-dashboard {
    padding-top: 4px;
  }
  .dashboard-hero {
    grid-template-columns: 1fr 130px;
    gap: 8px;
    padding: 18px 0 20px;
  }
  .dashboard-greeting {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .dashboard-hero h1 {
    font-size: clamp(26px, 3.5vw, 30px);
  }
  .dashboard-intro {
    font-size: 12px;
    margin: 12px 0 0;
  }
  .dashboard-hero-art {
    height: 150px;
  }
  .dashboard-portal-logo {
    width: 96px;
    height: 96px;
    left: 14%;
    top: 11%;
  }
  .dashboard-app-grid {
    gap: 18px;
    grid-template-columns: minmax(0, 420px);
  }
  .dashboard-apps {
    padding-top: 22px;
  }
  .dashboard-section-heading {
    margin-bottom: 16px;
  }
  .dashboard-section-note {
    font-size: 10px;
    max-width: 125px;
    text-align: right;
  }
  .dashboard-app-content {
    padding: 18px 16px 14px;
    min-height: 0;
  }
  .dashboard-app-actions {
    padding: 12px 16px;
  }
  .dashboard-app-description {
    max-width: 100%;
    min-height: auto;
  }
  .dashboard-wordmark {
    font-size: 34px;
  }
  .dashboard-news {
    margin-top: 26px;
  }
  .dashboard-news-card {
    grid-template-columns: 1.8fr 1fr;
    padding: 22px;
  }
  .dashboard-news-card h3 {
    font-size: 22px;
  }
  .dashboard-news-art::before {
    width: 110px;
    height: 110px;
  }

}

@media (max-width: 479px) {
  .dashboard-eyebrow {
    font-size: 9px;
    letter-spacing: .09em;
    gap: 6px;
  }
  .dashboard-hero {
    position: relative;
    display: block;
    padding-top: 18px;
  }
  .dashboard-hero-copy {
    padding-right: 0;
  }
  .dashboard-greeting {
    max-width: calc(100% - 48px);
    line-height: 1.6;
    margin-bottom: 13px;
  }
  .dashboard-hero h1 {
    font-size: 26px;
    padding-right: 88px;
  }
  .dashboard-impulse {
    margin-top: 16px;
  }
  .dashboard-intro {
    max-width: 270px;
    padding-right: 23px;
  }
  .dashboard-hero-art {
    position: absolute;
    width: 100px;
    height: 100px;
    right: 0;
    top: 12px;
    opacity: .85;
    pointer-events: none;
    overflow: clip;
  }
  .dashboard-portal-logo {
    width: 64px;
    height: 64px;
    left: 19%;
    top: 14%;
  }
  .dashboard-orbit {
    inset: 12% 6%;
  }
  .dashboard-orbit-two {
    inset: 20% 2%;
  }
  .dashboard-hero-copy h1, .dashboard-greeting {
    position: relative;
    z-index: 1;
  }
  .dashboard-benefits {
    padding-block: 9px;
  }
  .dashboard-section-heading h2 {
    font-size: 20px;
  }
  .dashboard-app-content {
    padding: 18px 16px 14px;
    min-height: 0;
  }
  .dashboard-brand {
    height: 52px;
    margin: 6px 0;
  }
  .dashboard-wordmark {
    font-size: clamp(29px, 8.5vw, 34px);
  }
  .has-promotion .dashboard-brand {
    padding-right: 100px;
  }
  .has-promotion .dashboard-app-category {
    max-width: calc(100% - 100px);
  }
  .dashboard-wordmark-image {
    max-height: 40px;
  }
  .dashboard-app-description {
    max-width: 100%;
  }
  .dashboard-promotion {
    width: 100px;
    height: 100px;
    right: 8px;
    top: -10px;
    padding: 12px;
  }
  .dashboard-promotion-kicker {
    font-size: 7px;
    margin-bottom: 5px;
  }
  .dashboard-promotion strong {
    font-size: 13px;
  }
  .dashboard-promotion-arrow {
    font-size: 14px;
    margin-top: 4px;
  }
  .dashboard-app-actions {
    padding: 12px 16px;
    gap: 8px;
  }
  .dashboard-button {
    min-height: 44px;
    font-size: 11px;
    gap: 8px;
    padding: 8px 10px;
  }
  .dashboard-company-offer {
    padding: 12px 16px;
    font-size: 10px;
  }

  .dashboard-news-card {
    display: block;
    padding: 20px;
    min-height: 0;
  }
  .dashboard-news-card h3 {
    font-size: 22px;
    max-width: 100%;
    margin: 10px 0;
  }
  .dashboard-news-card p {
    max-width: 100%;
    font-size: 12px;
    margin-bottom: 16px;
  }
  .dashboard-news-art {
    display: none;
  }

}

@container (max-width: 300px) {
  .dashboard-wordmark {
    font-size: 30px;
  }

  .has-promotion .dashboard-wordmark {
    white-space: nowrap;
  }

  .dashboard-app-actions .dashboard-button {
    flex: 1;
    min-width: 0;
    gap: 8px;
    padding-inline: 10px;
  }
}

@media (max-width: 1023px) {
  .dashboard-benefits-group {
    min-width: 0;
  }

  .dashboard-benefit {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-dashboard *, .portal-dashboard *::before, .portal-dashboard *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .dashboard-benefits {
    overflow: visible;
    mask-image: none;
  }
  .dashboard-benefits-track {
    width: 100%;
  }
  .dashboard-benefits-group {
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }
  .dashboard-benefit {
    padding: 0;
    font-size: 11px;
  }
  .dashboard-benefit-separator, .dashboard-benefits-group[aria-hidden="true"] {
    display: none;
  }
}

:is(.dark, [data-theme-mode="dark"]) .portal-dashboard {
  --dash-ink: #e9f1ef;
  --dash-muted: #a3b4ae;
  --dash-border: #35433e;
  --dash-surface: #1b2421;
  --dash-soft: #232f29;
  --dash-blue: #83b5ff;
}

