:root {
  --paper: #1d3243;
  --ink: #1d3243;
  --line: rgba(255, 250, 240, 0.62);
  --field: rgba(255, 250, 240, 0.92);
  --field-strong: #fffaf0;
  --active: #c9e86a;
  --warm: #ffb86b;
  --color-primary: var(--active);
  --color-secondary: var(--field-strong);
  --color-info: var(--line);
  --color-warning: var(--warm);
  --color-danger: #ffb3a8;
  color: #fffaf0;
  background: #1d3243;
  font-family:
    "Ubuntu Sans Mono", "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.app-shell-scroll {
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(255, 250, 240, 0.48) transparent;
  scrollbar-gutter: stable;
}

.app-scroll-region {
  display: grid;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: rgba(255, 250, 240, 0.48) transparent;
  scrollbar-gutter: stable;
}

.app-visual-frame {
  display: grid;
  align-content: stretch;
  width: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.app-visual-frame > .recharts-responsive-container,
.app-visual-frame > canvas,
.app-visual-frame > img,
.app-visual-frame > svg,
.app-visual-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.login-page {
  --paper: #1d3243;
  --ink: #1d3243;
  --line: rgba(255, 250, 240, 0.62);
  --field: rgba(255, 250, 240, 0.92);
  --field-strong: #fffaf0;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(32px, 6vw, 96px);
  height: 100dvh;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 5vw, 72px);
  background: var(--paper);
}

.assistant-page,
.assistant-app-page {
  --paper: #1d3243;
  --ink: #1d3243;
  --line: rgba(255, 250, 240, 0.62);
  --field: rgba(255, 250, 240, 0.92);
  --field-strong: #fffaf0;
  --active: #c9e86a;
  --warm: #ffb86b;
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 35vw);
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: clamp(10px, 2vw, 20px) clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px);
  background: var(--paper);
  position: relative;
}

.assistant-app-page {
  align-items: stretch;
  grid-template-columns: minmax(480px, 1fr) minmax(340px, 35vw);
}

.assistant-page > .assistant-experience,
.assistant-page > .assistant-chat,
.assistant-page > .assistant-side-panel,
.assistant-app-page > .assistant-app-workspace,
.assistant-app-page > .assistant-chat,
.assistant-app-page > .assistant-app-guide {
  height: 100%;
}

.assistant-page > .profile-selector-shell {
  grid-column: 1 / -1;
}

.assistant-experience {
  display: grid;
  align-content: start;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: visible;
  position: relative;
}

.assistant-workspace-toast {
  position: absolute;
  top: calc(-1 * clamp(32px, 5vw, 72px) + 6px);
  left: 0;
  z-index: 30;
  width: min(560px, calc(100% - 8px));
}

.assistant-side-panel,
.assistant-side-panel-slot {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.assistant-side-panel-slot[hidden] {
  display: none;
}

.assistant-app-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.assistant-app-workspace > * {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: 100%;
}

.assistant-app-guide {
  display: grid;
  align-content: stretch;
  justify-items: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
}

.assistant-app-guide img,
.assistant-app-guide video {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.assistant-app-guide audio {
  display: none;
}

.olga-games-app,
.olga-vocabulary-app,
.olga-lessons-app,
.placeholder-app,
.gym-app,
.docs-page,
.design-system,
.user-profile,
.katya-dashboard {
  min-height: 0;
}

.olga-games-app {
  display: grid;
  align-content: stretch;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  height: 100%;
  overflow: hidden;
}

.olga-vocabulary-app {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
}

.olga-lessons-app {
  display: grid;
  align-content: start;
  grid-template-rows: auto;
  grid-auto-rows: max-content;
  gap: 16px;
  height: 100%;
  overflow: auto;
}

.olga-lessons-form {
  display: grid;
  gap: 12px;
}

.olga-lessons-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
}

.olga-lessons-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.olga-lessons-preview,
.olga-lessons-detail {
  padding: 14px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 10px;
}

.olga-lessons-preview h3,
.olga-lessons-detail h3,
.olga-lessons-preview p,
.olga-lessons-detail p {
  margin: 0 0 10px;
}

.olga-lessons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.olga-lessons-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 10px;
}

.olga-lessons-item-content {
  min-width: 0;
}

.olga-lessons-item-title,
.olga-lessons-item-level {
  margin: 0;
}

.olga-vocabulary-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
}

.olga-vocabulary-workspace {
  min-width: 0;
}

.olga-vocabulary-dashboard {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
}

.olga-vocabulary-dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.olga-vocabulary-dashboard-copy {
  display: grid;
  gap: 10px;
}

.olga-vocabulary-dashboard-copy h2 {
  margin: 0;
}

.olga-vocabulary-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.olga-vocabulary-card {
  display: grid;
  align-content: start;
  gap: 18px;
  width: 100%;
  min-height: 0;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 12px;
}

.olga-vocabulary-card h2,
.olga-vocabulary-kicker,
.olga-vocabulary-helper,
.olga-vocabulary-file-name {
  margin: 0;
}

.olga-vocabulary-kicker {
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.olga-vocabulary-helper {
  max-width: 62ch;
  color: rgba(255, 250, 240, 0.78);
}

.olga-vocabulary-dashboard-card {
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(201, 232, 106, 0.1), rgba(255, 250, 240, 0.08)),
    rgba(255, 250, 240, 0.08);
}

.olga-vocabulary-expressions-card {
  align-content: center;
}

.olga-vocabulary-section-heading,
.olga-vocabulary-chart-heading,
.olga-vocabulary-category-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.olga-vocabulary-section-heading h2,
.olga-vocabulary-chart-heading h3 {
  margin: 0;
}

.olga-vocabulary-total-pill {
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 12px 14px;
  background: rgba(29, 50, 67, 0.32);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 12px;
  text-align: right;
}

.olga-vocabulary-total-pill span {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.olga-vocabulary-total-pill strong,
.olga-vocabulary-total-number {
  color: var(--active);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 0.9;
}

.olga-vocabulary-total-number {
  margin: 0;
}

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

.olga-vocabulary-chart-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.olga-vocabulary-chart-heading {
  align-items: end;
}

.olga-vocabulary-chart-heading h3 {
  color: #fffaf0;
  font-size: 1.05rem;
}

.olga-vocabulary-chart-frame {
  height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.06), rgba(255, 250, 240, 0)),
    rgba(29, 50, 67, 0.24);
  border-radius: 12px;
  padding: 12px 10px 6px;
}

.olga-vocabulary-chart-frame-compact {
  height: 140px;
}

.olga-vocabulary-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.olga-vocabulary-category-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(29, 50, 67, 0.24);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 12px;
}

.olga-vocabulary-category-item small {
  color: rgba(255, 250, 240, 0.7);
}

.olga-vocabulary-category-row strong,
.olga-vocabulary-category-row span {
  font-size: 0.95rem;
}

.olga-vocabulary-category-row span {
  color: var(--active);
  font-weight: 800;
}

