:root {
  --sd-bg: #f3f6f9;
  --sd-bg-soft: #eef3f5;
  --sd-surface: #ffffff;
  --sd-surface-soft: #f8fafb;
  --sd-ink: var(--clr-text, #1a2c42);
  --sd-muted: var(--clr-text-muted, #4a5a73);
  --sd-subtle: var(--clr-text-subtle, #8fa0b5);
  --sd-line: rgba(35, 54, 79, 0.12);
  --sd-line-strong: rgba(35, 54, 79, 0.2);
  --sd-navy: var(--clr-primary, #273e57);
  --sd-navy-2: var(--clr-primary-800, #1a2940);
  --sd-teal: var(--clr-primary-600, #2a4966);
  --sd-sky: var(--clr-primary-400, #3d5a7a);
  --sd-green: var(--clr-primary-600, #2a4966);
  --sd-gold: var(--clr-gold, #c6a354);
  --sd-amber: #c56f16;
  --sd-red: #c93d3d;
  --sd-radius: 8px;
  --sd-shadow: 0 1px 2px rgba(23, 36, 56, 0.05), 0 10px 24px rgba(23, 36, 56, 0.07);
}

.member-dashboard-page {
  background:
    linear-gradient(180deg, #f7fafc 0%, var(--sd-bg) 48%, #ffffff 100%);
  color: var(--sd-ink);
}

.member-dashboard-page main {
  background:
    linear-gradient(90deg, rgba(39, 62, 87, 0.055), transparent 32%),
    linear-gradient(180deg, rgba(198, 163, 84, 0.055), transparent 22%);
}

.study-dash-shell {
  padding: 18px 0 44px;
}

.study-dashboard-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.study-side-nav,
.study-panel,
.study-section,
.study-kpi-card,
.study-overview-card,
.study-quick-card,
.study-today-panel,
.study-alert {
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sd-shadow);
}

.study-side-nav {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 14px);
  z-index: 10;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.study-side-nav__head {
  display: grid;
  gap: 4px;
  padding: 4px 2px 0;
}

.study-side-nav__label,
.study-panel__eyebrow,
.study-mini-label,
.study-card-label {
  display: block;
  color: var(--sd-subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.study-side-nav__head strong {
  color: var(--sd-ink);
  font-size: 16px;
  line-height: 1.15;
}

.study-side-nav__links {
  display: grid;
  gap: 4px;
}

.study-side-nav__links a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.study-side-nav__links a::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.study-side-nav__links a:hover,
.study-side-nav__links a:focus-visible {
  background: rgba(34, 56, 79, 0.06);
  color: var(--sd-navy);
  outline: none;
}

.study-side-nav__links a.is-active {
  background: rgba(39, 62, 87, 0.1);
  color: var(--sd-navy);
}

.study-side-nav__links a.is-active::after {
  background: currentColor;
}

.study-side-nav__icon {
  display: grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  place-items: center;
  color: currentColor;
}

.study-side-nav__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.study-dashboard {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.study-dashboard__topbar,
.study-dashboard__main-grid,
.study-dashboard__summary-grid,
.study-command-deck,
.study-kpi-grid,
.study-news-grid {
  min-width: 0;
}

.study-dashboard__topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  scroll-margin-top: calc(var(--nav-h, 64px) + 18px);
}

.study-kicker {
  margin: 0 0 8px;
  color: var(--sd-navy);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-dashboard h1 {
  margin: 0;
  color: var(--sd-ink);
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(1.65rem, 2.15vw, 2.15rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.02;
}

.study-dashboard__subtitle {
  max-width: 640px;
  margin: 6px 0 0;
  color: var(--sd-muted);
  font-size: 13px;
  line-height: 1.45;
}

.study-range-switch {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(66px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(23, 36, 56, 0.05);
}

.study-range-switch button {
  min-width: 66px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sd-muted);
  cursor: pointer;
  font: 800 11px/1 var(--font-body, system-ui, sans-serif);
  white-space: nowrap;
}

.study-range-switch button.is-active {
  background: var(--sd-navy);
  color: var(--sd-surface);
  box-shadow: 0 8px 18px rgba(34, 56, 79, 0.2);
}

.study-range-switch button:focus-visible {
  outline: 2px solid rgba(39, 62, 87, 0.32);
  outline-offset: 2px;
}

.study-alert[hidden],
.study-chart-state[hidden] {
  display: none !important;
}

.study-alert {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-color: rgba(186, 139, 34, 0.35);
  background: linear-gradient(180deg, var(--sd-surface) 0%, #fff9eb 100%);
}

.study-alert h2,
.study-panel h2,
.study-panel h3,
.study-section h2,
.study-news-column h3 {
  margin: 0;
  color: var(--sd-ink);
  font-family: var(--font-display, system-ui, sans-serif);
  font-weight: 820;
  letter-spacing: 0;
}

.study-alert p,
.study-panel__copy {
  margin: 0;
  color: var(--sd-muted);
  font-size: 13px;
  line-height: 1.55;
}

.study-alert__actions,
.study-panel__actions,
.study-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.study-command-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  gap: 14px;
  align-items: stretch;
}

.study-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.study-kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 102px;
  padding: 12px;
  overflow: hidden;
  border-color: rgba(35, 54, 79, 0.1);
  box-shadow: 0 1px 2px rgba(23, 36, 56, 0.04);
}

.study-kpi-card--primary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--sd-ink);
}

.study-kpi-card--primary .study-mini-label,
.study-kpi-card--primary .study-mini-copy {
  color: var(--sd-muted);
}

.study-kpi-card--primary .study-kpi-value {
  color: var(--sd-ink);
}

.study-kpi-card__body {
  min-width: 0;
}

.study-kpi-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.study-kpi-grid--compact .study-kpi-card {
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  min-height: 102px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.92)),
    var(--sd-surface);
}

.study-kpi-grid--compact .study-kpi-card__body {
  padding-right: 30px;
}

.study-kpi-grid--compact .study-kpi-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.study-kpi-grid--compact .study-kpi-icon svg {
  width: 16px;
  height: 16px;
}

.study-kpi-grid--compact .study-kpi-card .study-mini-label {
  max-width: 118px;
  font-size: 11px;
}

.study-kpi-grid--compact .study-kpi-value {
  margin-top: 14px;
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  line-height: 1;
}

.study-kpi-grid--compact .study-mini-copy {
  min-height: 26px;
  margin-top: 7px;
}

.study-kpi-card .study-mini-label {
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}

.study-kpi-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.study-kpi-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.study-kpi-icon--time {
  background: rgba(39, 62, 87, 0.1);
  color: var(--sd-navy);
}

.study-kpi-icon--accuracy {
  background: color-mix(in srgb, var(--sd-gold) 14%, transparent);
  color: var(--sd-gold-strong);
}

.study-kpi-icon--questions {
  background: rgba(38, 119, 201, 0.1);
  color: #1f66ad;
}

.study-kpi-icon--streak {
  background: rgba(197, 111, 22, 0.1);
  color: #c56f16;
}

.study-kpi-icon--speed {
  background: rgba(201, 61, 61, 0.09);
  color: #ad3030;
}

.study-kpi-icon--weekly {
  background: rgba(47, 111, 237, 0.1);
  color: #2f6fed;
}

.study-kpi-icon--rank {
  background: rgba(186, 139, 34, 0.13);
  color: #8d6718;
}

.study-kpi-icon--coverage {
  background: rgba(34, 56, 79, 0.08);
  color: var(--sd-navy);
}

.study-kpi-value,
.study-mini-value {
  display: block;
  margin-top: 8px;
  color: var(--sd-ink);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  font-weight: 850;
  line-height: 0.95;
}

.study-mini-copy {
  display: block;
  margin-top: 8px;
  color: var(--sd-muted);
  font-size: 12px;
  line-height: 1.35;
}

.study-mini-copy.is-up {
  color: var(--sd-navy);
  font-weight: 820;
}

.study-mini-copy.is-down {
  color: var(--sd-amber);
  font-weight: 820;
}

.study-mini-copy.is-empty {
  color: var(--sd-subtle);
}

.study-today-panel {
  position: relative;
  display: grid;
  grid-template-areas:
    "main action"
    "evidence evidence"
    "metrics metrics";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-content: space-between;
  align-items: start;
  min-height: 274px;
  padding: 18px;
  overflow: hidden;
  border-color: rgba(39, 62, 87, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.95)),
    var(--sd-surface);
  box-shadow: var(--sd-shadow);
}

.study-today-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--sd-teal), var(--sd-gold));
}

.study-today-panel__main {
  grid-area: main;
  min-width: 0;
}

.study-today-panel h2 {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--sd-ink);
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(1.45rem, 2.25vw, 1.9rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.04;
}

.study-today-panel p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--sd-muted);
  font-size: 13px;
  line-height: 1.55;
}

.study-today-panel__evidence {
  grid-area: evidence;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(104px, 0.5fr);
  gap: 10px;
  margin-top: 2px;
}

.study-today-panel__evidence div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(35, 54, 79, 0.1);
  border-radius: 7px;
  background: rgba(248, 250, 251, 0.82);
}

.study-today-panel__evidence span {
  color: var(--sd-subtle);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.study-today-panel__evidence strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--sd-ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.study-today-priority {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(38, 119, 201, 0.11);
  color: #1d5c9d;
}

.study-today-priority.is-high {
  background: rgba(197, 111, 22, 0.13);
  color: #8a4f10;
}

.study-today-priority.is-low {
  background: rgba(39, 62, 87, 0.09);
  color: var(--sd-navy);
}

.study-today-panel__metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.study-today-panel__metrics div {
  display: grid;
  gap: 7px;
  min-height: 60px;
  padding: 10px;
  border: 1px solid rgba(35, 54, 79, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.study-today-panel__metrics dt {
  color: var(--sd-subtle);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.study-today-panel__metrics dd {
  margin: 0;
  color: var(--sd-ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.22;
}

.study-today-panel__action {
  grid-area: action;
  display: grid;
  justify-items: end;
  gap: 9px;
  padding-top: 2px;
}

.study-today-panel__action > span {
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
  text-align: right;
}

.study-today-panel__action .btn {
  min-height: 38px;
  padding-inline: 16px;
}

.study-overview-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.study-overview-card,
.study-quick-card {
  min-width: 0;
  padding: 14px;
  border-color: rgba(35, 54, 79, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.94)),
    var(--sd-surface);
  box-shadow: 0 1px 2px rgba(23, 36, 56, 0.04), 0 10px 24px rgba(23, 36, 56, 0.055);
}

.study-overview-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 258px;
}

.study-overview-card--matrix {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(39, 62, 87, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 251, 0.94)),
    var(--sd-surface);
}

.study-overview-card--trend {
  grid-column: span 5;
  background:
    linear-gradient(135deg, rgba(38, 119, 201, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 251, 0.94)),
    var(--sd-surface);
}

.study-overview-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.study-overview-card__head h2,
.study-quick-card h2,
.study-quick-card h3 {
  margin: 5px 0 0;
  color: var(--sd-ink);
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 18px;
  font-weight: 840;
  line-height: 1.15;
}

.study-overview-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--sd-navy);
  font-size: 11px;
  font-weight: 860;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.study-overview-link::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.study-overview-link:hover,
.study-overview-link:focus-visible {
  color: var(--sd-navy);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.study-overview-previews {
  grid-column: 1 / -1;
}

.study-overview-grid .study-kpi-grid--compact {
  grid-column: span 7;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.study-overview-grid .study-kpi-grid--compact .study-kpi-card {
  min-height: 92px;
}

.study-overview-grid .study-kpi-grid--compact .study-kpi-value {
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
}

.study-chart {
  position: relative;
  min-width: 0;
  min-height: 188px;
  border: 1px solid rgba(35, 54, 79, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(248, 250, 251, 0.96)),
    repeating-linear-gradient(0deg, rgba(35, 54, 79, 0.04), rgba(35, 54, 79, 0.04) 1px, transparent 1px, transparent 40px);
  overflow: hidden;
}

.study-chart--trend {
  min-height: 196px;
}

.study-chart--scatter {
  min-height: 228px;
}

.study-performance-matrix {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.study-performance-matrix__head,
.study-performance-matrix__row {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.35fr) minmax(200px, 0.76fr);
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.study-performance-matrix__head {
  color: var(--sd-subtle);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.study-performance-matrix__head span {
  padding: 0 8px;
}

.study-performance-matrix__row {
  position: relative;
  min-height: 64px;
  padding: 7px;
  border: 1px solid rgba(35, 54, 79, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 251, 0.9)),
    var(--sd-surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.study-performance-matrix__row::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--sd-sky);
}

.study-performance-matrix__row.is-danger::before { background: var(--sd-red); }
.study-performance-matrix__row.is-watch::before { background: var(--sd-gold); }
.study-performance-matrix__row.is-good::before { background: var(--sd-green); }

.study-performance-matrix__row:hover,
.study-performance-matrix__row:focus-visible {
  border-color: rgba(39, 62, 87, 0.22);
  box-shadow: 0 14px 28px rgba(23, 36, 56, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.study-performance-matrix__module {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.study-matrix-cell {
  border: 1px solid color-mix(in srgb, var(--sd-navy) 9%, transparent);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.study-performance-matrix__module {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 5px 4px 5px 7px;
}

.study-performance-matrix__module strong {
  display: block;
  overflow: hidden;
  color: var(--sd-ink);
  font-size: 13px;
  font-weight: 860;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-performance-matrix__module em {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--sd-muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-performance-matrix__metrics,
.study-performance-matrix__outcome {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.study-performance-matrix__metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.study-performance-matrix__outcome {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.study-matrix-cell {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 9px;
  overflow: hidden;
}

.study-matrix-cell::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--cell-strength, 0%);
  min-height: 3px;
  background: rgba(138, 153, 168, 0.12);
}

.study-matrix-cell.is-good::before { background: rgba(39, 62, 87, 0.16); }
.study-matrix-cell.is-mid::before { background: rgba(38, 119, 201, 0.18); }
.study-matrix-cell.is-watch::before { background: rgba(186, 139, 34, 0.2); }
.study-matrix-cell.is-danger::before { background: rgba(201, 61, 61, 0.18); }

.study-matrix-cell strong,
.study-matrix-cell em {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.study-matrix-cell strong {
  color: var(--sd-ink);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.study-matrix-cell em {
  color: var(--sd-subtle);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.study-matrix-cell.is-good strong { color: var(--sd-navy); }
.study-matrix-cell.is-mid strong { color: #1d5c9d; }
.study-matrix-cell.is-watch strong { color: #815d13; }
.study-matrix-cell.is-danger strong { color: #a62929; }

.study-overview-previews {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.study-quick-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
}

.study-quick-card--action {
  border-color: rgba(39, 62, 87, 0.16);
}

.study-quick-card--plan {
  border-color: rgba(186, 139, 34, 0.22);
}

.study-quick-card__value {
  color: var(--sd-ink);
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 18px;
  font-weight: 840;
  line-height: 1.14;
}

.study-next-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.study-next-facts div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--sd-navy) 9%, transparent);
  border-radius: 7px;
  background: rgba(248, 250, 251, 0.88);
}

.study-next-facts dt {
  color: var(--sd-subtle);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.study-next-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--sd-ink);
  font-size: 12px;
  font-weight: 860;
  line-height: 1.2;
}

.study-quick-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.study-quick-card__footer > span {
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 820;
}

.study-dashboard__main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 14px;
}

.study-weekly-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  scroll-margin-top: calc(var(--nav-h, 64px) + 18px);
}

.study-weekly-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.study-weekly-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(38, 119, 201, 0.18);
  border-radius: 999px;
  background: rgba(38, 119, 201, 0.09);
  color: #1d5c9d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.study-weekly-status.is-strong {
  border-color: rgba(198, 163, 84, 0.28);
  background: color-mix(in srgb, var(--sd-gold) 14%, transparent);
  color: var(--sd-gold-strong);
}

.study-weekly-status.is-mid {
  border-color: rgba(39, 62, 87, 0.2);
  background: rgba(39, 62, 87, 0.09);
  color: var(--sd-navy);
}

.study-weekly-status.is-watch {
  border-color: rgba(197, 111, 22, 0.24);
  background: rgba(197, 111, 22, 0.11);
  color: #8a4f10;
}

.study-weekly-status.is-empty {
  border-color: rgba(35, 54, 79, 0.14);
  background: rgba(35, 54, 79, 0.06);
  color: var(--sd-muted);
}

.study-weekly-card__body {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(260px, 0.8fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.study-weekly-score,
.study-weekly-metrics,
.study-weekly-days {
  min-width: 0;
  border: 1px solid rgba(35, 54, 79, 0.1);
  border-radius: 7px;
  background: var(--sd-surface-soft);
}

.study-weekly-score {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 4px;
  min-height: 116px;
  padding: 16px;
}

.study-weekly-score strong {
  color: var(--sd-ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 880;
  line-height: 0.95;
}

.study-weekly-score span {
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 820;
}

.study-weekly-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.study-weekly-metrics span {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 116px;
  padding: 14px;
  border-left: 1px solid rgba(35, 54, 79, 0.08);
}

.study-weekly-metrics span:first-child {
  border-left: 0;
}

.study-weekly-metrics strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--sd-ink);
  font-size: 18px;
  font-weight: 860;
  line-height: 1.1;
}

.study-weekly-metrics em {
  color: var(--sd-subtle);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.study-weekly-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(20px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 116px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 250, 251, 0.96)),
    repeating-linear-gradient(0deg, rgba(35, 54, 79, 0.04), rgba(35, 54, 79, 0.04) 1px, transparent 1px, transparent 25%);
}

.study-weekly-day {
  display: grid;
  grid-template-rows: minmax(74px, 1fr) auto auto;
  gap: 6px;
  align-self: stretch;
  min-width: 0;
  color: var(--sd-subtle);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.study-weekly-day__bar {
  position: relative;
  align-self: stretch;
  min-height: 74px;
  border-radius: 999px 999px 6px 6px;
  background: rgba(35, 54, 79, 0.07);
  overflow: hidden;
}

.study-weekly-day i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 8px;
  border-radius: inherit;
  background: rgba(35, 54, 79, 0.12);
  transition: height 500ms ease;
}

.study-weekly-day.is-active {
  color: var(--sd-ink);
}

.study-weekly-day.is-active .study-weekly-day__study {
  background: linear-gradient(180deg, var(--sd-navy), var(--sd-navy-2));
  box-shadow: 0 8px 16px rgba(39, 62, 87, 0.16);
}

.study-weekly-day.is-active .study-weekly-day__questions {
  right: 3px;
  left: auto;
  width: 34%;
  min-width: 5px;
  background: linear-gradient(180deg, #d7b45f, var(--sd-gold));
  opacity: 0.92;
}

.study-weekly-day em {
  font-style: normal;
  line-height: 1;
}

.study-weekly-day small {
  min-height: 12px;
  color: var(--sd-muted);
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.study-activity-heatmap {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 2px;
}

.study-activity-heatmap__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.study-activity-heatmap__head h3 {
  margin: 5px 0 0;
  color: var(--sd-ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
}

.study-activity-heatmap__head > span {
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  text-align: right;
}

.study-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(35, 54, 79, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 251, 0.96)),
    var(--sd-surface);
}

.study-heatmap-grid > .study-empty {
  grid-column: 1 / -1;
  min-height: 104px;
}

.study-heatmap-week {
  display: grid;
  grid-template-rows: repeat(7, minmax(14px, 1fr));
  gap: 5px;
  min-width: 0;
}

.study-heatmap-day {
  display: block;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid rgba(35, 54, 79, 0.06);
  border-radius: 4px;
  background: rgba(35, 54, 79, 0.06);
}

.study-heatmap-day.is-level-1 {
  background: rgba(39, 62, 87, 0.16);
}

.study-heatmap-day.is-level-2 {
  background: rgba(39, 62, 87, 0.28);
}

.study-heatmap-day.is-level-3 {
  background: rgba(198, 163, 84, 0.42);
}

.study-heatmap-day.is-level-4 {
  background: var(--sd-gold);
  box-shadow: 0 6px 14px rgba(198, 163, 84, 0.2);
}

.study-heatmap-legend {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
  color: var(--sd-muted);
  font-size: 11px;
  font-weight: 780;
}

.study-heatmap-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(35, 54, 79, 0.06);
}

.study-heatmap-legend i:nth-of-type(2) { background: rgba(39, 62, 87, 0.16); }
.study-heatmap-legend i:nth-of-type(3) { background: rgba(39, 62, 87, 0.28); }
.study-heatmap-legend i:nth-of-type(4) { background: rgba(198, 163, 84, 0.42); }
.study-heatmap-legend i:nth-of-type(5) { background: var(--sd-gold); }

.study-panel__meta {
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
  text-align: right;
}

#dashboard-ranking {
  scroll-margin-top: calc(var(--nav-h, 64px) + 18px);
}

.study-progress-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  scroll-margin-top: calc(var(--nav-h, 64px) + 18px);
}

.study-progress-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.study-progress-alert-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(197, 111, 22, 0.22);
  border-radius: 999px;
  background: rgba(197, 111, 22, 0.1);
  color: #8a4f10;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.study-progress-alert-count.is-clear {
  border-color: rgba(39, 62, 87, 0.18);
  background: color-mix(in srgb, var(--sd-navy) 8%, transparent);
  color: var(--sd-navy);
}

.study-progress-alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.study-progress-alert {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  min-height: 86px;
  padding: 13px;
  border: 1px solid rgba(35, 54, 79, 0.1);
  border-radius: 7px;
  background: var(--sd-surface-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.study-progress-alert:hover,
.study-progress-alert:focus-visible {
  border-color: rgba(39, 62, 87, 0.22);
  background: rgba(39, 62, 87, 0.045);
  outline: none;
  transform: translateY(-1px);
}

.study-progress-alert__mark {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 3px solid rgba(38, 119, 201, 0.18);
  border-radius: 50%;
  background: #1d5c9d;
  box-shadow: 0 0 0 4px rgba(38, 119, 201, 0.08);
}

.study-progress-alert.is-high .study-progress-alert__mark,
.study-progress-alert.is-watch .study-progress-alert__mark {
  border-color: rgba(197, 111, 22, 0.2);
  background: var(--sd-amber);
  box-shadow: 0 0 0 4px rgba(197, 111, 22, 0.1);
}

.study-progress-alert.is-new .study-progress-alert__mark {
  border-color: rgba(138, 153, 168, 0.22);
  background: #6b7886;
  box-shadow: 0 0 0 4px rgba(138, 153, 168, 0.1);
}

.study-progress-alert.is-low .study-progress-alert__mark {
  border-color: rgba(39, 62, 87, 0.18);
  background: var(--sd-navy);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sd-navy) 8%, transparent);
}

.study-progress-alert__body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.study-progress-alert__body strong {
  color: var(--sd-ink);
  font-size: 14px;
  font-weight: 860;
  line-height: 1.2;
}

.study-progress-alert__body em {
  color: var(--sd-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.study-progress-alert__meta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(38, 119, 201, 0.09);
  color: #1d5c9d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.study-progress-alert.is-high .study-progress-alert__meta,
.study-progress-alert.is-watch .study-progress-alert__meta {
  background: rgba(197, 111, 22, 0.12);
  color: #8a4f10;
}

.study-progress-alert.is-new .study-progress-alert__meta {
  background: rgba(138, 153, 168, 0.15);
  color: #526171;
}

.study-progress-alert.is-low .study-progress-alert__meta {
  background: color-mix(in srgb, var(--sd-navy) 8%, transparent);
  color: var(--sd-navy);
}

.study-dashboard__summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

#dashboard-modules,
#dashboard-activity {
  grid-column: 1 / -1;
}

.study-panel,
.study-section {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.study-section {
  scroll-margin-top: calc(var(--nav-h, 64px) + 18px);
}

.study-section__head,
.study-panel__head,
.study-news-column__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.study-section__head h2,
.study-panel__head h2,
.study-panel__head h3 {
  font-size: 17px;
  line-height: 1.18;
}

.study-section__hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 7px 0 0;
  color: var(--sd-muted);
  font-size: 12px;
  line-height: 1.35;
}

.study-section__hint span {
  color: var(--sd-subtle);
  font-weight: 820;
}

.study-section__hint strong {
  color: var(--sd-ink);
  font-weight: 850;
}

.study-section__hint em {
  color: var(--sd-muted);
  font-style: normal;
}

.study-section__hint a {
  color: var(--sd-navy);
  font-weight: 850;
  text-decoration: none;
}

.study-section__hint a:hover,
.study-section__hint a:focus-visible {
  color: var(--sd-navy);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.study-focus-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.study-readiness-score {
  display: grid;
  min-width: 54px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--sd-navy) 8%, transparent);
  color: var(--sd-navy);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 16px;
  font-weight: 850;
}

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

.study-reason-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--sd-muted);
  font-size: 13px;
  line-height: 1.45;
}

.study-reason-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--sd-gold);
}

.study-panel--review {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.92), rgba(255, 255, 255, 0.98)),
    var(--sd-surface);
}

.study-review-number {
  display: block;
  color: var(--sd-amber);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.study-review-stack {
  display: flex;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(197, 111, 22, 0.14);
  margin: 14px 0 12px;
}

.study-review-stack i {
  display: block;
  min-width: 3px;
}

.study-review-stack .is-due { background: var(--sd-amber); }
.study-review-stack .is-retried { background: var(--sd-sky); }
.study-review-stack .is-recovered { background: var(--sd-navy); }
.study-review-stack .is-repeated { background: var(--sd-red); }

.study-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.study-stat-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(35, 54, 79, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--sd-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.study-stat-grid strong {
  color: var(--sd-ink);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 15px;
  text-transform: none;
}

.study-module-table {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.study-module-head,
.study-module-performance-row {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) repeat(3, minmax(76px, 0.5fr)) minmax(0, 0.66fr) minmax(84px, 0.42fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.study-module-head {
  padding: 0 14px 8px;
  border-bottom: 1px solid var(--sd-line);
  color: var(--sd-subtle);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.study-module-performance-row {
  min-height: 62px;
  padding: 11px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--sd-navy) 9%, transparent);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease;
}

.study-module-performance-row.is-next {
  border-color: rgba(39, 62, 87, 0.16);
  background: rgba(39, 62, 87, 0.045);
}

.study-module-performance-row.is-priority:not(.is-next) {
  background: rgba(197, 111, 22, 0.045);
}

.study-module-performance-row:hover,
.study-module-performance-row:focus-visible {
  background: rgba(39, 62, 87, 0.045);
  outline: none;
}

.study-module-name {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.study-module-name > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.study-module-title-line {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.study-module-name strong {
  min-width: 0;
  overflow: hidden;
  color: var(--sd-ink);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-module-name span {
  min-width: 0;
  color: var(--sd-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.study-module-priority-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(38, 119, 201, 0.1);
  color: #1d5c9d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.study-module-priority-badge.is-high,
.study-module-priority-badge.is-watch {
  background: rgba(197, 111, 22, 0.13);
  color: #8a4f10;
}

.study-module-priority-badge.is-new {
  background: rgba(138, 153, 168, 0.15);
  color: #526171;
}

.study-module-priority-badge.is-low {
  background: color-mix(in srgb, var(--sd-navy) 8%, transparent);
  color: var(--sd-navy);
}

.study-module-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--sd-navy);
  color: var(--sd-surface);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.study-module-avatar__logo,
.study-session__marker--module .study-module-avatar__logo {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.study-session__marker--module {
  border: 1px solid rgba(35, 54, 79, 0.14);
  background: var(--sd-surface);
}

.study-module-avatar--eu { background: var(--sd-eu-blue); }
.study-module-avatar--law { background: #2a4966; }
.study-module-avatar--admin { background: #1a2940; }
.study-module-avatar--news { background: #c6a354; }
.study-module-avatar--tone-1 { background: #22384f; }
.study-module-avatar--tone-2 { background: #2677c9; }
.study-module-avatar--tone-3 { background: #c6a354; }

.study-performance-matrix__module .study-module-avatar,
.study-module-name .study-module-avatar {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: transparent;
  color: var(--sd-navy);
  letter-spacing: 0;
}

.study-performance-matrix__module .study-module-avatar__logo,
.study-module-name .study-module-avatar__logo {
  width: 46px;
  height: 46px;
}

.study-module-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.study-module-metric strong {
  color: var(--sd-ink);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 15px;
  line-height: 1;
}

.study-module-metric span {
  color: var(--sd-muted);
  font-size: 11px;
  line-height: 1.2;
}

.study-module-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(138, 153, 168, 0.13);
  color: var(--sd-muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.study-module-status.is-strong {
  background: rgba(198, 163, 84, 0.16);
  color: var(--sd-gold-strong);
}

.study-module-status.is-mid {
  background: rgba(38, 119, 201, 0.12);
  color: #1d5c9d;
}

.study-module-status.is-new {
  background: rgba(138, 153, 168, 0.14);
  color: #526171;
}

.study-module-status.is-watch {
  background: rgba(186, 139, 34, 0.15);
  color: #815d13;
}

.study-module-status-wrap {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
}

.study-module-status-wrap small {
  max-width: 100%;
  color: var(--sd-muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.study-module-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(39, 62, 87, 0.2);
  border-radius: 7px;
  background: rgba(39, 62, 87, 0.07);
  color: var(--sd-navy);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-module-performance-row:hover .study-module-action,
.study-module-performance-row:focus-visible .study-module-action {
  background: var(--sd-navy);
  color: var(--sd-surface);
}

.study-module-progress {
  display: grid;
  grid-template-columns: minmax(54px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.study-module-progress .study-bar__track {
  height: 6px;
}

.study-module-progress strong {
  color: var(--sd-ink);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.study-bar__track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(35, 54, 79, 0.08);
}

.study-bar__fill {
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--sd-teal));
  transition: width 500ms ease;
}

.study-sessions {
  display: grid;
  gap: 9px;
}

.study-session {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  position: relative;
  padding: 7px 0 11px;
  border-bottom: 1px solid color-mix(in srgb, var(--sd-navy) 9%, transparent);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.study-session:hover,
.study-session:focus-visible {
  background: rgba(39, 62, 87, 0.045);
  outline: none;
  transform: translateX(2px);
}

.study-session::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 42px;
  bottom: -8px;
  width: 1px;
  background: rgba(39, 62, 87, 0.14);
}

.study-session:last-child::after {
  display: none;
}

.study-session__marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--sd-sky);
  color: var(--sd-surface);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 850;
  z-index: 1;
}

.study-session__marker.is-good { background: var(--sd-gold); }
.study-session__marker.is-mid { background: var(--sd-sky); }
.study-session__marker.is-watch { background: var(--sd-amber); }
.study-session__marker.is-low { background: var(--sd-red); }
.study-session__marker.is-neutral { background: var(--sd-navy); }
.study-session__marker.is-review { background: var(--sd-teal); }
.study-session__marker.is-test { background: var(--sd-amber); }

.study-session__marker.study-session__marker--module {
  background: var(--sd-surface);
  color: var(--sd-navy);
}

.study-session__metric {
  display: grid;
  justify-items: end;
  color: var(--sd-navy);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.study-session strong {
  display: block;
  overflow: hidden;
  color: var(--sd-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-session small {
  display: block;
  margin-top: 3px;
  color: var(--sd-muted);
  font-size: 12px;
}

.study-session__metric small {
  color: var(--sd-subtle);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.study-session__metric.is-mid { color: var(--sd-sky); }
.study-session__metric.is-watch { color: var(--sd-amber); }
.study-session__metric.is-low { color: var(--sd-red); }
.study-session__metric.is-neutral,
.study-session__metric.is-review,
.study-session__metric.is-test { color: var(--sd-muted); }

.study-secondary-card {
  display: grid;
  gap: 12px;
  min-height: 166px;
}

.study-plan-chip {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(34, 56, 79, 0.08);
  color: var(--sd-navy);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.study-plan-chip--plus { color: var(--sd-sky); background: rgba(38, 119, 201, 0.1); }
.study-plan-chip--pro { color: var(--sd-gold-strong); background: rgba(186, 139, 34, 0.18); }

.study-xp-meter {
  display: grid;
  gap: 8px;
}

.study-xp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 820;
}

.study-lb-list {
  display: grid;
  gap: 8px;
}

.study-lb-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--sd-muted);
  font-size: 12px;
}

.study-lb-row.is-you {
  color: var(--sd-ink);
  font-weight: 820;
}

.study-lb-rank {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: rgba(34, 56, 79, 0.08);
  color: var(--sd-navy);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 850;
}

.study-lb-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.study-bars {
  display: grid;
  gap: 13px;
}

.study-bar {
  display: grid;
  gap: 7px;
}

.study-bar__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 820;
}

.study-bar--diagnosis .study-bar__top span {
  color: var(--sd-ink);
  font-weight: 860;
}

.study-bar--diagnosis .study-bar__top strong {
  color: var(--sd-muted);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 850;
}

.study-bar--diagnosis .study-bar__track {
  height: 12px;
  border: 1px solid rgba(35, 54, 79, 0.06);
  background:
    linear-gradient(90deg, rgba(35, 54, 79, 0.06), rgba(35, 54, 79, 0.025)),
    rgba(35, 54, 79, 0.05);
}

.study-bar--diagnosis .study-bar__fill {
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.study-bar--diagnosis .study-bar__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24));
}

.study-news-refresh {
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.study-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.study-news-grid--official {
  grid-template-columns: 1fr;
}

.study-news-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.study-news-column__head {
  margin-bottom: 0;
}

.study-news-column__head h3 {
  font-size: 17px;
}

.study-news-column__head span {
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 760;
}

.study-news-list {
  display: grid;
  gap: 9px;
}

.study-news-grid--official .study-news-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 0;
}

.study-news-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sd-navy) 9%, transparent);
  border-radius: 0;
  background: transparent;
}

.study-news-grid--official .study-news-card--lead {
  grid-column: 1 / -1;
  padding: 0 0 16px;
}

.study-news-card:first-child {
  padding-top: 0;
}

.study-news-source-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--sd-eu-blue) 18%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--sd-eu-blue) 8%, transparent);
  color: var(--sd-eu-blue);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.study-news-card--lead .study-news-source-mark {
  background: var(--sd-navy);
  border-color: var(--sd-navy);
  color: var(--sd-surface);
}

.study-news-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.study-news-card a {
  color: var(--sd-ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.28;
  text-decoration: none;
}

.study-news-card--lead a {
  max-width: 840px;
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.14;
}

.study-news-card a:hover,
.study-news-card a:focus-visible {
  color: var(--sd-navy);
  outline: none;
}

.study-news-card p {
  margin: 0;
  color: var(--sd-muted);
  font-size: 12px;
  line-height: 1.45;
}

.study-news-card--lead p {
  max-width: 780px;
  font-size: 13px;
}

.study-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--sd-subtle);
  font-size: 11px;
  font-weight: 760;
}

.study-news-epso-angle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  max-width: 820px;
  color: var(--sd-muted);
  font-size: 12px;
  line-height: 1.45;
}

.study-news-epso-angle strong {
  color: var(--sd-navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.45;
  text-transform: uppercase;
}

.study-news-epso-angle span {
  min-width: 0;
}

.study-news-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sd-navy) 8%, transparent);
  color: var(--sd-navy);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.study-news-chip--eu {
  background: color-mix(in srgb, var(--sd-eu-blue) 10%, transparent);
  color: var(--sd-eu-blue);
}

.study-news-freshness {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sd-gold) 14%, transparent);
  color: var(--sd-gold-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.study-empty,
.study-chart-state {
  display: grid;
  gap: 5px;
  min-height: 72px;
  place-items: center;
  padding: 16px;
  border: 1px dashed var(--sd-line-strong);
  border-radius: var(--sd-radius);
  background: color-mix(in srgb, var(--sd-surface-soft) 84%, transparent);
  color: var(--sd-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.study-empty strong {
  color: var(--sd-ink);
  font-size: 14px;
}

.study-empty span {
  max-width: 340px;
}

.study-dashboard-footer {
  border-top: 1px solid var(--sd-line);
  background: rgba(255, 255, 255, 0.78);
}

.study-dashboard-footer .footer-bottom {
  max-width: var(--container-xl, 1280px);
  margin: 0 auto;
  padding: 18px 20px;
}

.hub-onboard-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 20, 36, 0.55);
  backdrop-filter: blur(4px);
}

.hub-onboard-dialog {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  box-shadow: 0 24px 64px rgba(11, 20, 36, 0.18);
}

.hub-onboard-kicker {
  margin-bottom: 8px;
  color: var(--sd-navy);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-onboard-title {
  margin: 0 0 10px;
  color: var(--sd-ink);
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 1.5rem;
  font-weight: 820;
  letter-spacing: 0;
}

.hub-onboard-body {
  margin: 0 0 20px;
  color: var(--sd-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hub-onboard-dots,
.hub-onboard-actions {
  display: flex;
  gap: 8px;
}

.hub-onboard-dots {
  margin-bottom: 20px;
}

.hub-onboard-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sd-line-strong);
}

.hub-onboard-dot.is-active {
  background: var(--sd-navy);
}

@media (max-width: 1180px) {
  .study-dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .study-overview-card--matrix,
  .study-overview-card--trend,
  .study-overview-grid .study-kpi-grid--compact,
  .study-overview-previews {
    grid-column: 1 / -1;
  }

  .study-overview-grid .study-kpi-grid--compact,
  .study-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-overview-previews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-performance-matrix__head,
  .study-performance-matrix__row {
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.25fr) minmax(190px, 0.76fr);
  }

  .study-module-head {
    display: none;
  }

  .study-module-performance-row {
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(72px, 0.5fr)) minmax(0, 0.75fr) minmax(80px, 0.45fr);
  }
}

@media (max-width: 960px) {
  .study-dash-shell {
    padding-top: 14px;
  }

  .study-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .study-side-nav {
    position: sticky;
    top: var(--nav-h, 64px);
    display: block;
    margin: -4px 0 2px;
    padding: 10px;
    overflow-x: auto;
    box-shadow: 0 8px 20px rgba(23, 36, 56, 0.08);
  }

  .study-side-nav__head {
    display: none;
  }

  .study-side-nav__links {
    display: flex;
    gap: 6px;
    min-width: max-content;
  }

  .study-side-nav__links a {
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .study-side-nav__links a::after {
    display: none;
  }

  .study-side-nav__icon {
    display: none;
  }

  .study-dashboard__topbar,
  .study-command-deck,
  .study-dashboard__main-grid,
  .study-dashboard__summary-grid,
  .study-news-grid {
    grid-template-columns: 1fr;
  }

  .study-dashboard__topbar,
  .study-panel,
  .study-section,
  .study-progress-card {
    scroll-margin-top: calc(var(--nav-h, 64px) + 76px);
  }

  .study-overview-card {
    min-height: 0;
  }

  .study-chart,
  .study-chart--trend {
    min-height: 232px;
  }

  .study-news-grid--official .study-news-list {
    grid-template-columns: 1fr;
  }

  .study-weekly-card__body {
    grid-template-columns: 1fr;
  }

  .study-weekly-days {
    min-height: 100px;
  }

  .study-heatmap-grid {
    overflow-x: auto;
  }

  .study-progress-alerts {
    grid-template-columns: 1fr;
  }

  .study-today-panel {
    grid-template-areas:
      "main"
      "evidence"
      "metrics"
      "action";
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .study-today-panel__evidence {
    grid-template-columns: 1fr;
  }

  .study-today-panel__action {
    justify-items: start;
  }

  .study-today-panel__action > span {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .study-dashboard__topbar {
    gap: 14px;
  }

  .study-range-switch {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .study-overview-grid .study-kpi-grid--compact,
  .study-kpi-grid {
    grid-template-columns: 1fr;
  }

  .study-overview-previews {
    grid-template-columns: 1fr;
  }

  .study-overview-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-performance-matrix__head {
    display: none;
  }

  .study-performance-matrix__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--sd-navy) 9%, transparent);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
  }

  .study-performance-matrix__module {
    grid-column: 1 / -1;
    padding: 0 0 4px;
    border: 0;
    background: transparent;
  }

  .study-matrix-cell {
    min-height: 56px;
  }

  .study-performance-matrix__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .study-performance-matrix__outcome {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-next-facts {
    grid-template-columns: 1fr;
  }

  .study-today-panel__metrics {
    grid-template-columns: 1fr;
  }

  .study-weekly-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-activity-heatmap__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-activity-heatmap__head > span,
  .study-panel__meta {
    text-align: left;
  }

  .study-heatmap-grid {
    grid-template-columns: repeat(14, 18px);
    justify-content: start;
  }

  .study-progress-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-progress-alert {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .study-progress-alert__meta {
    grid-column: 2;
    justify-self: start;
  }

  .study-weekly-metrics {
    grid-template-columns: 1fr;
  }

  .study-weekly-metrics span {
    min-height: 68px;
    border-top: 1px solid rgba(35, 54, 79, 0.08);
    border-left: 0;
  }

  .study-weekly-metrics span:first-child {
    border-top: 0;
  }

  .study-section__head,
  .study-panel__head,
  .study-news-column__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .study-module-performance-row {
    grid-template-columns: 1fr 1fr;
  }

  .study-module-name,
  .study-module-performance-row .study-bar__track {
    grid-column: 1 / -1;
  }

  .study-module-status,
  .study-module-action {
    justify-self: start;
  }

  .study-stat-grid {
    grid-template-columns: 1fr;
  }

  .study-session {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .study-session__metric {
    grid-column: 2;
    justify-items: start;
  }

  .study-news-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

@media (max-width: 440px) {
  .study-dash-shell {
    padding-bottom: 36px;
  }

  .study-panel,
  .study-section,
  .study-overview-card,
  .study-quick-card,
  .study-today-panel,
  .study-kpi-card {
    padding: 14px;
  }

  .study-overview-grid .study-kpi-grid--compact {
    grid-template-columns: 1fr;
  }

  .study-performance-matrix__row {
    grid-template-columns: 1fr;
  }

  .study-quick-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .study-quick-card__footer .btn {
    width: 100%;
  }

  .study-module-performance-row {
    grid-template-columns: 1fr;
  }

  .study-module-name,
  .study-module-performance-row .study-bar__track,
  .study-session__metric {
    grid-column: auto;
  }

  .study-news-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .study-news-source-mark {
    width: 34px;
    height: 34px;
  }
}

/* Dashboard workspace: quieter hierarchy, denser data and fewer nested cards. */
body[data-dashboard-page="true"] {
  background: var(--sd-bg);
  color: var(--sd-ink);
}

body[data-dashboard-page="true"] main {
  background: var(--sd-bg);
}

body[data-dashboard-page="true"] main > .eu-ticker {
  display: none !important;
}

body[data-dashboard-page="true"] .study-dash-shell {
  padding: 28px 0 64px;
}

body[data-dashboard-page="true"] .study-dashboard-layout {
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

body[data-dashboard-page="true"] .study-side-nav {
  top: calc(var(--nav-h, 68px) + 24px);
  gap: 18px;
  padding: 4px 20px 4px 0;
  border: 0;
  border-right: 1px solid var(--sd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-dashboard-page="true"] .study-side-nav__head {
  gap: 7px;
  padding: 2px 10px 13px;
  border-bottom: 1px solid var(--sd-line);
}

body[data-dashboard-page="true"] .study-side-nav__label {
  color: var(--sd-gold);
  font-size: 10px;
  letter-spacing: 0.08em;
}

body[data-dashboard-page="true"] .study-side-nav__head strong {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 17px;
  font-weight: 800;
}

body[data-dashboard-page="true"] .study-side-nav__links {
  gap: 3px;
}

body[data-dashboard-page="true"] .study-side-nav__links a {
  position: relative;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

body[data-dashboard-page="true"] .study-side-nav__links a:nth-child(8) {
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--sd-line);
  border-radius: 0 0 6px 6px;
}

body[data-dashboard-page="true"] .study-side-nav__links a:hover,
body[data-dashboard-page="true"] .study-side-nav__links a:focus-visible {
  background: var(--sd-bg-soft);
  color: var(--sd-ink);
}

body[data-dashboard-page="true"] .study-side-nav__links a.is-active {
  background: var(--sd-navy-2);
  color: var(--sd-surface);
}

body[data-dashboard-page="true"] .study-side-nav__links a::after {
  display: none;
}

body[data-dashboard-page="true"] .study-side-nav__icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  opacity: 0.82;
}

body[data-dashboard-page="true"] .study-side-nav__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

body[data-dashboard-page="true"] .study-dashboard {
  gap: 24px;
}

body[data-dashboard-page="true"] .study-dashboard__topbar {
  gap: 24px;
  padding: 2px 0 18px;
  border-bottom: 1px solid var(--sd-line);
}

body[data-dashboard-page="true"] .study-dashboard h1 {
  font-size: 34px;
  font-weight: 780;
  line-height: 1.05;
}

body[data-dashboard-page="true"] .study-dashboard__subtitle {
  margin-top: 7px;
  font-size: 13px;
}

body[data-dashboard-page="true"] .study-range-switch {
  gap: 2px;
  padding: 3px;
  border-color: var(--sd-line);
  background: var(--sd-bg-soft);
  box-shadow: none;
}

body[data-dashboard-page="true"] .study-range-switch button {
  min-width: 62px;
  min-height: 32px;
  border-radius: 5px;
  font-weight: 750;
}

body[data-dashboard-page="true"] .study-range-switch button.is-active {
  background: var(--sd-navy-2);
  box-shadow: none;
}

body[data-dashboard-page="true"] .study-overview-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

body[data-dashboard-page="true"] .study-overview-grid .study-kpi-grid--compact {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--sd-navy-2) 5%, transparent);
}

body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card {
  min-height: 92px;
  padding: 15px 17px;
  border: 0;
  border-right: 1px solid var(--sd-line);
  border-bottom: 1px solid var(--sd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card:nth-child(4n) {
  border-right: 0;
}

body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card:nth-child(n + 5) {
  border-bottom: 0;
}

body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card__body {
  padding-right: 26px;
}

body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-icon {
  top: 14px;
  right: 15px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
}

body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-icon svg {
  width: 15px;
  height: 15px;
}

body[data-dashboard-page="true"] .study-kpi-card .study-mini-label {
  max-width: none;
  color: var(--sd-muted);
  font-size: 11px;
  font-weight: 700;
}

body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-value {
  margin-top: 12px;
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 21px;
  font-weight: 780;
}

body[data-dashboard-page="true"] .study-kpi-grid--compact .study-mini-copy {
  min-height: 0;
  margin-top: 5px;
  font-size: 11px;
}

body[data-dashboard-page="true"] .study-overview-card {
  min-height: 0;
  padding: 20px;
  border-color: var(--sd-line);
  background: var(--sd-surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--sd-navy-2) 4%, transparent);
}

body[data-dashboard-page="true"] .study-overview-card--matrix {
  grid-column: 1 / span 8;
  grid-row: 2;
}

body[data-dashboard-page="true"] .study-overview-card--trend {
  grid-column: 9 / -1;
  grid-row: 2;
}

body[data-dashboard-page="true"] .study-overview-card__head h2,
body[data-dashboard-page="true"] .study-quick-card h2,
body[data-dashboard-page="true"] .study-quick-card h3 {
  font-size: 19px;
  font-weight: 780;
}

body[data-dashboard-page="true"] .study-panel__eyebrow {
  color: var(--sd-subtle);
  font-size: 10px;
  letter-spacing: 0.075em;
}

body[data-dashboard-page="true"] .study-performance-matrix {
  gap: 0;
  margin-top: 3px;
}

body[data-dashboard-page="true"] .study-performance-matrix__head,
body[data-dashboard-page="true"] .study-performance-matrix__row {
  grid-template-columns: minmax(168px, 1fr) minmax(240px, 1.3fr) minmax(150px, 0.8fr);
}

body[data-dashboard-page="true"] .study-performance-matrix__head {
  padding: 6px 0 9px;
  border-bottom: 1px solid var(--sd-line);
}

body[data-dashboard-page="true"] .study-performance-matrix__row {
  min-height: 70px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--sd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-dashboard-page="true"] .study-performance-matrix__row:last-child {
  border-bottom: 0;
}

body[data-dashboard-page="true"] .study-performance-matrix__row::before {
  display: none;
}

body[data-dashboard-page="true"] .study-performance-matrix__row:hover,
body[data-dashboard-page="true"] .study-performance-matrix__row:focus-visible {
  border-color: var(--sd-line);
  background: var(--sd-surface-soft);
  box-shadow: none;
  transform: none;
}

body[data-dashboard-page="true"] .study-performance-matrix__module {
  grid-template-columns: 40px minmax(0, 1fr);
  padding-left: 5px;
}

body[data-dashboard-page="true"] .study-performance-matrix__module .study-module-avatar {
  width: 34px;
  height: 34px;
}

body[data-dashboard-page="true"] .study-performance-matrix__module strong {
  overflow: visible;
  font-size: 12px;
  line-height: 1.18;
  text-overflow: clip;
  white-space: normal;
}

body[data-dashboard-page="true"] .study-matrix-cell {
  min-height: 48px;
  padding: 7px 9px;
  border: 0;
  border-left: 1px solid var(--sd-line);
  border-radius: 0;
  background: transparent;
}

body[data-dashboard-page="true"] .study-matrix-cell::before {
  height: 2px;
  min-height: 2px;
}

body[data-dashboard-page="true"] .study-matrix-cell strong {
  overflow-wrap: normal;
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 13px;
  word-break: normal;
}

body[data-dashboard-page="true"] .study-performance-matrix__outcome .study-matrix-cell strong {
  font-size: 12px;
}

body[data-dashboard-page="true"] .study-chart {
  border-color: var(--sd-line);
  background: var(--sd-surface-soft);
}

body[data-dashboard-page="true"] .study-chart--trend {
  min-height: 244px;
}

body[data-dashboard-page="true"] .study-overview-previews {
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius);
  background: var(--sd-surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--sd-navy-2) 4%, transparent);
}

body[data-dashboard-page="true"] .study-quick-card {
  min-height: 164px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--sd-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-dashboard-page="true"] .study-quick-card:last-child {
  border-right: 0;
}

body[data-dashboard-page="true"] .study-quick-card--action {
  background: var(--sd-navy-2);
  color: var(--sd-surface);
}

body[data-dashboard-page="true"] .study-quick-card--action h2,
body[data-dashboard-page="true"] .study-quick-card--action .study-panel__eyebrow,
body[data-dashboard-page="true"] .study-quick-card--action .study-panel__copy,
body[data-dashboard-page="true"] .study-quick-card--action .study-quick-card__footer > span,
body[data-dashboard-page="true"] .study-quick-card--action .study-next-facts dt,
body[data-dashboard-page="true"] .study-quick-card--action .study-next-facts dd {
  color: var(--sd-surface);
}

body[data-dashboard-page="true"] .study-quick-card--action .study-panel__copy,
body[data-dashboard-page="true"] .study-quick-card--action .study-panel__eyebrow,
body[data-dashboard-page="true"] .study-quick-card--action .study-quick-card__footer > span,
body[data-dashboard-page="true"] .study-quick-card--action .study-next-facts dt {
  opacity: 0.72;
}

body[data-dashboard-page="true"] .study-quick-card--action .study-next-facts div {
  border-color: color-mix(in srgb, var(--sd-surface) 16%, transparent);
  background: color-mix(in srgb, var(--sd-surface) 7%, transparent);
}

body[data-dashboard-page="true"] .study-quick-card--action .study-today-priority {
  background: var(--sd-surface);
  color: var(--sd-navy-2);
}

body[data-dashboard-page="true"] .study-panel,
body[data-dashboard-page="true"] .study-section {
  padding: 20px;
  border-color: var(--sd-line);
  background: var(--sd-surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--sd-navy-2) 4%, transparent);
}

body[data-dashboard-page="true"] .study-dashboard__summary-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
}

body[data-dashboard-page="true"] .study-dashboard__main-grid {
  gap: 16px;
}

body[data-dashboard-page="true"] .study-module-performance-row,
body[data-dashboard-page="true"] .study-session,
body[data-dashboard-page="true"] .study-progress-alert,
body[data-dashboard-page="true"] .study-news-card {
  box-shadow: none;
}

body[data-dashboard-page="true"] .study-news-column {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 1180px) {
  body[data-dashboard-page="true"] .study-dashboard-layout {
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 22px;
  }

  body[data-dashboard-page="true"] .study-overview-card--matrix,
  body[data-dashboard-page="true"] .study-overview-card--trend {
    grid-column: 1 / -1;
  }

  body[data-dashboard-page="true"] .study-overview-card--matrix {
    grid-row: 2;
  }

  body[data-dashboard-page="true"] .study-overview-card--trend {
    grid-row: 3;
  }

  body[data-dashboard-page="true"] .study-overview-previews {
    grid-row: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-dashboard-page="true"] .study-quick-card:nth-child(2) {
    border-right: 0;
  }

  body[data-dashboard-page="true"] .study-quick-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--sd-line);
  }
}

@media (max-width: 960px) {
  body[data-dashboard-page="true"] .study-dash-shell {
    padding-top: 16px;
  }

  body[data-dashboard-page="true"] .study-dashboard-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body[data-dashboard-page="true"] .study-side-nav {
    top: var(--nav-h, 68px);
    margin: 0;
    padding: 7px;
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius);
    background: var(--sd-surface);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--sd-navy-2) 4%, transparent);
  }

  body[data-dashboard-page="true"] .study-side-nav__links a,
  body[data-dashboard-page="true"] .study-side-nav__links a:nth-child(8) {
    min-height: 36px;
    margin-top: 0;
    padding: 0 12px;
    border-top: 0;
    border-radius: 5px;
  }

  body[data-dashboard-page="true"] .study-dashboard__summary-grid,
  body[data-dashboard-page="true"] .study-dashboard__main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body[data-dashboard-page="true"] .study-dash-shell {
    padding: 14px 0 44px;
  }

  body[data-dashboard-page="true"] .study-dashboard-layout {
    gap: 20px;
  }

  body[data-dashboard-page="true"] .study-dashboard {
    gap: 18px;
  }

  body[data-dashboard-page="true"] .study-dashboard__topbar {
    gap: 16px;
    padding-bottom: 16px;
  }

  body[data-dashboard-page="true"] .study-dashboard h1 {
    font-size: 29px;
  }

  body[data-dashboard-page="true"] .study-overview-grid .study-kpi-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card:nth-child(4n) {
    border-right: 1px solid var(--sd-line);
  }

  body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card:nth-child(2n) {
    border-right: 0;
  }

  body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card:nth-child(n + 5) {
    border-bottom: 1px solid var(--sd-line);
  }

  body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card:nth-child(n + 7) {
    border-bottom: 0;
  }

  body[data-dashboard-page="true"] .study-overview-card,
  body[data-dashboard-page="true"] .study-panel,
  body[data-dashboard-page="true"] .study-section {
    padding: 17px;
  }

  body[data-dashboard-page="true"] .study-performance-matrix__row {
    gap: 5px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--sd-line);
    background: transparent;
  }

  body[data-dashboard-page="true"] .study-performance-matrix__metrics,
  body[data-dashboard-page="true"] .study-performance-matrix__outcome {
    gap: 0;
  }

  body[data-dashboard-page="true"] .study-matrix-cell {
    min-height: 48px;
  }

  body[data-dashboard-page="true"] .study-overview-previews {
    grid-template-columns: 1fr;
  }

  body[data-dashboard-page="true"] .study-quick-card,
  body[data-dashboard-page="true"] .study-quick-card:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--sd-line);
  }

  body[data-dashboard-page="true"] .study-quick-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 440px) {
  body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-card {
    min-height: 88px;
    padding: 13px;
  }

  body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-icon {
    top: 12px;
    right: 12px;
  }

  body[data-dashboard-page="true"] .study-kpi-card .study-mini-label {
    max-width: 94px;
    white-space: normal;
  }

  body[data-dashboard-page="true"] .study-kpi-grid--compact .study-kpi-value {
    font-size: 19px;
  }

  body[data-dashboard-page="true"] .study-performance-matrix__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-dashboard-page="true"] .study-performance-matrix__outcome {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dashboard-welcome {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  width: 100vw;
  height: 100svh;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  background: color-mix(
    in srgb,
    var(--clr-primary-900, midnightblue) 92%,
    transparent
  );
  opacity: 0;
  overflow: hidden;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  transition: opacity 320ms ease;
}

.dashboard-welcome::before,
.dashboard-welcome::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.dashboard-welcome::before {
  inset: 7% 4%;
  border: 1px solid color-mix(in srgb, white 8%, transparent);
  transform: skewX(-12deg);
}

.dashboard-welcome::after {
  top: 0;
  bottom: 0;
  left: 18%;
  width: 1px;
  background: color-mix(in srgb, white 8%, transparent);
}

html[data-epso-dashboard-welcome="pending"],
html[data-epso-dashboard-welcome="visible"] {
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
  scrollbar-width: none;
}

html[data-epso-dashboard-welcome="pending"]::-webkit-scrollbar,
html[data-epso-dashboard-welcome="visible"]::-webkit-scrollbar {
  display: none;
}

html[data-epso-dashboard-welcome="pending"] .dashboard-welcome,
html[data-epso-dashboard-welcome="visible"] .dashboard-welcome,
html[data-epso-dashboard-welcome="closing"] .dashboard-welcome {
  display: grid;
}

html[data-epso-dashboard-welcome="pending"] .dashboard-welcome,
html[data-epso-dashboard-welcome="visible"] .dashboard-welcome {
  opacity: 1;
}

html[data-epso-dashboard-welcome="closing"] .dashboard-welcome {
  opacity: 0;
  pointer-events: none;
}

.dashboard-welcome__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(360px, 1.18fr);
  width: min(820px, 100%);
  min-height: 470px;
  border: 1px solid color-mix(in srgb, white 32%, transparent);
  border-radius: 8px;
  background: white;
  box-shadow:
    0 32px 80px color-mix(in srgb, black 38%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 90%, transparent);
  color: var(--clr-primary-900, midnightblue);
  overflow: hidden;
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  outline: none;
}

