/* Shared language partner question sections (form + Six chat). */
.lp-section {
  --lp-bg: #f5f6f4;
  --lp-card: #ffffff;
  --lp-ink: #17221e;
  --lp-muted: #63706a;
  --lp-faint: #9ba49f;
  --lp-line: #e6eae6;
  --lp-accent: #087f78;
  --lp-accent-strong: #006860;
  --lp-accent-soft: #e4f3f0;
  --lp-accent-ring: rgba(8, 127, 120, .25);
  --lp-ease: cubic-bezier(.2, .8, .2, 1);
  --lp-spring: cubic-bezier(.16, 1, .3, 1);
  color: var(--lp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.lp-section.is-readonly {
  opacity: 0.72;
  pointer-events: none;
}

.lp-section-chat-card {
  margin-top: 10px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  border: 1px solid #e2e6e2;
  background: #fafbfa;
  box-shadow: 0 1px 2px rgba(20, 30, 25, .04);
}

.lp-section .ask {
  margin: 0 0 11px;
  font-size: 13.5px;
  color: var(--lp-muted);
  line-height: 1.35;
}

.lp-section .known-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--lp-accent);
  background: var(--lp-accent-soft);
  padding: 4px 9px;
  border-radius: 999px;
}

.lp-section .opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-section .opt {
  position: relative;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 13px;
  border: 1.5px solid #dfe5e1;
  background: #fff;
  font-size: 14.5px;
  font-weight: 650;
  color: #2c3833;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform .12s var(--lp-ease), background .18s, border-color .18s, color .18s, box-shadow .18s;
}

.lp-section .opt:active {
  transform: scale(.96);
}

.lp-section .opt.on {
  border-color: var(--lp-accent);
  background: var(--lp-accent-soft);
  color: var(--lp-accent-strong);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 120, .08);
  animation: lp-section-pick .22s var(--lp-spring);
}

.lp-section .opt.on::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lp-section .opt.sug {
  border-style: dashed;
  border-color: var(--lp-accent);
  color: var(--lp-accent);
}

.lp-section .opt.sug small {
  font-size: 11px;
  font-weight: 700;
  opacity: .8;
}

.lp-section .opt .sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--lp-muted);
}

.lp-section .opt.stack {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 8px 15px;
}

.lp-section .opt.stack.on::before {
  position: absolute;
  right: 10px;
  top: 10px;
}

.lp-section-type-first .type-first-input {
  margin-top: 0;
}

.lp-section-type-first .type-first-suggestions {
  margin-top: 10px;
}

.lp-section .other {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: 1.5px solid #dfe5e1;
  border-radius: 13px;
  background: #fafbfa;
  padding: 0 13px;
  font-size: 16px;
  outline: none;
}

.lp-section .other:focus {
  border-color: var(--lp-accent);
  background: #fff;
}

.lp-section .next {
  margin-top: 12px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--lp-ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.lp-section .next:disabled {
  background: #c9cecb;
  cursor: default;
}

.lp-section .other-lang {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--lp-line);
}

.lp-section .other-ask {
  margin: 0 0 8px;
}

.lp-section .other-lang .other {
  margin-top: 0;
}

.lp-section .lang-sug {
  margin-top: 10px;
}

.lp-section .opt.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13.5px;
  border-radius: 11px;
}

.lp-section .intro-box {
  width: 100%;
  min-height: 110px;
  padding: 12px 13px;
  border: 1.5px solid #e2e6e2;
  border-radius: 14px;
  background: #fafbfa;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--lp-ink);
  resize: vertical;
  outline: none;
}

.lp-section .intro-box:focus {
  border-color: var(--lp-accent);
  background: #fff;
}

.lp-section .intro-meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--lp-muted);
}

.lp-section .intro-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.lp-section .intro-actions .next {
  margin-top: 0;
}

.lp-section button:focus-visible,
.lp-section input:focus-visible,
.lp-section textarea:focus-visible {
  outline: 3px solid var(--lp-accent-ring);
  outline-offset: 2px;
}

@keyframes lp-section-pick {
  50% { transform: scale(.975); }
}

@media (prefers-color-scheme: dark) {
  .lp-section {
    --lp-bg: #111715;
    --lp-card: #19221f;
    --lp-ink: #f2f6f3;
    --lp-muted: #aab8b1;
    --lp-faint: #77847d;
    --lp-line: #2b3732;
    --lp-accent: #58cabe;
    --lp-accent-strong: #8ae5da;
    --lp-accent-soft: #183d38;
    --lp-accent-ring: rgba(88, 202, 190, .35);
  }
  .lp-section-chat-card {
    background: #19221f;
    border-color: #33423c;
  }
  .lp-section .opt {
    background: #19221f;
    border-color: #33423c;
    color: var(--lp-ink);
  }
  .lp-section .opt.on {
    border-color: var(--lp-accent);
  }
  .lp-section .other,
  .lp-section .intro-box {
    background: #151d1a;
    border-color: #33423c;
    color: var(--lp-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-section .opt {
    transition: none !important;
    animation: none !important;
  }
}

/* Time slot picker under "When to practice" */
.lp-slot { margin-top: 10px; }
.lp-slot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lp-slot-row select,
.lp-slot-row input[type="time"] {
  min-height: 40px; padding: 0 8px; border: 1.5px solid #e2e6e2; border-radius: 12px; background: #fafbfa; font: inherit; color: inherit;
}
.lp-slot-dash { color: #63706a; }
@media (prefers-color-scheme: dark) {
  .lp-slot-row select, .lp-slot-row input[type="time"] { background: #151d1a; border-color: #2a3530; }
}