.olga-vocabulary-category-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 250, 240, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.olga-vocabulary-category-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.olga-vocabulary-form {
  display: grid;
  gap: 16px;
}

.olga-vocabulary-targets {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 12px;
}

.olga-vocabulary-targets legend {
  padding: 0 8px;
  font-weight: 700;
}

.olga-vocabulary-target-option {
  display: flex;
  align-items: start;
  gap: 12px;
}

.olga-vocabulary-target-option span {
  display: grid;
  gap: 4px;
}

.olga-vocabulary-target-option small {
  color: rgba(255, 250, 240, 0.72);
}

.olga-vocabulary-file-field {
  font-weight: 700;
}

.olga-vocabulary-file-input {
  color: inherit;
}

.olga-vocabulary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.olga-vocabulary-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.olga-vocabulary-summary div {
  padding: 12px 14px;
  background: rgba(255, 250, 240, 0.1);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 10px;
}

.olga-vocabulary-summary dt,
.olga-vocabulary-summary dd {
  margin: 0;
}

.olga-vocabulary-summary dt {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.olga-vocabulary-summary dd {
  font-size: 1.5rem;
  font-weight: 800;
}

.olga-games-workspace {
  display: grid;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.olga-games-workspace-selector {
  align-content: start;
  grid-template-rows: auto;
}

.olga-games-workspace-active {
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
}

.olga-games-card {
  display: grid;
  align-content: start;
  gap: 16px;
  width: 100%;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 12px;
}

.olga-games-card-active {
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.olga-games-selector {
  gap: 20px;
}

.olga-games-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
}

.olga-games-options {
  display: grid;
  gap: 14px;
}

.olga-games-option-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 12px;
}

.olga-games-option-copy {
  display: grid;
  gap: 8px;
}

.olga-games-option-copy h3,
.olga-games-option-copy p {
  margin: 0;
}

.olga-games-option-copy p {
  color: rgba(255, 250, 240, 0.78);
}

.olga-games-option-badge {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.olga-games-prompt-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(220px, 1.15fr) minmax(220px, 1.15fr);
  gap: 12px;
  width: 100%;
}

.olga-games-prompt-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 10px;
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.olga-games-prompt-card strong,
.olga-games-prompt-card small {
  margin: 0;
}

.olga-games-prompt-card strong {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.1;
}

.olga-games-prompt-card small {
  color: rgba(255, 250, 240, 0.72);
  font-size: 1rem;
}

.olga-games-prompt-translation-placeholder {
  visibility: hidden;
}

.olga-games-prompt-card strong,
.olga-games-prompt-card small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.olga-games-prompt-label {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.olga-games-status-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.olga-games-title-block {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
}

.olga-games-scoreboard {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
}

.olga-games-score {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 104px;
  padding: 10px 14px;
  background: rgba(255, 250, 240, 0.1);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 10px;
  text-align: center;
}

.olga-games-score dt,
.olga-games-score dd {
  margin: 0;
}

.olga-games-score dt {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.olga-games-score dd {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.olga-games-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.olga-games-kicker,
.olga-games-helper,
.olga-games-feedback,
.olga-games-field {
  margin: 0;
}

.olga-games-kicker {
  color: var(--warm);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.olga-games-helper {
  max-width: 48ch;
  color: rgba(255, 250, 240, 0.78);
}

.olga-games-round-stack {
  display: grid;
  gap: 16px;
}

.olga-games-admin-editor-screen {
  align-content: start;
}

.olga-games-admin-screen-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.olga-games-admin-screen-header h3 {
  margin: 0;
}

.olga-games-admin-form {
  display: grid;
  gap: 14px;
  max-width: 880px;
}

.olga-games-admin-field {
  display: grid;
  gap: 8px;
}

.olga-games-admin-label {
  color: rgba(255, 250, 240, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.olga-games-admin-input,
.olga-games-admin-textarea {
  width: 100%;
  min-height: 46px;
  font-size: 1rem;
  line-height: 1.35;
}

.olga-games-admin-textarea {
  min-height: 92px;
  padding: 10px 14px;
  resize: vertical;
}

.olga-games-admin-code {
  font-family:
    "Ubuntu Sans Mono", "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.4;
}

.olga-games-source-config-list {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 250, 240, 0.78);
  display: grid;
  gap: 4px;
}

.olga-games-source-config-list code {
  font-family:
    "Ubuntu Sans Mono", "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.olga-games-source-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.olga-games-source-type-option {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 84px;
  padding: 10px 12px;
  text-align: left;
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 10px;
  cursor: pointer;
}

.olga-games-source-type-option strong {
  font-size: 0.95rem;
}

.olga-games-source-type-option small {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.82rem;
  line-height: 1.3;
}

.olga-games-source-type-option:hover {
  background: rgba(255, 250, 240, 0.14);
  border-color: rgba(255, 250, 240, 0.56);
}

.olga-games-source-type-option:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.22);
  outline-offset: 2px;
}

.olga-games-source-type-option-active {
  color: var(--ink);
  background: var(--active);
  border-color: rgba(201, 232, 106, 0.95);
}

.olga-games-source-type-option-active small {
  color: rgba(29, 50, 67, 0.86);
}

.olga-games-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.olga-games-round-stack-centered {
  justify-items: center;
  text-align: center;
}

.olga-games-field {
  font-weight: 700;
}

.olga-games-field-centered {
  justify-self: center;
  text-align: center;
}

.olga-games-word-prompt {
  text-align: center;
  margin-block: 24px 10px;
}

.olga-games-word-example {
  max-width: 42ch;
  margin: 0 auto 14px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
}

.olga-games-input {
  min-height: 48px;
}

.olga-games-input-large {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 72px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.olga-games-input-medium {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 72px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.olga-games-range-input {
  width: 8ch;
  min-width: 8ch;
}

.olga-games-settings-row .button-secondary {
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.12);
  border-color: rgba(255, 250, 240, 0.42);
}

.olga-games-settings-row .button-secondary:hover {
  background: rgba(255, 250, 240, 0.2);
  border-color: rgba(255, 250, 240, 0.7);
}

.olga-games-answer-stack {
  display: grid;
  gap: 12px;
}

.olga-games-answer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.olga-games-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.olga-games-admin-actions .button {
  min-height: 46px;
}

.olga-games-admin-groups {
  display: grid;
  gap: 14px;
}

.olga-games-admin-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 250, 240, 0.04);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 10px;
}

.olga-games-admin-group h4 {
  margin: 0;
  color: rgba(255, 250, 240, 0.9);
  font-size: 1rem;
}

.olga-games-actions-inline {
  align-items: stretch;
}

.olga-games-actions-inline .button {
  min-height: 72px;
}

.olga-games-next-button.button-secondary {
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.12);
  border-color: rgba(255, 250, 240, 0.42);
}

.olga-games-next-button.button-secondary:hover {
  background: rgba(255, 250, 240, 0.2);
  border-color: rgba(255, 250, 240, 0.7);
}

.olga-games-feedback-stack {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 18px;
  text-align: center;
}

.olga-games-feedback {
  max-width: 62ch;
  font-size: 1rem;
  font-weight: 700;
}

.olga-games-word-answer {
  margin-block: 0;
}

.olga-games-feedback-success {
  color: var(--color-primary);
}

.olga-games-feedback-error {
  color: var(--color-danger);
}

@media (max-width: 900px) {
  .olga-games-actions-inline {
    width: 100%;
  }

  .olga-games-actions-inline .button {
    flex: 1 1 0;
  }
}

@media (max-width: 720px) {
  .olga-games-option-card {
    grid-template-columns: 1fr;
  }

  .olga-games-prompt-grid {
    grid-template-columns: 1fr;
  }

  .olga-games-settings-row > * {
    width: 100%;
  }

  .olga-games-input-large {
    flex-basis: 100%;
  }

  .olga-games-input-medium {
    flex-basis: 100%;
  }

  .olga-games-source-type-grid {
    grid-template-columns: 1fr;
  }
}

.app-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.profile-selector-shell {
  display: block;
  min-width: 0;
}

.profile-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  padding: 3px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
}

.profile-selector-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-selector-item {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.profile-selector-tab {
  min-height: 36px;
  min-width: 108px;
  padding: 0 14px;
  color: #fffaf0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.profile-selector-tab[aria-selected="true"] {
  color: var(--active);
  background: transparent;
}

.profile-selector-tab:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.22);
  outline-offset: 2px;
}