html[data-epso-dashboard-welcome="pending"] .dashboard-welcome__panel,
html[data-epso-dashboard-welcome="visible"] .dashboard-welcome__panel {
  animation: dashboard-welcome-enter 620ms cubic-bezier(0.2, 0.75, 0.2, 1)
    40ms both;
}

html[data-epso-dashboard-welcome="closing"] .dashboard-welcome__panel {
  transform: translateY(-8px) scale(0.99);
  opacity: 0;
  transition:
    transform 300ms ease,
    opacity 240ms ease;
}

.dashboard-welcome__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 42px 28px;
  background: var(--clr-primary, midnightblue);
  color: white;
  isolation: isolate;
  overflow: hidden;
}

.dashboard-welcome__visual::before,
.dashboard-welcome__visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.dashboard-welcome__visual::before {
  inset: 20px;
  border: 1px solid color-mix(in srgb, white 13%, transparent);
}

.dashboard-welcome__visual::after {
  right: 26px;
  bottom: 34px;
  left: 26px;
  height: 2px;
  background: var(--clr-gold, gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: dashboard-welcome-line 780ms cubic-bezier(0.2, 0.8, 0.2, 1)
    380ms forwards;
}

.dashboard-welcome__axis {
  position: absolute;
  z-index: -1;
  height: 1px;
  background: color-mix(in srgb, white 11%, transparent);
  transform-origin: center;
}

.dashboard-welcome__axis--one {
  top: 30%;
  left: -18%;
  width: 142%;
  transform: rotate(-31deg);
}

.dashboard-welcome__axis--two {
  top: 66%;
  left: -10%;
  width: 130%;
  transform: rotate(24deg);
}

.dashboard-welcome__emblem {
  position: relative;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, white 28%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px color-mix(in srgb, white 3.5%, transparent),
    0 18px 48px color-mix(in srgb, black 20%, transparent);
}

.dashboard-welcome__star {
  position: absolute;
  top: 6px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-gold, gold);
  box-shadow: 0 0 12px color-mix(in srgb, var(--clr-gold, gold) 45%, transparent);
  transform-origin: 3px 69px;
}

