.linguists-dashboard {
  --linguists-dashboard-border: #d9dde3;
  --linguists-dashboard-text: #172033;
  --linguists-dashboard-muted: #617085;
  --linguists-dashboard-bg: #ffffff;
  --linguists-dashboard-bg-soft: #f4f7fb;
  --linguists-dashboard-bg-accent: #edf7f5;
  --linguists-dashboard-primary: #0f766e;
  --linguists-dashboard-primary-hover: #115e59;
  --linguists-dashboard-danger: #b91c1c;
  --linguists-dashboard-success: #065f46;
  --linguists-dashboard-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  color: var(--linguists-dashboard-text);
  padding: 24px 0 84px;
}

.linguists-dashboard__request-panel {
  border: 1px solid #d9dee8;
  border-radius: 12px;
  margin: 1rem 0;
  padding: 1rem;
}

.linguists-dashboard__request-panel.is-pending {
  background: #fff9e8;
  border-color: #dba617;
}

.linguists-dashboard-page {
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fb 100%);
  min-height: 100vh;
}

.linguists-dashboard__shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 16px;
}

.linguists-dashboard__hero,
.linguists-dashboard__panel,
.linguists-dashboard__stat-card,
.linguists-dashboard__access-card,
.linguists-dashboard__nav {
  background: var(--linguists-dashboard-bg);
  border: 1px solid rgba(217, 221, 227, 0.9);
  border-radius: 24px;
  box-shadow: var(--linguists-dashboard-shadow);
}

.linguists-dashboard__hero {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px;
}

.linguists-dashboard__hero-meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 260px;
}