.profile-selector-menu,
.profile-user-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: none;
  min-width: 220px;
  padding: 8px;
  background: #1d3243;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 10px;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.22);
}

.profile-selector-menu:not([hidden]),
.profile-user-dropdown:not([hidden]) {
  display: grid;
  gap: 4px;
}

.profile-selector-menu-item {
  min-height: 36px;
  width: 100%;
  padding: 0 10px;
  color: #fffaf0;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.05);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.profile-selector-menu-item:hover {
  background: rgba(255, 250, 240, 0.12);
  border-color: rgba(255, 250, 240, 0.24);
}

.profile-selector-menu-item:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.22);
  outline-offset: 2px;
}

.profile-selector-menu-item-danger {
  color: rgba(255, 190, 180, 0.96);
}

.profile-user-menu {
  position: relative;
  margin-left: auto;
}

.profile-user-trigger {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #fffaf0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.profile-user-trigger:hover {
  color: rgba(255, 250, 240, 0.84);
}

.profile-user-trigger:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.22);
  outline-offset: 2px;
}

.profile-user-dropdown {
  left: auto;
  right: 0;
  min-width: 180px;
}

.avatar-stage {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: start;
  grid-template-columns: minmax(120px, 25%) minmax(160px, 1fr);
  gap: 16px;
  width: calc(100% - 64px);
  margin-left: 64px;
  min-width: 0;
  overflow: hidden;
}

.avatar-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image: url("/assets/logo_blanco_sm-TVwWDvDQ.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(78.75%, 412.5px) auto;
  opacity: 0.1;
}

.avatar-image {
  display: block;
  width: 25%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.18));
}

.avatar-stage > .avatar-image {
  position: relative;
  z-index: 1;
  width: min(180px, 100%);
}

.avatar-app-list {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  width: min(260px, 100%);
}

.avatar-app-button {
  min-height: 42px;
  padding: 0 12px;
  color: #fffaf0;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.avatar-app-button:hover {
  background: rgba(255, 250, 240, 0.14);
  border-color: rgba(255, 250, 240, 0.48);
}

.avatar-app-button:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.22);
  outline-offset: 2px;
}

.gym-app,
.placeholder-app,
.design-system,
.user-profile,
.docs-page {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 14px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(255, 250, 240, 0.48) transparent;
  width: min(100%, 1080px);
}

.docs-page-workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
}

.docs-table-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.docs-editor-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.docs-editor-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.docs-editor-header h2,
.docs-editor-header p {
  margin: 0;
}

.docs-editor-header p {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.86rem;
}

.docs-editor-grid {
  display: grid;
  gap: 12px;
}

.docs-editor-field {
  display: grid;
  gap: 6px;
}

.docs-editor-field span {
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.84rem;
  font-weight: 800;
}

.docs-editor-field input,
.docs-editor-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
}

.docs-editor-field textarea {
  min-height: 90px;
  resize: vertical;
}

.docs-checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 250, 240, 0.9);
  font-weight: 700;
}

.docs-checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.docs-physical-grid {
  display: grid;
  gap: 12px;
}

.docs-field-hint {
  margin: 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.84rem;
}

.docs-editor-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 12px;
}

.docs-editor-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.docs-editor-section-header h3 {
  margin: 0;
  font-size: 1rem;
}

.docs-metadata-list {
  display: grid;
  gap: 8px;
}

.docs-metadata-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.docs-metadata-row input {
  min-height: 38px;
  padding: 8px 10px;
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
}

.docs-taxonomy-create {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-taxonomy-create input {
  min-height: 38px;
  padding: 8px 10px;
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
}

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

.docs-taxonomy-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.docs-taxonomy-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.docs-taxonomy-actions,
.docs-taxonomy-rename {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.docs-taxonomy-rename input {
  min-height: 36px;
  padding: 8px 10px;
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
}

.docs-editor-actions {
  display: flex;
  justify-content: end;
}

.docs-metadata-tooltip-anchor {
  position: relative;
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  z-index: 20;
}

.docs-metadata-tooltip-anchor:hover {
  z-index: 35;
}

.docs-metadata-tooltip-trigger {
  padding: 2px 8px;
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 999px;
  cursor: default;
}

.docs-metadata-tooltip-panel {
  display: none !important;
  min-width: 220px;
  top: calc(100% + 6px) !important;
  bottom: auto !important;
  left: calc(100% - 14px) !important;
  right: auto !important;
  transform: none !important;
  z-index: 30;
  text-align: left;
  justify-items: start;
}

.docs-metadata-tooltip-panel p {
  display: grid;
  justify-content: start;
  gap: 2px;
  text-align: left;
}

.docs-metadata-tooltip-panel strong,
.docs-metadata-tooltip-panel span {
  text-align: left;
}

.docs-metadata-tooltip-anchor:hover .docs-metadata-tooltip-panel {
  display: grid !important;
}

.docs-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.docs-toolbar-main {
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.docs-search-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  width: min(100%, 560px);
  flex: 1 1 auto;
}

.docs-search-field span {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

.docs-search-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  color: rgba(255, 250, 240, 0.58);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
}

.docs-search-input-wrap svg {
  order: 2;
  width: 18px;
  height: 18px;
}

.docs-search-field input {
  order: 1;
  min-height: 40px;
  padding: 0;
  color: #fffaf0;
  background: transparent;
  border: 0;
}

.docs-search-field input:focus {
  outline: none;
}

.docs-search-field input::placeholder {
  color: rgba(255, 250, 240, 0.52);
}

.docs-toolbar-summary {
  margin: 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.86rem;
  text-align: right;
}

.docs-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  white-space: nowrap;
}

.docs-upload-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 250, 240, 0.3);
  border-top-color: #fffaf0;
  border-radius: 50%;
  animation: chat-spinner-spin 0.9s linear infinite;
}

