[hidden]{display:none!important}
:root {
  --ink: #21334a;
  --muted: #627184;
  --line: #dfe6ed;
  --bg: #f5f7fa;
  --paper: #fff;
  --teal: #117c7e;
  --teal-soft: #eaf6f4;
  --blue: #5268bb;
  --blue-soft: #eef1fb;
  --violet: #7656a8;
  --violet-soft: #f4f0fb;
  --amber: #a87318;
  --amber-soft: #fff7e8;
  --red: #b4475b;
  --red-soft: #fff0f3;
  --green: #278067;
  --shadow: 0 10px 32px #22364a0d;
  --radius: 17px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 282px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 25px 22px 20px;
  border-bottom: 1px solid var(--line);
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font: 700 22px Georgia;
}
.brand-icon.large {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 29px;
}
.brand strong {
  display: block;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.sidebar nav {
  overflow: auto;
  padding: 12px;
  flex: 1;
}
.nav-group {
  margin: 20px 10px 6px;
  color: #8794a2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 13px;
}
.nav-link:hover {
  background: #f1f5f7;
  text-decoration: none;
}
.nav-link.active {
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 750;
}
.nav-link span {
  width: 20px;
  text-align: center;
}
.sidebar-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
#sync-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #31a077;
  border-radius: 50%;
  margin-right: 6px;
}
.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  margin-left: 282px;
  z-index: 20;
  background: #f5f7faf2;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 34px;
}
.topbar form {
  flex: 1;
  max-width: 530px;
}
.topbar input {
  width: 100%;
  border: 0;
  background: #e9eef3;
  border-radius: 10px;
  padding: 10px 15px;
}
.icon-btn {
  display: none;
}
.user-chip {
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 30px;
  padding: 8px 14px;
  font-size: 12px;
}
#main {
  margin-left: 282px;
  padding: 34px 38px 80px;
  max-width: 1480px;
  min-height: 100vh;
}
.content {
  max-width: 1080px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 23px;
}
.page-head h1 {
  margin: 0;
  font:
    500 clamp(2.2rem, 4vw, 3.5rem)/1.13 Georgia,
    serif;
  letter-spacing: -1px;
}
.page-head p {
  color: var(--muted);
  max-width: 650px;
  margin: 10px 0 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  margin-bottom: 18px;
}
.card h2,
.card h3 {
  margin: 0 0 12px;
  line-height: 1.3;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.grid.five {
  grid-template-columns: repeat(5, 1fr);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.7px;
}
.stat b {
  display: block;
  font: 500 28px Georgia;
  margin: 3px 0;
}
.skill-tile {
  padding: 17px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.skill-tile b {
  display: block;
  font-size: 13px;
}
.skill-tile strong {
  font: 500 25px Georgia;
}
.skill-tile small {
  display: block;
  color: var(--muted);
}
.progress {
  height: 7px;
  background: #e9eef3;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 10px;
}
.hero {
  background: linear-gradient(118deg, #e8f4f1, #f1f3fb);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  padding: 35px;
}
.hero h2 {
  font: 500 30px Georgia;
}
.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hero-steps span {
  background: #fff;
  border: 1px solid #dbe6e3;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 11px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row.end {
  justify-content: flex-end;
}
.between {
  justify-content: space-between;
}
.button,
button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 9px 14px;
  text-decoration: none;
}
.button:hover,
button:hover {
  border-color: var(--teal);
  background: #f0f8f7;
  text-decoration: none;
}
.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.secondary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.wide {
  width: 100%;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #e6b154;
  outline-offset: 2px;
}
label {
  font-size: 13px;
  font-weight: 700;
}
input,
textarea,
select {
  border: 1px solid #bdc9d4;
  background: #fff;
  border-radius: 9px;
  padding: 10px;
  max-width: 100%;
}
textarea {
  width: 100%;
  resize: vertical;
}
label > input,
label > textarea,
label > select {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-weight: 400;
}
.tag {
  display: inline-block;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.tag.phd {
  background: var(--violet-soft);
  color: var(--violet);
}
.tag.ielts {
  background: var(--blue-soft);
  color: var(--blue);
}
.tag.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.muted,
.small {
  color: var(--muted);
  font-size: 13px;
}
.lesson-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}
.lesson-card p {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}
.lesson-card .button {
  align-self: flex-start;
}
.pipeline {
  position: sticky;
  top: 82px;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 6px;
  overflow: auto;
  margin-bottom: 18px;
}
.pipe-step {
  white-space: nowrap;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 10px;
  background: #f1f4f7;
  color: #788695;
}
.pipe-step.done {
  background: #dff2ec;
  color: #26735f;
}
.pipe-step.current {
  background: var(--teal);
  color: #fff;
}
.stage-card {
  min-height: 460px;
  padding: 32px;
}
.stage-card h2 {
  font: 500 30px Georgia;
}
.stage-content {
  max-width: 800px;
}
.meaning-box {
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  padding: 18px;
  border-radius: 10px;
  margin: 15px 0;
}
.expression {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.listen-panel {
  background: #eef3f8;
  padding: 20px;
  border-radius: 12px;
}
.transcript {
  border-left: 4px solid var(--blue);
  padding: 14px 17px;
  background: var(--blue-soft);
  margin: 14px 0;
}
.shadow-line,
.build-line {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 9px 0;
  background: #fff;
}
.build-line:before {
  content: "→";
  color: var(--teal);
  margin-right: 10px;
}
.stage-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.section-tools {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.note-box,
.ai-box {
  border-radius: 12px;
  padding: 17px;
  margin: 12px 0;
}
.note-box {
  border: 1px solid #aad7cc;
  border-left: 5px solid var(--teal);
  background: #eff9f6;
}
.ai-box {
  border: 1px solid #cabfe6;
  border-left: 5px solid var(--violet);
  background: var(--violet-soft);
}
.note-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 850;
  color: var(--teal);
}
.ai-box .note-head {
  color: var(--violet);
}
.ai-question {
  background: #ebe4f8;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 13px;
}
.recorder {
  border: 1px solid #d7dfeb;
  background: #f7f9fb;
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0;
}
.record-main {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 8px solid #f8dce2;
  font-weight: 800;
}
.record-main.recording {
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 12px #b4475b18;
  }
}
.timer {
  font:
    600 24px ui-monospace,
    monospace;
}
.feedback {
  background: #f3f7f6;
  border-left: 4px solid var(--green);
  padding: 18px;
  border-radius: 10px;
}
.improvement {
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  padding: 14px;
  margin: 10px 0;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #fff;
}
.login-art {
  padding: 10vh 9vw;
  background: linear-gradient(135deg, #e7f4f1, #edf0fa);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-art h1 {
  font: 500 clamp(3rem, 6vw, 5.5rem)/1.05 Georgia;
  margin: 12px 0;
}
.login-art > p {
  max-width: 620px;
  color: #4c6274;
}
.login-path {
  margin-top: 28px;
  color: var(--teal);
  font-weight: 750;
}
.login-card {
  align-self: center;
  width: min(430px, 85%);
  margin: auto;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.login-card h2 {
  font: 500 30px Georgia;
}
.login-card label {
  display: block;
  margin: 15px 0;
}
.login-card small {
  display: block;
  text-align: center;
  margin-top: 13px;
}
.error {
  color: var(--red);
  font-size: 13px;
  min-height: 20px;
}
.table-scroll {
  overflow-x: auto;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.matrix-table th,
.matrix-table td {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.matrix-table th {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}
.evidence-none {
  color: var(--muted);
  font-style: italic;
}
.status-flow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.status-flow span {
  padding: 5px 8px;
  background: #eff2f6;
  border-radius: 6px;
  font-size: 10px;
}
.status-flow .active {
  background: var(--teal);
  color: #fff;
}
.profile-form,
.provider-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.full {
  grid-column: 1/-1;
}
.profile-card {
  border-left: 4px solid var(--blue);
}
.test-result {
  padding: 12px;
  border-radius: 9px;
  background: #eef7f4;
  color: var(--green);
  margin-top: 10px;
}
.test-result.error {
  background: var(--red-soft);
  color: var(--red);
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.health-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.health-item small,
.health-item strong {
  display: block;
}
.health-item small {
  color: var(--muted);
}
.empty {
  padding: 35px;
  text-align: center;
  border: 1px dashed #b8c4cf;
  border-radius: 13px;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 25px 80px #1b2b3d55;
  max-width: 420px;
}
dialog::backdrop {
  background: #20344c55;
}
.search-results h3 {
  margin-top: 25px;
}
.alert {
  padding: 14px;
  border-radius: 10px;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  margin: 12px 0;
}
.success {
  color: var(--green);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #22364b;
  color: #fff;
  padding: 11px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 90vw;
}
.mobile-only {
  display: none;
}
@media (max-width: 1100px) {
  .grid.five {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .health-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  .topbar,
  #main {
    margin-left: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 15px;
  }
  #main {
    padding: 22px 14px 70px;
  }
  .icon-btn {
    display: block;
  }
  .topbar form {
    max-width: none;
  }
  .user-chip {
    padding: 7px 10px;
  }
  .grid.two,
  .grid.three,
  .grid.five,
  .profile-form,
  .provider-form {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-card {
    width: min(430px, calc(100% - 28px));
    padding: 27px;
  }
  .pipeline {
    top: 74px;
  }
  .stage-card {
    padding: 21px;
    min-height: 400px;
  }
  .stage-card h2 {
    font-size: 26px;
  }
  .expression {
    grid-template-columns: 1fr;
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
  .mobile-only {
    display: block;
  }
  #shade.show {
    display: block;
    position: fixed;
    inset: 0;
    background: #20344c55;
    z-index: 25;
  }
}
@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .stat b {
    font-size: 23px;
  }
  .card {
    padding: 18px;
  }
  .page-head h1 {
    font-size: 2.25rem;
  }
  .record-main {
    width: 92px;
    height: 92px;
  }
  .stage-footer {
    position: sticky;
    bottom: 5px;
    background: #fff;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
  }
  .section-tools button {
    font-size: 12px;
    padding: 8px 10px;
  }
}
.http-capture{display:block;padding:12px;border:1px dashed var(--accent);border-radius:10px;background:#f4fbfa;margin:10px 0;color:#245a56}.http-capture input{display:block;margin-top:8px}.draft-status{color:#16756c;display:block;margin-top:6px}
