:root {
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: #242b28;
  background: #fafaf8;
  font-synthesis: none;
  --green: #285e49;
  --muted: #737c76;
  --border: #e2e6e1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  touch-action: manipulation;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner,
.app-shell {
  max-width: 1200px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-caption {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #f2f4f0;
  border-radius: 7px;
}
.lang-switch button {
  font-size: 11px;
  font-weight: 600;
  color: #6e776f;
  background: none;
  border: 0;
  padding: 7px 10px;
  border-radius: 5px;
}
.lang-switch button[aria-pressed='true'] {
  color: #293d30;
  background: #fff;
  box-shadow: 0 1px 3px #24382b15;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  min-height: 65px;
}
.tab {
  padding: 22px 0 19px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #727a73;
  font-size: 13px;
  white-space: nowrap;
}
.tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
  font-weight: 600;
}
.tab:hover {
  color: #202a24;
}
.dataset-status {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.page-heading {
  padding: 34px 0 26px;
}
.page-heading h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.camera-panel,
.result-panel,
.phrase-list-panel,
.sample-panel,
.eval-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.camera-panel {
  padding: 18px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.camera-state {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.camera-state:before {
  content: '';
  width: 5px;
  height: 5px;
  background: #b7bdb7;
  border-radius: 50%;
}
.camera-state.connected:before {
  background: #4b996d;
}
.camera-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 470px;
  background: #edf0eb;
  border-radius: 6px;
  overflow: hidden;
}
.camera-wrap video,
.camera-wrap canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
  inset: 0;
}
.camera-wrap canvas {
  pointer-events: none;
}
.camera-wrap:has(video[srcobject]) {
  background: #222;
}
.camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 20px;
  text-align: center;
  background: #f0f2ee;
}
.camera-placeholder svg {
  width: 45px;
  height: 45px;
  color: #8d998f;
  margin-bottom: 8px;
}
.camera-placeholder strong {
  font-size: 15px;
  font-weight: 500;
  color: #647068;
}
.camera-placeholder span {
  font-size: 12px;
  color: #859087;
  max-width: 270px;
  line-height: 1.5;
}
.record-badge {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 11px;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 5px #0001;
}
.record-badge.visible {
  display: flex;
}
.record-dot {
  width: 6px;
  height: 6px;
  background: #c44f44;
  border-radius: 50%;
  animation: blink 1s infinite;
}
.record-badge span:last-child {
  color: var(--muted);
}
.camera-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 15px;
}
.record-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.15s;
}
.button svg {
  height: 17px;
  width: 17px;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover:not(:disabled) {
  background: #204c3b;
}
.outline {
  background: #fff;
  border-color: #dce3dc;
  color: #3f5146;
}
.outline:hover:not(:disabled) {
  background: #f6f8f3;
}
.quiet {
  background: none;
  color: #768178;
}
.quiet:hover {
  background: #f3f5f1;
}
.danger {
  background: #b8443f;
  color: #fff;
}
.full-width {
  width: 100%;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--green);
  padding: 4px 0;
  font-size: 12px;
  font-weight: 500;
}
.text-button:hover {
  text-decoration: underline;
}
.tracking-area {
  margin-top: 18px;
  border-top: 1px solid #ebeee8;
  padding-top: 17px;
}
.tracking-control {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tracking-control p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.tracking-control .button {
  flex-shrink: 0;
}
.tracking-control .button[aria-pressed='true'] {
  border-color: #7da894;
  background: #eff6ef;
  color: #245f42;
}
.tracking-info {
  padding-top: 15px;
  font-size: 12px;
  color: #4a6655;
}
.tracking-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  color: #758178;
  font-size: 10px;
}
.tracking-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tracking-legend i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
}
.hand-dot {
  background: #28b978;
}
.pose-dot {
  background: #56a8ff;
}
#trackingStats {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.privacy-note {
  color: #8a938d;
  font-size: 10px;
  line-height: 1.6;
  padding: 16px 0;
}
.result-panel {
  padding: 23px;
}
.result {
  min-height: 217px;
  padding-top: 31px;
}
.result-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #7c8a80;
  margin-bottom: 16px;
}
.result strong {
  display: block;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: #3e5044;
}
.result p {
  font-size: 12px;
  line-height: 1.65;
  color: #899288;
  margin-top: 13px;
}
.result.is-unknown strong {
  color: #846f4b;
}
.help-panel {
  padding: 25px 6px 0;
}
.help-panel h3 {
  font-size: 12px;
  font-weight: 600;
}
.help-panel ol {
  padding-left: 18px;
  font-size: 12px;
  color: #788379;
  line-height: 1.7;
  margin: 13px 0 16px;
}
.help-panel li {
  padding-left: 4px;
  margin-bottom: 8px;
}
.feedback {
  font-size: 12px;
  line-height: 1.6;
  background: #edf3e9;
  color: #3b694c;
  padding: 13px 16px;
  border-radius: 6px;
  margin-top: 18px;
}
.feedback:empty {
  display: none;
}
.feedback.error {
  background: #fbefed;
  color: #96453a;
}
.dataset-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.phrase-list-panel {
  padding: 22px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.phrase-list {
  display: flex;
  flex-direction: column;
}
.phrase-card {
  background: none;
  border: 0;
  border-top: 1px solid #edf0e9;
  padding: 17px 9px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
  color: inherit;
  width: 100%;
}
.phrase-card:hover,
.phrase-card.selected {
  background: #f3f6ef;
}
.phrase-card .card-index {
  font-size: 11px;
  color: #9aa39b;
  font-variant-numeric: tabular-nums;
}
.phrase-card strong {
  font-size: 14px;
  font-weight: 500;
}
.phrase-card small {
  margin-left: auto;
  color: #849084;
  font-size: 11px;
}
.sample-panel {
  padding: 23px;
}
.field-label {
  display: block;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #6e7c70;
}
select {
  background: #fff;
  border: 1px solid #dce3db;
  border-radius: 6px;
  min-height: 42px;
  padding: 9px 12px;
  width: 100%;
  color: #384f3f;
  font-size: 13px;
}
.sample-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 17px 0;
}
.file-button {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.file-note {
  font-size: 10px;
  color: #8d978e;
  display: block;
  margin-top: 10px;
}
.last-recording {
  margin: 24px 0;
  padding-top: 21px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 21px;
  line-height: 1.6;
}
.eval-card {
  padding: 25px;
}
.eval-empty {
  display: flex;
  gap: 15px;
  align-items: center;
}
.step-number {
  height: 30px;
  width: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #f0f4ed;
  color: #53745b;
  border-radius: 50%;
  font-size: 12px;
}
.eval-empty p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}
.eval-empty .file-button {
  margin-left: auto;
  flex-shrink: 0;
}
.eval-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 25px;
}
.eval-actions span {
  font-size: 11px;
  color: var(--muted);
}
.eval-line {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.eval-line > span {
  flex: 1;
  overflow-wrap: anywhere;
}
.eval-line select {
  max-width: 230px;
}
.eval-result {
  font-size: 12px;
  overflow-x: auto;
  margin-top: 16px;
}
.eval-result table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.eval-result td,
.eval-result th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.eval-result th {
  font-weight: 500;
  color: var(--muted);
}
.eval-summary {
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #919b91;
}
footer span:first-child {
  font-weight: 600;
}
@keyframes blink {
  50% {
    opacity: 0.3;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr);
    gap: 16px;
  }
  .record-hint {
    width: 100%;
    margin-top: 5px;
  }
  .tracking-control {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }
  .dataset-status {
    display: none;
  }
  .brand-caption {
    display: none;
  }
  .dataset-layout {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .header-inner,
  .app-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
  .header-inner {
    height: 67px;
  }
  .brand {
    font-size: 21px;
  }
  .tabs {
    gap: 23px;
    overflow: auto;
    min-height: 58px;
  }
  .tab {
    font-size: 12px;
    padding: 19px 0 17px;
  }
  .page-heading {
    padding: 26px 0 21px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .workspace,
  .dataset-layout {
    grid-template-columns: 1fr;
  }
  .camera-panel {
    padding: 14px;
  }
  .camera-wrap {
    max-height: none;
  }
  .result-column {
    display: grid;
    grid-template-columns: 1fr;
  }
  .result {
    min-height: 150px;
    padding-top: 23px;
  }
  .result-panel {
    padding: 19px;
  }
  .help-panel {
    padding: 23px 4px 0;
  }
  .tracking-control {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .tracking-control .button {
    padding: 10px;
    font-size: 11px;
  }
  .camera-controls .button {
    font-size: 11px;
  }
  .eval-card {
    padding: 18px;
  }
  .eval-empty {
    flex-wrap: wrap;
  }
  .eval-empty > div {
    flex: 1;
    min-width: 180px;
  }
  .eval-empty .file-button {
    margin: 5px 0 0 45px;
  }
  .eval-actions {
    align-items: start;
    flex-direction: column;
  }
  .eval-line {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .eval-line select {
    max-width: none;
  }
  .eval-result table {
    min-width: 450px;
  }
  .tracking-legend {
    flex-wrap: wrap;
    gap: 10px;
  }
  footer {
    gap: 15px;
    line-height: 1.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.camera-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.camera-tools .button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 11px;
}
.camera-tools .button[aria-pressed='true'] {
  background: #eff6ef;
  border-color: #7da894;
}
.camera-placeholder .button {
  margin-top: 8px;
}
.camera-wrap {
  height: clamp(240px, 38vh, 380px);
  aspect-ratio: auto;
  max-height: none;
}
.tracking-area {
  margin-top: 14px;
  padding-top: 12px;
}
.camera-controls .record-hint {
  margin-left: 0;
}
@media (max-width: 680px) {
  .camera-wrap {
    height: auto;
    aspect-ratio: 4/3;
  }
  .camera-tools {
    gap: 8px;
  }
  .camera-tools .camera-state {
    display: none;
  }
}
.tracking-info.error {
  color: #a3483c;
}
#liveButton[aria-pressed='true'] {
  background: #285e49;
  border-color: #285e49;
  color: #fff;
}
.result.is-tentative strong {
  color: #815b28;
}
.result.is-tentative p {
  color: #655744;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-action {
  border: 1px solid var(--border);
  background: #fff;
  color: #3e5446;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.header-action:hover {
  background: #f2f6f0;
}
#themeButton {
  font-size: 19px;
  padding: 4px 10px;
  min-width: 37px;
}
.practice-notice {
  display: inline-block !important;
  margin-top: 12px;
  padding: 9px 12px;
  background: #eaf3e8;
  border-radius: 6px;
  color: #345e43;
  font-size: 12px;
}
.practice-notice[hidden] {
  display: none !important;
}
#backToLessonButton {
  margin-top: 10px;
}
.lesson-summary,
.lesson-detail,
.account-card,
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.lesson-summary {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}
.lesson-summary > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 125px;
}
.lesson-summary strong {
  font-size: 21px;
  font-weight: 600;
  color: var(--green);
}
.lesson-summary > p {
  max-width: 260px;
  line-height: 1.5;
}
.progress-track {
  height: 8px;
  flex: 1;
  min-width: 90px;
  border-radius: 999px;
  background: #e5ede4;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: #398362;
  border-radius: inherit;
  transition: width 0.3s;
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr);
  gap: 22px;
  align-items: start;
}
.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lesson-card {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  text-align: left;
  padding: 17px 19px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: inherit;
}
.lesson-card:hover,
.lesson-card.selected {
  border-color: #8bb69b;
  background: #f5f8f3;
}
.lesson-card-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lesson-card strong {
  font-size: 14px;
  font-weight: 600;
}
.lesson-card small {
  font-size: 11px;
  color: var(--muted);
}
.lesson-detail {
  padding: 27px;
  min-height: 290px;
}
.lesson-detail h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
  margin: 8px 0 18px;
}
.lesson-kicker {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.lesson-video {
  display: block;
  width: 100%;
  max-height: 400px;
  background: #17221b;
  border-radius: 7px;
  margin: 14px 0 19px;
}
.lesson-instructions {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.75;
  margin: 15px 0 20px;
}
.lesson-placeholder {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 30px 0;
}
.lesson-detail > .button {
  margin-top: 20px;
}
.lesson-action-hint {
  margin-top: 10px;
  line-height: 1.5;
}
.account-card {
  max-width: 560px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.account-card .button {
  margin-top: 16px;
}
.account-name {
  display: block;
  font-size: 21px;
  margin-bottom: 7px;
}
.role-label {
  display: inline-block;
  padding: 5px 9px;
  background: #edf4ea;
  color: #386a4a;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 12px;
}
.text-input,
textarea {
  width: 100%;
  border: 1px solid #dce3db;
  border-radius: 6px;
  background: #fff;
  color: #2c3a30;
  padding: 11px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}
.text-input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: 22px;
  align-items: start;
}
.admin-card {
  padding: 23px;
}
.admin-card h2 {
  margin-bottom: 14px;
}
.admin-card .field-label {
  margin-top: 15px;
}
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 19px;
}
.admin-samples {
  margin-top: 22px;
}
.admin-samples > .muted {
  margin: 4px 0 14px;
}
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.admin-row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.admin-row-text strong {
  font-weight: 600;
}
.admin-row-text small {
  font-size: 11px;
  color: var(--muted);
}
.admin-row .role-label {
  margin: 0;
}
.admin-row .button {
  flex-shrink: 0;
}
.admin-row .quiet {
  color: #a34e44;
}
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .lesson-layout {
    grid-template-columns: 1fr 1.35fr;
  }
}
@media (max-width: 680px) {
  .header-actions {
    gap: 5px;
  }
  .header-action {
    padding: 7px 8px;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-summary {
    flex-wrap: wrap;
    gap: 12px;
  }
  .lesson-summary > p {
    max-width: none;
    width: 100%;
  }
  .lesson-detail {
    padding: 20px;
  }
  .admin-row {
    flex-wrap: wrap;
  }
  .admin-row .role-label {
    margin-left: auto;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  background: #111714;
  color: #e5ebe6;
  --green: #8cc7a6;
  --muted: #9caea1;
  --border: #334238;
}
[data-theme='dark'] body {
  background: #111714;
  color: #e5ebe6;
}
[data-theme='dark'] .site-header,
[data-theme='dark'] .camera-panel,
[data-theme='dark'] .result-panel,
[data-theme='dark'] .phrase-list-panel,
[data-theme='dark'] .sample-panel,
[data-theme='dark'] .eval-card,
[data-theme='dark'] .lesson-summary,
[data-theme='dark'] .lesson-detail,
[data-theme='dark'] .lesson-card,
[data-theme='dark'] .account-card,
[data-theme='dark'] .admin-card {
  background: #1b241e;
  color: #e5ebe6;
}
[data-theme='dark'] .header-action,
[data-theme='dark'] .outline,
[data-theme='dark'] select,
[data-theme='dark'] .text-input,
[data-theme='dark'] textarea {
  background: #202b23;
  border-color: #3c4f41;
  color: #e1eae3;
}
[data-theme='dark'] .header-action:hover,
[data-theme='dark'] .outline:hover:not(:disabled),
[data-theme='dark'] .quiet:hover {
  background: #2a382e;
}
[data-theme='dark'] .lang-switch,
[data-theme='dark'] .step-number {
  background: #253229;
}
[data-theme='dark'] .lang-switch button {
  color: #a9baad;
}
[data-theme='dark'] .lang-switch button[aria-pressed='true'] {
  background: #39543f;
  color: #fff;
  box-shadow: none;
}
[data-theme='dark'] .tab {
  color: #9cab9f;
}
[data-theme='dark'] .tab.active,
[data-theme='dark'] .tab:hover,
[data-theme='dark'] .text-button {
  color: #a5dfbb;
}
[data-theme='dark'] .camera-placeholder {
  background: #243028;
}
[data-theme='dark'] .camera-placeholder strong,
[data-theme='dark'] .result strong {
  color: #e4eee5;
}
[data-theme='dark'] .camera-wrap {
  background: #18211b;
}
[data-theme='dark'] .tracking-area,
[data-theme='dark'] .last-recording {
  border-color: #334238;
}
[data-theme='dark'] .phrase-card:hover,
[data-theme='dark'] .phrase-card.selected,
[data-theme='dark'] .lesson-card:hover,
[data-theme='dark'] .lesson-card.selected {
  background: #26372b;
  border-color: #557d5e;
}
[data-theme='dark'] .result.is-unknown strong,
[data-theme='dark'] .result.is-tentative strong {
  color: #dfbd82;
}
[data-theme='dark'] .result p,
[data-theme='dark'] .result.is-tentative p {
  color: #a7b7aa;
}
[data-theme='dark'] .progress-track {
  background: #344536;
}
[data-theme='dark'] .role-label,
[data-theme='dark'] .practice-notice {
  background: #294330;
  color: #b2dfbc;
}
[data-theme='dark'] .feedback {
  background: #243d2b;
  color: #b3dcbb;
}
[data-theme='dark'] .feedback.error {
  background: #4b2e29;
  color: #f2c2b6;
}
[data-theme='dark'] .primary {
  background: #3f805b;
  color: #fff;
}
[data-theme='dark'] .primary:hover:not(:disabled) {
  background: #51966b;
}
[data-theme='dark'] .lesson-placeholder {
  color: #a8b8aa;
}
.admin-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
}
.admin-user-summary {
  line-height: 1.5;
  margin: -4px 0 12px;
}
.admin-user {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.admin-user-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.admin-user-heading .role-label {
  margin: 0;
  flex-shrink: 0;
}
.admin-progress-label {
  font-size: 12px;
  margin: 13px 0 9px;
}
.admin-user .progress-track {
  width: 100%;
  height: 6px;
}
.admin-user-details {
  margin-top: 12px;
  font-size: 12px;
}
.admin-user-details summary {
  cursor: pointer;
  color: var(--green);
  width: max-content;
  max-width: 100%;
}
.admin-user-details ul {
  list-style: none;
  padding: 5px 0 0;
  margin: 0;
}
.admin-user-details li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}
.admin-user-details small {
  color: var(--muted);
}
.admin-user-footer {
  margin-top: 13px;
}
.admin-user-footer .button {
  min-height: 34px;
  padding: 7px 11px;
}
.admin-error {
  font-size: 12px;
  color: #a3483c;
  line-height: 1.5;
  margin: 12px 0;
}
[data-theme='dark'] .admin-error {
  color: #f2aa9a;
}
@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}