.docs-upload-status {
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.84rem;
}

.docs-table-wrap {
  min-width: 0;
  overflow: visible;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 12px;
}

.docs-table-scroll {
  overflow: visible;
  border-radius: inherit;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
}

.docs-table th,
.docs-table td {
  padding: 12px 14px;
  position: relative;
  vertical-align: middle;
  text-align: left;
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
}

.docs-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(29, 50, 67, 0.96);
}

.docs-table th button {
  padding: 0;
  color: #fffaf0;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-weight: 800;
}

.docs-table td strong,
.docs-table td small {
  display: block;
  overflow-wrap: anywhere;
}

.docs-table td small {
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.68);
}

.docs-comment-button,
.docs-comment-input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  color: #fffaf0;
  text-align: left;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
}

.docs-comment-button {
  cursor: text;
}

.docs-comment-input {
  cursor: text;
}

.docs-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #fffaf0;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
}

.docs-icon-button svg {
  width: 18px;
  height: 18px;
}

.docs-icon-button:hover:not(:disabled) {
  background: rgba(255, 250, 240, 0.16);
  border-color: rgba(255, 250, 240, 0.46);
}

.docs-icon-button-danger {
  color: var(--color-danger);
}

.docs-confirm-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29, 50, 67, 0.68);
}

.docs-confirm-dialog {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 20px;
  color: #fffaf0;
  background: #1d3243;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.docs-confirm-dialog h2,
.docs-confirm-dialog p {
  margin: 0;
}

.docs-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.docs-toast {
  display: flex;
  align-items: start;
  gap: 10px;
  width: min(560px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.docs-toast p {
  margin: 0;
  flex: 1 1 auto;
  color: #fffaf0;
  font-size: 0.85rem;
}

.docs-toast-success {
  background: rgba(70, 133, 54, 0.95);
  border-color: rgba(201, 232, 106, 0.55);
}

.docs-toast-error {
  background: rgba(122, 36, 38, 0.95);
  border-color: rgba(255, 173, 173, 0.6);
}

.docs-toast-close {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #fffaf0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
  line-height: 1;
}

.docs-toast-close:hover:not(:disabled) {
  background: rgba(255, 250, 240, 0.16);
}

.docs-table-status {
  margin: 0;
  padding: 14px;
  color: rgba(255, 250, 240, 0.78);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 12px;
}

.docs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.app-header-actions {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  justify-content: end;
  gap: 8px;
}

.app-header-kicker,
.app-header h1 {
  margin: 0;
}

.app-header-kicker {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.gym-kicker {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-header h1 {
  font-size: 1.6rem;
}

.gym-header h1 {
  margin: 0;
}

.gym-header h1 {
  font-size: 1.6rem;
}

.gym-close-button,
.gym-primary-button,
.gym-secondary-button {
  min-height: 40px;
  padding: 0 14px;
  color: #fffaf0;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 8px;
  font-weight: 800;
}

.gym-close-button:hover,
.gym-primary-button:hover,
.gym-secondary-button:hover {
  border-color: rgba(255, 250, 240, 0.68);
}

.gym-primary-button:disabled,
.gym-secondary-button:disabled {
  cursor: default;
  opacity: 0.52;
}

.gym-icon-button,
.json-editor-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  color: #fffaf0;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 8px;
}

.gym-icon-button svg,
.json-editor-icon-button svg {
  width: 18px;
  height: 18px;
}

.gym-icon-button:hover:not(:disabled),
.json-editor-icon-button:hover:not(:disabled) {
  border-color: rgba(255, 250, 240, 0.68);
}

.gym-icon-button:disabled,
.json-editor-icon-button:disabled {
  cursor: default;
  opacity: 0.52;
}

.gym-icon-button-danger {
  color: var(--color-danger);
}

.gym-icon-button[data-tooltip]::after,
.json-editor-icon-button[data-tooltip]::after {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  padding: 6px 8px;
  color: #fffaf0;
  white-space: nowrap;
  pointer-events: none;
  content: attr(data-tooltip);
  background: rgba(20, 34, 46, 0.95);
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.gym-icon-button[data-tooltip]:hover::after,
.gym-icon-button[data-tooltip]:focus-visible::after,
.json-editor-icon-button[data-tooltip]:hover::after,
.json-editor-icon-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gym-routine-list {
  --gym-routine-card-width: 260px;
  --gym-routine-card-height: 104px;
  display: grid;
  align-content: start;
  align-items: start;
  align-self: start;
  justify-content: start;
  grid-auto-rows: var(--gym-routine-card-height);
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--gym-routine-card-width)), var(--gym-routine-card-width))
  );
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.gym-routine-card {
  display: grid;
  align-content: start;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 12px;
  color: #fffaf0;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
}

.gym-routine-card span {
  font-size: 0.82rem;
}

.gym-routine-card strong,
.gym-routine-card span {
  overflow-wrap: anywhere;
}

.gym-routine-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.gym-routine-editor {
  width: min(100%, 980px);
}

.gym-routine-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.gym-routine-detail-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.28rem;
}

.gym-routine-detail-header .gym-primary-button {
  flex-shrink: 0;
}

.gym-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(240px, 1.05fr);
  gap: 14px;
  min-width: 0;
}

.gym-player {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
}

.gym-player-meta,
.gym-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gym-player-meta {
  justify-content: space-between;
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.86rem;
  font-weight: 800;
}

.gym-current-exercise {
  overflow-wrap: anywhere;
  font-size: 1.2rem;
}