.linguists-dashboard__eyebrow {
  color: var(--linguists-dashboard-primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.linguists-dashboard__page-title {
  color: var(--linguists-dashboard-text);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 12px;
}

.linguists-dashboard__page-copy,
.linguists-dashboard__hero-caption,
.linguists-dashboard__panel-copy,
.linguists-dashboard__hint,
.linguists-dashboard__checklist-copy,
.linguists-dashboard__identity-role,
.linguists-dashboard__identity-phone,
.linguists-dashboard__stat-note {
  color: var(--linguists-dashboard-muted);
  line-height: 1.6;
}

.linguists-dashboard__hero-caption,
.linguists-dashboard__panel-copy,
.linguists-dashboard__hint,
.linguists-dashboard__stat-note,
.linguists-dashboard__identity-role,
.linguists-dashboard__identity-phone {
  font-size: 0.96rem;
  margin: 0;
}

.linguists-dashboard__badge,
.linguists-dashboard__chip,
.linguists-dashboard__future-badge {
  background: var(--linguists-dashboard-bg-accent);
  border-radius: 999px;
  color: var(--linguists-dashboard-primary);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
}

.linguists-dashboard__chip {
  background: var(--linguists-dashboard-bg-soft);
  color: var(--linguists-dashboard-text);
  font-weight: 600;
}

.linguists-dashboard__chip--muted {
  color: var(--linguists-dashboard-muted);
}

.linguists-dashboard__nav {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 10px;
  position: sticky;
  top: 14px;
  z-index: 8;
}

.linguists-dashboard__nav-item {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 16px;
  color: var(--linguists-dashboard-muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 12px;
  font-weight: 700;
  min-height: 52px;
  padding: 0.9rem 0.95rem;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.linguists-dashboard__nav-item.is-active {
  background: var(--linguists-dashboard-bg-accent);
  color: var(--linguists-dashboard-primary);
}

.linguists-dashboard__nav-dot {
  background: rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  display: inline-flex;
  height: 12px;
  min-width: 12px;
}

.linguists-dashboard__nav-item.is-active .linguists-dashboard__nav-dot {
  background: var(--linguists-dashboard-primary);
}

.linguists-dashboard__nav-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.linguists-dashboard__nav-label {
  font-size: 0.94rem;
  line-height: 1.2;
}

.linguists-dashboard__nav-caption {
  color: var(--linguists-dashboard-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}

.linguists-dashboard__nav-item.is-active .linguists-dashboard__nav-caption {
  color: var(--linguists-dashboard-primary);
}

.linguists-dashboard__screen {
  display: none;
}

.linguists-dashboard__screen.is-active {
  display: block;
}

.linguists-dashboard__screen-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
}

.linguists-dashboard__screen-head--section {
  margin-top: 24px;
}

.linguists-dashboard__screen-title {
  color: var(--linguists-dashboard-text);
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.linguists-dashboard__screen-copy {
  color: var(--linguists-dashboard-muted);
  margin: 0;
}

.linguists-dashboard__stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.linguists-dashboard__stat-card,
.linguists-dashboard__panel {
  padding: 20px;
}

.linguists-dashboard__stat-label {
  color: var(--linguists-dashboard-muted);
  font-size: 0.92rem;
  margin: 0 0 12px;
}

.linguists-dashboard__stat-value {
  color: var(--linguists-dashboard-text);
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0 0 6px;
  word-break: break-word;
}

.linguists-dashboard__layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.linguists-dashboard__layout--languages {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.linguists-dashboard__layout--languages.linguists-dashboard__layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.linguists-dashboard__panel-head,
.linguists-dashboard__section-head,
.linguists-dashboard__completion-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.linguists-dashboard__section-head--compact {
  margin-top: 8px;
}

.linguists-dashboard__panel-title,
.linguists-dashboard__subheading,
.linguists-dashboard__identity-name,
.linguists-dashboard__checklist-title {
  color: var(--linguists-dashboard-text);
  margin: 0;
}

.linguists-dashboard__panel-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.linguists-dashboard__subheading {
  font-size: 1rem;
}

.linguists-dashboard__identity {
  align-items: center;
  display: flex;
  gap: 14px;
  margin: 22px 0;
}

.linguists-dashboard__avatar {
  align-items: center;
  background: linear-gradient(135deg, #0f766e 0%, #0b4d48 100%);
  border-radius: 20px;
  color: #fff;
  display: inline-flex;
  font-size: 1.45rem;
  font-weight: 700;
  height: 68px;
  justify-content: center;
  min-width: 68px;
}

.linguists-dashboard__identity-name {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.linguists-dashboard__completion {
  background: var(--linguists-dashboard-bg-soft);
  border-radius: 20px;
  margin-bottom: 18px;
  padding: 18px;
}

.linguists-dashboard__progress-value {
  color: var(--linguists-dashboard-primary);
  font-weight: 700;
}

.linguists-dashboard__progress-bar {
  background: rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  height: 10px;
  margin: 14px 0 18px;
  overflow: hidden;
}

.linguists-dashboard__progress-fill {
  background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.linguists-dashboard__checklist {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.linguists-dashboard__checklist-item {
  align-items: flex-start;
  background: var(--linguists-dashboard-bg);
  border: 1px solid rgba(217, 221, 227, 0.95);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.linguists-dashboard__checkmark {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  min-width: 28px;
}

.linguists-dashboard__checklist-item.is-complete .linguists-dashboard__checkmark {
  background: rgba(6, 95, 70, 0.12);
  color: var(--linguists-dashboard-success);
}

.linguists-dashboard__checklist-item.is-pending .linguists-dashboard__checkmark {
  background: rgba(185, 28, 28, 0.1);
  color: var(--linguists-dashboard-danger);
}

.linguists-dashboard__category-grid,
.linguists-dashboard__future-grid,
.linguists-dashboard__language-summary {
  display: grid;
  gap: 14px;
}

.linguists-dashboard__category-grid {
  margin-bottom: 18px;
}

.linguists-dashboard__language-summary--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.linguists-dashboard__category-card,
.linguists-dashboard__future-card,
.linguists-dashboard__language-card {
  border: 1px solid rgba(217, 221, 227, 0.95);
  border-radius: 18px;
  padding: 16px;
}

.linguists-dashboard__category-card .linguists-dashboard__button {
  margin-top: 14px;
}

.linguists-dashboard__future-card {
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.84) 0%, rgba(255, 255, 255, 1) 100%);
}

.linguists-dashboard__future-badge {
  margin-bottom: 14px;
}

.linguists-dashboard__language-chip-list {
  color: var(--linguists-dashboard-text);
  font-size: 1rem;
  font-weight: 600;
  margin: 12px 0 0;
}

.linguists-dashboard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.linguists-dashboard__form-shell {
  margin: 0;
}

.linguists-dashboard__messages {
  align-items: flex-start;
  border-radius: 14px;
  display: flex;
  font-weight: 600;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0.85rem 1rem;
}

.linguists-dashboard__messages[hidden],
.linguists-dashboard__notification-stack[hidden] {
  display: none;
}

.linguists-dashboard__messages p {
  margin: 0.25rem 0 0;
}

.linguists-dashboard__message-close,
.linguists-dashboard__notification-close {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: inherit;
  cursor: pointer;
  flex: 0 0 36px;
  font: 700 22px/1 sans-serif;
  height: 36px;
  padding: 0;
  width: 36px;
}

.linguists-dashboard__message-close:focus-visible,
.linguists-dashboard__notification-close:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}

.linguists-dashboard__notification-stack {
  display: grid;
  gap: 10px;
  margin: 2px 0 18px;
}

.linguists-dashboard__notification {
  align-items: flex-start;
  background: rgba(29, 78, 216, 0.07);
  border-inline-start: 4px solid #1d4ed8;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.linguists-dashboard__notification.is-success { background: rgba(6, 95, 70, 0.08); border-inline-start-color: var(--linguists-dashboard-success); }
.linguists-dashboard__notification.is-warning { background: rgba(180, 83, 9, 0.09); border-inline-start-color: #b45309; }
.linguists-dashboard__notification.is-error { background: rgba(185, 28, 28, 0.08); border-inline-start-color: var(--linguists-dashboard-danger); }
.linguists-dashboard__notification p { margin: 0.3rem 0 0; }
.linguists-dashboard__notification-reason { white-space: pre-line; }

.linguists-dashboard__messages--global {
  margin-top: 2px;
}

.linguists-dashboard__messages.is-success {
  background: rgba(6, 95, 70, 0.08);
  color: var(--linguists-dashboard-success);
}

.linguists-dashboard__messages.is-error {
  background: rgba(185, 28, 28, 0.08);
  color: var(--linguists-dashboard-danger);
}

.linguists-dashboard__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.linguists-dashboard__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.linguists-dashboard__input,
.linguists-dashboard__button {
  appearance: none;
  border-radius: 14px;
  box-sizing: border-box;
  font: inherit;
}

.linguists-dashboard__input {
  background: #fff;
  border: 1px solid var(--linguists-dashboard-border);
  margin-bottom: 16px;
  min-height: 52px;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.linguists-dashboard__input:focus {
  border-color: var(--linguists-dashboard-primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  outline: 0;
}

.linguists-dashboard__input--readonly {
  background: var(--linguists-dashboard-bg-soft);
  color: var(--linguists-dashboard-muted);
}

.linguists-dashboard__language-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.linguists-dashboard__language-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.linguists-dashboard__button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 40px;
  padding: 0.62rem 0.92rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  width: auto !important;
}

.linguists-dashboard__button--primary {
  background: var(--linguists-dashboard-primary);
  color: #fff;
}

.linguists-dashboard__button--primary:hover {
  background: var(--linguists-dashboard-primary-hover);
}

.linguists-dashboard__button--secondary,
.linguists-dashboard__button--ghost {
  background: var(--linguists-dashboard-bg-soft);
  color: var(--linguists-dashboard-text);
}

.linguists-dashboard__button--ghost {
  min-width: 100px;
}

.linguists-dashboard__button--small {
  min-height: 36px;
  padding: 0.5rem 0.75rem;
}

.linguists-dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.linguists-dashboard__save-bar {
  display: flex;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 24%, rgba(255, 255, 255, 1) 100%);
  bottom: 0;
  margin-top: 8px;
  padding-top: 18px;
  position: sticky;
}

.linguists-dashboard__save-bar .linguists-dashboard__button {
  width: auto !important;
}

.linguists-dashboard--access .linguists-dashboard__shell {
  max-width: 760px;
}

.linguists-dashboard__access-card {
  margin: 18px auto 0;
  padding: 28px;
}

.linguists-dashboard__seo {
  margin: 28px auto 0;
  padding: 8px 4px 24px;
  color: var(--linguists-dashboard-text);
}

.linguists-dashboard__seo-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  color: var(--linguists-dashboard-text);
}

.linguists-dashboard__seo-subtitle {
  margin: 22px 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--linguists-dashboard-text);
}

.linguists-dashboard__seo-copy,
.linguists-dashboard__seo-links {
  margin: 0 0 12px;
  color: var(--linguists-dashboard-muted);
  line-height: 1.65;
}

.linguists-dashboard__seo-list {
  margin: 0 0 12px;
  padding-inline-start: 1.25rem;
  color: var(--linguists-dashboard-text);
  line-height: 1.65;
}

.linguists-dashboard__seo-list li + li {
  margin-top: 0.45rem;
}

.linguists-dashboard__seo-links a {
  color: var(--linguists-dashboard-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.linguists-dashboard__seo-links a:hover {
  color: var(--linguists-dashboard-primary-hover);
}

.linguists-dashboard.is-busy {
  opacity: 0.84;
}

.linguists-dashboard.is-busy .linguists-dashboard__button,
.linguists-dashboard.is-busy .linguists-dashboard__input,
.linguists-dashboard.is-busy .linguists-dashboard__nav-item {
  pointer-events: none;
}

[data-linguists-refresh-screen].is-refreshing {
  min-height: 160px;
  opacity: 0.58;
  pointer-events: none;
}

.linguists-dashboard__refresh-error {
  display: grid;
  gap: 14px;
  justify-items: start;
}

@media (max-width: 1024px) {
  .linguists-dashboard__stats,
  .linguists-dashboard__layout,
  .linguists-dashboard__layout--languages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .linguists-dashboard {
    padding: 14px 0 110px;
  }

  .linguists-dashboard__shell {
    padding: 0 12px;
  }

  .linguists-dashboard__hero,
  .linguists-dashboard__stat-card,
  .linguists-dashboard__panel,
  .linguists-dashboard__access-card,
  .linguists-dashboard__nav {
    border-radius: 20px;
    padding: 18px;
  }

  .linguists-dashboard__hero,
  .linguists-dashboard__hero-meta,
  .linguists-dashboard__panel-head,
  .linguists-dashboard__section-head,
  .linguists-dashboard__completion-head,
  .linguists-dashboard__actions,
  .linguists-dashboard__language-row,
  .linguists-dashboard__layout,
  .linguists-dashboard__layout--languages,
  .linguists-dashboard__stats,
  .linguists-dashboard__grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .linguists-dashboard__hero-meta {
    align-items: flex-start;
    max-width: none;
  }

  .linguists-dashboard__hero {
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
  }

  .linguists-dashboard__eyebrow {
    font-size: 0.72rem;
    margin-bottom: 5px;
  }

  .linguists-dashboard__page-title {
    font-size: 1.45rem;
    line-height: 1.12;
    margin-bottom: 6px;
  }

  .linguists-dashboard__page-copy {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .linguists-dashboard__hero-meta {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
  }

  .linguists-dashboard__hero-caption {
    font-size: 0.82rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .linguists-dashboard__language-summary--inline {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .linguists-dashboard__nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    bottom: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    left: 12px;
    margin-bottom: 0;
    padding: 8px;
    position: fixed;
    right: 12px;
    top: auto;
    z-index: 30;
  }

  .linguists-dashboard__nav-item {
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    min-height: 56px;
    padding: 0.7rem 0.45rem;
    text-align: center;
  }

  .linguists-dashboard__nav-copy {
    gap: 0;
  }

  .linguists-dashboard__nav-label {
    display: block;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
  }

  .linguists-dashboard__nav-caption {
    display: none;
  }

  .linguists-dashboard__screen-head {
    margin-bottom: 12px;
  }

  .linguists-dashboard__button,
  .linguists-dashboard__button--ghost {
    width: auto !important;
  }

  .linguists-dashboard__avatar {
    height: 60px;
    min-width: 60px;
  }

  .linguists-dashboard__save-bar {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  }
}