.dashboard-welcome__star:nth-child(1) { transform: rotate(0deg); }
.dashboard-welcome__star:nth-child(2) { transform: rotate(30deg); }
.dashboard-welcome__star:nth-child(3) { transform: rotate(60deg); }
.dashboard-welcome__star:nth-child(4) { transform: rotate(90deg); }
.dashboard-welcome__star:nth-child(5) { transform: rotate(120deg); }
.dashboard-welcome__star:nth-child(6) { transform: rotate(150deg); }
.dashboard-welcome__star:nth-child(7) { transform: rotate(180deg); }
.dashboard-welcome__star:nth-child(8) { transform: rotate(210deg); }
.dashboard-welcome__star:nth-child(9) { transform: rotate(240deg); }
.dashboard-welcome__star:nth-child(10) { transform: rotate(270deg); }
.dashboard-welcome__star:nth-child(11) { transform: rotate(300deg); }
.dashboard-welcome__star:nth-child(12) { transform: rotate(330deg); }

.dashboard-welcome__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0;
}

.dashboard-welcome__visual-label {
  position: absolute;
  right: 28px;
  bottom: 48px;
  left: 28px;
  color: color-mix(in srgb, white 68%, transparent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.dashboard-welcome__content {
  display: flex;
  min-width: 0;
  padding: 58px 56px 48px;
  flex-direction: column;
  justify-content: center;
}

.dashboard-welcome__kicker {
  margin-bottom: 16px;
  color: var(--clr-gold-dark, darkgoldenrod);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.12em;
}

.dashboard-welcome__content h1 {
  max-width: 100%;
  margin: 0;
  color: var(--clr-primary-900, midnightblue);
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: 44px;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.dashboard-welcome__content > p {
  max-width: 430px;
  margin: 20px 0 26px;
  color: var(--clr-text-muted, slategray);
  font-size: 16px;
  line-height: 1.65;
}

.dashboard-welcome__state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: var(--clr-primary-600, darkslateblue);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-welcome__state-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--clr-success, seagreen) 20%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--clr-success, seagreen) 8%, transparent);
  color: var(--clr-success, seagreen);
  transform: scale(0.84);
  opacity: 0.55;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.dashboard-welcome__state-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-welcome.is-ready .dashboard-welcome__state-icon {
  transform: scale(1);
  opacity: 1;
}