.gym-rest-label {
  width: fit-content;
  padding: 3px 8px;
  color: #1d3243;
  background: var(--warm);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.gym-repetition-target,
.gym-timer {
  color: var(--active);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.gym-repetition-target {
  font-size: 1.7rem;
}

.gym-player progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  accent-color: var(--active);
  border-radius: 8px;
}

.gym-session-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.gym-session-summary div,
.gym-session-history-item {
  padding: 10px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
}

.gym-session-summary dt,
.gym-session-history-meta span,
.gym-session-history-stats {
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.76rem;
}

.gym-session-summary dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.gym-complete-message {
  display: grid;
  gap: 10px;
  padding: 14px;
  color: #1d3243;
  background: rgba(201, 232, 106, 0.92);
  border-radius: 10px;
}

.gym-complete-message strong,
.gym-complete-message p {
  margin: 0;
}

.gym-complete-message .gym-primary-button {
  justify-self: start;
}

.gym-primary-button {
  color: #1d3243;
  background: var(--active);
  border-color: var(--active);
}

.gym-exercise-guide,
.gym-exercise-list,
.gym-session-history {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
}

.gym-exercise-guide h2,
.gym-exercise-guide p,
.gym-exercise-guide dl {
  margin: 0;
}

.gym-exercise-guide h2 {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.gym-exercise-guide p {
  color: rgba(255, 250, 240, 0.84);
  font-size: 0.9rem;
}

.json-editor {
  display: grid;
  gap: 8px;
  width: 100%;
}

.json-editor-textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  color: #1d3243;
  background: rgba(255, 250, 240, 0.95);
  border: 1px solid rgba(255, 250, 240, 0.62);
  border-radius: 8px;
  font-family: "Fira Code", "JetBrains Mono", "Cascadia Code", monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  resize: vertical;
}

.json-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.json-editor-status {
  margin: 0;
  font-size: 0.9rem;
}

.json-editor-status-success {
  color: rgba(255, 250, 240, 0.84);
}

.json-editor-status-error {
  color: var(--color-danger);
}

.runtime-tag-filter {
  display: grid;
  gap: 10px;
  width: 100%;
}

.runtime-tag-filter-title {
  margin: 0;
  color: rgba(255, 250, 240, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.runtime-tag-filter-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.runtime-tag-filter-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 250, 240, 0.88);
}

.runtime-tag-filter-select-field {
  display: grid;
  gap: 6px;
  max-width: 320px;
}

.runtime-tag-filter-select-field span {
  color: rgba(255, 250, 240, 0.88);
  font-size: 0.86rem;
}

.runtime-tag-filter-helper {
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.86rem;
}

.gym-routine-editor-json {
  min-height: 360px;
}

.gym-routine-editor code {
  padding: 1px 4px;
  color: #1d3243;
  background: rgba(255, 250, 240, 0.84);
  border-radius: 4px;
}

.gym-exercise-guide dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gym-exercise-guide dt {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
}

.gym-exercise-guide dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.gym-muscle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gym-muscle-list li {
  padding: 3px 8px;
  color: #1d3243;
  background: rgba(255, 250, 240, 0.86);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
}

.gym-exercise-list {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gym-session-history {
  min-height: 0;
}

.gym-session-history-standalone {
  margin-top: 14px;
}

.gym-session-history-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.gym-session-history-list {
  display: grid;
  gap: 8px;
}

.gym-session-history-item {
  display: grid;
  gap: 8px;
}

.gym-session-history-meta,
.gym-session-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.gym-session-history-meta strong {
  overflow-wrap: anywhere;
}

.gym-exercise-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 250, 240, 0.06);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
}

.gym-exercise-item[aria-current="step"] {
  color: #1d3243;
  background: var(--active);
  border-color: var(--active);
}

.gym-exercise-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #1d3243;
  background: rgba(255, 250, 240, 0.9);
  border-radius: 50%;
  font-weight: 800;
}

.gym-exercise-item strong,
.gym-exercise-item small {
  display: block;
  overflow-wrap: anywhere;
}

.gym-exercise-item small {
  font-size: 0.76rem;
}

.countdown-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 18px;
  background: rgba(29, 50, 67, 0.68);
}

.countdown-modal {
  display: grid;
  gap: 14px;
  width: min(360px, 100%);
  min-width: 0;
  padding: 20px;
  color: #fffaf0;
  background: #1d3243;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
  cursor: grab;
  user-select: none;
}

.countdown-modal--dragging {
  cursor: grabbing;
}

.countdown-modal h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.countdown-modal-timer {
  display: block;
  margin: 0;
  color: var(--active);
  font-size: 3rem;
  line-height: 1;
}

.countdown-modal-next {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.countdown-modal-next span {
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
}

.countdown-modal-next strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.countdown-modal-action {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  color: #fffaf0;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 8px;
  font-weight: 800;
}

.countdown-modal-action:hover {
  border-color: rgba(255, 250, 240, 0.68);
}

.gym-status,
.gym-error {
  margin: 0;
}

.gym-status {
  color: rgba(255, 250, 240, 0.82);
}

.gym-error {
  color: var(--color-danger);
}

.design-system {
  color: #fffaf0;
}

.design-system-card h3,
.design-system-card p,
.design-system-sample h3,
.design-system-section h2,
.design-system-layout-item p {
  margin: 0;
}

.design-system-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.design-system-section h2 {
  font-size: 1.1rem;
}

.design-system-color-grid,
.design-system-component-grid,
.design-system-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  min-width: 0;
}

.design-system-card,
.design-system-sample,
.design-system-layout-item {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
}

.design-system-card,
.design-system-card-copy,
.design-system-sample {
  display: grid;
  gap: 8px;
}

.design-system-swatch {
  display: block;
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: 8px;
}

.design-system-card h3,
.design-system-sample h3 {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}

.design-system-card p,
.design-system-path,
.design-system-layout-item p {
  color: rgba(255, 250, 240, 0.78);
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.design-system code {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  color: #1d3243;
  overflow-wrap: anywhere;
  background: rgba(255, 250, 240, 0.9);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}

.design-system-level {
  width: fit-content;
  padding: 2px 8px;
  color: #1d3243;
  background: var(--active);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
}

.design-system-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.design-system-subsection-title {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 250, 240, 0.74);
}

.design-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.design-system-light-sample {
  display: inline-grid;
  padding: 6px;
  background: var(--field);
  border-radius: 8px;
}

.design-system-chat-sample {
  display: grid;
  gap: 8px;
}

.design-system-chat-sample .chat-message {
  max-width: 100%;
}

.design-system-sample .profile-selector {
  margin-left: 0;
  width: 100%;
}

.design-system-logo-preview {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.design-system-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.design-system-avatar-sample .avatar-image {
  width: min(160px, 100%);
  aspect-ratio: 3 / 4;
}

.design-system-layout-list {
  display: grid;
  gap: 8px;
}

.design-system-layout-item {
  display: grid;
  gap: 6px;
}

.design-system-tone-list {
  display: grid;
  gap: 8px;
}

.design-system-tone-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 250, 240, 0.04);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
}

.design-system-tone-demo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.design-system-tone-demo {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
}

.user-profile-actions {
  display: grid;
  gap: 10px;
}

.user-profile-settings {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.user-profile-settings h2 {
  margin: 0;
  color: #fffaf0;
  font-size: 1.1rem;
}

.user-profile-settings-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
}

.user-profile-settings-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.user-profile-settings-card-header strong,
.user-profile-settings-card-header small {
  display: block;
}

.user-profile-settings-card-header strong {
  overflow-wrap: anywhere;
}

.user-profile-settings-card-header small {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.user-profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.user-profile-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.user-profile-field span,
.user-profile-switch span,
.user-profile-check span {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  font-weight: 800;
}

.user-profile-field input,
.user-profile-field select {
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  color: #1d3243;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(255, 250, 240, 0.62);
  border-radius: 8px;
}

.user-profile-switch,
.user-profile-check {
  display: flex;
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.user-profile-switch input,
.user-profile-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--active);
}

.user-profile-toggle-row,
.user-profile-moment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-width: 0;
}

.user-profile-moment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.user-profile-action {
  min-height: 46px;
  color: #fffaf0;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  font-weight: 800;
}

.user-profile-action {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  text-align: left;
}

.user-profile-action small {
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.user-profile-action[aria-pressed="true"] {
  color: #1d3243;
  background: var(--active);
  border-color: var(--active);
}

.user-profile-action[aria-pressed="true"] small {
  color: rgba(29, 50, 67, 0.66);
}

.user-profile-action:hover:not(:disabled) {
  background: rgba(255, 250, 240, 0.14);
  border-color: rgba(255, 250, 240, 0.48);
}

.user-profile-action:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.22);
  outline-offset: 2px;
}

.user-profile-action:disabled {
  cursor: default;
  opacity: 0.56;
}

.user-profile-danger-action {
  border-color: var(--color-danger);
}

.user-profile-error {
  margin: 0;
  color: var(--color-danger);
  font-weight: 800;
}

.user-profile-user-row {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 250, 240, 0.04);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
}

.user-profile-user-row small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.user-profile-user-row-actions {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(120px, auto);
  gap: 8px;
}

.user-profile-user-password-input {
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  color: #1d3243;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(255, 250, 240, 0.62);
  border-radius: 8px;
}

.katya-dashboard {
  gap: 18px;
  padding-right: 6px;
}

.katya-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-height: max-content;
}

.katya-dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.katya-dashboard-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(201, 232, 106, 0.1), rgba(255, 250, 240, 0.08)),
    rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 12px;
}

.katya-dashboard-chart-card {
  min-height: 0;
}

.katya-dashboard-card-hero-on-target {
  background:
    linear-gradient(180deg, rgba(201, 232, 106, 0.18), rgba(255, 250, 240, 0.08)),
    rgba(255, 250, 240, 0.08);
  border-color: rgba(201, 232, 106, 0.38);
}

.katya-dashboard-card-hero-over-target {
  background:
    linear-gradient(180deg, rgba(255, 184, 107, 0.18), rgba(255, 250, 240, 0.08)),
    rgba(255, 250, 240, 0.08);
  border-color: rgba(255, 184, 107, 0.4);
}

.katya-dashboard-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.katya-dashboard-kicker {
  margin: 0;
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.katya-dashboard h2,
.katya-dashboard-summary,
.katya-dashboard-card p {
  margin: 0;
}

.katya-dashboard h2 {
  color: #fffaf0;
  font-size: 1.35rem;
}

.katya-dashboard-summary {
  color: var(--active);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
}

.katya-dashboard-card-hero-over-target .katya-dashboard-summary {
  color: var(--warm);
}

.katya-dashboard-summary-goal,
.katya-dashboard-card-hero-over-target .katya-dashboard-summary-goal {
  color: #fffaf0;
}

.katya-dashboard-kpi-card {
  gap: 10px;
}

.katya-dashboard-kpi-card-double {
  grid-column: span 2;
}

.katya-dashboard-kpi-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.katya-dashboard-kpi-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.katya-dashboard-kpi-card-habits {
  display: flex;
  flex-direction: column;
}

.katya-dashboard-summary-kpi-red {
  color: #ff6b6b;
}

.katya-dashboard-summary-kpi-orange {
  color: #ffb86b;
}

.katya-dashboard-summary-kpi-yellow {
  color: #f0dd7a;
}

.katya-dashboard-summary-kpi-green {
  color: #c9e86a;
}

.katya-dashboard-kpi-button {
  display: inline-flex;
  margin-top: auto;
  align-self: flex-end;
  padding: 7px 12px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(29, 50, 67, 0.28);
  color: #fffaf0;
  font-weight: 700;
  text-decoration: none;
  text-transform: lowercase;
}

.katya-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0;
}

.katya-dashboard-stats div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(29, 50, 67, 0.28);
  border-radius: 10px;
}

.katya-dashboard-stats dt {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.katya-dashboard-stats dd {
  margin: 0;
  color: #fffaf0;
  font-size: 1rem;
  font-weight: 800;
}

.katya-dashboard-chart {
  display: grid;
  gap: 14px;
  min-height: 0;
  width: 100%;
}

.katya-dashboard-chart-frame {
  height: 250px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.06), rgba(255, 250, 240, 0)),
    rgba(29, 50, 67, 0.24);
  border-radius: 12px;
  padding: 12px 10px 12px;
}

.katya-dashboard-chart-frame .recharts-responsive-container {
  min-height: 220px;
}

.katya-dashboard-grid-lines line {
  stroke: rgba(255, 250, 240, 0.14);
}

.katya-dashboard-line {
  filter: drop-shadow(0 10px 18px rgba(201, 232, 106, 0.16));
}

.katya-dashboard-goal-line line {
  stroke: var(--active);
}

.katya-dashboard-goal-line-history line {
  stroke: rgba(255, 250, 240, 0.34);
}

.katya-dashboard-point {
  fill: #fffaf0;
  stroke: var(--active);
  stroke-width: 3;
}

.katya-dashboard-axis-label {
  fill: rgba(255, 250, 240, 0.72);
  font-size: 0.75rem;
}