.dashboard-welcome__progress {
  width: 100%;
  height: 3px;
  margin: 15px 0 25px;
  background: var(--clr-border, gainsboro);
  overflow: hidden;
}

.dashboard-welcome__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clr-gold, gold);
  transform: scaleX(0.12);
  transform-origin: left;
  animation: dashboard-welcome-progress 4200ms cubic-bezier(0.1, 0.7, 0.2, 1)
    forwards;
}

.dashboard-welcome.is-ready .dashboard-welcome__progress span {
  transform: scaleX(1);
  transition: transform 260ms ease;
}

.dashboard-welcome__action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--clr-primary-900, midnightblue);
  border-radius: 6px;
  background: var(--clr-primary-900, midnightblue);
  color: white;
  font: 750 14px/1 "Manrope", system-ui, sans-serif;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.dashboard-welcome__action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-welcome__action:hover {
  background: var(--clr-gold, gold);
  color: var(--clr-primary-900, midnightblue);
  transform: translateY(-1px);
}

.dashboard-welcome__action:focus-visible {
  outline: 3px solid color-mix(in srgb, steelblue 35%, transparent);
  outline-offset: 3px;
}

@keyframes dashboard-welcome-enter {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes dashboard-welcome-line {
  to { transform: scaleX(1); }
}

@keyframes dashboard-welcome-progress {
  0% { transform: scaleX(0.12); }
  78% { transform: scaleX(0.82); }
  100% { transform: scaleX(0.94); }
}

@media (max-width: 720px) {
  .dashboard-welcome {
    align-items: center;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .dashboard-welcome::before {
    inset: 4%;
  }

  .dashboard-welcome__panel {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
    max-height: calc(100svh - 32px);
    overflow-y: auto;
  }

  .dashboard-welcome__visual {
    min-height: 164px;
    padding: 24px;
  }

  .dashboard-welcome__visual::before {
    inset: 14px;
  }

  .dashboard-welcome__visual::after {
    right: 20px;
    bottom: 21px;
    left: 20px;
  }

  .dashboard-welcome__emblem {
    width: 112px;
    height: 112px;
  }

  .dashboard-welcome__star {
    top: 4px;
    transform-origin: 3px 52px;
  }

  .dashboard-welcome__mark {
    font-size: 30px;
  }

  .dashboard-welcome__visual-label {
    right: 22px;
    bottom: 30px;
    left: 22px;
  }

  .dashboard-welcome__content {
    padding: 32px 26px 28px;
  }

  .dashboard-welcome__kicker {
    margin-bottom: 12px;
  }

  .dashboard-welcome__content h1 {
    font-size: 34px;
  }

  .dashboard-welcome__content > p {
    margin: 14px 0 20px;
    font-size: 15px;
    line-height: 1.55;
  }

  .dashboard-welcome__progress {
    margin: 12px 0 20px;
  }

  .dashboard-welcome__action {
    width: 100%;
  }
}

@media (max-width: 390px), (max-height: 690px) {
  .dashboard-welcome__visual {
    min-height: 126px;
  }

  .dashboard-welcome__emblem {
    width: 88px;
    height: 88px;
  }

  .dashboard-welcome__star {
    top: 3px;
    width: 5px;
    height: 5px;
    transform-origin: 2.5px 41px;
  }

  .dashboard-welcome__mark {
    font-size: 25px;
  }

  .dashboard-welcome__content {
    padding: 26px 22px 22px;
  }

  .dashboard-welcome__content h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-welcome,
  .dashboard-welcome__panel,
  .dashboard-welcome__visual::after,
  .dashboard-welcome__progress span,
  .dashboard-welcome__state-icon,
  .dashboard-welcome__action {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  html[data-epso-dashboard-welcome="pending"] .dashboard-welcome__panel,
  html[data-epso-dashboard-welcome="visible"] .dashboard-welcome__panel {
    transform: none;
    opacity: 1;
  }

  .dashboard-welcome__visual::after,
  .dashboard-welcome__progress span {
    transform: scaleX(1);
  }
}