.katya-dashboard-tooltip {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(29, 50, 67, 0.92);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.katya-dashboard-tooltip strong {
  color: #fffaf0;
}

.katya-dashboard-tooltip span {
  fill: #fffaf0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.78rem;
}

.katya-dashboard-workout-history {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.katya-dashboard-workout-month {
  display: grid;
  gap: 12px;
}

.katya-dashboard-workout-month-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.katya-dashboard-workout-month-title {
  margin: 0;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.katya-dashboard-workout-month-nav {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(29, 50, 67, 0.28);
  color: #fffaf0;
  font-size: 1.05rem;
  line-height: 1;
}

.katya-dashboard-workout-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.katya-dashboard-workout-weekday {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.katya-dashboard-workout-month-day-placeholder {
  min-height: 62px;
}

.katya-dashboard-workout-month-day {
  display: grid;
  gap: 2px;
  position: relative;
  min-height: 62px;
  align-content: center;
  justify-items: center;
  padding: 6px 4px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.7rem;
  text-align: center;
  font-family: inherit;
}

.katya-dashboard-workout-month-day.active {
  border-color: var(--active);
  box-shadow: inset 0 0 0 1px rgba(201, 232, 106, 0.58);
}

.katya-dashboard-workout-month-day strong {
  color: #fffaf0;
  font-size: 0.82rem;
}

.katya-dashboard-workout-month-day small {
  color: rgba(255, 250, 240, 0.74);
}

.katya-dashboard-workout-day-popover {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  width: min(240px, 92vw);
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 10px;
  background: rgba(23, 40, 54, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.katya-dashboard-workout-day-popover-center {
  left: 50%;
  transform: translateX(-50%);
}

.katya-dashboard-workout-day-popover-left {
  left: 0;
}

.katya-dashboard-workout-day-popover-right {
  right: 0;
}

.katya-dashboard-workout-day-popover p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.katya-dashboard-workout-day-popover strong {
  color: #fffaf0;
  font-size: 0.8rem;
}

.katya-dashboard-workout-day-popover span {
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.75rem;
}

.katya-dashboard-workout-month-day-empty {
  background: rgba(29, 50, 67, 0.18);
}

.katya-dashboard-workout-month-day-low {
  background: rgba(201, 232, 106, 0.24);
}

.katya-dashboard-workout-month-day-medium {
  background: rgba(201, 232, 106, 0.38);
}

.katya-dashboard-workout-month-day-high {
  background: rgba(201, 232, 106, 0.52);
}

.katya-dashboard-workout-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(29, 50, 67, 0.28);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 10px;
}

.katya-dashboard-workout-item-header,
.katya-dashboard-workout-item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.katya-dashboard-workout-item-header strong {
  overflow-wrap: anywhere;
}

.katya-dashboard-workout-item-header span,
.katya-dashboard-workout-item-stats {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.8rem;
}

.assistant-chat {
  display: grid;
  align-content: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(255, 250, 240, 0.48) transparent;
}

.chat-message {
  max-width: 88%;
  padding: 12px 14px;
  color: #fffaf0;
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
}

.chat-message-user {
  align-self: flex-end;
  background: rgba(170, 205, 230, 0.2);
  border-color: rgba(170, 205, 230, 0.52);
}

.chat-message-author {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-message-body {
  font: inherit;
  color: inherit;
}

.chat-message-body p {
  margin: 0;
  overflow-wrap: anywhere;
}

.markdown-content {
  display: grid;
  gap: 10px;
}

.markdown-content > :first-child {
  margin-top: 0;
}

.markdown-content > :last-child {
  margin-bottom: 0;
}

.markdown-paragraph,
.markdown-blockquote,
.markdown-list,
.markdown-pre,
.markdown-h1,
.markdown-h2,
.markdown-h3,
.markdown-h4 {
  margin: 0;
  overflow-wrap: anywhere;
}

.markdown-h1,
.markdown-h2,
.markdown-h3 {
  color: #9cc9e4;
  line-height: 1.25;
}

.markdown-h4 {
  color: inherit;
  line-height: 1.25;
}

.markdown-h1 {
  font-size: 1.45rem;
  font-weight: 800;
}

.markdown-h2 {
  font-size: 1.28rem;
  font-weight: 760;
}

.markdown-h3 {
  font-size: 1.14rem;
  font-weight: 720;
}

.markdown-h4 {
  font-size: 1.03rem;
  font-weight: 700;
}

.markdown-list {
  padding-left: 20px;
}

.markdown-list li + li {
  margin-top: 6px;
}

.markdown-blockquote {
  padding-left: 12px;
  color: inherit;
  border-left: 2px solid rgba(255, 250, 240, 0.3);
}

.markdown-pre {
  padding: 0;
  font-size: inherit;
  white-space: pre-wrap;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.markdown-content code {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.markdown-paragraph code,
.markdown-blockquote code,
.markdown-list code,
.markdown-h1 code,
.markdown-h2 code,
.markdown-h3 code,
.markdown-h4 code {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.markdown-link {
  color: inherit;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
}

.markdown-th,
.markdown-td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(255, 250, 240, 0.18);
  overflow-wrap: anywhere;
}

.markdown-th {
  font-weight: 700;
  background: rgba(255, 250, 240, 0.08);
}

.chat-spinner {
  display: grid;
  align-self: flex-start;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--active);
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 8px;
}

.chat-spinner-ring {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 250, 240, 0.24);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: chat-spinner-spin 0.9s linear infinite;
}

@keyframes chat-spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

.chat-composer {
  display: block;
  align-self: end;
  min-height: 0;
}

.chat-command-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
}

.chat-command-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 0;
  color: #fffaf0;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.chat-command-option strong {
  font-size: 0.92rem;
}

.chat-command-option span {
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.82rem;
}

.chat-command-option:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.18);
  outline-offset: 2px;
}

.chat-composer-input {
  position: relative;
}

.chat-textarea {
  width: 100%;
  height: calc(1.5em * 3 + 24px);
  min-height: calc(1.5em * 3 + 24px);
  max-height: calc(1.5em * 3 + 24px);
  padding: 12px 14px;
  color: var(--ink);
  resize: none;
  overflow-y: auto;
  background: var(--field);
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
  scrollbar-color: rgba(31, 52, 64, 0.42) transparent;
}

.chat-textarea::placeholder {
  color: rgba(31, 52, 64, 0.5);
}

.chat-textarea:focus {
  background: var(--field-strong);
  border-color: var(--line);
  outline: 3px solid rgba(255, 250, 240, 0.18);
}

.chat-textarea:disabled {
  cursor: progress;
  opacity: 0.72;
}

.chat-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.chat-upload-action {
  margin-top: 0.85rem;
  align-self: flex-start;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 250, 240, 0.4);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.14);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.chat-upload-action:hover:not(:disabled) {
  background: rgba(255, 250, 240, 0.22);
  border-color: rgba(255, 250, 240, 0.58);
  transform: translateY(-1px);
}

.chat-upload-action:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.24);
  outline-offset: 2px;
}

.chat-upload-action:disabled {
  cursor: progress;
  opacity: 0.72;
}

.login-hero {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.login-logo {
  width: min(460px, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.16));
}

.login-form-panel {
  align-self: center;
  justify-self: start;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  width: min(100%, 360px);
  color: var(--ink);
}

.login-form {
  display: grid;
  gap: 14px;
}

.text-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
}

.text-input::placeholder {
  color: rgba(31, 52, 64, 0.5);
}

.text-input:focus {
  background: var(--field-strong);
  border-color: var(--line);
  outline: 3px solid rgba(255, 250, 240, 0.18);
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 240, 0.62);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button-primary {
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.button-primary:hover {
  background: rgba(255, 250, 240, 0.14);
  border-color: rgba(255, 250, 240, 0.82);
}

.button.button-active:not(:disabled) {
  color: var(--ink);
  background: var(--active);
  border-color: var(--active);
  box-shadow: 0 14px 34px rgba(201, 232, 106, 0.24);
}

.button.button-active:not(:disabled):hover {
  background: #d7ef86;
  border-color: #d7ef86;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: rgba(31, 52, 64, 0.3);
}

.button:focus-visible {
  outline: 3px solid rgba(255, 250, 240, 0.22);
  outline-offset: 2px;
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.form-error {
  margin: 0;
  color: var(--color-danger);
  font-size: 0.92rem;
}

.form-status {
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.9rem;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-info {
  color: var(--color-info);
}

.text-warning {
  color: var(--color-warning);
}

.text-danger {
  color: var(--color-danger);
}

.border-primary {
  border-color: var(--color-primary);
}

.border-secondary {
  border-color: var(--color-secondary);
}

.border-info {
  border-color: var(--color-info);
}

.border-warning {
  border-color: var(--color-warning);
}

.border-danger {
  border-color: var(--color-danger);
}

.background-primary {
  color: var(--ink);
  background-color: var(--color-primary);
}

.background-secondary {
  color: var(--ink);
  background-color: var(--color-secondary);
}

.background-info {
  color: var(--ink);
  background-color: var(--color-info);
}

.background-warning {
  color: var(--ink);
  background-color: var(--color-warning);
}

.background-danger {
  color: var(--ink);
  background-color: var(--color-danger);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-development-mode="true"] [data-dev-name]:hover {
  outline: 2px solid #c9e86a;
  outline-offset: 3px;
}

.development-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(320px, calc(100vw - 24px));
  padding: 6px 8px;
  color: #1d3243;
  pointer-events: none;
  background: #c9e86a;
  border: 1px solid rgba(29, 50, 67, 0.28);
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 820px) {
  .assistant-page,
  .assistant-app-page {
    grid-template-columns: 1fr;
    height: 100dvh;
    gap: 24px;
    min-height: 0;
    padding: 18px;
  }

  .assistant-page {
    grid-template-rows: auto minmax(0, 42vh) minmax(0, 1fr);
  }

  .assistant-app-page {
    grid-template-rows: minmax(0, 1fr) minmax(220px, 38vh);
  }

  .profile-selector-shell {
    display: block;
  }

  .profile-selector {
    flex-wrap: wrap;
  }

  .profile-selector-tabs {
    flex-wrap: wrap;
    flex: 1 1 auto;
  }

  .profile-selector-item {
    flex: 1 1 140px;
  }

  .profile-selector-tab {
    width: 100%;
  }

  .profile-user-menu {
    margin-left: auto;
  }

  .assistant-workspace-toast {
    top: -18px;
  }

  .avatar-stage {
    width: calc(100% - 60px);
    margin-left: 60px;
    grid-template-columns: 1fr;
  }

  .avatar-image {
    width: 25%;
  }

  .avatar-app-list {
    width: 100%;
  }

  .assistant-app-guide {
    min-height: 0;
  }

  .gym-routine-detail-header {
    align-items: start;
    flex-direction: column;
  }

  .gym-routine-detail-header .gym-primary-button,
  .countdown-modal-action {
    width: 100%;
  }

  .gym-routine-list {
    --gym-routine-card-width: 100%;
    grid-template-columns: 1fr;
  }

  .gym-workspace,
  .gym-exercise-guide dl,
  .gym-session-summary {
    grid-template-columns: 1fr;
  }

  .login-page {
    align-content: center;
    align-items: center;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 18px;
  }

  .login-hero {
    padding-top: 4px;
  }

  .login-logo {
    width: min(220px, 68vw);
  }

  .login-form-panel {
    justify-self: center;
    width: 100%;
  }

  .user-profile-header {
    align-items: start;
    flex-direction: column;
  }

  .katya-dashboard-grid,
  .katya-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .katya-dashboard-kpi-card-double {
    grid-column: span 1;
  }

  .katya-dashboard-kpi-split {
    grid-template-columns: 1fr;
  }

  .olga-vocabulary-dashboard-grid,
  .olga-vocabulary-chart-grid {
    grid-template-columns: 1fr;
  }

  .olga-vocabulary-header-actions,
  .olga-vocabulary-dashboard-toolbar,
  .olga-vocabulary-section-heading,
  .olga-vocabulary-chart-heading,
  .olga-vocabulary-category-row {
    align-items: start;
    flex-direction: column;
  }

  .app-header {
    align-items: start;
    flex-direction: column;
  }

  .gym-close-button {
    width: 100%;
  }

  .user-profile-settings-card-header {
    flex-direction: column;
  }

  .user-profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .user-profile-user-row-actions {
    grid-template-columns: 1fr;
  }

  .docs-toolbar {
    flex-direction: column;
  }

  .docs-toolbar-main {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .docs-search-field,
  .docs-upload-button,
  .docs-pagination .gym-secondary-button {
    width: 100%;
  }

  .docs-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .docs-confirm-actions,
  .docs-row-actions {
    flex-wrap: wrap;
  }
}

.habits-app {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  width: min(100%, 980px);
}

.habits-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 10px;
}

.habits-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.habits-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.habits-item {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: start;
  padding: 12px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 10px;
}

.habits-item-copy {
  display: grid;
  gap: 4px;
}

.habits-item-copy p,
.habits-item-copy small,
.habits-item-copy strong {
  margin: 0;
}

.habits-item-copy small {
  color: rgba(255, 250, 240, 0.72);
}

.habits-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 820px) {
  .habits-form-row {
    grid-template-columns: 1fr;
  }

  .habits-item {
    flex-direction: column;
  }
}

.habits-tracking {
  display: grid;
  gap: 10px;
}

.habits-week-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.habits-table-wrap {
  overflow: auto;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 10px;
}

.habits-table {
  width: 100%;
  border-collapse: collapse;
}

.habits-table th,
.habits-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
}

.habits-table th:first-child,
.habits-table td:first-child {
  text-align: left;
  min-width: 220px;
}

.habits-table td:first-child small {
  display: block;
  color: rgba(255, 250, 240, 0.72);
}

.habits-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--active);
}

.katya-dashboard-habits-list {
  display: grid;
  gap: 8px;
}

.katya-dashboard-habit-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: rgba(29, 50, 67, 0.28);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 10px;
}

.katya-dashboard-habit-item-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.katya-dashboard-habit-item small {
  color: rgba(255, 250, 240, 0.72);
}

.katya-health-goals-list {
  display: grid;
  gap: 10px;
}

.katya-health-goal-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 10px;
}

.katya-health-goal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.katya-health-goal-card-header strong {
  font-size: 1.05rem;
}

.katya-health-goal-card-header span {
  color: rgba(255, 250, 240, 0.88);
  font-weight: 700;
}

.katya-health-goal-form {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
}

.katya-health-goal-field {
  display: grid;
  gap: 4px;
}

.katya-health-goal-field span {
  color: rgba(255, 250, 240, 0.84);
  font-size: 0.84rem;
  font-weight: 700;
}

.katya-health-goal-field input {
  width: 180px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  color: #1d3243;
}

.katya-health-goal-form .gym-primary-button {
  height: 38px;
  padding: 0 14px;
}

.katya-health-admin {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.08);
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 10px;
}

.katya-health-admin h2 {
  margin: 0;
  font-size: 1rem;
}

.katya-health-admin-create {
  display: grid;
  gap: 10px;
}

.katya-health-admin-item {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: rgba(29, 50, 67, 0.28);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 10px;
}

.katya-health-admin-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 2.2fr) minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr);
}

.katya-health-admin-item-title {
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.katya-health-admin-field {
  display: grid;
  gap: 4px;
}

.katya-health-admin-field span {
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

.katya-health-admin-field input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  color: #1d3243;
}

.katya-health-admin-field-compact {
  min-width: 0;
}

.katya-health-admin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.katya-health-admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: rgba(255, 250, 240, 0.9);
  font-size: 0.84rem;
  font-weight: 700;
}

.katya-health-admin-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.katya-health-admin-checkbox span {
  margin: 0;
}

.katya-health-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.katya-health-admin-list {
  display: grid;
  gap: 8px;
}

@media (max-width: 980px) {
  .katya-health-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .katya-health-admin-grid {
    grid-template-columns: 1fr;
  }

  .katya-health-admin-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .katya-health-admin-actions {
    margin-left: 0;
  }
}
